x.browse.html.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * The browse view file of lieu 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 lieu
  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->lieu->confirmReview)?>
  15. <?php $batchReview = $type == 'browseReview' && commonModel::hasPriv('lieu', '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='lieuTable'>
  22. <thead>
  23. <tr class='text-center'>
  24. <?php $vars = "&date={$date}&orderBy=%s";?>
  25. <?php if($batchReview):?>
  26. <th class='w-50px'><?php commonModel::printOrderLink('id', $orderBy, $vars, $lang->lieu->id);?></th>
  27. <?php endif;?>
  28. <th class='w-70px'><?php commonModel::printOrderLink('createdBy', $orderBy, $vars, $lang->lieu->createdBy);?></th>
  29. <th class='w-120px'><?php commonModel::printOrderLink('begin', $orderBy, $vars, $lang->lieu->begin);?></th>
  30. <th class='w-120px'><?php commonModel::printOrderLink('end', $orderBy, $vars, $lang->lieu->end);?></th>
  31. <th class='text-left'><?php echo $lang->lieu->desc;?></th>
  32. </tr>
  33. </thead>
  34. <?php foreach($lieuList as $lieu):?>
  35. <?php $viewUrl = commonModel::hasPriv('lieu', 'view') ? $this->createLink('lieu', 'view', "id={$lieu->id}&type=$type") : '';?>
  36. <tr id='lieu<?php echo $lieu->id;?>' >
  37. <?php if($batchReview):?>
  38. <td class='idTD'>
  39. <label class='checkbox-inline'><input type='checkbox' name='lieuIDList[]' value='<?php echo $lieu->id;?>'/> <?php echo $lieu->id;?></label>
  40. </td>
  41. <?php endif;?>
  42. <td><?php echo zget($users, $lieu->createdBy);?></td>
  43. <td><?php echo formatTime($lieu->begin . ' ' . $lieu->start, DT_DATETIME2);?></td>
  44. <td><?php echo formatTime($lieu->end . ' ' . $lieu->finish, DT_DATETIME2);?></td>
  45. <td class='text-left' title='<?php echo $lieu->desc;?>'><?php echo $lieu->desc;?></td>
  46. </tr>
  47. <?php endforeach;?>
  48. </table>
  49. <?php if($lieuList && $batchReview):?>
  50. <?php endif;?>
  51. <?php if(!$lieuList):?>
  52. <?php endif;?>
  53. </div>
  54. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>