edit.html.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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->edit;?></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><?php echo html::select('product', $products, $review->product, "class='form-control chosen'");?></td>
  15. </tr>
  16. <?php else:?>
  17. <?php echo html::hidden('product', $review->product);?>
  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, $review->category, "class='form-control chosen' disabled");?></td>
  22. <td></td>
  23. </tr>
  24. <tr>
  25. <th><?php echo $lang->review->title;?></th>
  26. <td><?php echo html::input('title', $review->title, "class='form-control'");?></td>
  27. </tr>
  28. <tr>
  29. <th><?php echo $lang->review->deadline;?></th>
  30. <td><?php echo html::input('deadline', helper::isZeroDate($review->deadline) ? '' : $review->deadline, "class='form-date form-control'");?></td>
  31. </tr>
  32. <tr>
  33. <th><?php echo $lang->review->comment;?></th>
  34. <td colspan='2'><?php echo html::textarea('comment', '', "class='form-control'");?></td>
  35. </tr>
  36. <tr>
  37. <th><?php echo $lang->files;?></th>
  38. <td colspan='2'>
  39. <?php echo $this->fetch('file', 'printFiles', array('files' => $review->files, 'fieldset' => 'false', 'object' => $review, 'method' => 'edit'));?>
  40. <?php echo $this->fetch('file', 'buildoldform');?>
  41. </td>
  42. </tr>
  43. <tr>
  44. <td colspan='3' class='form-actions text-center'><?php echo html::submitButton() . html::backButton();?></td>
  45. </tr>
  46. </tbody>
  47. </table>
  48. </form>
  49. </div>
  50. </div>
  51. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>