1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
3 (c) 2005 U.S. Robotics Corporation
7 <title>Device » Print Server</title>
9 <link href="usr_main.css" rel="stylesheet" type="text/css">
10 <script src="usr_menus.js" type="text/javascript"></script>
11 <script src="usr_common.js" type="text/javascript"></script>
13 <meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
14 <script type="text/javascript">
17 setPageTitle("<%ejGetWl(wlInterface)%>");
19 var state = '<%ejGetIpp(ippRefresh)%>';
21 var code = 'location.assign("ippcfg.ipp?ippRefresh=0")';
26 var loc = 'ippcfg.ipp?ipp_enabled=';
28 with( document.forms[0] ) {
29 if( ippEnabled.checked ) {
32 if ( (ippMake.value.length == 0) || (ippMake.value.length > 80) ) {
33 alert('The make and model must be between one and 80 characters long, inclusive.');
36 loc += '&ippMake='+ippMake.value;
38 if ( (ippName.value.length == 0) || (ippName.value.length > 80) ) {
39 alert('The printer name must be between one and 80 characters long, inclusive.');
42 loc += '&ippName='+ippName.value;
48 var code = 'location.assign("' + loc + '");';
52 function ippEnblChange() {
53 if( document.forms[0].ippEnabled.checked )
59 function hideIppConfig(hide) {
60 var status = 'visible';
65 if( document.getElementById )
66 document.getElementById('ippConfig').style.visibility = status;
69 document.all.ippConfig.style.visibility = status;
75 var ipp_enable = "<%ejGetIpp(ipp_enabled)%>";
76 var make = "<%ejGetIpp(ippMake)%>";
77 var p_name = "<%ejGetIpp(ippName)%>";
79 with (document.forms[0]) {
80 if( ipp_enable == "1" ) {
81 ippEnabled.checked = true;
83 ippName.value = p_name;
85 ippEnabled.checked = false;
94 function onChangeName()
96 var elt = document.getElementById("idPrinterIP");
97 if ((elt == null) || !elt.style || (elt.style.display == null))
100 elt.innerHTML = "http://<%ejGet(ethIpAddress)%>:1631/printers/" + document.forms[0].ippName.value;
106 <body onload="initMenu('idMenu'); frmLoad();">
108 <script type="text/javascript">
109 writeHeader("Device", "<%ejGet(curUserName)%>", "<%ejGetOther(sysInfo, adslStd)%>", "<%ejGetOther(sysInfo, noBrPrtcl)%>", <%ejGetOther(sysInfo, pppIpExtension)%>, <%ejGetOther(sysInfo, enblFirewall)%>, <%ejGetOther(sysInfo, enblNat)%>, "<%ejGetWl(wlInterface)%>", <%ejGet(enblQos)%>);
112 <h3>Print Server</h3>
114 <p>This page allows you to configure support for your printer.</p>
117 <p style="display: none;"><input type="checkbox" name="ippEnabled" id="ippEnabled" onclick="ippEnblChange();"> <label for="ippEnabled">Enable print server</label></p>
122 <td><label for="ippName">Printer name:</label></td>
123 <td><input type="text" size="50" name="ippName" id="ippName" onchange="onChangeName();"></td>
126 <td><label for="ippMake">Comment:</label></td>
127 <td><input type="text" size="50" maxlength="80" name="ippMake" id="ippMake"></td>
132 <p>You will be able to access the printer at <b><span id="idPrinterIP" name="idPrinterIP">http://<%ejGet(ethIpAddress)%>:1631/printers/My_Printer</span></b>.</p>
134 <p><input type="button" value="Save" onClick="btnApply()"></p>
137 <script type="text/javascript">