m.browse.html.php 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. /**
  3. * The browse view file of lieu module of ZDOO.
  4. *
  5. * @copyright Copyright 2009-2016 青岛易软天创网络科技有限公司(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.zdoo.com
  11. */
  12. ?>
  13. <?php if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
  14. <?php include "../../common/view/m.header.html.php";?>
  15. <?php js::set('confirmReview', $lang->lieu->confirmReview)?>
  16. <style>
  17. .list > .list {margin-left: 10px;}
  18. .list > .item {padding: 8px;}
  19. </style>
  20. <div class='heading'>
  21. <div class='title'>
  22. <?php if(!empty($yearList)):?>
  23. <a data-display='dropdown' data-placement='beside-bottom-start'><i class='icon-bars'></i> &nbsp; <?php echo $lang->lieu->date;?></a>
  24. <div class='list dropdown-menu'>
  25. <?php foreach($yearList as $year):?>
  26. <a class='item item-year' href='<?php echo inlink($type, "date={$year}");?>'><?php echo $year;?></a>
  27. <div class='list'>
  28. <?php foreach($monthList[$year] as $month):?>
  29. <a class='item item-month' href='<?php echo inlink($type, "date=$year$month");?>'>
  30. <?php echo $year . $month;?>
  31. </a>
  32. <?php endforeach;?>
  33. </div>
  34. <?php endforeach;?>
  35. </div>
  36. <?php else:?>
  37. <a id='sortTrigger' class='text-right sort-trigger' data-display data-target='#sortPanel' data-backdrop='true'><i class='icon icon-sort'></i>&nbsp;<span class='sort-name'><?php echo $lang->sort;?></span></a>
  38. <?php endif;?>
  39. </div>
  40. <nav class='nav'>
  41. <?php if(!empty($yearList)):?>
  42. <a id='sortTrigger' class='text-right sort-trigger' data-display data-target='#sortPanel' data-backdrop='true'><i class='icon icon-sort'></i>&nbsp;<span class='sort-name'><?php echo $lang->sort;?></span></a>
  43. <?php endif;?>
  44. <a class='btn primary' data-display='modal' data-placement='bottom' data-remote='<?php echo $this->createLink('lieu', 'create') ?>'>
  45. <i class='icon icon-plus'></i> &nbsp;&nbsp;<?php echo $lang->lieu->create;?>
  46. </a>
  47. </nav>
  48. </div>
  49. <section id='page' class='section list-with-actions'>
  50. <?php $refreshUrl = $this->createLink('lieu', 'browse', "type={$type}&date={$date}&orderBy=$orderBy");?>
  51. <div class='box' data-refresh-url='<?php echo $refreshUrl;?>'>
  52. <table class='table bordered'>
  53. <thead>
  54. <tr>
  55. <th class='text-center'><?php echo $lang->lieu->createdBy;?></th>
  56. <th class='w-80px'><?php echo $lang->lieu->hours;?></th>
  57. <th class='w-100px text-center'><?php echo $lang->lieu->status;?></th>
  58. </tr>
  59. </thead>
  60. <?php foreach($lieuList as $lieu):?>
  61. <tr class='text-center' >
  62. <td><?php echo zget($users, $lieu->createdBy);?></td>
  63. <td><?php echo $lieu->hours;?></td>
  64. <td><span class='label status-<?php echo $lieu->status?>-pale'><?php echo zget($lang->lieu->statusList, $lieu->status);?></span></td>
  65. </tr>
  66. <?php endforeach;?>
  67. </table>
  68. </div>
  69. </section>
  70. <div class='list sort-panel hidden affix enter-from-bottom layer' id='sortPanel'>
  71. <?php
  72. $vars = "data={$date}&orderBy=%s";
  73. $orders = array('id', 'createdBy', 'begin', 'end', 'hours', 'status', 'reviewedBy');
  74. foreach($orders as $order)
  75. {
  76. commonModel::printOrderLink($order, $orderBy, $vars, '<i class="icon icon-sort-indicator"></i>' . $lang->lieu->{$order});
  77. }
  78. ?>
  79. </div>
  80. <?php include "../../common/view/m.footer.html.php";?>