<?php
/* Smarty version 3.1.33, created on 2021-11-19 17:14:45
  from '/opt/lampp/htdocs/testlink/gui/templates/plan/planView.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_6197cd75a6abc0_90837715',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '17eff0ff4901220273c763f9a9bc279103f416a2' => 
    array (
      0 => '/opt/lampp/htdocs/testlink/gui/templates/plan/planView.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_6197cd75a6abc0_90837715 (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',),));
$_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 echo call_user_func_array( $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['lang_get'][0], array( array('var'=>"labels",'s'=>'testplan_title_tp_management,testplan_txt_empty_list,sort_table_by_column,
          testplan_th_name,testplan_th_notes,testplan_th_active,testplan_th_delete,
          testplan_alt_edit_tp,alt_active_testplan,testplan_alt_delete_tp,public,
          btn_testplan_create,th_id,error_no_testprojects_present,btn_export_import,
          export_import,export,import,export_testplan_links,import_testplan_links,build_qty,
          testcase_qty,platform_qty,active_click_to_change,inactive_click_to_change,
          testcase_number_help,platform_number_help,build_number_help,assign_roles,execution'),$_smarty_tpl ) );?>



<?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);
}?>


</head>

<body <?php echo $_smarty_tpl->tpl_vars['body_onload']->value;?>
>

<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="workBack">
<?php if ($_smarty_tpl->tpl_vars['gui']->value->grants->testplan_create && $_smarty_tpl->tpl_vars['gui']->value->tproject_id > 0 && count($_smarty_tpl->tpl_vars['gui']->value->tplans) > $_smarty_tpl->tpl_vars['tlCfg']->value->gui->planView->itemQtyForTopButton) {?>
   <div class="groupBtn">
     <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="simple_tableruler sortable">
    <thead>
    <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>
      <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">
        <?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">
        <?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 }
}
