m.caseheader.html.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. $bodyClass = 'with-menu-top';
  3. $headerTitle = $lang->testtask->common . $lang->hyphen . $task->name;
  4. ?>
  5. <?php include '../../common/view/m.header.html.php';?>
  6. <?php
  7. $hasCasesPriv = common::hasPriv('testtask', 'cases');
  8. $hasGroupPriv = common::hasPriv('testtask', 'groupcase');
  9. ?>
  10. <nav id='menu' class='menu nav affix dock-top canvas'>
  11. <?php
  12. if($hasCasesPriv) echo html::a($this->inlink('cases', "taskID=$taskID&browseType=all&param=0"), $lang->testtask->allCases, '', "id='allTab'");
  13. if($hasCasesPriv) echo html::a($this->inlink('cases', "taskID=$taskID&browseType=assignedtome&param=0"), $lang->testtask->assignedToMe, '', "id='assignedtomeTab'");
  14. if($hasGroupPriv) echo html::a($this->inlink('groupCase', "taskID=$taskID&groupBy=story"), $lang->testcase->groupByStories, '', "id='groupcaseTab'");
  15. if(common::hasPriv('testtask', 'view')) echo html::a(inlink('view', "taskID=$taskID"), $lang->testtask->view);
  16. ?>
  17. <a class='moreMenu hidden' data-display='dropdown' data-placement='beside-bottom'><?php echo $lang->more;?></a>
  18. <div id='moreMenu' class='list dropdown-menu'></div>
  19. </nav>
  20. <?php
  21. if($hasGroupPriv)
  22. {
  23. echo "<div class='list hidden affix enter-from-bottom layer' id='groupModal'>";
  24. foreach ($lang->testcase->groups as $key => $value)
  25. {
  26. if($key == '') continue;
  27. echo html::a($this->createLink('testtask', 'groupCase', "taskID=$taskID&&groupBy=$key"), $value, '', "class='item " . ($key == $groupBy ? "active" : '') . "'");
  28. }
  29. echo '</div>';
  30. }
  31. ?>
  32. <?php
  33. $headerHooks = glob(dirname(dirname(__FILE__)) . "/ext/view/m.featurebar.*.html.hook.php");
  34. if(!empty($headerHooks))
  35. {
  36. foreach($headerHooks as $fileName) include($fileName);
  37. }
  38. ?>