24b011f1b499ba8e0119e19482c0191efaf62225
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / 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 <script type="text/javascript">
4 function Plugin(batch_id) {
5         window.open("label-item-search.pl?batch_id="+batch_id+"",'FindABibIndex','width=640,height=400,toolbar=no,scrollbars=yes');
6 }
7 </script>
8 </head>
9 <body>
10 <!-- TMPL_INCLUDE NAME="header.inc" -->
11 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
12
13 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; Labels</div>
14  <div id="doc3" class="yui-t2">
15   <div id="bd">
16    <div id="yui-main">
17         <div class="yui-b">
18
19 <!-- TMPL_IF NAME="message" -->
20         <!-- TMPL_LOOP NAME="message_loop" -->
21         <div style="color: red; margin: 5pt; font-weight: bold;" class="message"><!-- TMPL_VAR NAME="message_text" --></div>
22         <!-- /TMPL_LOOP -->
23 <!-- /TMPL_IF -->
24
25 <!-- TMPL_INCLUDE NAME="tools-labels-toolbar.inc" -->
26 <!-- TMPL_UNLESS NAME="batch_id" -->
27 <!-- TMPL_IF EXPR="(batch_type eq 'labels')" -->
28 <!-- TMPL_IF NAME="batches" -->
29     <div class="yui-g">
30         <div class="yui-u first">
31             <h2>Label Batches</h2>
32             <table>
33                 <tr>
34                     <th>ID</th>
35                     <th>#</th>
36                     <th>Edit</th>
37                     <th>Delete</th>
38                     <th>Print</th>
39                 </tr>
40                 <!-- TMPL_LOOP NAME="batches" -->
41                 <tr>
42                     <td><!-- TMPL_VAR NAME="batch_id" --></td>
43                     <td><!-- TMPL_VAR NAME="num" --> records</td>
44                     <td><a href="/cgi-bin/koha/labels/label-manager.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;type=labels">Edit</a></td>
45                     <td><a href="/cgi-bin/koha/labels/label-manager.pl?op=delete_batch&amp;batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;type=labels">Delete</a><!-- FIXME: should use POST to change server state, not GET --></td>
46                     <td><a style="float: left;"  href="/cgi-bin/koha/labels/label-print-pdf.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;type=labels">Generate PDF for Batch  <!-- TMPL_VAR NAME="batch_id" --></a></td>
47                 </tr>
48                 <!-- /TMPL_LOOP -->
49             </table>
50         </div>
51         <div class="yui-u">
52         <!-- TMPL_INCLUDE NAME="label-status.inc" -->
53         </div>
54     </div>
55 <!-- TMPL_ELSE -->
56     <div class="yui-g">
57         <div class="yui-u first">
58             <h2>No Label Batches Currently Defined</h2>
59         </div>
60         <div class="yui-u">
61         <!-- TMPL_INCLUDE NAME="label-status.inc" -->
62         </div>
63     </div>
64 <!-- /TMPL_IF --><!-- /batches -->
65 <!-- TMPL_ELSIF EXPR="(batch_type eq 'patroncards')" -->
66 <!-- TMPL_IF NAME="batches" -->
67     <div class="yui-g">
68         <div class="yui-u first">
69             <h2>Patron Card Batches</h2>
70             <table>
71                 <tr>
72                     <th>ID</th>
73                     <th>#</th>
74                     <th>Edit</th>
75                     <th>Delete</th>
76                     <th>Print</th>
77                 </tr>
78                 <!-- TMPL_LOOP NAME="batches" -->
79                 <tr>
80                     <td><!-- TMPL_VAR NAME="batch_id" --></td>
81                     <td><!-- TMPL_VAR NAME="num" --> records</td>
82                     <td><a href="/cgi-bin/koha/labels/label-manager.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;type=patroncards">Edit</a></td>
83                     <td><a href="/cgi-bin/koha/labels/label-manager.pl?op=delete_batch&amp;batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;type=patroncards">Delete</a><!-- FIXME: should use POST to change server state, not GET --></td>
84                     <td><a style="float: left;"  href="/cgi-bin/koha/labels/label-print-pdf.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;type=patroncards">Generate PDF for Batch  <!-- TMPL_VAR NAME="batch_id" --></a></td>
85                 </tr>
86                 <!-- /TMPL_LOOP -->
87             </table>
88         </div>
89         <div class="yui-u">
90             <!-- TMPL_INCLUDE NAME="label-status.inc" -->
91         </div>
92     </div>
93 <!-- TMPL_ELSE -->
94     <div class="yui-g">
95         <div class="yui-u first">
96             <h2>No Patron Card Batches Currently Defined</h2>
97         </div>
98         <div class="yui-u">
99             <!-- TMPL_INCLUDE NAME="label-status.inc" -->
100         </div>
101     </div>
102 <!-- /TMPL_IF --><!-- /batches -->
103 <!-- /TMPL_IF --><!-- /batch_type -->
104 <!-- /TMPL_UNLESS --><!-- batch_id -->
105 <!-- if no batch_id do this -->
106 <!-- TMPL_IF EXPR="(batch_type eq 'labels')" -->
107     <h2>Items to be Printed for Batch <!-- TMPL_VAR NAME="batch_id" -->  (<!-- TMPL_VAR NAME="batch_count" -->  items)</h2>
108     <table>
109         <tr>
110             <th>Label<br />Num.</th>
111             <th>Summary</th>
112             <th>Item<br />Type</th>
113             <th>Barcode</th>
114             <th>Delete</th>
115         </tr>
116         <!-- TMPL_LOOP NAME="resultsloop" -->
117         <tr>
118             <td><!-- TMPL_VAR NAME="labelno" --></td>
119             <td><b><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"> <!-- TMPL_VAR NAME="title" --></a></b> : <!-- TMPL_VAR NAME="author" --> : <!-- TMPL_VAR NAME="isbn" --></td>
120             <td><!-- TMPL_VAR NAME="itemtype" --></td>
121             <td><!-- TMPL_VAR NAME="barcode" --></td>
122             <td><a href="/cgi-bin/koha/labels/label-manager.pl?op=delete&amp;labelid=<!-- TMPL_VAR NAME="labelid" -->&amp;batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;type=labels">Delete</a></td>
123                             <!-- FIXME: should use POST to change server state, not GET -->
124         </tr>
125         <!-- /TMPL_LOOP -->
126     </table>
127 <!-- TMPL_ELSIF EXPR="(batch_type eq 'patroncards')" -->
128     <h2>Patron Cards to be Printed for Batch <!-- TMPL_VAR NAME="batch_id" -->  (<!-- TMPL_VAR NAME="batch_count" -->  items)</h2>
129     <table>
130         <tr>
131             <th>Card<br />Num.</th>
132             <th>Patron Name</th>
133             <th>Borrower Number</th>
134             <th>Card Number</th>
135             <th>Delete</th>
136         </tr>
137         <!-- TMPL_LOOP NAME="resultsloop" -->
138         <tr>
139             <td><!-- TMPL_VAR NAME="cardno" --></td>
140             <td><b><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"> <!-- TMPL_VAR NAME="title" -->. <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></a></b></td>
141             <td><!-- TMPL_VAR NAME="borrowernumber" --></td>
142             <td><!-- TMPL_VAR NAME="cardnumber" --></td>
143             <td><a href="/cgi-bin/koha/labels/label-manager.pl?op=delete&amp;cardid=<!-- TMPL_VAR NAME="cardid" -->&amp;batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;type=patroncards">Delete</a></td>
144                             <!-- FIXME: should use POST to change server state, not GET -->
145         </tr>
146         <!-- /TMPL_LOOP -->
147     </table>
148 <!-- TMPL_ELSIF EXPR="(batch_type eq 'patroncards')" -->
149 <!-- /TMPL_IF --><!-- /batch_type -->
150 </div>
151 </div>
152 <div class="yui-b">
153 <!-- TMPL_INCLUDE NAME="labels-menu.inc" -->
154 </div>
155 </div>
156 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->