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/sys/my/view/review.html.php
<?php
/**
 * The personal 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      chujilu <chujilu@cnezsoft.com>
 * @package     attend
 * @version     $Id$
 * @link        http://www.zdoo.com
 */
?>
<?php include './header.html.php';?>
<?php js::set('type', $type)?>
<?php js::set('confirmReview', $lang->attend->confirmReview);?>
<?php $appendClass = $type == 'all' ? 'table-noFixedHeader' : 'table-fixedHeader'?>
<?php if(($type == 'all' && !empty($attends)) || $type == 'attend'):?>
<div class='panel main-table' data-ride='table'>
  <table class='table <?php echo $appendClass?>'>
    <thead>
      <tr class='text-center'>
        <?php if($type == 'all'): ?>
          <th class='w-80px'><?php echo $lang->my->review->module;?></th>
        <?php else:?>
          <th class='w-80px'><?php echo $lang->attend->id;?></th>
        <?php endif;?>
        <th class='w-100px'><?php echo $lang->attend->account;?></th>
        <th class='w-100px'><?php echo $lang->attend->date;?></th>
        <th class='w-80px'><?php echo $lang->attend->manualIn;?></th>
        <th class='w-80px'><?php echo $lang->attend->manualOut;?></th>
        <th class='w-100px'><?php echo $lang->attend->reason;?></th>
        <th><?php echo $lang->attend->desc;?></th>
        <th class='w-120px'><?php echo $lang->attend->status;?></th>
        <th class='w-100px'><?php echo $lang->actions;?></th>
      </tr>
    </thead>
    <?php foreach($attends as $attend):?>
    <tr class='text-center'>
      <?php if($type == 'all'): ?>
        <td><?php echo $lang->attend->common;?></td>
      <?php else:?>
        <td><?php echo $attend->id;?></td>
      <?php endif;?>
      <td><?php echo zget($users, $attend->account);?></td>
      <td><?php echo formatTime($attend->date, DT_DATE1);?></td>
      <td><?php echo formatTime($attend->manualIn, DT_TIME2)?></td>
      <td><?php echo formatTime($attend->manualOut, DT_TIME2)?></td>
      <td><?php echo zget($lang->attend->reasonList, $attend->reason)?></td>
      <td><?php echo $attend->desc?></td>
      <td><?php echo zget($lang->attend->statusList, $attend->status)?></td>
      <td>
        <?php
        $canReview = $this->attend->isClickable($attend, 'review');
        if($canReview)
        {
            echo html::a($this->createLink('oa.attend', 'review', "attendID={$attend->id}&status=pass"),   $lang->attend->reviewStatusList['pass'],   "data-status='pass' data-toggle='ajax'");
            echo html::a($this->createLink('oa.attend', 'review', "attendID={$attend->id}&status=reject"), $lang->attend->reviewStatusList['reject'], "data-toggle='modal'");
        }
        else
        {
            echo html::a('javascript:;', $lang->attend->reviewStatusList['pass'],   "class='disabled'");
            echo html::a('javascript:;', $lang->attend->reviewStatusList['reject'], "class='disabled'");
        }
        ?>
      </td>
    </tr>
    <?php endforeach;?>
  </table>
  <?php if(!$attends):?>
  <div class='table-footer'>
    <div class='pager' style='float: right; clear: none'><?php echo $lang->pager->noRecord;?></div>
  </div>
  <?php endif;?>
</div>
<?php endif;?>

<?php if($type == 'leave'):?>
<div class='panel main-table' data-ride='table'>
  <table class='table has-sort-head <?php echo $appendClass?>' id='leaveTable'>
    <thead>
      <tr class='text-center'>
        <?php $vars = "type={$type}&orderBy=%s";?>
        <th class='w-80px'><?php commonModel::printOrderLink('id', $orderBy, $vars, $lang->leave->id);?></th>
        <th class='w-80px'><?php commonModel::printOrderLink('createdBy', $orderBy, $vars, $lang->leave->createdBy);?></th>
        <th class='w-80px'><?php echo $lang->user->dept;?></th>
        <th class='w-80px'><?php commonModel::printOrderLink('type', $orderBy, $vars, $lang->leave->type);?></th>
        <th class='w-150px'><?php commonModel::printOrderLink('begin', $orderBy, $vars, $lang->leave->begin);?></th>
        <th class='w-150px'><?php commonModel::printOrderLink('begin', $orderBy, $vars, $lang->leave->end);?></th>
        <th class='w-140px'><?php commonModel::printOrderLink('backDate', $orderBy, $vars, $lang->leave->backDate);?></th>
        <th><?php echo $lang->leave->desc;?></th>
        <th class='w-120px'><?php commonModel::printOrderLink('status', $orderBy, $vars, $lang->leave->status);?></th>
        <th class='w-100px'><?php echo $lang->actions;?></th>
      </tr>
    </thead>
    <?php foreach($leaveList as $leave):?>
    <tr class='text-center'>
      <td><?php echo $leave->id;?></td>
      <td><?php echo zget($users, $leave->createdBy);?></td>
      <td><?php echo zget($deptList, $leave->dept);?></td>
      <td><?php echo zget($this->lang->leave->typeList, $leave->type);?></td>
      <td><?php echo formatTime($leave->begin . ' ' . $leave->start, DT_DATETIME2);?></td>
      <td><?php echo formatTime($leave->end . ' ' . $leave->finish, DT_DATETIME2);?></td>
      <td><?php echo formatTime($leave->backDate, DT_DATE1);?></td>
      <td title='<?php echo $leave->desc?>'><?php echo $leave->desc;?></td>
      <td class='leave-<?php echo $leave->status?>' title='<?php echo $leave->statusLabel;?>'><?php echo $leave->statusLabel;?></td>
      <td>
        <?php
        $canReview = $this->leave->isClickable($leave, 'review');
        if($canReview)
        {
            $params = $leave->status == 'back' ? '&mode=back' : '';
            echo html::a($this->createLink('oa.leave', 'review', "id={$leave->id}&status=pass$params"),   $lang->leave->statusList['pass'],   "data-status='pass' data-toggle='ajax'");
            echo html::a($this->createLink('oa.leave', 'review', "id={$leave->id}&status=reject$params"), $lang->leave->statusList['reject'], "data-toggle='modal'");
        }
        else
        {
            echo html::a('javascript:;', $lang->leave->statusList['pass'],   "class='disabled'");
            echo html::a('javascript:;', $lang->leave->statusList['reject'], "class='disabled'");
        }
        ?>
      </td>
    </tr>
    <?php endforeach;?>
  </table>
  <?php if(!$leaveList):?>
  <div class='table-footer'>
    <div class='pager' style='float: right; clear: none'><?php echo $lang->pager->noRecord;?></div>
  </div>
  <?php endif;?>
</div>
<?php endif;?>

<?php if($type == 'makeup'):?>
<div class='panel main-table' data-ride='table'>
  <table class='table has-sort-head <?php echo $appendClass?>' id='makeupTable'>
    <thead>
      <tr class='text-center'>
        <?php $vars = "type={$type}&orderBy=%s";?>
        <th class='w-80px'><?php commonModel::printOrderLink('id', $orderBy, $vars, $lang->makeup->id);?></th>
        <th class='w-80px'><?php commonModel::printOrderLink('createdBy', $orderBy, $vars, $lang->makeup->createdBy);?></th>
        <th class='w-80px'><?php echo $lang->user->dept;?></th>
        <th class='w-80px'><?php commonModel::printOrderLink('type', $orderBy, $vars, $lang->makeup->type);?></th>
        <th class='w-150px'><?php commonModel::printOrderLink('begin', $orderBy, $vars, $lang->makeup->begin);?></th>
        <th class='w-150px'><?php commonModel::printOrderLink('begin', $orderBy, $vars, $lang->makeup->end);?></th>
        <th><?php echo $lang->makeup->desc;?></th>
        <th class='w-100px'><?php echo $lang->actions;?></th>
      </tr>
    </thead>
    <?php foreach($makeupList as $makeup):?>
    <tr class='text-center'>
      <td><?php echo $makeup->id;?></td>
      <td><?php echo zget($users, $makeup->createdBy);?></td>
      <td><?php echo zget($deptList, $makeup->dept);?></td>
      <td><?php echo zget($this->lang->makeup->typeList, $makeup->type);?></td>
      <td><?php echo formatTime($makeup->begin . ' ' . $makeup->start, DT_DATETIME2);?></td>
      <td><?php echo formatTime($makeup->end . ' ' . $makeup->finish, DT_DATETIME2);?></td>
      <td title='<?php echo $makeup->desc?>'><?php echo $makeup->desc;?></td>
      <td>
        <?php
        $canReview = $this->makeup->isClickable($makeup, 'review');
        if($canReview)
        {
            echo html::a($this->createLink('oa.makeup', 'review', "id={$makeup->id}&status=pass"),   $lang->makeup->statusList['pass'],   "data-status='pass' data-toggle='ajax'");
            echo html::a($this->createLink('oa.makeup', 'review', "id={$makeup->id}&status=reject"), $lang->makeup->statusList['reject'], "data-toggle='modal'");
        }
        else
        {
            echo html::a('javascript:;', $lang->makeup->statusList['pass'],   "class='disabled'");
            echo html::a('javascript:;', $lang->makeup->statusList['reject'], "class='disabled'");
        }
        ?>
      </td>
    </tr>
    <?php endforeach;?>
  </table>
  <?php if(!$makeupList):?>
  <div class='table-footer'>
    <div class='pager' style='float: right; clear: none'><?php echo $lang->pager->noRecord;?></div>
  </div>
  <?php endif;?>
</div>
<?php endif;?>

<?php if($type == 'overtime'):?>
<div class='panel main-table' data-ride='table'>
  <table class='table has-sort-head <?php echo $appendClass?>' id='overtimeTable'>
    <thead>
      <tr class='text-center'>
        <?php $vars = "type={$type}&orderBy=%s";?>
        <th class='w-80px'><?php commonModel::printOrderLink('id', $orderBy, $vars, $lang->overtime->id);?></th>
        <th class='w-80px'><?php commonModel::printOrderLink('createdBy', $orderBy, $vars, $lang->overtime->createdBy);?></th>
        <th class='w-80px'><?php echo $lang->user->dept;?></th>
        <th class='w-90px'><?php commonModel::printOrderLink('type', $orderBy, $vars, $lang->overtime->type);?></th>
        <th class='w-150px'><?php commonModel::printOrderLink('begin', $orderBy, $vars, $lang->overtime->begin);?></th>
        <th class='w-150px'><?php commonModel::printOrderLink('begin', $orderBy, $vars, $lang->overtime->end);?></th>
        <th><?php echo $lang->overtime->desc;?></th>
        <th class='w-120px'><?php commonModel::printOrderLink('status', $orderBy, $vars, $lang->overtime->status);?></th>
        <th class='w-100px'><?php echo $lang->actions;?></th>
      </tr>
    </thead>
    <?php foreach($overtimeList as $overtime):?>
    <tr class='text-center'>
      <td><?php echo $overtime->id;?></td>
      <td><?php echo zget($users, $overtime->createdBy);?></td>
      <td><?php echo zget($deptList, $overtime->dept);?></td>
      <td><?php echo zget($this->lang->overtime->typeList, $overtime->type);?></td>
      <td><?php echo formatTime($overtime->begin . ' ' . $overtime->start, DT_DATETIME2);?></td>
      <td><?php echo formatTime($overtime->end . ' ' . $overtime->finish, DT_DATETIME2);?></td>
      <td title='<?php echo $overtime->desc?>'><?php echo $overtime->desc;?></td>
      <td class='overtime-<?php echo $overtime->status?>' title='<?php echo $overtime->statusLabel;?>'><?php echo $overtime->statusLabel;?></td>
      <td>
        <?php
        $canReview = $this->overtime->isClickable($overtime, 'review');
        if($canReview)
        {
            echo html::a($this->createLink('oa.overtime', 'review', "id={$overtime->id}&status=pass"),   $lang->overtime->statusList['pass'],   "data-status='pass' data-toggle='ajax'");
            echo html::a($this->createLink('oa.overtime', 'review', "id={$overtime->id}&status=reject"), $lang->overtime->statusList['reject'], "data-toggle='modal'");
        }
        else
        {
            echo html::a('javascript:;', $lang->overtime->statusList['pass'],   "class='disabled'");
            echo html::a('javascript:;', $lang->overtime->statusList['reject'], "class='disabled'");
        }
        ?>
      </td>
    </tr>
    <?php endforeach;?>
  </table>
  <?php if(!$overtimeList):?>
  <div class='table-footer'>
    <div class='pager' style='float: right; clear: none'><?php echo $lang->pager->noRecord;?></div>
  </div>
  <?php endif;?>
</div>
<?php endif;?>

<?php if($type == 'lieu'):?>
<div class='panel main-table' data-ride='table'>
  <table class='table has-sort-head <?php echo $appendClass?>' id='lieuTable'>
    <thead>
      <tr class='text-center'>
        <?php $vars = "type={$type}&orderBy=%s";?>
        <th class='w-80px'><?php commonModel::printOrderLink('id', $orderBy, $vars, $lang->lieu->id);?></th>
        <th class='w-80px'><?php commonModel::printOrderLink('createdBy', $orderBy, $vars, $lang->lieu->createdBy);?></th>
        <th class='w-80px'><?php echo $lang->user->dept;?></th>
        <th class='w-150px'><?php commonModel::printOrderLink('begin', $orderBy, $vars, $lang->lieu->begin);?></th>
        <th class='w-150px'><?php commonModel::printOrderLink('begin', $orderBy, $vars, $lang->lieu->end);?></th>
        <th><?php echo $lang->lieu->desc;?></th>
        <th class='w-120px'><?php commonModel::printOrderLink('status', $orderBy, $vars, $lang->lieu->status);?></th>
        <th class='w-100px'><?php echo $lang->actions;?></th>
      </tr>
    </thead>
    <?php foreach($lieuList as $lieu):?>
    <tr class='text-center'>
      <td><?php echo $lieu->id;?></td>
      <td><?php echo zget($users, $lieu->createdBy);?></td>
      <td><?php echo zget($deptList, $lieu->dept);?></td>
      <td><?php echo formatTime($lieu->begin . ' ' . $lieu->start, DT_DATETIME2);?></td>
      <td><?php echo formatTime($lieu->end . ' ' . $lieu->finish, DT_DATETIME2);?></td>
      <td title='<?php echo $lieu->desc?>'><?php echo $lieu->desc;?></td>
      <td class='lieu-<?php echo $lieu->status;?>' title='<?php echo $lieu->statusLabel;?>'><?php echo $lieu->statusLabel;?></td>
      <td>
        <?php
        $canReview = $this->lieu->isClickable($lieu, 'review');
        if($canReview)
        {
            echo html::a($this->createLink('oa.lieu', 'review', "id={$lieu->id}&status=pass"),   $lang->lieu->statusList['pass'],   "data-status='pass' data-toggle='ajax'");
            echo html::a($this->createLink('oa.lieu', 'review', "id={$lieu->id}&status=reject"), $lang->lieu->statusList['reject'], "data-toggle='modal'");
        }
        else
        {
            echo html::a('javascript:;', $lang->lieu->statusList['pass'],   "class='disabled'");
            echo html::a('javascript:;', $lang->lieu->statusList['reject'], "class='disabled'");
        }
        ?>
      </td>
    </tr>
    <?php endforeach;?>
  </table>
  <?php if(!$lieuList):?>
  <div class='table-footer'>
    <div class='pager' style='float: right; clear: none'><?php echo $lang->pager->noRecord;?></div>
  </div>
  <?php endif;?>
</div>
<?php endif;?>

<?php if(($type == 'all' && !empty($refunds)) || $type == 'refund'):?>
<div class='panel main-table' data-ride='table'>
  <table class='table has-sort-head <?php echo $appendClass?>'>
    <thead>
      <tr class='text-center'>
        <?php if($type == 'all'): ?>
        <th class='w-80px'><?php echo $lang->my->review->module;?></th>
        <?php else:?>
        <th class='w-80px'><?php echo $lang->refund->id;?></th>
        <?php endif;?>
        <th class='w-80px'><?php echo $lang->refund->createdBy;?></th>
        <th><?php echo $lang->refund->name;?></th>
        <th class='w-140px'><?php echo $lang->refund->category;?></th>
        <th class='w-120px text-right'><?php echo $lang->refund->money;?></th>
        <th class='w-120px'><?php echo $lang->refund->date;?></th>
        <th class='w-240px'><?php echo $lang->refund->desc;?></th>
        <th class='w-100px'><?php echo $lang->refund->status;?></th>
        <th class='w-100px'><?php echo $lang->actions;?></th>
      </tr>
    </thead>
    <?php foreach($refunds as $refund):?>
    <tr class='text-center'>
      <?php if($type == 'all'): ?>
        <td><?php echo $lang->refund->common;?></td>
      <?php else:?>
        <td><?php echo $refund->id;?></td>
      <?php endif;?>
      <td><?php echo zget($users, $refund->createdBy);?></td>
      <td class='text-left' title='<?php echo $refund->name;?>'><?php echo $refund->name;?></td>
      <td class='text-left' title='<?php echo zget($categories, $refund->category, '');?>'><?php echo zget($categories, $refund->category, '');?></td>
      <td class='text-right'><?php echo zget($currencySign, $refund->currency) . $refund->money;?></td>
      <td><?php echo formatTime($refund->date, DT_DATE1);?></td>
      <td class='text-left' title='<?php echo $refund->desc;?>'><?php echo $refund->desc;?></td>
      <td><?php echo $refund->statusLabel;?></td>
      <td>
        <?php
        $canReview = $this->refund->isClickable($refund, 'review');

        if($canReview)
        {
            echo html::a($this->createLink('oa.refund', 'review', "refundID={$refund->id}"), $lang->refund->review, "data-toggle='modal' data-width=900");
        }
        else
        {
            echo html::a('javascript:;', $lang->refund->review, "class='disabled'");
        }
        ?>
      </td>
    </tr>
    <?php endforeach;?>
  </table>
  <?php if(!$refunds):?>
  <div class='table-footer'>
    <div class='pager' style='float: right; clear: none'><?php echo $lang->pager->noRecord;?></div>
  </div>
  <?php endif;?>
</div>
<?php endif;?>

<?php if($type == 'all' && (!empty($leaveList) or !empty($makeupList) or !empty($overtimeList) or !empty($lieuList))):?>
<div class='panel main-table' data-ride='table'>
  <table class='table has-sort-head <?php echo $appendClass?>' id='leaveTable'>
    <thead>
      <tr class='text-center'>
        <th class='w-80px'><?php echo $lang->my->review->module;?></th>
        <th class='w-80px'><?php echo $lang->leave->createdBy;?></th>
        <th class='w-80px'><?php echo $lang->user->dept;?></th>
        <th class='w-100px'><?php echo $lang->leave->type;?></th>
        <th class='w-120px'><?php echo $lang->leave->begin;?></th>
        <th class='w-120px'><?php echo $lang->leave->end;?></th>
        <th class='w-60px'><?php echo $lang->leave->hours;?></th>
        <th><?php echo $lang->leave->desc;?></th>
        <th class='w-100px'><?php echo $lang->leave->status;?></th>
        <th class='w-100px'><?php echo $lang->actions;?></th>
      </tr>
    </thead>
    <?php foreach($leaveList as $leave):?>
    <tr class='text-center'>
      <td><?php echo $lang->leave->common;?></td>
      <td><?php echo zget($users, $leave->createdBy);?></td>
      <td><?php echo zget($deptList, $leave->dept);?></td>
      <td><?php echo zget($this->lang->leave->typeList, $leave->type);?></td>
      <td><?php echo formatTime($leave->begin . ' ' . $leave->start, DT_DATETIME2);?></td>
      <td><?php echo formatTime($leave->end . ' ' . $leave->finish, DT_DATETIME2);?></td>
      <td><?php echo $leave->hours;?></td>
      <td title='<?php echo $leave->desc?>'>
      <?php echo $leave->desc;?>
      </td>
      <td class='leave-<?php echo $leave->status?>'><?php echo $leave->statusLabel;?></td>
      <td>
        <?php
        $canReview = $this->leave->isClickable($leave, 'review');
        if($canReview)
        {
            $params = $leave->status == 'back' ? '&mode=back' : '';
            echo html::a($this->createLink('oa.leave', 'review', "id={$leave->id}&status=pass$params"),   $lang->leave->statusList['pass'],   "data-status='pass' data-toggle='ajax'");
            echo html::a($this->createLink('oa.leave', 'review', "id={$leave->id}&status=reject$params"), $lang->leave->statusList['reject'], "data-toggle='modal'");
        }
        else
        {
            echo html::a('javascript:;', $lang->leave->statusList['pass'],   "class='disabled'");
            echo html::a('javascript:;', $lang->leave->statusList['reject'], "class='disabled'");
        }
        ?>
      </td>
    </tr>
    <?php endforeach;?>

    <?php foreach($makeupList as $makeup):?>
    <tr class='text-center'>
      <td><?php echo $lang->makeup->common;?></td>
      <td><?php echo zget($users, $makeup->createdBy);?></td>
      <td><?php echo zget($deptList, $makeup->dept);?></td>
      <td><?php echo zget($this->lang->makeup->typeList, $makeup->type);?></td>
      <td><?php echo formatTime($makeup->begin . ' ' . $makeup->start, DT_DATETIME2);?></td>
      <td><?php echo formatTime($makeup->end . ' ' . $makeup->finish, DT_DATETIME2);?></td>
      <td><?php echo $makeup->hours;?></td>
      <td title='<?php echo $makeup->desc?>'><?php echo $makeup->desc;?></td>
      <td class='leave-<?php echo $makeup->status?>'><?php echo $makeup->statusLabel;?></td>
      <td>
        <?php
        $canReview = $this->makeup->isClickable($makeup, 'review');
        if($canReview)
        {
            echo html::a($this->createLink('oa.makeup', 'review', "id={$makeup->id}&status=pass"),   $lang->makeup->statusList['pass'],   "data-status='pass' data-toggle='ajax'");
            echo html::a($this->createLink('oa.makeup', 'review', "id={$makeup->id}&status=reject"), $lang->makeup->statusList['reject'], "data-toggle='modal'");
        }
        else
        {
            echo html::a('javascript:;', $lang->makeup->statusList['pass'],   "class='disabled'");
            echo html::a('javascript:;', $lang->makeup->statusList['reject'], "class='disabled'");
        }
        ?>
      </td>
    </tr>
    <?php endforeach;?>

    <?php foreach($overtimeList as $overtime):?>
    <tr class='text-center'>
      <td><?php echo $lang->overtime->common;?></td>
      <td><?php echo zget($users, $overtime->createdBy);?></td>
      <td><?php echo zget($deptList, $overtime->dept);?></td>
      <td><?php echo zget($this->lang->overtime->typeList, $overtime->type);?></td>
      <td><?php echo formatTime($overtime->begin . ' ' . $overtime->start, DT_DATETIME2);?></td>
      <td><?php echo formatTime($overtime->end . ' ' . $overtime->finish, DT_DATETIME2);?></td>
      <td><?php echo $overtime->hours;?></td>
      <td title='<?php echo $overtime->desc?>'><?php echo $overtime->desc;?></td>
      <td class='overtime-<?php echo $overtime->status?>'><?php echo $overtime->statusLabel;?></td>
      <td>
        <?php
        $canReview = $this->overtime->isClickable($overtime, 'review');
        if($canReview)
        {
            echo html::a($this->createLink('oa.overtime', 'review', "id={$overtime->id}&status=pass"),   $lang->overtime->statusList['pass'],   "data-status='pass' data-toggle='ajax'");
            echo html::a($this->createLink('oa.overtime', 'review', "id={$overtime->id}&status=reject"), $lang->overtime->statusList['reject'], "data-toggle='modal'");
        }
        else
        {
            echo html::a('javascript:;', $lang->overtime->statusList['pass'],   "class='disabled'");
            echo html::a('javascript:;', $lang->overtime->statusList['reject'], "class='disabled'");
        }
        ?>
      </td>
    </tr>
    <?php endforeach;?>

    <?php foreach($lieuList as $lieu):?>
    <tr class='text-center'>
      <td><?php echo $lang->lieu->common;?></td>
      <td><?php echo zget($users, $lieu->createdBy);?></td>
      <td><?php echo zget($deptList, $lieu->dept);?></td>
      <td><?php echo $lang->leave->typeList['lieu'];?></td>
      <td><?php echo formatTime($lieu->begin . ' ' . $lieu->start, DT_DATETIME2);?></td>
      <td><?php echo formatTime($lieu->end . ' ' . $lieu->finish, DT_DATETIME2);?></td>
      <td><?php echo $lieu->hours;?></td>
      <td title='<?php echo $lieu->desc?>'><?php echo $lieu->desc;?></td>
      <td class='lieu-<?php echo $lieu->status?>'><?php echo $lieu->statusLabel;?></td>
      <td>
        <?php
        $canReview = $this->lieu->isClickable($lieu, 'review');
        if($canReview)
        {
            echo html::a($this->createLink('oa.lieu', 'review', "id={$lieu->id}&status=pass"),   $lang->lieu->statusList['pass'],   "data-status='pass' data-toggle='ajax'");
            echo html::a($this->createLink('oa.lieu', 'review', "id={$lieu->id}&status=reject"), $lang->lieu->statusList['reject'], "data-toggle='modal'");
        }
        else
        {
            echo html::a('javascript:;', $lang->lieu->statusList['pass'],   "class='disabled'");
            echo html::a('javascript:;', $lang->lieu->statusList['reject'], "class='disabled'");
        }
        ?>
      </td>
    </tr>
    <?php endforeach;?>

  </table>
  <?php if(!$leaveList && !$makeupList && !$overtimeList && !$lieuList):?>
  <div class='table-footer'>
    <div class='pager' style='float: right; clear: none'><?php echo $lang->pager->noRecord;?></div>
  </div>
  <?php endif;?>
</div>
<?php endif;?>

<?php include '../../common/view/footer.html.php';?>