<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">Esporta stampanti a Samba</H2>

{error?<P>Impossibile esportare stampanti a Samba\:</P>
<BLOCKQUOTE>{error}</BLOCKQUOTE>
<P>Consulta il file <A HREF="/admin/log/error_log"
TARGET="_blank">error_log</A> per ulteriori informazioni.</P>:
<P>Questa pagina ti consente di esportare stampanti a Samba in modo che
i client Windows possano accedervi dalle icone <VAR>Risorse di rete</VAR> 
sui loro desktop. Devi installare preventivamente i driver per stampanti
Windows PostScript come descritto nella pagina di manuale <A
HREF="/help/man-cupsaddsmb.html"
TARGET="_blank">cupsaddsmb(8)</A>.</P>}

<TABLE>
<TR>
<TH CLASS="label">Stampanti:</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()"> Esporta tutte le stampanti
</TD>
</TR>
<TR>
<TH CLASS="label">Nome utente Samba:</TH>
<TD><INPUT TYPE="TEXT" NAME="USERNAME" VALUE="{?USERNAME}"> (richiesto)</TD>
</TR>
<TR>
<TH CLASS="label">Password Samba:</TH>
<TD><INPUT TYPE="PASSWORD" NAME="PASSWORD" VALUE=""> (richiesto)</TD>
</TR>
<TR>
<TD></TD>
<TD><INPUT TYPE="SUBMIT" VALUE="Esporta stampanti a Samba"></TD>
</TR>
</TABLE>

</FORM>
