batchcreate.html.php 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /**
  3. * The batch create view of issue module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2015 禅道软件(青岛)有限公司(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 Congzhi Chen <congzhi@cnezsoft.com>
  8. * @package issue
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  14. <div id = "mainContent" class="main-content fade in">
  15. <div class="main-header">
  16. <h2><?php echo $lang->issue->batchCreate;?></h2>
  17. </div>
  18. <form id="batchCreateForm" target="hiddenwin" method="post">
  19. <table class="table table-form">
  20. <thead>
  21. <tr class="text-center">
  22. <th class="w-50px"><?php echo $lang->issue->id;?></th>
  23. <th class="w-150px"><?php echo $lang->issue->execution;?></th>
  24. <th class="required"><?php echo $lang->issue->title;?></th>
  25. <th class="w-140px required"><?php echo $lang->issue->type;?></th>
  26. <th class="w-120px required"><?php echo $lang->issue->severity;?></th>
  27. <th class="w-150px"><?php echo $lang->issue->desc;?></th>
  28. <th class="w-100px"><?php echo $lang->issue->pri;?></th>
  29. <th class="w-120px"><?php echo $lang->issue->deadline;?></th>
  30. <th class="w-120px"><?php echo $lang->issue->assignedTo;?></th>
  31. <th class="w-120px"><?php echo $lang->issue->owner;?></th>
  32. </tr>
  33. </thead>
  34. <tbody>
  35. <?php for($i = 1;$i <= 10;$i++):?>
  36. <tr data-key="<?php echo $i;?>">
  37. <td><?php echo $i;?></td>
  38. <td><?php echo html::select("dataList[$i][execution]", $executions, isset($executionID) ? $executionID : '', 'class="form-control chosen" id="dataList' . $i . 'execution"')?></td>
  39. <td><?php echo html::input("dataList[$i][title]", '', 'id="dataList' . $i . 'title" class="form-control" autocomplete="off"')?></td>
  40. <td><?php echo html::select("dataList[$i][type]", $lang->issue->typeList, '', 'class="form-control chosen" id="dataList' . $i . 'type"')?></td>
  41. <td><?php echo html::select("dataList[$i][severity]", $lang->issue->severityList, '', 'class="form-control chosen" id="dataList' . $i . 'severity"')?></td>
  42. <td><?php echo html::textarea("dataList[$i][desc]", '', 'class="form-control" id="dataList' . $i . 'desc" rows="1"');?></td>
  43. <td><?php echo html::select("dataList[$i][pri]", $lang->issue->priList, '3', 'class="form-control chosen" id="dataList' . $i . 'pri"')?></td>
  44. <td><?php echo html::input("dataList[$i][deadline]", '', 'class="form-control form-date" id="dataList' . $i . 'deadline"');?></td>
  45. <td><?php echo html::select("dataList[$i][assignedTo]", $teamMembers, '', 'class="form-control chosen" id="dataList' . $i . 'assignedTo"')?></td>
  46. <td><?php echo html::select("dataList[$i][owner]", $teamMembers, $app->user->account, 'class="form-control chosen" id="dataList' . $i . 'owner"')?></td>
  47. </tr>
  48. <?php endfor;?>
  49. </tbody>
  50. </table>
  51. <div class="form-actions text-center">
  52. <?php echo html::submitButton() . html::backButton($lang->goback, "data-app='{$app->tab}'");?>
  53. </div>
  54. </form>
  55. </div>
  56. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>