PageRenderTime 39ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/gui/templates_c/%%AB^AB2^AB2370DF%%resultsGeneral.tpl.php

https://github.com/viglesiasce/testlink
PHP | 248 lines | 215 code | 33 blank | 0 comment | 25 complexity | 2a97e9bdccfe4abc7bce956c91d2df0a MD5 | raw file
  1. <?php /* Smarty version 2.6.26, created on 2010-09-27 15:37:37
  2. compiled from results/resultsGeneral.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('function', 'lang_get', 'results/resultsGeneral.tpl', 11, false),array('modifier', 'escape', 'results/resultsGeneral.tpl', 54, false),array('modifier', 'date_format', 'results/resultsGeneral.tpl', 197, false),)), $this); ?>
  5. <?php echo lang_get_smarty(array('var' => 'labels','s' => 'trep_kw,trep_owner,trep_comp,generated_by_TestLink_on, priority,
  6. th_overall_priority, th_progress, th_expected, th_overall, th_milestone,
  7. th_tc_priority_high, th_tc_priority_medium, th_tc_priority_low,
  8. title_res_by_kw,title_res_by_owner,title_res_by_top_level_suites,
  9. title_report_tc_priorities,title_report_milestones,
  10. title_metrics_x_build,title_res_by_platform,th_platform,important_notice,
  11. report_tcase_platorm_relationship, th_tc_total, th_completed, th_goal,
  12. th_build, th_tc_assigned, th_perc_completed'), $this);?>
  13. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  14. $this->_smarty_include(array('smarty_include_tpl_file' => "inc_head.tpl", 'smarty_include_vars' => array()));
  15. $this->_tpl_vars = $_smarty_tpl_vars;
  16. unset($_smarty_tpl_vars);
  17. ?>
  18. <body>
  19. <h1 class="title"><?php echo $this->_tpl_vars['gui']->title; ?>
  20. </h1>
  21. <div class="workBack">
  22. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  23. $this->_smarty_include(array('smarty_include_tpl_file' => "inc_result_tproject_tplan.tpl", 'smarty_include_vars' => array('arg_tproject_name' => $this->_tpl_vars['session']['testprojectName'],'arg_tplan_name' => $this->_tpl_vars['gui']->tplan_name)));
  24. $this->_tpl_vars = $_smarty_tpl_vars;
  25. unset($_smarty_tpl_vars);
  26. ?>
  27. <?php if ($this->_tpl_vars['gui']->do_report['status_ok']): ?>
  28. <?php if ($this->_tpl_vars['gui']->showPlatforms): ?>
  29. <hr>
  30. <h2> <?php echo $this->_tpl_vars['labels']['important_notice']; ?>
  31. </h2>
  32. <?php echo $this->_tpl_vars['labels']['report_tcase_platorm_relationship']; ?>
  33. <hr>
  34. <?php endif; ?>
  35. <h2><?php echo $this->_tpl_vars['labels']['title_metrics_x_build']; ?>
  36. </h1>
  37. <table class="simple" style="width: 100%; text-align: center; margin-left: 0px;">
  38. <tr>
  39. <th style="width: 10%;"><?php echo $this->_tpl_vars['labels']['th_build']; ?>
  40. </th>
  41. <th><?php echo $this->_tpl_vars['labels']['th_tc_assigned']; ?>
  42. </th>
  43. <?php $_from = $this->_tpl_vars['buildColDefinition']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  44. foreach ($_from as $this->_tpl_vars['the_column']):
  45. ?>
  46. <th><?php echo $this->_tpl_vars['the_column']['qty']; ?>
  47. </th>
  48. <th><?php echo $this->_tpl_vars['the_column']['percentage']; ?>
  49. </th>
  50. <?php endforeach; endif; unset($_from); ?>
  51. <th><?php echo $this->_tpl_vars['labels']['th_perc_completed']; ?>
  52. </th>
  53. </tr>
  54. <?php $_from = $this->_tpl_vars['buildResults']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  55. foreach ($_from as $this->_tpl_vars['res']):
  56. ?>
  57. <tr>
  58. <td><?php echo ((is_array($_tmp=$this->_tpl_vars['res']['build_name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  59. </td>
  60. <?php if (isset ( $this->_tpl_vars['res']['total_tc'] )): ?>
  61. <td><?php echo $this->_tpl_vars['res']['total_tc']; ?>
  62. </td>
  63. <?php $_from = $this->_tpl_vars['buildColDefinition']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  64. foreach ($_from as $this->_tpl_vars['status'] => $this->_tpl_vars['the_column']):
  65. ?>
  66. <td><?php echo $this->_tpl_vars['res']['details'][$this->_tpl_vars['status']]['qty']; ?>
  67. </td>
  68. <td><?php echo $this->_tpl_vars['res']['details'][$this->_tpl_vars['status']]['percentage']; ?>
  69. </td>
  70. <?php endforeach; endif; unset($_from); ?>
  71. <td><?php echo $this->_tpl_vars['res']['percentage_completed']; ?>
  72. </td>
  73. <?php else: ?>
  74. <?php $_from = $this->_tpl_vars['buildColDefinition']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  75. foreach ($_from as $this->_tpl_vars['the_column']):
  76. ?>
  77. <td>&nbsp;</td>
  78. <?php endforeach; endif; unset($_from); ?>
  79. <?php endif; ?>
  80. </tr>
  81. <?php endforeach; endif; unset($_from); ?>
  82. </table>
  83. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  84. $this->_smarty_include(array('smarty_include_tpl_file' => "results/inc_results_show_table.tpl", 'smarty_include_vars' => array('args_title' => $this->_tpl_vars['labels']['title_res_by_top_level_suites'],'args_first_column_header' => $this->_tpl_vars['labels']['trep_comp'],'args_first_column_key' => 'tsuite_name','args_show_percentage' => false,'args_column_definition' => $this->_tpl_vars['gui']->columnsDefinition->testsuites,'args_column_data' => $this->_tpl_vars['gui']->statistics->testsuites)));
  85. $this->_tpl_vars = $_smarty_tpl_vars;
  86. unset($_smarty_tpl_vars);
  87. ?>
  88. <?php if ($this->_tpl_vars['gui']->showPlatforms): ?>
  89. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  90. $this->_smarty_include(array('smarty_include_tpl_file' => "results/inc_results_show_table.tpl", 'smarty_include_vars' => array('args_title' => $this->_tpl_vars['labels']['title_res_by_platform'],'args_first_column_header' => $this->_tpl_vars['labels']['th_platform'],'args_first_column_key' => 'name','args_show_percentage' => true,'args_column_definition' => $this->_tpl_vars['gui']->columnsDefinition->platform,'args_column_data' => $this->_tpl_vars['gui']->statistics->platform)));
  91. $this->_tpl_vars = $_smarty_tpl_vars;
  92. unset($_smarty_tpl_vars);
  93. ?>
  94. <?php endif; ?>
  95. <?php if ($this->_tpl_vars['session'] ['testprojectOptions']->testPriorityEnabled): ?>
  96. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  97. $this->_smarty_include(array('smarty_include_tpl_file' => "results/inc_results_show_table.tpl", 'smarty_include_vars' => array('args_title' => $this->_tpl_vars['labels']['title_report_tc_priorities'],'args_first_column_header' => $this->_tpl_vars['labels']['priority'],'args_first_column_key' => 'name','args_show_percentage' => true,'args_column_definition' => $this->_tpl_vars['gui']->columnsDefinition->platform,'args_column_data' => $this->_tpl_vars['gui']->statistics->priorities)));
  98. $this->_tpl_vars = $_smarty_tpl_vars;
  99. unset($_smarty_tpl_vars);
  100. ?>
  101. <?php endif; ?>
  102. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  103. $this->_smarty_include(array('smarty_include_tpl_file' => "results/inc_results_show_table.tpl", 'smarty_include_vars' => array('args_title' => $this->_tpl_vars['labels']['title_res_by_kw'],'args_first_column_header' => $this->_tpl_vars['labels']['trep_kw'],'args_first_column_key' => 'name','args_show_percentage' => true,'args_column_definition' => $this->_tpl_vars['gui']->columnsDefinition->keywords,'args_column_data' => $this->_tpl_vars['gui']->statistics->keywords)));
  104. $this->_tpl_vars = $_smarty_tpl_vars;
  105. unset($_smarty_tpl_vars);
  106. ?>
  107. <?php if ($this->_tpl_vars['session'] ['testprojectOptions']->testPriorityEnabled): ?>
  108. <?php if ($this->_tpl_vars['gui']->statistics->milestones != ""): ?>
  109. <h2><?php echo $this->_tpl_vars['labels']['title_report_milestones']; ?>
  110. </h2>
  111. <table class="simple" style="width: 100%; text-align: center; margin-left: 0px;">
  112. <tr>
  113. <th><?php echo $this->_tpl_vars['labels']['th_milestone']; ?>
  114. </th>
  115. <th><?php echo $this->_tpl_vars['labels']['th_tc_priority_high']; ?>
  116. </th>
  117. <th><?php echo $this->_tpl_vars['labels']['th_expected']; ?>
  118. </th>
  119. <th><?php echo $this->_tpl_vars['labels']['th_tc_priority_medium']; ?>
  120. </th>
  121. <th><?php echo $this->_tpl_vars['labels']['th_expected']; ?>
  122. </th>
  123. <th><?php echo $this->_tpl_vars['labels']['th_tc_priority_low']; ?>
  124. </th>
  125. <th><?php echo $this->_tpl_vars['labels']['th_expected']; ?>
  126. </th>
  127. <th><?php echo $this->_tpl_vars['labels']['th_overall']; ?>
  128. </th>
  129. </tr>
  130. <?php $_from = $this->_tpl_vars['gui']->statistics->milestones; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  131. foreach ($_from as $this->_tpl_vars['res']):
  132. ?>
  133. <tr>
  134. <td><?php echo ((is_array($_tmp=$this->_tpl_vars['res']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  135. <?php echo $this->_tpl_vars['tlCfg']->gui_separator_open; ?>
  136. <?php echo ((is_array($_tmp=$this->_tpl_vars['res']['target_date'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  137. <?php echo $this->_tpl_vars['tlCfg']->gui_separator_close; ?>
  138. </td>
  139. <td class="<?php if ($this->_tpl_vars['res']['high_incomplete']): ?>failed<?php else: ?>passed<?php endif; ?>">
  140. <?php echo $this->_tpl_vars['res']['result_high_percentage']; ?>
  141. % <?php echo $this->_tpl_vars['tlCfg']->gui_separator_open; ?>
  142. <?php echo $this->_tpl_vars['res']['results']['3']; ?>
  143. <?php echo $this->_tpl_vars['tlCfg']->gui_separator_close; ?>
  144. </td>
  145. <td><?php echo $this->_tpl_vars['res']['high_percentage']; ?>
  146. %</td>
  147. <td class="<?php if ($this->_tpl_vars['res']['medium_incomplete']): ?>failed<?php else: ?>passed<?php endif; ?>">
  148. <?php echo $this->_tpl_vars['res']['result_medium_percentage']; ?>
  149. % <?php echo $this->_tpl_vars['tlCfg']->gui_separator_open; ?>
  150. <?php echo $this->_tpl_vars['res']['results']['2']; ?>
  151. <?php echo $this->_tpl_vars['tlCfg']->gui_separator_close; ?>
  152. </td>
  153. <td><?php echo $this->_tpl_vars['res']['medium_percentage']; ?>
  154. %</td>
  155. <td class="<?php if ($this->_tpl_vars['res']['low_incomplete']): ?>failed<?php else: ?>passed<?php endif; ?>">
  156. <?php echo $this->_tpl_vars['res']['result_low_percentage']; ?>
  157. % <?php echo $this->_tpl_vars['tlCfg']->gui_separator_open; ?>
  158. <?php echo $this->_tpl_vars['res']['results']['1']; ?>
  159. <?php echo $this->_tpl_vars['tlCfg']->gui_separator_close; ?>
  160. </td>
  161. <td><?php echo $this->_tpl_vars['res']['low_percentage']; ?>
  162. %</td>
  163. <td><?php echo $this->_tpl_vars['res']['percentage_completed']; ?>
  164. %</td>
  165. </tr>
  166. <?php endforeach; endif; unset($_from); ?>
  167. </table>
  168. <?php endif; ?>
  169. <?php elseif ($this->_tpl_vars['gui']->statistics->milestones != ""): ?>
  170. <h2><?php echo $this->_tpl_vars['labels']['title_report_milestones']; ?>
  171. </h2>
  172. <table class="simple" style="width: 100%; text-align: center; margin-left: 0px;">
  173. <tr>
  174. <th><?php echo $this->_tpl_vars['labels']['th_milestone']; ?>
  175. </th>
  176. <th><?php echo $this->_tpl_vars['labels']['th_tc_total']; ?>
  177. </th>
  178. <th><?php echo $this->_tpl_vars['labels']['th_completed']; ?>
  179. </th>
  180. <th><?php echo $this->_tpl_vars['labels']['th_progress']; ?>
  181. </th>
  182. <th><?php echo $this->_tpl_vars['labels']['th_goal']; ?>
  183. </th>
  184. </tr>
  185. <?php $_from = $this->_tpl_vars['gui']->statistics->milestones; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  186. foreach ($_from as $this->_tpl_vars['res']):
  187. ?>
  188. <tr>
  189. <td><?php echo ((is_array($_tmp=$this->_tpl_vars['res']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  190. <?php echo $this->_tpl_vars['tlCfg']->gui_separator_open; ?>
  191. <?php echo ((is_array($_tmp=$this->_tpl_vars['res']['target_date'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
  192. <?php echo $this->_tpl_vars['tlCfg']->gui_separator_close; ?>
  193. </td>
  194. <td><?php echo $this->_tpl_vars['res']['tc_total']; ?>
  195. </td>
  196. <td><?php echo $this->_tpl_vars['res']['tc_completed']; ?>
  197. </td>
  198. <td class="<?php if ($this->_tpl_vars['res']['all_incomplete']): ?>failed<?php else: ?>passed<?php endif; ?>">
  199. <?php echo $this->_tpl_vars['res']['percentage_completed']; ?>
  200. %</td>
  201. <td><?php echo $this->_tpl_vars['res']['B']; ?>
  202. %</td>
  203. </tr>
  204. <?php endforeach; endif; unset($_from); ?>
  205. </table>
  206. <?php endif; ?>
  207. <?php else: ?>
  208. <?php echo $this->_tpl_vars['gui']->do_report['msg']; ?>
  209. <?php endif; ?>
  210. </div>
  211. <p style="margin: 10px;"><?php echo $this->_tpl_vars['labels']['generated_by_TestLink_on']; ?>
  212. <?php echo ((is_array($_tmp=time())) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['gsmarty_timestamp_format']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['gsmarty_timestamp_format'])); ?>
  213. </p>
  214. </body>
  215. </html>