edit.html.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <?php
  2. /**
  3. * The edit of risk module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2020 禅道软件(青岛)有限公司(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 Yuchun Li <liyuchun@cnezsoft.com>
  8. * @package risk
  9. * @version $Id: edit.html.php 4903 2020-09-04 09:32:59Z wyd621@gmail.com $
  10. * @link http://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. <div class="center-block">
  17. <div class="main-header">
  18. <h2><?php echo $lang->risk->edit;?></h2>
  19. </div>
  20. <form class="load-indicator main-form form-ajax" method='post' enctype='multipart/form-data' id='dataform'>
  21. <table class="table table-form">
  22. <tbody>
  23. <tr>
  24. <th><?php echo $lang->risk->source;?></th>
  25. <td><?php echo html::select('source', $lang->risk->sourceList, $risk->source, "class='form-control chosen'");?></td>
  26. </tr>
  27. <tr>
  28. <th><?php echo $lang->risk->name;?></th>
  29. <td><?php echo html::input('name', $risk->name, "class='form-control'");?></td>
  30. </tr>
  31. <tr>
  32. <th><?php echo $lang->risk->issues;?></th>
  33. <td class='issueBox'><?php echo html::select('issues[]', $issues, $risk->issues, "class='form-control chosen' multiple");?></td>
  34. </tr>
  35. <tr>
  36. <th><?php echo $lang->task->project;?></th>
  37. <td><?php echo html::select('project', $projectList, $risk->project, "class='form-control chosen'");?></td>
  38. </tr>
  39. <tr>
  40. <th><?php echo $lang->risk->execution;?></th>
  41. <td class='executionBox'><?php echo html::select('execution', $executions, $risk->execution, "class='form-control chosen'");?></td>
  42. </tr>
  43. <tr>
  44. <th><?php echo $lang->risk->category;?></th>
  45. <td><?php echo html::select('category', $lang->risk->categoryList, $risk->category, "class='form-control chosen'");?></td>
  46. </tr>
  47. <tr>
  48. <th><?php echo $lang->risk->strategy;?></th>
  49. <td><?php echo html::select('strategy', $lang->risk->strategyList, $risk->strategy, "class='form-control chosen'");?></td>
  50. </tr>
  51. <tr>
  52. <th><?php echo $lang->risk->status;?></th>
  53. <td><?php echo html::select('status', $lang->risk->statusList, $risk->status, "class='form-control chosen'");?></td>
  54. </tr>
  55. <tr>
  56. <th><?php echo $lang->risk->impact;?></th>
  57. <?php if(empty($risk->impact)) $lang->risk->impactList[''] = '';?>
  58. <td><?php echo html::select('impact', $lang->risk->impactList, $risk->impact, "class='form-control chosen'");?></td>
  59. </tr>
  60. <tr>
  61. <th><?php echo $lang->risk->probability;?></th>
  62. <?php if(empty($risk->probability)) $lang->risk->probabilityList[''] = '';?>
  63. <td><?php echo html::select('probability', $lang->risk->probabilityList, $risk->probability, "class='form-control chosen'");?></td>
  64. </tr>
  65. <tr>
  66. <th><?php echo $lang->risk->rate;?></th>
  67. <td><?php echo html::input('rate', $risk->rate, "class='form-control'");?></td>
  68. </tr>
  69. <tr>
  70. <th><?php echo $lang->risk->pri;?></th>
  71. <td id='priValue'><?php echo html::select('pri', $lang->risk->priList, $risk->pri, "class='form-control chosen'");?></td>
  72. </tr>
  73. <tr>
  74. <th><?php echo $lang->risk->identifiedDate;?></th>
  75. <td><?php echo html::input('identifiedDate', helper::isZeroDate($risk->identifiedDate) ? '' : $risk->identifiedDate, "class='form-control form-date'");?></td>
  76. </tr>
  77. <tr>
  78. <th><?php echo $lang->risk->plannedClosedDate;?></th>
  79. <td><?php echo html::input('plannedClosedDate', helper::isZeroDate($risk->plannedClosedDate) ? '' : $risk->plannedClosedDate, "class='form-control form-date'");?></td>
  80. </tr>
  81. <tr>
  82. <th><?php echo $lang->risk->actualClosedDate;?></th>
  83. <td><?php echo html::input('actualClosedDate', helper::isZeroDate($risk->actualClosedDate) ? '' : $risk->actualClosedDate, "class='form-control form-date'");?></td>
  84. </tr>
  85. <tr>
  86. <th><?php echo $lang->risk->resolvedBy;?></th>
  87. <td><?php echo html::select('resolvedBy', $users, empty($risk->resolvedBy) ? $this->app->user->account : $risk->resolvedBy, "class='form-control chosen'");?></td>
  88. </tr>
  89. <tr>
  90. <th><?php echo $lang->risk->assignedTo;?></th>
  91. <td><?php echo html::select('assignedTo', $users, empty($risk->assignedTo) ? $this->app->user->account : $risk->assignedTo, "class='form-control chosen'");?></td>
  92. </tr>
  93. <tr>
  94. <th><?php echo $lang->risk->prevention;?></th>
  95. <td colspan='2'><?php echo html::textarea('prevention', $risk->prevention, "class='form-control'");?></td>
  96. </tr>
  97. <tr>
  98. <th><?php echo $lang->risk->remedy;?></th>
  99. <td colspan='2'><?php echo html::textarea('remedy', $risk->remedy, "class='form-control'");?></td>
  100. </tr>
  101. <tr>
  102. <th><?php echo $lang->risk->resolution;?></th>
  103. <td colspan='2'><?php echo html::textarea('resolution', $risk->resolution, "class='form-control'");?></td>
  104. </tr>
  105. <tr>
  106. <td colspan='3' class='form-actions text-center'>
  107. <?php echo html::submitButton() . html::backButton($lang->goback, "data-app='{$app->tab}'");?>
  108. </td>
  109. </tr>
  110. </tbody>
  111. </table>
  112. </form>
  113. </div>
  114. </div>
  115. <?php js::set('projectID', $risk->project);?>
  116. <?php js::set('executionID', $risk->execution);?>
  117. <?php js::set('linkedIssues', $risk->issues);?>
  118. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>