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/edit.html.php
<?php
/**
 * The settings view file of attend module of ZenTaoPMS.
 *
 * @copyright   Copyright 2009-2018 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv12.html)
 * @author      chujilu <chujilu@cnezsoft.com>
 * @package     attend
 * @version     $Id$
 * @link        http://www.zdoo.com
 */
?>
<?php include '../../../sys/common/view/header.modal.html.php';?>
<?php js::set('status', $attend->status);?>
<?php js::set('reason', $attend->reason);?>
<form id='ajaxForm' method='post' action='<?php echo $this->createLink('attend', 'edit', "date=$date")?>'>
  <table class='table table-form'>
    <?php if(!empty($attend->reviewStatus)):?>
    <tr>
      <th class='w-80px'><?php echo $lang->attend->reviewStatus?></th>
      <td><?php echo zget($lang->attend->reviewStatusList, $attend->reviewStatus) . " " . $attend->reviewedBy . " " . formatTime($attend->reviewedDate, DT_DATETIME2);?></td>
    </tr>
    <?php endif;?>
    <tr>
      <th class='w-80px'><?php echo $lang->attend->date?></th>
      <td><?php echo $attend->dayName;?></td>
    </tr> 
  </table>
  <table class='table table-form table-condensed editMode'>
    <?php if(strpos(',late,both,absent,leave,makeup,overtime,lieu,trip,egress,', ",$attend->status,") !== false):?>
    <tr id='trIn'>
      <th class='w-80px'><?php echo $lang->attend->manualIn?></th>
      <td><?php echo html::input('manualIn', empty($attend->manualIn) ? $this->config->attend->signInLimit : $attend->manualIn, "class='form-control form-time'")?></td>
    </tr>
    <?php endif;?>
    <?php if(strpos(',early,both,absent,', ",$attend->status,") !== false or (strpos(',leave,makeup,overtime,lieu,trip,egress', ",$attend->status,") !== false && date('Y-m-d') > "$attend->date {$config->attend->signOutLimit}")):?>
    <tr id='trOut'>
      <th class='w-80px'><?php echo $lang->attend->manualOut?></th>
      <td><?php echo html::input('manualOut', empty($attend->manualOut) ? $this->config->attend->signOutLimit : $attend->manualOut, "class='form-control form-time'")?></td>
    </tr> 
    <?php endif;?>
    <tr>
      <th class='w-80px'><?php echo $lang->attend->desc?></th>
      <td><?php echo html::textarea('desc', $attend->desc, "class='form-control'")?></td>
    </tr> 
    <tr><th></th><td class='form-actions'><?php echo html::submitButton();?></td></tr>
  </table>
  <table class='table table-form viewMode'>
    <?php if(strpos(',late,both,absent', $attend->status) !== false):?>
    <tr id='trIn'>
      <th class='w-80px'><?php echo $lang->attend->manualIn?></th>
      <td><?php echo formatTime($attend->manualIn, DT_TIME2);?></td>
    </tr>
    <?php endif;?>
    <?php if(strpos(',early,both,absent', $attend->status) !== false):?>
    <tr id='trOut'>
      <th class='w-80px'><?php echo $lang->attend->manualOut?></th>
      <td><?php echo formatTime($attend->manualOut, DT_TIME2);?></td>
    </tr> 
    <?php endif;?>
    <tr>
      <th class='w-80px'><?php echo $lang->attend->desc?></th>
      <td><?php echo $attend->desc;?></td>
    </tr> 
    <?php if($attend->reviewStatus != 'pass' or strpos('late,early,both', $attend->status) !== false):?>
    <tr><th></th><td clospan='3'><?php echo html::commonButton($lang->edit, "btn btn-primary edit");?></td></tr>
    <?php endif;?>
  </table>
  <?php if(!empty($attend->id)) echo $this->fetch('action', 'history', "objectType=attend&objectID=$attend->id");?>
</form>
<?php include '../../../sys/common/view/footer.modal.html.php';?>