Adding labels generator.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / labels / label-manager.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><title>Koha &rsaquo;  Labels</title>
2 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
3 <!-- TMPL_INCLUDE NAME="menus.inc" -->
4 <!-- TMPL_INCLUDE NAME="menu-labels.inc" -->
5
6 <div id="main">
7 <!-- TMPL_INCLUDE NAME="label-status.inc" -->
8
9 <!-- TMPL_UNLESS NAME="batch_id" -->
10 <div class="details">
11 <a class="button" href="/cgi-bin/koha/labels/label-manager.pl?op=add_batch">Create New Batch</a> 
12
13 <!-- <form style="padding: 3px 30px; border-left: 1px solid black;border-right: 1px solid black;margin: 0 20px;" name="input" action="/cgi-bin/koha/labels/label-manager.pl" method="get">
14 <select name="batch_id">
15     <!-- TMPL_LOOP NAME="batches" -->
16         <option value="<!-- TMPL_VAR NAME="batch_id" -->" <!-- TMPL_IF NAME="active" --> selected  <!-- /TMPL_IF -->>
17         <!-- TMPL_VAR NAME="batch_id" --></option>
18     <!-- /TMPL_LOOP -->
19 </select>
20 <input type="submit" value="Open Existing Batch">
21 </form>
22 -->
23 </div>
24 <!-- TMPL_IF NAME="batches" -->
25 <h2>Label Batches</h2>
26 <table>
27 <tr>
28         <th>Batch id</th>
29         <th>#</th>
30         <th>Edit</th>
31         <th>Delete</th>
32         <th>Print</th>
33 </tr>
34 <!-- TMPL_LOOP NAME="batches" -->
35 <tr>
36         <td>
37                 <!-- TMPL_VAR NAME="batch_id" -->
38         </td>
39         <td>
40                 <!-- TMPL_VAR NAME="num" --> records
41         </td>
42         <td>
43                 <a href="/cgi-bin/koha/labels/label-manager.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->">Edit</a>
44         </td>
45         <td>
46                 <a href="/cgi-bin/koha/labels/label-manager.pl?op=delete_batch&batch_id=<!-- TMPL_VAR NAME="batch_id" -->">Delete</a>
47         </td>
48           <td>
49                   <a class="button" style="float: right;"  href="/cgi-bin/koha/labels/label-print-pdf.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->">Generate PDF for Batch  <!-- TMPL_VAR NAME="batch_id" --></a>
50         </td></tr>
51 <!-- /TMPL_LOOP -->
52 </table>
53
54 <!-- /TMPL_IF -->
55
56 <!-- TMPL_ELSE -->
57 <div class="details">
58 <br /> 
59
60         <a class="button" href="#" onclick="Plugin(<!-- TMPL_VAR NAME="batch_id" -->); return false;">Add item(s) to batch</a> &nbsp;&nbsp;&nbsp;&nbsp;
61                 <a class="button" href="/cgi-bin/koha/labels/label-manager.pl?batch_id=">Return to batch summary</a>&nbsp;&nbsp;&nbsp;&nbsp;
62         <a class="button" style="border:2px solid #634;" href="/cgi-bin/koha/labels/label-manager.pl?op=delete_batch&amp;batch_id=<!-- TMPL_VAR NAME="batch_id" -->">Delete current batch (<!-- TMPL_VAR NAME="batch_id" -->)</a>&nbsp;&nbsp;&nbsp;&nbsp;
63 <a class="button"  href="/cgi-bin/koha/labels/label-print-pdf.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->">Generate PDF for Batch: <!-- TMPL_VAR NAME="batch_id" --></a>
64 </div>
65
66 <h2>Items to be Printed for Batch <!-- TMPL_VAR NAME="batch_id" -->  (<!-- TMPL_VAR NAME="batch_count" -->  items)</h2>
67
68 <table>
69 <tr>
70         <th>Label Number</th>
71         <th>Summary</th>
72         <th>Item Type</th>
73         <th>Barcode</th>
74         <th>Delete</th>
75 </tr>
76 <!-- TMPL_LOOP NAME="resultsloop" -->
77 <tr>
78         <td>
79                 <!-- TMPL_VAR NAME="labelno" -->
80         </td>
81         <td>
82                 <b> <a href="/cgi-bin/koha/detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" -->"> <!-- TMPL_VAR NAME="title" -->:</a></b> <!-- TMPL_VAR NAME="author" -->:
83                 <!-- TMPL_VAR NAME="isbn" -->         </td>
84         <td>           <!-- TMPL_VAR NAME="itemtype" -->         </td>
85         <td>          <!-- TMPL_VAR NAME="barcode" -->         </td>
86         <td>
87                 <a href="/cgi-bin/koha/labels/label-manager.pl?op=delete&amp;itemnumber=<!-- TMPL_VAR NAME="itemnumber" -->&amp;batch_id=<!-- TMPL_VAR NAME="batch_id" -->">Delete</a>
88         </td>
89 </tr>
90 <!-- /TMPL_LOOP -->
91 </table>
92
93
94 <!-- /TMPL_UNLESS -->
95
96
97
98 </div>
99
100
101 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
102
103
104
105 <script type="text/javascript">
106 function Plugin(batch_id) {
107         window.open("label-item-search.pl?batch_id="+batch_id+"",'FindABibIndex','width=600,height=460,toolbar=no,scrollbars=yes');
108 }
109 </script>
110
111