x.browse.html.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * The browse view file of overtime module of RanZhi.
  4. *
  5. * @copyright Copyright 2009-2018 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
  6. * @license ZPL (http://zpl.pub/page/zplv12.html)
  7. * @author Gang Liu <liugang@cnezsoft.com>
  8. * @package overtime
  9. * @version $Id$
  10. * @link http://www.ranzhi.org
  11. */
  12. ?>
  13. <?php include $app->getModuleRoot() . 'common/view/header.lite.html.php';?>
  14. <?php js::set('confirmReview', $lang->overtime->confirmReview)?>
  15. <?php $batchReview = $type == 'browseReview' && commonModel::hasPriv('overtime', 'batchReview');?>
  16. <div class='panel xuanxuan-card'>
  17. <?php $batchReview = false;?>
  18. <?php if($batchReview):?>
  19. <form id='ajaxForm' method='post' action='<?php echo inlink('batchReview', 'status=pass');?>'>
  20. <?php endif;?>
  21. <table class='table table-hover text-center table-fixed tablesorter' id='overtimeTable'>
  22. <thead>
  23. <tr class='text-center'>
  24. <?php $vars = "&date={$date}&orderBy=%s";?>
  25. <?php if($batchReview):?>
  26. <th class='w-80px'><?php commonModel::printOrderLink('id', $orderBy, $vars, $lang->overtime->id);?></th>
  27. <?php endif;?>
  28. <th class='w-80px'><?php commonModel::printOrderLink('createdBy', $orderBy, $vars, $lang->overtime->createdBy);?></th>
  29. <th class='w-150px'><?php commonModel::printOrderLink('begin', $orderBy, $vars, $lang->overtime->begin);?></th>
  30. <th class='w-150px'><?php commonModel::printOrderLink('end', $orderBy, $vars, $lang->overtime->end);?></th>
  31. <th class='text-left'><?php echo $lang->overtime->desc;?></th>
  32. </tr>
  33. </thead>
  34. <?php foreach($overtimeList as $overtime):?>
  35. <?php $viewUrl = commonModel::hasPriv('overtime', 'view') ? $this->createLink('overtime', 'view', "id=$overtime->id&type=$type") : '';?>
  36. <tr id='overtime<?php echo $overtime->id;?>' >
  37. <?php if($batchReview):?>
  38. <td class='idTD'>
  39. <label class='checkbox-inline'><input type='checkbox' name='overtimeIDList[]' value='<?php echo $overtime->id;?>'/> <?php echo $overtime->id;?></label>
  40. </td>
  41. <?php endif;?>
  42. <td><?php echo zget($users, $overtime->createdBy);?></td>
  43. <td><?php echo formatTime($overtime->begin . ' ' . $overtime->start, DT_DATETIME2);?></td>
  44. <td><?php echo formatTime($overtime->end . ' ' . $overtime->finish, DT_DATETIME2);?></td>
  45. <td class='text-left' title='<?php echo $overtime->desc?>'><?php echo $overtime->desc;?></td>
  46. </tr>
  47. <?php endforeach;?>
  48. </table>
  49. <?php if($overtimeList && $batchReview):?>
  50. <?php endif;?>
  51. <?php if(!$overtimeList):?>
  52. <?php endif;?>
  53. </div>
  54. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>