Location: PHPKode > projects > PhpPrintAdmin (lprng version) > printadmin/action_mod_remote.php
 <?


$needed_groups = array("admin");
 
include "config.php";

check_auth_page($userinfo["user_type"], $needed_groups);



/*
$reponse_message = "";

if ($printer_name || $printer_model || $printer_addr || $local_server)
{
  $vis_servers = array();
  //var_dump($_REQUEST);
  //parse out the visible_at* get vars into an array  
  foreach ($_REQUEST as $key => $value)
    {
      if (ereg("visible_at",$key))
	{
	  array_push($vis_servers, $value);
	}
    } 
  $response_message = AddPrinter($printer_name,$printer_addr,$printer_model,$local_server,$vis_servers);
  $response_message = $response_message."<br>\n";
	
}


*/	


?>
<title>phpPrintAdmin</title>
<link rel="stylesheet" href="conf/printadmin.css" type="text/css">

<body bgcolor="#000000" text="#FFFFFF" link="#FFFFFF" alink="#FFFFFF">
<table width="81%" height="544">
  <tr align="left" valign="top"> 
    <td width="23%" height="60"> <img src="images/ppa_logo.gif" width="162" height="60"></td>
    <td width="2%" height="60" align="right" class="regtext">&nbsp;</td>
    <td width="75%" height="60" align="right" class="regtext" colspan="2"> 
      <?echo `/bin/date`;?>
      <br>
      <?echo "Logged in as <b>$PHP_AUTH_USER</b>";?>
    </td>
  </tr>
  <tr align="left" valign="top"> 
    <td width="23%" height="24">&nbsp;</td>
    <td width="2%" height="24"></td>
    <td width="75%" height="24" colspan="2"></td>
  </tr>
  <tr align="left" valign="top"> 
    <td height="448" bgcolor="#FFCC66" rowspan="3" width="23%"> 
      <!-- begin menu -->
      <? include "conf/menu.php"; ?>
      <!-- end menu -->
    </td>
    <td height="396" width="2%" rowspan="2">&nbsp;</td>
    <td height="396" width="38%" rowspan="2"> 
      <p class="regtextbold">Add/Modify Remote Queues</p>
      <p class="regtextbold">&nbsp;</p>
      <? echo $response_message; ?>
      <form name="form1" method="get" action="action_mod_remote_one.php">
    

      <input type="hidden" name="printerID" value="<? echo $printerID; ?>">
      <?

      
      // go get the printer to modify
      $printers = new printerDB();
      $the_printer = $printers->printerArray[$printerID];
      $local_server = $the_printer["local_server"];
      $printer_name = $the_printer["name"];

      echo "<input type=\"hidden\" name=\"name\" value=\"$printer_name\">\n";


?>
       Printer name: <? echo $the_printer["name"]; ?>

	<p><span class="regtext">Servers Visible At</span><br>
	
	<?  displayServerChecks($local_server, $printerID); ?>
        </p>
        
        <p>&nbsp;</p>
        <p>
        <input type="submit" value="modify printer"> </p>
      
      <p><br>
      </p>
</td>
    <td height="88" width="37%" valign="bottom"> 
     &nbsp;</td>
  </tr>
  <tr align="left" valign="top"> 
    <td height="304" width="37%"> 
      

&nbsp;</td>
      
  </tr>
  <tr align="left" valign="top">
    <td height="48" align="right" class="regtext" width="2%">&nbsp;</td>
    <td height="48" align="right" class="regtext" width="75%" colspan="2"> This software is 
      distributed under the <a href="http://www.gnu.org/licenses/gpl.html">GNU 
      General Public License</a><br>
      contact: <a href="mailto:hide@address.com">hide@address.com</a></td>
  </tr>
</table>
</form>
Return current item: PhpPrintAdmin (lprng version)