Comparar commits
1 Commits
| Autor | SHA1 | Data | |
|---|---|---|---|
| 9dbf508737 |
@@ -3,6 +3,15 @@ CHANGES-1.5.txt
|
||||
|
||||
CHANGES IN CUPS V1.5.4
|
||||
|
||||
- Documentation updates (STR #4112, STR #4130, STR #4134)
|
||||
- Fixes for libusb-based USB backend (STR #4128)
|
||||
- The lpq command did not show the owner or title of jobs unless passed
|
||||
a username on the command-line (STR #4135)
|
||||
- Localized empty strings contained the message catalog metadata
|
||||
(STR #4119)
|
||||
- Fixed a crash in the libusb-based USB backend (STR #4099)
|
||||
- The cups-lpd mini-daemon no longer handled jobs with multiple copies
|
||||
(STR #4118)
|
||||
- Multiple libusb backend fixes (STR #4098, STR #4100)
|
||||
- The IPP backend no longer tries to get the job status for printers
|
||||
that do not implement the required operation (STR #4083)
|
||||
|
||||
+16
-1
@@ -1,6 +1,21 @@
|
||||
CHANGES.txt - 1.6b1 - 2012-05-24
|
||||
CHANGES.txt - 1.6.0 - 2012-07-16
|
||||
--------------------------------
|
||||
|
||||
CHANGES IN CUPS V1.6.0
|
||||
|
||||
- Document changes (STR #4131)
|
||||
- Added new Catalan (STR #4107) and Spanish (STR #4137) localizations.
|
||||
|
||||
|
||||
CHANGES IN CUPS V1.6rc1
|
||||
|
||||
- Added a new Japanese localization (STR #4122)
|
||||
- The SNMP backend no longer exits if it is unable to obtain an IPv6
|
||||
socket (STR #4109)
|
||||
- The LPD backend incorrectly used "localhost" in the control file
|
||||
instead of the current hostname.
|
||||
|
||||
|
||||
CHANGES IN CUPS V1.6b1
|
||||
|
||||
- Documentation updates (STR #3927, STR #3980, STR #4010, STR #4068)
|
||||
|
||||
+6
-4
@@ -1,4 +1,4 @@
|
||||
CREDITS.txt - 2010-03-13
|
||||
CREDITS.txt - 2012-07-16
|
||||
------------------------
|
||||
|
||||
Few projects are completed by one person, and CUPS is no exception. We'd
|
||||
@@ -17,7 +17,7 @@ like to thank the following individuals for their contributions:
|
||||
Wang Jian - CUPS RPM corrections.
|
||||
Roderick Johnstone - Beta tester of the millenium.
|
||||
Till Kamppeter - Bug fixes, beta testing, evangelism.
|
||||
I–aki Larra–aga - Basque localization.
|
||||
Iñaki Larrañaga - Basque localization.
|
||||
Kenshi Muto - Japanese localization, patches, and
|
||||
testing.
|
||||
Tomohiro Kato - Japanese localization.
|
||||
@@ -27,16 +27,18 @@ like to thank the following individuals for their contributions:
|
||||
Mark Lawrence - Microsoft interoperability testing.
|
||||
Jeff Licquia - Bug fixes, beta testing, evangelism.
|
||||
Jason McMullan - Original CUPS RPM distributions.
|
||||
Àngel Mompó - Catalan localization.
|
||||
Wes Morgan - *BSD fixes.
|
||||
Daniel Nylander - Swedish localization.
|
||||
Niklas 'Nille' �kerstršm - Swedish localization.
|
||||
Niklas 'Nille' Åkerström - Swedish localization.
|
||||
Naruiko Ogasawara - Japanese localization.
|
||||
Giulio Orsero - Bug fixes and testing.
|
||||
Michal Osowiecki - Polish localization.
|
||||
Citra Paska - Indonesian localization.
|
||||
Kurt Pfeifle - Bug fixes, beta testing, evangelism.
|
||||
Vincenzo Reale - Italian localization.
|
||||
Petter Reinholdtsen - HP-UX compiler stuff.
|
||||
Juan Pablo Gonz‡lez Riopedre - Spanish localization.
|
||||
Juan Pablo González Riopedre - Spanish localization.
|
||||
Opher Shachar - Hebrew localization.
|
||||
Stuart Stevens - HP JetDirect IPP information.
|
||||
Andrea Suatoni - IRIX desktop integration and testing.
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
INSTALL - CUPS v1.6b1 - 2012-05-24
|
||||
INSTALL - CUPS v1.6.0 - 2012-07-16
|
||||
----------------------------------
|
||||
|
||||
This file describes how to compile and install CUPS from source code. For more
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
README - CUPS v1.6b1 - 2012-05-24
|
||||
----------------------------------
|
||||
README - CUPS v1.6.0 - 2012-07-16
|
||||
---------------------------------
|
||||
|
||||
Looking for compile instructions? Read the file "INSTALL.txt"
|
||||
instead...
|
||||
@@ -8,7 +8,7 @@ instead...
|
||||
INTRODUCTION
|
||||
|
||||
CUPS is a standards-based, open source printing system developed by Apple
|
||||
Inc. for Mac OS® X and other UNIX®-like operating systems. CUPS uses the
|
||||
Inc. for OS® X and other UNIX®-like operating systems. CUPS uses the
|
||||
Internet Printing Protocol ("IPP") and provides System V and Berkeley
|
||||
command-line interfaces, a web interface, and a C API to manage printers and
|
||||
print jobs. It supports printing to both local (parallel, serial, USB) and
|
||||
|
||||
+5
-6
@@ -169,7 +169,7 @@ static const char *password_cb(const char *);
|
||||
static void report_attr(ipp_attribute_t *attr);
|
||||
static void report_printer_state(ipp_t *ipp);
|
||||
#if defined(HAVE_GSSAPI) && defined(HAVE_XPC)
|
||||
static int run_as_user(int argc, char *argv[], uid_t uid,
|
||||
static int run_as_user(char *argv[], uid_t uid,
|
||||
const char *device_uri, int fd);
|
||||
#endif /* HAVE_GSSAPI && HAVE_XPC */
|
||||
static void sigterm_handler(int sig);
|
||||
@@ -348,7 +348,7 @@ main(int argc, /* I - Number of command-line args */
|
||||
if (uid > 0)
|
||||
{
|
||||
if (argc == 6)
|
||||
return (run_as_user(argc, argv, uid, device_uri, 0));
|
||||
return (run_as_user(argv, uid, device_uri, 0));
|
||||
else
|
||||
{
|
||||
int status = 0; /* Exit status */
|
||||
@@ -357,7 +357,7 @@ main(int argc, /* I - Number of command-line args */
|
||||
{
|
||||
if ((fd = open(argv[i], O_RDONLY)) >= 0)
|
||||
{
|
||||
status = run_as_user(argc, argv, uid, device_uri, fd);
|
||||
status = run_as_user(argv, uid, device_uri, fd);
|
||||
close(fd);
|
||||
}
|
||||
else
|
||||
@@ -1080,7 +1080,7 @@ main(int argc, /* I - Number of command-line args */
|
||||
get_job_attrs = 1;
|
||||
}
|
||||
|
||||
if (!send_document)
|
||||
if (create_job && !send_document)
|
||||
{
|
||||
fputs("DEBUG: Printer supports Create-Job but not Send-Document.\n",
|
||||
stderr);
|
||||
@@ -2839,8 +2839,7 @@ report_printer_state(ipp_t *ipp) /* I - IPP response */
|
||||
*/
|
||||
|
||||
static int /* O - Exit status */
|
||||
run_as_user(int argc, /* I - Number of command-line args */
|
||||
char *argv[], /* I - Command-line arguments */
|
||||
run_as_user(char *argv[], /* I - Command-line arguments */
|
||||
uid_t uid, /* I - User ID */
|
||||
const char *device_uri, /* I - Device URI */
|
||||
int fd) /* I - File to print */
|
||||
|
||||
+1
-1
@@ -936,7 +936,7 @@ lpd_queue(const char *hostname, /* I - Host to connect to */
|
||||
return (CUPS_BACKEND_FAILED);
|
||||
}
|
||||
|
||||
if (orighost)
|
||||
if (orighost && _cups_strcasecmp(orighost, "localhost"))
|
||||
strlcpy(localhost, orighost, sizeof(localhost));
|
||||
else
|
||||
httpGetHostname(NULL, localhost, sizeof(localhost));
|
||||
|
||||
+1
-1
@@ -251,7 +251,7 @@ main(int argc, /* I - Number of command-line arguments (6 or 7) */
|
||||
|
||||
#ifdef AF_INET6
|
||||
if ((ipv6 = _cupsSNMPOpen(AF_INET6)) < 0)
|
||||
return (1);
|
||||
perror("DEBUG: Unable to create IPv6 socket");
|
||||
#else
|
||||
ipv6 = -1;
|
||||
#endif /* AF_INET6 */
|
||||
|
||||
+342
-107
@@ -13,7 +13,7 @@
|
||||
*
|
||||
* Contents:
|
||||
*
|
||||
* list_devices() - List the available printers.
|
||||
* list_devices() - List the available printers.
|
||||
* print_device() - Print a file to a USB device.
|
||||
* close_device() - Close the connection to the USB printer.
|
||||
* find_device() - Find or enumerate USB printers.
|
||||
@@ -22,6 +22,9 @@
|
||||
* make_device_uri() - Create a device URI for a USB printer.
|
||||
* open_device() - Open a connection to the USB printer.
|
||||
* print_cb() - Find a USB printer for printing.
|
||||
* printer_class_soft_reset()' - Do the soft reset request specific to
|
||||
* printers
|
||||
* quirks() - Get the known quirks of a given printer model
|
||||
* read_thread() - Thread to read the backchannel data on.
|
||||
* sidechannel_thread() - Handle side-channel requests.
|
||||
* soft_reset() - Send a soft reset to the device.
|
||||
@@ -60,13 +63,15 @@ typedef struct usb_printer_s /**** USB Printer Data ****/
|
||||
{
|
||||
struct libusb_device *device; /* Device info */
|
||||
int conf, /* Configuration */
|
||||
origconf, /* Original configuration */
|
||||
iface, /* Interface */
|
||||
altset, /* Alternate setting */
|
||||
write_endp, /* Write endpoint */
|
||||
read_endp, /* Read endpoint */
|
||||
read_endp, /* Read endpoint */
|
||||
protocol, /* Protocol: 1 = Uni-di, 2 = Bi-di. */
|
||||
usblp_attached; /* Is the "usblp" kernel module
|
||||
attached? */
|
||||
usblp_attached, /* "usblp" kernel module attached? */
|
||||
opened_for_job; /* Set to 1 by print_device() */
|
||||
unsigned int quirks; /* Quirks flags */
|
||||
struct libusb_device_handle *handle; /* Open handle to device */
|
||||
} usb_printer_t;
|
||||
|
||||
@@ -99,6 +104,55 @@ typedef struct usb_globals_s
|
||||
int sidechannel_thread_done;
|
||||
} usb_globals_t;
|
||||
|
||||
/*
|
||||
* Quirks: various printer quirks are handled by this table & its flags.
|
||||
*
|
||||
* This is copied from the usblp kernel module. So we can easily copy and paste
|
||||
* new quirks from the module.
|
||||
*/
|
||||
|
||||
struct quirk_printer_struct {
|
||||
int vendorId;
|
||||
int productId;
|
||||
unsigned int quirks;
|
||||
};
|
||||
|
||||
#define USBLP_QUIRK_BIDIR 0x1 /* reports bidir but requires
|
||||
unidirectional mode (no INs/reads) */
|
||||
#define USBLP_QUIRK_USB_INIT 0x2 /* needs vendor USB init string */
|
||||
#define USBLP_QUIRK_BAD_CLASS 0x4 /* descriptor uses vendor-specific
|
||||
Class or SubClass */
|
||||
#define USBLP_QUIRK_NO_REATTACH 0x8000 /* After printing we cannot re-attach
|
||||
the usblp kernel module */
|
||||
|
||||
static const struct quirk_printer_struct quirk_printers[] = {
|
||||
{ 0x03f0, 0x0004, USBLP_QUIRK_BIDIR }, /* HP DeskJet 895C */
|
||||
{ 0x03f0, 0x0104, USBLP_QUIRK_BIDIR }, /* HP DeskJet 880C */
|
||||
{ 0x03f0, 0x0204, USBLP_QUIRK_BIDIR }, /* HP DeskJet 815C */
|
||||
{ 0x03f0, 0x0304, USBLP_QUIRK_BIDIR }, /* HP DeskJet 810C/812C */
|
||||
{ 0x03f0, 0x0404, USBLP_QUIRK_BIDIR }, /* HP DeskJet 830C */
|
||||
{ 0x03f0, 0x0504, USBLP_QUIRK_BIDIR }, /* HP DeskJet 885C */
|
||||
{ 0x03f0, 0x0604, USBLP_QUIRK_BIDIR }, /* HP DeskJet 840C */
|
||||
{ 0x03f0, 0x0804, USBLP_QUIRK_BIDIR }, /* HP DeskJet 816C */
|
||||
{ 0x03f0, 0x1104, USBLP_QUIRK_BIDIR }, /* HP Deskjet 959C */
|
||||
{ 0x0409, 0xefbe, USBLP_QUIRK_BIDIR }, /* NEC Picty900 (HP OEM) */
|
||||
{ 0x0409, 0xbef4, USBLP_QUIRK_BIDIR }, /* NEC Picty760 (HP OEM) */
|
||||
{ 0x0409, 0xf0be, USBLP_QUIRK_BIDIR }, /* NEC Picty920 (HP OEM) */
|
||||
{ 0x0409, 0xf1be, USBLP_QUIRK_BIDIR }, /* NEC Picty800 (HP OEM) */
|
||||
{ 0x0482, 0x0010, USBLP_QUIRK_BIDIR }, /* Kyocera Mita FS 820,
|
||||
by zut <kernel@zut.de> */
|
||||
{ 0x04f9, 0x000d, USBLP_QUIRK_BIDIR |
|
||||
USBLP_QUIRK_NO_REATTACH }, /* Brother Industries, Ltd
|
||||
HL-1440 Laser Printer */
|
||||
{ 0x04b8, 0x0202, USBLP_QUIRK_BAD_CLASS }, /* Seiko Epson Receipt
|
||||
Printer M129C */
|
||||
{ 0x067b, 0x2305, USBLP_QUIRK_BIDIR |
|
||||
USBLP_QUIRK_NO_REATTACH },
|
||||
/* Prolific Technology, Inc. PL2305 Parallel Port
|
||||
(USB -> Parallel adapter) */
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
* Globals...
|
||||
@@ -124,6 +178,8 @@ static char *make_device_uri(usb_printer_t *printer,
|
||||
static int open_device(usb_printer_t *printer, int verbose);
|
||||
static int print_cb(usb_printer_t *printer, const char *device_uri,
|
||||
const char *device_id, const void *data);
|
||||
static int printer_class_soft_reset(usb_printer_t *printer);
|
||||
static unsigned int quirks(int vendor, int product);
|
||||
static void *read_thread(void *reference);
|
||||
static void *sidechannel_thread(void *reference);
|
||||
static void soft_reset(void);
|
||||
@@ -163,7 +219,8 @@ print_device(const char *uri, /* I - Device URI */
|
||||
iostatus; /* Current IO status */
|
||||
pthread_t read_thread_id, /* Read thread */
|
||||
sidechannel_thread_id; /* Side-channel thread */
|
||||
int have_sidechannel = 0; /* Was the side-channel thread started? */
|
||||
int have_sidechannel = 0, /* Was the side-channel thread started? */
|
||||
have_backchannel = 0; /* Do we have a back channel? */
|
||||
struct stat sidechannel_info; /* Side-channel file descriptor info */
|
||||
unsigned char print_buffer[8192], /* Print data buffer */
|
||||
*print_ptr; /* Pointer into print data buffer */
|
||||
@@ -172,6 +229,9 @@ print_device(const char *uri, /* I - Device URI */
|
||||
struct timeval *timeout, /* Timeout pointer */
|
||||
tv; /* Time value */
|
||||
struct timespec cond_timeout; /* pthread condition timeout */
|
||||
int num_opts; /* Number of options */
|
||||
cups_option_t *opts; /* Options */
|
||||
const char *val; /* Option value */
|
||||
|
||||
|
||||
/*
|
||||
@@ -187,6 +247,7 @@ print_device(const char *uri, /* I - Device URI */
|
||||
* Connect to the printer...
|
||||
*/
|
||||
|
||||
fprintf(stderr, "DEBUG: Printing on printer with URI: %s\n", uri);
|
||||
while ((g.printer = find_device(print_cb, uri)) == NULL)
|
||||
{
|
||||
_cupsLangPrintFilter(stderr, "INFO",
|
||||
@@ -195,6 +256,7 @@ print_device(const char *uri, /* I - Device URI */
|
||||
}
|
||||
|
||||
g.print_fd = print_fd;
|
||||
g.printer->opened_for_job = 1;
|
||||
|
||||
/*
|
||||
* If we are printing data from a print driver on stdin, ignore SIGTERM
|
||||
@@ -239,25 +301,62 @@ print_device(const char *uri, /* I - Device URI */
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Debug mode: If option "usb-unidir" is given, always deactivate
|
||||
* backchannel
|
||||
*/
|
||||
|
||||
num_opts = cupsParseOptions(argv[5], 0, &opts);
|
||||
val = cupsGetOption("usb-unidir", num_opts, opts);
|
||||
if (val && strcasecmp(val, "no") && strcasecmp(val, "off") &&
|
||||
strcasecmp(val, "false"))
|
||||
{
|
||||
g.printer->read_endp = -1;
|
||||
fprintf(stderr, "DEBUG: Forced uni-directional communication "
|
||||
"via \"usb-unidir\" option.\n");
|
||||
}
|
||||
|
||||
/*
|
||||
* Debug mode: If option "usb-no-reattach" is given, do not re-attach
|
||||
* the usblp kernel module after the job has completed.
|
||||
*/
|
||||
|
||||
val = cupsGetOption("usb-no-reattach", num_opts, opts);
|
||||
if (val && strcasecmp(val, "no") && strcasecmp(val, "off") &&
|
||||
strcasecmp(val, "false"))
|
||||
{
|
||||
g.printer->usblp_attached = 0;
|
||||
fprintf(stderr, "DEBUG: Forced not re-attaching the usblp kernel module "
|
||||
"after the job via \"usb-no-reattach\" option.\n");
|
||||
}
|
||||
|
||||
/*
|
||||
* Get the read thread going...
|
||||
*/
|
||||
|
||||
g.read_thread_stop = 0;
|
||||
g.read_thread_done = 0;
|
||||
|
||||
pthread_cond_init(&g.read_thread_cond, NULL);
|
||||
pthread_mutex_init(&g.read_thread_mutex, NULL);
|
||||
|
||||
if (pthread_create(&read_thread_id, NULL, read_thread, NULL))
|
||||
if (g.printer->read_endp != -1)
|
||||
{
|
||||
fprintf(stderr, "DEBUG: Fatal USB error.\n");
|
||||
_cupsLangPrintFilter(stderr, "ERROR",
|
||||
_("There was an unrecoverable USB error."));
|
||||
fputs("DEBUG: Couldn't create read thread.\n", stderr);
|
||||
close_device(g.printer);
|
||||
return (CUPS_BACKEND_STOP);
|
||||
have_backchannel = 1;
|
||||
|
||||
g.read_thread_stop = 0;
|
||||
g.read_thread_done = 0;
|
||||
|
||||
pthread_cond_init(&g.read_thread_cond, NULL);
|
||||
pthread_mutex_init(&g.read_thread_mutex, NULL);
|
||||
|
||||
if (pthread_create(&read_thread_id, NULL, read_thread, NULL))
|
||||
{
|
||||
fprintf(stderr, "DEBUG: Fatal USB error.\n");
|
||||
_cupsLangPrintFilter(stderr, "ERROR",
|
||||
_("There was an unrecoverable USB error."));
|
||||
fputs("DEBUG: Couldn't create read thread.\n", stderr);
|
||||
close_device(g.printer);
|
||||
return (CUPS_BACKEND_STOP);
|
||||
}
|
||||
}
|
||||
else
|
||||
fprintf(stderr, "DEBUG: Uni-directional device/mode, back channel "
|
||||
"deactivated.\n");
|
||||
|
||||
/*
|
||||
* The main thread sends the print file...
|
||||
@@ -515,38 +614,18 @@ print_device(const char *uri, /* I - Device URI */
|
||||
* Signal the read thread to exit then wait 7 seconds for it to complete...
|
||||
*/
|
||||
|
||||
g.read_thread_stop = 1;
|
||||
|
||||
pthread_mutex_lock(&g.read_thread_mutex);
|
||||
|
||||
if (!g.read_thread_done)
|
||||
if (have_backchannel)
|
||||
{
|
||||
fputs("DEBUG: Waiting for read thread to exit...\n", stderr);
|
||||
g.read_thread_stop = 1;
|
||||
|
||||
gettimeofday(&tv, NULL);
|
||||
cond_timeout.tv_sec = tv.tv_sec + WAIT_EOF_DELAY;
|
||||
cond_timeout.tv_nsec = tv.tv_usec * 1000;
|
||||
|
||||
while (!g.read_thread_done)
|
||||
{
|
||||
if (pthread_cond_timedwait(&g.read_thread_cond, &g.read_thread_mutex,
|
||||
&cond_timeout) != 0)
|
||||
break;
|
||||
}
|
||||
|
||||
/*
|
||||
* If it didn't exit abort the pending read and wait an additional second...
|
||||
*/
|
||||
pthread_mutex_lock(&g.read_thread_mutex);
|
||||
|
||||
if (!g.read_thread_done)
|
||||
{
|
||||
fputs("DEBUG: Read thread still active, aborting the pending read...\n",
|
||||
stderr);
|
||||
|
||||
g.wait_eof = 0;
|
||||
fputs("DEBUG: Waiting for read thread to exit...\n", stderr);
|
||||
|
||||
gettimeofday(&tv, NULL);
|
||||
cond_timeout.tv_sec = tv.tv_sec + 1;
|
||||
cond_timeout.tv_sec = tv.tv_sec + WAIT_EOF_DELAY;
|
||||
cond_timeout.tv_nsec = tv.tv_usec * 1000;
|
||||
|
||||
while (!g.read_thread_done)
|
||||
@@ -555,10 +634,34 @@ print_device(const char *uri, /* I - Device URI */
|
||||
&cond_timeout) != 0)
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pthread_mutex_unlock(&g.read_thread_mutex);
|
||||
/*
|
||||
* If it didn't exit abort the pending read and wait an additional
|
||||
* second...
|
||||
*/
|
||||
|
||||
if (!g.read_thread_done)
|
||||
{
|
||||
fputs("DEBUG: Read thread still active, aborting the pending read...\n",
|
||||
stderr);
|
||||
|
||||
g.wait_eof = 0;
|
||||
|
||||
gettimeofday(&tv, NULL);
|
||||
cond_timeout.tv_sec = tv.tv_sec + 1;
|
||||
cond_timeout.tv_nsec = tv.tv_usec * 1000;
|
||||
|
||||
while (!g.read_thread_done)
|
||||
{
|
||||
if (pthread_cond_timedwait(&g.read_thread_cond, &g.read_thread_mutex,
|
||||
&cond_timeout) != 0)
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pthread_mutex_unlock(&g.read_thread_mutex);
|
||||
}
|
||||
|
||||
if (print_fd)
|
||||
close(print_fd);
|
||||
@@ -600,31 +703,86 @@ close_device(usb_printer_t *printer) /* I - Printer */
|
||||
* to the device...
|
||||
*/
|
||||
|
||||
int number; /* Interface number */
|
||||
int errcode; /* Return value of libusb function */
|
||||
int number1, /* Interface number */
|
||||
number2; /* Configuration number */
|
||||
|
||||
libusb_get_device_descriptor(printer->device, &devdesc);
|
||||
libusb_get_config_descriptor(printer->device, printer->conf, &confptr);
|
||||
number = confptr->interface[printer->iface].
|
||||
altsetting[printer->altset].bInterfaceNumber;
|
||||
libusb_release_interface(printer->handle, number);
|
||||
if (number != 0)
|
||||
libusb_release_interface(printer->handle, 0);
|
||||
errcode =
|
||||
libusb_get_config_descriptor(printer->device, printer->conf, &confptr);
|
||||
if (errcode >= 0)
|
||||
{
|
||||
number1 = confptr->interface[printer->iface].
|
||||
altsetting[printer->altset].bInterfaceNumber;
|
||||
libusb_release_interface(printer->handle, number1);
|
||||
|
||||
number2 = confptr->bConfigurationValue;
|
||||
|
||||
libusb_free_config_descriptor(confptr);
|
||||
|
||||
/*
|
||||
* If we have changed the configuration from one valid configuration
|
||||
* to another, restore the old one
|
||||
*/
|
||||
if (printer->origconf > 0 && printer->origconf != number2)
|
||||
{
|
||||
fprintf(stderr, "DEBUG: Restoring USB device configuration: %d -> %d\n",
|
||||
number2, printer->origconf);
|
||||
if ((errcode = libusb_set_configuration(printer->handle,
|
||||
printer->origconf)) < 0)
|
||||
{
|
||||
if (errcode != LIBUSB_ERROR_BUSY)
|
||||
{
|
||||
errcode =
|
||||
libusb_get_device_descriptor (printer->device, &devdesc);
|
||||
if (errcode < 0)
|
||||
fprintf(stderr,
|
||||
"DEBUG: Failed to set configuration %d\n",
|
||||
printer->origconf);
|
||||
else
|
||||
fprintf(stderr,
|
||||
"DEBUG: Failed to set configuration %d for %04x:%04x\n",
|
||||
printer->origconf, devdesc.idVendor, devdesc.idProduct);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Re-attach "usblp" kernel module if it was attached before using this
|
||||
* device
|
||||
*/
|
||||
if (printer->usblp_attached == 1)
|
||||
if (libusb_attach_kernel_driver(printer->handle, number1) < 0)
|
||||
{
|
||||
errcode = libusb_get_device_descriptor (printer->device, &devdesc);
|
||||
if (errcode < 0)
|
||||
fprintf(stderr,
|
||||
"DEBUG: Failed to re-attach \"usblp\" kernel module\n");
|
||||
else
|
||||
fprintf(stderr,
|
||||
"DEBUG: Failed to re-attach \"usblp\" kernel module to "
|
||||
"%04x:%04x\n", devdesc.idVendor, devdesc.idProduct);
|
||||
}
|
||||
}
|
||||
else
|
||||
fprintf(stderr,
|
||||
"DEBUG: Failed to get configuration descriptor %d\n",
|
||||
printer->conf);
|
||||
|
||||
/*
|
||||
* Re-attach "usblp" kernel module if it was attached before using this
|
||||
* device
|
||||
* Reset the device to clean up after the job
|
||||
*/
|
||||
|
||||
if (printer->usblp_attached == 1)
|
||||
if (printer->opened_for_job == 1)
|
||||
{
|
||||
if (libusb_attach_kernel_driver(printer->handle, printer->iface) < 0)
|
||||
if ((errcode = libusb_reset_device(printer->handle)) < 0)
|
||||
fprintf(stderr,
|
||||
"DEBUG: Failed to re-attach \"usblp\" kernel module to "
|
||||
"%04x:%04x\n", devdesc.idVendor, devdesc.idProduct);
|
||||
"DEBUG: Device reset failed, error code: %d\n",
|
||||
errcode);
|
||||
else
|
||||
fprintf(stderr,
|
||||
"DEBUG: Resetting printer.\n");
|
||||
}
|
||||
|
||||
libusb_free_config_descriptor(confptr);
|
||||
|
||||
/*
|
||||
* Close the interface and return...
|
||||
*/
|
||||
@@ -694,12 +852,15 @@ find_device(usb_cb_t cb, /* I - Callback function */
|
||||
* a printer...
|
||||
*/
|
||||
|
||||
libusb_get_device_descriptor(device, &devdesc);
|
||||
if (libusb_get_device_descriptor(device, &devdesc) < 0)
|
||||
continue;
|
||||
|
||||
if (!devdesc.bNumConfigurations || !devdesc.idVendor ||
|
||||
!devdesc.idProduct)
|
||||
continue;
|
||||
|
||||
printer.quirks = quirks(devdesc.idVendor, devdesc.idProduct);
|
||||
|
||||
for (conf = 0; conf < devdesc.bNumConfigurations; conf ++)
|
||||
{
|
||||
if (libusb_get_config_descriptor(device, conf, &confptr) < 0)
|
||||
@@ -724,13 +885,18 @@ find_device(usb_cb_t cb, /* I - Callback function */
|
||||
* 1284.4 (packet mode) protocol as well.
|
||||
*/
|
||||
|
||||
if (altptr->bInterfaceClass != LIBUSB_CLASS_PRINTER ||
|
||||
altptr->bInterfaceSubClass != 1 ||
|
||||
if (((altptr->bInterfaceClass != LIBUSB_CLASS_PRINTER ||
|
||||
altptr->bInterfaceSubClass != 1) &&
|
||||
((printer.quirks & USBLP_QUIRK_BAD_CLASS) == 0)) ||
|
||||
(altptr->bInterfaceProtocol != 1 && /* Unidirectional */
|
||||
altptr->bInterfaceProtocol != 2) || /* Bidirectional */
|
||||
altptr->bInterfaceProtocol < protocol)
|
||||
continue;
|
||||
|
||||
if (printer.quirks & USBLP_QUIRK_BAD_CLASS)
|
||||
fprintf(stderr, "DEBUG: Printer does not report class 7 and/or "
|
||||
"subclass 1 but works as a printer anyway\n");
|
||||
|
||||
read_endp = -1;
|
||||
write_endp = -1;
|
||||
|
||||
@@ -755,7 +921,10 @@ find_device(usb_cb_t cb, /* I - Callback function */
|
||||
protocol = altptr->bInterfaceProtocol;
|
||||
printer.altset = altset;
|
||||
printer.write_endp = write_endp;
|
||||
printer.read_endp = read_endp;
|
||||
if (protocol > 1)
|
||||
printer.read_endp = read_endp;
|
||||
else
|
||||
printer.read_endp = -1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -773,16 +942,41 @@ find_device(usb_cb_t cb, /* I - Callback function */
|
||||
make_device_uri(&printer, device_id, device_uri,
|
||||
sizeof(device_uri));
|
||||
|
||||
fprintf(stderr, "DEBUG2: Printer found with device ID: %s "
|
||||
"Device URI: %s\n",
|
||||
device_id, device_uri);
|
||||
|
||||
if ((*cb)(&printer, device_uri, device_id, data))
|
||||
{
|
||||
printer.read_endp = confptr->interface[printer.iface].
|
||||
altsetting[printer.altset].
|
||||
endpoint[printer.read_endp].
|
||||
bEndpointAddress;
|
||||
fprintf(stderr, "DEBUG: Device protocol: %d\n",
|
||||
printer.protocol);
|
||||
if (printer.quirks & USBLP_QUIRK_BIDIR)
|
||||
{
|
||||
printer.read_endp = -1;
|
||||
fprintf(stderr, "DEBUG: Printer reports bi-di support "
|
||||
"but in reality works only uni-directionally\n");
|
||||
}
|
||||
if (printer.read_endp != -1)
|
||||
{
|
||||
printer.read_endp = confptr->interface[printer.iface].
|
||||
altsetting[printer.altset].
|
||||
endpoint[printer.read_endp].
|
||||
bEndpointAddress;
|
||||
}
|
||||
else
|
||||
fprintf(stderr, "DEBUG: Uni-directional USB communication "
|
||||
"only!\n");
|
||||
printer.write_endp = confptr->interface[printer.iface].
|
||||
altsetting[printer.altset].
|
||||
endpoint[printer.write_endp].
|
||||
bEndpointAddress;
|
||||
if (printer.quirks & USBLP_QUIRK_NO_REATTACH)
|
||||
{
|
||||
printer.usblp_attached = 0;
|
||||
fprintf(stderr, "DEBUG: Printer does not like usblp "
|
||||
"kernel module to be re-attached after job\n");
|
||||
}
|
||||
libusb_free_config_descriptor(confptr);
|
||||
return (&printer);
|
||||
}
|
||||
|
||||
@@ -1086,15 +1280,20 @@ open_device(usb_printer_t *printer, /* I - Printer */
|
||||
* Try opening the printer...
|
||||
*/
|
||||
|
||||
if (libusb_open(printer->device, &printer->handle) < 0)
|
||||
if ((errcode = libusb_open(printer->device, &printer->handle)) < 0)
|
||||
{
|
||||
fprintf(stderr, "DEBUG: Failed to open device, code: %d\n",
|
||||
errcode);
|
||||
return (-1);
|
||||
}
|
||||
|
||||
printer->usblp_attached = 0;
|
||||
printer->opened_for_job = 0;
|
||||
|
||||
if (verbose)
|
||||
fputs("STATE: +connecting-to-device\n", stderr);
|
||||
|
||||
if ((errcode = libusb_get_device_descriptor (printer->device, &devdesc)) < 0)
|
||||
if ((errcode = libusb_get_device_descriptor(printer->device, &devdesc)) < 0)
|
||||
{
|
||||
fprintf(stderr, "DEBUG: Failed to get device descriptor, code: %d\n",
|
||||
errcode);
|
||||
@@ -1142,12 +1341,22 @@ open_device(usb_printer_t *printer, /* I - Printer */
|
||||
0, 0, (unsigned char *)¤t, 1, 5000) < 0)
|
||||
current = 0; /* Assume not configured */
|
||||
|
||||
libusb_get_device_descriptor(printer->device, &devdesc);
|
||||
libusb_get_config_descriptor(printer->device, printer->conf, &confptr);
|
||||
printer->origconf = current;
|
||||
|
||||
if ((errcode =
|
||||
libusb_get_config_descriptor (printer->device, printer->conf, &confptr))
|
||||
< 0)
|
||||
{
|
||||
fprintf(stderr, "DEBUG: Failed to get config descriptor for %04x:%04x\n",
|
||||
devdesc.idVendor, devdesc.idProduct);
|
||||
goto error;
|
||||
}
|
||||
number1 = confptr->bConfigurationValue;
|
||||
|
||||
if (number1 != current)
|
||||
{
|
||||
fprintf(stderr, "DEBUG: Switching USB device configuration: %d -> %d\n",
|
||||
current, number1);
|
||||
if ((errcode = libusb_set_configuration(printer->handle, number1)) < 0)
|
||||
{
|
||||
/*
|
||||
@@ -1162,38 +1371,6 @@ open_device(usb_printer_t *printer, /* I - Printer */
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Get the "usblp" kernel module out of the way. This backend only
|
||||
* works without the module attached.
|
||||
*/
|
||||
|
||||
errcode = libusb_kernel_driver_active(printer->handle, printer->iface);
|
||||
if (errcode == 0)
|
||||
printer->usblp_attached = 0;
|
||||
else if (errcode == 1)
|
||||
{
|
||||
printer->usblp_attached = 1;
|
||||
if ((errcode =
|
||||
libusb_detach_kernel_driver(printer->handle, printer->iface)) < 0)
|
||||
{
|
||||
fprintf(stderr, "DEBUG: Failed to detach \"usblp\" module from %04x:%04x\n",
|
||||
devdesc.idVendor, devdesc.idProduct);
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
printer->usblp_attached = 0;
|
||||
|
||||
if (errcode != LIBUSB_ERROR_NOT_SUPPORTED)
|
||||
{
|
||||
fprintf(stderr,
|
||||
"DEBUG: Failed to check whether %04x:%04x has the \"usblp\" "
|
||||
"kernel module attached\n", devdesc.idVendor, devdesc.idProduct);
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Claim interfaces as needed...
|
||||
*/
|
||||
@@ -1358,6 +1535,64 @@ print_cb(usb_printer_t *printer, /* I - Printer */
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* 'printer_class_soft_reset()' - Do the soft reset request specific to printers
|
||||
*
|
||||
* This soft reset is specific to the printer device class and is much less
|
||||
* invasive than the general USB reset libusb_reset_device(). Especially it
|
||||
* does never happen that the USB addressing and configuration changes. What
|
||||
* is actually done is that all buffers get flushed and the bulk IN and OUT
|
||||
* pipes get reset to their default states. This clears all stall conditions.
|
||||
* See http://cholla.mmto.org/computers/linux/usb/usbprint11.pdf
|
||||
*/
|
||||
|
||||
static int /* O - 0 on success, < 0 on error */
|
||||
printer_class_soft_reset(usb_printer_t *printer) /* I - Printer */
|
||||
{
|
||||
struct libusb_config_descriptor *confptr = NULL;
|
||||
/* Pointer to current configuration */
|
||||
int interface,
|
||||
errcode;
|
||||
|
||||
if (libusb_get_config_descriptor(printer->device, printer->conf, &confptr)
|
||||
< 0)
|
||||
interface = printer->iface;
|
||||
else
|
||||
interface = confptr->interface[printer->iface].
|
||||
altsetting[printer->altset].bInterfaceNumber;
|
||||
libusb_free_config_descriptor(confptr);
|
||||
if ((errcode = libusb_control_transfer(printer->handle,
|
||||
LIBUSB_REQUEST_TYPE_CLASS |
|
||||
LIBUSB_ENDPOINT_OUT |
|
||||
LIBUSB_RECIPIENT_OTHER,
|
||||
2, 0, interface, NULL, 0, 5000)) < 0)
|
||||
errcode = libusb_control_transfer(printer->handle,
|
||||
LIBUSB_REQUEST_TYPE_CLASS |
|
||||
LIBUSB_ENDPOINT_OUT |
|
||||
LIBUSB_RECIPIENT_INTERFACE,
|
||||
2, 0, interface, NULL, 0, 5000);
|
||||
return errcode;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* 'quirks()' - Get the known quirks of a given printer model
|
||||
*/
|
||||
|
||||
static unsigned int quirks(int vendor, int product)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; quirk_printers[i].vendorId; i++)
|
||||
{
|
||||
if (vendor == quirk_printers[i].vendorId &&
|
||||
product == quirk_printers[i].productId)
|
||||
return quirk_printers[i].quirks;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* 'read_thread()' - Thread to read the backchannel data on.
|
||||
*/
|
||||
@@ -1632,7 +1867,7 @@ static void soft_reset(void)
|
||||
* Send the reset...
|
||||
*/
|
||||
|
||||
libusb_reset_device (g.printer->handle);
|
||||
printer_class_soft_reset(g.printer);
|
||||
|
||||
/*
|
||||
* Release the I/O lock...
|
||||
|
||||
+7
-3
@@ -3,7 +3,7 @@
|
||||
*
|
||||
* "lpq" command for CUPS.
|
||||
*
|
||||
* Copyright 2007-2011 by Apple Inc.
|
||||
* Copyright 2007-2012 by Apple Inc.
|
||||
* Copyright 1997-2006 by Easy Software Products.
|
||||
*
|
||||
* These coded instructions, statements, and computer programs are the
|
||||
@@ -371,6 +371,7 @@ show_jobs(const char *command, /* I - Command name */
|
||||
* attributes-natural-language
|
||||
* job-uri or printer-uri
|
||||
* requested-attributes
|
||||
* requesting-user-name
|
||||
*/
|
||||
|
||||
request = ippNewRequest(id ? IPP_GET_JOB_ATTRIBUTES : IPP_GET_JOBS);
|
||||
@@ -399,6 +400,9 @@ show_jobs(const char *command, /* I - Command name */
|
||||
"requesting-user-name", NULL, user);
|
||||
ippAddBoolean(request, IPP_TAG_OPERATION, "my-jobs", 1);
|
||||
}
|
||||
else
|
||||
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME,
|
||||
"requesting-user-name", NULL, cupsUser());
|
||||
|
||||
ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD,
|
||||
"requested-attributes",
|
||||
@@ -447,8 +451,8 @@ show_jobs(const char *command, /* I - Command name */
|
||||
jobpriority = 50;
|
||||
#endif /* __osf__ */
|
||||
jobstate = IPP_JOB_PENDING;
|
||||
jobname = "untitled";
|
||||
jobuser = NULL;
|
||||
jobname = "unknown";
|
||||
jobuser = "unknown";
|
||||
jobdest = NULL;
|
||||
jobcopies = 1;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
dnl
|
||||
dnl "$Id: cups-common.m4 10512 2012-05-25 02:19:37Z mike $"
|
||||
dnl "$Id: cups-common.m4 10548 2012-07-16 18:21:43Z mike $"
|
||||
dnl
|
||||
dnl Common configuration stuff for CUPS.
|
||||
dnl
|
||||
@@ -20,11 +20,11 @@ dnl Set the name of the config header file...
|
||||
AC_CONFIG_HEADER(config.h)
|
||||
|
||||
dnl Version number information...
|
||||
CUPS_VERSION="1.6b1"
|
||||
CUPS_VERSION="1.6.0"
|
||||
CUPS_REVISION=""
|
||||
if test -z "$CUPS_REVISION" -a -d .svn; then
|
||||
CUPS_REVISION="-r`svnversion . | awk -F: '{print $NF}' | sed -e '1,$s/[[a-zA-Z]]*//g'`"
|
||||
fi
|
||||
#if test -z "$CUPS_REVISION" -a -d .svn; then
|
||||
# CUPS_REVISION="-r`svnversion . | awk -F: '{print $NF}' | sed -e '1,$s/[[a-zA-Z]]*//g'`"
|
||||
#fi
|
||||
CUPS_BUILD="cups-$CUPS_VERSION"
|
||||
|
||||
AC_ARG_WITH(cups_build, [ --with-cups-build set "cups-config --build" string ],
|
||||
@@ -452,5 +452,5 @@ esac
|
||||
AC_SUBST(BUILDDIRS)
|
||||
|
||||
dnl
|
||||
dnl End of "$Id: cups-common.m4 10512 2012-05-25 02:19:37Z mike $".
|
||||
dnl End of "$Id: cups-common.m4 10548 2012-07-16 18:21:43Z mike $".
|
||||
dnl
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
dnl
|
||||
dnl "$Id: cups-ssl.m4 10478 2012-05-18 17:59:14Z mike $"
|
||||
dnl "$Id: cups-ssl.m4 10521 2012-06-15 22:23:24Z mike $"
|
||||
dnl
|
||||
dnl OpenSSL/GNUTLS stuff for CUPS.
|
||||
dnl
|
||||
@@ -56,12 +56,6 @@ if test x$enable_ssl != xno; then
|
||||
AC_CHECK_HEADER(Security/SecIdentitySearchPriv.h,
|
||||
AC_DEFINE(HAVE_SECIDENTITYSEARCHPRIV_H))
|
||||
|
||||
dnl Check for SSLSetProtocolVersionMax...
|
||||
SAVELIBS="$LIBS"
|
||||
LIBS="$LIBS -framework Security"
|
||||
AC_CHECK_FUNC(SSLSetProtocolVersionMax)
|
||||
LIBS="$SAVELIBS"
|
||||
|
||||
dnl Check for SecCertificateCopyData..
|
||||
AC_MSG_CHECKING(for SecCertificateCopyData)
|
||||
if test $uversion -ge 100; then
|
||||
@@ -179,5 +173,5 @@ EXPORT_SSLLIBS="$SSLLIBS"
|
||||
AC_SUBST(EXPORT_SSLLIBS)
|
||||
|
||||
dnl
|
||||
dnl End of "$Id: cups-ssl.m4 10478 2012-05-18 17:59:14Z mike $".
|
||||
dnl End of "$Id: cups-ssl.m4 10521 2012-06-15 22:23:24Z mike $".
|
||||
dnl
|
||||
|
||||
@@ -345,13 +345,6 @@
|
||||
#undef HAVE_SECPOLICYCREATESSL
|
||||
|
||||
|
||||
/*
|
||||
* Do we have the SSLSetProtocolVersionMax function?
|
||||
*/
|
||||
|
||||
#undef HAVE_SSLSETPROTOCOLVERSIONMAX
|
||||
|
||||
|
||||
/*
|
||||
* Do we have the cssmErrorString function?
|
||||
*/
|
||||
@@ -359,25 +352,6 @@
|
||||
#undef HAVE_CSSMERRORSTRING
|
||||
|
||||
|
||||
/*
|
||||
* Do we have the SLP library?
|
||||
*/
|
||||
|
||||
#undef HAVE_LIBSLP
|
||||
|
||||
|
||||
/*
|
||||
* Do we have an LDAP library?
|
||||
*/
|
||||
|
||||
#undef HAVE_LDAP
|
||||
#undef HAVE_OPENLDAP
|
||||
#undef HAVE_MOZILLA_LDAP
|
||||
#undef HAVE_LDAP_SSL_H
|
||||
#undef HAVE_LDAP_SSL
|
||||
#undef HAVE_LDAP_REBIND_PROC
|
||||
|
||||
|
||||
/*
|
||||
* Do we have libpaper?
|
||||
*/
|
||||
|
||||
+2
-2
@@ -304,7 +304,7 @@ libcups.2.dylib: $(LIBOBJS) $(LIBCUPSORDER)
|
||||
echo Linking $@...
|
||||
$(DSO) $(ARCHFLAGS) $(DSOFLAGS) -o $@ \
|
||||
-install_name $(libdir)/$@ \
|
||||
-current_version 2.9.0 \
|
||||
-current_version 2.10.0 \
|
||||
-compatibility_version 2.0.0 \
|
||||
-exported_symbols_list t.exp \
|
||||
$(LIBOBJS) $(LIBGSSAPI) $(SSLLIBS) $(DNSSDLIBS) \
|
||||
@@ -333,7 +333,7 @@ libcups_s.a: $(LIBOBJS) libcups_s.exp
|
||||
libcups.la: $(LIBOBJS)
|
||||
echo Linking $@...
|
||||
$(CC) $(ARCHFLAGS) $(DSOFLAGS) -o $@ $(LIBOBJS:.o=.lo) \
|
||||
-rpath $(LIBDIR) -version-info 2:9 $(LIBGSSAPI) $(SSLLIBS) \
|
||||
-rpath $(LIBDIR) -version-info 2:10 $(LIBGSSAPI) $(SSLLIBS) \
|
||||
$(DNSSDLIBS) $(COMMONLIBS) $(LIBZ)
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -788,7 +788,7 @@ _cupsLangString(cups_lang_t *lang, /* I - Language */
|
||||
* Range check input...
|
||||
*/
|
||||
|
||||
if (!lang || !message)
|
||||
if (!lang || !message || !*message)
|
||||
return (message);
|
||||
|
||||
_cupsMutexLock(&lang_mutex);
|
||||
|
||||
@@ -7,6 +7,8 @@ Terminal=false
|
||||
Type=Application
|
||||
Name=Manage Printing
|
||||
Comment=CUPS Web Interface
|
||||
Name[ca]=Gestor d'impressió
|
||||
Comment[ca]=Interfície web de CUPS
|
||||
Name[de]=Druckerverwaltung
|
||||
Comment[de]=CUPS Webinterface
|
||||
Name[en_US]=Manage Printing
|
||||
|
||||
@@ -0,0 +1,107 @@
|
||||
<!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>Inici - 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="/"> Inici </A></TD>
|
||||
<TD CLASS="unsel"><A HREF="/admin"> Administració </A></TD>
|
||||
<TD CLASS="unsel"><A HREF="/classes/"> Classes </A></TD>
|
||||
<TD CLASS="unsel"><A HREF="/help/"> Ajuda en línia </A></TD>
|
||||
<TD CLASS="unsel"><A HREF="/jobs/"> Tasques </A></TD>
|
||||
<TD CLASS="unsel"><A HREF="/printers/"> Impressores </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 és el sistema d'impressió de codi obert i basat en estandards desenvolupat per
|
||||
<A HREF="http://www.apple.com/">Apple Inc.</A> per OS<SUP>®</SUP> X and
|
||||
altres sistemes operatius basats en UNIX<SUP>®</SUP></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 per usuaris</H2>
|
||||
|
||||
<P><A HREF="help/overview.html">Descripció general del CUPS</A></P>
|
||||
|
||||
<P><A HREF="help/options.html">Impresió i opcions en linia de comandes</A></P>
|
||||
|
||||
<P><A HREF="help/whatsnew.html">Novetats del CUPS 1.4</A></P>
|
||||
|
||||
<P><A HREF="http://www.cups.org/newsgroups.php?gcups.general">Fòrum d'usuaris</A></P>
|
||||
|
||||
</TD><TD VALIGN="top" STYLE="border-right: dotted thin #cccccc; padding-left: 20px; padding-right: 20px;">
|
||||
|
||||
<H2>CUPS per Administradors</H2>
|
||||
|
||||
<P><A HREF="admin">Afegir impressores i classes</A></P>
|
||||
|
||||
<P><A HREF="help/policies.html">Gestió de les polítiques de treball</A></P>
|
||||
|
||||
<P><A HREF="help/accounting.html">Bàsic de comptes d'impressió</A></P>
|
||||
|
||||
<P><A HREF="help/security.html">Seguritat del servidor</A></P>
|
||||
|
||||
<P><A HREF="help/kerberos.html">Ús d'autenticació amb el Kerberos</A></P>
|
||||
|
||||
<P><A HREF="help/network.html">Ús d'impressores en xarxa</A></P>
|
||||
|
||||
<P><A HREF="help/ref-cupsd-conf.html">Referència del cupsd.conf</A></P>
|
||||
|
||||
<P><A HREF="http://www.cups.org/ppd.php">Cerca de controladors d'impressora</A></P>
|
||||
|
||||
</TD><TD VALIGN="top" STYLE="padding-left: 20px;">
|
||||
|
||||
<H2>CUPS per desenvolupadors</H2>
|
||||
|
||||
<P><A HREF="help/api-overview.html">Introducció a la programació amb CUPS</A></P>
|
||||
|
||||
<P><A HREF="help/api-cups.html">La API de CUPS</A></P>
|
||||
|
||||
<P><A HREF="help/api-filter.html">Programació de filtres i rerefons</A></P>
|
||||
|
||||
<P><A HREF="help/api-httpipp.html">APIs per HTTP i IPP</A></P>
|
||||
|
||||
<P><A HREF="help/api-ppd.html">API per PPD</A></P>
|
||||
|
||||
<P><A HREF="help/api-raster.html">API per Raster</A></P>
|
||||
|
||||
<P><A HREF="help/ref-ppdcfile.html">Referència del fitxer d'inf. del compilador del controlador per PPD</A></P>
|
||||
|
||||
<P><A HREF="http://www.cups.org/newsgroups.php?gcups.development">Fòrum de desenvolupadors</A></P>
|
||||
|
||||
</TD></TR>
|
||||
</TABLE>
|
||||
|
||||
</TD></TR>
|
||||
<TR><TD> </TD></TR>
|
||||
<TR><TD CLASS="trailer">CUPS i el seu logotip són marques registrades de
|
||||
<A HREF="http://www.apple.com">Apple Inc.</A> CUPS té copyright 2007-2012 d'Apple
|
||||
Inc. Tots els drets reservats.</TD></TR>
|
||||
</TABLE>
|
||||
</BODY>
|
||||
</HTML>
|
||||
@@ -0,0 +1,107 @@
|
||||
<!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>Inicio - 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="/"> Inicio </A></TD>
|
||||
<TD CLASS="unsel"><A HREF="/admin"> Administración </A></TD>
|
||||
<TD CLASS="unsel"><A HREF="/classes/"> Clases </A></TD>
|
||||
<TD CLASS="unsel"><A HREF="/help/"> Ayuda en línea </A></TD>
|
||||
<TD CLASS="unsel"><A HREF="/jobs/"> Trabajos </A></TD>
|
||||
<TD CLASS="unsel"><A HREF="/printers/"> Impresoras </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 es el sistema de impresión de código abierto basado en
|
||||
estándares desarrollado por <A HREF="http://www.apple.com/">Apple Inc.</A> para
|
||||
OS<SUP>®</SUP> X y otros sistemas operativos tipo UNIX<SUP>®</SUP>.</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 para usuarios</H2>
|
||||
|
||||
<P><A HREF="help/overview.html">Descripción de CUPS</A></P>
|
||||
|
||||
<P><A HREF="help/options.html">Impresión desde la línea de comandos y opciones</A></P>
|
||||
|
||||
<P><A HREF="help/whatsnew.html">Qué hay de nuevo en CUPS 1.6</A></P>
|
||||
|
||||
<P><A HREF="http://www.cups.org/newsgroups.php?gcups.general">Foro de usuarios</A></P>
|
||||
|
||||
</TD><TD VALIGN="top" STYLE="border-right: dotted thin #cccccc; padding-left: 20px; padding-right: 20px;">
|
||||
|
||||
<H2>CUPS para administradores</H2>
|
||||
|
||||
<P><A HREF="admin">Añadiendo impresoras y clases</A></P>
|
||||
|
||||
<P><A HREF="help/policies.html">Gestionando políticas de funcionamiento</A></P>
|
||||
|
||||
<P><A HREF="help/accounting.html">Contabilidad básica de impresora</A></P>
|
||||
|
||||
<P><A HREF="help/security.html">Seguridad del servidor</A></P>
|
||||
|
||||
<P><A HREF="help/kerberos.html">Usando autentificación Kerberos</A></P>
|
||||
|
||||
<P><A HREF="help/network.html">Usando impresoras de red</A></P>
|
||||
|
||||
<P><A HREF="help/ref-cupsd-conf.html">Referencia de cupsd.conf</A></P>
|
||||
|
||||
<P><A HREF="http://www.cups.org/ppd.php">Encontrar controladores de impresora</A></P>
|
||||
|
||||
</TD><TD VALIGN="top" STYLE="padding-left: 20px;">
|
||||
|
||||
<H2>CUPS para desarrolladores</H2>
|
||||
|
||||
<P><A HREF="help/api-overview.html">Introducción a la programación de CUPS</A></P>
|
||||
|
||||
<P><A HREF="help/api-cups.html">La API de CUPS</A></P>
|
||||
|
||||
<P><A HREF="help/api-filter.html">Programación de filtros y programas de conexión</A></P>
|
||||
|
||||
<P><A HREF="help/api-httpipp.html">Las APIs HTTP e IPP</A></P>
|
||||
|
||||
<P><A HREF="help/api-ppd.html">La API PPD</A></P>
|
||||
|
||||
<P><A HREF="help/api-raster.html">La API Raster</A></P>
|
||||
|
||||
<P><A HREF="help/ref-ppdcfile.html">Referencia del archivo de información del compilador de controladores PPD</A></P>
|
||||
|
||||
<P><A HREF="http://www.cups.org/newsgroups.php?gcups.development">Foro de desarrollo</A></P>
|
||||
|
||||
</TD></TR>
|
||||
</TABLE>
|
||||
|
||||
</TD></TR>
|
||||
<TR><TD> </TD></TR>
|
||||
<TR><TD CLASS="trailer">CUPS y el logo de CUPS son
|
||||
marcas registradas de <A HREF="http://www.apple.com">Apple Inc.</A> Los derechos
|
||||
de copia de CUPS 2007-2012 son de Apple Inc. Todos los derechos reservados.</TD></TR>
|
||||
</TABLE>
|
||||
</BODY>
|
||||
</HTML>
|
||||
+1
-1
@@ -32,7 +32,7 @@ AUTOSAVE="org.cups.help" RESULTS="20"></FORM></TD>
|
||||
<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 Mac OS<SUP>®</SUP> X and
|
||||
<A HREF="http://www.apple.com/">Apple Inc.</A> for OS<SUP>®</SUP> X and
|
||||
other UNIX<SUP>®</SUP>-like operating systems.</P>
|
||||
|
||||
</TD>
|
||||
|
||||
@@ -0,0 +1,107 @@
|
||||
<!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>ホーム - CUPS 1.6</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="/"> ホーム </A></TD>
|
||||
<TD CLASS="unsel"><A HREF="/admin"> 管理 </A></TD>
|
||||
<TD CLASS="unsel"><A HREF="/classes/"> クラス </A></TD>
|
||||
<TD CLASS="unsel"><A HREF="/help/"> ヘルプ </A></TD>
|
||||
<TD CLASS="unsel"><A HREF="/jobs/"> ジョブ </A></TD>
|
||||
<TD CLASS="unsel"><A HREF="/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 は、OS<SUP>®</SUP> X およびその他の UNIX <SUP>®</SUP> 系 OS のために、
|
||||
<A HREF="http://www.apple.com/">Apple Inc.</A>
|
||||
によって開発された標準ベースのオープンソース印刷システムです。</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>ユーザー向け</H2>
|
||||
|
||||
<P><A HREF="help/overview.html">CUPS の概要</A></P>
|
||||
|
||||
<P><A HREF="help/options.html">コマンドラインからの印刷とオプション</A></P>
|
||||
|
||||
<P><A HREF="help/whatsnew.html">CUPS 1.6 の新機能</A></P>
|
||||
|
||||
<P><A HREF="http://www.cups.org/newsgroups.php?gcups.general">ユーザーフォーラム</A></P>
|
||||
|
||||
</TD><TD VALIGN="top" STYLE="border-right: dotted thin #cccccc; padding-left: 20px; padding-right: 20px;">
|
||||
|
||||
<H2>管理者向け</H2>
|
||||
|
||||
<P><A HREF="admin">プリンターとクラスの追加</A></P>
|
||||
|
||||
<P><A HREF="help/policies.html">操作ポリシーの管理について</A></P>
|
||||
|
||||
<P><A HREF="help/accounting.html">プリンターアカウンティングの基本</A></P>
|
||||
|
||||
<P><A HREF="help/security.html">サーバーのセキュリティー</A></P>
|
||||
|
||||
<P><A HREF="help/kerberos.html">Kerberos 認証の使い方</A></P>
|
||||
|
||||
<P><A HREF="help/network.html">ネットワークプリンターの使い方</A></P>
|
||||
|
||||
<P><A HREF="help/ref-cupsd-conf.html">cupsd.conf リファレンス</A></P>
|
||||
|
||||
<P><A HREF="http://www.cups.org/ppd.php">プリンタードライバーの検索</A></P>
|
||||
|
||||
</TD><TD VALIGN="top" STYLE="padding-left: 20px;">
|
||||
|
||||
<H2>開発者向け</H2>
|
||||
|
||||
<P><A HREF="help/api-overview.html">CUPS プログラミングのイントロダクション</A></P>
|
||||
|
||||
<P><A HREF="help/api-cups.html">CUPS API</A></P>
|
||||
|
||||
<P><A HREF="help/api-filter.html">フィルタとバックエンドのプログラミング</A></P>
|
||||
|
||||
<P><A HREF="help/api-httpipp.html">HTTP と IPP の API</A></P>
|
||||
|
||||
<P><A HREF="help/api-ppd.html">PPD API</A></P>
|
||||
|
||||
<P><A HREF="help/api-raster.html">ラスター API</A></P>
|
||||
|
||||
<P><A HREF="help/ref-ppdcfile.html">PPD コンパイラー用ドライバー情報ファイル リファレンス</A></P>
|
||||
|
||||
<P><A HREF="http://www.cups.org/newsgroups.php?gcups.development">開発者フォーラム</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> CUPS is copyright 2007-2012 Apple
|
||||
Inc. All rights reserved.</TD></TR>
|
||||
</TABLE>
|
||||
</BODY>
|
||||
</HTML>
|
||||
+7285
Diferenças do arquivo suprimidas por serem muito extensas
Carregar Diff
+7316
Diferenças do arquivo suprimidas por serem muito extensas
Carregar Diff
+6973
Diferenças do arquivo suprimidas por serem muito extensas
Carregar Diff
+4
-9
@@ -1,5 +1,5 @@
|
||||
.\"
|
||||
.\" "$Id: cupsctl.man 10424 2012-04-23 17:26:57Z mike $"
|
||||
.\" "$Id: cupsctl.man 10544 2012-07-16 17:14:39Z mike $"
|
||||
.\"
|
||||
.\" cupsctl man page for CUPS.
|
||||
.\"
|
||||
@@ -12,7 +12,7 @@
|
||||
.\" which should have been included with this file. If this file is
|
||||
.\" file is missing or damaged, see the license at "http://www.cups.org/".
|
||||
.\"
|
||||
.TH cupsctl 8 "CUPS" "10 January 2011" "Apple Inc."
|
||||
.TH cupsctl 8 "CUPS" "16 July 2012" "Apple Inc."
|
||||
.SH NAME
|
||||
cupsctl \- configure cupsd.conf options
|
||||
.SH SYNOPSIS
|
||||
@@ -22,7 +22,7 @@ cupsctl \- configure cupsd.conf options
|
||||
] [ -h
|
||||
.I server[:port]
|
||||
] [ --[no-]debug-logging ] [ --[no-]remote-admin ] [ --[no-]remote-any ]
|
||||
[ --[no-]remote-printers ] [ --[no-]share-printers ] [ --[no-]user-cancel-any ]
|
||||
[ --[no-]share-printers ] [ --[no-]user-cancel-any ]
|
||||
[
|
||||
.I name=value
|
||||
]
|
||||
@@ -57,11 +57,6 @@ Enables or disables remote administration.
|
||||
.br
|
||||
Enables or disables printing from any address, e.g. the Internet.
|
||||
.TP 5
|
||||
--[no-]remote-printers
|
||||
.br
|
||||
Enables or disables the display of remote printers shared via the CUPS, LDAP,
|
||||
or SLP protocols.
|
||||
.TP 5
|
||||
--[no-]share-printers
|
||||
.br
|
||||
Enables or disables sharing of local printers with other computers.
|
||||
@@ -103,5 +98,5 @@ http://localhost:631/help
|
||||
.SH COPYRIGHT
|
||||
Copyright 2007-2012 by Apple Inc.
|
||||
.\"
|
||||
.\" End of "$Id: cupsctl.man 10424 2012-04-23 17:26:57Z mike $".
|
||||
.\" End of "$Id: cupsctl.man 10544 2012-07-16 17:14:39Z mike $".
|
||||
.\"
|
||||
|
||||
+28
-10
@@ -1,5 +1,5 @@
|
||||
.\"
|
||||
.\" "$Id: cupsfilter.man 10424 2012-04-23 17:26:57Z mike $"
|
||||
.\" "$Id: cupsfilter.man 10525 2012-06-20 15:59:17Z mike $"
|
||||
.\"
|
||||
.\" cupsfilter man page for CUPS.
|
||||
.\"
|
||||
@@ -11,18 +11,22 @@
|
||||
.\" which should have been included with this file. If this file is
|
||||
.\" file is missing or damaged, see the license at "http://www.cups.org/".
|
||||
.\"
|
||||
.TH cupsfilter 8 "CUPS" "4 March 2010" "Apple Inc."
|
||||
.TH cupsfilter 8 "CUPS" "20 June 2012" "Apple Inc."
|
||||
.SH NAME
|
||||
cupsfilter \- convert a file to another format using cups filters
|
||||
.SH SYNOPSIS
|
||||
.B cupsfilter
|
||||
[ -c
|
||||
[ -D ] [ -U
|
||||
.I user
|
||||
] [ -c
|
||||
.I config-file
|
||||
] [ -d
|
||||
.I printer
|
||||
] [ -e ] -j
|
||||
] [ -e ] [ -i
|
||||
.I mime/type
|
||||
] [ -j
|
||||
.I job-id[,N]
|
||||
[ -m
|
||||
] [ -m
|
||||
.I mime/type
|
||||
] [ -n
|
||||
.I copies
|
||||
@@ -32,7 +36,7 @@ cupsfilter \- convert a file to another format using cups filters
|
||||
.I filename.ppd
|
||||
] [ -t
|
||||
.I title
|
||||
]
|
||||
] [ -u ]
|
||||
.I filename
|
||||
.SH DESCRIPTION
|
||||
\fIcupsfilter\fR is a front-end to the CUPS filter subsystem which allows you
|
||||
@@ -40,6 +44,14 @@ to convert a file to a specific format, just as if you had printed the file
|
||||
through CUPS. By default, \fIcupsfilter\fR generates a PDF file.
|
||||
.SH OPTIONS
|
||||
.TP 5
|
||||
-D
|
||||
.br
|
||||
Delete the input file after conversion.
|
||||
.TP 5
|
||||
-U user
|
||||
.br
|
||||
Specifies the username passed to the filters. The default is the name of the current user.
|
||||
.TP 5
|
||||
-c config-file
|
||||
.br
|
||||
Uses the named cupsd.conf configuration file.
|
||||
@@ -51,6 +63,11 @@ Uses information from the named printer.
|
||||
.br
|
||||
Use every filter from the PPD file.
|
||||
.TP 5
|
||||
-i mime/type
|
||||
.br
|
||||
Specifies the source file type. The default file type is guessed using the
|
||||
filename and contents of the file.
|
||||
.TP 5
|
||||
-j job-id[,N]
|
||||
.br
|
||||
Converts document N from the specified job. If N is omitted, document 1 is
|
||||
@@ -77,9 +94,10 @@ Specifies the PPD file to use.
|
||||
-t title
|
||||
.br
|
||||
Specifies the document title.
|
||||
.SH KNOWN ISSUES
|
||||
\fIcupsfilter\fR currently does not use the filters defined in the PPD file.
|
||||
This will be addressed in a future CUPS release.
|
||||
.TP 5
|
||||
-u
|
||||
.br
|
||||
Delete the PPD file after conversion.
|
||||
.SH SEE ALSO
|
||||
\fIcupsd.conf(5)\fR
|
||||
.br
|
||||
@@ -87,5 +105,5 @@ http://localhost:631/help
|
||||
.SH COPYRIGHT
|
||||
Copyright 2007-2012 by Apple Inc.
|
||||
.\"
|
||||
.\" End of "$Id: cupsfilter.man 10424 2012-04-23 17:26:57Z mike $".
|
||||
.\" End of "$Id: cupsfilter.man 10525 2012-06-20 15:59:17Z mike $".
|
||||
.\"
|
||||
|
||||
+4
-10
@@ -1,5 +1,5 @@
|
||||
.\"
|
||||
.\" "$Id: lp.man 10424 2012-04-23 17:26:57Z mike $"
|
||||
.\" "$Id: lp.man 10541 2012-07-16 16:53:26Z mike $"
|
||||
.\"
|
||||
.\" lp man page for CUPS.
|
||||
.\"
|
||||
@@ -12,7 +12,7 @@
|
||||
.\" which should have been included with this file. If this file is
|
||||
.\" file is missing or damaged, see the license at "http://www.cups.org/".
|
||||
.\"
|
||||
.TH lp 1 "CUPS" "3 October 2011" "Apple Inc."
|
||||
.TH lp 1 "CUPS" "16 July 2012" "Apple Inc."
|
||||
.SH NAME
|
||||
lp - print files
|
||||
.SH SYNOPSIS
|
||||
@@ -179,7 +179,7 @@ Prints on one or two sides of the paper. The value
|
||||
(unrotated) pages, while "two-sided-short-edge" is used for
|
||||
landscape pages.
|
||||
.TP 5
|
||||
-o fitplot
|
||||
-o fit-to-page
|
||||
.br
|
||||
Scales the print file to fit on the page.
|
||||
.TP 5
|
||||
@@ -195,12 +195,6 @@ Scales the print file to fit on the page.
|
||||
.br
|
||||
Prints multiple document pages on each output page.
|
||||
.TP 5
|
||||
-o scaling=number
|
||||
.br
|
||||
Scales image files to use up to \fInumber\fR percent of the page.
|
||||
Values greater than 100 cause the image file to be printed across
|
||||
multiple pages.
|
||||
.TP 5
|
||||
-o cpi=N
|
||||
.br
|
||||
Sets the number of characters per inch to use when printing a
|
||||
@@ -254,5 +248,5 @@ http://localhost:631/help
|
||||
.SH COPYRIGHT
|
||||
Copyright 2007-2012 by Apple Inc.
|
||||
.\"
|
||||
.\" End of "$Id: lp.man 10424 2012-04-23 17:26:57Z mike $".
|
||||
.\" End of "$Id: lp.man 10541 2012-07-16 16:53:26Z mike $".
|
||||
.\"
|
||||
|
||||
+6
-7
@@ -1,5 +1,5 @@
|
||||
.\"
|
||||
.\" "$Id: lpadmin.man 10424 2012-04-23 17:26:57Z mike $"
|
||||
.\" "$Id: lpadmin.man 10542 2012-07-16 16:56:04Z mike $"
|
||||
.\"
|
||||
.\" lpadmin man page for CUPS.
|
||||
.\"
|
||||
@@ -12,7 +12,7 @@
|
||||
.\" which should have been included with this file. If this file is
|
||||
.\" file is missing or damaged, see the license at "http://www.cups.org/".
|
||||
.\"
|
||||
.TH lpadmin 8 "CUPS" "10 May 2011" "Apple Inc."
|
||||
.TH lpadmin 8 "CUPS" "16 July 2012" "Apple Inc."
|
||||
.SH NAME
|
||||
lpadmin \- configure cups printers and classes
|
||||
.SH SYNOPSIS
|
||||
@@ -182,10 +182,9 @@ user-level access control off.
|
||||
.TP 5
|
||||
-v "device-uri"
|
||||
.br
|
||||
Sets the \fIdevice-uri\fR attribute of the printer queue. If
|
||||
\fIdevice-uri\fR is a filename it is automatically converted to
|
||||
the form \fIfile:///file/name\fR. Use the \fI-v\fR option with the
|
||||
\fIlpinfo(8)\fR command to get a list of supported device URIs and schemes.
|
||||
Sets the \fIdevice-uri\fR attribute of the printer queue. Use the \fI-v\fR
|
||||
option with the \fIlpinfo(8)\fR command to get a list of supported device URIs
|
||||
and schemes.
|
||||
.TP 5
|
||||
-D "info"
|
||||
.br
|
||||
@@ -224,5 +223,5 @@ http://localhost:631/help
|
||||
.SH COPYRIGHT
|
||||
Copyright 2007-2012 by Apple Inc.
|
||||
.\"
|
||||
.\" End of "$Id: lpadmin.man 10424 2012-04-23 17:26:57Z mike $".
|
||||
.\" End of "$Id: lpadmin.man 10542 2012-07-16 16:56:04Z mike $".
|
||||
.\"
|
||||
|
||||
@@ -242,6 +242,12 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%dir /usr/share/doc/cups/images
|
||||
/usr/share/doc/cups/images/*
|
||||
|
||||
%dir /usr/share/doc/cups/ja
|
||||
/usr/share/doc/cups/ja/*
|
||||
|
||||
%dir /usr/share/locale/ja
|
||||
/usr/share/locale/ja/cups_ja.po
|
||||
|
||||
%dir /usr/share/man/man1
|
||||
/usr/share/man/man1/cancel.1.gz
|
||||
/usr/share/man/man1/cupstestdsc.1.gz
|
||||
|
||||
@@ -60,6 +60,7 @@ main(int argc, /* I - Number of command-line args */
|
||||
}
|
||||
|
||||
#ifdef HAVE_SANDBOX_H
|
||||
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
/*
|
||||
* Run in a separate security profile...
|
||||
*/
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*
|
||||
* Line Printer Daemon interface for CUPS.
|
||||
*
|
||||
* Copyright 2007-2011 by Apple Inc.
|
||||
* Copyright 2007-2012 by Apple Inc.
|
||||
* Copyright 1997-2006 by Easy Software Products, all rights reserved.
|
||||
*
|
||||
* These coded instructions, statements, and computer programs are the
|
||||
@@ -744,8 +744,7 @@ print_file(http_t *http, /* I - HTTP connection */
|
||||
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE,
|
||||
"document-format", NULL, format);
|
||||
|
||||
if (last)
|
||||
ippAddBoolean(request, IPP_TAG_OPERATION, "last-document", 1);
|
||||
ippAddBoolean(request, IPP_TAG_OPERATION, "last-document", last);
|
||||
|
||||
/*
|
||||
* Do the request...
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Afegeix una classe</H2>
|
||||
|
||||
<FORM METHOD="POST" ACTION="/admin">
|
||||
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
|
||||
<INPUT TYPE="HIDDEN" NAME="OP" VALUE="{op}">
|
||||
|
||||
<TABLE>
|
||||
<TR>
|
||||
<TH CLASS="label">Nom:</TH>
|
||||
<TD><INPUT TYPE="TEXT" NAME="PRINTER_NAME" SIZE="40" MAXLENGTH="127"><BR>
|
||||
<SMALL>(Pot contenir qualsevol caràcter excepte «/», «#», i espai)</SMALL></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Descripció:</TH>
|
||||
<TD><INPUT TYPE="TEXT" NAME="PRINTER_INFO" SIZE="40" MAXLENGTH="127"><BR>
|
||||
<SMALL>(Una descripció com ara «HP LaserJet de doble cara»)</SMALL></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Ubicació:</TH>
|
||||
<TD><INPUT TYPE="TEXT" NAME="PRINTER_LOCATION" SIZE="40" MAXLENGTH="127"><BR>
|
||||
<SMALL>(Una ubicació com ara «Laboratori 1»)</SMALL></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Membres:</TH>
|
||||
<TD>
|
||||
<SELECT NAME="MEMBER_URIS" SIZE="10" MULTIPLE>
|
||||
{[member_uris]<OPTION VALUE="{member_uris}" {?member_selected}>{member_names}}
|
||||
</SELECT>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD></TD>
|
||||
<TD><INPUT TYPE="SUBMIT" VALUE="Afegeix"></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
</FORM>
|
||||
</DIV>
|
||||
@@ -0,0 +1,47 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Afegir una impressora</H2>
|
||||
|
||||
<FORM METHOD="POST" ACTION="/admin">
|
||||
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
|
||||
<INPUT TYPE="HIDDEN" NAME="OP" VALUE="{op}">
|
||||
<INPUT TYPE="HIDDEN" NAME="BAUDRATE" VALUE="{?baudrate}">
|
||||
<INPUT TYPE="HIDDEN" NAME="BITS" VALUE="{?bits}">
|
||||
<INPUT TYPE="HIDDEN" NAME="PARITY" VALUE="{?parity}">
|
||||
<INPUT TYPE="HIDDEN" NAME="FLOW" VALUE="{?flow}">
|
||||
{?current_make!?<INPUT TYPE="HIDDEN" NAME="CURRENT_MAKE" VALUE="{current_make}">:}
|
||||
{?current_make_and_model!?<INPUT TYPE="HIDDEN" NAME="CURRENT_MAKE_AND_MODEL" VALUE="{current_make_and_model}">:}
|
||||
|
||||
<TABLE>
|
||||
<TR>
|
||||
<TH CLASS="label">Nom:</TH>
|
||||
<TD><INPUT TYPE="TEXT" NAME="PRINTER_NAME" SIZE="40" MAXLENGTH="127" VALUE="{?template_name}"><BR>
|
||||
<SMALL>(Pot contenir qualsevol caràcter excepte «/», «#», i espai)</SMALL></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Descripció:</TH>
|
||||
<TD><INPUT TYPE="TEXT" NAME="PRINTER_INFO" SIZE="40" MAXLENGTH="127" VALUE="{?PRINTER_INFO}"><BR>
|
||||
<SMALL>(Una descripció com ara «HP LaserJet de doble cara»)</SMALL></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Ubicació:</TH>
|
||||
<TD><INPUT TYPE="TEXT" NAME="PRINTER_LOCATION" SIZE="40" MAXLENGTH="127" VALUE="{?PRINTER_LOCATION}"><BR>
|
||||
<SMALL>(Una ubicació com ara «Laboratori 1»)</SMALL></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Connexió:</TH>
|
||||
<TD><INPUT TYPE="HIDDEN" NAME="DEVICE_URI" VALUE="{device_uri}">{device_uri}</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Compartir:</TH>
|
||||
<TD><INPUT TYPE="CHECKBOX" NAME="PRINTER_IS_SHARED" {PRINTER_IS_SHARED=1?CHECKED:}>
|
||||
Comparteix aquesta impressora</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD></TD>
|
||||
<TD><INPUT TYPE="SUBMIT" VALUE="Continua"></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
</FORM>
|
||||
</DIV>
|
||||
@@ -0,0 +1,44 @@
|
||||
<FORM METHOD="POST" ACTION="/admin">
|
||||
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
|
||||
<INPUT TYPE="HIDDEN" NAME="OP" VALUE="add-rss-subscription">
|
||||
|
||||
<H2 CLASS="title">Afegir una subscripció RSS</H2>
|
||||
|
||||
<TABLE SUMMARY="Add RSS Subscription form">
|
||||
<TR>
|
||||
<TH CLASS="label">Nom:</TH>
|
||||
<TD COLSPAN="5"><INPUT TYPE="TEXT" NAME="SUBSCRIPTION_NAME" SIZE="40" MAXLENGTH="127" VALUE="{?SUBSCRIPTION_NAME}"><BR>
|
||||
<SMALL>(Pot contenir qualsevol caràcter excepte espai «/», «?» i «#»)</SMALL></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Cua:</TH>
|
||||
<TD COLSPAN="5"><SELECT NAME="PRINTER_URI" SIZE="10"><OPTION VALUE="#ALL#"{?PRINTER_URI=#ALL#? SELECTED:}>Totes</OPTION>{[printer_name]<OPTION VALUE="{printer_uri_supported}"{?PRINTER_URI={printer_uri_supported}? SELECTED:}>{printer_name}</OPTION>}</SELECT></TD>
|
||||
</TR>
|
||||
<TR VALIGN="TOP">
|
||||
<TH CLASS="label">Esdeveniments:</TH>
|
||||
<TD><INPUT TYPE="CHECKBOX" NAME="EVENT_JOB_CREATED" {?EVENT_JOB_CREATED}>Creació de tasca<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="EVENT_JOB_COMPLETED" {?EVENT_JOB_COMPLETED}>Tasca completada<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="EVENT_JOB_STOPPED" {?EVENT_JOB_STOPPED}>Tasca aturada<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="EVENT_JOB_CONFIG_CHANGED" {?EVENT_JOB_CONFIG_CHANGED}>Modificació de les opcions de la tasca</TD>
|
||||
<TD> </TD>
|
||||
<TD><INPUT TYPE="CHECKBOX" NAME="EVENT_PRINTER_STOPPED" {?EVENT_PRINTER_STOPPED}>Cua aturada<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="EVENT_PRINTER_ADDED" {?EVENT_PRINTER_ADDED}>Cua afegida<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="EVENT_PRINTER_MODIFIED" {?EVENT_PRINTER_MODIFIED}>Modificació de la cua<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="EVENT_PRINTER_DELETED" {?EVENT_PRINTER_DELETED}>Eliminació de la cua</TD>
|
||||
<TD> </TD>
|
||||
<TD><INPUT TYPE="CHECKBOX" NAME="EVENT_SERVER_STARTED" {?EVENT_SERVER_STARTED}>Inicialització del servidor<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="EVENT_SERVER_STOPPED" {?EVENT_SERVER_STOPPED}>Aturada del servidor<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="EVENT_SERVER_RESTARTED" {?EVENT_SERVER_RESTARTED}>Servidor iniciat de nou<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="EVENT_SERVER_AUDIT" {?EVENT_SERVER_AUDIT}>Auditoria de seguretat del servidor</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Nombre màxims d'esdeveniments al canal:</TH>
|
||||
<TD COLSPAN="5"><INPUT TYPE="NUMBER" NAME="MAX_EVENTS" SIZE="4" MAXLENGTH="4" VALUE="{MAX_EVENTS?{MAX_EVENTS}:20}"></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD></TD>
|
||||
<TD COLSPAN="5"><INPUT TYPE="SUBMIT" VALUE="Afegeix"></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
</FORM>
|
||||
@@ -0,0 +1,102 @@
|
||||
<TABLE CLASS="indent" SUMMARY="Administration Tasks">
|
||||
<TR><TD VALIGN="TOP">
|
||||
|
||||
<H2 CLASS="title">Impressores</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="Afegeix una impressora"></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="Busca més impressores"></FORM>
|
||||
<FORM ACTION="/printers/" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Gestiona les impressores"></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="Exporta les impressores al Samba"></FORM>:}
|
||||
</P>
|
||||
|
||||
<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="Afegeix una classe"></FORM>
|
||||
<FORM ACTION="/classes/" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Gestiona les classes"></FORM>
|
||||
</P>
|
||||
|
||||
<H2 CLASS="title">Tasques</H2>
|
||||
|
||||
<P>
|
||||
<FORM ACTION="/jobs/" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Gestiona les tasques"></FORM>
|
||||
</P>
|
||||
|
||||
</TD><TD> </TD><TD VALIGN="TOP">
|
||||
|
||||
<H2 CLASS="title">Servidor</H2>
|
||||
|
||||
<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="Edita el fitxer de configuració"></FORM>
|
||||
<FORM ACTION="/admin/log/access_log" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Mostra el registre d'accés"></FORM>
|
||||
<FORM ACTION="/admin/log/error_log" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Mostra el registre d'errors"></FORM>
|
||||
<FORM ACTION="/admin/log/page_log" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Mostra la pàgina de registres"></FORM>
|
||||
</P>
|
||||
|
||||
{SETTINGS_ERROR?<P>{SETTINGS_MESSAGE}</P>
|
||||
<BLOCKQUOTE>{SETTINGS_ERROR}</BLOCKQUOTE>:
|
||||
|
||||
<FORM METHOD="POST" ACTION="/admin">
|
||||
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
|
||||
|
||||
{ADVANCEDSETTINGS?<P><B>Configuració del servidor\:</B></P>
|
||||
|
||||
<P><A HREF="/admin/">Avançat <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}> Comparteix les impressores connectades a aquest sistema<BR>
|
||||
Nombre màxim de clients\:
|
||||
<INPUT TYPE="TEXT" NAME="MAX_CLIENTS" VALUE="{?max_clients}" SIZE="6"><BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="REMOTE_ANY" {?remote_any}> Permet imprimir des d'Internet<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="BROWSE_WEB_IF" {?browse_web_if}> Anuncia la interfície web<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="REMOTE_ADMIN" {?remote_admin}> Permet l'administració remota<BR>
|
||||
{have_gssapi?<INPUT TYPE="CHECKBOX" NAME="KERBEROS" {?kerberos}> Fes servir l'autenticació Kerberos (<A HREF="/help/kerberos.html?TOPIC=Getting+Started">PMF</A>)<BR>:}
|
||||
<INPUT TYPE="CHECKBOX" NAME="USER_CANCEL_ANY" {?user_cancel_any}> Permet als usuaris cancel·lar qualsevol tasca (no només les pròpies)<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="PRESERVE_JOBS" {?preserve_jobs}> Conserva l'historial de tasques<BR>
|
||||
Nombre màxim de tasques (0 per ilimitat)\:
|
||||
<INPUT TYPE="TEXT" NAME="MAX_JOBS" VALUE="{?max_jobs}" SIZE="6"><BR>
|
||||
Conserva les metadades\:
|
||||
<INPUT TYPE="TEXT" NAME="PRESERVE_JOB_HISTORY" VALUE="{?preserve_job_history}" SIZE="6"><BR>
|
||||
Conserva els documents\:
|
||||
<INPUT TYPE="TEXT" NAME="PRESERVE_JOB_FILES" VALUE="{?preserve_job_files}" SIZE="6"><BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="DEBUG_LOGGING" {?debug_logging}> Desa la informació de depuració per la resolució de problemes<BR>
|
||||
Mida màxima de fitxer de registre\:
|
||||
<INPUT TYPE="TEXT" NAME="MAX_LOG_SIZE" VALUE="{?max_log_size}" SIZE="6"></P>
|
||||
|
||||
:<P><B>Configuració del servidor:</B></P>
|
||||
|
||||
<P><A HREF="/admin/?ADVANCEDSETTINGS=YES">Avançat <SMALL>▶</SMALL></A><BR>
|
||||
<INPUT TYPE="HIDDEN" NAME="OP" VALUE="config-server">
|
||||
<INPUT TYPE="CHECKBOX" NAME="SHARE_PRINTERS" {?share_printers}> Comparteix les impressores connectades a aquest sistema<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="REMOTE_ANY" {?remote_any}> Permet imprimir des d'Internet<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="REMOTE_ADMIN" {?remote_admin}> Permet l'administració remota<BR>
|
||||
{have_gssapi?<INPUT TYPE="CHECKBOX" NAME="KERBEROS" {?kerberos}> Fes servir l'autenticació Kerberos (<A HREF="/help/kerberos.html?TOPIC=Getting+Started">PMF</A>)<BR>:}
|
||||
<INPUT TYPE="CHECKBOX" NAME="USER_CANCEL_ANY" {?user_cancel_any}> Permet als usuaris cancel·lar qualsevol tasca (no només les pròpies)<BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="DEBUG_LOGGING" {?debug_logging}> Desa la informació de depuració per la resolució de problemes<BR>
|
||||
|
||||
}
|
||||
<P><INPUT TYPE="SUBMIT" NAME="CHANGESETTINGS" VALUE="Envia els canvis"></P>
|
||||
|
||||
</FORM>}
|
||||
|
||||
</TD></TR>
|
||||
</TABLE>
|
||||
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Subscripcions RSS</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="Afegeix una subscripció RSS"></FORM>
|
||||
</P>
|
||||
|
||||
</DIV>
|
||||
|
||||
{notify_subscription_id?<TABLE CLASS="list" SUMMARY="RSS Subscriptions">
|
||||
<THEAD><TR><TH>Nom</TH><TH>Esdeveniments</TH><TH>Nom de la cua</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·la la subscripció RSS"></FORM> </TD><TD>{notify_events}</TD><TD NOWRAP> {notify_printer_name?{notify_printer_name}:All Queues}</TD></TR>}
|
||||
</TBODY>
|
||||
</TABLE>:}
|
||||
@@ -0,0 +1,53 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">{op=modify-printer?Modifica {printer_name}:Add Printer}</H2>
|
||||
|
||||
{CUPS_GET_DEVICES_DONE?<FORM METHOD="POST" ACTION="/admin">
|
||||
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
|
||||
<INPUT TYPE="HIDDEN" NAME="OP" VALUE="{op}">
|
||||
{printer_name?<INPUT TYPE="HIDDEN" NAME="printer_name" VALUE="{printer_name}">:}
|
||||
|
||||
<TABLE>
|
||||
{op=add-printer?:<TR>
|
||||
<TH CLASS="label">Connexió actual\:</TH>
|
||||
<TD><INPUT TYPE="RADIO" NAME="DEVICE_URI" VALUE="{current_device_uri}" CHECKED>
|
||||
{current_device_uri}</TD>
|
||||
</TR>}
|
||||
<TR>
|
||||
<TH CLASS="label">Impressores locals\:</TH>
|
||||
<TD>
|
||||
{[device_uri]{device_class!network?<INPUT TYPE="RADIO" NAME="DEVICE_URI"
|
||||
VALUE="{device_uri}{?device_make_and_model!Unknown?|{device_make_and_model}:}">
|
||||
{device_info} {?device_make_and_model!Unknown?({device_make_and_model}):}<BR>
|
||||
:}}
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Impressores de xarxa descobertes\:</TH>
|
||||
<TD>
|
||||
{[device_uri]{device_class=network?{device_uri~[a-z]+://?<INPUT TYPE="RADIO" NAME="DEVICE_URI"
|
||||
VALUE="{device_uri}{?device_make_and_model!Unknown?|{device_make_and_model}:}">
|
||||
{device_info} {?device_make_and_model!Unknown?({device_make_and_model}):}<BR>
|
||||
:}:}}
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Altres impressores de xarxa\:</TH>
|
||||
<TD>
|
||||
{[device_uri]{device_class=network?{device_uri~[a-z]+://?:<INPUT TYPE="RADIO" NAME="DEVICE_URI"
|
||||
VALUE="{device_uri}{?device_make_and_model!Unknown?|{device_make_and_model}:}">
|
||||
{device_info} {?device_make_and_model!Unknown?({device_make_and_model}):}<BR>
|
||||
}:}}
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD></TD>
|
||||
<TD><INPUT TYPE="SUBMIT" VALUE="Continua"></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
</FORM>:<P><IMG SRC="/images/wait.gif" WIDTH="16" HEIGHT="16" ALIGN="ABSMIDDLE"
|
||||
ALT="Busy Indicator"> Buscant impressores...</P>}
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,64 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">{op=modify-printer?Modifica {printer_name}:Add Printer}</H2>
|
||||
|
||||
<FORM METHOD="POST" ACTION="/admin" ENCTYPE="multipart/form-data">
|
||||
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
|
||||
<INPUT TYPE="HIDDEN" NAME="OP" VALUE="{op}">
|
||||
{printer_name?<INPUT TYPE="HIDDEN" NAME="printer_name" VALUE="{printer_name}">:}
|
||||
<INPUT TYPE="HIDDEN" NAME="BAUDRATE" VALUE="{?baudrate}">
|
||||
<INPUT TYPE="HIDDEN" NAME="BITS" VALUE="{?bits}">
|
||||
<INPUT TYPE="HIDDEN" NAME="PARITY" VALUE="{?parity}">
|
||||
<INPUT TYPE="HIDDEN" NAME="FLOW" VALUE="{?flow}">
|
||||
|
||||
<TABLE>
|
||||
{op=modify-printer?:<TR>
|
||||
<TH CLASS="label">Nom:</TH>
|
||||
<TD><INPUT TYPE="HIDDEN" NAME="PRINTER_NAME" VALUE="{printer_name}">{printer_name}</TD>
|
||||
</TR>}
|
||||
<TR>
|
||||
<TH CLASS="label">Descripció:</TH>
|
||||
<TD><INPUT TYPE="HIDDEN" NAME="PRINTER_INFO" VALUE="{printer_info}">{printer_info}</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Ubicació:</TH>
|
||||
<TD><INPUT TYPE="HIDDEN" NAME="PRINTER_LOCATION" VALUE="{printer_location}">{printer_location}</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Connecció:</TH>
|
||||
<TD><INPUT TYPE="HIDDEN" NAME="DEVICE_URI" VALUE="{device_uri}">{device_uri}</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Compartida:</TH>
|
||||
<TD><INPUT TYPE="HIDDEN" NAME="PRINTER_IS_SHARED" VALUE="{?printer_is_shared}">
|
||||
{?printer_is_shared=?Do Not:{?printer_is_shared=0?Do Not:}} Comparteix aquesta impressora</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Fabricant:</TH>
|
||||
<TD>
|
||||
<SELECT NAME="PPD_MAKE" SIZE="10">
|
||||
{[ppd_make]<OPTION VALUE="{ppd_make}" {?current_make={ppd_make}?SELECTED:}>{ppd_make}}
|
||||
</SELECT>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD></TD>
|
||||
<TD><INPUT TYPE="SUBMIT" VALUE="Continua"></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD></TD>
|
||||
<TD> </TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">O indica un fitxer PPD:</TH>
|
||||
<TD><INPUT TYPE="HIDDEN" NAME="MAX_FILE_SIZE" VALUE="262144"><INPUT
|
||||
TYPE="FILE" NAME="PPD_FILE"></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD></TD>
|
||||
<TD><INPUT TYPE="SUBMIT" VALUE="{op=add-printer?Add Printer:Modifica la impressora}"></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
</FORM>
|
||||
</DIV>
|
||||
@@ -0,0 +1,60 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">{op=modify-printer?Modifica {printer_name}:Add Printer}</H2>
|
||||
|
||||
<FORM METHOD="POST" ACTION="/admin" ENCTYPE="multipart/form-data">
|
||||
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
|
||||
<INPUT TYPE="HIDDEN" NAME="OP" VALUE="{op}">
|
||||
{printer_name?<INPUT TYPE="HIDDEN" NAME="printer_name" VALUE="{printer_name}">:}
|
||||
<INPUT TYPE="HIDDEN" NAME="BAUDRATE" VALUE="{?baudrate}">
|
||||
<INPUT TYPE="HIDDEN" NAME="BITS" VALUE="{?bits}">
|
||||
<INPUT TYPE="HIDDEN" NAME="PARITY" VALUE="{?parity}">
|
||||
<INPUT TYPE="HIDDEN" NAME="FLOW" VALUE="{?flow}">
|
||||
<TABLE>
|
||||
{op=modify-printer?:<TR>
|
||||
<TH CLASS="label">Nom:</TH>
|
||||
<TD><INPUT TYPE="HIDDEN" NAME="PRINTER_NAME" VALUE="{printer_name}">{printer_name}</TD>
|
||||
</TR>}
|
||||
<TR>
|
||||
<TH CLASS="label">Descripció:</TH>
|
||||
<TD><INPUT TYPE="HIDDEN" NAME="PRINTER_INFO" VALUE="{printer_info}">{printer_info}</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Ubicació:</TH>
|
||||
<TD><INPUT TYPE="HIDDEN" NAME="PRINTER_LOCATION" VALUE="{printer_location}">{printer_location}</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Connecció:</TH>
|
||||
<TD><INPUT TYPE="HIDDEN" NAME="DEVICE_URI" VALUE="{device_uri}">{device_uri}</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Compartida:</TH>
|
||||
<TD><INPUT TYPE="HIDDEN" NAME="PRINTER_IS_SHARED" VALUE="{?printer_is_shared}">
|
||||
{?printer_is_shared=?Do Not:{?printer_is_shared=0?Do Not:}} Comparteix aquesta impressora</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Fabricant:</TH>
|
||||
<TD>{PPD_MAKE} <INPUT TYPE="SUBMIT" NAME="SELECT_MAKE" VALUE="Seleccioneu un altre fabricant"></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Model:</TH>
|
||||
<TD>
|
||||
<SELECT NAME="PPD_NAME" SIZE="10">
|
||||
{op=add-printer?:<OPTION VALUE="__no_change__" SELECTED>Current Driver - {current_make_and_model}</OPTION>:}
|
||||
{[ppd_name]<OPTION VALUE="{ppd_name}" {op=modify-printer?:{?current_make_and_model={ppd_make_and_model}?SELECTED:}}>{ppd_make_and_model} ({ppd_natural_language})
|
||||
}</SELECT>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">O indica un fitxer PPD:</TH>
|
||||
<TD><INPUT TYPE="HIDDEN" NAME="MAX_FILE_SIZE" VALUE="262144"><INPUT
|
||||
TYPE="FILE" NAME="PPD_FILE"></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD></TD>
|
||||
<TD><INPUT TYPE="SUBMIT" VALUE="{op=add-printer?Add Printer:Modifica la impressora}"></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
</FORM>
|
||||
</DIV>
|
||||
@@ -0,0 +1,52 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">{op=modify-printer?Modifica {printer_name}:Add Printer}</H2>
|
||||
|
||||
<FORM METHOD="POST" ACTION="/admin">
|
||||
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
|
||||
<INPUT TYPE="HIDDEN" NAME="OP" VALUE="{op}">
|
||||
{printer_name?<INPUT TYPE="HIDDEN" NAME="printer_name" VALUE="{printer_name}">:}
|
||||
|
||||
<TABLE>
|
||||
<TR>
|
||||
<TH CLASS="label">Connexió:</TH>
|
||||
<TD><INPUT TYPE="HIDDEN" NAME="DEVICE_URI" VALUE="{device_uri}">{device_uri}</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Velocitat:</TH>
|
||||
<TD><SELECT NAME="BAUDRATE">
|
||||
{[baudrates]<OPTION {?baudrate={baudrates}?SELECTED:}>{baudrates}}
|
||||
</SELECT></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Paritat:</TH>
|
||||
<TD><SELECT NAME="PARITY">
|
||||
<OPTION VALUE="none" {?parity=none?SELECTED:}>Cap
|
||||
<OPTION VALUE="even" {?parity=even?SELECTED:}>Parell
|
||||
<OPTION VALUE="odd" {?parity=odd?SELECTED:}>Senar
|
||||
</SELECT></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Bits de dades:</TH>
|
||||
<TD><SELECT NAME="BITS">
|
||||
<OPTION {?bits=8?SELECTED:}>8
|
||||
<OPTION {?bits=7?SELECTED:}>7
|
||||
</SELECT></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Control de flux:</TH>
|
||||
<TD><SELECT NAME="FLOW">
|
||||
<OPTION VALUE="none" {?flow=none?SELECTED:}>Cap
|
||||
<OPTION VALUE="soft" {?flow=soft?SELECTED:}>XON/XOFF (Programari)
|
||||
<OPTION VALUE="hard" {?flow=hard?SELECTED:}>RTS/CTS (Maquinari)
|
||||
<OPTION VALUE="dtrdsr" {?flow=dtrdsr?SELECTED:}>DTR/DSR (Maquinari)
|
||||
</SELECT></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD></TD>
|
||||
<TD><INPUT TYPE="SUBMIT" VALUE="Continua"></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
</FORM>
|
||||
</DIV>
|
||||
@@ -0,0 +1,43 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">{op=modify-printer?Modifica {printer_name}:Add Printer}</H2>
|
||||
|
||||
<FORM METHOD="POST" ACTION="/admin">
|
||||
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
|
||||
<INPUT TYPE="HIDDEN" NAME="OP" VALUE="{op}">
|
||||
{printer_name?<INPUT TYPE="HIDDEN" NAME="printer_name" VALUE="{printer_name}">:}
|
||||
<INPUT TYPE="HIDDEN" NAME="CURRENT_MAKE_AND_MODEL" VALUE="{?current_make_and_model}">
|
||||
|
||||
<TABLE>
|
||||
<TR>
|
||||
<TH CLASS="label">Connexió:</TH>
|
||||
<TD><INPUT TYPE="URL" SIZE="60" MAXLENGTH="1023" NAME="DEVICE_URI" VALUE="{current_device_uri?{current_device_uri}:{device_uri}}"></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD></TD>
|
||||
<TD>Exemples:
|
||||
<PRE>
|
||||
http://hostname:631/ipp/
|
||||
http://hostname:631/ipp/port1
|
||||
|
||||
ipp://hostname/ipp/
|
||||
ipp://hostname/ipp/port1
|
||||
|
||||
lpd://hostname/queue
|
||||
|
||||
socket://hostname
|
||||
socket://hostname:9100
|
||||
</PRE>
|
||||
|
||||
<P>Llegiu <A HREF="/help/network.html" TARGET="_blank">"Impressores de xarxa"</A> per saber quin URI heu de fer servir amb la vostre impressora.</P>
|
||||
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD></TD>
|
||||
<TD><INPUT TYPE="SUBMIT" VALUE="Continua"></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
</FORM>
|
||||
</DIV>
|
||||
@@ -0,0 +1,7 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Afegeix una classe</H2>
|
||||
|
||||
<P>La classe <A HREF="/classes/{printer_name}">{printer_name}</A> s'ha afegit correctament.
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,10 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Esborra la classe {printer_name}</H2>
|
||||
|
||||
<P><B>Avís:</B> Esteu segur que voleu esborrar la classe
|
||||
{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="Esborra la classe"></FORM></P>
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,7 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Esborra la classe {printer_name}</H2>
|
||||
|
||||
<P>La classe {printer_name} s'ha esborrat correctament.
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
<H3 CLASS="title">Tasques</H3>
|
||||
</DIV>
|
||||
@@ -0,0 +1,7 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Modifica la classe {printer_name}</H2>
|
||||
|
||||
<P>La classe <A HREF="/classes/{printer_name}">{printer_name}</A> s'ha modificat correctament.
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,44 @@
|
||||
<DIV CLASS="indent">
|
||||
<H2 CLASS="title"><A HREF="{printer_uri_supported}">{printer_name}</A>
|
||||
({printer_state=3?Inactiva:{printer_state=4?Processing:Paused}},
|
||||
{printer_is_accepting_jobs=0?No accepta tasques:Accepta tasques},
|
||||
{server_is_sharing_printers=0?No:{printer_is_shared=0?Not:}} Compartida{default_name={printer_name}?, Servidor per defecte:})</H2>
|
||||
|
||||
<FORM METHOD="POST" ACTION="{printer_uri_supported}" NAME="maintenance">
|
||||
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
|
||||
<SELECT NAME="OP" ONCHANGE="document.maintenance.submit();">
|
||||
<OPTION VALUE="">Manteniment</OPTION>
|
||||
<OPTION VALUE="print-test-page">Imprimeix una pàgina de prova</OPTION>
|
||||
{printer_state=5?<OPTION VALUE="start-class">Resume Class</OPTION>:<OPTION VALUE="stop-class">Pausa la classe</OPTION>}
|
||||
{printer_is_accepting_jobs=0?<OPTION VALUE="accept-jobs">Accepta Tasques</OPTION>:<OPTION VALUE="reject-jobs">No acceptis tasques</OPTION>}
|
||||
<OPTION VALUE="move-jobs">Mou totes les tasques</OPTION>
|
||||
<OPTION VALUE="purge-jobs">Cancel·a totes les tasques</OPTION>
|
||||
</SELECT>
|
||||
<INPUT TYPE="SUBMIT" VALUE="Go" STYLE="display: none;">
|
||||
</FORM>
|
||||
|
||||
<FORM METHOD="POST" ACTION="{admin_uri}" NAME="administration">
|
||||
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
|
||||
<INPUT TYPE="HIDDEN" NAME="printer_name" VALUE="{printer_name}">
|
||||
<INPUT TYPE="HIDDEN" NAME="IS_CLASS" VALUE="1">
|
||||
<SELECT NAME="OP" ONCHANGE="document.administration.submit();">
|
||||
<OPTION VALUE="">Administració</OPTION>
|
||||
<OPTION VALUE="modify-class">Modifica la classe</OPTION>
|
||||
<OPTION VALUE="delete-class">Esborra la classe</OPTION>
|
||||
<OPTION VALUE="set-class-options">Aplica les opcions per defecte</OPTION>
|
||||
<OPTION VALUE="set-as-default">Configura com a servidor per defecte</OPTION>
|
||||
<OPTION VALUE="set-allowed-users">Gestiona els permisos dels usuaris</OPTION>
|
||||
</SELECT>
|
||||
<INPUT TYPE="SUBMIT" VALUE="Go" STYLE="display: none;">
|
||||
</FORM>
|
||||
|
||||
<TABLE SUMMARY="{printer_name}">
|
||||
<TR><TH ALIGN="RIGHT" VALIGN="TOP">Descripció:</TH><TD>{printer_info}</TD></TR>
|
||||
<TR><TH ALIGN="RIGHT" VALIGN="TOP">Ubicació:</TH><TD>{printer_location}</TD></TR>
|
||||
<TR><TH ALIGN="RIGHT" VALIGN="TOP">Membres:</TH><TD>{?member_uris=?None:{member_uris}}</TD></TR>
|
||||
<TR><TH ALIGN="RIGHT" VALIGN="TOP">Per defecte:</TH><TD>plantilles={job_sheets_default}
|
||||
mitjà={media_default?{media_default}:unknown}
|
||||
{sides_default?laterals={sides_default}:}</TD></TR>
|
||||
</TABLE>
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1 @@
|
||||
<P ALIGN="CENTER">{total=0?No hi ha cap classe:Es mostr{total=1?a:en} {#printer_name} classe{total=1?:s} de {total}}.</P>
|
||||
@@ -0,0 +1,11 @@
|
||||
{#printer_name=0?:
|
||||
<TABLE CLASS="list" SUMMARY="Class List">
|
||||
<THEAD>
|
||||
<TR><TH><A HREF="{THISURL}?QUERY={?QUERY}&WHICH_JOBS={?WHICH_JOBS}&FIRST={FIRST}&ORDER={ORDER=dec?asc:dec}">{ORDER=dec?<SMALL>▲</SMALL> Nom de la cua <SMALL>▲</SMALL>:<SMALL>▼</SMALL> Nom de la cua <SMALL>▼</SMALL>}</A></TH><TH>Descripció</TH><TH>Ubicació</TH><TH>Membres</TH><TH>Estat</TH></TR>
|
||||
</THEAD>
|
||||
<TBODY>
|
||||
{[printer_name]
|
||||
<TR><TD><A HREF="{printer_uri_supported}">{printer_name}</A></TD><TD>{printer_info}</TD><TD>{printer_location}</TD><TD>{?member_uris=?None:{member_uris}}</TD><TD>{printer_state=3?Idle:{printer_state=4?Processing:Paused}}{printer_state_message? - "{printer_state_message}":}</TD></TR>
|
||||
}
|
||||
</TBODY>
|
||||
</TABLE></DIV>}
|
||||
@@ -0,0 +1,12 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">{title} a {printer_name}</H2>
|
||||
|
||||
<P>{job_state>5?:<IMG SRC="/images/wait.gif" WIDTH="16" HEIGHT="16"
|
||||
ALIGN="ABSMIDDLE" ALT="Busy Indicator"> }Comanda de tasca de la impressora
|
||||
{job_state=3?pendent:{job_state=4?pausat:
|
||||
{job_state=5?processant:{job_state=6?aturat:
|
||||
{job_state=7?cancel·lat:{job_state=8?abortat:completat}}}}}}{job_state=9?:{job_printer_state_message?,
|
||||
<EM>"{job_printer_state_message}"</EM>:}}</P>
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,24 @@
|
||||
<SCRIPT TYPE="text/javascript">
|
||||
function reset_config()
|
||||
{
|
||||
document.cups.CUPSDCONF.value = "{?cupsdconf_default}";
|
||||
}
|
||||
</SCRIPT>
|
||||
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Edita el fitxer de configuració</H2>
|
||||
|
||||
<FORM NAME="cups" METHOD="POST" ACTION="/admin/">
|
||||
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
|
||||
<INPUT TYPE="HIDDEN" NAME="OP" VALUE="config-server">
|
||||
|
||||
<TEXTAREA NAME="CUPSDCONF" COLS="80" ROWS="25">{CUPSDCONF}</TEXTAREA>
|
||||
|
||||
<P><INPUT TYPE="SUBMIT" NAME="SAVECHANGES" VALUE="Desa els canvis">
|
||||
<INPUT TYPE="BUTTON" VALUE="Fes servir el fitxer de configuació per defecte"
|
||||
onClick="reset_config();"></P>
|
||||
|
||||
</FORM>
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,9 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">{?title} {?printer_name} Error</H2>
|
||||
|
||||
<P>Error:</P>
|
||||
|
||||
<BLOCKQUOTE>Operació desconeguda "{op}"!</BLOCKQUOTE>
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,9 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">{?title} {?printer_name} Error</H2>
|
||||
|
||||
<P>{?message?{message}:Error}</P>
|
||||
|
||||
<BLOCKQUOTE>{error}</BLOCKQUOTE>
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,29 @@
|
||||
<!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}">:}
|
||||
</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="unsel"><A HREF="/"> Inici </A></TD>
|
||||
<TD CLASS="{SECTION=admin?:un}sel"><A HREF="/admin"> Administració </A></TD>
|
||||
<TD CLASS="{SECTION=classes?:un}sel"><A HREF="/classes/"> Classes </A></TD>
|
||||
<TD CLASS="{SECTION=help?:un}sel"><A HREF="/help/"> Ajuda en línia </A></TD>
|
||||
<TD CLASS="{SECTION=jobs?:un}sel"><A HREF="/jobs/"> Tasques </A></TD>
|
||||
<TD CLASS="{SECTION=printers?:un}sel"><A HREF="/printers/"> Impressores </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>
|
||||
@@ -0,0 +1,52 @@
|
||||
<DIV CLASS="indent">
|
||||
<FORM ACTION="/help/{?HELPFILE}" METHOD="GET">
|
||||
{TOPIC?<INPUT TYPE="HIDDEN" NAME="TOPIC" VALUE="{TOPIC}">:}
|
||||
|
||||
<P ALIGN="CENTER"><B>Cerca a
|
||||
{HELPTITLE?{HELPTITLE}:{TOPIC?{TOPIC}:tots els documents}}:</B> <INPUT
|
||||
TYPE="SEARCH" NAME="QUERY" VALUE="{?QUERY}" SIZE="40" PLACEHOLDER=""
|
||||
AUTOSAVE="org.cups.help" RESULTS="20">
|
||||
<INPUT TYPE="SUBMIT" NAME="SEARCH" VALUE="Cerca">
|
||||
<INPUT TYPE="SUBMIT" NAME="CLEAR" VALUE="Esborra"></P>
|
||||
|
||||
</FORM>
|
||||
|
||||
<!-- Bookmarks -->
|
||||
<DIV CLASS="sidebar"><TABLE CLASS="inset" SUMMARY="Contents">
|
||||
<TR><TD>
|
||||
|
||||
<H3 CLASS="title">Documents d'ajuda en línia</H3>
|
||||
|
||||
<P CLASS="l0"><A HREF="/help/{QUERY??QUERY={QUERY}:}">Tots els documents</A></P>
|
||||
<HR>
|
||||
|
||||
{[BMTEXT]<P CLASS="l{BMINDENT}"><A HREF="{BMLINK}">{BMTEXT}</A></P>
|
||||
}
|
||||
</TD></TR>
|
||||
</TABLE></DIV>
|
||||
|
||||
{QUERY?<P>Resultats de la cerca a {HELPFILE?{HELPTITLE}:{TOPIC?{TOPIC}:tots els documents}}\:</P>
|
||||
{QTEXT?<UL>
|
||||
{[QTEXT]<LI><A HREF="{QLINK}">{QTEXT}</A>{QPTEXT? (in <I><A HREF="{QPLINK}">{QPTEXT}</A></I>):}</LI>}
|
||||
{QTEXT?</UL>:}
|
||||
:<P>No s'ha trobat cap coincidència.</P>}
|
||||
<HR NOSHADE>:}
|
||||
{HELPTITLE?<H1>{HELPTITLE}</H1>
|
||||
<FORM ACTION="/help/{?HELPFILE}" METHOD="GET"><INPUT TYPE="HIDDEN" NAME="PRINTABLE" VALUE="YES"><INPUT TYPE="SUBMIT" VALUE="Mostra una versió per imprimir"></FORM>:
|
||||
|
||||
<H1>Ajuda en línia</H1>
|
||||
|
||||
<P>Aquesta és la interfície d'ajuda en línia de CUPS.
|
||||
Introduïu les paraules que vulgueu cercar aquí dalt o feu clic als
|
||||
enllaços de la documentació per mostrar la informació de
|
||||
l'ajuda en línia.</P>
|
||||
|
||||
<P>Si sou nou a CUPS, llegiu la pàgina «<a
|
||||
href="/help/overview.html">Descripció general de CUPS</a>». Els
|
||||
usuaris veterans haurien de llegir la pàgina «<a
|
||||
href="/help/whatsnew.html">Que hi ha de nou a CUPS 1.6</a>».</P>
|
||||
|
||||
<P>La <A HREF="http://www.cups.org/">pàgina web de CUPS</A> també
|
||||
dona conté molts recursos que inclouen fòrums, respostes a les preguntes més
|
||||
freqüents, i un formulari per enviar informes d'errors i demanar noves
|
||||
característiques.</P>}
|
||||
@@ -0,0 +1,9 @@
|
||||
<!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>{HELPTITLE}</TITLE>
|
||||
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/cups-printable.css">
|
||||
<LINK REL="SHORTCUT ICON" HREF="/images/cups-icon.png" TYPE="image/png">
|
||||
</HEAD>
|
||||
<BODY>
|
||||
@@ -0,0 +1 @@
|
||||
</DIV>
|
||||
@@ -0,0 +1,7 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Cancel·la la tasca {job_id}</H2>
|
||||
|
||||
<P><A HREF="{job_printer_uri}">La tasca {job_id}</A> s'ha cancel·lat.
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,7 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Pausa la tasca {job_id}</H2>
|
||||
|
||||
<P><A HREF="{job_printer_uri}">La tasca {job_id}</A> s'ha posat en pausa.
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,27 @@
|
||||
<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}">
|
||||
{job_id?<INPUT TYPE="HIDDEN" NAME="JOB_ID" VALUE="{job_id}">:}
|
||||
|
||||
<H2 CLASS="title">{job_id?Mou la tasca {job_id}:Mou totes les tasques}</H2>
|
||||
|
||||
<TABLE>
|
||||
<TR>
|
||||
<TH CLASS="label">Nova destinació:</TH>
|
||||
<TD>
|
||||
<SELECT NAME="JOB_PRINTER_URI" SIZE="10">
|
||||
{[job_printer_uri]<OPTION VALUE="{job_printer_uri}">{job_printer_name}}
|
||||
</SELECT>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD></TD>
|
||||
<TD><INPUT TYPE="SUBMIT" VALUE="{job_id?Mou la tasca:Mou les tasques}"></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
</FORM>
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,8 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">{job_id?Mou la tasca {job_id}:Mou totes les tasques}</H2>
|
||||
|
||||
<P>{job_id?<A HREF="/jobs/{job_id}">La tasca s'ha {job_id}</A>:Totes les tasques s'han} mogut a
|
||||
<A HREF="/{is_class?classes:printers}/{job_printer_name}">{job_printer_name}</A>.</P>
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,7 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Allibera la tasca {job_id}</H2>
|
||||
|
||||
<P><A HREF="{job_printer_uri}">La tasca {job_id}</A> s'ha alliberat.
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,7 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Torna a imprimir la tasca {job_id}</H2>
|
||||
|
||||
<P><A HREF="{job_printer_uri}">La tasca {job_id}</A> s'ha tornat a imprimir.
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,5 @@
|
||||
<DIV CLASS="indent">{?which_jobs=?:<FORM ACTION="{?printer_name=?/jobs:{printer_uri_supported}}" METHOD="GET"><INPUT TYPE="SUBMIT" VALUE="Mostra les tasques actives"></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="Mostra les tasques completades"></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="Mostra totes les tasques"></FORM>}</DIV>
|
||||
|
||||
<P ALIGN="CENTER">{total=0?No hi ha cap tasca:Es mostren {#job_id} tas{total=1?ca:ques} de {total} {?which_jobs=?active:{which_jobs=all?:completed}}}.</P>
|
||||
@@ -0,0 +1,36 @@
|
||||
{#job_id=0?:
|
||||
<TABLE CLASS="list" SUMMARY="Job List">
|
||||
<THEAD>
|
||||
<TR><TH><A HREF="{THISURL}?QUERY={?QUERY}&WHICH_JOBS={?WHICH_JOBS}&FIRST={FIRST}&ORDER={ORDER=dec?asc:dec}">{ORDER=dec?<SMALL>▲</SMALL> ID <SMALL>▲</SMALL>:<SMALL>▼</SMALL> ID <SMALL>▼</SMALL>}</A></TH><TH>Nom</TH><TH>Usuari</TH><TH>Mida</TH><TH>Pàgines</TH><TH>Estat</TH><TH>Control</TH></TR>
|
||||
</THEAD>
|
||||
<TBODY>
|
||||
{[job_id]
|
||||
<TR VALIGN="TOP">
|
||||
<TD><A HREF="{job_printer_uri}">{job_printer_name}</A>-{job_id}{?phone? ({phone}):} </TD>
|
||||
<TD>{?job_name=?Desconegut:{job_name}} </TD>
|
||||
<TD>{?job_originating_user_name=?Withheld:{job_originating_user_name}} </TD>
|
||||
<TD>{job_k_octets}k </TD>
|
||||
<TD>{job_media_sheets_completed=0?Desconegudes:{?job_media_sheets_completed}} </TD>
|
||||
<TD>{job_state=3?pendent des de<BR>{time_at_creation}:{job_state=4?pausada des de<BR>{time_at_creation}:
|
||||
{job_state=5?processant des de<BR>{time_at_processing}:{job_state=6?aturada:
|
||||
{job_state=7?cancel·lada el<BR>{time_at_completed}:{job_state=8?avortada:completada el<BR>{time_at_completed}}}}}}} {job_printer_state_message?<BR>
|
||||
<EM>"{job_printer_state_message}"</EM>:}</TD>
|
||||
<TD>
|
||||
{job_preserved>0?{job_state>5?
|
||||
<FORM ACTION="/jobs/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="restart-job"><INPUT TYPE="HIDDEN" NAME="job_id" VALUE="{job_id}"><INPUT TYPE="HIDDEN" NAME="job_printer_uri" VALUE="{job_printer_uri}"><INPUT TYPE="SUBMIT" VALUE="Torna a imprimir"></FORM>:}:}
|
||||
{job_state=4?
|
||||
<FORM ACTION="/jobs/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="release-job"><INPUT TYPE="HIDDEN" NAME="job_id" VALUE="{job_id}"><INPUT TYPE="HIDDEN" NAME="job_printer_uri" VALUE="{job_printer_uri}">
|
||||
<INPUT TYPE="SUBMIT" VALUE="Allibera"></FORM>:}
|
||||
{job_state=3?
|
||||
<FORM ACTION="/jobs/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="hold-job"><INPUT TYPE="HIDDEN" NAME="job_id" VALUE="{job_id}"><INPUT TYPE="HIDDEN" NAME="job_printer_uri" VALUE="{job_printer_uri}">
|
||||
<INPUT TYPE="SUBMIT" VALUE="Pausa"></FORM>:}
|
||||
{job_state<7?
|
||||
<FORM ACTION="/jobs/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="cancel-job"><INPUT TYPE="HIDDEN" NAME="job_id" VALUE="{job_id}"><INPUT TYPE="HIDDEN" NAME="job_printer_uri" VALUE="{job_printer_uri}">
|
||||
<INPUT TYPE="SUBMIT" VALUE="Cancel·la"></FORM>
|
||||
<FORM ACTION="/jobs/" METHOD="POST"><INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}"><INPUT TYPE="HIDDEN" NAME="OP" VALUE="move-job"><INPUT TYPE="HIDDEN" NAME="job_id" VALUE="{job_id}"><INPUT TYPE="SUBMIT" VALUE="Mou"></FORM>:}
|
||||
</TD>
|
||||
</TR>
|
||||
}
|
||||
</TBODY>
|
||||
</TABLE>
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Impressores disponibles</H2>
|
||||
|
||||
{#device_uri=0?<P>No s'ha trobat cap impressora.</P>
|
||||
:<UL>{[device_uri]
|
||||
<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="Afegeix aquesta impressora"></FORM>
|
||||
{device_make_and_model} ({device_info})</LI>
|
||||
}</UL>}
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,34 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Modifica la classe {printer_name}</H2>
|
||||
|
||||
<FORM METHOD="POST" ACTION="/admin">
|
||||
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
|
||||
<INPUT TYPE="HIDDEN" NAME="OP" VALUE="{op}">
|
||||
<INPUT TYPE="HIDDEN" NAME="PRINTER_NAME" VALUE="{printer_name}">
|
||||
|
||||
<TABLE>
|
||||
<TR>
|
||||
<TH CLASS="label">Descripció:</TH>
|
||||
<TD><INPUT TYPE="TEXT" NAME="PRINTER_INFO" VALUE="{?printer_info}" SIZE="40" MAXLENGTH="127"></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Ubicació:</TH>
|
||||
<TD><INPUT TYPE="TEXT" NAME="PRINTER_LOCATION" VALUE="{?printer_location}" SIZE="40" MAXLENGTH="127"></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Membres:</TH>
|
||||
<TD>
|
||||
<SELECT NAME="MEMBER_URIS" SIZE="10" MULTIPLE>
|
||||
{[member_uris]<OPTION VALUE="{member_uris}" {?member_selected}>{member_names}}
|
||||
</SELECT>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD></TD>
|
||||
<TD><INPUT TYPE="SUBMIT" VALUE="Modifica la classe"></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
</FORM>
|
||||
</DIV>
|
||||
@@ -0,0 +1,42 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Modifica {printer_name}</H2>
|
||||
|
||||
<FORM METHOD="POST" ACTION="/admin">
|
||||
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
|
||||
<INPUT TYPE="HIDDEN" NAME="OP" VALUE="{op}">
|
||||
<INPUT TYPE="HIDDEN" NAME="BAUDRATE" VALUE="{?baudrate}">
|
||||
<INPUT TYPE="HIDDEN" NAME="BITS" VALUE="{?bits}">
|
||||
<INPUT TYPE="HIDDEN" NAME="PARITY" VALUE="{?parity}">
|
||||
<INPUT TYPE="HIDDEN" NAME="FLOW" VALUE="{?flow}">
|
||||
<INPUT TYPE="HIDDEN" NAME="PRINTER_NAME" VALUE="{printer_name}">
|
||||
|
||||
<TABLE>
|
||||
<TR>
|
||||
<TH CLASS="label">Descripció:</TH>
|
||||
<TD><INPUT TYPE="TEXT" NAME="PRINTER_INFO" VALUE="{?printer_info}" SIZE="40" MAXLENGTH="127"><BR>
|
||||
<SMALL>(Una descripció com ara «HP LaserJet de doble cara»)</SMALL></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Ubicació:</TH>
|
||||
<TD><INPUT TYPE="TEXT" NAME="PRINTER_LOCATION" VALUE="{?printer_location}" SIZE="40" MAXLENGTH="127"><BR>
|
||||
<SMALL>(Una ubicació com ara «Laboratori 1»)</SMALL></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Connexió:</TH>
|
||||
<TD><INPUT TYPE="HIDDEN" NAME="DEVICE_URI" VALUE="{device_uri}">{device_uri}</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Compartir:</TH>
|
||||
<TD><INPUT TYPE="CHECKBOX" NAME="PRINTER_IS_SHARED" {PRINTER_IS_SHARED=1?CHECKED:}>
|
||||
Comparteix aquesta impressora</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TR>
|
||||
<TD></TD>
|
||||
<TD><INPUT TYPE="SUBMIT" VALUE="Continua"></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
</FORM>
|
||||
</DIV>
|
||||
@@ -0,0 +1,8 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Canvis en la configuració</H2>
|
||||
|
||||
<P>El servidor no s'ha tornat a iniciar per que no hi ha canvis
|
||||
a la configuració...</P>
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,6 @@
|
||||
<TR>
|
||||
<TH {conflicted=1?CLASS="conflict":CLASS="label"} WIDTH="50%"><A NAME="{keyword}">{keytext}</A>:</TH>
|
||||
<TD>
|
||||
{[choices]<INPUT TYPE="RADIO" NAME="{keyword-1}" {choices={defchoice-1}?CHECKED:} VALUE="{choices}">{text}}
|
||||
</TD>
|
||||
</TR>
|
||||
@@ -0,0 +1,7 @@
|
||||
<P><B>Error:</B> Les següents opcions entren en conflicte:</P>
|
||||
|
||||
<UL>
|
||||
{[ckeyword]<LI><A HREF="#{ckeyword}">{ckeytext}</A>: {cchoice}</LI>
|
||||
}</UL>
|
||||
|
||||
<P>Canvieu algunes de les opcions per resoldre els conflictes.</P>
|
||||
@@ -0,0 +1,5 @@
|
||||
<DIV CLASS="tab" ID="{group_id}">
|
||||
|
||||
<H3 ALIGN="CENTER">{group}</H3>
|
||||
|
||||
<TABLE WIDTH="100%">
|
||||
@@ -0,0 +1,6 @@
|
||||
<TR>
|
||||
<TH {conflicted=1?CLASS="conflict":CLASS="label"} WIDTH="50%"><A NAME="{keyword}">{keytext}</A>:</TH>
|
||||
<TD><SELECT NAME="{keyword}" MULTIPLE SIZE="10">
|
||||
{[choices]<OPTION {choices={defchoice-1}?SELECTED:} VALUE="{choices}">{text}}
|
||||
</SELECT></TD>
|
||||
</TR>
|
||||
@@ -0,0 +1,18 @@
|
||||
<TR>
|
||||
<TH {conflicted=1?CLASS="conflict":CLASS="label"} WIDTH="50%"><A NAME="{keyword}">{keytext}</A>:</TH>
|
||||
<TD><SELECT NAME="{keyword}" ID="select-{keyword}" ONCHANGE="update_paramtable('{keyword}')">
|
||||
{[choices]<OPTION {choices={defchoice-1}?SELECTED:} VALUE="{choices}">{text}}
|
||||
</SELECT>
|
||||
{iscustom=1?<TABLE NAME="paramtable" id="{keyword}-params">{[params]
|
||||
<TR><TH CLASS="sublabel">{paramtext}:</TH>
|
||||
<TD>{params=Units?<SELECT NAME="{keyword-1}.{params}">
|
||||
<OPTION VALUE="pt"{paramvalue=pt? SELECTED:}>Punts</OPTION>
|
||||
<OPTION VALUE="mm"{paramvalue=mm? SELECTED:}>Mil·límetres</OPTION>
|
||||
<OPTION VALUE="cm"{paramvalue=cm? SELECTED:}>Centímetres</OPTION>
|
||||
<OPTION VALUE="in"{paramvalue=in? SELECTED:}>Polzades</OPTION>
|
||||
<OPTION VALUE="ft"{paramvalue=ft? SELECTED:}>Peus</OPTION>
|
||||
<OPTION VALUE="m"{paramvalue=m? SELECTED:}>Metres</OPTION>
|
||||
</SELECT>:<INPUT TYPE="{inputtype}" NAME="{keyword-1}.{params}" VALUE="{paramvalue}">}</TD></TR>
|
||||
}</TABLE>
|
||||
</TD>:}
|
||||
</TR>
|
||||
@@ -0,0 +1,5 @@
|
||||
</TABLE>
|
||||
|
||||
<P ALIGN="CENTER"><INPUT TYPE="SUBMIT" VALUE="Configura els paràmetres per defecte"></P>
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,6 @@
|
||||
<TABLE CLASS="inset" SUMMARY="Paging Bar">
|
||||
<TR>
|
||||
<TD WIDTH="50%">{PREV?<FORM ACTION="{THISURL}" METHOD="GET"><INPUT TYPE="HIDDEN" NAME="QUERY" VALUE="{?QUERY}"><INPUT TYPE="HIDDEN" NAME="ORDER" VALUE="{?ORDER}"><INPUT TYPE="HIDDEN" NAME="WHICH_JOBS" VALUE="{?WHICH_JOBS}"><INPUT TYPE="HIDDEN" NAME="FIRST" VALUE="{PREV}"><INPUT TYPE="SUBMIT" VALUE="◀ Anterior"></FORM>: }</TD>
|
||||
<TD WIDTH="50%" ALIGN="RIGHT">{NEXT?<FORM ACTION="{THISURL}" METHOD="GET"><INPUT TYPE="HIDDEN" NAME="QUERY" VALUE="{?QUERY}"><INPUT TYPE="HIDDEN" NAME="ORDER" VALUE="{?ORDER}"><INPUT TYPE="HIDDEN" NAME="WHICH_JOBS" VALUE="{?WHICH_JOBS}"><INPUT TYPE="HIDDEN" NAME="FIRST" VALUE="{NEXT}"><INPUT TYPE="SUBMIT" VALUE="Següent ▶"></FORM>: }</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
@@ -0,0 +1,9 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Accepta tasques a {is_class?la classe: la impressora} {printer_name}</H2>
|
||||
|
||||
<P>{is_class?La classe:La impressora} <A
|
||||
HREF="/{is_class?classes:printers}/{printer_name}">{printer_name}</A>
|
||||
ara accepta tasques.</P>
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,8 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Afegeix una impressora</H2>
|
||||
|
||||
<P>La impressora <A HREF="/printers/{printer_name}">{printer_name}</A> s'ha afegit
|
||||
correctament.
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,6 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">S'ha aplicat la configuració per defecte a {printer_name}</H2>
|
||||
|
||||
<P>Les opcions per defecte de la {OP=set-class-options?classe <A HREF="/classes/{printer_name}">:impressora <A HREF="/printers/{printer_name}">}{printer_name}</A> s'han establert correctament.
|
||||
</DIV>
|
||||
@@ -0,0 +1,10 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Elimina la impressora {printer_name}</H2>
|
||||
|
||||
<P><B>Avís:</B> Esteu segur que voleu eliminar la impressora
|
||||
{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="Elimina la impressora"></FORM></P>
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,12 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Estableix {is_class?Class:Printer} {printer_name} com a predeterminada</H2>
|
||||
|
||||
<P>{is_class?Class:Printer} <A
|
||||
HREF="/{is_class?classes:printers}/{printer_name}">{printer_name}</A>
|
||||
s'ha establert com a impressora predeterminada.</P>
|
||||
|
||||
<BLOCKQUOTE><B>Nota:</B> Qualsevol usuari que hagi estat establert mitjançant
|
||||
la comanda <TT>lpoptions</TT> sobreescriurà aquesta configuració predeterminada.</BLOCKQUOTE>
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,7 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Elimina la impressora {printer_name}</H2>
|
||||
|
||||
<P>La impressora {printer_name} s'ha eliminat correctament.
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,3 @@
|
||||
<DIV CLASS="indent">
|
||||
<H3 CLASS="title">Tasques</H3>
|
||||
</DIV>
|
||||
@@ -0,0 +1,8 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Modifica la impressora {printer_name}</H2>
|
||||
|
||||
<P>La impressora <A HREF="/printers/{printer_name}">{printer_name}</A> s'ha
|
||||
modificat correctament.
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,8 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Cancel·la les tasques de {is_class?la classe:la impressora} {printer_name}</H2>
|
||||
|
||||
<P>S'han cancel·lat totes les tasques de{is_class?la classe:la impressora} <A
|
||||
HREF="/{is_class?classes:printers}/{printer_name}">{printer_name}</A>.</P>
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,9 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Refusa les tasques a {is_class?la classe:la impressora} {printer_name}</H2>
|
||||
|
||||
<P>{is_class?La classe:la impressora} <A
|
||||
HREF="/{is_class?classes:printers}/{printer_name}">{printer_name}</A>
|
||||
no accepta tasques a partir d'ara.</P>
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,9 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Reprèn {is_class?la classe:la impressora} {printer_name}</H2>
|
||||
|
||||
<P>{is_class?La classe:La impressora} <A
|
||||
HREF="/{is_class?classes:printers}/{printer_name}">{printer_name}</A>
|
||||
ha reprès les tasques.</P>
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,9 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Pausa {is_class?la classe:la impressora} {printer_name}</H2>
|
||||
|
||||
<P>{is_class?La classe:La impressora} <A
|
||||
HREF="/{is_class?classes:printers}/{printer_name}">{printer_name}</A>
|
||||
s'ha posat en pausa.</P>
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,47 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title"><A HREF="{printer_uri_supported}">{printer_name}</A>
|
||||
({printer_state=3?Inactiva:{printer_state=4?Processant:En pausa}},
|
||||
{printer_is_accepting_jobs=0?Refusa les tasques:Accepta tasques},
|
||||
{server_is_sharing_printers=0?No:{printer_is_shared=0?No:}} Compartida{default_name={printer_name}?, Servidor per defecte:})</H2>
|
||||
|
||||
<FORM METHOD="POST" ACTION="{printer_uri_supported}" NAME="maintenance">
|
||||
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
|
||||
<SELECT NAME="OP" ONCHANGE="document.maintenance.submit();">
|
||||
<OPTION VALUE="">Manteniment</OPTION>
|
||||
<OPTION VALUE="print-test-page">Imprimeix una pàgina de prova</OPTION>
|
||||
{printer_commands~.*Clean.*?<OPTION VALUE="clean-print-heads">Neteja els capçals</OPTION>:}
|
||||
{printer_commands~.*PrintSelfTestPage.*?<OPTION VALUE="print-self-test-page">Imprimeix la pàgina de prova pròpia</OPTION>:}
|
||||
{printer_state=5?<OPTION VALUE="start-printer">Reprèn la impressora</OPTION>:<OPTION VALUE="stop-printer">Pausa la impressora</OPTION>}
|
||||
{printer_is_accepting_jobs=0?<OPTION VALUE="accept-jobs">Accepta tasques</OPTION>:<OPTION VALUE="reject-jobs">Refusa les tasques</OPTION>}
|
||||
<OPTION VALUE="move-jobs">Mou totes les tasques</OPTION>
|
||||
<OPTION VALUE="purge-jobs">Cancel·la totes les tasques</OPTION>
|
||||
</SELECT>
|
||||
<INPUT TYPE="SUBMIT" VALUE="Go" STYLE="display: none;">
|
||||
</FORM>
|
||||
|
||||
<FORM METHOD="POST" ACTION="{admin_uri}" NAME="administration">
|
||||
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
|
||||
<INPUT TYPE="HIDDEN" NAME="printer_name" VALUE="{printer_name}">
|
||||
<SELECT NAME="OP" ONCHANGE="document.administration.submit();">
|
||||
<OPTION VALUE="">Administració</OPTION>
|
||||
<OPTION VALUE="modify-printer">Modifica la impressora</OPTION>
|
||||
<OPTION VALUE="delete-printer">Elimina la impressora</OPTION>
|
||||
<OPTION VALUE="set-printer-options">Torna a les opcions per defecte</OPTION>
|
||||
<OPTION VALUE="set-as-default">Configura com a servidor per defecte</OPTION>
|
||||
<OPTION VALUE="set-allowed-users">Configura els permisos dels usuaris</OPTION>
|
||||
</SELECT>
|
||||
<INPUT TYPE="SUBMIT" VALUE="Go" STYLE="display: none;">
|
||||
</FORM>
|
||||
|
||||
<TABLE SUMMARY="{printer_name}">
|
||||
<TR><TH ALIGN="RIGHT" VALIGN="TOP">Descripció:</TH><TD>{printer_info}</TD></TR>
|
||||
<TR><TH ALIGN="RIGHT" VALIGN="TOP">Ubicació:</TH><TD>{printer_location}</TD></TR>
|
||||
<TR><TH ALIGN="RIGHT" VALIGN="TOP">Controlador:</TH><TD>{printer_make_and_model} ({color_supported=1?color:escala de grisos}{sides_supported?, impressió a doble cara:})<BR>
|
||||
<TR><TH ALIGN="RIGHT" VALIGN="TOP">Connexió:</TH><TD>{device_uri}</TD></TR>
|
||||
<TR><TH ALIGN="RIGHT" VALIGN="TOP">Configuració per defecte:</TH><TD>Fulls de tasques={job_sheets_default}
|
||||
safata={media_default?{media_default}:desconeguda}
|
||||
{sides_default?cares={sides_default}:}</TD></TR>
|
||||
</TABLE>
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1 @@
|
||||
<P ALIGN="CENTER">{total=0?Cap impressora:Es mostr{#printer_name=1?a:en} {#printer_name} de {total} impressor{total=1?a:es}}.</P>
|
||||
@@ -0,0 +1,11 @@
|
||||
{#printer_name=0?:
|
||||
<TABLE CLASS="list" SUMMARY="Printer List">
|
||||
<THEAD>
|
||||
<TR><TH><A HREF="{THISURL}?QUERY={?QUERY}&WHICH_JOBS={?WHICH_JOBS}&FIRST={FIRST}&ORDER={ORDER=dec?asc:dec}">{ORDER=dec?<SMALL>▲</SMALL> Nom <SMALL>▲</SMALL>:<SMALL>▼</SMALL> Nom <SMALL>▼</SMALL>}</A></TH><TH>Descripció</TH><TH>Ubicació</TH><TH>Marca i model</TH><TH>Estat</TH></TR>
|
||||
</THEAD>
|
||||
<TBODY>
|
||||
{[printer_name]
|
||||
<TR><TD><A HREF="{printer_uri_supported}">{printer_name}</A></TD><TD>{printer_info}</TD><TD>{printer_location}</TD><TD>{printer_make_and_model}</TD><TD>{printer_state=3?Preparada:{printer_state=4?Processant:En pausa}}{printer_state_message? - "{printer_state_message}":}</TD></TR>
|
||||
}
|
||||
</TBODY>
|
||||
</TABLE></DIV>}
|
||||
@@ -0,0 +1,8 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Canvis en la configuració</H2>
|
||||
|
||||
<P><IMG SRC="/images/wait.gif" WIDTH="16" HEIGHT="16" ALIGN="ABSMIDDLE"
|
||||
ALT="Busy Indicator"> Espereu mentre es torna a iniciar el servidor...</P>
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,55 @@
|
||||
<SCRIPT TYPE="text/javascript"><!--
|
||||
function select_printers() {
|
||||
var list = document.export_samba.EXPORT_NAME;
|
||||
var sel = document.export_samba.EXPORT_ALL.checked;
|
||||
|
||||
for (i = 0; i < list.length; i ++) {
|
||||
list.options[i].selected = sel;
|
||||
}
|
||||
}
|
||||
--></SCRIPT>
|
||||
|
||||
<FORM METHOD="POST" ACTION="/admin/" NAME="export_samba">
|
||||
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
|
||||
<INPUT TYPE="HIDDEN" NAME="OP" VALUE="export-samba">
|
||||
|
||||
<H2 CLASS="title">Exporta les impressores al Samba</H2>
|
||||
|
||||
{error?<P>No es pot exportar les impressores al Samba\:</P>
|
||||
<BLOCKQUOTE>{error}</BLOCKQUOTE>
|
||||
<P>Consulteu el fitxer <A HREF="/admin/log/error_log"
|
||||
TARGET="_blank">error_log</A> per obtenir més informació.</P>:
|
||||
<P>Aquesta pàgina us permet exportar les impressores al Samba per tal que
|
||||
els clients de Windows puguin accedir-hi a través de les icones <VAR>Xarxa
|
||||
veïna</VAR> o <VAR>Llocs de la xarxa</VAR> del seu
|
||||
escriptori. Abans heu d'instal·lar el controlador d'impressores Windows PostScript
|
||||
tal i com s'explica a la pàgina del manual <A
|
||||
HREF="/help/man-cupsaddsmb.html"
|
||||
TARGET="_blank">cupsaddsmb(8)</A>.</P>}
|
||||
|
||||
<TABLE>
|
||||
<TR>
|
||||
<TH CLASS="label">Impressores:</TH>
|
||||
<TD>
|
||||
<SELECT NAME="EXPORT_NAME" SIZE="10" MULTIPLE>
|
||||
{[printer_name]<OPTION VALUE="{printer_name}"{export_all? SELECTED:{printer_export? SELECTED:}}>{printer_name}}
|
||||
</SELECT><BR>
|
||||
<INPUT TYPE="CHECKBOX" NAME="EXPORT_ALL"{export_all? CHECKED:}
|
||||
onChange="select_printers()"> Exporta totes les impressores
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Nom de l'usuari del Samba:</TH>
|
||||
<TD><INPUT TYPE="TEXT" NAME="USERNAME" VALUE="{?USERNAME}"> (necessari)</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TH CLASS="label">Contrasenya del Samba:</TH>
|
||||
<TD><INPUT TYPE="PASSWORD" NAME="PASSWORD" VALUE=""> (necessària)</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD></TD>
|
||||
<TD><INPUT TYPE="SUBMIT" VALUE="Exporta les impressores al Samba"></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
</FORM>
|
||||
@@ -0,0 +1 @@
|
||||
<P>Les impressores s'han exportat correctament al Samba.</P>
|
||||
@@ -0,0 +1,10 @@
|
||||
<FORM ACTION="/{SECTION}/{?SEARCH_DEST}" METHOD="GET">
|
||||
{WHICH_JOBS?<INPUT TYPE="HIDDEN" NAME="WHICH_JOBS" VALUE="{WHICH_JOBS}">:}
|
||||
{ORDER?<INPUT TYPE="HIDDEN" NAME="ORDER" VALUE="{ORDER}">:}
|
||||
|
||||
<P ALIGN="CENTER"><B>Cerca a les
|
||||
{SEARCH_DEST?{SEARCH_DEST}:{SECTION=classes?classes:{SECTION=jobs?tasques:impressores}}}:</B>
|
||||
<INPUT TYPE="SEARCH" NAME="QUERY" VALUE="{?QUERY}" SIZE="40" PLACEHOLDER="" AUTOSAVE="org.cups.{SECTION}" RESULTS="20"> <INPUT
|
||||
TYPE="SUBMIT" VALUE="Cerca"> <INPUT TYPE="SUBMIT" NAME="CLEAR" VALUE="Neteja"></P>
|
||||
|
||||
</FORM>
|
||||
@@ -0,0 +1,26 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Aplica les opcions per defecte a {printer_name}</H2>
|
||||
|
||||
<FORM METHOD="POST" ACTION="/admin">
|
||||
<INPUT TYPE="HIDDEN" NAME="org.cups.sid" VALUE="{$org.cups.sid}">
|
||||
<INPUT TYPE="HIDDEN" NAME="PRINTER_NAME" VALUE="{printer_name}">
|
||||
<INPUT TYPE="HIDDEN" NAME="OP" VALUE="{op}">
|
||||
{HAVE_AUTOCONFIGURE?<INPUT TYPE="SUBMIT" NAME="AUTOCONFIGURE" VALUE="Demana a la impressora les opcions per defecte">:}
|
||||
|
||||
<SCRIPT TYPE="text/javascript"><!--
|
||||
function update_paramtable(option)
|
||||
{
|
||||
var cb = document.getElementById("select-" + option)
|
||||
var paramstable = document.getElementById(option + "-params");
|
||||
if (cb.value == "Custom")
|
||||
paramstable.style.display = "table";
|
||||
else
|
||||
paramstable.style.display = "none";
|
||||
}
|
||||
--></SCRIPT>
|
||||
|
||||
<H3 CLASS="title">{[group_id]
|
||||
<A HREF="#{group_id}">{group}</A> }</H3>
|
||||
|
||||
<DIV CLASS="tabs">
|
||||
@@ -0,0 +1,16 @@
|
||||
</DIV>
|
||||
|
||||
<SCRIPT TYPE="text/javascript"><!--
|
||||
// Hide custom options parameters for browsers that understand Javascript
|
||||
var paramtables = document.getElementsByName("paramtable");
|
||||
for (var i = 0; i < paramtables.length; i++)
|
||||
{
|
||||
var opt = paramtables[i].id.substr(0, paramtables[i].id.lastIndexOf("-"));
|
||||
var cb = document.getElementById("select-" + opt);
|
||||
if (cb.value != "Custom")
|
||||
paramtables[i].style.display = "none";
|
||||
}
|
||||
--></SCRIPT>
|
||||
</FORM>
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,5 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<P>La subscripció {subscription_name} s'ha afegit correctament.</P>
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,5 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<P>La subscripció #{notify_subscription_id} s'ha cancel·lat.</P>
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,8 @@
|
||||
<DIV CLASS="indent">
|
||||
|
||||
<H2 CLASS="title">Imprimeix una pàgina de prova a {printer_name}</H2>
|
||||
|
||||
<P>S'ha enviat la pàgina de prova; l'ID de la tasca és <A HREF="/{SECTION}/{printer_name}">
|
||||
{printer_name}-{job_id}</A>.</P>
|
||||
|
||||
</DIV>
|
||||
@@ -0,0 +1,8 @@
|
||||
</TD></TR>
|
||||
<TR><TD> </TD></TR>
|
||||
<TR><TD CLASS="trailer">CUPS i el logotip de CUPS són marques registrades per
|
||||
<A HREF="http://www.apple.com">Apple Inc.</A> CUPS té copyright 2007-2012 Apple
|
||||
Inc. Tots els drets reservats.</TD></TR>
|
||||
</TABLE>
|
||||
</BODY>
|
||||
</HTML>
|
||||
@@ -0,0 +1,30 @@
|
||||
<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}">
|
||||
<INPUT TYPE="HIDDEN" NAME="PRINTER_NAME" VALUE="{printer_name}">
|
||||
{IS_CLASS?<INPUT TYPE="HIDDEN" NAME="IS_CLASS" VALUE="{IS_CLASS}">:}
|
||||
|
||||
<H2 CLASS="title">Usuaris amb permisos per {printer_name}</H2>
|
||||
|
||||
<TABLE>
|
||||
<TR>
|
||||
<TH CLASS="label">Usuaris:</TH>
|
||||
<TD>
|
||||
<INPUT TYPE='TEXT' NAME='users' SIZE='60' VALUE='{?requesting_user_name_allowed}{?requesting_user_name_denied}'>
|
||||
<BR>
|
||||
<INPUT TYPE='RADIO' NAME='type' VALUE='requesting-user-name-allowed' {requesting_user_name_allowed?checked:}>Permet imprimir a aquests usuaris
|
||||
<INPUT TYPE='RADIO' NAME='type' VALUE='requesting-user-name-denied' {requesting_user_name_denied?checked:}>No permetis imprimir a aquests usuaris
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD></TD>
|
||||
<TD>
|
||||
<INPUT TYPE="SUBMIT" VALUE="Aplica els permisos">
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
</FORM>
|
||||
</DIV>
|
||||
Alguns arquivos não foram exibidos porque demasiados arquivos foram alterados neste diff Mostrar Mais
Referência em uma Nova Issue
Bloquear um usuário