close.html.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * The comment view file of feedback module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2015 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Yidong Wang <yidong@cnezsoft.com>
  8. * @package feedback
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php include $app->getModuleRoot() . 'common/view/header.lite.html.php';?>
  14. <?php include $app->getModuleRoot() . 'common/view/kindeditor.html.php';?>
  15. <div id='mainContent' class='main-content'>
  16. <div class='main-header'>
  17. <h2><?php echo $lang->feedback->close;?></h2>
  18. </div>
  19. <form method='post' target='hiddenwin'>
  20. <table class='table table-form'>
  21. <tr class='<?php echo (!empty($this->app->user->feedback) or $this->cookie->feedbackView) ? 'hidden' : ''?>'>
  22. <th><?php echo $lang->feedback->closedReason?></th>
  23. <td><?php echo html::select('closedReason', $lang->feedback->closedReasonList, $closedReason, "class='form-control picker-select'");?></td>
  24. <td></td>
  25. </tr>
  26. <tr class='hidden'>
  27. <th><?php echo $lang->feedback->repeatFeedback?></th>
  28. <td><?php echo html::select('repeatFeedback', $feedbacks, '', "class='form-control'");?></td>
  29. </tr>
  30. <tr class='hide'>
  31. <th><?php echo $lang->feedback->status;?></th>
  32. <td><?php echo html::hidden('status', 'closed');?></td>
  33. </tr>
  34. <?php $this->printExtendFields($feedback, 'table');?>
  35. <tr>
  36. <th><?php echo $lang->comment?></th>
  37. <td colspan='3'><?php echo html::textarea('comment', '',"rows='5' class='w-p100'");?></td>
  38. </tr>
  39. <tr>
  40. <td colspan='3' class='text-center form-actions'>
  41. <?php echo html::submitButton();?>
  42. </td>
  43. </tr>
  44. </table>
  45. </form>
  46. </div>
  47. <script>
  48. $('#closedReason').change(function()
  49. {
  50. var value = $(this).val();
  51. $('#repeatFeedback').parents('tr').toggleClass('hidden', (value !== 'repeat'))
  52. });
  53. $('#repeatFeedback').picker(
  54. {
  55. disableEmptySearch : true,
  56. dropWidth : 'auto',
  57. onReady: function(event)
  58. {
  59. $(event.picker.$container).addClass('required');
  60. }
  61. })
  62. </script>
  63. <?php include $app->getModuleRoot() . 'common/view/footer.lite.html.php';?>