forked from FreePBX/pinsets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.pinsets.php
37 lines (35 loc) · 1.14 KB
/
page.pinsets.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
<?php /* $Id */
// License for all code of this FreePBX module can be found in the license file inside the module directory
// Copyright 2015 Sangoma Technologies.
//
if (!defined('FREEPBX_IS_AUTH')) { die('No direct script access allowed'); }
$helptext = _("PIN Sets are used to manage lists of PINs that can be used to access restricted features such as Outbound Routes. The PIN can also be added to the CDR record's 'accountcode' field.");
$heading = _("Pin Sets");
$request = $_REQUEST;
$request['view'] = !empty($request['view']) ? $request['view'] : '';
switch ($request['view']) {
case 'form':
$content = load_view(__DIR__.'/views/form.php', array('request' => $request));
break;
default:
$content = load_view(__DIR__.'/views/grid.php', array('request' => $request));
break;
}
?>
<div class="container-fluid">
<h1><?php echo $heading?></h1>
<div class="well well-info">
<?php echo $helptext?>
</div>
<div class = "display full-border">
<div class="row">
<div class="col-sm-12">
<div class="fpbx-container">
<div class="display full-border">
<?php echo $content ?>
</div>
</div>
</div>
</div>
</div>
</div>