<?php
/* Smarty version 3.1.33, created on 2021-12-21 17:11:14
  from '/opt/lampp/htdocs/testlink/gui/templates/testcases/tcDelete.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_61c1fca213f2b6_73038840',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '237dccc04f553a2ce973a1346fb5feadb20178fe' => 
    array (
      0 => '/opt/lampp/htdocs/testlink/gui/templates/testcases/tcDelete.tpl',
      1 => 1636032773,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:inc_head.tpl' => 1,
    'file:inc_update.tpl' => 1,
  ),
),false)) {
function content_61c1fca213f2b6_73038840 (Smarty_Internal_Template $_smarty_tpl) {
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('var'=>"labels",'s'=>'btn_yes_iw2del,btn_no,th_version,th_linked_to_tplan,title_delete_testcases,
             th_executed,question_del_tc,platform,question_del_tc_version,btn_yes_iw2del_version'),$_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 htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->main_descr, ENT_QUOTES, 'UTF-8', true);?>
</h1>

<div class="workBack">
<?php $_smarty_tpl->_subTemplateRender("file:inc_update.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('user_feedback'=>$_smarty_tpl->tpl_vars['gui']->value->user_feedback,'result'=>$_smarty_tpl->tpl_vars['gui']->value->sqlResult,'action'=>$_smarty_tpl->tpl_vars['gui']->value->action,'item'=>"test case",'refresh'=>$_smarty_tpl->tpl_vars['gui']->value->refreshTree), 0, false);
?>

<?php if ($_smarty_tpl->tpl_vars['gui']->value->sqlResult == '') {?>
	<?php if ($_smarty_tpl->tpl_vars['gui']->value->delete_mode == 'single') {?>
	  <?php if ($_smarty_tpl->tpl_vars['gui']->value->exec_status_quo != '') {?>
	      <table class="simple" >
	  		<tr>
	  			<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_version'];?>
</th>
	  			<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_linked_to_tplan'];?>
</th>
	  			<?php if ($_smarty_tpl->tpl_vars['gui']->value->display_platform) {?><th><?php echo $_smarty_tpl->tpl_vars['labels']->value['platform'];?>
</th> <?php }?>
	  			<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_executed'];?>
</th>
	  			</tr>
	  		<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->exec_status_quo, 'on_tplan_status', false, 'testcase_version_id');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['testcase_version_id']->value => $_smarty_tpl->tpl_vars['on_tplan_status']->value) {
?>
	  			<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['on_tplan_status']->value, 'status_on_platform', false, 'tplan_id');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['tplan_id']->value => $_smarty_tpl->tpl_vars['status_on_platform']->value) {
?>
	  				<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['status_on_platform']->value, 'status', false, 'platform_id');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['platform_id']->value => $_smarty_tpl->tpl_vars['status']->value) {
?>
	  			    <tr>
	  				    <td style="width:4%;text-align:right;"><?php echo $_smarty_tpl->tpl_vars['status']->value['version'];?>
</td>
	  				    <td align="left"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['status']->value['tplan_name'], ENT_QUOTES, 'UTF-8', true);?>
</td>
	  			      <?php if ($_smarty_tpl->tpl_vars['gui']->value->display_platform) {?>
	  			        <td align="left"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['status']->value['platform_name'], ENT_QUOTES, 'UTF-8', true);?>
</td>
	  			      <?php }?>
	  				    <td style="width:4%;text-align:center;">
	  				    <?php if ($_smarty_tpl->tpl_vars['status']->value['executed'] != '') {?><img src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['checked'];?>
" /><?php }?></td>
	  				  </tr>
	  			  <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
	  			<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
	  		<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
	      </table>
      	<?php echo $_smarty_tpl->tpl_vars['gui']->value->delete_message;?>

      <?php }?>
    
    <?php if ($_smarty_tpl->tpl_vars['gui']->value->delete_enabled) {?>
	  <?php if ($_smarty_tpl->tpl_vars['gui']->value->tcversion_id != 0) {?>
		<?php $_smarty_tpl->_assignInScope('local_question', $_smarty_tpl->tpl_vars['labels']->value['question_del_tc_version']);?>
		<?php $_smarty_tpl->_assignInScope('local_button', $_smarty_tpl->tpl_vars['labels']->value['btn_yes_iw2del_version']);?>
	  <?php } else { ?>
	    <?php $_smarty_tpl->_assignInScope('local_question', $_smarty_tpl->tpl_vars['labels']->value['question_del_tc']);?>
		<?php $_smarty_tpl->_assignInScope('local_button', $_smarty_tpl->tpl_vars['labels']->value['btn_yes_iw2del']);?>
	  <?php }?>
	  <p><?php echo $_smarty_tpl->tpl_vars['local_question']->value;?>
</p>
		  <form method="post" 
				action="<?php echo $_smarty_tpl->tpl_vars['basehref']->value;?>
lib/testcases/tcEdit.php?testcase_id=<?php echo $_smarty_tpl->tpl_vars['gui']->value->testcase_id;?>
&tcversion_id=<?php echo $_smarty_tpl->tpl_vars['gui']->value->tcversion_id;?>
">
			<input type="submit" id="do_delete" name="do_delete" value="<?php echo $_smarty_tpl->tpl_vars['local_button']->value;?>
" />
			<input type="button" name="cancel_delete"
								 onclick="javascript:<?php echo $_smarty_tpl->tpl_vars['gui']->value->cancelActionJS;?>
;" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_no'];?>
" />
		  </form>	  
    <?php }?>
 
  
  <?php } else { ?>
	  <?php if ($_smarty_tpl->tpl_vars['gui']->value->exec_status_quo != '') {?>
	      <table class="simple" >
	  		<tr>
	  			<th>&nbsp;</th>
	  			<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_version'];?>
</th>
	  			<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_linked_to_tplan'];?>
</th>
	  			<th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_executed'];?>
</th>
	  			</tr>
	  		<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->exec_status_quo, 'on_tplan_status', false, 'testcase_version_id');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['testcase_version_id']->value => $_smarty_tpl->tpl_vars['on_tplan_status']->value) {
?>
	  			<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['on_tplan_status']->value, 'status_on_platform', false, 'tplan_id');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['tplan_id']->value => $_smarty_tpl->tpl_vars['status_on_platform']->value) {
?>
	  				<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['status_on_platform']->value, 'status', false, 'platform_id');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['platform_id']->value => $_smarty_tpl->tpl_vars['status']->value) {
?>
	  			    <tr>
	  				    <td align="right"><?php echo $_smarty_tpl->tpl_vars['status']->value['version'];?>
</td>
	  				    <td align="left"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['status']->value['tplan_name'], ENT_QUOTES, 'UTF-8', true);?>
</td>
	  				    <td align="center"><?php if ($_smarty_tpl->tpl_vars['status']->value['executed'] != '') {?><img src="<?php echo @constant('TL_THEME_IMG_DIR');?>
/apply_f2_16.png" /><?php }?></td>
	  				  </tr>
	  			  <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
	  			<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
	  		<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
	      </table>
      	<?php echo $_smarty_tpl->tpl_vars['gui']->value->delete_message;?>

    <?php }?>
    
    <?php if ($_smarty_tpl->tpl_vars['gui']->value->delete_enabled) {?> 	  <p><?php echo $_smarty_tpl->tpl_vars['labels']->value['question_del_tc'];?>
</p>
	  <form method="post" 
	        action="<?php echo $_smarty_tpl->tpl_vars['basehref']->value;?>
lib/testcases/tcEdit.php?testcase_id=<?php echo $_smarty_tpl->tpl_vars['gui']->value->testcase_id;?>
&tcversion_id=<?php echo $_smarty_tpl->tpl_vars['gui']->value->tcversion_id;?>
">
	  	<input type="submit" id="do_delete" name="do_delete" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_yes_iw2del'];?>
" />
	  	<input type="button" name="cancel_delete"
	  	                     onclick='javascript: location.href=fRoot+"lib/testcases/archiveData.php?version_id=undefined&edit=testcase&id=<?php echo $_smarty_tpl->tpl_vars['gui']->value->testcase_id;?>
";'
	  	                     value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_no'];?>
" />
	  </form>
  	<?php }?>
  <?php }?>	  
<?php }?>
</div>
</body>
</html><?php }
}
