view.html.php 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <?php
  2. /**
  3. * The view of meeting module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2021 禅道软件(青岛)有限公司(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 Li Yuchun <liyuchun@easycorp.ltd>
  8. * @package view
  9. * @version $Id
  10. * @link https://www.zentao.net
  11. */
  12. ?>
  13. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  14. <?php $browseLink = $app->session->meetingList ? $app->session->meetingList : $this->createLink('meeting', 'browse', "projectID=$projectID&from=$from");?>
  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' data-app='{$app->tab}'");?>
  19. <div class="divider"></div>
  20. <?php endif;?>
  21. <div class="page-title">
  22. <span class="label label-id"><?php echo $meeting->id?></span>
  23. <span class="text" title='<?php echo $meeting->name;?>'><?php echo $meeting->name;?></span>
  24. <?php if($meeting->deleted):?>
  25. <span class='label label-danger'><?php echo $lang->meeting->deleted;?></span>
  26. <?php endif; ?>
  27. </div>
  28. </div>
  29. </div>
  30. <div id="mainContent" class="main-row">
  31. <div class="main-col col-8">
  32. <div class="cell">
  33. <div class="detail">
  34. <div class="detail-title"><?php echo $lang->meeting->date;?></div>
  35. <div class="detail-content article-content"><?php echo $meeting->date . ' ' . $meeting->begin . ' - ' . $meeting->end;?></div>
  36. </div>
  37. <div class="detail">
  38. <div class="detail-title"><?php echo $lang->meeting->participant;?></div>
  39. <div class="detail-content article-content"><?php echo $meeting->participantName;?></div>
  40. </div>
  41. <div class="detail">
  42. <div class="detail-title"><?php echo $lang->meeting->minutes;?></div>
  43. <div class="detail-content article-content"><?php echo $meeting->minutes;?></div>
  44. </div>
  45. <?php echo $this->fetch('file', 'printFiles', array('files' => $meeting->files, 'fieldset' => 'true', 'object' => $meeting));?>
  46. </div>
  47. <div class="cell"><?php include $app->getModuleRoot() . 'common/view/action.html.php';?></div>
  48. <div class='main-actions'>
  49. <div class="btn-toolbar">
  50. <?php common::printBack($browseLink . "#app={$app->tab}");?>
  51. <?php if(!isonlybody()) echo "<div class='divider'></div>";?>
  52. <?php if(!$meeting->deleted):?>
  53. <?php
  54. echo "<div class='divider'></div>";
  55. common::printIcon('meeting', 'edit', "meetingID=$meeting->id" . "&from=$from", $meeting);
  56. common::printIcon('meeting', 'minutes', "meetingID=$meeting->id", $meeting, 'list', 'summary', '', 'iframe', true);
  57. common::printIcon('meeting', 'delete', "meetingID=$meeting->id&from=$from", $meeting, 'button', 'trash', 'hiddenwin');
  58. ?>
  59. <?php endif;?>
  60. </div>
  61. </div>
  62. </div>
  63. <div class="side-col col-4">
  64. <div class="cell">
  65. <div class='tabs'>
  66. <ul class='nav nav-tabs'>
  67. <li class='active'><a href='' data-toggle='tab'><?php echo $lang->meeting->legendBasicInfo;?></a></li>
  68. </ul>
  69. <div class='tab-content'>
  70. <div class='tab-pane active' id='basicInfo'>
  71. <table class="table table-data">
  72. <tbody>
  73. <?php if(!empty($project)):?>
  74. <tr>
  75. <th class='w-90px'><?php echo $lang->meeting->project;?></th>
  76. <td><?php if(!common::printLink('project', 'view', "projectID=$meeting->project", $project->name, '', 'data-app="project"')) echo $execution->name;?></td>
  77. </tr>
  78. <?php endif;?>
  79. <?php if(!empty($execution) && $execution->multiple):?>
  80. <tr>
  81. <th class='w-90px'><?php echo $lang->meeting->execution;?></th>
  82. <td><?php if(!common::printLink('execution', 'view', "executionID=$meeting->execution", $execution->name, '', 'data-app="execution"')) echo $execution->name;?></td>
  83. </tr>
  84. <?php endif;?>
  85. <tr>
  86. <th class="<?php echo $this->app->getClientLang() == 'zh-cn' ? 'w-90px' : 'w-100px';?>"><?php echo $lang->meeting->room;?></th>
  87. <td><?php echo zget($rooms, $meeting->room, '');?></td>
  88. </tr>
  89. <tr>
  90. <th><?php echo $lang->meeting->dept;?></th>
  91. <td><?php echo zget($depts, $meeting->dept);?></td>
  92. </tr>
  93. <tr>
  94. <th><?php echo $lang->meeting->mode;?></th>
  95. <td><?php echo zget($lang->meeting->modeList, $meeting->mode);?></td>
  96. </tr>
  97. <tr>
  98. <th><?php echo $lang->meeting->type;?></th>
  99. <td><?php echo zget($typeList, $meeting->type);?></td>
  100. </tr>
  101. <?php if($meeting->objectType and $meeting->objectID):?>
  102. <tr>
  103. <th><?php echo $lang->meeting->linked . $config->meeting->objectTypeList[$meeting->objectType];?></th>
  104. <td><?php echo html::a($this->createLink($meeting->objectType, 'view', $meeting->objectType . "ID=" . $meeting->objectID, '', true), $meeting->objectName, '', isonlybody() ? '' : "class='iframe'");?></td>
  105. </tr>
  106. <?php endif;?>
  107. <tr>
  108. <th><?php echo $lang->meeting->host;?></th>
  109. <td><?php echo zget($users, $meeting->host);?></td>
  110. </tr>
  111. </tbody>
  112. </table>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. <div class="cell">
  118. <div class='tabs'>
  119. <ul class='nav nav-tabs'>
  120. <li class='active'><a href='' data-toggle='tab'><?php echo $lang->meeting->legendLifeTime;?></a></li>
  121. </ul>
  122. <div class='tab-content'>
  123. <div class='tab-pane active' id='legendLifeTime'>
  124. <table class="table table-data">
  125. <tbody>
  126. <tr>
  127. <th class="w-90px"><?php echo $lang->meeting->minutedBy;?></th>
  128. <td><?php echo zget($users, $meeting->minutedBy);?></td>
  129. </tr>
  130. <tr>
  131. <th class='w-90px'><?php echo $lang->meeting->minutedDate;?></th>
  132. <td><?php echo helper::isZeroDate($meeting->minutedDate) ? '' : $meeting->minutedDate;?></td>
  133. </tr>
  134. <tr>
  135. <th class='w-90px'><?php echo $lang->meeting->createdBy;?></th>
  136. <td><?php echo zget($users, $meeting->createdBy);?></td>
  137. </tr>
  138. <tr>
  139. <th class='w-90px'><?php echo $lang->meeting->createdDate;?></th>
  140. <td><?php echo $meeting->createdDate;?></td>
  141. </tr>
  142. <tr>
  143. <th><?php echo $lang->meeting->editedBy;?></th>
  144. <td><?php echo zget($users, $meeting->editedBy);?></td>
  145. </tr>
  146. <tr>
  147. <th class='w-90px'><?php echo $lang->meeting->editedDate;?></th>
  148. <td><?php echo helper::isZeroDate($meeting->editedDate) ? '' : $meeting->editedDate;?></td>
  149. </tr>
  150. </tbody>
  151. </table>
  152. </div>
  153. </div>
  154. </div>
  155. </div>
  156. </div>
  157. </div>
  158. <div id="mainActions" class='main-actions'>
  159. <?php common::printPreAndNext($preAndNext, $this->createLink('meeting', 'view', "meetingID=%s&from=$from"));?>
  160. </div>
  161. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>