[23/40] Initial work on label export interface.
[srvgit] / 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     <style type="text/css">#custom-doc {width:47.23em; *width:46.04em; min-width:610px; margin:auto; margin-top:0.4em;}</style>
5 </head>
6 <body>
7     <div id="custom-doc" class="yui-t2">
8         <div id="bd">
9             <!-- TMPL_IF NAME="batches" -->
10             <form name="exporting" method="post" action="/cgi-bin/koha/labels/label-manage.pl">
11                 <input type="hidden" name="label_element" value="batch" />
12                 <div align="center">
13                     <div class="message">
14                         <h2>Click on the following link(s) to download the exported batch(es).</h2>
15                     </div>
16                 </div>
17                 <fieldset class="rows">
18                     <table class="borderless">
19                         <!-- TMPL_LOOP NAME="batches" -->
20                         <tr>
21                             <td class="borderless">
22                                 <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" -->">label_batch_<!-- TMPL_VAR NAME="batch_id" -->.pdf</a>
23                             </td>
24                         </tr>
25                         <!-- /TMPL_LOOP -->
26                     </table>
27                 </fieldset>
28                 <fieldset class="action">
29                     <input type="submit" value="Done" class="submit" />
30                 </fieldset>
31             </form>
32             <!-- TMPL_ELSE -->
33             <div align="center">
34                 <div class="message">
35                     <h2><!-- TMPL_VAR NAME="multi_batch_count" --> batch(es) to export.</h2>
36                 </div>
37             </div>
38             <form name="exporting" method="post" action="/cgi-bin/koha/labels/label-print.pl">
39                 <input type="hidden" name="op" value="export" />
40                 <!-- TMPL_LOOP NAME="batch_ids" -->
41                     <input type="hidden" name="batch_id" value="<!-- TMPL_VAR NAME="batch_id" -->" />
42                 <!-- /TMPL_LOOP -->
43                 <fieldset class="rows">
44                     <table class="borderless">
45                         <tr>
46                             <td class="borderless">
47                                 <label for="template">Select a template to be applied: </label>
48                             </td>
49                             <td class="borderless">
50                                 <select name="template_id">
51                                     <!-- TMPL_LOOP NAME="templates" -->
52                                     <option value="<!-- TMPL_VAR NAME="template_id" -->"><!-- TMPL_VAR NAME="template_code"  --></option>
53                                     <!-- /TMPL_LOOP -->
54                                 </select>
55                             </td>
56                         </tr>
57                         <tr>
58                             <td class="borderless">
59                                 <label for="layout">Select a layout to be applied: </label>
60                             </td>
61                             <td class="borderless">
62                                 <select name="layout_id">
63                                     <!-- TMPL_LOOP NAME="layouts" -->
64                                     <option value="<!-- TMPL_VAR NAME="layout_id" -->"><!-- TMPL_VAR NAME="layout_name"  --></option>
65                                     <!-- /TMPL_LOOP -->
66                                 </select>
67                             </td>
68                         </tr>
69                         <tr>
70                             <td class="borderless">
71                                 <label for="start_label">Enter starting label number: </label>
72                             </td>
73                             <td class="borderless">
74                                 <input type="text" size="5" id="start_label" name="start_label" class="focus" title="Starting label number" value="1"/>
75                             </td>
76                         </tr>
77                         <tr>
78                             <td class="borderless">
79                                 <label for="output_type">Select output format: </label>
80                             </td>
81                             <td class="borderless">
82                                 <select name="output_format">
83                                     <!-- TMPL_LOOP NAME="label_output_formats" -->
84                                     <option value="<!-- TMPL_VAR NAME="type" -->"><!-- TMPL_VAR NAME="desc"  --></option>
85                                     <!-- /TMPL_LOOP -->
86                                 </select>
87                             </td>
88                         </tr>
89                     </table>
90                 </fieldset>
91                 <fieldset class="action">
92                     <input type="submit" value="Export" class="submit" />
93                     <a class="cancel close" href="#">Cancel</a>
94                 </fieldset>
95             </form>
96             <!-- /TMPL_IF -->
97         </div>
98     <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->