1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration ›
3 [% IF ( add_form ) %][% IF ( searchfield ) %] Printers › Modify printer '[% searchfield %]'[% ELSE %] Printers › New printer[% END %][% END %]
4 [% IF ( add_validate ) %] Printers › Printer added[% END %]
5 [% IF ( delete_confirm ) %] Printers › Confirm deletion of printer '[% searchfield %]'[% END %]
6 [% IF ( delete_confirmed ) %] Printers › Printer deleted[% END %]
7 [% IF ( else ) %]Printers[% END %]</title>
8 [% INCLUDE 'doc-head-close.inc' %]
9 [% IF ( add_form ) %]<script type="text/javascript">
12 function isNotNull(f,noalert) {
13 if (f.value.length ==0) {
19 function isNum(v,maybenull) {
20 var n = new Number(v.value);
24 if (maybenull==0 && v.value=="") {
34 if (f.printername.value.length==0) {
35 _alertString += "- printer name missing\n";
37 if (f.printqueue.value.length==0) {
38 _alertString += "- Queue missing\n";
40 if (_alertString.length==0) {
41 document.Aform.submit();
43 alertString2 = "Form not submitted because of the following problem(s)\n";
44 alertString2 += "------------------------------------------------------------------------------------\n\n";
45 alertString2 += _alertString;
53 <body id="admin_printers" class="admin">
54 [% INCLUDE 'header.inc' %]
55 [% INCLUDE 'printers-admin-search.inc' %]
57 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › [% IF ( add_form ) %][% IF ( searchfield ) %] <a href="/cgi-bin/koha/admin/printers.pl">Printers</a> › Modify printer '[% searchfield %]'[% ELSE %] <a href="/cgi-bin/koha/admin/printers.pl">Printers</a> › New printer[% END %][% END %]
58 [% IF ( add_validate ) %] <a href="/cgi-bin/koha/admin/printers.pl">Printers</a> › Printer added[% END %]
59 [% IF ( delete_confirm ) %] <a href="/cgi-bin/koha/admin/printers.pl">Printers</a> › Confirm deletion of printer '[% searchfield %]'[% END %]
60 [% IF ( delete_confirmed ) %] <a href="/cgi-bin/koha/admin/printers.pl">Printers</a> › Printer deleted[% END %]
61 [% IF ( else ) %]Printers[% END %]</div>
63 <div id="doc3" class="yui-t2">
71 [% IF ( searchfield ) %]
72 <h1>Modify printer</h1>
76 <form action="[% script_name %]" name="Aform" method="post">
77 <input type="hidden" name="op" value="add_validate" />
78 [% IF ( searchfield ) %]
79 <input type="hidden" name="add" value="0" />
81 <input type="hidden" name="add" value="1" />
83 <fieldset class="rows">
84 <ol> [% IF ( searchfield ) %]
86 <span class="label">Printer name: </span>
87 <input type="hidden" name="printername" id="" value="[% searchfield %]" />[% searchfield %]
91 <label for="printername">Printer name: </label>
92 <input type="text" name="printername" id="printername" size="50" maxlength="50" />
96 <label for="printqueue">Queue: </label>
97 <input type="text" name="printqueue" id="printqueue" size="50" maxlength="50" value="[% printqueue %]" />
100 <label for="printtype">Type: </label>
101 <input type="text" name="printtype" id="printtype" size="50" maxlength="50" value="[% printtype %]" />
104 <fieldset class="action"><input type="submit" value="Submit" onclick="Check(this.form);" /> <a class="cancel" href="/cgi-bin/koha/admin/printers.pl">Cancel</a></fieldset>
109 [% IF ( add_validate ) %]
110 <h3>Printer added</h3>
111 <form action="[% script_name %]" method="post">
112 <fieldset class="action"> <input type="submit" value="OK" /></fieldset>
116 [% IF ( delete_confirm ) %]
117 <h3>Confirm deletion of printer <em>[% searchfield %]</em></h3>
120 <strong>Printer: </strong>
124 <strong>Queue: </strong>
128 <strong>Type: </strong>
132 <form action="[% script_name %]" method="post">
133 <input type="hidden" name="op" value="delete_confirmed" />
134 <input type="hidden" name="searchfield" value="[% searchfield %]" />
135 <input type="submit" value="Delete this printer" />
136 </form> <form action="[% script_name %]" method="post">
137 <input type="submit" value="Do not Delete" />
141 [% IF ( delete_confirmed ) %]
142 <h3>Printer deleted</h3>
143 <form action="[% script_name %]" method="post">
144 <fieldset class="action"><input type="submit" value="OK" /></fieldset>
150 <div id="toolbar" class="btn-toolbar">
151 <a class="btn btn-default btn-sm" id="newprinter" href="/cgi-bin/koha/admin/printers.pl?op=add_form"><i class="fa fa-plus"></i> New printer</a>
155 [% IF ( searchfield ) %]
156 You searched for [% searchfield %]</span>
159 [% IF ( loop ) %]<table>
166 [% FOREACH loo IN loop %]
168 <td>[% loo.printername %]</td>
169 <td>[% loo.printqueue %]</td>
170 <td>[% loo.printtype %]</td>
171 <td><a href="[% loo.script_name %]?op=add_form&searchfield=[% loo.printername %]">Edit</a> <a href="[% loo.script_name %]?op=delete_confirm&searchfield=[% loo.printername %]">Delete</a></td>
174 </table>[% ELSE %]<div class="notice">No printers defined.</div>[% END %]
176 [% IF ( offsetgtzero ) %]
177 <a href="[% script_name %]?offset=[% prevpage %]"><< Previous</a>
181 <a href="[% script_name %]?offset=[% nextpage %]">Next >></a>
188 [% INCLUDE 'admin-menu.inc' %]
191 [% INCLUDE 'intranet-bottom.inc' %]