More changes to enable YUI-Grids CSS layout
[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 <!-- TMPL_INCLUDE NAME="header.inc" -->
4 <!-- TMPL_INCLUDE NAME="menu-labels.inc" -->
5
6 <div id="doc3" class="yui-t2">
7    
8    <div id="bd">
9         <div id="yui-main">
10         <div class="yui-b"><div class="yui-g">
11
12 <!-- TMPL_INCLUDE NAME="label-status.inc" -->
13
14 <!-- TMPL_UNLESS NAME="batch_id" -->
15 <div class="details">
16 <a class="button" href="/cgi-bin/koha/labels/label-manager.pl?op=add_batch">Create New Batch</a> 
17
18 <!-- <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">
19 <select name="batch_id">
20     <!-- TMPL_LOOP NAME="batches" -->
21         <option value="<!-- TMPL_VAR NAME="batch_id" -->" <!-- TMPL_IF NAME="active" --> selected  <!-- /TMPL_IF -->>
22         <!-- TMPL_VAR NAME="batch_id" --></option>
23     <!-- /TMPL_LOOP -->
24 </select>
25 <input type="submit" value="Open Existing Batch">
26 </form>
27 -->
28 </div>
29 <!-- TMPL_IF NAME="batches" -->
30 <h2>Label Batches</h2>
31 <table>
32 <tr>
33         <th>Batch id</th>
34         <th>#</th>
35         <th>Edit</th>
36         <th>Delete</th>
37         <th>Print</th>
38 </tr>
39 <!-- TMPL_LOOP NAME="batches" -->
40 <tr>
41         <td>
42                 <!-- TMPL_VAR NAME="batch_id" -->
43         </td>
44         <td>
45                 <!-- TMPL_VAR NAME="num" --> records
46         </td>
47         <td>
48                 <a href="/cgi-bin/koha/labels/label-manager.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->">Edit</a>
49         </td>
50         <td>
51                 <a href="/cgi-bin/koha/labels/label-manager.pl?op=delete_batch&batch_id=<!-- TMPL_VAR NAME="batch_id" -->">Delete</a>
52         </td>
53           <td>
54                   <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>
55         </td></tr>
56 <!-- /TMPL_LOOP -->
57 </table>
58
59 <!-- /TMPL_IF -->
60
61 <!-- TMPL_ELSE -->
62 <div class="details">
63 <br /> 
64
65         <a class="button" href="#" onclick="Plugin(<!-- TMPL_VAR NAME="batch_id" -->); return false;">Add item(s) to batch</a> &nbsp;&nbsp;&nbsp;&nbsp;
66                 <a class="button" href="/cgi-bin/koha/labels/label-manager.pl?batch_id=">Return to batch summary</a>&nbsp;&nbsp;&nbsp;&nbsp;
67         <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;
68 <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>
69 </div>
70
71 <h2>Items to be Printed for Batch <!-- TMPL_VAR NAME="batch_id" -->  (<!-- TMPL_VAR NAME="batch_count" -->  items)</h2>
72
73 <table>
74 <tr>
75         <th>Label Number</th>
76         <th>Summary</th>
77         <th>Item Type</th>
78         <th>Barcode</th>
79         <th>Delete</th>
80 </tr>
81 <!-- TMPL_LOOP NAME="resultsloop" -->
82 <tr>
83         <td>
84                 <!-- TMPL_VAR NAME="labelno" -->
85         </td>
86         <td>
87                 <b> <a href="/cgi-bin/koha/detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" -->"> <!-- TMPL_VAR NAME="title" -->:</a></b> <!-- TMPL_VAR NAME="author" -->:
88                 <!-- TMPL_VAR NAME="isbn" -->         </td>
89         <td>           <!-- TMPL_VAR NAME="itemtype" -->         </td>
90         <td>          <!-- TMPL_VAR NAME="barcode" -->         </td>
91         <td>
92                 <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>
93         </td>
94 </tr>
95 <!-- /TMPL_LOOP -->
96 </table>
97
98
99 <!-- /TMPL_UNLESS -->
100
101 <script type="text/javascript">
102 function Plugin(batch_id) {
103         window.open("label-item-search.pl?batch_id="+batch_id+"",'FindABibIndex','width=600,height=460,toolbar=no,scrollbars=yes');
104 }
105 </script>
106
107 </div>
108 </div>
109 </div>
110
111 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
112 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
113
114
115
116
117
118