forked from FreePBX-ContributedModules/endpointman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.epm_advanced.php
46 lines (43 loc) · 1.56 KB
/
page.epm_advanced.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?PHP
/**
* Endpoint Manager FreePBX File
*
* @author Javier Pastor
* @license MPL / GPLv2 / LGPL
* @package Endpoint Manager
*/
$epm = FreePBX::create()->Endpointman;
if ((! isset($_REQUEST['subpage'])) || ($_REQUEST['subpage'] == "")) {
$_REQUEST['subpage'] = "settings";
}
?>
<div class="container-fluid" id="epm_advanced">
<h1><?php echo _("End Point Configuraction Manager")?></h1>
<h2><?php echo _("Advanced Settings")?></h2>
<div class="row">
<div class="col-sm-12">
<div class="fpbx-container">
<div class="display no-border">
<div class="nav-container">
<div class="scroller scroller-left"><i class="glyphicon glyphicon-chevron-left"></i></div>
<div class="scroller scroller-right"><i class="glyphicon glyphicon-chevron-right"></i></div>
<div class="wrapper">
<ul class="nav nav-tabs list" role="tablist" id="list-tabs-epm_advanced">
<?php foreach($epm->myShowPage() as $key => $page) { ?>
<li data-name="<?php echo $key?>" class="change-tab <?php echo $key == $_REQUEST['subpage'] ? 'active' : ''?>"><a href="#<?php echo $key?>" aria-controls="<?php echo $key?>" role="tab" data-toggle="tab"><?php echo $page['name']?></a></li>
<?php } ?>
</ul>
</div>
</div>
<div class="tab-content display">
<?php foreach($epm->myShowPage() as $key => $page) { ?>
<div id="<?php echo $key?>" class="tab-pane <?php echo $key == $_REQUEST['subpage'] ? 'active' : ''?>">
<?php echo $page['content']?>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>