submit.html.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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'>
  4. <div class='center-block'>
  5. <div class='main-header'>
  6. <h2>
  7. <span class='label label-id'><?php echo $review->id;?></span>
  8. <span><?php echo $review->title;?></span>
  9. <small><?php echo $lang->arrow . $lang->review->submit;?></small>
  10. </h2>
  11. </div>
  12. <form method='post' enctype='multipart/form-data' target='hiddenwin'>
  13. <table class='table table-form'>
  14. <tr>
  15. <th class='w-80px'><?php echo $lang->review->reviewer;?></th>
  16. <td colspan='2' id='reviewerBox'></td>
  17. </tr>
  18. <tr>
  19. <th><?php echo $lang->comment;?></th>
  20. <td colspan='2'><?php echo html::textarea('comment', '', "rows='6' class='form-control'");?></td>
  21. </tr>
  22. <tr>
  23. <td class='text-center' colspan='3'><?php echo html::submitButton();?></td>
  24. </tr>
  25. </table>
  26. </form>
  27. <hr class='small' />
  28. <div class='main'><?php include $app->getModuleRoot() . 'common/view/action.html.php';?></div>
  29. </div>
  30. </div>
  31. <?php js::set('projectID', $review->project);?>
  32. <?php js::set('type', $review->category);?>
  33. <script>
  34. $(function()
  35. {
  36. var link = createLink('review', 'ajaxGetNodes', "project=" + projectID + '&object=' + type);
  37. $('#reviewerBox').load(link, function(){$(this).find('select').chosen()});
  38. })
  39. </script>
  40. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>