1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Tools › Labels › Manage Label Elements</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_INCLUDE NAME="greybox.inc" -->
5 <!-- Uncomment the following script line to enable firebug lite for use on IE -->
6 <!-- <script type='text/javascript' src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script> -->
7 <script type="text/JavaScript" language="JavaScript">
9 function DeleteConfirm() {
10 var element_id = selected_layout("delete");
12 var msg = "Are you sure you want to delete <!-- TMPL_VAR NAME="label_element" --> " + element_id + "?"
13 var answer = confirm(msg);
15 window.location = "/cgi-bin/koha/labels/label-manage.pl?op=delete&label_element=<!-- TMPL_VAR NAME="label_element" -->&element_id=" + element_id;
18 return; // abort delete
22 return; // no layout selected
26 var element_id = selected_layout("edit");
28 window.location = "/cgi-bin/koha/labels/label-edit-<!-- TMPL_VAR NAME="label_element" -->.pl?op=edit&element_id=" + element_id;
31 return; // no layout selected
36 if(document.layouts.action.length > 0) {
37 for (var i=0; i < document.layouts.action.length; i++) {
38 if (document.layouts.action[i].checked) {
39 batches.push("batch_id=" + document.layouts.action[i].value);
42 if (batches.length < 1) {
43 alert("Please select at least one batch to export.");
44 return; // no batch selected
46 getstr = batches.join("&");
48 else if (document.layouts.action.checked) {
49 getstr = "batch_id="+document.layouts.action.value;
52 alert("Please select at least one batch to export.");
53 return; // no batch selected
55 return GB_showCenter('Export Labels', "/cgi-bin/koha/labels/label-print.pl?" + getstr, 700, 800);
57 function selected_layout(op) {
58 var selected = new Array;
59 if (document.layouts.action.length) {
60 for (i=0;i<document.layouts.action.length;i++){
61 if (document.layouts.action[i].checked){
65 if (selected.length == 1) {
66 return(document.layouts.action[selected[0]].value);
69 alert("Please select only one <!-- TMPL_VAR NAME="label_element" --> to " + op + ".");
74 if (document.layouts.action.checked){
75 return(document.layouts.action.value);
78 alert("Please select a <!-- TMPL_VAR NAME="label_element" -->.");
85 <!-- TMPL_INCLUDE NAME="header.inc" -->
86 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
87 <div id="breadcrumbs">
88 <a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
89 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> ›
90 <a href="/cgi-bin/koha/labels/label-home.pl">Labels Home</a> ›
91 Manage Label <!-- TMPL_VAR NAME="label_element_title" -->
93 <div id="doc3" class="yui-t2">
97 <!-- TMPL_INCLUDE NAME="labels-toolbar.inc" -->
99 <div class="yui-u first" id="manage-label-layouts">
100 <div class="hint">Current Branch: <!-- TMPL_VAR NAME="LoginBranchname" --></div>
101 <!-- TMPL_IF NAME="table_loop" -->
102 <form name="layouts">
103 <h2>Currently Available <!-- TMPL_VAR NAME="label_element_title" --></h2>
105 <!-- TMPL_LOOP NAME="table_loop" -->
106 <!-- TMPL_IF NAME="header_fields" -->
108 <!-- TMPL_LOOP NAME="header_fields" -->
109 <th><!-- TMPL_VAR NAME="field_label" --></th>
114 <!-- TMPL_LOOP NAME="text_fields" -->
115 <!-- TMPL_IF NAME="select_field" -->
116 <td align="center"><input type="checkbox" name="action" value="<!-- TMPL_VAR NAME="field_value" -->"></td>
117 <!-- TMPL_ELSIF NAME="field_value" -->
118 <td><!-- TMPL_VAR NAME="field_value" --></td>
127 <div style="margin: 10px 10px 10px 0px;">
128 <span class="yui-button yui-link-button"><span class="first-child"><input type="button" id="edit" onclick="Edit()" value="Edit"></span></span>
129 <span class="yui-button yui-link-button"><span class="first-child"><input type="button" id="delete" onclick="DeleteConfirm()" value="Delete"></span></span>
130 <!-- TMPL_IF NAME="print" --><span class="yui-button yui-link-button"><span class="first-child"><input type="button" id="print" onclick="Xport()" value="Export"></span></span><!-- /TMPL_IF -->
134 <h2>There Are No <!-- TMPL_VAR NAME="label_element_title" --> Currently Available.</h2>
135 <div class="hint"><h3>Use the toolbar above to create a new <!-- TMPL_VAR NAME="label_element" -->.</h3></div>
138 <!-- TMPL_IF NAME="error" -->
141 <strong>WARNING: An error was encountered and <!-- TMPL_VAR NAME="label_element" --> <!-- TMPL_VAR NAME="element_id" --> was not deleted. Please have your system administrator check the error log for details.</strong>
149 <!-- TMPL_INCLUDE NAME="labels-menu.inc" -->
152 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->