<?php
/* Smarty version 3.1.33, created on 2025-10-17 07:44:24
  from 'C:\php5.6\htdocs\testlink-1.9.20\gui\templates\tl-classic\project\projectEdit.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_68f1d7b890be35_02870392',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '856769452d2f5197232bc8fdf5485a7cac77bb9b' => 
    array (
      0 => 'C:\\php5.6\\htdocs\\testlink-1.9.20\\gui\\templates\\tl-classic\\project\\projectEdit.tpl',
      1 => 1579460696,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:inc_head.tpl' => 1,
    'file:inc_del_onclick.tpl' => 1,
    'file:inc_jsPicker.tpl' => 1,
    'file:inc_update.tpl' => 1,
    'file:error_icon.tpl' => 2,
  ),
),false)) {
function content_68f1d7b890be35_02870392 (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',),));
$_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/project/projectEdit.php");
$_smarty_tpl->_assignInScope('editAction', ((string)$_smarty_tpl->tpl_vars['managerURL']->value)."?doAction=edit&tprojectID=");?>

<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('var'=>"labels",'s'=>'show_event_history,th_active,cancel,info_failed_loc_prod,invalid_query,
  create_from_existent_tproject,opt_no,caption_edit_tproject,caption_new_tproject,name,
  title_testproject_management,testproject_enable_priority, testproject_enable_automation,
  public,testproject_color,testproject_alt_color,testproject_enable_requirements,
  testproject_enable_inventory,testproject_features,testproject_description,
  testproject_prefix,availability,mandatory,warning,warning_empty_tcase_prefix,api_key,
  warning_empty_tproject_name,testproject_issue_tracker_integration,issue_tracker,
  testproject_code_tracker_integration,code_tracker,testproject_reqmgr_integration,reqmgrsystem,
  no_rms_defined,no_issuetracker_defined,no_codetracker_defined'),$_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['editorType']->value), 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 if ($_smarty_tpl->tpl_vars['gui_cfg']->value->testproject_coloring != 'none') {?>
  <?php $_smarty_tpl->_subTemplateRender("file:inc_jsPicker.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_tcase_prefix = "<?php echo strtr($_smarty_tpl->tpl_vars['labels']->value['warning_empty_tcase_prefix'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" ));?>
";
var warning_empty_tproject_name = "<?php echo strtr($_smarty_tpl->tpl_vars['labels']->value['warning_empty_tproject_name'], array("\\" => "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "</" => "<\/" ));?>
";

function validateForm(f)
{
  if (isWhitespace(f.tprojectName.value))
  {
     alert_message(alert_box_title,warning_empty_tproject_name);
     selectField(f, 'tprojectName');
     return false;
  }
  if (isWhitespace(f.tcasePrefix.value))
  {
     alert_message(alert_box_title,warning_empty_tcase_prefix);
     selectField(f, 'tcasePrefix');
     return false;
  }

  return true;
}

/**
 *
 *
 */
function manageTracker(selectOID,targetOID)
{
  var so;
  var to;

  to = document.getElementById(targetOID);
  if ( typeof(to) == 'undefined' || to == null) {
    return;
  }

  so = document.getElementById(selectOID);
  to.disabled = false;
  if (so.selectedIndex == 0){
    to.checked = false;
    to.disabled = true;
  }  

}

<?php echo '</script'; ?>
>
</head>

<body onload="manageTracker('issue_tracker_id','issue_tracker_enabled');
manageTracker('code_tracker_id','code_tracker_enabled');">
<h1 class="title">
  <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['main_descr']->value, ENT_QUOTES, 'UTF-8', true);?>
  <?php echo $_smarty_tpl->tpl_vars['tlCfg']->value->gui_title_separator_1;?>

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

  <?php if ($_smarty_tpl->tpl_vars['mgt_view_events']->value == "yes" && $_smarty_tpl->tpl_vars['gui']->value->tprojectID) {?>
    <img style="margin-left:5px;" class="clickable" src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['help'];?>
" 
           onclick="showEventHistoryFor('<?php echo $_smarty_tpl->tpl_vars['gui']->value->tprojectID;?>
','testprojects')" 
           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 }?>
</h1>

<?php if ($_smarty_tpl->tpl_vars['user_feedback']->value != '') {?>
  <?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['user_feedback']->value,'feedback_type'=>$_smarty_tpl->tpl_vars['feedback_type']->value), 0, false);
}?>

<div class="workBack">
  <?php if ($_smarty_tpl->tpl_vars['gui']->value->found == "yes") {?>
    <div style="width:80%; margin: auto;">
    <form name="edit_testproject" id="edit_testproject"
          method="post" action="<?php echo $_smarty_tpl->tpl_vars['managerURL']->value;?>
"
          onSubmit="javascript:return validateForm(this);">
    <table id="item_view" class="common" style="width:100%; padding:3px;">

      <?php if ($_smarty_tpl->tpl_vars['gui']->value->tprojectID == 0) {?>
        <?php if ($_smarty_tpl->tpl_vars['gui']->value->testprojects != '') {?>
       <tr>
         <td><?php echo $_smarty_tpl->tpl_vars['labels']->value['create_from_existent_tproject'];?>
</td>
         <td>
           <select name="copy_from_tproject_id">
           <option value="0"><?php echo $_smarty_tpl->tpl_vars['labels']->value['opt_no'];?>
</option>
           <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->testprojects, 'testproject');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['testproject']->value) {
?>
             <option value="<?php echo $_smarty_tpl->tpl_vars['testproject']->value['id'];?>
"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['testproject']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
</option>
           <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
           </select>
         </td>
       </tr>
       <?php }?>
      <?php }?>
      <tr>
        <td><?php echo $_smarty_tpl->tpl_vars['labels']->value['name'];?>
 *</td>
        <td><input type="text" name="tprojectName" size="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'TESTPROJECT_NAME_SIZE');?>
"
            value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->tprojectName, ENT_QUOTES, 'UTF-8', true);?>
" maxlength="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'TESTPROJECT_NAME_MAXLEN');?>
" required />
            <?php $_smarty_tpl->_subTemplateRender("file:error_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('field'=>"tprojectName"), 0, false);
?>
        </td>
      </tr>
      <tr>
        <td><?php echo $_smarty_tpl->tpl_vars['labels']->value['testproject_prefix'];?>
 *</td>
        <td><input type="text" name="tcasePrefix" size="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'TESTCASE_PREFIX_SIZE');?>
"
                   value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->tcasePrefix, ENT_QUOTES, 'UTF-8', true);?>
" maxlength="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'TESTCASE_PREFIX_MAXLEN');?>
" required />
            <?php $_smarty_tpl->_subTemplateRender("file:error_icon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('field'=>"tcasePrefix"), 0, true);
?>
        </td>
      </tr>
      <tr>
        <td><?php echo $_smarty_tpl->tpl_vars['labels']->value['testproject_description'];?>
</td>
        <td style="width:80%"><?php echo $_smarty_tpl->tpl_vars['notes']->value;?>
</td>
      </tr>
      <?php if ($_smarty_tpl->tpl_vars['gui_cfg']->value->testproject_coloring != 'none') {?>
      <tr>
        <th style="background:none;"><?php echo $_smarty_tpl->tpl_vars['labels']->value['testproject_color'];?>
</th>
        <td>
          <input type="text" name="color" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['color']->value, ENT_QUOTES, 'UTF-8', true);?>
" maxlength="12" />
                    <a href="javascript: TCP.popup(document.forms['edit_testproject'].elements['color'], '<?php echo $_smarty_tpl->tpl_vars['basehref']->value;?>
third_party/color_picker/picker.html');">
            <img width="15" height="13" border="0" alt="<?php echo $_smarty_tpl->tpl_vars['labels']->value['testproject_alt_color'];?>
"
            src="third_party/color_picker/img/sel.gif" />
          </a>
        </td>
      </tr>
      <?php }?>
      <tr>
        <td><?php echo $_smarty_tpl->tpl_vars['labels']->value['testproject_features'];?>
</td><td></td>
      </tr>
      <tr>
        <td></td><td>
            <input type="checkbox" name="optReq" 
                <?php if ($_smarty_tpl->tpl_vars['gui']->value->projectOptions->requirementsEnabled) {?> checked="checked"  <?php }?> />
          <?php echo $_smarty_tpl->tpl_vars['labels']->value['testproject_enable_requirements'];?>

        </td>
      </tr>
      <tr>
        <td></td><td>
          <input type="checkbox" name="optPriority" 
              <?php if ($_smarty_tpl->tpl_vars['gui']->value->projectOptions->testPriorityEnabled) {?> checked="checked"  <?php }?> />
          <?php echo $_smarty_tpl->tpl_vars['labels']->value['testproject_enable_priority'];?>

        </td>
      </tr>
      <tr>
        <td></td><td>
          <input type="checkbox" name="optAutomation" 
                <?php if ($_smarty_tpl->tpl_vars['gui']->value->projectOptions->automationEnabled) {?> checked="checked" <?php }?> />
          <?php echo $_smarty_tpl->tpl_vars['labels']->value['testproject_enable_automation'];?>

        </td>
      </tr>
      <tr>
        <td></td><td>
          <input type="checkbox" name="optInventory" 
                <?php if ($_smarty_tpl->tpl_vars['gui']->value->projectOptions->inventoryEnabled) {?> checked="checked" <?php }?> />
          <?php echo $_smarty_tpl->tpl_vars['labels']->value['testproject_enable_inventory'];?>

        </td>
      </tr>

      <tr>
        <td><?php echo $_smarty_tpl->tpl_vars['labels']->value['testproject_issue_tracker_integration'];?>
</td><td></td>
      </tr>
      <?php if ($_smarty_tpl->tpl_vars['gui']->value->issueTrackers == '') {?>
        <tr>
          <td></td>
          <td><?php echo $_smarty_tpl->tpl_vars['labels']->value['no_issuetracker_defined'];?>
</td>
        </tr>
      <?php } else { ?>
        <tr>
          <td></td>
          <td>
            <input type="checkbox" id="issue_tracker_enabled"
                   name="issue_tracker_enabled" <?php if ($_smarty_tpl->tpl_vars['gui']->value->issue_tracker_enabled == 1) {?> checked="checked" <?php }?> />
            <?php echo $_smarty_tpl->tpl_vars['labels']->value['th_active'];?>

          </td>
        </tr>
        <tr>
          <td></td>
          <td>
            <?php echo $_smarty_tpl->tpl_vars['labels']->value['issue_tracker'];?>

             <select name="issue_tracker_id" id="issue_tracker_id"
             onchange="manageTracker('issue_tracker_id','issue_tracker_enabled');">
             <option value="0">&nbsp;</option>
             <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->issueTrackers, 'issue_tracker');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['issue_tracker']->value) {
?>
               <option value="<?php echo $_smarty_tpl->tpl_vars['issue_tracker']->value['id'];?>
" 
                 <?php if ($_smarty_tpl->tpl_vars['issue_tracker']->value['id'] == $_smarty_tpl->tpl_vars['gui']->value->issue_tracker_id) {?> selected <?php }?> 
               >
               <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['issue_tracker']->value['verbose'], ENT_QUOTES, 'UTF-8', true);?>
</option>
             <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
             </select>
          </td>
        </tr>
      <?php }?>

      <tr>
        <td><?php echo $_smarty_tpl->tpl_vars['labels']->value['testproject_code_tracker_integration'];?>
</td><td></td>
      </tr>
      <?php if ($_smarty_tpl->tpl_vars['gui']->value->codeTrackers == '') {?>
        <tr>
          <td></td>
          <td><?php echo $_smarty_tpl->tpl_vars['labels']->value['no_codetracker_defined'];?>
</td>
        </tr>
      <?php } else { ?>
        <tr>
          <td></td>
          <td>
            <input type="checkbox" id="code_tracker_enabled"
                   name="code_tracker_enabled" <?php if ($_smarty_tpl->tpl_vars['gui']->value->code_tracker_enabled == 1) {?> checked="checked" <?php }?> />
            <?php echo $_smarty_tpl->tpl_vars['labels']->value['th_active'];?>

          </td>
        </tr>
        <tr>
          <td></td>
          <td>
            <?php echo $_smarty_tpl->tpl_vars['labels']->value['code_tracker'];?>

             <select name="code_tracker_id" id="code_tracker_id"
             onchange="manageTracker('code_tracker_id','code_tracker_enabled');">
             <option value="0">&nbsp;</option>
             <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->codeTrackers, 'code_tracker');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['code_tracker']->value) {
?>
               <option value="<?php echo $_smarty_tpl->tpl_vars['code_tracker']->value['id'];?>
" 
                 <?php if ($_smarty_tpl->tpl_vars['code_tracker']->value['id'] == $_smarty_tpl->tpl_vars['gui']->value->code_tracker_id) {?> selected <?php }?> 
               >
               <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['code_tracker']->value['verbose'], ENT_QUOTES, 'UTF-8', true);?>
</option>
             <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
             </select>
          </td>
        </tr>
      <?php }?>
         
      
      <tr>
        <td><?php echo $_smarty_tpl->tpl_vars['labels']->value['availability'];?>
</td><td></td>
      </tr>
      <tr>
        <td></td><td>
            <input type="checkbox" name="active" <?php if ($_smarty_tpl->tpl_vars['gui']->value->active == 1) {?> checked="checked" <?php }?> />
            <?php echo $_smarty_tpl->tpl_vars['labels']->value['th_active'];?>

          </td>
          </tr>

      <tr>
        <td></td><td>
            <input type="checkbox" name="is_public" <?php if ($_smarty_tpl->tpl_vars['gui']->value->is_public == 1) {?> checked="checked"  <?php }?> />
            <?php echo $_smarty_tpl->tpl_vars['labels']->value['public'];?>

          </td>
      </tr>
      
      <?php if ($_smarty_tpl->tpl_vars['gui']->value->api_key != '') {?>
      <tr>
        <td><?php echo $_smarty_tpl->tpl_vars['labels']->value['api_key'];?>
</td>
        <td><?php echo $_smarty_tpl->tpl_vars['gui']->value->api_key;?>
</td>
      </tr>
      <?php }?>



      <tr><td cols="2">
        <?php if ($_smarty_tpl->tpl_vars['gui']->value->canManage == "yes") {?>
        <div class="groupBtn">
          <input type="hidden" name="doAction" value="<?php echo $_smarty_tpl->tpl_vars['doActionValue']->value;?>
" />
          <input type="hidden" name="tprojectID" value="<?php echo $_smarty_tpl->tpl_vars['gui']->value->tprojectID;?>
" />
          <input type="submit" name="doActionButton" value="<?php echo $_smarty_tpl->tpl_vars['buttonValue']->value;?>
" />
          <input type="button" name="go_back" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['cancel'];?>
" 
                 onclick="javascript: location.href=fRoot+'lib/project/projectView.php';" />
        </div>
      <?php }?>
      </td></tr>

    </table>
    </form>
    <p>* <?php echo $_smarty_tpl->tpl_vars['labels']->value['mandatory'];?>
</p>
  </div>
  <?php } else { ?>
    <p class="info">
    <?php if ($_smarty_tpl->tpl_vars['gui']->value->tprojectName != '') {?>
      <?php echo $_smarty_tpl->tpl_vars['labels']->value['info_failed_loc_prod'];?>
 - <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->tprojectName, ENT_QUOTES, 'UTF-8', true);?>
!<br />
    <?php }?>
    <?php echo $_smarty_tpl->tpl_vars['labels']->value['invalid_query'];?>
: <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['sqlResult']->value, ENT_QUOTES, 'UTF-8', true);?>
</p>
  <?php }?>
</div>
</body>
</html>
<?php }
}
