<?php
/* Smarty version 3.1.33, created on 2022-02-16 13:54:56
  from '/home/recursosspa/public_html/testlink/gui/templates/execute/execHistory.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_620d023045f077_89426932',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '3ce0b575e515ca5de00cae114dbb516779bb2f41' => 
    array (
      0 => '/home/recursosspa/public_html/testlink/gui/templates/execute/execHistory.tpl',
      1 => 1643038949,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:inc_head.tpl' => 1,
    'file:inc_ext_js.tpl' => 1,
    'file:inc_attachments.tpl' => 1,
    'file:inc_show_bug_table.tpl' => 1,
  ),
),false)) {
function content_620d023045f077_89426932 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/home/recursosspa/public_html/testlink/vendor/smarty/smarty/libs/plugins/function.cycle.php','function'=>'smarty_function_cycle',),));
?>
  
<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('var'=>'labels','s'=>'title_test_case,th_test_case_id,version,date_time_run,platform,test_exec_by,
             exec_status,testcaseversion,attachment_mgmt,deleted_user,build,testplan,
             execution_type_manual,execution_type_auto,run_mode,exec_notes,
             edit_execution,display_only_active_test_plans,access_test_steps_exec'),$_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_ext_js.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

<?php echo '<script'; ?>
>
panel_init_functions = new Array();
Ext.onReady(function() {
  for(var gdx=0; gdx<panel_init_functions.length;gdx++) {
    panel_init_functions[gdx]();
  }
});

function load_notes(panel,exec_id)
{
  var url2load=fRoot+'lib/execute/getExecNotes.php?readonly=1&exec_id=' + exec_id;
  panel.load({ url:url2load });
}
<?php echo '</script'; ?>
>
</head>

<?php $_smarty_tpl->_assignInScope('attachment_model', $_smarty_tpl->tpl_vars['gui']->value->exec_cfg->att_model);
$_smarty_tpl->_assignInScope('my_colspan', $_smarty_tpl->tpl_vars['attachment_model']->value->num_cols+2);
$_smarty_tpl->_assignInScope('printExecutionAction', "lib/execute/execPrint.php");?>

<body onUnload="storeWindowSize('execHistoryPopup')">
<?php if ($_smarty_tpl->tpl_vars['gui']->value->main_descr != '') {?>
<h1><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->main_descr, ENT_QUOTES, 'UTF-8', true);?>
<br></h1>
<h1><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->detailed_descr, ENT_QUOTES, 'UTF-8', true);?>
<br></h1>
<?php }?>
<div class="workBack">
  <?php if ($_smarty_tpl->tpl_vars['gui']->value->warning_msg == '') {?>

    <form name="execHistory" id="execHistory" action="lib/execute/execHistory.php">
      <input type="hidden" name="tcase_id" id="tcase_id" value="<?php echo $_smarty_tpl->tpl_vars['gui']->value->tcase_id;?>
">
      <?php echo $_smarty_tpl->tpl_vars['labels']->value['display_only_active_test_plans'];?>

      <input type="checkbox"
             id="onlyActiveTestPlans" name="onlyActiveTestPlans"
             <?php if ($_smarty_tpl->tpl_vars['gui']->value->onlyActiveTestPlans) {?> checked <?php }?>
             style="font-size: 90%;" onclick="this.form.submit()"/>
    </form>

    <table cellspacing="0" class="exec_history">
      <tr>
        <th style="text-align:left"><?php echo $_smarty_tpl->tpl_vars['labels']->value['date_time_run'];?>
</th>
        <th style="text-align:left"><?php echo $_smarty_tpl->tpl_vars['labels']->value['testplan'];?>
</th>
        <th style="text-align:left"><?php echo $_smarty_tpl->tpl_vars['labels']->value['build'];?>
</th>
        <?php if ($_smarty_tpl->tpl_vars['gui']->value->displayPlatformCol) {?>
          <?php $_smarty_tpl->_assignInScope('my_colspan', $_smarty_tpl->tpl_vars['my_colspan']->value+1);?>
          <th style="text-align:left"><?php echo $_smarty_tpl->tpl_vars['labels']->value['platform'];?>
</th>
        <?php }?>
        <th style="text-align:left"><?php echo $_smarty_tpl->tpl_vars['labels']->value['test_exec_by'];?>
</th>
        <th style="text-align:center"><?php echo $_smarty_tpl->tpl_vars['labels']->value['exec_status'];?>
</th>
        <th style="text-align:center"><?php echo $_smarty_tpl->tpl_vars['labels']->value['testcaseversion'];?>
</th>
        <th style="text-align:left"><nobr><?php echo $_smarty_tpl->tpl_vars['labels']->value['run_mode'];?>
</nobr></th>
        <?php if ($_smarty_tpl->tpl_vars['tlCfg']->value->exec_cfg->steps_exec) {?>
        <th style="text-align:left"><nobr>&nbsp;</nobr></th>
        <?php }?>
      </tr>
    
            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->execSet, 'tcv_exec_set');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['tcv_exec_set']->value) {
?>
        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['tcv_exec_set']->value, 'tcv_exec');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['tcv_exec']->value) {
?>
          <?php echo smarty_function_cycle(array('values'=>'#eeeeee,#d0d0d0','assign'=>"bg_color"),$_smarty_tpl);?>

          <tr style="border-top:1px solid black; background-color: <?php echo $_smarty_tpl->tpl_vars['bg_color']->value;?>
">
            <td>
              <?php if ($_smarty_tpl->tpl_vars['gui']->value->grants->exec_edit_notes[$_smarty_tpl->tpl_vars['tcv_exec']->value['testplan_id']]) {?>
                <img src="<?php echo @constant('TL_THEME_IMG_DIR');?>
/note_edit.png" style="vertical-align:middle" 
                     title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['edit_execution'];?>
" onclick="javascript: openExecEditWindow(
                     <?php echo $_smarty_tpl->tpl_vars['tcv_exec']->value['execution_id'];?>
,<?php echo $_smarty_tpl->tpl_vars['tcv_exec']->value['id'];?>
,<?php echo $_smarty_tpl->tpl_vars['tcv_exec']->value['testplan_id'];?>
,<?php echo $_smarty_tpl->tpl_vars['gui']->value->tproject_id;?>
);">
              <?php }?>
              <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['localize_timestamp'][0], array( array('ts'=>$_smarty_tpl->tpl_vars['tcv_exec']->value['execution_ts']),$_smarty_tpl ) );?>

            </td>
            <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tcv_exec']->value['testplan_name'], ENT_QUOTES, 'UTF-8', true);?>
</td>
            <td>
                        <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tcv_exec']->value['build_name'], ENT_QUOTES, 'UTF-8', true);?>

            </td>
            <?php if ($_smarty_tpl->tpl_vars['gui']->value->displayPlatformCol) {?><td><?php echo $_smarty_tpl->tpl_vars['tcv_exec']->value['platform_name'];?>
</td><?php }?>
            <td title="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tcv_exec']->value['tester_first_name'], ENT_QUOTES, 'UTF-8', true);?>
 <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tcv_exec']->value['tester_last_name'], ENT_QUOTES, 'UTF-8', true);?>
">
            <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tcv_exec']->value['tester_login'], ENT_QUOTES, 'UTF-8', true);?>

            </td>
            <?php $_smarty_tpl->_assignInScope('tc_status_code', $_smarty_tpl->tpl_vars['tcv_exec']->value['status']);?>
            <td class="<?php echo $_smarty_tpl->tpl_vars['tlCfg']->value->results['code_status'][$_smarty_tpl->tpl_vars['tc_status_code']->value];?>
" style="text-align:center">
                <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['localize_tc_status'][0], array( array('s'=>$_smarty_tpl->tpl_vars['tcv_exec']->value['status']),$_smarty_tpl ) );?>

            </td>
            <td  style="text-align:center"><?php echo $_smarty_tpl->tpl_vars['tcv_exec']->value['tcversion_number'];?>
</td>
    
            <td class="icon_cell" align="center">
            <?php if ($_smarty_tpl->tpl_vars['tcv_exec']->value['execution_run_type'] == @constant('TESTCASE_EXECUTION_TYPE_MANUAL')) {?>
            <img src="<?php echo @constant('TL_THEME_IMG_DIR');?>
/user.png" title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['execution_type_manual'];?>
"
                 style="border:none" />
            <?php } else { ?>
            <img src="<?php echo @constant('TL_THEME_IMG_DIR');?>
/bullet_wrench.png" title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['execution_type_auto'];?>
"
                 style="border:none" />
            <?php }?>
            </td>
          <?php if ($_smarty_tpl->tpl_vars['tlCfg']->value->exec_cfg->steps_exec) {?>
            <td class="icon_cell" align="center">
              <img src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['steps'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['access_test_steps_exec'];?>
"  
                   onclick="javascript:openPrintPreview('exec',<?php echo $_smarty_tpl->tpl_vars['tcv_exec']->value['execution_id'];?>
,
                                                        null,null,'<?php echo $_smarty_tpl->tpl_vars['printExecutionAction']->value;?>
');"/>
            </td>
          <?php }?>


          </tr>
    
    
          <?php if ($_smarty_tpl->tpl_vars['tcv_exec']->value['execution_notes'] != '') {?>
            <?php echo '<script'; ?>
>
                    
              var panel_init = function(){
                var p = new Ext.Panel({
                    title: '<?php echo $_smarty_tpl->tpl_vars['labels']->value['exec_notes'];?>
',
                    collapsible:true, collapsed: true, baseCls: 'x-tl-panel',
                    renderTo: 'exec_notes_container_<?php echo $_smarty_tpl->tpl_vars['tcv_exec']->value['execution_id'];?>
',
                    width:'100%',html:''
                });
                p.on({'expand' : function(){load_notes(this,<?php echo $_smarty_tpl->tpl_vars['tcv_exec']->value['execution_id'];?>
);}});
              };
              panel_init_functions.push(panel_init);
              
            <?php echo '</script'; ?>
>
          <tr style="background-color: <?php echo $_smarty_tpl->tpl_vars['bg_color']->value;?>
">
              <td colspan="<?php echo $_smarty_tpl->tpl_vars['my_colspan']->value;?>
" id="exec_notes_container_<?php echo $_smarty_tpl->tpl_vars['tcv_exec']->value['execution_id'];?>
"
                  style="padding:5px 5px 5px 5px;">
              </td>
            </tr>
          <?php }?>
    
          <tr style="background-color: <?php echo $_smarty_tpl->tpl_vars['bg_color']->value;?>
">
          <td colspan="<?php echo $_smarty_tpl->tpl_vars['my_colspan']->value;?>
">
            <?php if (isset($_smarty_tpl->tpl_vars['gui']->value->cfexec[$_smarty_tpl->tpl_vars['tcv_exec']->value['execution_id']])) {?>
              <?php $_smarty_tpl->_assignInScope('cf_value_info', $_smarty_tpl->tpl_vars['gui']->value->cfexec[$_smarty_tpl->tpl_vars['tcv_exec']->value['execution_id']]);?>
              <?php echo $_smarty_tpl->tpl_vars['cf_value_info']->value;?>

            <?php }?> 
          </td>
          </tr>
    
                    <tr style="background-color: <?php echo $_smarty_tpl->tpl_vars['bg_color']->value;?>
">
            <td colspan="<?php echo $_smarty_tpl->tpl_vars['my_colspan']->value;?>
">
            <?php if (isset($_smarty_tpl->tpl_vars['gui']->value->attachments[$_smarty_tpl->tpl_vars['tcv_exec']->value['execution_id']])) {?>
              <?php $_smarty_tpl->_assignInScope('attach_info', $_smarty_tpl->tpl_vars['gui']->value->attachments[$_smarty_tpl->tpl_vars['tcv_exec']->value['execution_id']]);?>
              <?php $_smarty_tpl->_subTemplateRender("file:inc_attachments.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('attach_attachmentInfos'=>$_smarty_tpl->tpl_vars['attach_info']->value,'attach_id'=>$_smarty_tpl->tpl_vars['tcv_exec']->value['execution_id'],'attach_tableName'=>"executions",'attach_show_upload_btn'=>$_smarty_tpl->tpl_vars['attachment_model']->value->show_upload_btn,'attach_show_title'=>$_smarty_tpl->tpl_vars['attachment_model']->value->show_title,'attach_downloadOnly'=>1,'attach_tableClassName'=>null,'attach_inheritStyle'=>0,'attach_tableStyles'=>null), 0, true);
?>
            <?php }?>
          </td>
          </tr>
    
    
          
          <?php if (isset($_smarty_tpl->tpl_vars['gui']->value->bugs[$_smarty_tpl->tpl_vars['tcv_exec']->value['execution_id']])) {?>
            <tr style="background-color: <?php echo $_smarty_tpl->tpl_vars['bg_color']->value;?>
">
            <td colspan="<?php echo $_smarty_tpl->tpl_vars['my_colspan']->value;?>
">
              <?php $_smarty_tpl->_subTemplateRender("file:inc_show_bug_table.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('bugs_map'=>$_smarty_tpl->tpl_vars['gui']->value->bugs[$_smarty_tpl->tpl_vars['tcv_exec']->value['execution_id']],'can_delete'=>0,'exec_id'=>$_smarty_tpl->tpl_vars['tcv_exec']->value['execution_id']), 0, true);
?>
            </td>
          </tr>
          <?php }?>
        <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
      <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
    
    
    </table>
  <?php } else { ?>
    <br />
    <div class="user_feedback">
    <?php echo $_smarty_tpl->tpl_vars['gui']->value->warning_msg;?>

    </div>
  <?php }?>
</div>
</body>
</html>
<?php }
}
