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

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_68f1ebde8cfcf5_01082769',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '7972b4a8ea751a91496d9359146d5a2053887fe9' => 
    array (
      0 => 'C:\\php5.6\\htdocs\\testlink-1.9.20\\gui\\templates\\tl-classic\\plan\\buildEdit.tpl',
      1 => 1579460696,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:inc_head.tpl' => 1,
    'file:inc_ext_js.tpl' => 1,
    'file:inc_del_onclick.tpl' => 1,
    'file:inc_update.tpl' => 1,
    'file:error_icon.tpl' => 1,
  ),
),false)) {
function content_68f1ebde8cfcf5_01082769 (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\\modifier.replace.php','function'=>'smarty_modifier_replace',),1=>array('file'=>'C:\\php5.6\\htdocs\\testlink-1.9.20\\vendor\\smarty\\smarty\\libs\\plugins\\function.html_options.php','function'=>'smarty_function_html_options',),));
$_smarty_tpl->_assignInScope('managerURL', "lib/plan/buildEdit.php");
$_smarty_tpl->_assignInScope('cancelAction', "lib/plan/buildView.php?tplan_id=".((string)$_smarty_tpl->tpl_vars['gui']->value->tplan_id));?>

<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('var'=>"labels",'s'=>"warning,warning_empty_build_name,enter_build,enter_build_notes,active,
             open,builds_description,cancel,release_date,closure_date,closed_on_date,
             copy_tester_assignments, assignment_source_build,show_event_history,
             show_calender,clear_date,with_exec_status,commit_id,branch,tag,release_candidate"),$_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",'editorType'=>$_smarty_tpl->tpl_vars['gui']->value->editorType), 0, false);
$_smarty_tpl->_subTemplateRender("file:inc_ext_js.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('bResetEXTCss'=>1), 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">
var alert_box_title = "<?php echo strtr($_smarty_tpl->tpl_vars['labels']->value['warning'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" ));?>
";
var warning_empty_build_name = "<?php echo strtr($_smarty_tpl->tpl_vars['labels']->value['warning_empty_build_name'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" ));?>
";

function validateForm(f)
{
  if (isWhitespace(f.build_name.value)) 
  {
      alert_message(alert_box_title,warning_empty_build_name);
      selectField(f, 'build_name');
      return false;
  }
  return true;
}
<?php echo '</script'; ?>
>
</head>


<body onload="showOrHideElement('closure_date',<?php echo $_smarty_tpl->tpl_vars['gui']->value->is_open;?>
)">
<?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);
?>


<h1 class="title"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->main_descr, 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('user_feedback'=>$_smarty_tpl->tpl_vars['gui']->value->user_feedback,'result'=>$_smarty_tpl->tpl_vars['sqlResult']->value,'item'=>"build"), 0, false);
?>

<div> 
  <h2><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->operation_descr, ENT_QUOTES, 'UTF-8', true);?>

    <?php if ($_smarty_tpl->tpl_vars['gui']->value->mgt_view_events == "yes" && $_smarty_tpl->tpl_vars['gui']->value->build_id > 0) {?>
        <img style="margin-left:5px;" class="clickable" 
             src="<?php echo @constant('TL_THEME_IMG_DIR');?>
/question.gif" onclick="showEventHistoryFor('<?php echo $_smarty_tpl->tpl_vars['gui']->value->build_id;?>
','builds')" 
             alt="<?php echo $_smarty_tpl->tpl_vars['labels']->value['show_event_history'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['show_event_history'];?>
"/>
    <?php }?>
  </h2>
  <form method="post" id="create_build" name="create_build" 
        action="<?php echo $_smarty_tpl->tpl_vars['managerURL']->value;?>
" onSubmit="javascript:return validateForm(this);">
        <input type="hidden" name="tplan_id" id="tplan_id" value="<?php echo $_smarty_tpl->tpl_vars['gui']->value->tplan_id;?>
">
  <table class="common" style="width:80%">
    <tr>
      <th style="background:none;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['enter_build'];?>
</th>
      <td><input type="text" name="build_name" id="build_name" 
                 maxlength="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'BUILD_NAME_MAXLEN');?>
" 
                 value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->build_name, ENT_QUOTES, 'UTF-8', true);?>
" size="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'BUILD_NAME_SIZE');?>
" required />
                <?php $_smarty_tpl->_subTemplateRender("file:error_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('field'=>"build_name"), 0, false);
?>
      </td>
    </tr>
    <tr><th style="background:none;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['enter_build_notes'];?>
</th>
      <td><?php echo $_smarty_tpl->tpl_vars['gui']->value->notes;?>
</td>
    </tr>

    <?php if ($_smarty_tpl->tpl_vars['gui']->value->cfields != '') {?>
      <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->cfields, 'cf', false, 'accessKey');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['accessKey']->value => $_smarty_tpl->tpl_vars['cf']->value) {
?>
      <tr>
        <th style="background:none;"><?php echo $_smarty_tpl->tpl_vars['cf']->value['label'];?>
</th>
        <td><?php echo $_smarty_tpl->tpl_vars['cf']->value['input'];?>
</td>
      </tr>
      <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
    <?php }?>


    <tr><th style="background:none;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['active'];?>
</th>
        <td><input type="checkbox"  name="is_active" id="is_active"  
                   <?php if ($_smarty_tpl->tpl_vars['gui']->value->is_active == 1) {?> checked <?php }?> />
        </td>
    </tr>

    <tr>
        <th style="background:none;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['open'];?>
</th>
        <td><input type="checkbox"  name="is_open" id="is_open"  
                   <?php if ($_smarty_tpl->tpl_vars['gui']->value->is_open == 1) {?> checked <?php }?> 
                   onclick="showOrHideElement('closure_date',this.checked)"/>
            <span id="closure_date" style="display:none;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['closed_on_date'];?>
: <?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['localize_date'][0], array( array('d'=>$_smarty_tpl->tpl_vars['gui']->value->closed_on_date),$_smarty_tpl ) );?>
</span>
            <input type="hidden" name="closed_on_date" value=<?php echo $_smarty_tpl->tpl_vars['gui']->value->closed_on_date;?>
>
        </td>
    </tr>

    <tr>
        <th style="background:none;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['release_date'];?>
</th>
        <td>
                <input type="text" 
                       name="release_date" id="release_date" 
               value="<?php echo $_smarty_tpl->tpl_vars['gui']->value->release_date;?>
" />
        <img title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['show_calender'];?>
" src="<?php echo @constant('TL_THEME_IMG_DIR');?>
/calendar.gif"
             onclick="showCal('release_date-cal','release_date','<?php echo $_smarty_tpl->tpl_vars['gsmarty_datepicker_format']->value;?>
');" >
        <img title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['clear_date'];?>
" src="<?php echo @constant('TL_THEME_IMG_DIR');?>
/trash.png"
               onclick="javascript:var x = document.getElementById('release_date'); x.value = '';" >
        <div id="release_date-cal" style="position:absolute;width:240px;left:300px;z-index:1;"></div>
        </td>
    </tr>

    <tr>
      <th style="background:none;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['commit_id'];?>
</th>
      <td><input type="text" name="commit_id" id="commit_id" 
                 maxlength="64" 
                 value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->commit_id, ENT_QUOTES, 'UTF-8', true);?>
" size="64"/>
      </td>
    </tr>

    <tr>
      <th style="background:none;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['tag'];?>
</th>
      <td><input type="text" name="tag" id="tag" 
                 maxlength="64" 
                 value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->tag, ENT_QUOTES, 'UTF-8', true);?>
" size="64"/>
      </td>
    </tr>

    <tr>
      <th style="background:none;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['branch'];?>
</th>
      <td><input type="text" name="branch" id="branch" 
                 maxlength="64" 
                 value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->branch, ENT_QUOTES, 'UTF-8', true);?>
" size="64"/>
      </td>
    </tr>

    <tr>
      <th style="background:none;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['release_candidate'];?>
</th>
      <td><input type="text" 
             name="release_candidate" id="release_candidate" 
             maxlength="100" 
             value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->release_candidate, ENT_QUOTES, 'UTF-8', true);?>
" size="100"/>
      </td>
    </tr>

    <?php if (!$_smarty_tpl->tpl_vars['gui']->value->build_id && $_smarty_tpl->tpl_vars['gui']->value->source_build['build_count']) {?>
    <tr>
      <th style="background:none;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['copy_tester_assignments'];?>
</th>
      <td>
        <input type="checkbox"  name="copy_tester_assignments" id="copy_tester_assignments"
               <?php if ($_smarty_tpl->tpl_vars['gui']->value->copy_tester_assignments) {?> checked <?php }?> 
               onclick="showOrHideElement('source_build_selection',!this.checked);
                        showOrHideElement('exec_status',!this.checked)"
        />       
      </td>
    </tr>
  
    <tr id="source_build_selection" 
        <?php if (!$_smarty_tpl->tpl_vars['gui']->value->copy_tester_assignments) {?> style="display:none;" <?php }?> >
      <th style="background:none;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['assignment_source_build'];?>
</th>
      <td>
          <select name="source_build_id">
          <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['gui']->value->source_build['items'],'selected'=>$_smarty_tpl->tpl_vars['gui']->value->source_build['selected']),$_smarty_tpl);?>

          </select>
      </td>
    </tr>

    <tr id="exec_status" 
        <?php if (!$_smarty_tpl->tpl_vars['gui']->value->copy_tester_assignments) {?> style="display:none;" <?php }?> >
      <th style="background:none;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['with_exec_status'];?>
</th>
      <td>
          <select name="exec_status_filter[]" id="exec_status_filter" 
                  multiple="multiple">
          <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['gui']->value->exec_status_filter['items'],'selected'=>$_smarty_tpl->tpl_vars['gui']->value->exec_status_filter['selected']),$_smarty_tpl);?>

          </select>
      </td>
    </tr>
  
  <?php }?>
    
  </table>
  <p><?php echo $_smarty_tpl->tpl_vars['labels']->value['builds_description'];?>
</p>
  <div class="groupBtn">  

    <input type="hidden" name="do_action" value="<?php echo $_smarty_tpl->tpl_vars['gui']->value->buttonCfg->name;?>
" />
    <input type="hidden" name="build_id" value="<?php echo $_smarty_tpl->tpl_vars['gui']->value->build_id;?>
" />
    
    <input type="submit" name="<?php echo $_smarty_tpl->tpl_vars['gui']->value->buttonCfg->name;?>
" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->buttonCfg->value, ENT_QUOTES, 'UTF-8', true);?>
"
           onclick="do_action.value='<?php echo $_smarty_tpl->tpl_vars['gui']->value->buttonCfg->name;?>
'"/>
    <input type="button" name="go_back" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['cancel'];?>
" 
           onclick="javascript: location.href=fRoot+'<?php echo $_smarty_tpl->tpl_vars['cancelAction']->value;?>
';"/>

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