<?php
/* Smarty version 3.1.33, created on 2022-01-28 15:49:08
  from '/home/recursosspa/public_html/testlink/gui/templates/results/inc_results_show_table.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_61f41074a4ca41_48208790',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '7acbcd21590fcb571a231066ceee2bfad2944513' => 
    array (
      0 => '/home/recursosspa/public_html/testlink/gui/templates/results/inc_results_show_table.tpl',
      1 => 1643038969,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_61f41074a4ca41_48208790 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_assignInScope('args_title', (($tmp = @$_smarty_tpl->tpl_vars['args_title']->value)===null||$tmp==='' ? '' : $tmp));
$_smarty_tpl->_assignInScope('args_first_column_header', (($tmp = @$_smarty_tpl->tpl_vars['args_first_column_header']->value)===null||$tmp==='' ? "first column" : $tmp));
$_smarty_tpl->_assignInScope('args_show_percentage', (($tmp = @$_smarty_tpl->tpl_vars['args_show_percentage']->value)===null||$tmp==='' ? true : $tmp));?>

<?php if ($_smarty_tpl->tpl_vars['args_column_definition']->value != '') {?>

<h2><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['args_title']->value, ENT_QUOTES, 'UTF-8', true);?>
</h2>
<table class="simple_tableruler sortable" style="text-align: center; margin-left: 0px;">
	<tr>
		<th><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['args_first_column_header']->value, ENT_QUOTES, 'UTF-8', true);?>
</th>
		<th><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('s'=>'trep_total'),$_smarty_tpl ) );?>
</th>
    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['args_column_definition']->value, '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>
        <?php if ($_smarty_tpl->tpl_vars['args_show_percentage']->value) {?>
        <th><?php echo $_smarty_tpl->tpl_vars['the_column']->value['percentage'];?>
</th>
        <?php }?>
    <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
		<th><?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('s'=>'trep_comp_perc'),$_smarty_tpl ) );?>
</th>
	</tr>
	
 <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['args_column_data']->value, 'res');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['res']->value) {
?>
  	<tr>
  	<td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['res']->value[$_smarty_tpl->tpl_vars['args_first_column_key']->value], ENT_QUOTES, 'UTF-8', true);?>
</td>
  	<td><?php echo $_smarty_tpl->tpl_vars['res']->value['total_tc'];?>
</td>
      <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['res']->value['details'], 'the_column');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['the_column']->value) {
?>
          <td><?php echo $_smarty_tpl->tpl_vars['the_column']->value['qty'];?>
</td>
        <?php if ($_smarty_tpl->tpl_vars['args_show_percentage']->value) {?>
          <td><?php echo $_smarty_tpl->tpl_vars['the_column']->value['percentage'];?>
</td>
        <?php }?>
      <?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 }
}
}
