PHP Classes

File: SmallServerAdmin/Controls/Accordion.html.php

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

Contents

Class file image Download
<div class="panel-group" id="<?=$this->ID?>" role="tablist" aria-multiselectable="true">
  <?php
 
foreach ($this->Items as $item)
  {
 
?>
<div class="panel panel-default">
    <div class="panel-heading" role="tab" id="<?=sprintf('heading_%s_%s', $this->ID, $item->Key)?>">
      <h4 class="panel-title">
        <a role="button" data-toggle="collapse" data-parent="#<?=$this->ID?>" href="#<?=sprintf('%s_%s', $this->ID, $item->Key)?>" aria-expanded="true" aria-controls="<?=sprintf('%s_%s', $this->ID, $item->Key)?>">
          <?=$item->Title?>
</a>
      </h4>
    </div>
    <div id="<?=sprintf('%s_%s', $this->ID, $item->Key)?>" class="panel-collapse collapse" role="tabpanel" aria-labelledby="<?=sprintf('heading_%s_%s', $this->ID, $item->Key)?>">
      <div class="panel-body">
        <?=$item->Content?>
</div>
    </div>
  </div>
  <?php } ?>
</div>