review.html.php 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php
  2. /**
  3. * The view file of review method of demand 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 Chunsheng Wang <chunsheng@cnezsoft.com>
  8. * @package demand
  9. * @version $Id: review.html.php 4129 2013-01-18 01:58:14Z wwccss $
  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/datepicker.html.php';?>
  15. <?php include $app->getModuleRoot() . 'common/view/kindeditor.html.php';?>
  16. <div class='main-content' id='mainContent'>
  17. <div class='center-block'>
  18. <div class='main-header'>
  19. <h2>
  20. <span class='label label-id'><?php echo $demand->id;?></span>
  21. <?php echo html::a($this->createLink('demand', 'view', "demandID=$demand->id"), $demand->title);?>
  22. <small><?php echo $lang->arrow . $lang->demand->review;?></small>
  23. </h2>
  24. </div>
  25. <form method='post' target='hiddenwin'>
  26. <table class='table table-form'>
  27. <tr>
  28. <th class='thWidth'><?php echo $lang->demand->reviewedDate;?></th>
  29. <td class='w-p25-f'><?php echo html::input('reviewedDate', helper::now(), "class='form-control form-datetime' data-picker-position='bottom-right'");?></td>
  30. </tr>
  31. <tr>
  32. <th><?php echo $lang->demand->reviewResult;?></th>
  33. <td class='required'><?php echo html::select('result', $lang->demand->resultList, '', 'class="form-control chosen" onchange="switchShow(this.value)"');?></td><td></td>
  34. </tr>
  35. <tr id='assignedToBox' <?php echo $isLastOne ? '' : "class='hide'";?>>
  36. <th><?php echo $lang->demand->assignedTo;?></th>
  37. <td><?php echo html::select('assignedTo', $assignToList, $demand->assignedTo, "class='form-control picker-select'");?></td><td></td>
  38. </tr>
  39. <tr id='rejectedReasonBox' style="display:none">
  40. <th><?php echo $lang->story->rejectedReason;?></th>
  41. <td class='required'><?php echo html::select('closedReason', $lang->demand->reasonList, '', 'class=form-control onchange="setDemand(this.value)"');?></td><td></td>
  42. </tr>
  43. <tr id='priBox' class='hide'>
  44. <th><?php echo $lang->demand->pri;?></th>
  45. <td><?php echo html::select('pri', $lang->demand->priList, $demand->pri,"class='form-control'");?></td><td></td>
  46. </tr>
  47. <tr id='duplicateDemandBox' class='hide'>
  48. <th><?php echo $lang->demand->duplicateDemand;?></th>
  49. <td><?php echo html::input('duplicateDemand', '', "class='form-control'");?></td><td></td>
  50. </tr>
  51. <tr id='childStoriesBox' class='hide'>
  52. <th><?php echo $lang->demand->childStories;?></th>
  53. <td><?php echo html::input('childStories', '', "class='form-control'");?></td><td></td>
  54. </tr>
  55. <tr class='hide'>
  56. <th><?php echo $lang->demand->status;?></th>
  57. <td><?php echo html::hidden('status', $demand->status);?></td>
  58. </tr>
  59. <?php $this->printExtendFields($demand, 'table');?>
  60. <tr>
  61. <th><?php echo $lang->demand->comment;?></th>
  62. <td colspan='2'><?php echo html::textarea('comment', '', "rows='8' class='form-control'");?></td>
  63. </tr>
  64. <tr>
  65. <td colspan='3' class='text-center form-actions'>
  66. <?php echo html::submitButton();?>
  67. <?php if(!isonlybody()) echo html::backButton();?>
  68. </td>
  69. </tr>
  70. </table>
  71. </form>
  72. <hr class='small' />
  73. <div class='main'><?php include $app->getModuleRoot() . 'common/view/action.html.php';?></div>
  74. </div>
  75. </div>
  76. <?php js::set('demandID', $demand->id);?>
  77. <?php js::set('isMultiple', count($reviewers) == 1 ? false : true);?>
  78. <?php js::set('isLastOne', $isLastOne);?>
  79. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>