<?php
/* Smarty version 3.1.33, created on 2022-01-29 14:09:10
  from '/home/recursosspa/public_html/testlink/gui/templates/plan/planMilestonesView.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_61f54a86799e25_04570116',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '2e119d43360cd6426b14efb4fed5c76e2934b73e' => 
    array (
      0 => '/home/recursosspa/public_html/testlink/gui/templates/plan/planMilestonesView.tpl',
      1 => 1643038957,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:inc_head.tpl' => 1,
    'file:inc_del_onclick.tpl' => 1,
  ),
),false)) {
function content_61f54a86799e25_04570116 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/home/recursosspa/public_html/testlink/vendor/smarty/smarty/libs/plugins/modifier.replace.php','function'=>'smarty_modifier_replace',),1=>array('file'=>'/home/recursosspa/public_html/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'=>'no_milestones,title_milestones,title_existing_milestones,th_name,
                         th_date_format,th_perc_a_prio,th_perc_b_prio,th_perc_c_prio,
                         btn_new_milestone,start_date,title_report_milestones,until,
						 th_milestone,th_tc_priority_high,th_expected,th_tc_priority_medium,
						 th_expected,th_tc_priority_low,th_expected,th_overall,from,
                         th_perc_testcases,th_delete,alt_delete_milestone,no_milestones'),$_smarty_tpl ) );?>


<?php $_smarty_tpl->_assignInScope('cfg_section', smarty_modifier_replace(call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'basename' ][ 0 ], array( basename($_smarty_tpl->source->filepath) )),".tpl",''));
$_smarty_tpl->smarty->ext->configLoad->_loadConfigFile($_smarty_tpl, "input_dimensions.conf", $_smarty_tpl->tpl_vars['cfg_section']->value, 0);
?>


<?php $_smarty_tpl->_assignInScope('managerURL', "lib/plan/planMilestonesEdit.php");
$_smarty_tpl->_assignInScope('editAction', ((string)$_smarty_tpl->tpl_vars['managerURL']->value)."?doAction=edit");
$_smarty_tpl->_assignInScope('deleteAction', ((string)$_smarty_tpl->tpl_vars['managerURL']->value)."?doAction=doDelete&id=");
$_smarty_tpl->_assignInScope('createAction', ((string)$_smarty_tpl->tpl_vars['managerURL']->value)."?doAction=create&tplan_id=");?>

<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('s'=>'warning_delete_milestone','var'=>"warning_msg"),$_smarty_tpl ) );?>

<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('s'=>'delete','var'=>"del_msgbox_title"),$_smarty_tpl ) );?>


<?php $_smarty_tpl->_subTemplateRender("file:inc_head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('openHead'=>"yes",'jsValidate'=>"yes",'enableTableSorting'=>"yes"), 0, false);
$_smarty_tpl->_subTemplateRender("file:inc_del_onclick.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

<?php echo '<script'; ?>
 type="text/javascript">
/* All this stuff is needed for logic contained in inc_del_onclick.tpl */
var del_action=fRoot+'<?php echo $_smarty_tpl->tpl_vars['deleteAction']->value;?>
';
<?php echo '</script'; ?>
>
</head>



<body>
<h1 class="title"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->main_descr, ENT_QUOTES, 'UTF-8', true);?>
</h1>

<div class="workBack">
	<?php if ($_smarty_tpl->tpl_vars['gui']->value->items != '') {?>
		<table class="common" width="100%">
		<tr>
			<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_name'];?>
</th>
			<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_date_format'];?>
</th>
			<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['start_date'];?>
</th>
			<?php if ($_smarty_tpl->tpl_vars['session']->value['testprojectOptions']->testPriorityEnabled) {?>
				<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_perc_a_prio'];?>
</th>
				<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_perc_b_prio'];?>
</th>
				<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_perc_c_prio'];?>
</th>
			<?php } else { ?>
				<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_perc_testcases'];?>
</th>
			<?php }?>
			<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_delete'];?>
</th>
		</tr>

		<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->items, 'milestone');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['milestone']->value) {
?>
		<tr>
			<td>
				<a href="<?php echo $_smarty_tpl->tpl_vars['editAction']->value;?>
&id=<?php echo $_smarty_tpl->tpl_vars['milestone']->value['id'];?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['milestone']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
</a>
			</td>
			<td>
				<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['milestone']->value['target_date'],$_smarty_tpl->tpl_vars['gsmarty_date_format']->value);?>

			</td>
			<td>
			  <?php if ($_smarty_tpl->tpl_vars['milestone']->value['start_date'] != '' && $_smarty_tpl->tpl_vars['milestone']->value['start_date'] != '0000-00-00') {?>
				  <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['milestone']->value['start_date'],$_smarty_tpl->tpl_vars['gsmarty_date_format']->value);?>

				<?php }?>
			</td>
			<?php if ($_smarty_tpl->tpl_vars['session']->value['testprojectOptions']->testPriorityEnabled) {?>
				<td style="text-align: right"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['milestone']->value['high_percentage'], ENT_QUOTES, 'UTF-8', true);?>
</td>
				<td style="text-align: right"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['milestone']->value['medium_percentage'], ENT_QUOTES, 'UTF-8', true);?>
</td>
				<td style="text-align: right"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['milestone']->value['low_percentage'], ENT_QUOTES, 'UTF-8', true);?>
</td>
			<?php } else { ?>
				<td style="text-align: right"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['milestone']->value['medium_percentage'], ENT_QUOTES, 'UTF-8', true);?>
</td>
			<?php }?>
			<td class="clickable_icon">
				       <img style="border:none;cursor: pointer;" 
  				            title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['alt_delete_milestone'];?>
" 
  				            alt="<?php echo $_smarty_tpl->tpl_vars['labels']->value['alt_delete_milestone'];?>
" 
 					            onclick="delete_confirmation(<?php echo $_smarty_tpl->tpl_vars['milestone']->value['id'];?>
,'<?php echo htmlspecialchars(strtr($_smarty_tpl->tpl_vars['milestone']->value['name'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" )), ENT_QUOTES, 'UTF-8', true);?>
',
 					                                         '<?php echo $_smarty_tpl->tpl_vars['del_msgbox_title']->value;?>
','<?php echo $_smarty_tpl->tpl_vars['warning_msg']->value;?>
');"
  				            src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['delete'];?>
"/>
  				</td>
		</tr>
		<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
		</table>


		<?php if ($_smarty_tpl->tpl_vars['gui']->value->itemsLive != '') {?>
			<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->itemsLive, '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>
		<?php }?>



  <?php } else { ?>
		<p><?php echo $_smarty_tpl->tpl_vars['labels']->value['no_milestones'];?>
</p>
  <?php }?>

   <div class="groupBtn">
    <form method="post" action="<?php echo $_smarty_tpl->tpl_vars['createAction']->value;
echo $_smarty_tpl->tpl_vars['gui']->value->tplan_id;?>
">
      <input type="submit" name="create_milestone" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_new_milestone'];?>
" />
    </form>
  </div>
</div>
</body>
</html>
<?php }
}
