m.comment.html.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * The comment view mobile web 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 Fei Chen <chenfei@cnezsoft.com>
  8. * @package feedback
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <div class='heading divider'>
  14. <span class='title'>
  15. <strong>
  16. <?php
  17. if($type == 'asked') $title = $lang->feedback->ask;
  18. if($type == 'replied') $title = $lang->feedback->reply;
  19. if($type != 'asked' && $type != 'replied') $title = $lang->feedback->comment;
  20. echo $title;
  21. ?>
  22. </strong>
  23. #<?php echo $feedbackID?>
  24. </span>
  25. <nav class='nav'><a data-dismiss='display'><i class='icon-remove muted'></i></a></nav>
  26. </div>
  27. <form class='has-padding content' method='post' target='hiddenwin' action='<?php echo $this->createLink('feedback', 'comment', http_build_query($this->app->getParams()))?>' id='commentForm' data-form-refresh='#page'>
  28. <div class='control'><?php echo html::textarea('comment', '',"rows='5' class='textarea' data-default-val");?></div>
  29. </form>
  30. <div class='footer has-padding'>
  31. <button type='button' id='submitButton' class='btn primary'><?php echo $lang->save ?></button>
  32. </div>
  33. <script>
  34. $(function()
  35. {
  36. $('#submitButton').click(function(){$('#commentForm').submit()});
  37. })
  38. </script>