Changeset 2888
- Timestamp:
- 10/31/06 22:21:23 (7 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.2/printextensions/page.printextensions.php
r2886 r2888 16 16 //isset($_REQUEST['action'])?$action = $_REQUEST['action']:$action=''; 17 17 18 ?>19 18 20 <?php21 19 $gresults = printextensions_allusers(); 22 20 ?> … … 24 22 <div class="content"> 25 23 <?php 26 if (isset($_REQUEST['quietmode'])) { 27 ?> 28 <head> 29 <title>freePBX administration</title> 30 <meta http-equiv="Content-Type" content="text/html"> 31 <link href="common/mainstyle.css" rel="stylesheet" type="text/css"> 32 33 <script type="text/javascript" src="common/script.js.php"></script> 34 <script type="text/javascript"> 35 <!-- 36 // Disable browser's Back button on another pg being able to go back to this pg. 37 // history.forward(); 38 //--> 39 </script> 40 <!--[if IE]> 41 <style type="text/css">div.inyourface a{position:absolute;}</style> 42 <![endif]--> 43 </head> 24 if (!$quietmode) { 25 echo "<a href=\"config.php?type=tool&display=printextensions&quietmode=on\" target=\"_blank\">Printer Friendly</a>\n"; 26 } 44 27 45 28 46 <body onload="setAllInfoToHideSelects();">47 48 <?php49 } else {50 ?>51 <a href="config.php?type=tool&display=printextensions&quietmode=on">Printer Friendly</a>52 <?php53 }54 ?>55 56 57 <?php58 59 29 if (!$extdisplay) { 60 echo '<br><h2>'._("Company Directory").'</h2><table border=0 61 width=500>'; 62 echo "<tr width=250><td align=left><b>Name</b></td><td width=50 63 align=center><b>Extension</b></td><td width=200 align=center><b>Assigned 64 DID</b></td></tr>"; 65 echo "<tr><td colspan=3><hr noshade></td></tr>"; 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>"; 66 33 67 }34 } 68 35 69 36 if (isset($gresults)) { 70 foreach ($gresults as $gresult) { 71 $defined = is_array($set_users) ? (in_array($gresult[0], $set_users) ? "(edit)" : "(add)") : "add"; 72 echo "<tr width=250><td>$gresult[1]</td><td width=50 73 align=right>$gresult[0]</td><td width=200 74 align=right>$gresult[2]</td></tr>"; 75 } 37 foreach ($gresults as $gresult) { 38 $defined = 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 } 76 41 } 77 42 ?> 78 43 </table> 79 <p> 80 <a href="http://aussievoip.com.au/wiki/freePBX-PrintExtensions"><font 81 size=1>Print Extensions v1.3</font></a> 44 <p><a href="http://aussievoip.com.au/wiki/freePBX-PrintExtensions">Print Extensions v1.3</a></p> 82 45 </div>
