submitreview.html.php 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /**
  3. * The submit review file of demand module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2022 禅道软件(青岛)有限公司(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 Qiyu Xie <xieqiyu@cnezsoft.com>
  8. * @package demand
  9. * @version $Id: submitreview.html.php 935 2022-07-20 09:49:24Z $
  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. <?php js::set('lastReviewer', explode(',', $lastReviewer))?>
  16. <div id='mainContent' class='main-content'>
  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 isonlybody() ? ("<span title='$demand->title'>" . $demand->title . '</span>') : html::a($this->createLink('demand', 'view', 'demand=' . $demand->id), $demand->title);?>
  22. <?php if(!isonlybody()):?>
  23. <small> <?php echo $lang->arrow . $lang->demand->submitReview;?></small>
  24. <?php endif;?>
  25. </h2>
  26. </div>
  27. <form method='post' target='hiddenwin'>
  28. <table class='table table-form'>
  29. <tr>
  30. <th class='w-80px'><?php echo $lang->demand->reviewedBy;?></th>
  31. <td colspan='2' id='reviewerBox' <?php if($this->demand->checkForceReview() or !empty($demand->reviewer)) echo "class='required'";?>>
  32. <div class="table-row">
  33. <?php if(!$this->demand->checkForceReview()):?>
  34. <div class="table-col">
  35. <?php echo html::select('reviewer[]', $reviewers, $demand->reviewer, "class='form-control picker-select' multiple");?>
  36. </div>
  37. <div class="table-col needNotReviewBox">
  38. <span class="input-group-addon">
  39. <div class='checkbox-primary'>
  40. <input id='needNotReview' name='needNotReview' value='1' type='checkbox' class='no-margin' <?php echo $needReview;?>/>
  41. <label for='needNotReview'><?php echo $lang->demand->needNotReview;?></label>
  42. </div>
  43. </span>
  44. </div>
  45. <?php else:?>
  46. <div class="table-col">
  47. <?php echo html::select('reviewer[]', $reviewers, $demand->reviewer, "class='form-control picker-select' multiple");?>
  48. </div>
  49. <?php endif;?>
  50. </div>
  51. </td>
  52. </tr>
  53. <tr>
  54. <td colspan='3' class='text-center form-actions'>
  55. <?php echo html::hidden('id', $demand->id);?>
  56. <?php echo html::submitButton();?>
  57. </td>
  58. </tr>
  59. </table>
  60. </form>
  61. <hr class='small' />
  62. <?php include $app->getModuleRoot() . 'common/view/action.html.php';?>
  63. </div>
  64. </div>
  65. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>