<?php
/* Smarty version 3.1.33, created on 2025-10-17 09:15:55
  from 'C:\php5.6\htdocs\testlink-1.9.20\gui\templates\tl-classic\plan\newest_tcversions.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_68f1ed2bf137e9_40146477',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '8e73167e7583e961b23a76b7e2787bc3d3f5388d' => 
    array (
      0 => 'C:\\php5.6\\htdocs\\testlink-1.9.20\\gui\\templates\\tl-classic\\plan\\newest_tcversions.tpl',
      1 => 1579460696,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:inc_head.tpl' => 1,
    'file:inc_jsCheckboxes.tpl' => 1,
    'file:inc_help.tpl' => 1,
  ),
),false)) {
function content_68f1ed2bf137e9_40146477 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'C:\\php5.6\\htdocs\\testlink-1.9.20\\vendor\\smarty\\smarty\\libs\\plugins\\function.html_options.php','function'=>'smarty_function_html_options',),));
?>

<?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);
?>

<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('var'=>'labels','s'=>'testproject,test_plan,th_id,th_test_case,title_newest_tcversions,
             linked_version,newest_version,compare,design,execution_history'),$_smarty_tpl ) );?>


</head>
<body>

<h1 class="title"> <?php echo $_smarty_tpl->tpl_vars['labels']->value['title_newest_tcversions'];?>
 
	<?php $_smarty_tpl->_subTemplateRender("file:inc_help.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('helptopic'=>"hlp_planTcModified",'show_help_icon'=>true), 0, false);
?>
</h1>

<form method="post" id="newest_tcversions.tpl">
  <table>
  <tr>
   <td><?php echo $_smarty_tpl->tpl_vars['labels']->value['testproject'];
echo @constant('TITLE_SEP');?>
</td>
   <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->tproject_name, ENT_QUOTES, 'UTF-8', true);?>
</td>
  </tr>
  
  <tr>
    <td><?php echo $_smarty_tpl->tpl_vars['labels']->value['test_plan'];?>
</td>
    <td>
      <select name="tplan_id" id="tplan_id" onchange="this.form.submit()">  
         <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['gui']->value->tplans,'selected'=>$_smarty_tpl->tpl_vars['gui']->value->tplan_id),$_smarty_tpl);?>

      </select>
    </td>
  </tr>
  </table>
</form>

<?php if ($_smarty_tpl->tpl_vars['gui']->value->show_details) {?>
  <div class="workBack">

    <table class="simple_tableruler">
      <tr>
		    		    <th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_test_case'];?>
</th>
		    <th><?php echo $_smarty_tpl->tpl_vars['labels']->value['linked_version'];?>
</th>
		    <th><?php echo $_smarty_tpl->tpl_vars['labels']->value['newest_version'];?>
</th>
		    <th><?php echo $_smarty_tpl->tpl_vars['labels']->value['compare'];?>
</th>
      </tr>   
    
      <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->testcases, 'tc');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['tc']->value) {
?>
      <tr>
		 
		<td> 
			<img class="clickable" src="<?php echo @constant('TL_THEME_IMG_DIR');?>
/history_small.png"
			     onclick="javascript:openExecHistoryWindow(<?php echo $_smarty_tpl->tpl_vars['tc']->value['tc_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['tc']->value['tc_id'];?>
);"
			     title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['design'];?>
" />
			<?php echo $_smarty_tpl->tpl_vars['tc']->value['path'];
echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->tcasePrefix, ENT_QUOTES, 'UTF-8', true);
echo htmlspecialchars($_smarty_tpl->tpl_vars['tc']->value['tc_external_id'], ENT_QUOTES, 'UTF-8', true);?>
:<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tc']->value['name'], ENT_QUOTES, 'UTF-8', true);?>

		</td>
		<td align="center"> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tc']->value['version'], ENT_QUOTES, 'UTF-8', true);?>
 </td>
		<td align="center"> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tc']->value['newest_version'], ENT_QUOTES, 'UTF-8', true);?>
 </td>
		</td>
		<td align="center">
			<a href="lib/testcases/tcCompareVersions.php?testcase_id=<?php echo $_smarty_tpl->tpl_vars['tc']->value['tc_id'];?>
&version_left=<?php echo $_smarty_tpl->tpl_vars['tc']->value['version'];?>
&version_right=<?php echo $_smarty_tpl->tpl_vars['tc']->value['newest_version'];?>
&compare_selected_versions=1&use_html_comp=1" target="_blank">
			<img src="<?php echo @constant('TL_THEME_IMG_DIR');?>
/magnifier.png"></img></a>
		</td>
      </tr>
  	  <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
  	</table>
  </div>
<?php } else { ?>
	<h2><?php echo $_smarty_tpl->tpl_vars['gui']->value->user_feedback;?>
</h2>
<?php }?>

</body>
</html>
<?php }
}
