m.story.html.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. /**
  3. * The story browse 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. 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('execution', 'story', "executionID={$execution->id}&orderBy=%s&type=$type&param=$param&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}");?>
  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->story->title;?> </th>
  26. <th class='text-center w-80px'><?php echo $lang->story->stage;?> </th>
  27. </tr>
  28. </thead>
  29. <?php foreach($stories as $story):?>
  30. <tr class='text-center' data-url='<?php echo $this->createLink('story', 'view', "storyID={$story->id}")?>' data-id='<?php echo $story->id;?>'>
  31. <td class='text-left'><?php echo $story->title;?></td>
  32. <td class='story-<?php echo $story->stage?>'><?php echo zget($lang->story->stageList, $story->stage);?></td>
  33. </tr>
  34. <?php endforeach;?>
  35. <?php if($stories):?>
  36. <tfoot>
  37. <tr><td colspan='2'><small><?php echo $summary?></small></td></tr>
  38. </tfoot>
  39. <?php endif;?>
  40. </table>
  41. </div>
  42. <nav class='nav justify pager'>
  43. <?php $pager->show($align = 'justify');?>
  44. </nav>
  45. </section>
  46. <div class='list sort-panel hidden affix enter-from-bottom layer' id='sortPanel'>
  47. <?php
  48. $vars = "executionID={$execution->id}&orderBy=%s&type=$type&param=$param&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}";
  49. $sortOrders = array('id', 'pri', 'title', 'plan', 'openedBy', 'openedDate', 'assignedTo', 'status');
  50. foreach($sortOrders as $sortOrder)
  51. {
  52. commonModel::printOrderLink($sortOrder, $orderBy, $vars, '<i class="icon icon-sort-indicator"></i>' . $lang->story->{$sortOrder});
  53. }
  54. ?>
  55. </div>
  56. <?php include "../../common/view/m.footer.html.php"; ?>