m.close.html.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * The close mobile view file of testtask 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 testtask
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <div class='heading divider'>
  14. <span class='title'><strong><?php echo $lang->testtask->close ?></strong> #<?php echo $testtask->id ?></span>
  15. <nav class='nav'>
  16. <a data-dismiss='display'><i class='icon-remove muted'></i></a>
  17. </nav>
  18. </div>
  19. <form class='has-padding content' method='post' target='hiddenwin' action='<?php echo $this->createLink('testtask', 'close', "id=$testtask->id")?>' id='closeForm' data-form-refresh='#page'>
  20. <div class='control'>
  21. <label for='comment'><?php echo $lang->comment;?></label>
  22. <?php echo html::textarea('comment', '', 'rows=2 class="textarea"');?></td>
  23. </div>
  24. <div class="row">
  25. <div class="control">
  26. <label for='mailto'><?php echo $lang->testtask->mailto;?></label>
  27. <div class='select'><?php echo html::select('mailto[]', $users, str_replace(' ' , '', $testtask->mailto), "multiple");?></div>
  28. </div>
  29. <?php echo $this->fetch('my', 'buildContactLists');?>
  30. </div>
  31. </form>
  32. <div class='footer has-padding'>
  33. <button type='button' id='submitButton' class='btn primary'><?php echo $lang->save ?></button>
  34. </div>
  35. <script>
  36. $(function()
  37. {
  38. $('#submitButton').click(function(){$('#closeForm').submit()});
  39. })
  40. </script>