| 1 |
<?php /* $Id: page.printextensions.php 1197 2006-04-26 21:12 KerryG $ */ |
|---|
| 2 |
//Copyright (C) 2006 Kerry Garrison (kgarrison at servicepointe dot net) |
|---|
| 3 |
// |
|---|
| 4 |
//This program is free software; you can redistribute it and/or |
|---|
| 5 |
//modify it under the terms of the GNU General Public License |
|---|
| 6 |
//as published by the Free Software Foundation; either version 2 |
|---|
| 7 |
//of the License, or (at your option) any later version. |
|---|
| 8 |
// |
|---|
| 9 |
//This program is distributed in the hope that it will be useful, |
|---|
| 10 |
//but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 |
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 12 |
//GNU General Public License for more details. |
|---|
| 13 |
|
|---|
| 14 |
$dispnum = 'printextensions'; //used for switch on config.php |
|---|
| 15 |
|
|---|
| 16 |
//isset($_REQUEST['action'])?$action = $_REQUEST['action']:$action=''; |
|---|
| 17 |
|
|---|
| 18 |
?> |
|---|
| 19 |
</div> |
|---|
| 20 |
|
|---|
| 21 |
<?php |
|---|
| 22 |
$gresults = printextensions_allusers(); |
|---|
| 23 |
?> |
|---|
| 24 |
|
|---|
| 25 |
<div class="content"> |
|---|
| 26 |
<?php |
|---|
| 27 |
if (isset($_REQUEST['quietmode'])) { |
|---|
| 28 |
?> |
|---|
| 29 |
<head> |
|---|
| 30 |
<title>freePBX administration</title> |
|---|
| 31 |
<meta http-equiv="Content-Type" content="text/html"> |
|---|
| 32 |
<link href="common/mainstyle.css" rel="stylesheet" type="text/css"> |
|---|
| 33 |
|
|---|
| 34 |
<script type="text/javascript" src="common/script.js.php"></script> |
|---|
| 35 |
<script type="text/javascript"> |
|---|
| 36 |
<!-- |
|---|
| 37 |
// Disable browser's Back button on another pg being able to go back to this pg. |
|---|
| 38 |
history.forward(); |
|---|
| 39 |
//--> |
|---|
| 40 |
</script> |
|---|
| 41 |
<!--[if IE]> |
|---|
| 42 |
<style type="text/css">div.inyourface a{position:absolute;}</style> |
|---|
| 43 |
<![endif]--> |
|---|
| 44 |
</head> |
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 |
<body onload="setAllInfoToHideSelects();"> |
|---|
| 48 |
|
|---|
| 49 |
<?php |
|---|
| 50 |
} else { |
|---|
| 51 |
?> |
|---|
| 52 |
<a href="config.php?type=tool&display=printextensions&quietmode=on">Printer Friendly</a> |
|---|
| 53 |
<?php |
|---|
| 54 |
} |
|---|
| 55 |
?> |
|---|
| 56 |
|
|---|
| 57 |
|
|---|
| 58 |
<?php |
|---|
| 59 |
|
|---|
| 60 |
if (!$extdisplay) { |
|---|
| 61 |
echo '<br><h2>'._("Company Directory").'</h2><table border=0 width=400>'; |
|---|
| 62 |
echo "<tr width=250><td><b>Name</b></td><td width=50 align=right><b>Extension</b></td><td width=100 align=right><b>Assigned |
|---|
| 63 |
DID</b></td></tr>"; |
|---|
| 64 |
echo "<tr><td colspan=3><hr noshade></td></tr>"; |
|---|
| 65 |
|
|---|
| 66 |
} |
|---|
| 67 |
|
|---|
| 68 |
if (isset($gresults)) { |
|---|
| 69 |
foreach ($gresults as $gresult) { |
|---|
| 70 |
echo "<tr width=250><td>$gresult[1]</td><td width=50 align=right>$gresult[0]</td><td width=100 |
|---|
| 71 |
align=right>$gresult[2]</td></tr>"; |
|---|
| 72 |
} |
|---|
| 73 |
} |
|---|
| 74 |
?> |
|---|
| 75 |
</table> |
|---|
| 76 |
</div> |
|---|