<?php
/* Smarty version 3.1.33, created on 2022-01-04 15:09:27
  from '/opt/lampp/htdocs/testlink/gui/templates/results/resultsGeneral.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_61d455174fca99_01678156',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '40fb4e5efaf4168a3ac657e110e782d9b140b33e' => 
    array (
      0 => '/opt/lampp/htdocs/testlink/gui/templates/results/resultsGeneral.tpl',
      1 => 1636032773,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:inc_head.tpl' => 1,
    'file:inc_result_tproject_tplan.tpl' => 1,
    'file:results/inc_results_show_table.tpl' => 4,
  ),
),false)) {
function content_61d455174fca99_01678156 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/opt/lampp/htdocs/testlink/vendor/smarty/smarty/libs/plugins/modifier.date_format.php','function'=>'smarty_modifier_date_format',),));
?>

<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('var'=>"labels",'s'=>'trep_kw,trep_owner,trep_comp,generated_by_TestLink_on, priority,
       	 th_overall_priority, th_progress, th_expected, th_overall, th_milestone,
       	 th_tc_priority_high, th_tc_priority_medium, th_tc_priority_low,
         title_res_by_kw,title_res_by_owner,title_res_by_top_level_suites,
         title_report_tc_priorities,title_report_milestones,elapsed_seconds,
         title_metrics_x_build,title_res_by_platform,th_platform,important_notice,
         report_tcase_platorm_relationship, th_tc_total, th_completed, th_goal,
         th_build, th_tc_assigned, th_perc_completed, from, until,
         info_res_by_top_level_suites, info_report_tc_priorities, info_res_by_platform,send_by_email_to_me,
         info_report_milestones_prio, info_report_milestones_no_prio, info_res_by_kw,send_test_report,
         info_gen_test_rep'),$_smarty_tpl ) );?>


<?php $_smarty_tpl->_subTemplateRender("file:inc_head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
<body>
<h1 class="title"><?php echo $_smarty_tpl->tpl_vars['gui']->value->title;?>
</h1>


<form name="send_by_email_to_me" id="send_by_email_to_me"
      action="<?php echo $_smarty_tpl->tpl_vars['gui']->value->actionSendMail;?>
" method="POST">
  &nbsp;&nbsp;
  <input hidden name="sendByEmail" value="1">
  
  <input type="image" name="reportByMail" id="reportByMail" 
         src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['email'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['send_by_email_to_me'];?>
"
         onclick="submit();">
</form>

<?php if ($_smarty_tpl->tpl_vars['mailFeedBack']->value->msg != '') {?>
  <p class='info'><?php echo $_smarty_tpl->tpl_vars['mailFeedBack']->value->msg;?>
</p>
<?php }?>


<div class="workBack">
<?php $_smarty_tpl->_subTemplateRender("file:inc_result_tproject_tplan.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('arg_tproject_name'=>$_smarty_tpl->tpl_vars['gui']->value->tproject_name,'arg_tplan_name'=>$_smarty_tpl->tpl_vars['gui']->value->tplan_name), 0, false);
?>	


<?php if ($_smarty_tpl->tpl_vars['gui']->value->do_report['status_ok']) {?>

  <?php if ($_smarty_tpl->tpl_vars['gui']->value->showPlatforms) {?>
   <hr>
   <h2> <?php echo $_smarty_tpl->tpl_vars['labels']->value['important_notice'];?>
</h2>
   <?php echo $_smarty_tpl->tpl_vars['labels']->value['report_tcase_platorm_relationship'];?>

   <hr>
  <?php }?>  
  		<h2><?php echo $_smarty_tpl->tpl_vars['labels']->value['title_metrics_x_build'];?>
</h1>

	<?php if ($_smarty_tpl->tpl_vars['gui']->value->displayBuildMetrics) {?>
	<table class="simple_tableruler sortable" style="text-align: center; margin-left: 0px;">
  	<tr>
  		<th style="width: 10%;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_build'];?>
</th>
    	    	<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_tc_assigned'];?>
</th>
      	<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->statistics->overallBuildStatus->colDefinition, 'the_column');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['the_column']->value) {
?>
        	<th><?php echo $_smarty_tpl->tpl_vars['the_column']->value['qty'];?>
</th>
        	<th><?php echo $_smarty_tpl->tpl_vars['the_column']->value['percentage'];?>
</th>
    	<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
    	<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_perc_completed'];?>
</th>
  	</tr>

	<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->statistics->overallBuildStatus->info, 'res');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['res']->value) {
?>
  	<tr>
  		<td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['res']->value['build_name'], ENT_QUOTES, 'UTF-8', true);?>
</td>
  		<td><?php echo $_smarty_tpl->tpl_vars['res']->value['total_assigned'];?>
</td>
	    	<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->statistics->overallBuildStatus->colDefinition, 'the_column', false, 'status');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['status']->value => $_smarty_tpl->tpl_vars['the_column']->value) {
?>
	        	<td><?php echo $_smarty_tpl->tpl_vars['res']->value['details'][$_smarty_tpl->tpl_vars['status']->value]['qty'];?>
</td>
	        	<td><?php echo $_smarty_tpl->tpl_vars['res']->value['details'][$_smarty_tpl->tpl_vars['status']->value]['percentage'];?>
</td>
	    	<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
  		<td><?php echo $_smarty_tpl->tpl_vars['res']->value['percentage_completed'];?>
</td>
  	</tr>
	<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
	</table>
	<?php }?>
	
			<?php if ($_smarty_tpl->tpl_vars['gui']->value->buildMetricsFeedback != '') {?>
		<p class="italic"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->buildMetricsFeedback, ENT_QUOTES, 'UTF-8', true);?>
</p>
	<?php }?>
	<br />
  	
  	  	<?php $_smarty_tpl->_subTemplateRender("file:results/inc_results_show_table.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('args_title'=>$_smarty_tpl->tpl_vars['labels']->value['title_res_by_top_level_suites'],'args_first_column_header'=>$_smarty_tpl->tpl_vars['labels']->value['trep_comp'],'args_first_column_key'=>'name','args_show_percentage'=>true,'args_column_definition'=>$_smarty_tpl->tpl_vars['gui']->value->columnsDefinition->testsuites,'args_column_data'=>$_smarty_tpl->tpl_vars['gui']->value->statistics->testsuites), 0, false);
?>
           
    <?php if ($_smarty_tpl->tpl_vars['gui']->value->columnsDefinition->testsuites != '') {?>
  	  <p class="italic"><?php echo $_smarty_tpl->tpl_vars['labels']->value['info_res_by_top_level_suites'];?>
</p>
  	  <br />
  	<?php }?>

  
  	
    <?php if ($_smarty_tpl->tpl_vars['gui']->value->showPlatforms) {?>
      <?php $_smarty_tpl->_subTemplateRender("file:results/inc_results_show_table.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('args_title'=>$_smarty_tpl->tpl_vars['labels']->value['title_res_by_platform'],'args_first_column_header'=>$_smarty_tpl->tpl_vars['labels']->value['th_platform'],'args_first_column_key'=>'name','args_show_percentage'=>true,'args_column_definition'=>$_smarty_tpl->tpl_vars['gui']->value->columnsDefinition->platform,'args_column_data'=>$_smarty_tpl->tpl_vars['gui']->value->statistics->platform), 0, true);
?>
             
      <?php if ($_smarty_tpl->tpl_vars['gui']->value->columnsDefinition->platform != '') {?>
        <p class="italic"><?php echo $_smarty_tpl->tpl_vars['labels']->value['info_res_by_platform'];?>
</p>
        <br />
      <?php }?>
    <?php }?>
    
    <?php if ($_smarty_tpl->tpl_vars['gui']->value->testprojectOptions->testPriorityEnabled) {?>
      <?php $_smarty_tpl->_subTemplateRender("file:results/inc_results_show_table.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('args_title'=>$_smarty_tpl->tpl_vars['labels']->value['title_report_tc_priorities'],'args_first_column_header'=>$_smarty_tpl->tpl_vars['labels']->value['priority'],'args_first_column_key'=>'name','args_show_percentage'=>true,'args_column_definition'=>$_smarty_tpl->tpl_vars['gui']->value->columnsDefinition->priorities,'args_column_data'=>$_smarty_tpl->tpl_vars['gui']->value->statistics->priorities), 0, true);
?>
             
      <?php if ($_smarty_tpl->tpl_vars['gui']->value->columnsDefinition->priorities != '') {?>
        <p class="italic"><?php echo $_smarty_tpl->tpl_vars['labels']->value['info_report_tc_priorities'];?>
</p>
        <br />
      <?php }?>
    <?php }?>
  
  	  	<?php $_smarty_tpl->_subTemplateRender("file:results/inc_results_show_table.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('args_title'=>$_smarty_tpl->tpl_vars['labels']->value['title_res_by_kw'],'args_first_column_header'=>$_smarty_tpl->tpl_vars['labels']->value['trep_kw'],'args_first_column_key'=>'name','args_show_percentage'=>true,'args_column_definition'=>$_smarty_tpl->tpl_vars['gui']->value->columnsDefinition->keywords,'args_column_data'=>$_smarty_tpl->tpl_vars['gui']->value->statistics->keywords), 0, true);
?>
           
    <?php if ($_smarty_tpl->tpl_vars['gui']->value->columnsDefinition->keywords != '') {?>
      <p class="italic"><?php echo $_smarty_tpl->tpl_vars['labels']->value['info_res_by_kw'];?>
</p>
      <br />
    <?php }?>


  	
	<?php if ($_smarty_tpl->tpl_vars['gui']->value->testprojectOptions->testPriorityEnabled) {?>
		<?php if ($_smarty_tpl->tpl_vars['gui']->value->statistics->milestones != '') {?>

			<h2><?php echo $_smarty_tpl->tpl_vars['labels']->value['title_report_milestones'];?>
</h2>

			<table class="simple_tableruler sortable" style="text-align: center; margin-left: 0px;">
			<tr>
				<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_milestone'];?>
</th>
				<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_tc_priority_high'];?>
</th>
				<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_expected'];?>
</th>
				<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_tc_priority_medium'];?>
</th>
				<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_expected'];?>
</th>
				<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_tc_priority_low'];?>
</th>
				<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_expected'];?>
</th>
				<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_overall'];?>
</th>
			</tr>
 			<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->statistics->milestones, 'res');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['res']->value) {
?>
  			<tr>
  				<td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['res']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
 <?php echo $_smarty_tpl->tpl_vars['tlCfg']->value->gui_separator_open;?>

  						<?php if (htmlspecialchars($_smarty_tpl->tpl_vars['res']->value['start_date'], ENT_QUOTES, 'UTF-8', true) != "0000-00-00") {?>
						<?php echo $_smarty_tpl->tpl_vars['labels']->value['from'];?>
 <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['res']->value['start_date'], ENT_QUOTES, 'UTF-8', true);?>

						<?php }?>
  						<?php echo $_smarty_tpl->tpl_vars['labels']->value['until'];?>
 <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['res']->value['target_date'], ENT_QUOTES, 'UTF-8', true);?>
 <?php echo $_smarty_tpl->tpl_vars['tlCfg']->value->gui_separator_close;?>
</td>
	  			<td class="<?php if ($_smarty_tpl->tpl_vars['res']->value['high_incomplete']) {?>failed<?php } else { ?>passed<?php }?>">
	  					<?php echo $_smarty_tpl->tpl_vars['res']->value['result_high_percentage'];?>
 % <?php echo $_smarty_tpl->tpl_vars['tlCfg']->value->gui_separator_open;?>
 
	  					<?php echo $_smarty_tpl->tpl_vars['res']->value['results'][3];?>
/<?php echo $_smarty_tpl->tpl_vars['res']->value['tcs_priority'][3];?>
 <?php echo $_smarty_tpl->tpl_vars['tlCfg']->value->gui_separator_close;?>
</td>
	  			<td><?php echo $_smarty_tpl->tpl_vars['res']->value['high_percentage'];?>
 %</td>
	  			<td class="<?php if ($_smarty_tpl->tpl_vars['res']->value['medium_incomplete']) {?>failed<?php } else { ?>passed<?php }?>">
	  					<?php echo $_smarty_tpl->tpl_vars['res']->value['result_medium_percentage'];?>
 % <?php echo $_smarty_tpl->tpl_vars['tlCfg']->value->gui_separator_open;?>
 
	  					<?php echo $_smarty_tpl->tpl_vars['res']->value['results'][2];?>
/<?php echo $_smarty_tpl->tpl_vars['res']->value['tcs_priority'][2];?>
 <?php echo $_smarty_tpl->tpl_vars['tlCfg']->value->gui_separator_close;?>
</td>
	  			<td><?php echo $_smarty_tpl->tpl_vars['res']->value['medium_percentage'];?>
 %</td>
	  			<td class="<?php if ($_smarty_tpl->tpl_vars['res']->value['low_incomplete']) {?>failed<?php } else { ?>passed<?php }?>">
	  					<?php echo $_smarty_tpl->tpl_vars['res']->value['result_low_percentage'];?>
 % <?php echo $_smarty_tpl->tpl_vars['tlCfg']->value->gui_separator_open;?>
 
	  					<?php echo $_smarty_tpl->tpl_vars['res']->value['results'][1];?>
/<?php echo $_smarty_tpl->tpl_vars['res']->value['tcs_priority'][1];?>
 <?php echo $_smarty_tpl->tpl_vars['tlCfg']->value->gui_separator_close;?>
</td>
	  			<td><?php echo $_smarty_tpl->tpl_vars['res']->value['low_percentage'];?>
 %</td>
				<td><?php echo $_smarty_tpl->tpl_vars['res']->value['percentage_completed'];?>
 %</td>
  			</tr>
  			<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
		</table>
      <p class="italic"><?php echo $_smarty_tpl->tpl_vars['labels']->value['info_report_milestones_prio'];?>
</p>
      <br />

	<?php }?>
		
	<?php } elseif ($_smarty_tpl->tpl_vars['gui']->value->statistics->milestones != '') {?>
		<h2><?php echo $_smarty_tpl->tpl_vars['labels']->value['title_report_milestones'];?>
</h2>

		<table class="simple_tableruler sortable" style="text-align: center; margin-left: 0px;">
		<tr>
			<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_milestone'];?>
</th>
			<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_tc_total'];?>
</th>
			<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_completed'];?>
</th>
			<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_progress'];?>
</th>
			<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_goal'];?>
</th>
		</tr>

 		<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->statistics->milestones, 'res');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['res']->value) {
?>
  		<tr>
  			<td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['res']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
 <?php echo $_smarty_tpl->tpl_vars['tlCfg']->value->gui_separator_open;?>

  					<?php if (htmlspecialchars($_smarty_tpl->tpl_vars['res']->value['start_date'], ENT_QUOTES, 'UTF-8', true) != "0000-00-00") {?>
					<?php echo $_smarty_tpl->tpl_vars['labels']->value['from'];?>
 <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['res']->value['start_date'], ENT_QUOTES, 'UTF-8', true);?>

					<?php }?>
  					<?php echo $_smarty_tpl->tpl_vars['labels']->value['until'];?>
 <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['res']->value['target_date'], ENT_QUOTES, 'UTF-8', true);?>
 <?php echo $_smarty_tpl->tpl_vars['tlCfg']->value->gui_separator_close;?>
</td>
  			<td><?php echo $_smarty_tpl->tpl_vars['res']->value['tc_total'];?>
</td>
  			<td><?php echo $_smarty_tpl->tpl_vars['res']->value['tc_completed'];?>
</td>
			<td class="<?php if ($_smarty_tpl->tpl_vars['res']->value['medium_incomplete']) {?>failed<?php } else { ?>passed<?php }?>">
					<?php echo $_smarty_tpl->tpl_vars['res']->value['percentage_completed'];?>
 % <?php echo $_smarty_tpl->tpl_vars['tlCfg']->value->gui_separator_open;?>
 
					<?php echo $_smarty_tpl->tpl_vars['res']->value['results'][2];?>
/<?php echo $_smarty_tpl->tpl_vars['res']->value['tcs_priority'][2];?>
 <?php echo $_smarty_tpl->tpl_vars['tlCfg']->value->gui_separator_close;?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['res']->value['medium_percentage'];?>
 %</td>
  		</tr>
  		<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
		</table>
      <p class="italic"><?php echo $_smarty_tpl->tpl_vars['labels']->value['info_report_milestones_no_prio'];?>
</p>
      <br />
	<?php }?>
	
	<p class="italic"><?php echo $_smarty_tpl->tpl_vars['labels']->value['info_gen_test_rep'];?>
</p>
	<p><?php echo $_smarty_tpl->tpl_vars['labels']->value['generated_by_TestLink_on'];?>
 <?php echo smarty_modifier_date_format(time(),$_smarty_tpl->tpl_vars['gsmarty_timestamp_format']->value);?>
</p>
	<p><?php echo $_smarty_tpl->tpl_vars['labels']->value['elapsed_seconds'];?>
 <?php echo $_smarty_tpl->tpl_vars['gui']->value->elapsed_time;?>
</p>

<?php } else { ?>
  	<?php echo $_smarty_tpl->tpl_vars['gui']->value->do_report['msg'];?>

<?php }?>  
</div>

</body>
</html>
<?php }
}
