create.html.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?php
  2. /**
  3. * The create 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: create.html.php 4903 2020-09-04 09:32:59Z lyc $
  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->create;?></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, '', "class='form-control chosen'");?></td>
  26. <td></td>
  27. <td></td>
  28. </tr>
  29. <tr>
  30. <th><?php echo $lang->risk->name;?></th>
  31. <td><?php echo html::input('name', '', "class='form-control'");?></td>
  32. </tr>
  33. <tr>
  34. <th><?php echo $lang->risk->issues;?></th>
  35. <td class='issueBox'><?php echo html::select('issues[]', $issues, '', "class='form-control chosen' multiple");?></td>
  36. </tr>
  37. <tr>
  38. <th><?php echo $lang->task->execution;?></th>
  39. <td><?php echo html::select('execution', $executions, isset($executionID) ? $executionID : '', "class='form-control chosen'");?></td>
  40. </tr>
  41. <tr>
  42. <th><?php echo $lang->risk->category;?></th>
  43. <td><?php echo html::select('category', $lang->risk->categoryList, '', "class='form-control chosen'");?></td>
  44. </tr>
  45. <tr>
  46. <th><?php echo $lang->risk->strategy;?></th>
  47. <td><?php echo html::select('strategy', $lang->risk->strategyList, '', "class='form-control chosen'");?></td>
  48. </tr>
  49. <tr>
  50. <th><?php echo $lang->risk->impact;?></th>
  51. <td><?php echo html::select('impact', $lang->risk->impactList, 3, "class='form-control chosen'");?></td>
  52. </tr>
  53. <tr>
  54. <th><?php echo $lang->risk->probability;?></th>
  55. <td><?php echo html::select('probability', $lang->risk->probabilityList, 3, "class='form-control chosen'");?></td>
  56. </tr>
  57. <tr>
  58. <th><?php echo $lang->risk->rate;?></th>
  59. <td><?php echo html::input('rate', '', "class='form-control'");?></td>
  60. </tr>
  61. <tr>
  62. <th><?php echo $lang->risk->pri;?></th>
  63. <td id='priValue'><?php echo html::select('pri', $lang->risk->priList, '', "class='form-control chosen'");?></td>
  64. </tr>
  65. <tr>
  66. <th><?php echo $lang->risk->identifiedDate;?></th>
  67. <td><?php echo html::input('identifiedDate', '', "class='form-control form-date'");?></td>
  68. </tr>
  69. <tr>
  70. <th><?php echo $lang->risk->plannedClosedDate;?></th>
  71. <td><?php echo html::input('plannedClosedDate', '', "class='form-control form-date'");?></td>
  72. </tr>
  73. <tr>
  74. <th><?php echo $lang->risk->assignedTo;?></th>
  75. <td><?php echo html::select('assignedTo', $users, '', "class='form-control chosen'");?></td>
  76. </tr>
  77. <tr>
  78. <th><?php echo $lang->risk->prevention;?></th>
  79. <td colspan='3'><?php echo html::textarea('prevention', '', "class='form-control'");?></td>
  80. </tr>
  81. <tr>
  82. <th><?php echo $lang->risk->remedy;?></th>
  83. <td colspan='3'><?php echo html::textarea('remedy', '', "class='form-control'");?></td>
  84. </tr>
  85. <tr>
  86. <td colspan='4' class='form-actions text-center'>
  87. <?php echo html::submitButton() . html::backButton($lang->goback, "data-app='{$app->tab}'");?>
  88. </td>
  89. </tr>
  90. </tbody>
  91. </table>
  92. </form>
  93. </div>
  94. </div>
  95. <?php js::set('projectID', $projectID);?>
  96. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>