Fix httpWriteResponse state values after a 0-length response.
Fix text/css MIME type rules (so css files don't get mistaken for C source) New web interface templates and stylesheet that works better on mobile browsers like the iPhone. Touch icon for mobile bookmarks. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11349 a1ca3aef-8c08-0410-bb20-df032aa958be
Esse commit está contido em:
+1
-1
@@ -124,7 +124,7 @@ application/x-shell sh printable(0,1024) + string(0,#!) +\
|
||||
(contains(2,80,/bash) contains(2,80,/ksh)\
|
||||
contains(2,80,/sh) contains(2,80,/zsh))
|
||||
application/x-csource c cxx cpp cc C h hpp \
|
||||
printable(0,1024) + \
|
||||
printable(0,1024) + ! css + \
|
||||
(string(0,/*) string(0,//)
|
||||
string(0,#include) contains(0,1024,<0a>#include) \
|
||||
string(0,#define) contains(0,1024,<0a>#define))
|
||||
|
||||
+11
-1
@@ -3453,7 +3453,8 @@ httpWrite2(http_t *http, /* I - HTTP connection */
|
||||
|
||||
if (http->state == HTTP_STATE_POST_RECV)
|
||||
http->state ++;
|
||||
else if (http->state == HTTP_STATE_POST_SEND)
|
||||
else if (http->state == HTTP_STATE_POST_SEND ||
|
||||
http->state == HTTP_STATE_GET_SEND)
|
||||
http->state = HTTP_STATE_WAITING;
|
||||
else
|
||||
http->state = HTTP_STATE_STATUS;
|
||||
@@ -3647,6 +3648,14 @@ httpWriteResponse(http_t *http, /* I - HTTP connection */
|
||||
|
||||
http_set_length(http);
|
||||
|
||||
if (http->data_encoding == HTTP_ENCODING_LENGTH && http->data_remaining == 0)
|
||||
{
|
||||
DEBUG_printf(("1httpWriteResponse: Resetting state to HTTP_STATE_WAITING, "
|
||||
"was %s.", httpStateString(http->state)));
|
||||
http->state = HTTP_STATE_WAITING;
|
||||
return (0);
|
||||
}
|
||||
|
||||
#ifdef HAVE_LIBZ
|
||||
/*
|
||||
* Then start any content encoding...
|
||||
@@ -3656,6 +3665,7 @@ httpWriteResponse(http_t *http, /* I - HTTP connection */
|
||||
http_content_coding_start(http,
|
||||
httpGetField(http, HTTP_FIELD_CONTENT_ENCODING));
|
||||
#endif /* HAVE_LIBZ */
|
||||
|
||||
}
|
||||
|
||||
return (0);
|
||||
|
||||
@@ -20,6 +20,7 @@ include ../Makedefs
|
||||
#
|
||||
|
||||
WEBPAGES = \
|
||||
apple-touch-icon.png \
|
||||
cups.css \
|
||||
cups-printable.css \
|
||||
index.html \
|
||||
|
||||
Arquivo binário não exibido.
Arquivo binário não exibido.
|
Depois Largura: | Altura: | Tamanho: 6.0 KiB |
+153
-1
@@ -1,7 +1,105 @@
|
||||
/* Layout CSS */
|
||||
.header {
|
||||
background: #333333;
|
||||
color: white;
|
||||
float: left;
|
||||
left: 0;
|
||||
margin-bottom: 20px;
|
||||
padding: 0px;
|
||||
position: relative;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.header ul {
|
||||
list-style: none;
|
||||
-webkit-margin-before: 0;
|
||||
-webkit-margin-after: 0;
|
||||
-webkit-margin-start: 0;
|
||||
-webkit-margin-end: 5px;
|
||||
-webkit-padding-start: 0;
|
||||
}
|
||||
.header ul li {
|
||||
float: left;
|
||||
}
|
||||
.header a {
|
||||
display: block;
|
||||
padding: 5px 10px !important;
|
||||
}
|
||||
.header a:link, .header a:visited {
|
||||
color: white !important;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
.header a:hover {
|
||||
background: #cccccc !important;
|
||||
color: #333333 !important;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
.header a.active {
|
||||
background: white !important;
|
||||
color: black !important;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.body {
|
||||
padding: 20px 20px 40px;
|
||||
}
|
||||
|
||||
.footer {
|
||||
background: #333333;
|
||||
bottom: 0;
|
||||
color: #cccccc;
|
||||
font-size: 10px;
|
||||
height: 20px;
|
||||
left: 0;
|
||||
padding: 10px 10px 3px;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
}
|
||||
.footer a:link, footer a:hover, .footer a:visited {
|
||||
color: white !important;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.row {
|
||||
width: 100%;
|
||||
*zoom: 1;
|
||||
}
|
||||
.row:after {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.row .thirds {
|
||||
float: left;
|
||||
margin-left: 0.5%;
|
||||
margin-right: 0;
|
||||
width: 33%;
|
||||
}
|
||||
.row .thirds:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.row .halves {
|
||||
float: left;
|
||||
margin-left: 0.5%;
|
||||
margin-right: 0;
|
||||
width: 49.75%;
|
||||
}
|
||||
.row .halves:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
.mobile {
|
||||
display: none;
|
||||
}
|
||||
.no-mobile {
|
||||
display: inherit;
|
||||
}
|
||||
|
||||
/* Appearance CSS */
|
||||
BODY {
|
||||
background: white;
|
||||
color: black;
|
||||
font-family: lucida grande, geneva, helvetica, arial, sans-serif;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
H1, H2, H3, H4, H5, H6, P, TD, TH {
|
||||
@@ -255,7 +353,7 @@ H2.title, H3.title {
|
||||
border-bottom: solid 1pt #999999;
|
||||
}
|
||||
|
||||
DIV.indent, TABLE.indent {
|
||||
TABLE.indent {
|
||||
margin-top: 2em;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
@@ -460,3 +558,57 @@ div.body dt {
|
||||
div.body dd {
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
/* iPhone/iPod touch overrides */
|
||||
@media only screen and (min-device-width: 320px) and (max-device-width: 480px),
|
||||
only screen and (min-device-width: 320px) and (max-device-width: 568px) {
|
||||
.mobile {
|
||||
display: inherit;
|
||||
}
|
||||
.no-mobile {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.footer {
|
||||
font-size: 10px;
|
||||
height: auto;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.row .thirds, .row .halves {
|
||||
float: none;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
DIV.sidebar {
|
||||
float: none;
|
||||
margin-left: 0;
|
||||
max-width: 100%;
|
||||
min-width: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
BLOCKQUOTE {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
P.example {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
PRE.command, PRE.example {
|
||||
margin-left: 0;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
}
|
||||
|
||||
/* iPad overrides */
|
||||
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
|
||||
|
||||
.mobile {
|
||||
display: inherit;
|
||||
}
|
||||
.no-mobile {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
+64
-107
@@ -1,107 +1,64 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
<TITLE>Home - CUPS @CUPS_VERSION@@CUPS_REVISION@</TITLE>
|
||||
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/cups.css">
|
||||
<LINK REL="SHORTCUT ICON" HREF="/images/cups-icon.png" TYPE="image/png">
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<TABLE CLASS="page" SUMMARY="{title}">
|
||||
<TR><TD CLASS="body">
|
||||
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
|
||||
<TR HEIGHT="36">
|
||||
<TD><A HREF="http://www.cups.org/" TARGET="_blank"><IMG
|
||||
SRC="/images/left.gif" WIDTH="64" HEIGHT="36" BORDER="0" ALT=""></A></TD>
|
||||
<TD CLASS="sel"><A HREF="/"> Home </A></TD>
|
||||
<TD CLASS="unsel"><A HREF="/admin"> Administration </A></TD>
|
||||
<TD CLASS="unsel"><A HREF="/classes/"> Classes </A></TD>
|
||||
<TD CLASS="unsel"><A HREF="/help/"> Online Help </A></TD>
|
||||
<TD CLASS="unsel"><A HREF="/jobs/"> Jobs </A></TD>
|
||||
<TD CLASS="unsel"><A HREF="/printers/"> Printers </A></TD>
|
||||
<TD CLASS="unsel" WIDTH="100%"><FORM ACTION="/help/" METHOD="GET"><INPUT
|
||||
TYPE="SEARCH" NAME="QUERY" SIZE="20" PLACEHOLDER="Search Help"
|
||||
AUTOSAVE="org.cups.help" RESULTS="20"></FORM></TD>
|
||||
<TD><IMG SRC="/images/right.gif" WIDTH="4" HEIGHT="36" ALT=""></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<TABLE CLASS="indent" SUMMARY="">
|
||||
<TR><TD STYLE="padding-right: 20px;">
|
||||
|
||||
<H1>CUPS @CUPS_VERSION@</H1>
|
||||
|
||||
<P>CUPS is the standards-based, open source printing system developed by
|
||||
<A HREF="http://www.apple.com/">Apple Inc.</A> for OS<SUP>®</SUP> X and
|
||||
other UNIX<SUP>®</SUP>-like operating systems.</P>
|
||||
|
||||
</TD>
|
||||
<TD><A HREF="http://www.cups.org/"><IMG SRC="images/cups-icon.png" WIDTH="128"
|
||||
HEIGHT="128" ALT="CUPS"></A></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<TABLE CLASS="indent" SUMMARY="">
|
||||
<TR><TD VALIGN="top" STYLE="border-right: dotted thin #cccccc; padding-right: 20px;">
|
||||
|
||||
<H2>CUPS for Users</H2>
|
||||
|
||||
<P><A HREF="help/overview.html">Overview of CUPS</A></P>
|
||||
|
||||
<P><A HREF="help/options.html">Command-Line Printing and Options</A></P>
|
||||
|
||||
<P><A HREF="help/whatsnew.html">What's New in CUPS 1.7</A></P>
|
||||
|
||||
<P><A HREF="http://www.cups.org/newsgroups.php?gcups.general">User Forum</A></P>
|
||||
|
||||
</TD><TD VALIGN="top" STYLE="border-right: dotted thin #cccccc; padding-left: 20px; padding-right: 20px;">
|
||||
|
||||
<H2>CUPS for Administrators</H2>
|
||||
|
||||
<P><A HREF="admin">Adding Printers and Classes</A></P>
|
||||
|
||||
<P><A HREF="help/policies.html">Managing Operation Policies</A></P>
|
||||
|
||||
<P><A HREF="help/accounting.html">Printer Accounting Basics</A></P>
|
||||
|
||||
<P><A HREF="help/security.html">Server Security</A></P>
|
||||
|
||||
<P><A HREF="help/kerberos.html">Using Kerberos Authentication</A></P>
|
||||
|
||||
<P><A HREF="help/network.html">Using Network Printers</A></P>
|
||||
|
||||
<P><A HREF="help/ref-cupsd-conf.html">cupsd.conf Reference</A></P>
|
||||
|
||||
<P><A HREF="http://www.cups.org/ppd.php">Find Printer Drivers</A></P>
|
||||
|
||||
</TD><TD VALIGN="top" STYLE="padding-left: 20px;">
|
||||
|
||||
<H2>CUPS for Developers</H2>
|
||||
|
||||
<P><A HREF="help/api-overview.html">Introduction to CUPS Programming</A></P>
|
||||
|
||||
<P><A HREF="help/api-cups.html">CUPS API</A></P>
|
||||
|
||||
<P><A HREF="help/api-filter.html">Filter and Backend Programming</A></P>
|
||||
|
||||
<P><A HREF="help/api-httpipp.html">HTTP and IPP APIs</A></P>
|
||||
|
||||
<P><A HREF="help/api-ppd.html">PPD API</A></P>
|
||||
|
||||
<P><A HREF="help/api-raster.html">Raster API</A></P>
|
||||
|
||||
<P><A HREF="help/ref-ppdcfile.html">PPD Compiler Driver Information File Reference</A></P>
|
||||
|
||||
<P><A HREF="http://www.cups.org/newsgroups.php?gcups.development">Developer Forum</A></P>
|
||||
|
||||
</TD></TR>
|
||||
</TABLE>
|
||||
|
||||
</TD></TR>
|
||||
<TR><TD> </TD></TR>
|
||||
<TR><TD CLASS="trailer">CUPS and the CUPS logo are trademarks of
|
||||
<A HREF="http://www.apple.com">Apple Inc.</A> Copyright 2007-2013 Apple
|
||||
Inc. All rights reserved.</TD></TR>
|
||||
</TABLE>
|
||||
</BODY>
|
||||
</HTML>
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="/cups.css" type="text/css">
|
||||
<link rel="shortcut icon" href="/apple-touch-icon.png" type="image/png">
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<title>Home - CUPS @CUPS_VERSION@@CUPS_REVISION@</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="header">
|
||||
<ul>
|
||||
<li><a href="http://www.cups.org/" target="_blank">cups.org</a></li>
|
||||
<li><a class="active" href="/">Home</a></li>
|
||||
<li><a href="/admin">Administration</a></li>
|
||||
<li><a href="/classes/">Classes</a></li>
|
||||
<li><a href="/help/">Help</a></li>
|
||||
<li><a href="/jobs/">Jobs</a></li>
|
||||
<li><a href="/printers/">Printers</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="body">
|
||||
<div class="row">
|
||||
<h1>CUPS @CUPS_VERSION@</h1>
|
||||
<p>CUPS is the standards-based, open source printing system developed by <a href="http://www.apple.com/">Apple Inc.</a> for OS<sup>®</sup> X and other UNIX<sup>®</sup>-like operating systems.</p>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="thirds">
|
||||
<h2>CUPS for Users</h2>
|
||||
<p><a href="help/overview.html">Overview of CUPS</a></p>
|
||||
<p><a href="help/options.html">Command-Line Printing and Options</a></p>
|
||||
<p><a href="help/whatsnew.html">What's New in CUPS 1.7</a></p>
|
||||
<p><a href="http://www.cups.org/lists.php?LIST=cups">User Forum</a></p>
|
||||
</div>
|
||||
<div class="thirds">
|
||||
<h2>CUPS for Administrators</h2>
|
||||
<p><a href="admin">Adding Printers and Classes</a></p>
|
||||
<p><a href="help/policies.html">Managing Operation Policies</a></p>
|
||||
<p><a href="help/accounting.html">Printer Accounting Basics</a></p>
|
||||
<p><a href="help/security.html">Server Security</a></p>
|
||||
<p><a href="help/kerberos.html">Using Kerberos Authentication</a></p>
|
||||
<p><a href="help/network.html">Using Network Printers</a></p>
|
||||
<p><a href="help/ref-cupsd-conf.html">cupsd.conf Reference</a></p>
|
||||
<p><a href="http://www.cups.org/ppd.php">Find Printer Drivers</a></p>
|
||||
</div>
|
||||
<div class="thirds">
|
||||
<h2>CUPS for Developers</h2>
|
||||
<p><a href="help/api-overview.html">Introduction to CUPS Programming</a></p>
|
||||
<p><a href="help/api-cups.html">CUPS API</a></p>
|
||||
<p><a href="help/api-filter.html">Filter and Backend Programming</a></p>
|
||||
<p><a href="help/api-httpipp.html">HTTP and IPP APIs</a></p>
|
||||
<p><a href="help/api-ppd.html">PPD API</a></p>
|
||||
<p><a href="help/api-raster.html">Raster API</a></p>
|
||||
<p><a href="help/ref-ppdcfile.html">PPD Compiler Driver Information File Reference</a></p>
|
||||
<p><a href="http://www.cups.org/lists.php?LIST=cups-devel">Developer Forum</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">CUPS and the CUPS logo are trademarks of <a href="http://www.apple.com">Apple Inc.</a> Copyright 2007-2013 Apple
|
||||
Inc. All rights reserved.</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+14
-3
@@ -835,6 +835,8 @@ cupsdReadClient(cupsd_client_t *con) /* I - Client to read from */
|
||||
* Handle new transfers...
|
||||
*/
|
||||
|
||||
cupsdLogClient(con, CUPSD_LOG_DEBUG, "Read: status=%d", status);
|
||||
|
||||
if (status == HTTP_STATUS_OK)
|
||||
{
|
||||
if (httpGetField(con->http, HTTP_FIELD_ACCEPT_LANGUAGE)[0])
|
||||
@@ -1061,6 +1063,8 @@ cupsdReadClient(cupsd_client_t *con) /* I - Client to read from */
|
||||
switch (httpGetState(con->http))
|
||||
{
|
||||
case HTTP_STATE_GET_SEND :
|
||||
cupsdLogClient(con, CUPSD_LOG_DEBUG, "Processing GET %s", con->uri);
|
||||
|
||||
if ((!strncmp(con->uri, "/ppd/", 5) ||
|
||||
!strncmp(con->uri, "/printers/", 10) ||
|
||||
!strncmp(con->uri, "/classes/", 9)) &&
|
||||
@@ -1311,6 +1315,8 @@ cupsdReadClient(cupsd_client_t *con) /* I - Client to read from */
|
||||
|
||||
type = mimeFileType(MimeDatabase, filename, NULL, NULL);
|
||||
|
||||
cupsdLogClient(con, CUPSD_LOG_DEBUG, "filename=\"%s\", type=%s/%s", filename, type ? type->super : "", type ? type->type : "");
|
||||
|
||||
if (is_cgi(con, filename, &filestats, type))
|
||||
{
|
||||
/*
|
||||
@@ -2719,10 +2725,10 @@ cupsdWriteClient(cupsd_client_t *con) /* I - Client connection */
|
||||
{
|
||||
cupsdLogRequest(con, HTTP_STATUS_OK);
|
||||
|
||||
httpFlushWrite(con->http);
|
||||
|
||||
if (httpIsChunked(con->http) && (!con->pipe_pid || con->sent_header == 1))
|
||||
{
|
||||
cupsdLogClient(con, CUPSD_LOG_DEBUG, "Sending 0-length chunk.");
|
||||
|
||||
if (httpWrite2(con->http, "", 0) < 0)
|
||||
{
|
||||
cupsdLogClient(con, CUPSD_LOG_DEBUG, "Closing for error %d (%s)",
|
||||
@@ -2731,6 +2737,10 @@ cupsdWriteClient(cupsd_client_t *con) /* I - Client connection */
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
cupsdLogClient(con, CUPSD_LOG_DEBUG, "Flushing write buffer.");
|
||||
httpFlushWrite(con->http);
|
||||
cupsdLogClient(con, CUPSD_LOG_DEBUG, "New state is %s", httpStateString(httpGetState(con->http)));
|
||||
}
|
||||
|
||||
cupsdAddSelect(httpGetFd(con->http), (cupsd_selfunc_t)cupsdReadClient, NULL, con);
|
||||
@@ -3947,7 +3957,8 @@ write_file(cupsd_client_t *con, /* I - Client connection */
|
||||
|
||||
fcntl(con->file, F_SETFD, fcntl(con->file, F_GETFD) | FD_CLOEXEC);
|
||||
|
||||
con->pipe_pid = 0;
|
||||
con->pipe_pid = 0;
|
||||
con->sent_header = 1;
|
||||
|
||||
httpClearFields(con->http);
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Add Class</H2>
|
||||
|
||||
<FORM METHOD="POST" ACTION="/admin">
|
||||
@@ -37,4 +35,3 @@
|
||||
</TABLE>
|
||||
|
||||
</FORM>
|
||||
</DIV>
|
||||
@@ -1,5 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Add Printer</H2>
|
||||
|
||||
<FORM METHOD="POST" ACTION="/admin">
|
||||
@@ -44,4 +42,3 @@ Share This Printer</TD>
|
||||
</TABLE>
|
||||
|
||||
</FORM>
|
||||
</DIV>
|
||||
+80
-85
@@ -1,102 +1,97 @@
|
||||
<TABLE CLASS="indent" SUMMARY="Administration Tasks">
|
||||
<TR><TD VALIGN="TOP">
|
||||
<div class="row">
|
||||
<div class="halves">
|
||||
<H2 CLASS="title">Printers</H2>
|
||||
|
||||
<H2 CLASS="title">Printers</H2>
|
||||
<P>
|
||||
<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="add-printer"><INPUT TYPE="SUBMIT" VALUE="Add Printer"></FORM>
|
||||
<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="find-new-printers"><INPUT TYPE="SUBMIT" VALUE="Find New Printers"></FORM>
|
||||
<FORM ACTION="/printers/" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Manage Printers"></FORM>
|
||||
{have_samba?<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="export-samba"><INPUT TYPE="SUBMIT" VALUE="Export Printers to Samba"></FORM>:}
|
||||
</P>
|
||||
|
||||
<P>
|
||||
<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="add-printer"><INPUT TYPE="SUBMIT" VALUE="Add Printer"></FORM>
|
||||
<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="find-new-printers"><INPUT TYPE="SUBMIT" VALUE="Find New Printers"></FORM>
|
||||
<FORM ACTION="/printers/" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Manage Printers"></FORM>
|
||||
{have_samba?<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="export-samba"><INPUT TYPE="SUBMIT" VALUE="Export Printers to Samba"></FORM>:}
|
||||
</P>
|
||||
<H2 CLASS="title">Classes</H2>
|
||||
|
||||
<H2 CLASS="title">Classes</H2>
|
||||
<P>
|
||||
<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="add-class"><INPUT TYPE="SUBMIT" VALUE="Add Class"></FORM>
|
||||
<FORM ACTION="/classes/" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Manage Classes"></FORM>
|
||||
</P>
|
||||
|
||||
<P>
|
||||
<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="add-class"><INPUT TYPE="SUBMIT" VALUE="Add Class"></FORM>
|
||||
<FORM ACTION="/classes/" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Manage Classes"></FORM>
|
||||
</P>
|
||||
<H2 CLASS="title">Jobs</H2>
|
||||
|
||||
<H2 CLASS="title">Jobs</H2>
|
||||
<P>
|
||||
<FORM ACTION="/jobs/" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Manage Jobs"></FORM>
|
||||
</P>
|
||||
</div>
|
||||
<div class="halves">
|
||||
<H2 CLASS="title">Server</H2>
|
||||
|
||||
<P>
|
||||
<FORM ACTION="/jobs/" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Manage Jobs"></FORM>
|
||||
</P>
|
||||
<P>
|
||||
<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="config-server"><INPUT TYPE="SUBMIT" VALUE="Edit Configuration File"></FORM>
|
||||
<FORM ACTION="/admin/log/access_log" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="View Access Log"></FORM>
|
||||
<FORM ACTION="/admin/log/error_log" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="View Error Log"></FORM>
|
||||
<FORM ACTION="/admin/log/page_log" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="View Page Log"></FORM>
|
||||
</P>
|
||||
|
||||
</TD><TD> </TD><TD VALIGN="TOP">
|
||||
{SETTINGS_ERROR?<P>{SETTINGS_MESSAGE}</P>
|
||||
<BLOCKQUOTE>{SETTINGS_ERROR}</BLOCKQUOTE>:
|
||||
|
||||
<H2 CLASS="title">Server</H2>
|
||||
<FORM METHOD="POST" ACTION="/admin">
|
||||
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
|
||||
|
||||
<P>
|
||||
<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="config-server"><INPUT TYPE="SUBMIT" VALUE="Edit Configuration File"></FORM>
|
||||
<FORM ACTION="/admin/log/access_log" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="View Access Log"></FORM>
|
||||
<FORM ACTION="/admin/log/error_log" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="View Error Log"></FORM>
|
||||
<FORM ACTION="/admin/log/page_log" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="View Page Log"></FORM>
|
||||
</P>
|
||||
{ADVANCEDSETTINGS?<P><B>Server Settings\:</B></P>
|
||||
|
||||
{SETTINGS_ERROR?<P>{SETTINGS_MESSAGE}</P>
|
||||
<BLOCKQUOTE>{SETTINGS_ERROR}</BLOCKQUOTE>:
|
||||
<P><A HREF="/admin/">Advanced <SMALL>▼</SMALL></A><BR>
|
||||
<INPUT TYPE="HIDDEN" NAME="OP" VALUE="config-server">
|
||||
<INPUT TYPE="HIDDEN" NAME="ADVANCEDSETTINGS" VALUE="YES">
|
||||
<INPUT TYPE="CHECKBOX" NAME="SHARE_PRINTERS" {?share_printers}> Share printers connected to this system<BR>
|
||||
Max clients\:
|
||||
<INPUT TYPE="TEXT" NAME="MAX_CLIENTS" VALUE="{?max_clients}" SIZE="6"><BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="REMOTE_ANY" {?remote_any}> Allow printing from the Internet<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="BROWSE_WEB_IF" {?browse_web_if}> Advertise web interface<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="REMOTE_ADMIN" {?remote_admin}> Allow remote administration<BR>
|
||||
{have_gssapi?<INPUT TYPE="CHECKBOX" NAME="KERBEROS" {?kerberos}> Use Kerberos authentication (<A HREF="/help/kerberos.html?TOPIC=Getting+Started">FAQ</A>)<BR>:}
|
||||
<INPUT TYPE="CHECKBOX" NAME="USER_CANCEL_ANY" {?user_cancel_any}> Allow users to cancel any job (not just their own)<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="PRESERVE_JOBS" {?preserve_jobs}> Preserve job history<BR>
|
||||
Maximum jobs (0 for no limit)\:
|
||||
<INPUT TYPE="TEXT" NAME="MAX_JOBS" VALUE="{?max_jobs}" SIZE="6"><BR>
|
||||
Retain Metadata\:
|
||||
<INPUT TYPE="TEXT" NAME="PRESERVE_JOB_HISTORY" VALUE="{?preserve_job_history}" SIZE="6"><BR>
|
||||
Retain Documents\:
|
||||
<INPUT TYPE="TEXT" NAME="PRESERVE_JOB_FILES" VALUE="{?preserve_job_files}" SIZE="6"><BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="DEBUG_LOGGING" {?debug_logging}> Save debugging information for troubleshooting<BR>
|
||||
Max log file size\:
|
||||
<INPUT TYPE="TEXT" NAME="MAX_LOG_SIZE" VALUE="{?max_log_size}" SIZE="6"></P>
|
||||
|
||||
<FORM METHOD="POST" ACTION="/admin">
|
||||
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
|
||||
:<P><B>Server Settings:</B></P>
|
||||
|
||||
{ADVANCEDSETTINGS?<P><B>Server Settings\:</B></P>
|
||||
<P><A HREF="/admin/?ADVANCEDSETTINGS=YES">Advanced <SMALL>▶</SMALL></A><BR>
|
||||
<INPUT TYPE="HIDDEN" NAME="OP" VALUE="config-server">
|
||||
<INPUT TYPE="CHECKBOX" NAME="SHARE_PRINTERS" {?share_printers}> Share printers connected to this system<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="REMOTE_ANY" {?remote_any}> Allow printing from the Internet<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="REMOTE_ADMIN" {?remote_admin}> Allow remote administration<BR>
|
||||
{have_gssapi?<INPUT TYPE="CHECKBOX" NAME="KERBEROS" {?kerberos}> Use Kerberos authentication (<A HREF="/help/kerberos.html?TOPIC=Getting+Started">FAQ</A>)<BR>:}
|
||||
<INPUT TYPE="CHECKBOX" NAME="USER_CANCEL_ANY" {?user_cancel_any}> Allow users to cancel any job (not just their own)<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="DEBUG_LOGGING" {?debug_logging}> Save debugging information for troubleshooting</P>
|
||||
|
||||
<P><A HREF="/admin/">Advanced <SMALL>▼</SMALL></A><BR>
|
||||
<INPUT TYPE="HIDDEN" NAME="OP" VALUE="config-server">
|
||||
<INPUT TYPE="HIDDEN" NAME="ADVANCEDSETTINGS" VALUE="YES">
|
||||
<INPUT TYPE="CHECKBOX" NAME="SHARE_PRINTERS" {?share_printers}> Share printers connected to this system<BR>
|
||||
Max clients\:
|
||||
<INPUT TYPE="TEXT" NAME="MAX_CLIENTS" VALUE="{?max_clients}" SIZE="6"><BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="REMOTE_ANY" {?remote_any}> Allow printing from the Internet<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="BROWSE_WEB_IF" {?browse_web_if}> Advertise web interface<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="REMOTE_ADMIN" {?remote_admin}> Allow remote administration<BR>
|
||||
{have_gssapi?<INPUT TYPE="CHECKBOX" NAME="KERBEROS" {?kerberos}> Use Kerberos authentication (<A HREF="/help/kerberos.html?TOPIC=Getting+Started">FAQ</A>)<BR>:}
|
||||
<INPUT TYPE="CHECKBOX" NAME="USER_CANCEL_ANY" {?user_cancel_any}> Allow users to cancel any job (not just their own)<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="PRESERVE_JOBS" {?preserve_jobs}> Preserve job history<BR>
|
||||
Maximum jobs (0 for no limit)\:
|
||||
<INPUT TYPE="TEXT" NAME="MAX_JOBS" VALUE="{?max_jobs}" SIZE="6"><BR>
|
||||
Retain Metadata\:
|
||||
<INPUT TYPE="TEXT" NAME="PRESERVE_JOB_HISTORY" VALUE="{?preserve_job_history}" SIZE="6"><BR>
|
||||
Retain Documents\:
|
||||
<INPUT TYPE="TEXT" NAME="PRESERVE_JOB_FILES" VALUE="{?preserve_job_files}" SIZE="6"><BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="DEBUG_LOGGING" {?debug_logging}> Save debugging information for troubleshooting<BR>
|
||||
Max log file size\:
|
||||
<INPUT TYPE="TEXT" NAME="MAX_LOG_SIZE" VALUE="{?max_log_size}" SIZE="6"></P>
|
||||
}
|
||||
<P><INPUT TYPE="SUBMIT" NAME="CHANGESETTINGS" VALUE="Change Settings"></P>
|
||||
|
||||
:<P><B>Server Settings:</B></P>
|
||||
</FORM>}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<P><A HREF="/admin/?ADVANCEDSETTINGS=YES">Advanced <SMALL>▶</SMALL></A><BR>
|
||||
<INPUT TYPE="HIDDEN" NAME="OP" VALUE="config-server">
|
||||
<INPUT TYPE="CHECKBOX" NAME="SHARE_PRINTERS" {?share_printers}> Share printers connected to this system<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="REMOTE_ANY" {?remote_any}> Allow printing from the Internet<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="REMOTE_ADMIN" {?remote_admin}> Allow remote administration<BR>
|
||||
{have_gssapi?<INPUT TYPE="CHECKBOX" NAME="KERBEROS" {?kerberos}> Use Kerberos authentication (<A HREF="/help/kerberos.html?TOPIC=Getting+Started">FAQ</A>)<BR>:}
|
||||
<INPUT TYPE="CHECKBOX" NAME="USER_CANCEL_ANY" {?user_cancel_any}> Allow users to cancel any job (not just their own)<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="DEBUG_LOGGING" {?debug_logging}> Save debugging information for troubleshooting</P>
|
||||
<div class="row">
|
||||
<H2 CLASS="title">RSS Subscriptions</H2>
|
||||
|
||||
}
|
||||
<P><INPUT TYPE="SUBMIT" NAME="CHANGESETTINGS" VALUE="Change Settings"></P>
|
||||
<P>
|
||||
<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="add-rss-subscription"><INPUT TYPE="SUBMIT" VALUE="Add RSS Subscription"></FORM>
|
||||
</P>
|
||||
|
||||
</FORM>}
|
||||
|
||||
</TD></TR>
|
||||
</TABLE>
|
||||
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">RSS Subscriptions</H2>
|
||||
|
||||
<P>
|
||||
<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="add-rss-subscription"><INPUT TYPE="SUBMIT" VALUE="Add RSS Subscription"></FORM>
|
||||
</P>
|
||||
|
||||
</DIV>
|
||||
|
||||
{notify_subscription_id?<TABLE CLASS="list" SUMMARY="RSS Subscriptions">
|
||||
<THEAD><TR><TH>Name</TH><TH>Events</TH><TH>Queue Name</TH></TR></THEAD>
|
||||
<TBODY>{[notify_subscription_id]
|
||||
<TR><TD><A HREF="{notify_recipient_uri}">{notify_recipient_name}</A><BR>
|
||||
<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="cancel-subscription"><INPUT TYPE="HIDDEN" NAME="notify_subscription_id" VALUE="{notify_subscription_id}"><INPUT TYPE="SUBMIT" VALUE="Cancel RSS Subscription"></FORM> </TD><TD>{notify_events}</TD><TD NOWRAP> {notify_printer_name?{notify_printer_name}:All Queues}</TD></TR>}
|
||||
</TBODY>
|
||||
</TABLE>:}
|
||||
{notify_subscription_id?<TABLE CLASS="list" SUMMARY="RSS Subscriptions">
|
||||
<THEAD><TR><TH>Name</TH><TH>Events</TH><TH>Queue Name</TH></TR></THEAD>
|
||||
<TBODY>{[notify_subscription_id]
|
||||
<TR><TD><A HREF="{notify_recipient_uri}">{notify_recipient_name}</A><BR>
|
||||
<FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="cancel-subscription"><INPUT TYPE="HIDDEN" NAME="notify_subscription_id" VALUE="{notify_subscription_id}"><INPUT TYPE="SUBMIT" VALUE="Cancel RSS Subscription"></FORM> </TD><TD>{notify_events}</TD><TD NOWRAP> {notify_printer_name?{notify_printer_name}:All Queues}</TD></TR>}
|
||||
</TBODY>
|
||||
</TABLE>:}
|
||||
</div>
|
||||
@@ -1,5 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">{op=modify-printer?Modify {printer_name}:Add Printer}</H2>
|
||||
|
||||
{CUPS_GET_DEVICES_DONE?<FORM METHOD="POST" ACTION="/admin">
|
||||
@@ -49,5 +47,3 @@ VALUE="{device_uri}{?device_make_and_model!Unknown?|{device_make_and_model}:}">
|
||||
|
||||
</FORM>:<P><IMG SRC="/images/wait.gif" WIDTH="16" HEIGHT="16" ALIGN="ABSMIDDLE"
|
||||
ALT="Busy Indicator"> Looking for printers...</P>}
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">{op=modify-printer?Modify {printer_name}:Add Printer}</H2>
|
||||
|
||||
<FORM METHOD="POST" ACTION="/admin" ENCTYPE="multipart/form-data">
|
||||
@@ -61,4 +59,3 @@ TYPE="FILE" NAME="PPD_FILE"></TD>
|
||||
</TABLE>
|
||||
|
||||
</FORM>
|
||||
</DIV>
|
||||
@@ -1,5 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">{op=modify-printer?Modify {printer_name}:Add Printer}</H2>
|
||||
|
||||
<FORM METHOD="POST" ACTION="/admin" ENCTYPE="multipart/form-data">
|
||||
@@ -57,4 +55,3 @@ TYPE="FILE" NAME="PPD_FILE"></TD>
|
||||
</TABLE>
|
||||
|
||||
</FORM>
|
||||
</DIV>
|
||||
@@ -1,5 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">{op=modify-printer?Modify {printer_name}:Add Printer}</H2>
|
||||
|
||||
<FORM METHOD="POST" ACTION="/admin">
|
||||
@@ -49,4 +47,3 @@
|
||||
</TABLE>
|
||||
|
||||
</FORM>
|
||||
</DIV>
|
||||
@@ -1,5 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">{op=modify-printer?Modify {printer_name}:Add Printer}</H2>
|
||||
|
||||
<FORM METHOD="POST" ACTION="/admin">
|
||||
@@ -41,4 +39,3 @@ Printers"</A> for the correct URI to use with your printer.</P>
|
||||
</TABLE>
|
||||
|
||||
</FORM>
|
||||
</DIV>
|
||||
@@ -1,8 +1,4 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Add Class</H2>
|
||||
|
||||
<P>Class <A HREF="/classes/{printer_name}">{printer_name}</A> has been added
|
||||
successfully.
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Delete Class {printer_name}</H2>
|
||||
|
||||
<P><B>Warning:</B> Are you sure you want to delete class
|
||||
{printer_name}?</P>
|
||||
|
||||
<P ALIGN="CENTER"><FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="op" VALUE="delete-class"><INPUT TYPE="HIDDEN" NAME="printer_name" VALUE="{printer_name}"><INPUT TYPE="SUBMIT" NAME="confirm" VALUE="Delete Class"></FORM></P>
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Delete Class {printer_name}</H2>
|
||||
|
||||
<P>Class {printer_name} has been deleted successfully.
|
||||
|
||||
</DIV>
|
||||
@@ -1,3 +1 @@
|
||||
<DIV CLASS="indent">
|
||||
<H3 CLASS="title">Jobs</H3>
|
||||
</DIV>
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Modify Class {printer_name}</H2>
|
||||
|
||||
<P>Class <A HREF="/classes/{printer_name}">{printer_name}</A> has been
|
||||
modified successfully.
|
||||
|
||||
</DIV>
|
||||
@@ -1,4 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
<H2 CLASS="title"><A HREF="{printer_uri_supported}">{printer_name}</A>
|
||||
({printer_state=3?Idle:{printer_state=4?Processing:Paused}},
|
||||
{printer_is_accepting_jobs=0?Rejecting Jobs:Accepting Jobs},
|
||||
@@ -40,5 +39,3 @@
|
||||
media={media_default?{media_default}:unknown}
|
||||
{sides_default?sides={sides_default}:}</TD></TR>
|
||||
</TABLE>
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">{title} On {printer_name}</H2>
|
||||
|
||||
<P>{job_state>5?:<IMG SRC="/images/wait.gif" WIDTH="16" HEIGHT="16"
|
||||
@@ -8,5 +6,3 @@ ALIGN="ABSMIDDLE" ALT="Busy Indicator"> }Printer command job
|
||||
{job_state=5?processing:{job_state=6?stopped:
|
||||
{job_state=7?canceled:{job_state=8?aborted:completed}}}}}}{job_state=9?:{job_printer_state_message?,
|
||||
<EM>"{job_printer_state_message}"</EM>:}}</P>
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -5,8 +5,6 @@ function reset_config()
|
||||
}
|
||||
</SCRIPT>
|
||||
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Edit Configuration File</H2>
|
||||
|
||||
<FORM NAME="cups" METHOD="POST" ACTION="/admin/">
|
||||
@@ -20,5 +18,3 @@ function reset_config()
|
||||
onClick="reset_config();"></P>
|
||||
|
||||
</FORM>
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">{?title} {?printer_name} Error</H2>
|
||||
|
||||
<P>Error:</P>
|
||||
|
||||
<BLOCKQUOTE>Unknown operation "{op}"!</BLOCKQUOTE>
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">{?title} {?printer_name} Error</H2>
|
||||
|
||||
<P>{?message?{message}:Error}:</P>
|
||||
|
||||
<BLOCKQUOTE>{error}</BLOCKQUOTE>
|
||||
|
||||
</DIV>
|
||||
|
||||
+34
-37
@@ -1,38 +1,35 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
<TITLE>{title} - CUPS @CUPS_VERSION@@CUPS_REVISION@</TITLE>
|
||||
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/cups.css">
|
||||
<LINK REL="SHORTCUT ICON" HREF="/images/cups-icon.png" TYPE="image/png">
|
||||
{refresh_page?<META HTTP-EQUIV="Refresh" CONTENT="{refresh_page}">:}
|
||||
<SCRIPT TYPE="text/javascript"><!--
|
||||
/* Show an error if cookies are disabled */
|
||||
function check_cookies() {
|
||||
if (!navigator.cookieEnabled) {
|
||||
document.getElementById('body').innerHTML = 'This page uses cookies to prevent common cross-site attacks. Please enable cookies in your browser.';
|
||||
}
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="/cups.css" type="text/css">
|
||||
<link rel="shortcut icon" href="/apple-touch-icon.png" type="image/png">
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
{refresh_page?<meta http-equiv="refresh" content="{refresh_page}">:}
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<script type="text/javascript"><!--
|
||||
/* Show an error if cookies are disabled */
|
||||
function check_cookies() {
|
||||
if (!navigator.cookieEnabled) {
|
||||
document.getElementById('body').innerHTML = 'This page uses cookies to prevent common cross-site attacks. Please enable cookies in your browser.';
|
||||
}
|
||||
--></SCRIPT>
|
||||
</HEAD>
|
||||
<BODY ONLOAD="check_cookies();">
|
||||
<TABLE CLASS="page" SUMMARY="{title}">
|
||||
<TR><TD CLASS="body">
|
||||
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY="">
|
||||
<TR HEIGHT="36">
|
||||
<TD><A HREF="http://www.cups.org/" TARGET="_blank"><IMG
|
||||
SRC="/images/left.gif" WIDTH="64" HEIGHT="36" BORDER="0" ALT=""></A></TD>
|
||||
<TD CLASS="unsel"><A HREF="/"> Home </A></TD>
|
||||
<TD CLASS="{SECTION=admin?:un}sel"><A HREF="/admin"> Administration </A></TD>
|
||||
<TD CLASS="{SECTION=classes?:un}sel"><A HREF="/classes/"> Classes </A></TD>
|
||||
<TD CLASS="{SECTION=help?:un}sel"><A HREF="/help/"> Online Help </A></TD>
|
||||
<TD CLASS="{SECTION=jobs?:un}sel"><A HREF="/jobs/"> Jobs </A></TD>
|
||||
<TD CLASS="{SECTION=printers?:un}sel"><A HREF="/printers/"> Printers </A></TD>
|
||||
<TD CLASS="unsel" WIDTH="100%"><FORM ACTION="/help/" METHOD="GET"><INPUT
|
||||
TYPE="SEARCH" NAME="QUERY" SIZE="20" PLACEHOLDER="Search Help"
|
||||
VALUE="{SECTION=help?{?QUERY}:}" AUTOSAVE="org.cups.help" RESULTS="20"></FORM></TD>
|
||||
<TD><IMG SRC="/images/right.gif" WIDTH="4" HEIGHT="36" ALT=""></TD>
|
||||
</TR>
|
||||
<TR><TD COLSPAN="9"> </TD></TR>
|
||||
</TABLE>
|
||||
<DIV ID="body">
|
||||
}
|
||||
--></SCRIPT>
|
||||
<title>{title} - CUPS @CUPS_VERSION@@CUPS_REVISION@</title>
|
||||
</head>
|
||||
<body onload="check_cookies();">
|
||||
<div class="header">
|
||||
<ul>
|
||||
<li><a href="http://www.cups.org/" target="_blank">cups.org</a></li>
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a {SECTION=admin?class="active" :}href="/admin">Administration</a></li>
|
||||
<li><a {SECTION=classes?class="active" :}href="/classes/">Classes</a></li>
|
||||
<li><a {SECTION=help?class="active" :}href="/help/">Help</a></li>
|
||||
<li><a {SECTION=jobs?class="active" :}href="/jobs/">Jobs</a></li>
|
||||
<li><a {SECTION=printers?class="active" :}href="/printers/">Printers</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="body">
|
||||
<div class="row">
|
||||
<h1>{title}</h1>
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
<FORM ACTION="/help/{?HELPFILE}" METHOD="GET">
|
||||
{TOPIC?<INPUT TYPE="HIDDEN" NAME="TOPIC" VALUE="{TOPIC}">:}
|
||||
|
||||
@@ -31,8 +30,7 @@ AUTOSAVE="org.cups.help" RESULTS="20">
|
||||
{QTEXT?</UL>:}
|
||||
:<P>No matches found.</P>}
|
||||
<HR NOSHADE>:}
|
||||
{HELPTITLE?<H1>{HELPTITLE}</H1>
|
||||
<FORM ACTION="/help/{?HELPFILE}" METHOD="GET"><INPUT TYPE="HIDDEN" NAME="PRINTABLE" VALUE="YES"><INPUT TYPE="SUBMIT" VALUE="View Printable Version"></FORM>:
|
||||
{HELPTITLE?<FORM ACTION="/help/{?HELPFILE}" METHOD="GET"><INPUT TYPE="HIDDEN" NAME="PRINTABLE" VALUE="YES"><INPUT TYPE="SUBMIT" VALUE="View Printable Version"></FORM>:
|
||||
|
||||
<H1>Online Help</H1>
|
||||
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
</DIV>
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Cancel Job {job_id}</H2>
|
||||
|
||||
<P><A HREF="{job_printer_uri}">Job {job_id}</A> has been canceled.
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Hold Job {job_id}</H2>
|
||||
|
||||
<P><A HREF="{job_printer_uri}">Job {job_id}</A> has been held from printing.
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<FORM METHOD="POST" ACTION="/{SECTION}/{job_id?:{printer_name}}">
|
||||
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
|
||||
<INPUT TYPE="HIDDEN" NAME="OP" VALUE="{op}">
|
||||
@@ -23,5 +21,3 @@
|
||||
</TABLE>
|
||||
|
||||
</FORM>
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">{job_id?Move Job {job_id}:Move All Jobs}</H2>
|
||||
|
||||
<P>{job_id?<A HREF="/jobs/{job_id}">Job {job_id}</A>:All jobs} moved to
|
||||
<A HREF="/{is_class?classes:printers}/{job_printer_name}">{job_printer_name}</A>.</P>
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Release Job {job_id}</H2>
|
||||
|
||||
<P><A HREF="{job_printer_uri}">Job {job_id}</A> has been released for printing.
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Reprint Job {job_id}</H2>
|
||||
|
||||
<P><A HREF="{job_printer_uri}">Job {job_id}</A> has been restarted.
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<DIV CLASS="indent">{?which_jobs=?:<FORM ACTION="{?printer_name=?/jobs:{printer_uri_supported}}" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Show Active Jobs"></FORM>}
|
||||
{?which_jobs=?:<FORM ACTION="{?printer_name=?/jobs:{printer_uri_supported}}" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Show Active Jobs"></FORM>}
|
||||
{?which_jobs=completed?:<FORM ACTION="{?printer_name=?/jobs:{printer_uri_supported}}" METHOD="GET"><INPUT TYPE="HIDDEN" NAME="which_jobs" VALUE="completed"><INPUT TYPE="SUBMIT" VALUE="Show Completed Jobs"></FORM>}
|
||||
{?which_jobs=all?:<FORM ACTION="{?printer_name=?/jobs:{printer_uri_supported}}" METHOD="GET"><INPUT TYPE="HIDDEN" NAME="which_jobs" VALUE="all"><INPUT TYPE="SUBMIT" VALUE="Show All Jobs"></FORM>}</DIV>
|
||||
{?which_jobs=all?:<FORM ACTION="{?printer_name=?/jobs:{printer_uri_supported}}" METHOD="GET"><INPUT TYPE="HIDDEN" NAME="which_jobs" VALUE="all"><INPUT TYPE="SUBMIT" VALUE="Show All Jobs"></FORM>}
|
||||
|
||||
<P ALIGN="CENTER">{total=0?No jobs:Showing {#job_id} of {total} {?which_jobs=?active:{which_jobs=all?:completed}} job{total=1?:s}}.</P>
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Available Printers</H2>
|
||||
|
||||
{#device_uri=0?<P>No printers found.</P>
|
||||
@@ -7,5 +5,3 @@
|
||||
<LI><FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="add-printer"><INPUT TYPE="HIDDEN" NAME="TEMPLATE_NAME" VALUE="{template_name}"><INPUT TYPE="HIDDEN" NAME="PRINTER_LOCATION" VALUE="Local Printer"><INPUT TYPE="HIDDEN" NAME="PRINTER_INFO" VALUE="{device_make_and_model}"><INPUT TYPE="HIDDEN" NAME="DEVICE_URI" VALUE="{device_uri}"><INPUT TYPE="SUBMIT" VALUE="Add This Printer"></FORM>
|
||||
{device_make_and_model} ({device_info})</LI>
|
||||
}</UL>}
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Modify Class {printer_name}</H2>
|
||||
|
||||
<FORM METHOD="POST" ACTION="/admin">
|
||||
@@ -31,4 +29,3 @@
|
||||
</TABLE>
|
||||
|
||||
</FORM>
|
||||
</DIV>
|
||||
@@ -1,5 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Modify {printer_name}</H2>
|
||||
|
||||
<FORM METHOD="POST" ACTION="/admin">
|
||||
@@ -39,4 +37,3 @@ Share This Printer</TD>
|
||||
</TABLE>
|
||||
|
||||
</FORM>
|
||||
</DIV>
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Change Settings</H2>
|
||||
|
||||
<P>The server was not restarted because no changes were made to
|
||||
the configuration...</P>
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Accept Jobs On {is_class?Class:Printer} {printer_name}</H2>
|
||||
|
||||
<P>{is_class?Class:Printer} <A
|
||||
HREF="/{is_class?classes:printers}/{printer_name}">{printer_name}</A>
|
||||
is now accepting jobs.</P>
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Add Printer</H2>
|
||||
|
||||
<P>Printer <A HREF="/printers/{printer_name}">{printer_name}</A> has been added
|
||||
successfully.
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Set Default Options for {printer_name}</H2>
|
||||
|
||||
<P>{OP=set-class-options?Class <A HREF="/classes/{printer_name}">:Printer <A HREF="/printers/{printer_name}">}{printer_name}</A>
|
||||
default options have been set successfully.
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Delete Printer {printer_name}</H2>
|
||||
|
||||
<P><B>Warning:</B> Are you sure you want to delete printer
|
||||
{printer_name}?</P>
|
||||
|
||||
<P ALIGN="CENTER"><FORM ACTION="/admin/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="delete-printer"><INPUT TYPE="HIDDEN" NAME="printer_name" VALUE="{printer_name}"><INPUT TYPE="SUBMIT" NAME="confirm" VALUE="Delete Printer"></FORM></P>
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Set {is_class?Class:Printer} {printer_name} As Default</H2>
|
||||
|
||||
<P>{is_class?Class:Printer} <A
|
||||
@@ -9,5 +7,3 @@ has been made the default printer on the server.</P>
|
||||
<BLOCKQUOTE><B>Note:</B> Any user default that has been set via
|
||||
the <TT>lpoptions</TT> command will override this default
|
||||
setting.</BLOCKQUOTE>
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Delete Printer {printer_name}</H2>
|
||||
|
||||
<P>Printer {printer_name} has been deleted successfully.
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
<DIV CLASS="indent">
|
||||
<H3 CLASS="title">Jobs</H3>
|
||||
</DIV>
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Modify Printer {printer_name}</H2>
|
||||
|
||||
<P>Printer <A HREF="/printers/{printer_name}">{printer_name}</A> has been
|
||||
modified successfully.
|
||||
|
||||
</DIV>
|
||||
@@ -1,9 +1,5 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Purge Jobs On {is_class?Class:Printer} {printer_name}</H2>
|
||||
|
||||
<P>{is_class?Class:Printer} <A
|
||||
HREF="/{is_class?classes:printers}/{printer_name}">{printer_name}</A>
|
||||
has been purged of all jobs.</P>
|
||||
|
||||
</DIV>
|
||||
@@ -1,9 +1,5 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Reject Jobs On {is_class?Class:Printer} {printer_name}</H2>
|
||||
|
||||
<P>{is_class?Class:Printer} <A
|
||||
HREF="/{is_class?classes:printers}/{printer_name}">{printer_name}</A>
|
||||
is no longer accepting jobs.</P>
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Resume {is_class?Class:Printer} {printer_name}</H2>
|
||||
|
||||
<P>{is_class?Class:Printer} <A
|
||||
HREF="/{is_class?classes:printers}/{printer_name}">{printer_name}</A>
|
||||
has been resumed.</P>
|
||||
|
||||
</DIV>
|
||||
@@ -1,9 +1,5 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Pause {is_class?Class:Printer} {printer_name}</H2>
|
||||
|
||||
<P>{is_class?Class:Printer} <A
|
||||
HREF="/{is_class?classes:printers}/{printer_name}">{printer_name}</A>
|
||||
has been paused.</P>
|
||||
|
||||
</DIV>
|
||||
@@ -1,5 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title"><A HREF="{printer_uri_supported}">{printer_name}</A>
|
||||
({printer_state=3?Idle:{printer_state=4?Processing:Paused}},
|
||||
{printer_is_accepting_jobs=0?Rejecting Jobs:Accepting Jobs},
|
||||
@@ -43,5 +41,3 @@
|
||||
media={media_default?{media_default}:unknown}
|
||||
{sides_default?sides={sides_default}:}</TD></TR>
|
||||
</TABLE>
|
||||
|
||||
</DIV>
|
||||
@@ -1,8 +1,4 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Change Settings</H2>
|
||||
|
||||
<P><IMG SRC="/images/wait.gif" WIDTH="16" HEIGHT="16" ALIGN="ABSMIDDLE"
|
||||
ALT="Busy Indicator"> Please stand by while the server restarts...</P>
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Set Default Options for {printer_name}</H2>
|
||||
|
||||
<FORM METHOD="POST" ACTION="/admin">
|
||||
|
||||
@@ -12,5 +12,3 @@ for (var i = 0; i < paramtables.length; i++)
|
||||
}
|
||||
--></SCRIPT>
|
||||
</FORM>
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,5 +1 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<P>Subscription {subscription_name} has been added successfully.</P>
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,5 +1 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<P>Subscription #{notify_subscription_id} has been canceled.</P>
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Print Test Page On {printer_name}</H2>
|
||||
|
||||
<P>Test page sent; job ID is <A HREF="/{SECTION}/{printer_name}">
|
||||
{printer_name}-{job_id}</A>.</P>
|
||||
|
||||
</DIV>
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
</DIV></TD></TR>
|
||||
<TR><TD> </TD></TR>
|
||||
<TR><TD CLASS="trailer">CUPS and the CUPS logo are trademarks of
|
||||
<A HREF="http://www.apple.com">Apple Inc.</A> Copyright 2007-2013 Apple
|
||||
Inc. All rights reserved.</TD></TR>
|
||||
</TABLE>
|
||||
</BODY>
|
||||
</HTML>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">CUPS and the CUPS logo are trademarks of <a href="http://www.apple.com">Apple Inc.</a> Copyright 2007-2013 Apple
|
||||
Inc. All rights reserved.</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<FORM METHOD="POST" ACTION="/admin">
|
||||
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
|
||||
<INPUT TYPE="HIDDEN" NAME="OP" VALUE="{OP}">
|
||||
@@ -27,4 +25,3 @@
|
||||
</TABLE>
|
||||
|
||||
</FORM>
|
||||
</DIV>
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário