PageRenderTime 241ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/gui/templates_c/%%F5^F50^F501ED3C%%mainPageRight.tpl.php

https://github.com/viglesiasce/testlink
PHP | 309 lines | 271 code | 38 blank | 0 comment | 46 complexity | 3607f1851a60452dd901e3d1fa2b947c MD5 | raw file
  1. <?php /* Smarty version 2.6.26, created on 2010-09-24 15:21:51
  2. compiled from mainPageRight.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('function', 'lang_get', 'mainPageRight.tpl', 14, false),array('modifier', 'escape', 'mainPageRight.tpl', 123, false),array('modifier', 'truncate', 'mainPageRight.tpl', 124, false),)), $this); ?>
  5. <?php echo lang_get_smarty(array('var' => 'labels','s' => "current_test_plan,ok,testplan_role,msg_no_rights_for_tp,
  6. title_test_execution,href_execute_test,href_rep_and_metrics,
  7. href_update_tplan,href_newest_tcversions,
  8. href_my_testcase_assignments,href_platform_assign,
  9. href_tc_exec_assignment,href_plan_assign_urgency,
  10. href_upd_mod_tc,title_test_plan_mgmt,title_test_case_suite,
  11. href_plan_management,href_assign_user_roles,
  12. href_build_new,href_plan_mstones,href_plan_define_priority,
  13. href_metrics_dashboard,href_add_remove_test_cases"), $this);?>
  14. <?php $this->assign('menuLayout', $this->_tpl_vars['tlCfg']->gui->layoutMainPageRight); ?>
  15. <?php $this->assign('display_right_block_1', false); ?>
  16. <?php $this->assign('display_right_block_2', false); ?>
  17. <?php $this->assign('display_right_block_3', false); ?>
  18. <?php if ($this->_tpl_vars['gui']->grants['testplan_planning'] == 'yes' || $this->_tpl_vars['gui']->grants['mgt_testplan_create'] == 'yes' || $this->_tpl_vars['gui']->grants['testplan_user_role_assignment'] == 'yes' || $this->_tpl_vars['gui']->grants['testplan_create_build'] == 'yes'): ?>
  19. <?php $this->assign('display_right_block_1', true); ?>
  20. <script type="text/javascript">
  21. <?php echo '
  22. function display_right_block_1()
  23. {
  24. var rp1 = new Ext.Panel({
  25. title: '; ?>
  26. '<?php echo $this->_tpl_vars['labels']['title_test_plan_mgmt']; ?>
  27. '<?php echo ',
  28. collapsible:false,
  29. collapsed: false,
  30. draggable: false,
  31. contentEl: \'test_plan_mgmt_topics\',
  32. baseCls: \'x-tl-panel\',
  33. bodyStyle: "background:#c8dce8;padding:3px;",
  34. renderTo: '; ?>
  35. 'menu_right_block_<?php echo $this->_tpl_vars['menuLayout']['testPlan']; ?>
  36. '<?php echo ',
  37. width:\'100%\'
  38. });
  39. }
  40. '; ?>
  41. </script>
  42. <?php endif; ?>
  43. <?php if ($this->_tpl_vars['gui']->countPlans > 0): ?>
  44. <?php $this->assign('display_right_block_2', true); ?>
  45. <script type="text/javascript">
  46. <?php echo '
  47. function display_right_block_2()
  48. {
  49. var rp2 = new Ext.Panel({
  50. title: '; ?>
  51. '<?php echo $this->_tpl_vars['labels']['title_test_execution']; ?>
  52. '<?php echo ',
  53. collapsible:false,
  54. collapsed: false,
  55. draggable: false,
  56. contentEl: \'test_execution_topics\',
  57. baseCls: \'x-tl-panel\',
  58. bodyStyle: "background:#c8dce8;padding:3px;",
  59. renderTo: '; ?>
  60. 'menu_right_block_<?php echo $this->_tpl_vars['menuLayout']['testExecution']; ?>
  61. '<?php echo ',
  62. width:\'100%\'
  63. });
  64. }
  65. '; ?>
  66. </script>
  67. <?php endif; ?>
  68. <?php if ($this->_tpl_vars['gui']->countPlans > 0 && $this->_tpl_vars['gui']->grants['testplan_planning'] == 'yes'): ?>
  69. <?php $this->assign('display_right_block_3', true); ?>
  70. <script type="text/javascript">
  71. <?php echo '
  72. function display_right_block_3()
  73. {
  74. var rp3 = new Ext.Panel({
  75. title: '; ?>
  76. '<?php echo $this->_tpl_vars['labels']['title_test_case_suite']; ?>
  77. '<?php echo ',
  78. collapsible:false,
  79. collapsed: false,
  80. draggable: false,
  81. contentEl: \'testplan_contents_topics\',
  82. baseCls: \'x-tl-panel\',
  83. bodyStyle: "background:#c8dce8;padding:3px;",
  84. renderTo: '; ?>
  85. 'menu_right_block_<?php echo $this->_tpl_vars['menuLayout']['testPlanContents']; ?>
  86. '<?php echo ',
  87. width:\'100%\'
  88. });
  89. }
  90. '; ?>
  91. </script>
  92. <?php endif; ?>
  93. <div class="vertical_menu" style="float: left">
  94. <?php if ($this->_tpl_vars['gui']->num_active_tplans > 0): ?>
  95. <div class="testproject_title">
  96. <?php echo lang_get_smarty(array('s' => 'help','var' => 'common_prefix'), $this);?>
  97. <?php echo lang_get_smarty(array('s' => 'test_plan','var' => 'xx_alt'), $this);?>
  98. <?php $this->assign('text_hint', ($this->_tpl_vars['common_prefix']).": ".($this->_tpl_vars['xx_alt'])); ?>
  99. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  100. $this->_smarty_include(array('smarty_include_tpl_file' => "inc_help.tpl", 'smarty_include_vars' => array('helptopic' => 'hlp_testPlan','show_help_icon' => true,'inc_help_alt' => ($this->_tpl_vars['text_hint']),'inc_help_title' => ($this->_tpl_vars['text_hint']),'inc_help_style' => "float: right;vertical-align: top;")));
  101. $this->_tpl_vars = $_smarty_tpl_vars;
  102. unset($_smarty_tpl_vars);
  103. ?>
  104. <form name="testplanForm" action="lib/general/mainPage.php">
  105. <?php if ($this->_tpl_vars['gui']->countPlans > 0): ?>
  106. <?php echo $this->_tpl_vars['labels']['current_test_plan']; ?>
  107. :<br/>
  108. <select style="z-index:1" name="testplan" onchange="this.form.submit();">
  109. <?php unset($this->_sections['tPlan']);
  110. $this->_sections['tPlan']['name'] = 'tPlan';
  111. $this->_sections['tPlan']['loop'] = is_array($_loop=$this->_tpl_vars['gui']->arrPlans) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
  112. $this->_sections['tPlan']['show'] = true;
  113. $this->_sections['tPlan']['max'] = $this->_sections['tPlan']['loop'];
  114. $this->_sections['tPlan']['step'] = 1;
  115. $this->_sections['tPlan']['start'] = $this->_sections['tPlan']['step'] > 0 ? 0 : $this->_sections['tPlan']['loop']-1;
  116. if ($this->_sections['tPlan']['show']) {
  117. $this->_sections['tPlan']['total'] = $this->_sections['tPlan']['loop'];
  118. if ($this->_sections['tPlan']['total'] == 0)
  119. $this->_sections['tPlan']['show'] = false;
  120. } else
  121. $this->_sections['tPlan']['total'] = 0;
  122. if ($this->_sections['tPlan']['show']):
  123. for ($this->_sections['tPlan']['index'] = $this->_sections['tPlan']['start'], $this->_sections['tPlan']['iteration'] = 1;
  124. $this->_sections['tPlan']['iteration'] <= $this->_sections['tPlan']['total'];
  125. $this->_sections['tPlan']['index'] += $this->_sections['tPlan']['step'], $this->_sections['tPlan']['iteration']++):
  126. $this->_sections['tPlan']['rownum'] = $this->_sections['tPlan']['iteration'];
  127. $this->_sections['tPlan']['index_prev'] = $this->_sections['tPlan']['index'] - $this->_sections['tPlan']['step'];
  128. $this->_sections['tPlan']['index_next'] = $this->_sections['tPlan']['index'] + $this->_sections['tPlan']['step'];
  129. $this->_sections['tPlan']['first'] = ($this->_sections['tPlan']['iteration'] == 1);
  130. $this->_sections['tPlan']['last'] = ($this->_sections['tPlan']['iteration'] == $this->_sections['tPlan']['total']);
  131. ?>
  132. <option value="<?php echo $this->_tpl_vars['gui']->arrPlans[$this->_sections['tPlan']['index']]['id']; ?>
  133. "
  134. <?php if ($this->_tpl_vars['gui']->arrPlans[$this->_sections['tPlan']['index']]['selected']): ?> selected="selected" <?php endif; ?>
  135. title="<?php echo ((is_array($_tmp=$this->_tpl_vars['gui']->arrPlans[$this->_sections['tPlan']['index']]['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  136. ">
  137. <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['gui']->arrPlans[$this->_sections['tPlan']['index']]['name'])) ? $this->_run_mod_handler('truncate', true, $_tmp, $this->_config[0]['vars']['TESTPLAN_TRUNCATE_SIZE']) : smarty_modifier_truncate($_tmp, $this->_config[0]['vars']['TESTPLAN_TRUNCATE_SIZE'])))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  138. </option>
  139. <?php endfor; endif; ?>
  140. </select>
  141. <?php if ($this->_tpl_vars['gui']->countPlans == 1): ?>
  142. <input type="button" onclick="this.form.submit();" value="<?php echo $this->_tpl_vars['labels']['ok']; ?>
  143. "/>
  144. <?php endif; ?>
  145. <?php if ($this->_tpl_vars['gui']->testplanRole != null): ?>
  146. <br /><?php echo $this->_tpl_vars['labels']['testplan_role']; ?>
  147. <?php echo ((is_array($_tmp=$this->_tpl_vars['gui']->testplanRole)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  148. <?php endif; ?>
  149. <?php else: ?>
  150. <?php if ($this->_tpl_vars['gui']->num_active_tplans > 0): ?><?php echo $this->_tpl_vars['labels']['msg_no_rights_for_tp']; ?>
  151. <?php endif; ?>
  152. <?php endif; ?>
  153. </form>
  154. </div>
  155. <?php endif; ?>
  156. <br />
  157. <div id='menu_right_block_1'></div><br />
  158. <div id='menu_right_block_2'></div><br />
  159. <div id="menu_right_block_3"></div><br />
  160. <div id="menu_left_block_1"></div><br />
  161. <div id="menu_left_block_2"></div><br />
  162. <div id="menu_left_block_3"></div><br />
  163. <div id="menu_left_block_3"></div><br />
  164. <div id="menu_left_block_4"></div><br />
  165. <div id="menu_left_block_5"></div><br />
  166. <?php if ($this->_tpl_vars['display_right_block_1']): ?>
  167. <div id='test_plan_mgmt_topics'>
  168. <?php if ($this->_tpl_vars['gui']->grants['mgt_testplan_create'] == 'yes'): ?>
  169. <img src="<?php echo @TL_ITEM_BULLET_IMG; ?>
  170. " />
  171. <a href="lib/plan/planView.php"><?php echo $this->_tpl_vars['labels']['href_plan_management']; ?>
  172. </a>
  173. <?php endif; ?>
  174. <?php if ($this->_tpl_vars['gui']->grants['testplan_create_build'] == 'yes' && $this->_tpl_vars['gui']->countPlans > 0): ?>
  175. <br />
  176. <img src="<?php echo @TL_ITEM_BULLET_IMG; ?>
  177. " />
  178. <a href="lib/plan/buildView.php"><?php echo $this->_tpl_vars['labels']['href_build_new']; ?>
  179. </a>
  180. <?php endif; ?>
  181. <?php if ($this->_tpl_vars['gui']->grants['testplan_user_role_assignment'] == 'yes' && $this->_tpl_vars['gui']->countPlans > 0): ?>
  182. <br />
  183. <img src="<?php echo @TL_ITEM_BULLET_IMG; ?>
  184. " />
  185. <a href="lib/usermanagement/usersAssign.php?featureType=testplan&amp;featureID=<?php echo $this->_tpl_vars['gui']->testplanID; ?>
  186. "><?php echo $this->_tpl_vars['labels']['href_assign_user_roles']; ?>
  187. </a>
  188. <?php endif; ?>
  189. <?php if ($this->_tpl_vars['gui']->grants['testplan_planning'] == 'yes' && $this->_tpl_vars['gui']->countPlans > 0): ?>
  190. <br />
  191. <img src="<?php echo @TL_ITEM_BULLET_IMG; ?>
  192. " />
  193. <a href="lib/plan/planMilestonesView.php"><?php echo $this->_tpl_vars['labels']['href_plan_mstones']; ?>
  194. </a>
  195. <?php endif; ?>
  196. </div>
  197. <?php endif; ?>
  198. <?php if ($this->_tpl_vars['display_right_block_2']): ?>
  199. <div id='test_execution_topics'>
  200. <?php if ($this->_tpl_vars['gui']->grants['testplan_execute'] == 'yes'): ?>
  201. <img src="<?php echo @TL_ITEM_BULLET_IMG; ?>
  202. " />
  203. <a href="<?php echo $this->_tpl_vars['gui']->launcher; ?>
  204. ?feature=executeTest"><?php echo $this->_tpl_vars['labels']['href_execute_test']; ?>
  205. </a>
  206. <?php endif; ?>
  207. <?php if ($this->_tpl_vars['gui']->grants['testplan_metrics'] == 'yes'): ?>
  208. <br />
  209. <img src="<?php echo @TL_ITEM_BULLET_IMG; ?>
  210. " />
  211. <a href="<?php echo $this->_tpl_vars['gui']->launcher; ?>
  212. ?feature=showMetrics"><?php echo $this->_tpl_vars['labels']['href_rep_and_metrics']; ?>
  213. </a>
  214. <?php endif; ?>
  215. <br />
  216. <img src="<?php echo @TL_ITEM_BULLET_IMG; ?>
  217. " />
  218. <a href="<?php echo $this->_tpl_vars['gui']->url['metrics_dashboard']; ?>
  219. "><?php echo $this->_tpl_vars['labels']['href_metrics_dashboard']; ?>
  220. </a>
  221. <br />
  222. <img src="<?php echo @TL_ITEM_BULLET_IMG; ?>
  223. " />
  224. <a href="<?php echo $this->_tpl_vars['gui']->url['testcase_assignments']; ?>
  225. "><?php echo $this->_tpl_vars['labels']['href_my_testcase_assignments']; ?>
  226. </a>
  227. </div>
  228. <?php endif; ?>
  229. <?php if ($this->_tpl_vars['display_right_block_3']): ?>
  230. <div id='testplan_contents_topics'>
  231. <img src="<?php echo @TL_ITEM_BULLET_IMG; ?>
  232. " />
  233. <a href="lib/platforms/platformsAssign.php?tplan_id=<?php echo $this->_tpl_vars['gui']->testplanID; ?>
  234. "><?php echo $this->_tpl_vars['labels']['href_platform_assign']; ?>
  235. </a>
  236. <br />
  237. <img src="<?php echo @TL_ITEM_BULLET_IMG; ?>
  238. " />
  239. <a href="<?php echo $this->_tpl_vars['gui']->launcher; ?>
  240. ?feature=planAddTC"><?php echo $this->_tpl_vars['labels']['href_add_remove_test_cases']; ?>
  241. </a>
  242. <br />
  243. <img src="<?php echo @TL_ITEM_BULLET_IMG; ?>
  244. " />
  245. <a href="<?php echo $this->_tpl_vars['gui']->launcher; ?>
  246. ?feature=planUpdateTC"><?php echo $this->_tpl_vars['labels']['href_update_tplan']; ?>
  247. </a>
  248. <br />
  249. <img src="<?php echo @TL_ITEM_BULLET_IMG; ?>
  250. " />
  251. <a href="<?php echo $this->_tpl_vars['gui']->launcher; ?>
  252. ?feature=newest_tcversions"><?php echo $this->_tpl_vars['labels']['href_newest_tcversions']; ?>
  253. </a>
  254. <br />
  255. <img src="<?php echo @TL_ITEM_BULLET_IMG; ?>
  256. " />
  257. <a href="<?php echo $this->_tpl_vars['gui']->launcher; ?>
  258. ?feature=tc_exec_assignment"><?php echo $this->_tpl_vars['labels']['href_tc_exec_assignment']; ?>
  259. </a>
  260. <br />
  261. <?php if ($this->_tpl_vars['session'] ['testprojectOptions']->testPriorityEnabled): ?>
  262. <img src="<?php echo @TL_ITEM_BULLET_IMG; ?>
  263. " />
  264. <a href="<?php echo $this->_tpl_vars['gui']->launcher; ?>
  265. ?feature=test_urgency"><?php echo $this->_tpl_vars['labels']['href_plan_assign_urgency']; ?>
  266. </a>
  267. <br />
  268. <?php endif; ?>
  269. </div>
  270. <?php endif; ?>
  271. </div>