Merge branch 'labels_recon' into to-push
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / labels / label-print.tmpl
1     <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2     <title>Koha &rsaquo; Tools &rsaquo; Labels &rsaquo; Label 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 </head>
13 <body>
14     <div id="custom-doc" class="yui-t2">
15         <div id="bd">
16             <!-- TMPL_IF NAME="batches" -->
17             <form>
18                 <div align="center">
19                     <div class="message">
20                         <b>Click on the following link(s) to download the exported batch(es).</b>
21                     </div>
22                 </div>
23                 <fieldset class="rows">
24                     <table class="borderless">
25                         <!-- TMPL_LOOP NAME="batches" -->
26                         <tr>
27                             <!-- TMPL_IF NAME="label_ids" -->
28                             <td class="borderless">
29                                 <!-- TMPL_VAR NAME="label_count" --> Single Labels
30                             </td>
31                             <td class="borderless">
32                                 <h1 id="pdf">
33                                     <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>
34                                 </h1>
35                             </td>
36                             <td class="borderless">
37                                 <h1 id="csv">
38                                     <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>
39                                 </h1>
40                             </td>
41                             <td class="borderless">
42                                 <h1 id="xml">
43                                     <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>
44                                 </h1>
45                             </td>
46                             <!-- TMPL_ELSIF NAME="item_numbers" -->
47                             <td class="borderless">
48                                 <!-- TMPL_VAR NAME="label_count" --> Single Labels
49                             </td>
50                             <td class="borderless">
51                                 <h1 id="pdf">
52                                     <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>
53                                 </h1>
54                             </td>
55                             <td class="borderless">
56                                 <h1 id="csv">
57                                     <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>
58                                 </h1>
59                             </td>
60                             <td class="borderless">
61                                 <h1 id="xml">
62                                     <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>
63                                 </h1>
64                             </td>
65                             <!-- TMPL_ELSE -->
66                             <td class="borderless">
67                                 Label Batch Number <!-- TMPL_VAR NAME="batch_id" -->
68                             </td>
69                             <td class="borderless">
70                                 <h1 id="pdf">
71                                     <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>
72                                 </h1>
73                             </td>
74                             <td class="borderless">
75                                 <h1 id="csv">
76                                     <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>
77                                 </h1>
78                             </td>
79                             <td class="borderless">
80                                 <h1 id="xml">
81                                     <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>
82                                 </h1>
83                             </td>
84                             <!-- /TMPL_IF -->
85                         </tr>
86                         <!-- /TMPL_LOOP -->
87                     </table>
88                 </fieldset>
89                 <fieldset class="action">
90                     <div style="margin: 10px 10px 10px 0px;">
91                         <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>
92                     </div>
93                 </fieldset>
94             </form>
95             <!-- TMPL_ELSE -->
96             <div align="center">
97                 <div class="message">
98                     <!-- TMPL_IF NAME="label_ids" -->
99                     <b>Exporting <!-- TMPL_VAR NAME="label_count" --> label(s).</b>
100                     <!-- TMPL_ELSIF NAME="item_numbers"-->
101                     <b>Exporting <!-- TMPL_VAR NAME="item_count" --> label(s).</b>
102                     <!-- TMPL_ELSE -->
103                     <b><!-- TMPL_VAR NAME="multi_batch_count" --> batch(es) to export.</b>
104                     <!-- /TMPL_IF -->
105                 </div>
106             </div>
107             <form name="exporting" method="post" action="/cgi-bin/koha/labels/label-print.pl">
108                 <input type="hidden" name="op" value="export" />
109                 <input type="hidden" name="referer" value="<!-- TMPL_VAR NAME="referer" -->" />
110                 <!-- TMPL_LOOP NAME="batch_ids" -->
111                     <input type="hidden" name="batch_id" value="<!-- TMPL_VAR NAME="batch_id" -->" />
112                 <!-- /TMPL_LOOP -->
113                 <!-- TMPL_LOOP NAME="label_ids" -->
114                     <input type="hidden" name="label_id" value="<!-- TMPL_VAR NAME="label_id" -->" />
115                 <!-- /TMPL_LOOP -->
116                 <!-- TMPL_LOOP NAME="item_numbers" -->
117                     <input type="hidden" name="item_number" value="<!-- TMPL_VAR NAME="item_number" -->" />
118                 <!-- /TMPL_LOOP -->
119                 <fieldset class="rows">
120                     <table class="borderless">
121                         <tr>
122                             <td class="borderless">
123                                 <label for="template">Select a template to be applied: </label>
124                             </td>
125                             <td class="borderless">
126                                 <select name="template_id">
127                                     <!-- TMPL_LOOP NAME="templates" -->
128                                     <option value="<!-- TMPL_VAR NAME="template_id" -->"><!-- TMPL_VAR NAME="template_code"  --></option>
129                                     <!-- /TMPL_LOOP -->
130                                 </select>
131                             </td>
132                         </tr>
133                         <tr>
134                             <td class="borderless">
135                                 <label for="layout">Select a layout to be applied: </label>
136                             </td>
137                             <td class="borderless">
138                                 <select name="layout_id">
139                                     <!-- TMPL_LOOP NAME="layouts" -->
140                                     <option value="<!-- TMPL_VAR NAME="layout_id" -->"><!-- TMPL_VAR NAME="layout_name"  --></option>
141                                     <!-- /TMPL_LOOP -->
142                                 </select>
143                             </td>
144                         </tr>
145                         <tr>
146                             <td class="borderless">
147                                 <label for="start_label">Enter starting label number: </label>
148                             </td>
149                             <td class="borderless">
150                                 <input type="text" size="5" id="start_label" name="start_label" class="focus" title="Starting label number" value="1"/>
151                             </td>
152                         </tr>
153                     </table>
154                 </fieldset>
155                 <fieldset class="action">
156                     <div style="margin: 10px 10px 10px 0px;">
157                         <span class="yui-button yui-link-button"><span class="first-child"><input type="submit" value="Export" /></span></span>
158                         <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>
159                     </div>
160                 </fieldset>
161             </form>
162             <!-- /TMPL_IF -->
163         </div>
164     <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->