create.html.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?php
  2. /**
  3. * The create 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 Yuchun Li <liyuchun@cnezsoft.com>
  8. * @package meeting
  9. * @version $Id: create.html.php 4903 2021-06-10 13:53:59Z lyc $
  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/datepicker.html.php';?>
  15. <?php js::set('objectType', array_keys($config->meeting->objectTypeList));?>
  16. <?php js::set('projectID', $projectID);?>
  17. <?php js::set('noSprintPairs', $noSprintPairs);?>
  18. <div id="mainContent" class="main-content fade">
  19. <div class="center-block">
  20. <div class="main-header">
  21. <h2><?php echo $lang->meeting->create;?></h2>
  22. </div>
  23. <form class="load-indicator main-form form-ajax" method='post' enctype='multipart/form-data' id='dataform'>
  24. <table class="table table-form">
  25. <tbody>
  26. <tr>
  27. <th><?php echo $lang->meeting->project;?></th>
  28. <td><?php echo html::select('project', $projects, isset($projectID) ? $projectID : '', "class='form-control chosen' onchange='loadProjectExecutions(this.value)'");?></td>
  29. </tr>
  30. <tr <?php if(empty($project->multiple)) echo "class='hidden'";?>>
  31. <th><?php echo $lang->meeting->execution;?></th>
  32. <td><?php echo html::select('execution', $executions, isset($executionID) ? $executionID : '', "class='form-control chosen' onchange='loadTeamMembers(this.value)'");?></td>
  33. </tr>
  34. <tr>
  35. <th class='w-110px'><?php echo $lang->meeting->date;?></th>
  36. <td><?php echo html::input('date', '', "class='form-control form-date'");?></td>
  37. <td></td>
  38. <td></td>
  39. </tr>
  40. <tr>
  41. <th class='w-110px'><?php echo $lang->meeting->room;?></th>
  42. <td><?php echo html::select('room', $rooms, '', "class='form-control chosen'");?></td>
  43. </tr>
  44. <tr>
  45. <th class='w-110px'><?php echo $lang->meeting->begin;?></th>
  46. <td><?php echo html::input('begin', '', "class='form-control form-time'");?></td>
  47. </tr>
  48. <tr>
  49. <th class='w-110px'><?php echo $lang->meeting->end;?></th>
  50. <td><?php echo html::input('end', '', "class='form-control form-time'");?></td>
  51. </tr>
  52. <tr>
  53. <th><?php echo $lang->meeting->dept;?></th>
  54. <td><?php echo html::select('dept', $depts, '', "class='form-control chosen'");?></td>
  55. </tr>
  56. <tr>
  57. <th><?php echo $lang->meeting->mode;?></th>
  58. <td><?php echo html::select('mode', $lang->meeting->modeList, '', "class='form-control chosen'");?></td>
  59. </tr>
  60. <?php if($app->tab == 'project' and $project->model == 'waterfall'):?>
  61. <tr>
  62. <th><?php echo $lang->meeting->type;?></th>
  63. <td><?php echo html::select('type', $typeList, '', "class='form-control chosen'");?></td>
  64. </tr>
  65. <?php endif;?>
  66. <tr>
  67. <th><?php echo $lang->meeting->objectType;?></th>
  68. <td><?php echo html::select('objectType', $config->meeting->objectTypeList, '', "class='form-control chosen'");?></td>
  69. </tr>
  70. <tr>
  71. <th><?php echo $lang->meeting->objectID;?></th>
  72. <td id='objectBox'><?php echo html::select('objectID', '', '', "class='form-control chosen'");?></td>
  73. </tr>
  74. <tr>
  75. <th><?php echo $lang->meeting->host;?></th>
  76. <td><?php echo html::select('host', $users, $this->app->user->account, "class='form-control chosen'");?></td>
  77. </tr>
  78. <tr>
  79. <th><?php echo $lang->meeting->name;?></th>
  80. <td><?php echo html::input('name', '', "class='form-control'");?></td>
  81. </tr>
  82. <tr class="mailtoBox">
  83. <th><?php echo $lang->meeting->participant;?></th>
  84. <td colspan="2">
  85. <div class="input-group" id='contactListGroup'>
  86. <?php echo html::select('participant[]', $users, '', "class='form-control picker-select' multiple");?>
  87. <?php echo $this->fetch('my', 'buildContactLists');?>
  88. </div>
  89. </td>
  90. </tr>
  91. <tr>
  92. <th><?php echo $lang->meeting->files;?></th>
  93. <td><?php echo $this->fetch('file', 'buildoldform', 'fileCount=1&percent=0.85');?></td>
  94. </tr>
  95. <tr>
  96. <td colspan='4' class='form-actions text-center'><?php echo html::submitButton() . html::backButton($lang->goback, "data-app='{$app->tab}'");?></td>
  97. </tr>
  98. </tbody>
  99. </form>
  100. </div>
  101. </div>
  102. <script>
  103. function setMailto(field, value)
  104. {
  105. var link = createLink('meeting', 'ajaxGetContactUsers', "listID=" + value);
  106. $.post(link, function(data)
  107. {
  108. $('#contactListGroup .picker-multi').remove();
  109. $('#participant').replaceWith(data);
  110. $('#participant').picker();
  111. })
  112. }
  113. </script>
  114. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>