Fix for Bug 3659, Add place hold option from patron checkout tab
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / patroncards / card-print.tmpl
1     <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2     <title>Koha &rsaquo; Tools &rsaquo; Patron Card Creator &rsaquo; Patron Card Printing/Exporting</title>
3     <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4     <script type="text/JavaScript" language="JavaScript">
5         //<![CDATA[
6             function Done() {
7                 window.location = "<!-- TMPL_VAR NAME="referer" -->";
8             };
9         //]]>
10     </script>
11     <style type="text/css">#custom-doc {width:47.23em; *width:46.04em; min-width:610px; margin:auto; margin-top:0.4em;}</style>
12     <style type="text/css">table {border-collapse: separate; border-spacing: 0; border: hidden none;} .header {cursor: auto; background-position: center center; background-repeat: repeat;}</style>
13 </head>
14 <body>
15     <div id="custom-doc" class="yui-t2">
16         <div id="bd">
17             <!-- TMPL_IF NAME="batches" -->
18             <form>
19                 <div align="center">
20                     <div class="message">
21                         <b>Click on the following link(s) to download the exported batch(es).</b>
22                     </div>
23                 </div>
24                 <fieldset class="rows">
25                     <table class="borderless">
26                         <!-- TMPL_LOOP NAME="batches" -->
27                         <tr>
28                             <!-- TMPL_IF NAME="label_ids" -->
29                             <td class="borderless">
30                                 <!-- TMPL_VAR NAME="label_count" --> Single Cards
31                             </td>
32                             <td class="borderless">
33                                 <h1 id="pdf">
34                                     <a href="/cgi-bin/koha/labels/<!-- TMPL_VAR NAME="create_script" -->?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;template_id=<!-- TMPL_VAR NAME="template_id" -->&amp;layout_id=<!-- TMPL_VAR NAME="layout_id" -->&amp;start_label=<!-- TMPL_VAR NAME="start_label" --><!-- TMPL_VAR NAME="label_ids" -->">label_single_<!-- TMPL_VAR NAME="label_count" -->.pdf</a>
35                                 </h1>
36                             </td>
37                             <td class="borderless">
38                                 <h1 id="csv">
39                                     <a href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;template_id=<!-- TMPL_VAR NAME="template_id" -->&amp;layout_id=<!-- TMPL_VAR NAME="layout_id" --><!-- TMPL_VAR NAME="label_ids" -->">label_single_<!-- TMPL_VAR NAME="label_count" -->.csv</a>
40                                 </h1>
41                             </td>
42                             <td class="borderless">
43                                 <h1 id="xml">
44                                     <a href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;template_id=<!-- TMPL_VAR NAME="template_id" -->&amp;layout_id=<!-- TMPL_VAR NAME="layout_id" --><!-- TMPL_VAR NAME="label_ids" -->">label_single_<!-- TMPL_VAR NAME="label_count" -->.xml</a>
45                                 </h1>
46                             </td>
47                             <!-- TMPL_ELSIF NAME="item_numbers" -->
48                             <td class="borderless">
49                                 <!-- TMPL_VAR NAME="label_count" --> Single Cards
50                             </td>
51                             <td class="borderless">
52                                 <h1 id="pdf">
53                                     <a href="/cgi-bin/koha/labels/<!-- TMPL_VAR NAME="create_script" -->?template_id=<!-- TMPL_VAR NAME="template_id" -->&amp;layout_id=<!-- TMPL_VAR NAME="layout_id" -->&amp;start_label=<!-- TMPL_VAR NAME="start_label" --><!-- TMPL_VAR NAME="item_numbers" -->">label_single_<!-- TMPL_VAR NAME="label_count" -->.pdf</a>
54                                 </h1>
55                             </td>
56                             <td class="borderless">
57                                 <h1 id="csv">
58                                     <a href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;template_id=<!-- TMPL_VAR NAME="template_id" -->&amp;layout_id=<!-- TMPL_VAR NAME="layout_id" --><!-- TMPL_VAR NAME="item_numbers" -->">label_single_<!-- TMPL_VAR NAME="label_count" -->.csv</a>
59                                 </h1>
60                             </td>
61                             <td class="borderless">
62                                 <h1 id="xml">
63                                     <a href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;template_id=<!-- TMPL_VAR NAME="template_id" -->&amp;layout_id=<!-- TMPL_VAR NAME="layout_id" --><!-- TMPL_VAR NAME="item_numbers" -->">label_single_<!-- TMPL_VAR NAME="label_count" -->.xml</a>
64                                 </h1>
65                             </td>
66                             <!-- TMPL_ELSE -->
67                             <td class="borderless">
68                                 Card Batch Number <!-- TMPL_VAR NAME="batch_id" -->
69                             </td>
70                             <td class="borderless">
71                                 <h1 id="pdf">
72                                     <a href="/cgi-bin/koha/labels/label-create-pdf.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;template_id=<!-- TMPL_VAR NAME="template_id" -->&amp;layout_id=<!-- TMPL_VAR NAME="layout_id" -->&amp;start_label=<!-- TMPL_VAR NAME="start_label" -->">label_batch_<!-- TMPL_VAR NAME="batch_id" -->.pdf</a>
73                                 </h1>
74                             </td>
75                             <td class="borderless">
76                                 <h1 id="csv">
77                                     <a href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;template_id=<!-- TMPL_VAR NAME="template_id" -->&amp;layout_id=<!-- TMPL_VAR NAME="layout_id" -->">label_batch_<!-- TMPL_VAR NAME="batch_id" -->.csv</a>
78                                 </h1>
79                             </td>
80                             <td class="borderless">
81                                 <h1 id="xml">
82                                     <a href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;template_id=<!-- TMPL_VAR NAME="template_id" -->&amp;layout_id=<!-- TMPL_VAR NAME="layout_id" -->">label_batch_<!-- TMPL_VAR NAME="batch_id" -->.xml</a>
83                                 </h1>
84                             </td>
85                             <!-- /TMPL_IF -->
86                         </tr>
87                         <!-- /TMPL_LOOP -->
88                     </table>
89                 </fieldset>
90                 <fieldset class="action">
91                     <div style="margin: 10px 10px 10px 0px;">
92                         <span class="yui-button yui-link-button"><span class="first-child"><input type="button" id="done" onclick="parent.parent.GB_hide();" value="Done"></span></span>
93                     </div>
94                 </fieldset>
95             </form>
96             <!-- TMPL_ELSE -->
97             <div align="center">
98                 <div class="message">
99                     <!-- TMPL_IF NAME="label_ids" -->
100                     <b>Exporting <!-- TMPL_VAR NAME="label_count" --> cards(s).</b>
101                     <!-- TMPL_ELSIF NAME="item_numbers"-->
102                     <b>Exporting <!-- TMPL_VAR NAME="item_count" --> cards(s).</b>
103                     <!-- TMPL_ELSE -->
104                     <b><!-- TMPL_VAR NAME="multi_batch_count" --> batch(es) to export.</b>
105                     <!-- /TMPL_IF -->
106                 </div>
107             </div>
108             <form name="exporting" method="post" action="/cgi-bin/koha/labels/label-print.pl">
109                 <input type="hidden" name="op" value="export" />
110                 <input type="hidden" name="referer" value="<!-- TMPL_VAR NAME="referer" -->" />
111                 <!-- TMPL_LOOP NAME="batch_ids" -->
112                     <input type="hidden" name="batch_id" value="<!-- TMPL_VAR NAME="batch_id" -->" />
113                 <!-- /TMPL_LOOP -->
114                 <!-- TMPL_LOOP NAME="label_ids" -->
115                     <input type="hidden" name="label_id" value="<!-- TMPL_VAR NAME="label_id" -->" />
116                 <!-- /TMPL_LOOP -->
117                 <!-- TMPL_LOOP NAME="item_numbers" -->
118                     <input type="hidden" name="item_number" value="<!-- TMPL_VAR NAME="item_number" -->" />
119                 <!-- /TMPL_LOOP -->
120                 <fieldset class="rows">
121                     <table class="borderless">
122                         <tr>
123                             <td class="borderless">
124                                 <label for="template">Select a template to be applied: </label>
125                             </td>
126                             <td class="borderless">
127                                 <select name="template_id">
128                                     <!-- TMPL_LOOP NAME="templates" -->
129                                     <option value="<!-- TMPL_VAR NAME="template_id" -->"><!-- TMPL_VAR NAME="template_code"  --></option>
130                                     <!-- /TMPL_LOOP -->
131                                 </select>
132                             </td>
133                         </tr>
134                         <tr>
135                             <td class="borderless">
136                                 <label for="layout">Select a layout to be applied: </label>
137                             </td>
138                             <td class="borderless">
139                                 <select name="layout_id">
140                                     <!-- TMPL_LOOP NAME="layouts" -->
141                                     <option value="<!-- TMPL_VAR NAME="layout_id" -->"><!-- TMPL_VAR NAME="layout_name"  --></option>
142                                     <!-- /TMPL_LOOP -->
143                                 </select>
144                             </td>
145                         </tr>
146                         <tr>
147                             <td class="borderless">
148                                 <label for="start_label">Enter starting card number: </label>
149                             </td>
150                             <td class="borderless">
151                                 <input type="text" size="5" id="start_label" name="start_label" class="focus" title="Starting card number" value="1"/>
152                             </td>
153                         </tr>
154                     </table>
155                 </fieldset>
156                 <fieldset class="action">
157                     <div style="margin: 10px 10px 10px 0px;">
158                         <span class="yui-button yui-link-button"><span class="first-child"><input type="submit" value="Export" /></span></span>
159                         <span class="yui-button yui-link-button"><span class="first-child"><input type="button" id="done" onclick="parent.parent.GB_hide();" value="Cancel"></span></span>
160                     </div>
161                 </fieldset>
162             </form>
163             <!-- /TMPL_IF -->
164         </div>
165     <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->