close.html.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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>
  7. <span class='label label-id'><?php echo $demand->id;?></span>
  8. <span title='<?php echo $demand->title;?>'><?php echo $demand->title;?></span>
  9. </h2>
  10. </div>
  11. <form class="load-indicator main-form" method='post' target='hiddenwin' enctype='multipart/form-data' id='dataform'>
  12. <table class="table table-form">
  13. <tbody>
  14. <tr>
  15. <th class='thWidth'><?php echo $lang->demand->closedReason;?></th>
  16. <td class='w-p25-f'><?php echo html::select('closedReason', $this->lang->demand->reasonList, '', 'class="form-control chosen" onchange="setDemand(this.value)"');?></td>
  17. </tr>
  18. <tr id='duplicateDemandBox' style='display:none'>
  19. <th><?php echo $lang->demand->duplicateDemand;?></th>
  20. <td><?php echo html::select('duplicateDemand', array('' => '') + $demands, '', "class='form-control' placeholder='{$lang->demand->duplicateTip}'"); ?></td>
  21. </tr>
  22. <tr>
  23. <th><?php echo $lang->comment;?></th>
  24. <td colspan='3'><?php echo html::textarea('comment', '', "rows='6' class='form-control'");?></td>
  25. </tr>
  26. <tr>
  27. <td class='form-actions text-center' colspan='4'><?php echo html::submitButton($lang->demand->close);?></td>
  28. </tr>
  29. </tbody>
  30. </table>
  31. </form>
  32. <hr/>
  33. <?php include $app->getModuleRoot() . 'common/view/action.html.php';?>
  34. </div>
  35. </div>
  36. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>
  37. <script>
  38. $(function()
  39. {
  40. $('#duplicateDemand').picker(
  41. {
  42. disableEmptySearch : true,
  43. dropWidth : 'auto'
  44. });
  45. });
  46. function setDemand(reason)
  47. {
  48. if(reason == 'duplicate')
  49. {
  50. $('#duplicateDemandBox').show();
  51. }
  52. else
  53. {
  54. $('#duplicateDemandBox').hide();
  55. }
  56. }
  57. </script>