m.story.html.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * The story mobile view file of user 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 user
  9. * @version $Id: index.html.php 3830 2016-05-18 09:34:17Z liugang $
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php
  14. $bodyClass = 'with-menu-top';
  15. include "../../common/view/m.header.html.php";
  16. include "./m.featurebar.html.php";
  17. ?>
  18. <nav id='subMenu' class='menu nav gray'>
  19. <?php
  20. $that = zget($lang->user->thirdPerson, $user->gender);
  21. echo html::a(inlink('story', "userID={$user->id}&type=assignedTo"), sprintf($lang->user->assignedTo, $that));
  22. echo html::a(inlink('story', "userID={$user->id}&type=openedBy"), sprintf($lang->user->openedBy, $that));
  23. echo html::a(inlink('story', "userID={$user->id}&type=reviewedBy"), sprintf($lang->user->reviewedBy, $that));
  24. echo html::a(inlink('story', "userID={$user->id}&type=closedBy"), sprintf($lang->user->closedBy, $that));
  25. ?>
  26. <a class='moreSubMenu hidden' data-display='dropdown' data-placement='beside-bottom'><?php echo $lang->more;?></a>
  27. <div id='moreSubMenu' class='list dropdown-menu'></div>
  28. </nav>
  29. <section id='page' class='section list-with-pager'>
  30. <div class='box' data-page='<?php echo $pager->pageID ?>' data-refresh-url='<?php echo $this->createLink('user', 'story', "userID={$user->id}&type=$type&orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}"); ?>'>
  31. <table class='table bordered'>
  32. <thead>
  33. <tr>
  34. <th><?php echo $lang->story->title;?></th>
  35. <th class='text-center w-80px'><?php echo $lang->statusAB;?></th>
  36. <th class='text-center w-80px'><?php echo $lang->story->stage;?></th>
  37. </tr>
  38. </thead>
  39. <?php foreach($stories as $story):?>
  40. <tr class='text-center' data-url='<?php echo $this->createLink('story', 'view', "storyID={$story->id}");?>' data-id='<?php echo $story->id;?>'>
  41. <td class='text-left'><?php echo $story->title;?></td>
  42. <td class='story-<?php echo $story->status?>'><?php echo $lang->story->statusList[$story->status];?></td>
  43. <td><?php echo zget($lang->story->stageList, $story->stage);?></td>
  44. </tr>
  45. <?php endforeach;?>
  46. </table>
  47. </div>
  48. <nav class='nav justify pager'>
  49. <?php $pager->show($align = 'justify');?>
  50. </nav>
  51. </section>
  52. <script>
  53. $('#<?php echo $methodName?>' + 'Tab').addClass('active');
  54. $('#subMenu > a').removeClass('active').filter('[href*="<?php echo $type?>"]').addClass('active');
  55. </script>
  56. <?php include "../../common/view/m.footer.html.php"; ?>