1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Tools › Labels › Manage Label Batches</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/JavaScript" language="JavaScript">
6 function RemoveConfirm() {
7 var label_id = selected_layout();
9 var msg = "Are you sure you want to the selected item from this batch?"
10 var answer = confirm(msg);
12 window.location = "/cgi-bin/koha/labels/label-edit-batch.pl?op=remove&batch_id=<!-- TMPL_VAR NAME="batch_id" -->&label_id=" + label_id;
15 return; // abort delete
19 return; // no layout selected
23 window.location = "/cgi-bin/koha/labels/label-edit-batch.pl?op=add&batch_id=<!-- TMPL_VAR NAME="batch_id" -->";
25 function Print(mode) {
26 if (mode == 'batch') {
27 alert("Print batch <!-- TMPL_VAR NAME="batch_id" -->.");
28 // window.location = "/cgi-bin/koha/labels/label-edit-batch.pl?op=print&batch_id=<!-- TMPL_VAR NAME="batch_id" -->";
31 var label_id = selected_layout();
32 alert("Print item " + label_id + ".");
34 // window.location = "/cgi-bin/koha/labels/label-edit-batch.pl?op=print&batch_id=<!-- TMPL_VAR NAME="batch_id" -->&label_id=" + label_id;
37 // return; // no layout selected
41 function selected_layout() {
42 if (document.layouts.action.length) {
43 for (i=0;i<document.layouts.action.length;i++){
44 if (document.layouts.action[i].checked==true){
45 return(document.layouts.action[i].value);
50 if (document.layouts.action.checked){
51 return(document.layouts.action.value);
53 //var x=document.getElementsByName("action");
56 // return(x[0].value);
59 alert("Please select an item.");
66 <!-- TMPL_INCLUDE NAME="header.inc" -->
67 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
68 <div id="breadcrumbs">
69 <a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
70 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> ›
71 <a href="/cgi-bin/koha/labels/labels-home.pl">Labels</a> ›
72 Manage Batch Number <!-- TMPL_VAR NAME="batch_id" -->
74 <div id="doc3" class="yui-t2">
78 <!-- TMPL_INCLUDE NAME="labels-batches-toolbar.inc" -->
80 <div class="yui-u first" id="manage-label-batches">
81 <div class="hint">Current Branch: <!-- TMPL_VAR NAME="LoginBranchname" --></div>
83 <h2>Items in batch number <!-- TMPL_VAR NAME="batch_id" --></h2>
85 <!-- TMPL_LOOP NAME="table_loop" -->
86 <!-- TMPL_IF NAME="header_fields" -->
88 <!-- TMPL_LOOP NAME="header_fields" -->
89 <th><!-- TMPL_VAR NAME="field_label" --></th>
94 <!-- TMPL_LOOP NAME="text_fields" -->
95 <!-- TMPL_IF NAME="select_field" -->
96 <td align="center"><input type="radio" name="action" value="<!-- TMPL_VAR NAME="field_value" -->"></td>
98 <td><!-- TMPL_VAR NAME="field_value" --></td>
106 <div style="margin: 10px 10px 10px 0px;">
107 <span class="yui-button yui-link-button"><span class="first-child"><input type="button" id="add" onclick="Add()" value="Add Item"></span></span>
108 <span class="yui-button yui-link-button"><span class="first-child"><input type="button" id="remove" onclick="RemoveConfirm()" value="Remove Item"></span></span>
109 <span class="yui-button yui-link-button"><span class="first-child"><input type="button" id="print_item" onclick="Print(item)" value="Print Item"></span></span>
110 <span class="yui-button yui-link-button"><span class="first-child"><input type="button" id="print_batch" onclick="Print(batch)" value="Print Batch"></span></span>
113 <!-- TMPL_IF NAME="err" -->
115 <div class="dialog alert">
116 <strong>WARNING: An error was encountered and <!-- TMPL_VAR NAME="errstr" --> Please have your system administrator check the syslog for details.</strong>
124 <!-- TMPL_INCLUDE NAME="labels-menu.inc" -->
127 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->