<?php
/* Smarty version 3.1.33, created on 2022-01-28 15:32:47
  from '/home/recursosspa/public_html/testlink/gui/templates/execute/execSetResults.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_61f40c9ff2b433_85103090',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'fc9c04a9c31b806995fa8b45b699962b0fc5cab9' => 
    array (
      0 => '/home/recursosspa/public_html/testlink/gui/templates/execute/execSetResults.tpl',
      1 => 1643038950,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:inc_head.tpl' => 1,
    'file:inc_del_onclick.tpl' => 1,
    'file:inc_show_hide_mgmt.tpl' => 4,
    'file:execute/inc_exec_show_tc_exec.tpl' => 1,
    'file:inc_refreshTreeWithFilters.tpl' => 1,
  ),
),false)) {
function content_61f40c9ff2b433_85103090 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/home/recursosspa/public_html/testlink/vendor/smarty/smarty/libs/plugins/modifier.replace.php','function'=>'smarty_modifier_replace',),1=>array('file'=>'/home/recursosspa/public_html/testlink/vendor/smarty/smarty/libs/plugins/function.cycle.php','function'=>'smarty_function_cycle',),2=>array('file'=>'/home/recursosspa/public_html/testlink/vendor/smarty/smarty/libs/plugins/function.html_options.php','function'=>'smarty_function_html_options',),));
$_smarty_tpl->_assignInScope('attachment_model', $_smarty_tpl->tpl_vars['cfg']->value->exec_cfg->att_model);
$_smarty_tpl->_assignInScope('title_sep', @constant('TITLE_SEP'));
$_smarty_tpl->_assignInScope('title_sep_type3', @constant('TITLE_SEP_TYPE3'));?>

<?php $_smarty_tpl->_assignInScope('input_enabled_disabled', "disabled");
$_smarty_tpl->_assignInScope('att_download_only', true);
$_smarty_tpl->_assignInScope('enable_custom_fields', false);
$_smarty_tpl->_assignInScope('draw_submit_button', false);?>

<?php $_smarty_tpl->_assignInScope('show_current_build', 0);
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('s'=>'build','var'=>'build_title'),$_smarty_tpl ) );?>


<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('var'=>'labels','s'=>'edit_notes,build_is_closed,test_cases_cannot_be_executed,test_exec_notes,test_exec_result,btn_next,
	th_testsuite,details,warning_delete_execution,title_test_case,th_test_case_id,keywords,design,execution,
	version,has_no_assignment,assigned_to,execution_history,exec_notes,step_actions,add_link_to_tlexec,
	execution_type_short_descr,expected_results,testcase_customfields,builds_notes,
  estimated_execution_duration,version,btn_save_and_exit,test_plan_notes,bug_copy_from_latest_exec,btn_next_tcase,
	last_execution,exec_any_build,date_time_run,test_exec_by,build,exec_status,
	test_status_not_run,tc_not_tested_yet,last_execution,exec_current_build,
  bulk_tc_status_management,access_test_steps_exec,assign_exec_task_to_me,
	attachment_mgmt,bug_mgmt,delete,closed_build,alt_notes,alt_attachment_mgmt,
	img_title_bug_mgmt,img_title_delete_execution,test_exec_summary,title_t_r_on_build,
	execution_type_manual,execution_type_auto,run_mode,or_unassigned_test_cases,
	no_data_available,import_xml_results,btn_save_all_tests_results,execution_type,
	testcaseversion,btn_print,execute_and_save_results,warning,warning_nothing_will_be_saved,
	test_exec_steps,test_exec_expected_r,btn_save_tc_exec_results,only_test_cases_assigned_to,
	deleted_user,click_to_open,reqs,requirement,show_tcase_spec,edit_execution, 
	btn_save_exec_and_movetonext,step_number,btn_export,btn_export_testcases,bug_summary,bug_description,
  bug_link_tl_to_bts,bug_create_into_bts,execution_duration,execution_duration_short,
  issueType,issuePriority,artifactVersion,artifactComponent,
  add_issue_note,bug_add_note,preconditions,platform,platform_description,exec_not_run_result_note,remoteExecFeeback,create_issue_feedback'),$_smarty_tpl ) );?>




<?php $_smarty_tpl->_assignInScope('cfg_section', smarty_modifier_replace(call_user_func_array($_smarty_tpl->registered_plugins[ 'modifier' ][ 'basename' ][ 0 ], array( 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->_assignInScope('exportAction', "lib/execute/execExport.php?tplan_id=");?>

<?php $_smarty_tpl->_subTemplateRender("file:inc_head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('popup'=>'yes','openHead'=>'yes','jsValidate'=>"yes",'editorType'=>$_smarty_tpl->tpl_vars['gui']->value->editorType), 0, false);
echo '<script'; ?>
 language="JavaScript" src="gui/javascript/radio_utils.js" type="text/javascript"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 language="JavaScript" src="gui/javascript/expandAndCollapseFunctions.js" type="text/javascript"><?php echo '</script'; ?>
>

<?php if ($_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'ROUND_EXEC_HISTORY') || $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'ROUND_TC_TITLE') || $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'ROUND_TC_SPEC')) {?>
  <?php $_smarty_tpl->_assignInScope('round_enabled', 1);?>
  <?php echo '<script'; ?>
 language="JavaScript" src="<?php echo $_smarty_tpl->tpl_vars['basehref']->value;?>
gui/niftycube/niftycube.js" type="text/javascript"><?php echo '</script'; ?>
>
<?php }?>

<?php echo '<script'; ?>
 language="JavaScript" type="text/javascript">
var msg="<?php echo $_smarty_tpl->tpl_vars['labels']->value['warning_delete_execution'];?>
";
var import_xml_results="<?php echo $_smarty_tpl->tpl_vars['labels']->value['import_xml_results'];?>
";
<?php echo '</script'; ?>
>

<?php $_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'; ?>
 language="JavaScript" type="text/javascript">
function load_notes(panel,exec_id)
{
  // solved ONLY for  $webeditorType == 'none'
  var url2load=fRoot+'lib/execute/getExecNotes.php?readonly=1&exec_id=' + exec_id;
  panel.load({ url:url2load });
}

/*
Set value for a group of combo (have same prefix).
*/
function set_combo_group(formid,combo_id_prefix,value_to_assign)
{
	var f=document.getElementById(formid);
	var all_comboboxes = f.getElementsByTagName('select');
	var input_element;
	var idx=0;
		
	for(idx = 0; idx < all_comboboxes.length; idx++)
	{
		input_element=all_comboboxes[idx];
		if( input_element.type == "select-one" && 
		    input_element.id.indexOf(combo_id_prefix)==0 &&
		   !input_element.disabled)
		{
			input_element.value=value_to_assign;
		}	
	}
}

// Escape all messages (string)
var alert_box_title="<?php echo strtr($_smarty_tpl->tpl_vars['labels']->value['warning'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" ));?>
";
var warning_nothing_will_be_saved="<?php echo strtr($_smarty_tpl->tpl_vars['labels']->value['warning_nothing_will_be_saved'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" ));?>
";
function validateForm(f)
{
  var status_ok=true;
  var cfields_inputs='';
  var cfValidityChecks;
  var cfield_container;
  var access_key;
  cfield_container=document.getElementById('save_button_clicked').value;
  access_key='cfields_exec_time_tcversionid_'+cfield_container; 
    
  if( document.getElementById(access_key) != null )
  {    
 	    cfields_inputs = document.getElementById(access_key).getElementsByTagName('input');
      cfValidityChecks=validateCustomFields(cfields_inputs);
      if( !cfValidityChecks.status_ok )
      {
          var warning_msg=cfMessages[cfValidityChecks.msg_id];
          alert_message(alert_box_title,warning_msg.replace(/%s/, cfValidityChecks.cfield_label));
          return false;
      }
  }
  return true;
}

/*
  function: checkSubmitForStatusCombo
            $statusCode has been checked, then false is returned to block form submit().
            
            Dev. Note - remember this:
            
            KO:
               onclick="foo();checkSubmitForStatus('n')"
            OK
               onclick="foo();return checkSubmitForStatus('n')"
                              ^^^^^^ 
            

  args :
  
  returns: 

*/
function checkSubmitForStatusCombo(oid,statusCode2block)
{
  var access_key;
  var isChecked;
  
  if(document.getElementById(oid).value == statusCode2block)
  {
    alert_message(alert_box_title,warning_nothing_will_be_saved);
    return false;
  }  
  return true;
}


/**
 * 
 * IMPORTANT DEVELOPMENT NOTICE
 * ATTENTION args is a GLOBAL Javascript variable, then be CAREFULL
 */
function openExportTestCases(windows_title,tsuite_id,tproject_id,tplan_id,build_id,platform_id,tcversion_set) 
{
  wargs = "tsuiteID=" + tsuite_id + "&tprojectID=" + tproject_id + "&tplanID=" + tplan_id; 
  wargs += "&buildID=" + build_id + "&platformID=" + platform_id;
  wargs += "&tcversionSet=" + tcversion_set;
	wref = window.open(fRoot+"lib/execute/execExport.php?"+wargs,
	                   windows_title,"menubar=no,width=650,height=500,toolbar=no,scrollbars=yes");
	wref.focus();
}


panel_init_functions = new Array();
Ext.onReady(function() {
	for(var i=0;i<panel_init_functions.length;i++) {
		panel_init_functions[i]();
	}
});

/**
 * Be Carefull this TRUST on existence of $gui->delAttachmentURL
 */
function jsCallDeleteFile(btn, text, o_id)
{ 
  if( btn == 'yes' )
  {
    var windowCfg="width=510,height=150,resizable=yes,dependent=yes";
    window.open(fRoot+"lib/attachments/attachmentdelete.php?id="+o_id,
                "Delete",windowCfg);
  }
}        
<?php echo '</script'; ?>
>

<?php echo '<script'; ?>
 src="third_party/clipboard/clipboard.min.js"><?php echo '</script'; ?>
>
</head>
<?php $_smarty_tpl->_assignInScope('tplan_notes_view_memory_id', "tpn_view_status");
$_smarty_tpl->_assignInScope('build_notes_view_memory_id', "bn_view_status");
$_smarty_tpl->_assignInScope('bulk_controls_view_memory_id', "bc_view_status");
$_smarty_tpl->_assignInScope('platform_notes_view_memory_id', "platform_notes_view_status");?>

<body onLoad="show_hide('tplan_notes','<?php echo $_smarty_tpl->tpl_vars['tplan_notes_view_memory_id']->value;?>
',<?php echo $_smarty_tpl->tpl_vars['gui']->value->tpn_view_status;?>
);
              show_hide('build_notes','<?php echo $_smarty_tpl->tpl_vars['build_notes_view_memory_id']->value;?>
',<?php echo $_smarty_tpl->tpl_vars['gui']->value->bn_view_status;?>
);
              show_hide('bulk_controls','<?php echo $_smarty_tpl->tpl_vars['bulk_controls_view_memory_id']->value;?>
',<?php echo $_smarty_tpl->tpl_vars['gui']->value->bc_view_status;?>
);
              show_hide('platform_notes','<?php echo $_smarty_tpl->tpl_vars['platform_notes_view_memory_id']->value;?>
',<?php echo $_smarty_tpl->tpl_vars['gui']->value->platform_notes_view_status;?>
);

              <?php if ($_smarty_tpl->tpl_vars['tsuite_info']->value != null) {?>
                multiple_show_hide('<?php echo $_smarty_tpl->tpl_vars['tsd_div_id_list']->value;?>
','<?php echo $_smarty_tpl->tpl_vars['tsd_hidden_id_list']->value;?>
',
                                   '<?php echo $_smarty_tpl->tpl_vars['tsd_val_for_hidden_list']->value;?>
');
              <?php }?>

              <?php if ($_smarty_tpl->tpl_vars['round_enabled']->value) {?>Nifty('div.exec_additional_info');<?php }?>
              <?php if ($_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'ROUND_TC_SPEC')) {?>Nifty('div.exec_test_spec');<?php }?>
              <?php if ($_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'ROUND_EXEC_HISTORY')) {?>Nifty('div.exec_history');<?php }?>
              <?php if ($_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'ROUND_TC_TITLE')) {?>Nifty('div.exec_tc_title');<?php }?>"
      onUnload="storeWindowSize('TCExecPopup')">

<h1 class="title">
	<?php echo $_smarty_tpl->tpl_vars['labels']->value['title_t_r_on_build'];?>
 <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->build_name, ENT_QUOTES, 'UTF-8', true);?>

	<?php if ($_smarty_tpl->tpl_vars['gui']->value->platform_info['name'] != '') {?>
	  <?php echo $_smarty_tpl->tpl_vars['title_sep_type3']->value;
echo $_smarty_tpl->tpl_vars['labels']->value['platform'];
echo $_smarty_tpl->tpl_vars['title_sep']->value;
echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->platform_info['name'], ENT_QUOTES, 'UTF-8', true);?>

	<?php }?>
</h1>

<?php if ($_smarty_tpl->tpl_vars['gui']->value->ownerDisplayName != '') {?>
  <h1 class="title">
    <?php echo $_smarty_tpl->tpl_vars['labels']->value['only_test_cases_assigned_to'];
echo $_smarty_tpl->tpl_vars['title_sep']->value;?>

	  <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->ownerDisplayName, 'assignedUser');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['assignedUser']->value) {
?>
	    <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['assignedUser']->value, ENT_QUOTES, 'UTF-8', true);?>

	  <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
	  <?php if ($_smarty_tpl->tpl_vars['gui']->value->include_unassigned) {?>
	    <br /><?php echo $_smarty_tpl->tpl_vars['labels']->value['or_unassigned_test_cases'];?>

	  <?php }?>
  </h1>
<?php }?>

<div id="main_content" class="workBack">
	<?php if ($_smarty_tpl->tpl_vars['gui']->value->user_feedback != '') {?>
		<div class="error"><?php echo $_smarty_tpl->tpl_vars['gui']->value->user_feedback;?>
</div>
	<?php }?>
  <?php if ($_smarty_tpl->tpl_vars['gui']->value->build_is_open == 0) {?>
  <div class="messages" style="align:center;">
     <?php echo $_smarty_tpl->tpl_vars['labels']->value['build_is_closed'];?>
<br />
     <?php echo $_smarty_tpl->tpl_vars['labels']->value['test_cases_cannot_be_executed'];?>

  </div>
  <br />
  <?php }?>


<form method="post" id="execSetResults" name="execSetResults" 
      enctype="multipart/form-data"
      onSubmit="javascript:return validateForm(this);">

  <input type="hidden" id="save_button_clicked"  name="save_button_clicked" value="0" />
  <input type="hidden" id="do_delete"  name="do_delete" value="0" />
  <input type="hidden" id="exec_to_delete"  name="exec_to_delete" value="0" />
  <input type="hidden" id="form_token"  name="form_token" value="<?php echo $_smarty_tpl->tpl_vars['gui']->value->treeFormToken;?>
" />
  <input type="hidden" id="refresh_tree"  name="refresh_tree" value="<?php echo $_smarty_tpl->tpl_vars['gui']->value->refreshTree;?>
" />
  <input type="hidden" id="<?php echo $_smarty_tpl->tpl_vars['gui']->value->history_status_btn_name;?>
" name="<?php echo $_smarty_tpl->tpl_vars['gui']->value->history_status_btn_name;?>
" value="1" />

  <?php if (!($_smarty_tpl->tpl_vars['cfg']->value->exec_cfg->show_testsuite_contents && $_smarty_tpl->tpl_vars['gui']->value->can_use_bulk_op)) {?>
    <div class="groupBtn">
      <input type="hidden" id="history_on" name="history_on" value="<?php echo $_smarty_tpl->tpl_vars['gui']->value->history_on;?>
" />
      
      <?php echo $_smarty_tpl->tpl_vars['tlImages']->value['toggle_direct_link'];?>
 &nbsp;
      <div class="direct_link" style='display:none'>
      <img class="clip" src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['clipboard'];?>
" title="eye" 
           data-clipboard-text="<?php echo $_smarty_tpl->tpl_vars['gui']->value->direct_link;?>
">
      <a href="<?php echo $_smarty_tpl->tpl_vars['gui']->value->direct_link;?>
" target="_blank">
      <?php echo $_smarty_tpl->tpl_vars['gui']->value->direct_link;?>
</a></div>

      
      <input type="button" name="print" id="print" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_print'];?>
" onclick="javascript:window.print();" />
      <input type="button" id="toggle_history_on_off"  name="<?php echo $_smarty_tpl->tpl_vars['gui']->value->history_status_btn_name;?>
"
             value="<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('s'=>$_smarty_tpl->tpl_vars['gui']->value->history_status_btn_name),$_smarty_tpl ) );?>
" 
             onclick="javascript:toogleRequiredOnShowHide('bug_summary');
                      javascript:toogleRequiredOnShowHide('artifactVersion');
                      javascript:toogleRequiredOnShowHide('artifactComponent');
                      execSetResults.submit();"/>

      <?php if ($_smarty_tpl->tpl_vars['gui']->value->grants->execute) {?>
      <input type="button" id="pop_up_import_button" name="import_xml_button"
             value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['import_xml_results'];?>
"
             onclick="javascript: openImportResult('import_xml_results',<?php echo $_smarty_tpl->tpl_vars['gui']->value->tproject_id;?>
,
                                                   <?php echo $_smarty_tpl->tpl_vars['gui']->value->tplan_id;?>
,<?php echo $_smarty_tpl->tpl_vars['gui']->value->build_id;?>
,<?php echo $_smarty_tpl->tpl_vars['gui']->value->platform_id;?>
);" />
          
      <?php }?>
      
      <?php if ($_smarty_tpl->tpl_vars['tlCfg']->value->exec_cfg->enable_test_automation) {?>
        <input type="submit" id="execute_cases" name="execute_cases"
                 value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['execute_and_save_results'];?>
"/>
      <?php }?>
    </div>
  <?php }?>

  <?php if ($_smarty_tpl->tpl_vars['gui']->value->plugins['EVENT_TESTRUN_DISPLAY']) {?>
    <div id="plugin_display">
      <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->plugins['EVENT_TESTRUN_DISPLAY'], 'testrun_item');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['testrun_item']->value) {
?>
        <?php echo $_smarty_tpl->tpl_vars['testrun_item']->value;?>

        <br />
      <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
    </div>
  <?php }?>

        <?php $_smarty_tpl->_assignInScope('div_id', 'tplan_notes');?>
  <?php $_smarty_tpl->_assignInScope('memstatus_id', $_smarty_tpl->tpl_vars['tplan_notes_view_memory_id']->value);?>
  <?php $_smarty_tpl->_subTemplateRender("file:inc_show_hide_mgmt.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('show_hide_container_title'=>$_smarty_tpl->tpl_vars['gui']->value->testplan_div_title,'show_hide_container_id'=>$_smarty_tpl->tpl_vars['div_id']->value,'show_hide_container_draw'=>false,'show_hide_container_class'=>'exec_additional_info','show_hide_container_view_status_id'=>$_smarty_tpl->tpl_vars['memstatus_id']->value), 0, false);
?>

  <div id="<?php echo $_smarty_tpl->tpl_vars['div_id']->value;?>
" class="exec_additional_info">
    <?php if ($_smarty_tpl->tpl_vars['gui']->value->testPlanEditorType == 'none') {
echo nl2br($_smarty_tpl->tpl_vars['gui']->value->testplan_notes);
} else {
echo $_smarty_tpl->tpl_vars['gui']->value->testplan_notes;
}?>
    <?php if ($_smarty_tpl->tpl_vars['gui']->value->testplan_cfields != '') {?> <div id="cfields_testplan" class="custom_field_container"><?php echo $_smarty_tpl->tpl_vars['gui']->value->testplan_cfields;?>
</div><?php }?>
  </div>
  
        <?php if ($_smarty_tpl->tpl_vars['gui']->value->platform_info['id'] > 0) {?>
    <?php $_smarty_tpl->_assignInScope('div_id', 'platform_notes');?>
    <?php $_smarty_tpl->_assignInScope('memstatus_id', $_smarty_tpl->tpl_vars['platform_notes_view_memory_id']->value);?>
	<?php if ($_smarty_tpl->tpl_vars['gui']->value->platformEditorType == 'none') {
$_smarty_tpl->_assignInScope('content', nl2br($_smarty_tpl->tpl_vars['gui']->value->platform_info['notes']));
} else {
$_smarty_tpl->_assignInScope('content', $_smarty_tpl->tpl_vars['gui']->value->platform_info['notes']);
}?>

    <?php $_smarty_tpl->_subTemplateRender("file:inc_show_hide_mgmt.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('show_hide_container_title'=>$_smarty_tpl->tpl_vars['gui']->value->platform_div_title,'show_hide_container_id'=>$_smarty_tpl->tpl_vars['div_id']->value,'show_hide_container_view_status_id'=>$_smarty_tpl->tpl_vars['memstatus_id']->value,'show_hide_container_draw'=>true,'show_hide_container_class'=>'exec_additional_info','show_hide_container_html'=>$_smarty_tpl->tpl_vars['content']->value), 0, true);
?>
  <?php }?>         
  
        <?php $_smarty_tpl->_assignInScope('div_id', 'build_notes');?>
  <?php $_smarty_tpl->_assignInScope('memstatus_id', $_smarty_tpl->tpl_vars['build_notes_view_memory_id']->value);?>
  <?php $_smarty_tpl->_subTemplateRender("file:inc_show_hide_mgmt.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('show_hide_container_title'=>$_smarty_tpl->tpl_vars['gui']->value->build_div_title,'show_hide_container_id'=>$_smarty_tpl->tpl_vars['div_id']->value,'show_hide_container_view_status_id'=>$_smarty_tpl->tpl_vars['memstatus_id']->value,'show_hide_container_draw'=>false,'show_hide_container_class'=>'exec_additional_info'), 0, true);
?>

  <div id="<?php echo $_smarty_tpl->tpl_vars['div_id']->value;?>
" class="exec_additional_info">
    <?php if ($_smarty_tpl->tpl_vars['gui']->value->buildEditorType == 'none') {
echo nl2br($_smarty_tpl->tpl_vars['gui']->value->build_notes);
} else {
echo $_smarty_tpl->tpl_vars['gui']->value->build_notes;
}?>
    <?php if ($_smarty_tpl->tpl_vars['gui']->value->build_cfields != '') {?> <div id="cfields_build" class="custom_field_container"><?php echo $_smarty_tpl->tpl_vars['gui']->value->build_cfields;?>
</div><?php }?>
  </div>

    <?php if ($_smarty_tpl->tpl_vars['gui']->value->map_last_exec == '') {?>
     <div class="messages" style="text-align:center"> <?php echo $_smarty_tpl->tpl_vars['labels']->value['no_data_available'];?>
</div>
  <?php } else { ?>
      <?php if ($_smarty_tpl->tpl_vars['gui']->value->grants->execute == 1 && $_smarty_tpl->tpl_vars['gui']->value->build_is_open == 1) {?>
        <?php $_smarty_tpl->_assignInScope('input_enabled_disabled', '');?>
        <?php $_smarty_tpl->_assignInScope('att_download_only', false);?>
        <?php $_smarty_tpl->_assignInScope('enable_custom_fields', true);?>
        <?php $_smarty_tpl->_assignInScope('draw_submit_button', true);?>

        <?php if ($_smarty_tpl->tpl_vars['cfg']->value->exec_cfg->show_testsuite_contents && $_smarty_tpl->tpl_vars['gui']->value->can_use_bulk_op) {?>
            <?php $_smarty_tpl->_assignInScope('div_id', 'bulk_controls');?>
            <?php $_smarty_tpl->_assignInScope('memstatus_id', ((string)$_smarty_tpl->tpl_vars['bulk_controls_view_memory_id']->value));?>
            <?php $_smarty_tpl->_subTemplateRender("file:inc_show_hide_mgmt.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('show_hide_container_title'=>$_smarty_tpl->tpl_vars['labels']->value['bulk_tc_status_management'],'show_hide_container_id'=>$_smarty_tpl->tpl_vars['div_id']->value,'show_hide_container_draw'=>false,'show_hide_container_class'=>'exec_additional_info','show_hide_container_view_status_id'=>$_smarty_tpl->tpl_vars['memstatus_id']->value), 0, true);
?>

            <div id="<?php echo $_smarty_tpl->tpl_vars['div_id']->value;?>
" name="<?php echo $_smarty_tpl->tpl_vars['div_id']->value;?>
">
              <?php $_smarty_tpl->_subTemplateRender("execute/".((string)$_smarty_tpl->tpl_vars['tplConfig']->value['inc_exec_controls']), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('args_save_type'=>'bulk','args_input_enable_mgmt'=>$_smarty_tpl->tpl_vars['input_enabled_disabled']->value,'args_tcversion_id'=>'bulk','args_webeditor'=>$_smarty_tpl->tpl_vars['gui']->value->bulk_exec_notes_editor,'args_execution_time_cfields'=>$_smarty_tpl->tpl_vars['gui']->value->execution_time_cfields,'args_draw_save_and_exit'=>$_smarty_tpl->tpl_vars['gui']->value->draw_save_and_exit,'args_labels'=>$_smarty_tpl->tpl_vars['labels']->value), 0, true);
?>
            </div>
        <?php }?>
    	<?php }?>
	<?php }?>

  <?php if ($_smarty_tpl->tpl_vars['cfg']->value->exec_cfg->show_testsuite_contents && $_smarty_tpl->tpl_vars['gui']->value->can_use_bulk_op) {?>
      <div>
      <br />
      <input type="button" id="do_export_testcases" name="do_export_testcases"  value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_export_testcases'];?>
"
    	         onclick="javascript: openExportTestCases('export_testcases',<?php echo $_smarty_tpl->tpl_vars['gui']->value->node_id;?>
,<?php echo $_smarty_tpl->tpl_vars['gui']->value->tproject_id;?>
,
    	                                                  <?php echo $_smarty_tpl->tpl_vars['gui']->value->tplan_id;?>
,<?php echo $_smarty_tpl->tpl_vars['gui']->value->build_id;?>
,<?php echo $_smarty_tpl->tpl_vars['gui']->value->platform_id;?>
,
    	                                                  '<?php echo $_smarty_tpl->tpl_vars['gui']->value->tcversionSet;?>
');" />


      <?php if ($_smarty_tpl->tpl_vars['tlCfg']->value->exec_cfg->enable_test_automation) {?>
        <input type="submit" id="execute_cases" name="execute_cases" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['execute_and_save_results'];?>
"/>
      <?php }?>

 	    <table class="mainTable-x" width="100%">
 	    <tr>
 	    <th><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_testsuite'];?>
</th>
      <th><?php echo $_smarty_tpl->tpl_vars['labels']->value['title_test_case'];?>
</th>
 	    <th><?php echo $_smarty_tpl->tpl_vars['labels']->value['exec_status'];?>
</th>
      <th><?php echo $_smarty_tpl->tpl_vars['labels']->value['test_exec_result'];?>
</th>
 	    </tr>
 	    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->map_last_exec, 'tc_exec', false, NULL, 'tcSet', array (
));
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['tc_exec']->value) {
?>
      	  <?php if ($_smarty_tpl->tpl_vars['tc_exec']->value['active'] == 1) {?>
            <?php $_smarty_tpl->_assignInScope('tc_id', $_smarty_tpl->tpl_vars['tc_exec']->value['testcase_id']);?>
	          <?php $_smarty_tpl->_assignInScope('tcversion_id', $_smarty_tpl->tpl_vars['tc_exec']->value['id']);?>
	          	          <?php $_smarty_tpl->_assignInScope('version_number', $_smarty_tpl->tpl_vars['tc_exec']->value['version']);?>
	      
	    	<input type="hidden" id="tc_version_<?php echo $_smarty_tpl->tpl_vars['tcversion_id']->value;?>
" name="tc_version[<?php echo $_smarty_tpl->tpl_vars['tcversion_id']->value;?>
]" value='<?php echo $_smarty_tpl->tpl_vars['tc_id']->value;?>
' />
	    	<input type="hidden" id="version_number_<?php echo $_smarty_tpl->tpl_vars['tcversion_id']->value;?>
" name="version_number[<?php echo $_smarty_tpl->tpl_vars['tcversion_id']->value;?>
]" value='<?php echo $_smarty_tpl->tpl_vars['version_number']->value;?>
' />
      
	        	        <tr bgcolor="<?php echo smarty_function_cycle(array('values'=>"#eeeeee,#d0d0d0"),$_smarty_tpl);?>
">       
	        <td><?php echo $_smarty_tpl->tpl_vars['tsuite_info']->value[$_smarty_tpl->tpl_vars['tc_id']->value]['tsuite_name'];?>
</td>	        <td>
                  <img class="clickable" src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['history_small'];?>
"
                       onclick="javascript:openExecHistoryWindow(<?php echo $_smarty_tpl->tpl_vars['tc_exec']->value['testcase_id'];?>
);"
                       title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['execution_history'];?>
" />
                  <img class="clickable" src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['exec_icon'];?>
"
                       onclick="javascript:openExecutionWindow(<?php echo $_smarty_tpl->tpl_vars['tc_exec']->value['testcase_id'];?>
,<?php echo $_smarty_tpl->tpl_vars['tcversion_id']->value;?>
,<?php echo $_smarty_tpl->tpl_vars['gui']->value->build_id;?>
,<?php echo $_smarty_tpl->tpl_vars['gui']->value->tplan_id;?>
,<?php echo $_smarty_tpl->tpl_vars['gui']->value->platform_id;?>
);"
                       title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['execution'];?>
" />
                  <img class="clickable" src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['edit'];?>
"
                       onclick="javascript:openTCaseWindow(<?php echo $_smarty_tpl->tpl_vars['tc_exec']->value['testcase_id'];?>
,<?php echo $_smarty_tpl->tpl_vars['tc_exec']->value['id'];?>
);"
                       title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['design'];?>
" />        
	        <a href="javascript:openTCaseWindow(<?php echo $_smarty_tpl->tpl_vars['tc_exec']->value['testcase_id'];?>
,<?php echo $_smarty_tpl->tpl_vars['tc_exec']->value['id'];?>
,'editOnExec')" title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['show_tcase_spec'];?>
">
	        <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->tcasePrefix, ENT_QUOTES, 'UTF-8', true);
echo $_smarty_tpl->tpl_vars['cfg']->value->testcase_cfg->glue_character;
echo htmlspecialchars($_smarty_tpl->tpl_vars['tc_exec']->value['tc_external_id'], ENT_QUOTES, 'UTF-8', true);?>
::<?php echo $_smarty_tpl->tpl_vars['labels']->value['version'];?>
: <?php echo $_smarty_tpl->tpl_vars['tc_exec']->value['version'];?>
::<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['tc_exec']->value['name'], ENT_QUOTES, 'UTF-8', true);?>

	        </a>
	        </td>
	        <td class="<?php echo $_smarty_tpl->tpl_vars['tlCfg']->value->results['code_status'][$_smarty_tpl->tpl_vars['tc_exec']->value['status']];?>
">
	        <?php echo $_smarty_tpl->tpl_vars['gui']->value->execStatusValues[$_smarty_tpl->tpl_vars['tc_exec']->value['status']];?>

	        </td>
	   			<td>
	   			    <?php if ($_smarty_tpl->tpl_vars['tc_exec']->value['can_be_executed']) {?>
	   			    <select name="status[<?php echo $_smarty_tpl->tpl_vars['tcversion_id']->value;?>
]" id="status_<?php echo $_smarty_tpl->tpl_vars['tcversion_id']->value;?>
">
					    <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['gui']->value->execStatusValues),$_smarty_tpl);?>

					    </select>
					    <?php } else { ?>
					      &nbsp;
					    <?php }?>
				  </td>	        </tr>
	    <?php }?>      
      <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
      </table>
      </div>
  <?php } else { ?>

	<?php if ($_smarty_tpl->tpl_vars['tlCfg']->value->exec_cfg->enable_test_automation && $_smarty_tpl->tpl_vars['gui']->value->remoteExecFeedback != '') {?>
		<b><?php echo $_smarty_tpl->tpl_vars['labels']->value['remoteExecFeeback'];?>
</b>
		<?php if ($_smarty_tpl->tpl_vars['gui']->value->remoteExecFeedback['system'] == '') {?>
			<br><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->remoteExecFeedback['statusVerbose'], ENT_QUOTES, 'UTF-8', true);?>

			<br><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->remoteExecFeedback['notes'], ENT_QUOTES, 'UTF-8', true);?>

			<?php if ($_smarty_tpl->tpl_vars['gui']->value->remoteExecFeedback['status'] == '') {?>	
				<br><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->remoteExecFeedback['scheduled'], ENT_QUOTES, 'UTF-8', true);?>

				<br><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->remoteExecFeedback['timestamp'], ENT_QUOTES, 'UTF-8', true);?>

			<?php }?>	
		<?php } else { ?>
			<br><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->remoteExecFeedback['system']['msg'], ENT_QUOTES, 'UTF-8', true);?>

		<?php }?>
		<p>
	<?php }?>

  <?php $_smarty_tpl->_subTemplateRender("file:execute/inc_exec_show_tc_exec.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
  <?php if (isset($_smarty_tpl->tpl_vars['gui']->value->refreshTree) && $_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);
?>
  <?php }
}?>
  
</form>
</div>

<?php echo '<script'; ?>
>
jQuery( document ).ready(function() {
  clipboard = new Clipboard('.clip');
  //alert('Clipboard Debug');
});
<?php echo '</script'; ?>
>
</body>
</html>
<?php }
}
