PHP Classes
elePHPant
Icontem

File: SmallServerAdmin/Controls/TabControl.html.php

Recommend this page to a friend!
  Classes of Aleksey Nemiro  >  PHP Small Server Administrator  >  SmallServerAdmin/Controls/TabControl.html.php  >  Download  
File: SmallServerAdmin/Controls/TabControl.html.php
Role: Auxiliary script
Content type: text/plain
Description: TabControl
Class: PHP Small Server Administrator
Web panel for small Debian and Ubuntu servers
Author: By
Last change:
Date: 3 years ago
Size: 613 bytes
 

 

Contents

Class file image Download
<ul class="nav nav-tabs" role="tablist">
<?php
  $i
= 0;
  foreach (
$this->Items as $item)
  {
?>
<li class="<?=($i == 0 ? 'active' : '')?>"><a href="#<?=sprintf('%s_%s', $this->ID, $item->Key)?>" aria-controls="<?=sprintf('%s_%s', $this->ID, $item->Key)?>" role="tab" data-toggle="tab"><?=$item->Title?></a></li>
<?php
    $i
++;
  }
?>
</ul>

<div class="tab-content">
<?php
  $i
= 0;
  foreach (
$this->Items as $item)
  {
?>
<div role="tabpanel" class="<?=($i == 0 ? 'tab-pane active' : 'tab-pane')?>" id="<?=sprintf('%s_%s', $this->ID, $item->Key)?>"><?=$item->Content?></div>
<?php
    $i
++;
  }
?>
</div>