HEX
Server: nginx/1.22.1
System: Linux VM-16-9-centos 3.10.0-1160.99.1.el7.x86_64 #1 SMP Wed Sep 13 14:19:20 UTC 2023 x86_64
User: www (1001)
PHP: 7.3.31
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/oa.sanjiangapp.com/app/oa/attend/view/detail.html.php
<?php
/**
 * The detail view file of attend module of ZDOO.
 *
 * @copyright   Copyright 2009-2018 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv12.html)
 * @author      Gang Liu <liugang@cnezsoft.com>
 * @package     attend 
 * @version     $Id$
 * @link        http://www.zdoo.com
 */
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../../sys/common/view/treeview.html.php';?>
<?php $lang->attend->abbrStatusList['rest'] = '';?>
<div id='menuActions'>
  <?php commonModel::printLink('attend', 'exportDetail', "date=$currentYear$currentMonth", $lang->attend->export, "class='iframe btn btn-primary'")?>
</div>
<div class='main-row'>
  <div class='side-col col-3'>
    <div class='panel'>
      <div class='panel-heading'><strong><?php echo $currentYear . ($this->app->clientLang != 'en' ? $lang->year : '') . $lang->attend->detail;?></strong></div>
      <div class='panel-body'>
        <div class='row'>
          <?php 
          $lastmonth = $currentYear == date('Y') ? date('m') : 12;
          for($month = 1; $month <= $lastmonth; $month++)
          {
              $class = $month == $currentMonth ? 'btn-primary' : '';
              $month = $month < 10 ? '0' . $month : $month;
              echo "<div class='col-xs-3 monthDIV'>" . html::a(inlink('detail', "date=$currentYear$month"), $month . ($this->app->clientLang != 'en' ? $lang->month : ''), "class='btn btn-mini $class'") . '</div>';
          }
          ?>
        </div>
      </div>
    </div>
    <div class='panel'>
      <div class='panel-heading'><strong><?php echo $lang->attend->search;?></strong></div>
      <div class='panel-body'>
        <form id='searchForm' method='post' action='<?php echo inlink('detail');?>'>
          <div class='form-group'>
            <div class='input-group'>
              <span class='input-group-addon'><?php echo $lang->user->dept;?></span>
              <?php echo html::select('dept', $deptList, $dept, "class='form-control chosen'");?>
            </div>
          </div>
          <div class='form-group'>
            <div class='input-group'>
              <span class='input-group-addon'><?php echo $lang->attend->user;?></span>
              <?php echo html::select('account', $userList, $account, "class='form-control chosen'");?>
            </div>
          </div>
          <div class='form-group'>
            <div class='input-group'>
              <span class='input-group-addon'><?php echo $lang->attend->date;?></span>
              <?php echo html::input('date', $date, "class='form-control form-month'");?>
            </div>
          </div>
          <div class='form-group'><?php echo html::submitButton($lang->attend->search);?></div>
        </form>
      </div>
    </div>
  </div>
  <div class='main-col col-9'>
    <div class='panel' data-ride='table'>
      <div class='panel-heading text-center'>
        <strong><?php echo $fileName;?></strong>
      </div>
      <div class='panel-body'>
        <table class='table table-bordered'>
          <thead>
            <tr class='text-center'>
              <th class='w-100px'><?php echo $lang->user->dept;?></th>
              <th class='w-100px'><?php echo $lang->attend->user;?></th>
              <th class='w-90px'><?php echo $lang->attend->date;?></th>
              <th class='w-80px'><?php echo $lang->attend->dayName;?></th>
              <th><?php echo $lang->attend->status;?></th>
              <th class='w-90px'><?php echo $lang->attend->signIn;?></th>
              <th class='w-90px'><?php echo $lang->attend->signOut;?></th>
              <th class='w-90px'><?php echo $lang->attend->ip;?></th>
            </tr>
          </thead>
          <?php foreach($attends as $attend):?>
          <tr class='text-center'>
            <td><?php echo $attend->dept;?></td>
            <td><?php echo $attend->realname;?></td>
            <td><?php echo formatTime($attend->date, DT_DATE1);?></td>
            <td><?php echo $attend->dayName;?>
            <td class='text-left c-name'><?php echo empty($attend->desc) ? $attend->status : $attend->desc;?></td>
            <td><?php echo $attend->signIn;?></td>
            <td><?php echo $attend->signOut;?></td>
            <td><?php echo $attend->ip;?></td>
          </tr>
          <?php endforeach;?>
        </table>
      </div>
    </div>
  </div>
</div>
<?php include '../../common/view/footer.html.php';?>