<?php
/* Smarty version 3.1.33, created on 2021-11-04 17:22:03
  from '/opt/lampp/htdocs/testlink/gui/templates/project/projectView.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_618408ab5f4be0_73410670',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '84f465f95c8ee0a208fbf2ffb90aaaf38edbdebe' => 
    array (
      0 => '/opt/lampp/htdocs/testlink/gui/templates/project/projectView.tpl',
      1 => 1636032772,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:inc_head.tpl' => 1,
    'file:inc_del_onclick.tpl' => 1,
    'file:DataTables.inc.tpl' => 1,
  ),
),false)) {
function content_618408ab5f4be0_73410670 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/opt/lampp/htdocs/testlink/vendor/smarty/smarty/libs/plugins/modifier.replace.php','function'=>'smarty_modifier_replace',),));
?>

<?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('managerURL', "lib/project/projectEdit.php");
$_smarty_tpl->_assignInScope('deleteAction', ((string)$_smarty_tpl->tpl_vars['managerURL']->value)."?doAction=doDelete&tprojectID=");
$_smarty_tpl->_assignInScope('editAction', ((string)$_smarty_tpl->tpl_vars['managerURL']->value)."?doAction=edit&amp;tprojectID=");
$_smarty_tpl->_assignInScope('createAction', ((string)$_smarty_tpl->tpl_vars['managerURL']->value)."?doAction=create");
$_smarty_tpl->_assignInScope('searchAction', "lib/project/projectView.php?doAction=search");?>


<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('s'=>'popup_product_delete','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_testproject_management,testproject_txt_empty_list,tcase_id_prefix,
          th_name,th_notes,testproject_alt_edit,testproject_alt_active,btn_search_filter,
          th_requirement_feature,testproject_alt_delete,btn_create,public,hint_like_search_on_name,
          testproject_alt_requirement_feature,th_active,th_delete,th_id,btn_reset_filter,
          th_issuetracker,th_codetracker,th_reqmgrsystem_short,active_click_to_change,inactive_click_to_change,
          click_to_enable,click_to_disable'),$_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",'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'; ?>
>

<?php if ($_smarty_tpl->tpl_vars['tlCfg']->value->gui->projectView->pagination->enabled) {?>
  <?php $_smarty_tpl->_assignInScope('ll', $_smarty_tpl->tpl_vars['tlCfg']->value->gui->projectView->pagination->length);?>
  <?php $_smarty_tpl->_subTemplateRender("file:DataTables.inc.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('DataTablesOID'=>"item_view",'DataTableslengthMenu'=>$_smarty_tpl->tpl_vars['ll']->value), 0, false);
}?>

</head>

<body <?php echo $_smarty_tpl->tpl_vars['body_onload']->value;?>
>

<h1 class="title"><?php echo $_smarty_tpl->tpl_vars['gui']->value->pageTitle;?>
</h1>
<div class="workBack">

<div class="groupBtn">
  <form method="post" action="<?php echo $_smarty_tpl->tpl_vars['searchAction']->value;?>
" style="display:inline;">
    <input type="text" id="name" name="name" value="<?php echo $_smarty_tpl->tpl_vars['gui']->value->name;?>
"  
           size="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'TESTPROJECT_NAME_SIZE');?>
" maxlength="<?php echo $_smarty_tpl->smarty->ext->configLoad->_getConfigVariable($_smarty_tpl, 'TESTPROJECT_NAME_MAXLEN');?>
"
           placeholder="<?php echo $_smarty_tpl->tpl_vars['labels']->value['hint_like_search_on_name'];?>
" required/>
    <input type="submit" id="search" name="search" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_search_filter'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['hint_like_search_on_name'];?>
" />
  </form>
  <form method="post" action="<?php echo $_smarty_tpl->tpl_vars['searchAction']->value;?>
" style="display:inline;">
    <input type="submit" name="resetFilter" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_reset_filter'];?>
" />
  </form>
  &nbsp;&nbsp;&nbsp;
  <?php if ($_smarty_tpl->tpl_vars['gui']->value->canManage) {?>
  <form method="post" action="<?php echo $_smarty_tpl->tpl_vars['createAction']->value;?>
" style="display:inline;">
    <input type="submit" id="create" name="create" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_create'];?>
" />
  </form>
  <?php }?>
</div>
<p>

<div id="testproject_management_list">
<?php if ($_smarty_tpl->tpl_vars['gui']->value->tprojects == '') {?>
  <?php if ($_smarty_tpl->tpl_vars['gui']->value->feedback != '') {?>
    <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->feedback, ENT_QUOTES, 'UTF-8', true);?>

  <?php } else { ?>
    <?php echo $_smarty_tpl->tpl_vars['labels']->value['testproject_txt_empty_list'];?>

  <?php }
} else { ?>
  <form method="post" id="testProjectView" name="testProjectView" action="<?php echo $_smarty_tpl->tpl_vars['managerURL']->value;?>
">
    <input type="hidden" name="doAction" id="doAction" value="">
    <input type="hidden" name="tprojectID" id="tprojectID" value="">

  <table id="item_view" class="simple_tableruler sortable">
    <tr>
      <th><?php echo $_smarty_tpl->tpl_vars['tlImages']->value['toggle_api_info'];?>

      <?php echo $_smarty_tpl->tpl_vars['tlImages']->value['sort_hint'];
echo $_smarty_tpl->tpl_vars['labels']->value['th_name'];?>
</th>
      <th class="<?php echo $_smarty_tpl->tpl_vars['noSortableColumnClass']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_notes'];?>
</th>
      <th><?php echo $_smarty_tpl->tpl_vars['tlImages']->value['sort_hint'];
echo $_smarty_tpl->tpl_vars['labels']->value['tcase_id_prefix'];?>
</th>
      <th><?php echo $_smarty_tpl->tpl_vars['tlImages']->value['sort_hint'];
echo $_smarty_tpl->tpl_vars['labels']->value['th_issuetracker'];?>
</th>
      <th><?php echo $_smarty_tpl->tpl_vars['tlImages']->value['sort_hint'];
echo $_smarty_tpl->tpl_vars['labels']->value['th_codetracker'];?>
</th>
      <th claiss="<?php echo $_smarty_tpl->tpl_vars['noSortableColumnClass']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_requirement_feature'];?>
</th>
      <th class="icon_cell"><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_active'];?>
</th>
      <th class="icon_cell"><?php echo $_smarty_tpl->tpl_vars['labels']->value['public'];?>
</th>
      <?php if ($_smarty_tpl->tpl_vars['gui']->value->canManage == "yes") {?>
      <th class="icon_cell"><?php echo $_smarty_tpl->tpl_vars['labels']->value['th_delete'];?>
</th>
      <?php }?>
    </tr>
    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->tprojects, 'testproject');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['testproject']->value) {
?>
    <tr>
      <td>    <a href="<?php echo $_smarty_tpl->tpl_vars['editAction']->value;
echo $_smarty_tpl->tpl_vars['testproject']->value['id'];?>
">
             <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['testproject']->value['name'], ENT_QUOTES, 'UTF-8', true);?>

             <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['testproject']->value['id']);?>
</span>
             <?php if ($_smarty_tpl->tpl_vars['gsmarty_gui']->value->show_icon_edit) {?>
                  <img title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['testproject_alt_edit'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['labels']->value['testproject_alt_edit'];?>
"
                       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['testproject']->value['notes']);
} else {
echo $_smarty_tpl->tpl_vars['testproject']->value['notes'];
}?></td>
      </td>
      <td width="7%">
        <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['testproject']->value['prefix'], ENT_QUOTES, 'UTF-8', true);?>

      </td>
      
      <td width="7%">
        <?php echo $_smarty_tpl->tpl_vars['testproject']->value['itstatusImg'];?>
 &nbsp; <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['testproject']->value['itname'], ENT_QUOTES, 'UTF-8', true);?>
 
      </td>
      <td width="7%">
        <?php echo $_smarty_tpl->tpl_vars['testproject']->value['ctstatusImg'];?>
 &nbsp; <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['testproject']->value['ctname'], ENT_QUOTES, 'UTF-8', true);?>
 
      </td>
            <td class="clickable_icon">
        <?php if ($_smarty_tpl->tpl_vars['testproject']->value['opt']->requirementsEnabled) {?>
            <input type="image" style="border:none" 
                   title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['click_to_disable'];?>
"  alt="<?php echo $_smarty_tpl->tpl_vars['labels']->value['click_to_disable'];?>
" 
                   onClick = "doAction.value='disableRequirements';tprojectID.value=<?php echo $_smarty_tpl->tpl_vars['testproject']->value['id'];?>
;"
                   src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['on'];?>
"/>
          <?php } else { ?>
            <input type="image" style="border:none" 
                   title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['click_to_enable'];?>
"  alt="<?php echo $_smarty_tpl->tpl_vars['labels']->value['click_to_enable'];?>
" 
                   onClick = "doAction.value='enableRequirements';tprojectID.value=<?php echo $_smarty_tpl->tpl_vars['testproject']->value['id'];?>
;"
                   src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['off'];?>
"/>
          <?php }?>
      </td>
      <td class="clickable_icon">
        <?php if ($_smarty_tpl->tpl_vars['testproject']->value['active']) {?>
            <input type="image" style="border:none" 
                   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 = "doAction.value='setInactive';tprojectID.value=<?php echo $_smarty_tpl->tpl_vars['testproject']->value['id'];?>
;"
                   src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['on'];?>
"/>
          <?php } else { ?>
            <input type="image" style="border:none" 
                   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 = "doAction.value='setActive';tprojectID.value=<?php echo $_smarty_tpl->tpl_vars['testproject']->value['id'];?>
;"
                   src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['off'];?>
"/>
          <?php }?>
      </td>
      <td class="clickable_icon">
        <?php if ($_smarty_tpl->tpl_vars['testproject']->value['is_public']) {?>
            <img style="border:none"  title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['public'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['labels']->value['public'];?>
" src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['choiceOn'];?>
" />
          <?php } else { ?>
            &nbsp;
          <?php }?>
      </td>
      <?php if ($_smarty_tpl->tpl_vars['gui']->value->canManage == "yes") {?>
      <td class="clickable_icon">
          <img style="border:none;cursor: pointer;"  alt="<?php echo $_smarty_tpl->tpl_vars['labels']->value['testproject_alt_delete'];?>
"
               title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['testproject_alt_delete'];?>
"
               onclick="delete_confirmation(<?php echo $_smarty_tpl->tpl_vars['testproject']->value['id'];?>
,'<?php echo htmlspecialchars(strtr($_smarty_tpl->tpl_vars['testproject']->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>
      <?php }?>
    </tr>
    <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>

  </table>
  </form>
<?php }?>
</div>

</div>

<?php if ($_smarty_tpl->tpl_vars['gui']->value->doAction == "reloadAll") {?>
  <?php echo '<script'; ?>
 type="text/javascript">
  top.location = top.location;
  <?php echo '</script'; ?>
>
<?php } else { ?>
  <?php if ($_smarty_tpl->tpl_vars['gui']->value->doAction == "reloadNavBar") {?>
  <?php echo '<script'; ?>
 type="text/javascript">
  // remove query string to avoid reload of home page,
  // instead of reload only navbar
  var href_pieces=parent.titlebar.location.href.split('?');
  parent.titlebar.location=href_pieces[0];
  <?php echo '</script'; ?>
>
  <?php }
}?>

</body>
</html>
<?php }
}
