loadroadmapstories.html.php 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * The ajax select story view file of charter 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 charter
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php include $app->getModuleRoot() . 'common/view/header.lite.html.php';?>
  14. <?php js::set('productID', $productID)?>
  15. <?php js::set('roadmapIDList', $roadmapIDList)?>
  16. <style>
  17. .c-id,
  18. </style>
  19. <div id="mainContent" class="main-content">
  20. <div class='main-header'>
  21. <h2><?php echo $lang->charter->roadmapStory;?></h2>
  22. <div class="btn-toolbar pull-left">
  23. <div class="input-control space w-150px">
  24. <?php echo html::select('roadmap', $roadmaps, $roadmapID, "onchange='changeRoadmap(this.value)' class='form-control chosen' data-placeholder='{$lang->charter->roadmap}'");?>
  25. </div>
  26. </div>
  27. </div>
  28. <?php if(empty($stories)):?>
  29. <div class="table-empty-tip">
  30. <p>
  31. <span class="text-muted"><?php echo $lang->charter->noData;?></span>
  32. </p>
  33. </div>
  34. <?php else:?>
  35. <table class='table table-fixed table-bordered' id='storyList'>
  36. <thead>
  37. <tr>
  38. <th class='w-60px text-center'><?php echo $lang->idAB;?></th>
  39. <th class='w-60px text-center'><?php echo $lang->priAB;?></th>
  40. <th><?php echo $lang->charter->storyAB;?></th>
  41. <th class='w-100px text-center'><?php echo $lang->story->module;?></th>
  42. <th class='w-100px text-center'><?php echo $lang->story->status;?></th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. <?php foreach($stories as $story):?>
  47. <?php $storyLink = $this->createLink($story->type, 'view', "storyID=$story->id"); //页面重构后才可以支持弹窗里打开重构后的页面,目前用target=_blank临时处理。?>
  48. <tr>
  49. <td class='c-id text-center'><?php echo $story->id;?></td>
  50. <?php $priClass = $story->pri ? "label-pri label-pri-{$story->pri}" : '';?>
  51. <td class='text-center'><span class='<?php echo $priClass;?>'><?php echo zget($lang->story->priList, $story->pri);?></span></td>
  52. <td class='text-left nobr c-name' title="<?php echo $story->title?>">
  53. <span class='label gray-pale'><?php echo $storyGrades["$story->type-$story->grade"]; ?></span>
  54. <?php echo common::hasPriv('story', 'storyView') ? html::a($storyLink, $story->title, '_blank') : $story->title;?>
  55. </td>
  56. <td class='text-center'><?php echo zget($modules, $story->module);?></td>
  57. <td class='text-center'><?php echo zget($lang->story->statusList, $story->status);?></td>
  58. </tr>
  59. <?php endforeach;?>
  60. </tbody>
  61. </table>
  62. <?php endif;?>
  63. </div>
  64. <?php include $app->getModuleRoot() . 'common/view/footer.lite.html.php';?>