m.testtask.html.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * The browse mobile view file of project module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2015 禅道软件(青岛)有限公司(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 Yidong Wang <yidong@cnezsoft.com>
  8. * @package project
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. include "../../common/view/m.header.html.php";
  13. ?>
  14. <div class='heading'>
  15. <div class='title'>
  16. <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>
  17. </div>
  18. </div>
  19. <section id='page' class='section list-with-pager'>
  20. <?php $refreshUrl = $this->createLink('project', 'testtask', http_build_query($this->app->getParams()));?>
  21. <div class='box' data-page='<?php echo $pager->pageID ?>' data-refresh-url='<?php echo $refreshUrl ?>'>
  22. <table class='table bordered no-margin'>
  23. <thead>
  24. <tr>
  25. <th><?php echo $lang->testtask->name;?></th>
  26. <th class='w-100px'><?php echo $lang->testtask->begin;?></th>
  27. <th class='w-100px'><?php echo $lang->testtask->end;?></th>
  28. </tr>
  29. </thead>
  30. <?php foreach($tasks as $product => $productTasks):?>
  31. <?php foreach($productTasks as $task):?>
  32. <tr class='text-center' data-url='<?php echo $this->createLink('testtask', 'view', "taskID={$task->id}")?>' data-id='<?php echo$task->id;?>'>
  33. <td class='text-left'><?php echo $task->name;?></td>
  34. <td><?php echo $task->begin;?></td>
  35. <td><?php echo $task->end;?></td>
  36. </tr>
  37. <?php endforeach;?>
  38. <?php endforeach;?>
  39. </table>
  40. </div>
  41. <nav class='nav justified pager'>
  42. <?php $pager->show($align = 'justify');?>
  43. </nav>
  44. </section>
  45. <div class='list sort-panel hidden affix enter-from-bottom layer' id='sortPanel'>
  46. <?php $vars = "productID=$productID&branch=$branch&type=$scope,$status&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}"; ?>
  47. <?php
  48. $sortOrders = array('id', 'name', 'begin', 'end', 'owner', 'status', 'build');
  49. foreach ($sortOrders as $order)
  50. {
  51. commonModel::printOrderLink($order, $orderBy, $vars, '<i class="icon icon-sort-indicator"></i>' . ($lang->testtask->{$order}));
  52. }
  53. ?>
  54. </div>
  55. <?php include "../../common/view/m.footer.html.php"; ?>