mirror of https://gitee.com/openkylin/cups.git
62 lines
2.2 KiB
Cheetah
62 lines
2.2 KiB
Cheetah
<H2 CLASS="title">{op=modify-printer?Изменение {printer_name}:Добавление принтера}</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">Название:</TH>
|
|
<TD><INPUT TYPE="HIDDEN" NAME="PRINTER_NAME" VALUE="{printer_name}">{printer_name}</TD>
|
|
</TR>}
|
|
<TR>
|
|
<TH CLASS="label">Описание:</TH>
|
|
<TD><INPUT TYPE="HIDDEN" NAME="PRINTER_INFO" VALUE="{printer_info}">{printer_info}</TD>
|
|
</TR>
|
|
<TR>
|
|
<TH CLASS="label">Расположение:</TH>
|
|
<TD><INPUT TYPE="HIDDEN" NAME="PRINTER_LOCATION" VALUE="{printer_location}">{printer_location}</TD>
|
|
</TR>
|
|
<TR>
|
|
<TH CLASS="label">Подключение:</TH>
|
|
<TD><INPUT TYPE="HIDDEN" NAME="DEVICE_URI" VALUE="{device_uri}">{device_uri}</TD>
|
|
</TR>
|
|
<TR>
|
|
<TH CLASS="label">Совместный доступ:</TH>
|
|
<TD><INPUT TYPE="HIDDEN" NAME="PRINTER_IS_SHARED" VALUE="{?printer_is_shared}">
|
|
{?printer_is_shared=?Нет совместного доступа:{?printer_is_shared=0?Нет совместного доступа:Разрешить совместный доступ}} к этому принтеру</TD>
|
|
</TR>
|
|
<TR>
|
|
<TH CLASS="label">Создать:</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="Продолжить"></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD></TD>
|
|
<TD> </TD>
|
|
</TR>
|
|
<TR>
|
|
<TH CLASS="label">или использовать файл 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?Добавить принтер:Сохранить}"></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
</FORM>
|