Changeset 2888

Show
Ignore:
Timestamp:
10/31/06 22:21:23 (7 years ago)
Author:
gregmac
Message:

Cleaned up html, updated to reflect changes in r2887

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.2/printextensions/page.printextensions.php

    r2886 r2888  
    1616//isset($_REQUEST['action'])?$action = $_REQUEST['action']:$action=''; 
    1717 
    18 ?> 
    1918 
    20 <?php  
    2119$gresults = printextensions_allusers(); 
    2220?> 
     
    2422<div class="content"> 
    2523<?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> 
     24if (!$quietmode) { 
     25  echo "<a href=\"config.php?type=tool&display=printextensions&quietmode=on\" target=\"_blank\">Printer Friendly</a>\n"; 
     26
    4427 
    4528 
    46 <body onload="setAllInfoToHideSelects();"> 
    47  
    48 <?php 
    49 } else { 
    50 ?> 
    51 <a href="config.php?type=tool&display=printextensions&quietmode=on">Printer Friendly</a> 
    52 <?php 
    53  } 
    54 ?> 
    55  
    56  
    57 <?php  
    58  
    5929if (!$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>"; 
    6633   
    67 
     34
    6835 
    6936if (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    } 
    7641} 
    7742?> 
    7843</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> 
    8245</div>