m.view.html.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?php
  2. /**
  3. * The view 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. $bodyClass = 'with-nav-bottom';
  13. ?>
  14. <?php include '../../common/view/m.header.html.php';?>
  15. <div id='page' class='list-with-actions'>
  16. <div class='heading'>
  17. <div class='title'>
  18. <span class="prefix"> <strong><?php echo $task->id;?></strong></span>
  19. <strong><?php echo $task->name;?></strong>
  20. </div>
  21. <nav class='nav'>
  22. <a href='javascript:history.go(-1);' class='btn primary'><?php echo $lang->goback;?></a>
  23. </nav>
  24. </div>
  25. <div class='section no-margin'>
  26. <div class="outline">
  27. <nav class="nav" data-display="" data-selector="a" data-show-single="true" data-active-class="active" data-animate="false">
  28. <a class="active" data-target="#legendView"><?php echo $lang->testtask->view?></a>
  29. <a data-target="#legendBasicInfo"><?php echo $lang->testtask->legendBasicInfo?></a>
  30. </nav>
  31. <div>
  32. <div class="display in" id="legendView">
  33. <div class='heading gray'>
  34. <div class='title'><?php echo $lang->testtask->legendDesc;?></div>
  35. </div>
  36. <div class='article'><?php echo $task->desc;?></div>
  37. <?php if($task->report):?>
  38. <div class='heading gray'>
  39. <div class='title'><?php echo $lang->testtask->legendReport;?></div>
  40. </div>
  41. <div class='article'><?php echo $task->report;?></div>
  42. <?php endif;?>
  43. <?php include '../../common/view/m.action.html.php';?>
  44. </div>
  45. <div class="display hidden" id="legendBasicInfo">
  46. <table class='table bordered table-detail'>
  47. <tr>
  48. <th class='w-80px'><?php echo $lang->testtask->execution;?></th>
  49. <td><?php echo html::a($this->createLink('execution', 'story', "executionID=$task->execution"), $task->executionName);?></td>
  50. </tr>
  51. <tr>
  52. <th><?php echo $lang->testtask->build;?></th>
  53. <td><?php $task->build == 'trunk' ? print($lang->trunk) : print(html::a($this->createLink('build', 'view', "buildID=$task->build"), $task->buildName));?></td>
  54. </tr>
  55. <tr>
  56. <th><?php echo $lang->testtask->owner;?></th>
  57. <td><?php echo zget($users, $task->owner);?></td>
  58. </tr>
  59. <tr>
  60. <th><?php echo $lang->testtask->mailto;?></th>
  61. <td><?php $mailto = explode(',', str_replace(' ', '', $task->mailto)); foreach($mailto as $account) echo ' ' . zget($users, $account, $account);?></td>
  62. </tr>
  63. <tr>
  64. <th><?php echo $lang->testtask->pri;?></th>
  65. <td><?php echo $task->pri;?></td>
  66. </tr>
  67. <tr>
  68. <th><?php echo $lang->testtask->begin;?></th>
  69. <td><?php echo $task->begin;?></td>
  70. </tr>
  71. <tr>
  72. <th><?php echo $lang->testtask->end;?></th>
  73. <td><?php echo $task->end;?></td>
  74. </tr>
  75. <tr>
  76. <th><?php echo $lang->testtask->status;?></th>
  77. <td class='task-<?php echo $task->status?>'><?php echo $lang->testtask->statusList[$task->status];?></td>
  78. </tr>
  79. </table>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. <nav class='nav nav-auto affix dock-bottom footer-actions'>
  85. <?php
  86. common::printIcon('testtask', 'start', "taskID=$task->id", $task, 'button', '', '', '', false, "data-display='modal' data-placement='bottom'", $lang->testtask->start);
  87. common::printIcon('testtask', 'close', "taskID=$task->id", $task, 'button', '', '', '', false, "data-display='modal' data-placement='bottom'", $lang->testtask->close);
  88. common::printIcon('testtask', 'block', "taskID=$task->id", $task, 'button', '', '', '', false, "data-display='modal' data-placement='bottom'", $lang->testtask->block);
  89. common::printIcon('testtask', 'activate', "taskID=$task->id", $task, 'button', '', '', '', false, "data-display='modal' data-placement='bottom'", $lang->testtask->activate);
  90. if(common::hasPriv('testtask', 'cases')) echo html::a($this->createLink('testtask', 'cases', "taskID=$task->id"), $lang->testtask->cases);
  91. if(common::hasPriv('testtask', 'delete')) echo html::a($this->createLink('testtask', 'delete', "taskID=$task->id"), $lang->delete, 'hiddenwin');
  92. ?>
  93. </nav>
  94. </div>
  95. <?php include '../../common/view/m.footer.html.php';?>