<?php
/* Smarty version 3.1.33, created on 2022-01-04 15:09:14
  from '/opt/lampp/htdocs/testlink/gui/templates/results/resultsNavigator.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_61d4550aa54157_69407519',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'd0842dbbfe4d43626d3c7f9ab8c3e2b6c247e44d' => 
    array (
      0 => '/opt/lampp/htdocs/testlink/gui/templates/results/resultsNavigator.tpl',
      1 => 1636032773,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:inc_head.tpl' => 1,
  ),
),false)) {
function content_61d4550aa54157_69407519 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/opt/lampp/htdocs/testlink/vendor/smarty/smarty/libs/plugins/modifier.replace.php','function'=>'smarty_modifier_replace',),1=>array('file'=>'/opt/lampp/htdocs/testlink/vendor/smarty/smarty/libs/plugins/function.html_options.php','function'=>'smarty_function_html_options',),));
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('var'=>"labels",'s'=>"title_nav_results,title_report_type,btn_print,test_plan,show_inactive_tplans"),$_smarty_tpl ) );?>


<?php $_smarty_tpl->_assignInScope('cfg_section', smarty_modifier_replace(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->_subTemplateRender("file:inc_head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('openHead'=>"yes"), 0, false);
?>

<?php echo '<script'; ?>
 type="text/javascript">
function reportPrint() {
  parent["workframe"].focus();
  parent["workframe"].print();
}

function pre_submit() {
 document.getElementById('called_url').value=parent.workframe.location;
 return true;
}
<?php echo '</script'; ?>
>
</head>

<body>
<h1 class="title"><?php echo $_smarty_tpl->tpl_vars['labels']->value['title_nav_results'];?>
</h1>

<div style="margin:0px; padding:0px;">
<form method="get" id="resultsNavigator" onSubmit="javascript:return pre_submit();">
  <input type="hidden" id="called_by_me" name="called_by_me" value="1" />
  <input type="hidden" id="called_url" name="called_url" value="" />

  <div class="menu_bar">
    <span><?php echo $_smarty_tpl->tpl_vars['labels']->value['title_report_type'];?>

    <select name="format" onchange="this.form.submit();">
      <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['gui']->value->reportTypes,'selected'=>$_smarty_tpl->tpl_vars['gui']->value->selectedReportType),$_smarty_tpl);?>

    </select>
    </span>

    <span style="margin-left:20px;"><input type="button" name="print" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_print'];?>
" 
      onclick="javascript: reportPrint();" style="margin-left:5px;" /></span>
  </div>

  <div style="margin:3px" >
    <span style="padding-right: 10px"><?php echo $_smarty_tpl->tpl_vars['labels']->value['test_plan'];?>
 
    <select name="tplan_id" onchange="pre_submit();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>
    </span>
    <br>
    <span><?php echo $_smarty_tpl->tpl_vars['labels']->value['show_inactive_tplans'];?>

    <input type="checkbox" <?php echo $_smarty_tpl->tpl_vars['gui']->value->checked_show_inactive_tplans;?>
 onclick="this.form.submit();" 
           id="show_inactive_tplans" name="show_inactive_tplans" >
    </span>
    
  </div>
</form>
</div>

<div style="margin:3px; padding: 15px 0px" >
<?php if ($_smarty_tpl->tpl_vars['gui']->value->do_report['status_ok']) {?>
  <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->menuItems, 'menu');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['menu']->value) {
?>
    <span>
      <a href="<?php echo $_smarty_tpl->tpl_vars['menu']->value['href'];?>
format=<?php echo $_smarty_tpl->tpl_vars['gui']->value->selectedReportType;?>
&amp;tplan_id=<?php echo $_smarty_tpl->tpl_vars['gui']->value->tplan_id;?>

            <?php if ($_smarty_tpl->tpl_vars['gui']->value->checked_show_inactive_tplans) {?>&amp;show_inactive_tplans=1<?php }?>" 
       target="workframe"><?php echo $_smarty_tpl->tpl_vars['menu']->value['name'];?>
</a>
    <?php if ($_smarty_tpl->tpl_vars['menu']->value['directLink'] != '') {
echo $_smarty_tpl->tpl_vars['menu']->value['toggle'];
}?>
  </span>
  <br>
  <?php echo $_smarty_tpl->tpl_vars['menu']->value['directLinkDiv'];?>

  <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);
} else { ?>
  <?php echo $_smarty_tpl->tpl_vars['gui']->value->do_report['msg'];?>

<?php }?>
</div>


<?php echo '<script'; ?>
 type="text/javascript">
<?php if ($_smarty_tpl->tpl_vars['gui']->value->workframe != '') {?>
  parent.workframe.location='<?php echo $_smarty_tpl->tpl_vars['gui']->value->workframe;?>
';
<?php }
echo '</script'; ?>
>

</body>
</html><?php }
}
