selecttask.html.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * The select task file of testreport module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(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 Guangming Sun <chunsheng@cnezsoft.com>
  8. * @package testreport
  9. * @version $Id: resolve.html.php 4129 2013-01-18 01:58:14Z wwccss $
  10. * @link https://www.zentao.net
  11. */
  12. ?>
  13. <?php include '../../common/view/header.html.php';?>
  14. <div id='mainContent' class='main-content'>
  15. <div class='center-block'>
  16. <div class='main-header'>
  17. <h2><?php echo $lang->testreport->selectTask;?></h2>
  18. </div>
  19. <table class='table table-form'>
  20. <tr>
  21. <th><?php echo $lang->testtask->common;?></th>
  22. <td><?php echo html::select('testtask', $taskPairs, '', "class='form-control chosen'");?></td>
  23. </tr>
  24. <tr>
  25. <th></th>
  26. <td colspan='2'><?php echo html::commonButton($lang->testreport->create, "onclick=locateToCreate(this)", 'btn btn-wide btn-primary') . ' ' . html::backButton();?></td>
  27. </tr>
  28. </table>
  29. </div>
  30. </div>
  31. <script>
  32. function locateToCreate(obj)
  33. {
  34. var taskID = $(obj).closest('table').find('#testtask').val();
  35. if(taskID)
  36. {
  37. location.href = createLink('testreport', 'create', 'objectID=' + taskID + '&objectType=testtask');
  38. return false;
  39. }
  40. }
  41. </script>
  42. <?php include '../../common/view/footer.html.php';?>