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

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_68f1dd293c2039_36304462',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '03a4a645fed327d5f9fd9a90a0556c541a657d83' => 
    array (
      0 => 'C:\\php5.6\\htdocs\\testlink-1.9.20\\gui\\templates\\tl-classic\\plan\\planView.tpl',
      1 => 1579460696,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:plan/planView.labels.tpl' => 1,
    'file:inc_head.tpl' => 1,
    'file:inc_del_onclick.tpl' => 1,
    'file:DataTables.inc.tpl' => 1,
    'file:bootstrap.inc.tpl' => 1,
  ),
),false)) {
function content_68f1dd293c2039_36304462 (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',),));
?>

<?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/plan/planEdit.php");
$_smarty_tpl->_assignInScope('editAction', ((string)$_smarty_tpl->tpl_vars['managerURL']->value)."?do_action=edit&amp;tplan_id=");
$_smarty_tpl->_assignInScope('deleteAction', ((string)$_smarty_tpl->tpl_vars['managerURL']->value)."?do_action=do_delete&tplan_id=");
$_smarty_tpl->_assignInScope('createAction', ((string)$_smarty_tpl->tpl_vars['managerURL']->value)."?do_action=create");
$_smarty_tpl->_assignInScope('exportAction', "lib/plan/planExport.php?tplan_id=");
$_smarty_tpl->_assignInScope('importAction', "lib/plan/planImport.php?tplan_id=");
$_smarty_tpl->_assignInScope('assignRolesAction', "lib/usermanagement/usersAssign.php?featureType=testplan&featureID=");
$_smarty_tpl->_assignInScope('gotoExecuteAction', "lib/general/frmWorkArea.php?feature=executeTest&tplan_id=");?>

<?php $_smarty_tpl->_subTemplateRender("file:plan/planView.labels.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

<?php echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('s'=>'warning_delete_testplan','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 $_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->planView->pagination->enabled) {?>
  <?php $_smarty_tpl->_assignInScope('ll', $_smarty_tpl->tpl_vars['tlCfg']->value->gui->planView->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);
}?>

<?php $_smarty_tpl->_subTemplateRender("file:bootstrap.inc.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>
</head>

<body <?php echo $_smarty_tpl->tpl_vars['body_onload']->value;?>
 class="testlink">

<h1 class="title"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['gui']->value->main_descr, ENT_QUOTES, 'UTF-8', true);?>
</h1>
<?php if ($_smarty_tpl->tpl_vars['gui']->value->user_feedback != '') {?>
  <div>
    <p class="info"><?php echo $_smarty_tpl->tpl_vars['gui']->value->user_feedback;?>
</p>
  </div>
<?php }?>

<div class="page-content">
<?php if ($_smarty_tpl->tpl_vars['gui']->value->grants->testplan_create && $_smarty_tpl->tpl_vars['gui']->value->tproject_id > 0 && is_array($_smarty_tpl->tpl_vars['gui']->value->tplans) && count($_smarty_tpl->tpl_vars['gui']->value->tplans) > $_smarty_tpl->tpl_vars['tlCfg']->value->gui->planView->itemQtyForTopButton) {?>
   <div class="page-content">
     <form method="post" action="<?php echo $_smarty_tpl->tpl_vars['createAction']->value;?>
" name="topCreateForm">
       <input type="submit" name="create_testplan_top" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_testplan_create'];?>
" />
     </form>
   </div>
<?php }?>

<div id="testplan_management_list">
<?php if ($_smarty_tpl->tpl_vars['gui']->value->tproject_id <= 0) {?>
  <?php echo $_smarty_tpl->tpl_vars['labels']->value['error_no_testprojects_present'];?>

<?php } elseif ($_smarty_tpl->tpl_vars['gui']->value->tplans == '') {?>
  <?php echo $_smarty_tpl->tpl_vars['labels']->value['testplan_txt_empty_list'];?>

<?php } else { ?>
  <form method="post" id="testPlanView" name="testPlanView" action="<?php echo $_smarty_tpl->tpl_vars['managerURL']->value;?>
">
    <input type="hidden" name="do_action" id="do_action" value="">
    <input type="hidden" name="tplan_id" id="tplan_id" value="">

  <table id='item_view' class="table table-bordered sortable">
    <thead class="thead-dark">
    <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['testplan_th_name'];?>
</th>       
      <th class="<?php echo $_smarty_tpl->tpl_vars['noSortableColumnClass']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['labels']->value['testplan_th_notes'];?>
</th>
      <th title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['testcase_number_help'];?>
"><?php echo $_smarty_tpl->tpl_vars['tlImages']->value['sort_hint'];
echo $_smarty_tpl->tpl_vars['labels']->value['testcase_qty'];?>
</th>
      <th title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['build_number_help'];?>
"><?php echo $_smarty_tpl->tpl_vars['tlImages']->value['sort_hint'];
echo $_smarty_tpl->tpl_vars['labels']->value['build_qty'];?>
</th>
      <?php if ($_smarty_tpl->tpl_vars['gui']->value->drawPlatformQtyColumn) {?>
        <th title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['platform_number_help'];?>
"><?php echo $_smarty_tpl->tpl_vars['tlImages']->value['sort_hint'];
echo $_smarty_tpl->tpl_vars['labels']->value['platform_qty'];?>
</th>
      <?php }?> 
      <th class="<?php echo $_smarty_tpl->tpl_vars['noSortableColumnClass']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['labels']->value['testplan_th_active'];?>
</th>
      <th class="<?php echo $_smarty_tpl->tpl_vars['noSortableColumnClass']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['labels']->value['public'];?>
</th>
      <th class="<?php echo $_smarty_tpl->tpl_vars['noSortableColumnClass']->value;?>
">&nbsp;</th>
    </tr>
    </thead>
    <tbody>
    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['gui']->value->tplans, 'testplan');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['testplan']->value) {
?>
    <tr data-qa-tplan-name="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['testplan']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
">
      <td><a href="<?php echo $_smarty_tpl->tpl_vars['editAction']->value;
echo $_smarty_tpl->tpl_vars['testplan']->value['id'];?>
"> 
             <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['testplan']->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['testplan']->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['testplan_alt_edit_tp'];?>
"  alt="<?php echo $_smarty_tpl->tpl_vars['labels']->value['testplan_alt_edit_tp'];?>
" 
                      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['testplan']->value['notes']);
} else {
echo $_smarty_tpl->tpl_vars['testplan']->value['notes'];
}?></td>
      <td align="right" style="width:8%;">
        <?php echo $_smarty_tpl->tpl_vars['testplan']->value['tcase_qty'];?>

      </td>
      <td align="right" style="width:6%;">
        <?php echo $_smarty_tpl->tpl_vars['testplan']->value['build_qty'];?>

      </td>
      <?php if ($_smarty_tpl->tpl_vars['gui']->value->drawPlatformQtyColumn) {?>
        <td align="right" style="width:10%;">
          <?php echo $_smarty_tpl->tpl_vars['testplan']->value['platform_qty'];?>

        </td>
      <?php }?> 

      <td class="clickable_icon" data-qa-active="<?php echo $_smarty_tpl->tpl_vars['testplan']->value['active'];?>
">
        <?php if ($_smarty_tpl->tpl_vars['testplan']->value['active'] == 1) {?> 
            <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 = "do_action.value='setInactive';tplan_id.value=<?php echo $_smarty_tpl->tpl_vars['testplan']->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 = "do_action.value='setActive';tplan_id.value=<?php echo $_smarty_tpl->tpl_vars['testplan']->value['id'];?>
;"
                 src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['off'];?>
"/>
          <?php }?>
      </td>
      <td class="clickable_icon" data-qa-is_public="<?php echo $_smarty_tpl->tpl_vars['testplan']->value['is_public'];?>
">
        <?php if ($_smarty_tpl->tpl_vars['testplan']->value['is_public'] == 1) {?> 
            <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['checked'];?>
"/>
          <?php } else { ?>
            &nbsp;        
          <?php }?>
      </td>
      <td style="width:8%;">
          <img style="border:none;cursor: pointer;" 
               alt="<?php echo $_smarty_tpl->tpl_vars['labels']->value['testplan_alt_delete_tp'];?>
"
             title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['testplan_alt_delete_tp'];?>
" 
             onclick="delete_confirmation(<?php echo $_smarty_tpl->tpl_vars['testplan']->value['id'];?>
,'<?php echo htmlspecialchars(strtr($_smarty_tpl->tpl_vars['testplan']->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'];?>
"/>
          <a href="<?php echo $_smarty_tpl->tpl_vars['exportAction']->value;
echo $_smarty_tpl->tpl_vars['testplan']->value['id'];?>
"> 
          <img style="border:none;cursor: pointer;" alt="<?php echo $_smarty_tpl->tpl_vars['labels']->value['export_testplan_links'];?>
" 
               title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['export_testplan_links'];?>
" src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['export'];?>
"/>
          </a>     
          <a href="<?php echo $_smarty_tpl->tpl_vars['importAction']->value;
echo $_smarty_tpl->tpl_vars['testplan']->value['id'];?>
"> 
          <img style="border:none;cursor: pointer;" alt="<?php echo $_smarty_tpl->tpl_vars['labels']->value['import_testplan_links'];?>
" 
               title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['import_testplan_links'];?>
"  src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['import'];?>
"/>
          </a>     

          <?php if ($_smarty_tpl->tpl_vars['testplan']->value['rights']['testplan_user_role_assignment']) {?>
            <a href="<?php echo $_smarty_tpl->tpl_vars['assignRolesAction']->value;
echo $_smarty_tpl->tpl_vars['testplan']->value['id'];?>
"> 
            <img style="border:none;cursor: pointer;" alt="<?php echo $_smarty_tpl->tpl_vars['labels']->value['assign_roles'];?>
" 
                 title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['assign_roles'];?>
"  src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['user'];?>
"/>
            </a>     
          <?php }?>
          <a href="<?php echo $_smarty_tpl->tpl_vars['gotoExecuteAction']->value;
echo $_smarty_tpl->tpl_vars['testplan']->value['id'];?>
"> 
          <img style="border:none;cursor: pointer;" alt="<?php echo $_smarty_tpl->tpl_vars['labels']->value['execution'];?>
" 
               title="<?php echo $_smarty_tpl->tpl_vars['labels']->value['execution'];?>
"  src="<?php echo $_smarty_tpl->tpl_vars['tlImages']->value['execution'];?>
"/>
          </a>     
      </td>
    </tr>
    <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
    </tbody>
  </table>
</form>

<?php }?>
</div>

 <?php if ($_smarty_tpl->tpl_vars['gui']->value->grants->testplan_create && $_smarty_tpl->tpl_vars['gui']->value->tproject_id > 0) {?>
 <div class="groupBtn">
    <form method="post" action="<?php echo $_smarty_tpl->tpl_vars['createAction']->value;?>
" name="bottomCreateForm">
      <input type="submit" name="create_testplan" value="<?php echo $_smarty_tpl->tpl_vars['labels']->value['btn_testplan_create'];?>
" />
    </form>
  </div>
 <?php }?>
</div>

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