<commit_before><!DOCTYPE html>
<%@ include file="../bootstrapHeader.jsp" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="css/train.css" rel="stylesheet">
    <title>志愿者服务签入签出</title>
    <script language="javascript" type="text/javascript">
        window.onload = function () {
            setInterval("document.getElementById('timewatcher').innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());", 1000);
        }
    </script>

    <style type="text/css">

    </style>
</head>

<body>
<div class="home2">
    <div class="bg-user">
        <div class="bg-fh"><img src="img/back.png" width="35" height="35" onclick="location='index.action'"
                                style="cursor: pointer"/></div>
        <s:if test="aub!=null">
            <div class="bg-top">我的签出</div>
        </s:if>
        <s:else>
            <div class="bg-top">我的签入</div>
        </s:else>

        <div class="bg-username"><s:property value="#session['sessionUser'].name"/></div>
        <div class="bg-touxiang"><img src="<s:property value="#session['sessionUser'].iconpath"/>" width="50"
                                      height="50" onerror="this.src='img/volunteer.png';"/></div>
    </div>

    <div class="bg-right2">
        <div class="bg-title2" style="font-size:30px">院内</div>
        <div class="bg-time" id="timewatcher">加载当前时间</div>

        <s:iterator value="servicePlaces" var="parent">
           <s:if test="#parent.type==1 && #parent.area==0">
                <div class="bg-title2"><s:property value="#parent.name"/></div><div style="clear:both"></div>
               <s:iterator value="servicePlaces" var="us">
                    <s:if test="#us.type==0 && #parent.id==#us.parentid">
                        <s:if test="aub.servicePlaceId==#us.id">
                            <div class="hosp-green hosp-focus">
                                <div class="plase-img"><img src="<s:property value="#us.serviceicon"/>"></div>
                                <div class="plase-font"><s:property value="#us.name"/></div>
                                <form id="dataForm" action="userFront/checkOut.action" method="post">
                                    <input type="hidden" name="servicePlaceId" value="<s:property value="#us.id"/>"/>
                                </form>
                            </div>
                        </s:if>
                        <s:else>
                          <s:if test="aub==null">
                            <div class="hosp-green"
                                 <s:if test="aub==null">onclick="jQuery('.hosp-green').removeClass('hosp-focus');jQuery(this).addClass('hosp-focus');"</s:if>>
                                <div class="plase-img"><img src="<s:property value="#us.serviceicon"/>"></div>
                                <div class="plase-font"><s:property value="#us.name"/></div>
                                <form id="dataForm" action="userFront/checkInSubmit.action" method="post">
                                    <input type="hidden" name="servicePlaceId" value="<s:property value="#us.id"/>"/>
                                </form>
                            </div>
                          </s:if>
                        </s:else>
                    </s:if>
               </s:iterator>
               <div style="clear:both"></div>
           </s:if>
        </s:iterator>
    </div>

    <div class="hosp-hr">
        <script>
            function checkIn() {
                var focusNode = jQuery(".hosp-focus");
                if (focusNode.length == 0) {
                    alert("请先选择签入地点");
                } else {
                    focusNode.find("form").submit();
                }
            }

            function checkOut() {
                var focusNode = jQuery(".hosp-focus");
                if (focusNode.length == 0) {
                    alert("没有有效的签出地点");
                } else {
                    focusNode.find("form").submit();
                }<commit_msg>checkout condtion only displayed a poistion.<commit_after><!DOCTYPE html>
<%@ include file="../bootstrapHeader.jsp" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="css/train.css" rel="stylesheet">
    <title>志愿者服务签入签出</title>
    <script language="javascript" type="text/javascript">
        window.onload = function () {
            setInterval("document.getElementById('timewatcher').innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());", 1000);
        }
    </script>

    <style type="text/css">

    </style>
</head>

<body>
<div class="home2">
    <div class="bg-user">
        <div class="bg-fh"><img src="img/back.png" width="35" height="35" onclick="location='index.action'"
                                style="cursor: pointer"/></div>
        <s:if test="aub!=null">
            <div class="bg-top">我的签出</div>
        </s:if>
        <s:else>
            <div class="bg-top">我的签入</div>
        </s:else>

        <div class="bg-username"><s:property value="#session['sessionUser'].name"/></div>
        <div class="bg-touxiang"><img src="<s:property value="#session['sessionUser'].iconpath"/>" width="50"
                                      height="50" onerror="this.src='img/volunteer.png';"/></div>
    </div>

    <div class="bg-right2">
        <div class="bg-title2" style="font-size:30px">院内</div>
        <div class="bg-time" id="timewatcher">加载当前时间</div>

        <s:iterator value="servicePlaces" var="parent">
           <s:if test="#parent.type==1 && #parent.area==0">
                <div class="bg-title2" id="<s:property value="#parent.id"/>" style="display:none"><s:property value="#parent.name"/></div><div style="clear:both"></div>
               <s:iterator value="servicePlaces" var="us">
                    <s:if test="#us.type==0 && #parent.id==#us.parentid">
                        <s:if test="aub.servicePlaceId==#us.id">
                            <div class="hosp-green hosp-focus">
                                <div class="plase-img"><img src="<s:property value="#us.serviceicon"/>"></div>
                                <div class="plase-font"><s:property value="#us.name"/></div>
                                <form id="dataForm" action="userFront/checkOut.action" method="post">
                                    <input type="hidden" name="servicePlaceId" value="<s:property value="#us.id"/>"/>
                                </form>
                            </div>
                            <script>jQuery('#<s:property value="#parent.id"/>').css({display:''});</script>
                        </s:if>
                        <s:else>
                          <s:if test="aub==null">
                            <div class="hosp-green"
                                 <s:if test="aub==null">onclick="jQuery('.hosp-green').removeClass('hosp-focus');jQuery(this).addClass('hosp-focus');"</s:if>>
                                <div class="plase-img"><img src="<s:property value="#us.serviceicon"/>"></div>
                                <div class="plase-font"><s:property value="#us.name"/></div>
                                <form id="dataForm" action="userFront/checkInSubmit.action" method="post">
                                    <input type="hidden" name="servicePlaceId" value="<s:property value="#us.id"/>"/>
                                </form>
                                <script>jQuery('#<s:property value="#parent.id"/>').css({display:''});</script>
                            </div>
                          </s:if>
                        </s:else>
                    </s:if>
               </s:iterator>
               <div style="clear:both"></div>
           </s:if>
        </s:iterator>
    </div>

    <div class="hosp-hr">
        <script>
            function checkIn() {
                var focusNode = jQuery(".hosp-focus");
                if (focusNode.length == 0) {
                    alert("请先选择签入地点");
                } else {
                    focusNode.find("form").submit();
                }
            }

            function checkOut() {
                var focusNode = jQuery(".hosp-focus");
                if (focusNode.length == 0) {
                    alert("没有有效的签出地点");
                } else {
                    focusNode.find("form").submit();
                }
{'fraction_non_alphanumeric': 0.18129139072847683, 'fraction_numerical': 0.005676442762535478, 'mean_word_length': 1.6069667077681875, 'pattern_counts': {'":': 0, '<': 194, '<?xml version=': 0, '>': 194, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2974029', 'n_tokens_mistral': 2509, 'n_tokens_neox': 2425, 'n_words': 350}