<?php
/* Smarty version 3.1.33, created on 2022-01-28 14:52:20
  from '/home/recursosspa/public_html/testlink/gui/templates/plan/buildView.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_61f40324645164_01414355',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '7a0baa1634a90b4134a486fef7370c20487e1165' => 
    array (
      0 => '/home/recursosspa/public_html/testlink/gui/templates/plan/buildView.tpl',
      1 => 1643038955,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:inc_head.tpl' => 1,
    'file:inc_del_onclick.tpl' => 1,
    'file:inc_update.tpl' => 1,
  ),
),false)) {
function content_61f40324645164_01414355 (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',),));
$_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('managerURL', "lib/plan/buildEdit.php");
$_smarty_tpl->_assignInScope('editAction', ((string)$_smarty_tpl->tpl_vars['managerURL']->value)."?do_action=edit&build_id=");
$_smarty_tpl->_assignInScope('deleteAction', ((string)$_smarty_tpl->tpl_vars['managerURL']->value)."?do_action=do_delete&build_id=");?>

<?php $_smarty_tpl->_assignInScope('tplanID', $_smarty_tpl->tpl_vars['gui']->value->tplan_id);
$_smarty_tpl->_assignInScope('createAction', ((string)$_smarty_tpl->tpl_vars['managerURL']->value)."?do_action=create&tplan_id=".((string)$_smarty_tpl->tpl_vars['tplanID']->value));?>


<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('s'=>'warning_delete_build','var'=>"warning_msg"),$_smarty_tpl ) );?>

<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('s'=>'delete','var'=>"del_msgbox_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'=>'title_build_2,test_plan,th_title,th_description,th_active,
             th_open,th_delete,alt_edit_build,alt_active_build,
             alt_open_build,alt_delete_build,no_builds,btn_build_create,
             builds_description,sort_table_by_column,th_id,release_date,
             inactive_click_to_change,active_click_to_change,click_to_set_open,click_to_set_closed'),$_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",'jsValidate'=>"yes",'enableTableSorting'=>"yes"), 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">
/* All this stuff is needed for logic contained in inc_del_onclick.tpl */
var del_action=fRoot+'<?php echo $_smarty_tpl->tpl_vars['deleteAction']->value;?>
';
<?php echo '</script'; ?>
>
</head>

<body <?php echo $_smarty_tpl->tpl_vars['body_onload']->value;?>
>

<h1 class="title"><?php echo $_smarty_tpl->tpl_vars['labels']->value['title_build_2'];
echo @constant('TITLE_SEP_TYPE3');
echo $_smarty_tpl->tpl_vars['labels']->value['test_plan'];
echo @constant('TITLE_SEP');
echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->tplan_name, ENT_QUOTES, 'UTF-8', true);?>
</h1>

<div class="workBack">
<?php $_smarty_tpl->_subTemplateRender("file:inc_update.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('result'=>$_smarty_tpl->tpl_vars['sqlResult']->value,'item'=>"build",'user_feedback'=>$_smarty_tpl->tpl_vars['gui']->value->user_feedback), 0, false);
?>


<?php if (count($_smarty_tpl->tpl_vars['gui']->value->buildSet) > $_smarty_tpl->tpl_vars['tlCfg']->value->gui->buildView->itemQtyForTopButton) {?>
<div class="groupBtn">
  <form method="post" action="<?php echo $_smarty_tpl->tpl_vars['createAction']->value;?>
" id="create_build_top">
    <input type="submit" name="create_build_top" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_build_create'];?>
" />
  </form>
</div>
<?php }?>

<div id="existing_builds">
  <?php if ($_smarty_tpl->tpl_vars['gui']->value->buildSet != '') {?>
  <form method="post" id="buildView" name="buildView" action="<?php echo $_smarty_tpl->tpl_vars['managerURL']->value;?>
">
    <input type="hidden" name="do_action" id="do_action" value="">
    <input type="hidden" name="build_id" id="build_id" value="">
    <input type="hidden" name="tplan_id" id="tplan_id" value="<?php echo $_smarty_tpl->tpl_vars['gui']->value->tplan_id;?>
">


      	<table id="item_view" class="simple_tableruler sortable">
  		<tr>
  			<th><?php echo $_smarty_tpl->tpl_vars['tlImages']->value['toggle_api_info'];
echo $_smarty_tpl->tpl_vars['tlImages']->value['sort_hint'];
echo $_smarty_tpl->tpl_vars['labels']->value['th_title'];?>
</th>
  			<th class="<?php echo $_smarty_tpl->tpl_vars['noSortableColumnClass']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_description'];?>
</th>
  			<th class="<?php echo $_smarty_tpl->tpl_vars['noSortableColumnClass']->value;?>
" style="width:90px;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['release_date'];?>
</th>
  			<th class="<?php echo $_smarty_tpl->tpl_vars['noSortableColumnClass']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_active'];?>
</th>
  			<th class="<?php echo $_smarty_tpl->tpl_vars['noSortableColumnClass']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_open'];?>
</th>
  			<th class="<?php echo $_smarty_tpl->tpl_vars['noSortableColumnClass']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_delete'];?>
</th>
  		</tr>
  		<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->buildSet, 'build');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['build']->value) {
?>
        	<tr>
  				<td><span class="api_info" style='display:none'><?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['tlCfg']->value->api->id_format,"%s",$_smarty_tpl->tpl_vars['build']->value['id']);?>
</span>
  				    <a href="<?php echo $_smarty_tpl->tpl_vars['editAction']->value;
echo $_smarty_tpl->tpl_vars['build']->value['id'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['alt_edit_build'];?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['build']->value['name'], ENT_QUOTES, 'UTF-8', true);?>

  					     <?php if ($_smarty_tpl->tpl_vars['gsmarty_gui']->value->show_icon_edit) {?>
  					         <img style="border:none" alt="<?php echo $_smarty_tpl->tpl_vars['labels']->value['alt_edit_build'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['alt_edit_build'];?>
"
  					              src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['edit'];?>
"/>
  					     <?php }?>    
  					  </a>   
  				</td>
  				<td><?php if ($_smarty_tpl->tpl_vars['gui']->value->editorType == 'none') {
echo nl2br($_smarty_tpl->tpl_vars['build']->value['notes']);
} else {
echo $_smarty_tpl->tpl_vars['build']->value['notes'];
}?></td>
  				<td><?php if ($_smarty_tpl->tpl_vars['build']->value['release_date'] != '') {
echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['localize_date'][0], array( array('d'=>$_smarty_tpl->tpl_vars['build']->value['release_date']),$_smarty_tpl ) );
}?></td>

          <td class="clickable_icon">
            <?php if ($_smarty_tpl->tpl_vars['build']->value['active'] == 1) {?> 
                <input type="image" style="border:none" id="set_build_active"
                       title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['active_click_to_change'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['labels']->value['active_click_to_change'];?>
" 
                       onClick = "do_action.value='setInactive';build_id.value=<?php echo $_smarty_tpl->tpl_vars['build']->value['id'];?>
;"
                       src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['on'];?>
"/>
              <?php } else { ?>
                <input type="image" style="border:none" id="set_build_inactive"
                     title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['inactive_click_to_change'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['labels']->value['inactive_click_to_change'];?>
" 
                     onClick = "do_action.value='setActive';build_id.value=<?php echo $_smarty_tpl->tpl_vars['build']->value['id'];?>
;"
                     src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['off'];?>
"/>
              <?php }?>
          </td>

          <td class="clickable_icon">
            <?php if ($_smarty_tpl->tpl_vars['build']->value['is_open'] == 1) {?> 
                <input type="image" style="border:none" id="close_build"
                       title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['click_to_set_closed'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['labels']->value['click_to_set_closed'];?>
" 
                       onClick = "do_action.value='close';build_id.value=<?php echo $_smarty_tpl->tpl_vars['build']->value['id'];?>
;"
                       src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['lock_open'];?>
"/>
              <?php } else { ?>
                <input type="image" style="border:none" id="open_build"
                     title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['click_to_set_open'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['labels']->value['click_to_set_open'];?>
" 
                     onClick = "do_action.value='open';build_id.value=<?php echo $_smarty_tpl->tpl_vars['build']->value['id'];?>
;"
                     src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['lock'];?>
"/>
              <?php }?>
          </td>

  				<td class="clickable_icon">
				       <img style="border:none;cursor: pointer;"  title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['alt_delete_build'];?>
" 
  				            alt="<?php echo $_smarty_tpl->tpl_vars['labels']->value['alt_delete_build'];?>
" 
 					            onclick="delete_confirmation(<?php echo $_smarty_tpl->tpl_vars['build']->value['id'];?>
,'<?php echo htmlspecialchars(strtr($_smarty_tpl->tpl_vars['build']->value['name'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" )), ENT_QUOTES, 'UTF-8', true);?>
',
 					                                         '<?php echo $_smarty_tpl->tpl_vars['del_msgbox_title']->value;?>
','<?php echo $_smarty_tpl->tpl_vars['warning_msg']->value;?>
');"
  				            src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['delete'];?>
"/>
  				</td>
  			</tr>
  		<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
  	</table>
   </form> 
  <?php } else { ?>
  	<p><?php echo $_smarty_tpl->tpl_vars['labels']->value['no_builds'];?>
</p>
  <?php }?>
</div>

<div class="groupBtn">
  <form method="post" action="<?php echo $_smarty_tpl->tpl_vars['createAction']->value;?>
" id="create_build_bottom">
    <input type="submit" name="create_build_bottom" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_build_create'];?>
" />
  </form>
</div>

<p><?php echo $_smarty_tpl->tpl_vars['labels']->value['builds_description'];?>
</p>
</div>

</body>
</html>
<?php }
}
