change.html.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?php
  2. /**
  3. * The change view file 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: change.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/kindeditor.html.php';?>
  15. <?php js::set('lastReviewer', explode(',', $lastReviewer))?>
  16. <?php js::set('page', 'change')?>
  17. <div id='mainContent' class='main-content'>
  18. <div class='center-block'>
  19. <div class='main-header'>
  20. <h2>
  21. <span class='label label-id'><?php echo $demand->id;?></span>
  22. <?php echo html::a($this->createLink('demand', 'view', "demandID=$demand->id"), $demand->title, '', 'class="demand-title"');?>
  23. <small><?php echo $lang->arrow . ' ' . $lang->demand->change;?></small>
  24. </h2>
  25. </div>
  26. <form class="main-form form-ajax" method='post' enctype='multipart/form-data' id='dataform'>
  27. <table class='table table-form'>
  28. <tr>
  29. <th class='w-80px'><?php echo $lang->demand->reviewedBy;?></th>
  30. <td id='reviewerBox'>
  31. <div class="input-group">
  32. <?php echo html::select('reviewer[]', $reviewers, $reviewer, "class='form-control picker-select' multiple" . ($this->demand->checkForceReview() ? ' required' : ''));?>
  33. <?php if(!$this->demand->checkForceReview()):?>
  34. <span class="input-group-addon">
  35. <?php echo html::checkbox('needNotReview', $lang->demand->needNotReview, '', "id='needNotReview' {$needReview}");?>
  36. </span>
  37. <?php endif;?>
  38. </div>
  39. </td>
  40. </tr>
  41. <tr class='hide'>
  42. <th><?php echo $lang->demand->status;?></th>
  43. <td><?php echo html::hidden('status', $demand->status);?></td>
  44. </tr>
  45. <?php $this->printExtendFields($demand, 'table');?>
  46. <tr>
  47. <th><?php echo $lang->demand->title;?></th>
  48. <td>
  49. <div class='input-group'>
  50. <div class="input-control has-icon-right">
  51. <?php echo html::input('title', $demand->title, 'class="form-control demand-title"');?>
  52. <div class="colorpicker">
  53. <button type="button" class="btn btn-link dropdown-toggle" data-toggle="dropdown" title="<?php echo $lang->task->colorTag ?>"><span class="cp-title"></span><span class="color-bar"></span><i class="ic"></i></button>
  54. <ul class="dropdown-menu clearfix">
  55. <li class="heading"><?php echo $lang->demand->colorTag; ?><i class="icon icon-close"></i></li>
  56. </ul>
  57. <input type="hidden" class="colorpicker" id="color" name="color" value="<?php echo $demand->color ?>" data-icon="color" data-wrapper="input-control-icon-right" data-update-color=".demand-title" data-provide="colorpicker">
  58. </div>
  59. </div>
  60. </div>
  61. </td>
  62. </tr>
  63. <tr>
  64. <th><?php echo $lang->demand->spec;?></th>
  65. <td><?php echo html::textarea('spec', htmlSpecialString($demand->spec), 'rows=8 class="form-control"');?></td>
  66. </tr>
  67. <tr>
  68. <th><?php echo $lang->demand->verify;?></th>
  69. <td><?php echo html::textarea('verify', htmlSpecialString($demand->verify), 'rows=6 class="form-control"');?></td>
  70. </tr>
  71. <tr>
  72. <th><?php echo $lang->demand->comment;?></th>
  73. <td><?php echo html::textarea('comment', '', 'rows=5 class="form-control"');?></td>
  74. </tr>
  75. <tr>
  76. <th><?php echo $lang->attatch;?></th>
  77. <td>
  78. <?php echo $this->fetch('file', 'printFiles', array('files' => $demand->files, 'fieldset' => 'false', 'object' => $demand, 'method' => 'edit'));?>
  79. <?php echo $this->fetch('file', 'buildoldform');?>
  80. </td>
  81. </tr>
  82. <tr>
  83. <td></td>
  84. <td class='text-center form-actions'>
  85. <?php
  86. echo html::hidden('lastEditedDate', $demand->lastEditedDate);
  87. echo html::commonButton($lang->save, "id='saveButton'", 'btn btn-primary btn-wide');
  88. echo html::commonButton($lang->story->doNotSubmit, "id='saveDraftButton'", 'btn btn-secondary btn-wide');
  89. if(!isonlybody()) echo html::backButton();
  90. ?>
  91. </td>
  92. </tr>
  93. </table>
  94. </form>
  95. <hr class='small' />
  96. <div class='main'>
  97. <?php include $app->getModuleRoot() . 'common/view/action.html.php';?>
  98. </div>
  99. </div>
  100. </div>
  101. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>