storyview.html.php 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?php
  2. /**
  3. * The storyview file of assetlib 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 Shujie Tian <tianshujie@easycorp.ltd>
  8. * @package assetlib
  9. * @version $Id: storyview.html.php 4952 2021-06-29 10:00:58Z tsj $
  10. * @link https://www.zentao.net
  11. */
  12. ?>
  13. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  14. <?php include $app->getModuleRoot() . 'common/view/kindeditor.html.php';?>
  15. <div id="mainMenu" class="clearfix">
  16. <div class="btn-toolbar pull-left">
  17. <?php if(!isonlybody()):?>
  18. <?php echo html::a($browseLink, '<i class="icon icon-back icon-sm"></i> ' . $lang->goback, '', "class='btn btn-secondary'");?>
  19. <div class="divider"></div>
  20. <?php endif;?>
  21. <div class="page-title">
  22. <span class="label label-id"><?php echo $story->id?></span>
  23. <span class="text" title='<?php echo $story->title;?>' style='color: <?php echo $story->color;?>'><?php echo $story->title?></span>
  24. </div>
  25. </div>
  26. </div>
  27. <div id="mainContent" class="main-row">
  28. <div class="main-col col-8">
  29. <div class="cell">
  30. <div class="detail">
  31. <div class="detail-title"><?php echo $lang->story->legendSpec;?></div>
  32. <div class="detail-content article-content"><?php echo $story->spec;?></div>
  33. </div>
  34. <div class="detail">
  35. <div class="detail-title"><?php echo $lang->story->legendVerify;?></div>
  36. <div class="detail-content article-content"><?php echo $story->verify;?></div>
  37. </div>
  38. <?php echo $this->fetch('file', 'printFiles', array('files' => $story->files, 'fieldset' => 'true', 'object' => $story));?>
  39. <?php $actionFormLink = $this->createLink('action', 'comment', "objectType=story&objectID=$story->id");?>
  40. </div>
  41. <div class="cell"><?php include $app->getModuleRoot() . 'common/view/action.html.php';?></div>
  42. <div class='main-actions'>
  43. <div class="btn-toolbar">
  44. <?php common::printBack($browseLink);?>
  45. <?php if(!isonlybody()) echo "<div class='divider'></div>";?>
  46. <?php
  47. common::printIcon('assetlib', 'editStory', "storyID=$story->id", $story, 'button', 'edit');
  48. if($story->status == 'draft') common::printIcon('assetlib', 'approveStory', "storyID=$story->id", $story, 'button', 'glasses', '', 'iframe showinonlybody', true);
  49. common::printIcon('assetlib', 'removeStory', "storyID=$story->id&oldPage=yes", $story, 'button', 'unlink', 'hiddenwin');
  50. ?>
  51. </div>
  52. </div>
  53. </div>
  54. <div class="side-col col-4">
  55. <div class="cell">
  56. <div class='tabs'>
  57. <ul class='nav nav-tabs'>
  58. <li class='active'><a href='#legendBasicInfo' data-toggle='tab'><?php echo $lang->story->legendBasicInfo;?></a></li>
  59. <li><a href='#legendLifeTime' data-toggle='tab'><?php echo $lang->story->legendLifeTime;?></a></li>
  60. </ul>
  61. <div class='tab-content'>
  62. <div class='tab-pane active' id='legendBasicInfo'>
  63. <table class="table table-data">
  64. <tbody>
  65. <?php $widthClass = common::checkNotCN() ? 'w-100px' : 'w-80px';?>
  66. <tr>
  67. <th class='<?php echo $widthClass?>'><?php echo $lang->assetlib->sourceStory;?></th>
  68. <td><?php echo html::a($this->createLink($story->type, 'view', "storyID={$story->fromStory}&version={$story->fromVersion}"), $story->sourceName)?></td>
  69. </tr>
  70. <tr>
  71. <th><?php echo $lang->story->status;?></th>
  72. <td><span class='status-story status-<?php echo $story->status?>'><span class="label label-dot"></span> <?php echo zget($lang->assetlib->statusList, $story->status);?></span></td>
  73. </tr>
  74. <tr>
  75. <th><?php echo $lang->story->category;?></th>
  76. <td><?php echo zget($lang->story->categoryList, $story->category, $story->category)?></td>
  77. </tr>
  78. <tr>
  79. <th><?php echo $lang->story->pri;?></th>
  80. <td><span class='label-pri <?php echo 'label-pri-' . $story->pri;?>' title='<?php echo zget($lang->story->priList, $story->pri)?>'><?php echo zget($lang->story->priList, $story->pri)?></span></td>
  81. </tr>
  82. <tr>
  83. <th><?php echo $lang->story->estimate;?></th>
  84. <td title="<?php echo $story->estimate . ' ' . $lang->hourCommon;?>"><?php echo $story->estimate . $config->hourUnit;?></td>
  85. </tr>
  86. <tr>
  87. <th><?php echo $lang->story->keywords;?></th>
  88. <td><?php echo $story->keywords;?></td>
  89. </tr>
  90. </tbody>
  91. </table>
  92. </div>
  93. <div class='tab-pane' id='legendLifeTime'>
  94. <table class="table table-data">
  95. <tbody>
  96. <tr>
  97. <th><?php echo $lang->assetlib->importedBy;?></th>
  98. <td><?php echo zget($users, $story->openedBy) . $lang->at . $story->openedDate;?></td>
  99. </tr>
  100. <tr>
  101. <th><?php echo $lang->assetlib->approvedBy;?></th>
  102. <td><?php if($story->status == 'active' and !empty($story->assignedTo)) echo zget($users, $story->assignedTo) . $lang->at . $story->approvedDate;?></td>
  103. </tr>
  104. <tr>
  105. <th><?php echo $lang->story->lastEditedBy;?></th>
  106. <td><?php if($story->lastEditedBy) echo zget($users, $story->lastEditedBy) . $lang->at . $story->lastEditedDate;?></td>
  107. </tr>
  108. </tbody>
  109. </table>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. <div class="modal fade" id="importToLib">
  117. <div class="modal-dialog mw-600px">
  118. <div class="modal-content">
  119. <div class="modal-header">
  120. <button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="icon icon-close"></i></button>
  121. <h4 class="modal-title"><?php echo $lang->story->importToLib;?></h4>
  122. </div>
  123. <div class="modal-body">
  124. <form method='post' class='form-ajax' action='<?php echo $this->createLink('story', 'importToLib', "storyID=$story->id");?>'>
  125. <table class='table table-form'>
  126. <tr>
  127. <th><?php echo $lang->story->lib;?></th>
  128. <td>
  129. <?php echo html::select('lib', $libs, '', "class='form-control chosen' required");?>
  130. </td>
  131. </tr>
  132. <?php if(!common::hasPriv('assetlib', 'approveStory') and !common::hasPriv('assetlib', 'batchApproveStory')):?>
  133. <tr>
  134. <th><?php echo $lang->story->approver;?></th>
  135. <td>
  136. <?php echo html::select('assignedTo', $approvers, '', "class='form-control chosen'");?>
  137. </td>
  138. </tr>
  139. <?php endif;?>
  140. <tr>
  141. <td colspan='3' class='text-center'>
  142. <?php echo html::submitButton($lang->story->importToLib, '', 'btn btn-primary');?>
  143. </td>
  144. </tr>
  145. </table>
  146. </form>
  147. </div>
  148. </div>
  149. </div>
  150. </div>
  151. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>