create.html.php 3.1 KB

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