root/modules/branches/2.3/printextensions/page.printextensions.php

Revision 4680, 1.8 kB (checked in by p_lindheimer, 6 years ago)

Fixed uninizialized variable errors - not publishing yet

  • Property svn:mime-type set to text/plain
  • Property svn:eol-style set to native
Line 
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 $gresults = printextensions_allusers();
20 ?>
21
22 <div class="content">
23 <?php
24 if (!$quietmode) {
25   echo "<a href=\"config.php?type=tool&display=printextensions&quietmode=on\" target=\"_blank\">Printer Friendly</a>\n";
26 }
27
28
29 if (!$extdisplay) {
30   echo '<br><h2>'._("Company Directory").'</h2><table border="0" width="500">';
31   echo "<tr width=250><td align=left><b>Name</b></td><td width=\"50\" align=\"center\"><b>Extension</b></td><td width=\"200\" align=\"center\"><b>Assigned DID</b></td></tr>";
32   echo "<tr><td colspan=\"3\"><hr noshade /></td></tr>";
33  
34 }
35
36 if (isset($gresults)) {
37     foreach ($gresults as $gresult) {
38       $defined = (isset($set_users) && is_array($set_users)) ? (in_array($gresult[0], $set_users) ? "(edit)" : "(add)") : "add";
39       echo "<tr width=\"250\"><td>".$gresult[1]."</td><td width=\"50\" align=\"right\">".$gresult[0]."</td><td width=\"200\" align=\"right\">".$gresult[2]."</td></tr>";
40     }
41 }
42 ?>
43 </table>
44 <p><a href="http://aussievoip.com.au/wiki/freePBX-PrintExtensions">Print Extensions v1.3</a></p>
45 </div>
Note: See TracBrowser for help on using the browser.