<?php
/* Smarty version 3.1.33, created on 2022-01-28 15:24:19
  from '/home/recursosspa/public_html/testlink/gui/templates/testcases/containerDeleteTC.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_61f40aa3c3c981_12185592',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '63ab2d87b1cf112f97bfe72160afb9d026568546' => 
    array (
      0 => '/home/recursosspa/public_html/testlink/gui/templates/testcases/containerDeleteTC.tpl',
      1 => 1643038975,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:inc_head.tpl' => 1,
    'file:inc_jsCheckboxes.tpl' => 1,
    'file:inc_del_onclick.tpl' => 1,
    'file:inc_refreshTreeWithFilters.tpl' => 1,
  ),
),false)) {
function content_61f40aa3c3c981_12185592 (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'=>'th_test_case,th_id,title_move_cp,title_move_cp_testcases,sorry_further,
             check_uncheck_all_checkboxes,btn_delete,th_linked_to_tplan,th_version,
             platform,th_executed,choose_target,copy_keywords,btn_move,warning,btn_cp,
             execution_history,design'),$_smarty_tpl ) );?>


<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('s'=>'select_at_least_one_testcase','var'=>"check_msg"),$_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"), 0, false);
$_smarty_tpl->_subTemplateRender("file:inc_jsCheckboxes.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 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">

//BUGID 3943: Escape all messages (string)
var alert_box_title = "<?php echo strtr($_smarty_tpl->tpl_vars['labels']->value['warning'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" ));?>
";

/*
  function: check_action_precondition

  args :

  returns:

*/
function check_action_precondition(container_id,action,msg)
{
	var containerSelect = document.getElementById('containerID');
	if(checkbox_count_checked(container_id) > 0 && containerSelect.value > 0)
	{
	     return true;
	}
	else
	{
	   alert_message(alert_box_title,msg);
	   return false;
	}
}
<?php echo '</script'; ?>
>

</head>

<body>
<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('s'=>$_smarty_tpl->tpl_vars['level']->value,'var'=>'level_translated'),$_smarty_tpl ) );?>

<h1 class="title"><?php echo $_smarty_tpl->tpl_vars['level_translated']->value;
echo @constant('TITLE_SEP');
echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->object_name, ENT_QUOTES, 'UTF-8', true);?>
 </h1>

<div class="workBack">
<h1 class="title"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->main_descr, ENT_QUOTES, 'UTF-8', true);?>
</h1>

<?php if ($_smarty_tpl->tpl_vars['gui']->value->op_ok == false) {?>
	<?php echo $_smarty_tpl->tpl_vars['gui']->value->user_feedback;?>

<?php } else { ?>
	<form id="delete_testcases" name="delete_testcases" method="post"
	      action="<?php echo $_smarty_tpl->tpl_vars['basehref']->value;?>
lib/testcases/containerEdit.php?objectID=<?php echo $_smarty_tpl->tpl_vars['gui']->value->objectID;?>
">
    <input type="hidden" name="do_delete_testcases"  id="do_delete_testcases"  value="1" />

    <?php if ($_smarty_tpl->tpl_vars['gui']->value->user_feedback != '') {?>
      <div class="user_feedback"><?php echo $_smarty_tpl->tpl_vars['gui']->value->user_feedback;?>
</div>
      <br />
    <?php }?>
    <?php if ($_smarty_tpl->tpl_vars['gui']->value->system_message != '') {?>
      <div class="user_feedback"><?php echo $_smarty_tpl->tpl_vars['gui']->value->system_message;?>
</div>
      <br />
    <?php }?>

		        <input type="hidden" name="add_value_memory"  id="add_value_memory"  value="0" />
		<div id="delete_checkboxes">
        <table class="simple">
          <tr>
          <th class="clickable_icon">
			         <img src="<?php echo @constant('TL_THEME_IMG_DIR');?>
/toggle_all.gif"
			              onclick='cs_all_checkbox_in_div("delete_checkboxes","tcaseSet_","add_value_memory");'
                    title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['check_uncheck_all_checkboxes'];?>
" />
			    </th>
          <th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_test_case'];?>
</th>
          </tr>
          
        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->testCaseSet, 'tcinfo', false, 'rowid');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['rowid']->value => $_smarty_tpl->tpl_vars['tcinfo']->value) {
?>
            <tr>
                <td>
					<?php if ($_smarty_tpl->tpl_vars['tcinfo']->value['draw_check']) {?>
                    	<input type="checkbox" name="tcaseSet[]" id="tcaseSet_<?php echo $_smarty_tpl->tpl_vars['tcinfo']->value['id'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['tcinfo']->value['id'];?>
" />
                    <?php }?>	
                </td>
                <td>
                    <img class="clickable" src="<?php echo @constant('TL_THEME_IMG_DIR');?>
/history_small.png"
                         onclick="javascript:openExecHistoryWindow(<?php echo $_smarty_tpl->tpl_vars['tcinfo']->value['id'];?>
);"
                         title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['execution_history'];?>
" />
                    <img class="clickable" src="<?php echo @constant('TL_THEME_IMG_DIR');?>
/edit_icon.png"
                         onclick="javascript:openTCaseWindow(<?php echo $_smarty_tpl->tpl_vars['tcinfo']->value['id'];?>
);"
                         title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['design'];?>
" />
                    <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tcinfo']->value['external_id'], ENT_QUOTES, 'UTF-8', true);
echo $_smarty_tpl->tpl_vars['gsmarty_gui']->value->title_separator_1;
echo htmlspecialchars($_smarty_tpl->tpl_vars['tcinfo']->value['name'], ENT_QUOTES, 'UTF-8', true);?>

                </td>
            </tr>
            <?php if ($_smarty_tpl->tpl_vars['gui']->value->exec_status_quo[$_smarty_tpl->tpl_vars['rowid']->value] != '') {?>
            <tr>
            <td>&nbsp;</td>
            <td>
	                      <table class="simple_tableruler">
	                  		<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[$_smarty_tpl->tpl_vars['rowid']->value]) {?><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[$_smarty_tpl->tpl_vars['rowid']->value], '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[$_smarty_tpl->tpl_vars['rowid']->value]) {?>
	                  			        <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 @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>
            </td>
            </tr>
            <?php }?>
        <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
        </table>
        <br />
    </div>




		<div>
			<input type="submit" name="do_delete_testcases" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_delete'];?>
">
		</div>

	</form>
<?php }?>

</div>
<?php if ($_smarty_tpl->tpl_vars['gui']->value->refreshTree) {?>
   	<?php $_smarty_tpl->_subTemplateRender("file:inc_refreshTreeWithFilters.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}?>
</body>
</html><?php }
}
