m.all.html.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. /**
  3. * The all mobile view file of execution module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2016 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Fei Chen <chenfei@cnezsoft.com>
  8. * @package execution
  9. * @version $Id
  10. * @link http://www.zentao.net
  11. */
  12. $bodyClass = 'with-menu-top';
  13. include "../../common/view/m.header.html.php";
  14. ?>
  15. <nav id='menu' class='menu nav affix dock-top canvas'>
  16. <?php echo html::a($this->createLink($this->app->rawModule, $this->app->rawMethod, "status=undone&projectID=$projectID"), $lang->execution->undone, '', "id='undoneTab'");?>
  17. <?php echo html::a($this->createLink($this->app->rawModule, $this->app->rawMethod, "status=all&projectID=$projectID"), $lang->execution->all, '', "id='allTab'");?>
  18. <?php echo html::a($this->createLink($this->app->rawModule, $this->app->rawMethod, "status=wait&projectID=$projectID"), $lang->execution->statusList['wait'], '', "id='waitTab'");?>
  19. <?php echo html::a($this->createLink($this->app->rawModule, $this->app->rawMethod, "status=doing&projectID=$projectID"), $lang->execution->statusList['doing'], '', "id='doingTab'");?>
  20. <?php echo html::a($this->createLink($this->app->rawModule, $this->app->rawMethod, "status=suspended&projectID=$projectID"), $lang->execution->statusList['suspended'], '', "id='suspendedTab'");?>
  21. <a class='moreMenu hidden' data-display='dropdown' data-placement='beside-bottom'><?php echo $lang->more;?></a>
  22. <div id='moreMenu' class='list dropdown-menu'></div>
  23. </nav>
  24. <div class='heading'>
  25. <div class='title'>
  26. <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>
  27. </div>
  28. </div>
  29. <section id='page' class='section list-with-pager'>
  30. <?php $refreshUrl = $this->createLink('execution', 'all', "status=$status&projectID=$projectID&orderBy=$orderBy&productID=$productID&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}");?>
  31. <div class='box' data-page='<?php echo $pager->pageID;?>' data-refresh-url='<?php echo $refreshUrl;?>'>
  32. <table class='table bordered no-margin'>
  33. <thead>
  34. <tr>
  35. <th><?php echo $lang->execution->name;?> </th>
  36. <th class='text-center w-70px'><?php echo $lang->statusAB;?> </th>
  37. <th class='text-center w-80px'><?php echo $lang->execution->progress;?> </th>
  38. </tr>
  39. </thead>
  40. <?php foreach($executionStats as $execution):?>
  41. <tr class='text-center' data-url='<?php echo $this->createLink('execution', 'view', "executionID={$execution->id}")?>' data-id='<?php echo $execution->id;?>'>
  42. <td class='text-left'><?php echo $execution->name;?></td>
  43. <?php if(isset($execution->delay)):?>
  44. <td><?php echo $lang->execution->delayed;?></td>
  45. <?php else:?>
  46. <td><?php echo $lang->execution->statusList[$execution->status];?></td>
  47. <?php endif;?>
  48. <td><?php echo $execution->hours->progress;?>%</td>
  49. </tr>
  50. <?php endforeach;?>
  51. </table>
  52. </div>
  53. <nav class='nav justify pager'>
  54. <?php $pager->show($align = 'justify');?>
  55. </nav>
  56. </section>
  57. <div class='list sort-panel hidden affix enter-from-bottom layer' id='sortPanel'>
  58. <?php
  59. $vars = "status={$status}&executionID={$executionID}&orderBy=%s&productID={$productID}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}";
  60. $sortOrders = array('id', 'name', 'begin', 'end', 'PM', 'status', 'order');
  61. foreach($sortOrders as $sortOrder)
  62. {
  63. commonModel::printOrderLink($sortOrder, $orderBy, $vars, '<i class="icon icon-sort-indicator"></i>' . ($sortOrder == 'id' ? $lang->idAB : $lang->execution->{$sortOrder}));
  64. }
  65. ?>
  66. </div>
  67. <script>$("#<?php echo $status;?>Tab").addClass('active');</script>
  68. <?php include "../../common/view/m.footer.html.php"; ?>