edit.html.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <?php
  2. /**
  3. * The edit of opportunity 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 Shujie Tian <tianshujie@easycorp.ltd>
  8. * @package opportunity
  9. * @version $Id: edit.html.php 4903 2021-05-27 10:32:59Z 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="mainContent" class="main-content fade">
  16. <form method='post' enctype='multipart/form-data' target='hiddenwin' id='dataform'>
  17. <div class='main-header'>
  18. <h2>
  19. <span class='label label-id'><?php echo $opportunity->id;?></span>
  20. <?php echo html::a($this->createLink('opportunity', 'view', "opportunityID=$opportunity->id" . "&from=$from"), $opportunity->name, '', 'class="opportunity-title"');?>
  21. <small><?php echo $lang->arrow . ' ' . $lang->opportunity->edit;?></small>
  22. </h2>
  23. </div>
  24. <div class='main-row'>
  25. <div class='main-col col-8'>
  26. <div class='cell'>
  27. <div class='detail'>
  28. <div class='detail-title'><?php echo $lang->opportunity->name;?></div>
  29. <div class='form-group'>
  30. <div class="input-control has-icon-right">
  31. <?php echo html::input('name', $opportunity->name, 'class="form-control"');?>
  32. </div>
  33. </div>
  34. </div>
  35. <div class='detail'>
  36. <div class='detail-title'><?php echo $lang->opportunity->desc;?></div>
  37. <div class='form-group'>
  38. <?php echo html::textarea('desc', $opportunity->desc, "rows='5' class='form-control'");?>
  39. </div>
  40. </div>
  41. <div class='detail'>
  42. <div class='detail-title'><?php echo $lang->opportunity->prevention;?></div>
  43. <div class='form-group'>
  44. <?php echo html::textarea('prevention', $opportunity->prevention, "rows='5' class='form-control'");?>
  45. </div>
  46. </div>
  47. <div class='detail'>
  48. <div class='detail-title'><?php echo $lang->opportunity->resolution;?></div>
  49. <div class='form-group'>
  50. <?php echo html::textarea('resolution', $opportunity->resolution, "rows='5' class='form-control'");?>
  51. </div>
  52. </div>
  53. <div class='detail text-center form-actions'>
  54. <?php echo html::submitButton();?>
  55. <?php echo html::backButton($lang->goback, "data-app='{$app->tab}'");?>
  56. </div>
  57. <?php include $app->getModuleRoot() . 'common/view/action.html.php';?>
  58. </div>
  59. </div>
  60. <div class='side-col col-4'>
  61. <div class='cell'>
  62. <div class='detail'>
  63. <div class='detail-title'><?php echo $lang->opportunity->legendBasicInfo;?></div>
  64. <table class="table table-form">
  65. <tr>
  66. <th><?php echo $lang->opportunity->source;?></th>
  67. <td><?php echo html::select('source', $lang->opportunity->sourceList, $opportunity->source, "class='form-control chosen'");?></td>
  68. </tr>
  69. <tr>
  70. <th><?php echo $lang->opportunity->type;?></th>
  71. <td><?php echo html::select('type', $lang->opportunity->typeList, $opportunity->type, "class='form-control chosen'");?></td>
  72. </tr>
  73. <tr>
  74. <th><?php echo $lang->opportunity->strategy;?></th>
  75. <td><?php echo html::select('strategy', $lang->opportunity->strategyList, $opportunity->strategy, "class='form-control chosen'");?></td>
  76. </tr>
  77. <tr>
  78. <th><?php echo $lang->opportunity->status;?></th>
  79. <td><?php echo html::select('status', $lang->opportunity->statusList, $opportunity->status, "class='form-control chosen'");?></td>
  80. </tr>
  81. <tr <?php if(empty($project->multiple)) echo 'class="hidden"';?>>
  82. <th><?php echo $lang->opportunity->execution;?></th>
  83. <td><?php echo html::select('execution', $executions, $opportunity->execution, "class='form-control chosen'");?></td>
  84. </tr>
  85. <tr>
  86. <th><?php echo $lang->opportunity->impact;?></th>
  87. <td><?php echo html::select('impact', $lang->opportunity->impactList, $opportunity->impact, "class='form-control'");?></td>
  88. </tr>
  89. <tr>
  90. <th><?php echo $lang->opportunity->chance;?></th>
  91. <td><?php echo html::select('chance', $lang->opportunity->chanceList, $opportunity->chance, "class='form-control'");?></td>
  92. </tr>
  93. <tr>
  94. <th><?php echo $lang->opportunity->ratio;?></th>
  95. <td><?php echo html::input('ratio', $opportunity->ratio, "class='form-control' readonly");?></td>
  96. </tr>
  97. <tr>
  98. <th><?php echo $lang->opportunity->pri;?></th>
  99. <td id='priValue'><?php echo html::select('pri', $lang->opportunity->priList, $opportunity->pri, "class='form-control' disabled");?></td>
  100. </tr>
  101. <tr>
  102. <th><?php echo $lang->opportunity->identifiedDate;?></th>
  103. <td><?php echo html::input('identifiedDate', helper::isZeroDate($opportunity->identifiedDate) ? '' : $opportunity->identifiedDate, "class='form-control form-date'");?></td>
  104. </tr>
  105. <tr>
  106. <th><?php echo $lang->opportunity->plannedClosedDate;?></th>
  107. <td><?php echo html::input('plannedClosedDate', helper::isZeroDate($opportunity->plannedClosedDate) ? '' : $opportunity->plannedClosedDate, "class='form-control form-date'");?></td>
  108. </tr>
  109. <tr>
  110. <th><?php echo $lang->opportunity->actualClosedDate;?></th>
  111. <td><?php echo html::input('actualClosedDate', helper::isZeroDate($opportunity->actualClosedDate) ? '' : $opportunity->actualClosedDate, "class='form-control form-date'");?></td>
  112. </tr>
  113. <tr>
  114. <th><?php echo $lang->opportunity->assignedTo;?></th>
  115. <td><?php echo html::select('assignedTo', $users, empty($opportunity->assignedTo) ? '' : $opportunity->assignedTo, "class='form-control chosen'");?></td>
  116. </tr>
  117. </table>
  118. </div>
  119. <div class='detail'>
  120. <div class='detail-title'><?php echo $lang->opportunity->legendLifeTime;?></div>
  121. <table class='table table-form'>
  122. <tr>
  123. <th><?php echo $lang->opportunity->lastCheckedBy;?></th>
  124. <td><?php echo html::select('lastCheckedBy', $users, empty($opportunity->lastCheckedBy) ? '' : $opportunity->lastCheckedBy, "class='form-control chosen'");?></td>
  125. </tr>
  126. <tr>
  127. <th><?php echo $lang->opportunity->lastCheckedDate;?></th>
  128. <td><?php echo html::input('lastCheckedDate', helper::isZeroDate($opportunity->lastCheckedDate) ? '' : $opportunity->lastCheckedDate, "class='form-control form-datetime'");?></td>
  129. </tr>
  130. <tr>
  131. <th><?php echo $lang->opportunity->hangupedBy;?></th>
  132. <td><?php echo html::select('hangupedBy', $users, empty($opportunity->hangupedBy) ? '' : $opportunity->hangupedBy, "class='form-control chosen'");?></td>
  133. </tr>
  134. <tr>
  135. <th><?php echo $lang->opportunity->hangupedDate;?></th>
  136. <td><?php echo html::input('hangupedDate', helper::isZeroDate($opportunity->hangupedDate) ? '' : $opportunity->hangupedDate, "class='form-control form-datetime'");?></td>
  137. </tr>
  138. <tr>
  139. <th><?php echo $lang->opportunity->canceledBy;?></th>
  140. <td><?php echo html::select('canceledBy', $users, empty($opportunity->canceledBy) ? '' : $opportunity->canceledBy, "class='form-control chosen'");?></td>
  141. </tr>
  142. <tr>
  143. <th class='w-100px'><?php echo $lang->opportunity->cancelReason;?></th>
  144. <td><?php echo html::select('cancelReason', $lang->opportunity->cancelReasonList, $opportunity->cancelReason, "class='form-control chosen'");?></td>
  145. </tr>
  146. <tr>
  147. <th><?php echo $lang->opportunity->canceledDate;?></th>
  148. <td><?php echo html::input('canceledDate', helper::isZeroDate($opportunity->canceledDate) ? '' : $opportunity->canceledDate, "class='form-control form-datetime'");?></td>
  149. </tr>
  150. <tr>
  151. <th><?php echo $lang->opportunity->closedBy;?></th>
  152. <td><?php echo html::select('closedBy', $users, empty($opportunity->closedBy) ? '' : $opportunity->closedBy, "class='form-control chosen'");?></td>
  153. </tr>
  154. <tr>
  155. <th><?php echo $lang->opportunity->closedDate;?></th>
  156. <td><?php echo html::input('closedDate', helper::isZeroDate($opportunity->closedDate) ? '' : $opportunity->closedDate, "class='form-control form-datetime'");?></td>
  157. </tr>
  158. <tr>
  159. <th><?php echo $lang->opportunity->activatedBy;?></th>
  160. <td><?php echo html::select('activatedBy', $users, empty($opportunity->activatedBy) ? '' : $opportunity->activatedBy, "class='form-control chosen'");?></td>
  161. </tr>
  162. <tr>
  163. <th><?php echo $lang->opportunity->activatedDate;?></th>
  164. <td><?php echo html::input('activatedDate', helper::isZeroDate($opportunity->activatedDate) ? '' : $opportunity->activatedDate, "class='form-control form-datetime'");?></td>
  165. </tr>
  166. <tr>
  167. <th><?php echo $lang->opportunity->resolvedBy;?></th>
  168. <td><?php echo html::select('resolvedBy', $users, empty($opportunity->resolvedBy) ? '' : $opportunity->resolvedBy, "class='form-control chosen'");?></td>
  169. </tr>
  170. </table>
  171. </div>
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. </form>
  177. </div>
  178. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>