m.create.html.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * The feedback create mobile view file of feedback module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2016 禅道软件(青岛)有限公司(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. <div class='title'><i class='icon-plus muted'></i> <strong><?php echo $lang->feedback->create;?></strong></div>
  15. <nav class='nav'><a data-dismiss='display'><i class='icon icon-remove muted'></i></a></nav>
  16. </div>
  17. <form class='content box' data-form-refresh='#page' method='post' id='createForm' action='<?php echo $this->createLink('feedback', 'create');?>' target='hiddenwin' enctype='multipart/form-data'>
  18. <div class="control">
  19. <label for='module'><?php echo $lang->feedback->module;?></label>
  20. <div class='select'><?php echo html::select('module', $modules, '');?></div>
  21. </div>
  22. <div class="control">
  23. <label for='product'><?php echo $lang->feedback->product;?></label>
  24. <div class='select'><?php echo html::select('product', $products, '');?></div>
  25. </div>
  26. <div class='control'>
  27. <label for='name'><?php echo $lang->feedback->title;?></label>
  28. <?php echo html::input('title', '', "class='input' placeholder='{$lang->required}'");?>
  29. </div>
  30. <div class='control'>
  31. <div class='checkbox'>
  32. <input type='checkbox' id='public' name='public' value='1'>
  33. <label for='public'> <?php echo $lang->feedback->public;?></label>
  34. </div>
  35. </div>
  36. <div class='control'>
  37. <label for='desc'><?php echo $lang->feedback->desc;?></label>
  38. <?php echo html::textarea('desc', '', "rews='5' class='textarea'");?>
  39. </div>
  40. <div class='control'>
  41. <?php echo $this->fetch('file', 'buildForm', 'fileCount=1');?>
  42. </div>
  43. <div class='control'>
  44. <div class='checkbox'>
  45. <input type='checkbox' id='notify' name='notify' value='1'>
  46. <label for='notify'> <?php echo $lang->feedback->mailNotify;?></label>
  47. </div>
  48. </div>
  49. </form>
  50. <div class='footer has-padding'>
  51. <button type='button' id='submitButton' class='btn primary'><?php echo $lang->save;?></button>
  52. </div>
  53. <script>
  54. $(function()
  55. {
  56. $('#submitButton').click(function(){$('#createForm').submit()});
  57. });
  58. </script>