create.html.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  2. <?php include $app->getModuleRoot() . 'common/view/kindeditor.html.php';?>
  3. <?php js::set('reviewedPoints', $reviewedPoints)?>
  4. <div id="mainContent" class="main-content fade">
  5. <div class="center-block">
  6. <div class="main-header">
  7. <h2><?php echo $lang->review->create;?></h2>
  8. </div>
  9. <form class="load-indicator main-form form-ajax" method='post' enctype='multipart/form-data' id='dataform'>
  10. <table class="table table-form">
  11. <tbody>
  12. <?php if($this->session->hasProduct):?>
  13. <tr>
  14. <th class='w-120px'><?php echo $lang->review->product;?></th>
  15. <td class="required"><?php echo html::select('product', $products, $productID, "class='form-control chosen'");?></td>
  16. </tr>
  17. <?php else:?>
  18. <?php echo html::hidden('product', $productID);?>
  19. <?php endif;?>
  20. <?php
  21. $hidden = '';
  22. if($project->model == 'ipd') $hidden = 'hidden';
  23. ?>
  24. <?php if($project->model == 'ipd'):?>
  25. <tr>
  26. <th class='w-120px'><?php echo $lang->review->object;?></th>
  27. <td><?php echo html::select('point', $lang->baseline->ipd->pointList, $object, "class='form-control'");?></td>
  28. <td class='<?php echo $hidden;?>'><?php echo html::select('object', $this->lang->baseline->ipd->objectList, $object, "class='form-control chosen'");?></td>
  29. </tr>
  30. <?php else:?>
  31. <tr>
  32. <th class='w-120px'><?php echo $lang->review->object;?></th>
  33. <td><?php echo html::select('object', $lang->baseline->objectList, $object, "class='form-control chosen'");?></td>
  34. <td></td>
  35. </tr>
  36. <?php endif;?>
  37. <tr class='<?php echo $hidden;?>'>
  38. <th><?php echo $lang->review->content;?></th>
  39. <td><?php echo html::radio('content', $lang->review->contentList, 'template');?></td>
  40. </tr>
  41. <tr class='<?php echo $hidden;?>'>
  42. <th><?php echo $lang->review->template;?></th>
  43. <td><?php echo html::select('template', '', '', "class='form-control chosen'");?></td>
  44. </tr>
  45. <tr class='hide'>
  46. <th><?php echo $lang->review->doclib;?></th>
  47. <td><?php echo html::select('doclib', $libs, '', "class='form-control chosen'");?></td>
  48. </tr>
  49. <tr>
  50. <th><?php echo $lang->review->doc;?></th>
  51. <td><?php echo html::select('doc', '', '', "class='form-control chosen'");?></td>
  52. </tr>
  53. <tr>
  54. <th><?php echo $lang->review->title;?></th>
  55. <td><?php echo html::input('title', '', "class='form-control'");?></td>
  56. </tr>
  57. <?php if($project->model == 'ipd'):?>
  58. <tr>
  59. <th><?php echo $lang->review->begin;?></th>
  60. <td><?php echo html::input('begin', '', "class='form-date form-control'");?></td>
  61. </tr>
  62. <?php endif;?>
  63. <tr>
  64. <tr>
  65. <th><?php echo $lang->review->deadline;?></th>
  66. <td><?php echo html::input('deadline', '', "class='form-date form-control'");?></td>
  67. </tr>
  68. <tr>
  69. <th><?php echo $lang->review->files;?></th>
  70. <td colspan='2'><?php echo $this->fetch('file', 'buildoldform', 'fileCount=1&percent=0.85');?></td>
  71. </tr>
  72. <tr>
  73. <th><?php echo $lang->review->reviewer;?></th>
  74. <td colspan='2' id='reviewerBox'></td>
  75. </tr>
  76. <tr>
  77. <th><?php echo $lang->review->comment;?></th>
  78. <td colspan='2'><?php echo html::textarea('comment', '', "class='form-control'");?></td>
  79. </tr>
  80. <tr>
  81. <td colspan='3' class='form-actions text-center'><?php echo html::submitButton() . html::a($backLink, $lang->goback, '', "class='btn btn-wide'");?></td>
  82. </tr>
  83. </tbody>
  84. </table>
  85. </form>
  86. </div>
  87. </div>
  88. <?php js::set('projectID', $projectID)?>
  89. <?php js::set('reviewText', $lang->review->common)?>
  90. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>