Example #1
0
<?php

/* $Id: page.extensions.php 7630 2009-05-03 08:37:52Z mickecarlsson $ */
//This file is part of FreePBX.
//
//    FreePBX is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 2 of the License, or
//    (at your option) any later version.
//
//    FreePBX is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with FreePBX.  If not, see <http://www.gnu.org/licenses/>.
//    Copyright (C) 2004 Coalescent Systems Inc. (info@coalescentsystems.ca)
//
?>

<div class="rnav">
<?php 
$extens = core_users_list();
$description = _("Extension");
drawListMenu($extens, $skip, $type, $display, $extdisplay, $description);
?>
	<br />
</div>
Example #2
0
        redirect_standard();
        break;
    case "edit":
        inventorydb_edit($extdisplay, $empnum, $empname, $building, $floor, $room, $section, $cubicle, $desk, $exten, $phusername, $phpassword, $mac, $serial, $device, $distdate, $ip, $pbxbox, $extrainfo);
        //needreload();
        redirect_standard('extdisplay');
        break;
}
?>
</div>
<div class="rnav">
<?php 
// Dirty fix for localization
_("Add");
$inventorys = inventorydb_list();
drawListMenu($inventorys, $skip, $type, $dispnum, $extdisplay, _("inventory"));
?>
</div>


<div class="content">
<?php 
if ($action == 'del') {
    echo "<br><h3>ID " . $extdisplay . " " . _("deleted") . "!</h3><br><Br><br><br><br><br><br>";
} else {
    if (!isset($extdisplay)) {
        echo "<h2>" . _("Add a user") . "</h2>";
        //	echo "<li><a href=\"".$_SERVER['PHP_SELF']."?$action=add\";>Add</a><br>";
    } else {
        $delURL = $_SERVER['PHP_SELF'] . "?" . $_SERVER['QUERY_STRING'] . "&action=del&extdisplay={$extdisplay}";
        //If we have some data, load it up... this means we are editing.
Example #3
0
        customerdb_del($extdisplay);
        //needreload();
        redirect_standard();
        break;
    case "edit":
        customerdb_edit($extdisplay, $name, $addr1, $addr2, $city, $state, $zip, $sip, $did, $device, $ip, $serial, $account, $email, $username, $password);
        //needreload();
        redirect_standard('extdisplay');
        break;
}
?>
</div>
<div class="rnav">
<?php 
$customers = customerdb_list();
drawListMenu($customers, $skip, $type, $dispnum, $extdisplay, _("Customer"));
?>
</div>


<div class="content">
<?php 
if ($action == 'del') {
    echo "<br><h3>ID " . $extdisplay . " " . _("deleted") . "!</h3><br><Br><br><br><br><br><br>";
} else {
    if (!isset($extdisplay)) {
        echo "<h2>" . _("Add a user") . "</h2>";
        //	echo "<li><a href=\"".$_SERVER['PHP_SELF']."?$action=add\";>Add</a><br>";
    } else {
        $delURL = $_SERVER['PHP_SELF'] . "?" . $_SERVER['QUERY_STRING'] . "&action=del&extdisplay={$extdisplay}";
        //If we have some data, load it up... this means we are editing.
<?php

/* $Id: page.customcontextsadmin.php $ */
if (!defined('FREEPBX_IS_AUTH')) {
    die('No direct script access allowed');
}
//
//This program is free software; you can redistribute it and/or
//modify it under the terms of the GNU General Public License
//as published by the Free Software Foundation; either version 2
//of the License, or (at your option) any later version.
//
//This program is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//GNU General Public License for more details.
$dispnum = 'customcontextsadmin';
//used for switch on config.php
//isset($_REQUEST['action'])?$action = $_REQUEST['action']:$action='';
?>

<div class="rnav">
<?php 
$contexts = customcontexts_getcontextslist();
drawListMenu($contexts, $skip, $type, $display, $extdisplay, _("Context"));
?>
</div>



Example #5
0
<?php

/* $Id$ */
if (!defined('FREEPBX_IS_AUTH')) {
    die('No direct script access allowed');
}
?>

<div class="rnav">
<?php 
// Eventually I recon the drawListMenu could be built into the new component class thus making
// the relevent page.php file unnessassary
$extens = core_users_list();
drawListMenu($extens, $skip, $type, $display, $extdisplay, _("User"));
?>
</div>

<?php 
// Javascript functions could be put into the configpageinit function but I personally prefer
// to code JavaScript in a web page //
?>

<script language="javascript">
<!--

function checkBlankUserPwd() {
	msgConfirmBlankUserPwd = "<?php 
echo _('You have not entered a User Password.  While this is acceptable, this user will not be able to login to an AdHoc device.\\n\\nAre you sure you wish to leave the User Password empty?');
?>
";
Example #6
0
//as published by the Free Software Foundation; either version 2
//of the License, or (at your option) any later version.
//
//This program is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//GNU General Public License for more details.
$dispnum = 'timegroups';
//used for switch on config.php
?>


<div class="rnav">
<?php 
$groups = timeconditions_timegroups_list_groups();
drawListMenu($groups, $skip, $type, $display, $extdisplay, _("Time Group"));
?>
</div>

<div class="rnav" style="margin:15px 10px; padding: 5px; background: #e0e0ff; border: #2E78A7 solid 1px;">
	<?php 
echo _("Server time:");
?>
 <span id="idTime">00:00:00</span>
</div>

<script>
var hour = <?php 
$l = localtime();
echo $l[2];
?>
Example #7
0
        break;
    case "del":
        customerdb_del($extdisplay);
        //needreload();
        break;
    case "edit":
        customerdb_edit($extdisplay, $name, $addr1, $addr2, $city, $state, $zip, $sip, $did, $device, $ip, $serial, $account, $email, $username, $password);
        //needreload();
        break;
}
?>
</div>
<div class="rnav">
<?php 
$customers = customerdb_list();
drawListMenu($customers, isset($_REQUEST['skip']) ? $_REQUEST['skip'] : 0, $dispnum, isset($extdisplay) ? $extdisplay : null, _("Customer"), tools);
?>
</div>


<div class="content">
<?php 
if ($action == 'del') {
    echo "<br><h3>ID " . $extdisplay . " " . _("deleted") . "!</h3><br>";
} else {
    if (!isset($extdisplay)) {
        echo "<h3>Add a user</h3>";
        //	echo "<li><a href=\"".$_SERVER['PHP_SELF']."?$action=add\";>Add</a><br>";
    } else {
        $delURL = $_SERVER['PHP_SELF'] . "?" . $_SERVER['QUERY_STRING'] . "&action=del&extdisplay={$extdisplay}";
        //If we have some data, load it up... this means we are editing.