m.browse.html.php 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?php
  2. /**
  3. * The browse mobile view file of trip 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 Tingting Dai <daitingting@xirangit.com>
  8. * @package trip
  9. * @version $Id
  10. * @link http://www.zdoo.com
  11. */
  12. if($extView = $this->getExtViewFile(__FILE__)){include $extView; return helper::cd();}
  13. include "../../common/view/m.header.html.php";?>
  14. <style>
  15. .list > .list {margin-left: 10px;}
  16. .list > .item {padding: 8px;}
  17. </style>
  18. <div class='heading'>
  19. <div class='title'>
  20. <a data-display='dropdown' data-placement='beside-bottom-start'><i class='icon-bars'></i> &nbsp; <?php echo $lang->$type->date;?></a>
  21. <div class='list dropdown-menu'>
  22. <?php if($yearList):?>
  23. <?php foreach($yearList as $year):?>
  24. <a class='item item-year' href='<?php echo $this->createLink($type, $mode, "date={$year}");?>'><?php echo $year;?></a>
  25. <div class='list'>
  26. <?php foreach($monthList[$year] as $month):?>
  27. <a class='item item-month' href='<?php echo $this->createLink($type, $mode, "date=$year$month");?>'>
  28. <?php echo $year . $month;?>
  29. </a>
  30. <?php endforeach;?>
  31. </div>
  32. <?php endforeach;?>
  33. <?php endif;?>
  34. </div>
  35. </div>
  36. <nav class='nav'>
  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. <a class='btn primary' data-display='modal' data-placement='bottom' data-remote='<?php echo $this->createLink($type, 'create') ?>'>
  39. <i class='icon icon-plus'></i> &nbsp;&nbsp;<?php echo $lang->$type->create;?>
  40. </a>
  41. </nav>
  42. </div>
  43. <section id='page' class='section list-with-pager'>
  44. <?php $refreshUrl = $this->createLink($type, 'browse', "mode={$mode}&date={$date}&orderBy=$orderBy");?>
  45. <div class='box' data-refresh-url='<?php echo $refreshUrl;?>'>
  46. <table class='table bordered'>
  47. <thead>
  48. <tr>
  49. <th class='w-80px text-center'><?php echo $lang->$type->createdBy;?></th>
  50. <th><?php echo $lang->$type->name;?></th>
  51. <?php if($type == 'trip'):?>
  52. <th class='w-80px'><?php echo $lang->$type->from;?></th>
  53. <?php endif;?>
  54. <th class='w-80px text-center'><?php echo $lang->$type->to;?></th>
  55. </tr>
  56. </thead>
  57. <?php foreach($tripList as $trip):?>
  58. <tr class='text-center' >
  59. <td><?php echo zget($users, $trip->createdBy);?></td>
  60. <td class='text-left'><?php echo $trip->name;?></td>
  61. <?php if($type == 'trip'):?>
  62. <td><?php echo $trip->from;?></td>
  63. <?php endif;?>
  64. <td><?php echo $trip->to;?></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', 'name', 'customer', 'begin', 'end', 'to');
  74. foreach($orders as $order)
  75. {
  76. commonModel::printOrderLink($order, $orderBy, $vars, '<i class="icon icon-sort-indicator"></i>' . $lang->$type->{$order});
  77. }
  78. ?>
  79. </div>
  80. <?php include "../../common/view/m.footer.html.php";?>