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