create.html.php 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?php
  2. /**
  3. * The create 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: create.html.php 4903 2021-05-26 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. <div class="center-block">
  17. <div class="main-header">
  18. <h2><?php echo $lang->opportunity->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->opportunity->source;?></th>
  25. <td><?php echo html::select('source', $lang->opportunity->sourceList, '', "class='form-control chosen'");?></td>
  26. <td></td>
  27. <td></td>
  28. </tr>
  29. <tr>
  30. <th><?php echo $lang->opportunity->name;?></th>
  31. <td><?php echo html::input('name', '', "class='form-control'");?></td>
  32. </tr>
  33. <tr <?php if(empty($project->multiple)) echo "class='hidden'";?>>
  34. <th><?php echo $lang->opportunity->execution;?></th>
  35. <td><?php echo html::select('execution', $executions, isset($executionID) ? $executionID : '', "class='form-control chosen'");?></td>
  36. </tr>
  37. <tr>
  38. <th><?php echo $lang->opportunity->type;?></th>
  39. <td><?php echo html::select('type', $lang->opportunity->typeList, '', "class='form-control chosen'");?></td>
  40. </tr>
  41. <tr>
  42. <th><?php echo $lang->opportunity->strategy;?></th>
  43. <td><?php echo html::select('strategy', $lang->opportunity->strategyList, '', "class='form-control chosen'");?></td>
  44. </tr>
  45. <tr>
  46. <th><?php echo $lang->opportunity->impact;?></th>
  47. <td><?php echo html::select('impact', $lang->opportunity->impactList, 3, "class='form-control'");?></td>
  48. </tr>
  49. <tr>
  50. <th><?php echo $lang->opportunity->chance;?></th>
  51. <td><?php echo html::select('chance', $lang->opportunity->chanceList, 3, "class='form-control'");?></td>
  52. </tr>
  53. <tr>
  54. <th><?php echo $lang->opportunity->ratio;?></th>
  55. <td><?php echo html::input('ratio', '', "class='form-control' readonly");?></td>
  56. </tr>
  57. <tr>
  58. <th><?php echo $lang->opportunity->pri;?></th>
  59. <td id='priValue'><?php echo html::select('pri', $lang->opportunity->priList, '', "class='form-control' disabled");?></td>
  60. </tr>
  61. <tr>
  62. <th><?php echo $lang->opportunity->identifiedDate;?></th>
  63. <td><?php echo html::input('identifiedDate', '', "class='form-control form-date'");?></td>
  64. </tr>
  65. <tr>
  66. <th><?php echo $lang->opportunity->plannedClosedDate;?></th>
  67. <td><?php echo html::input('plannedClosedDate', '', "class='form-control form-date'");?></td>
  68. </tr>
  69. <tr>
  70. <th><?php echo $lang->opportunity->assignedTo;?></th>
  71. <td><?php echo html::select('assignedTo', $users, '', "class='form-control chosen'");?></td>
  72. </tr>
  73. <tr>
  74. <th><?php echo $lang->opportunity->desc;?></th>
  75. <td colspan='2'><?php echo html::textarea('desc', '', "class='form-control'");?></td>
  76. </tr>
  77. <tr>
  78. <th><?php echo $lang->opportunity->prevention;?></th>
  79. <td colspan='2'><?php echo html::textarea('prevention', '', "class='form-control'");?></td>
  80. </tr>
  81. <tr>
  82. <td colspan='3' class='form-actions text-center'>
  83. <?php echo html::submitButton() . html::backButton($lang->goback, "data-app='{$app->tab}'");?>
  84. </td>
  85. </tr>
  86. </tbody>
  87. </table>
  88. </form>
  89. </div>
  90. </div>
  91. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>