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 <script type="text/JavaScript" language="JavaScript">
6 function DeleteConfirm() {
7 var element_id = selected_layout();
9 var msg = "Are you sure you want to delete <!-- TMPL_VAR NAME="label_element" --> " + element_id + "?"
10 var answer = confirm(msg);
12 window.location = "/cgi-bin/koha/labels/label-manage.pl?op=delete&label_element=<!-- TMPL_VAR NAME="label_element" -->&element_id=" + element_id;
15 return; // abort delete
19 return; // no layout selected
23 var element_id = selected_layout();
25 window.location = "/cgi-bin/koha/labels/label-edit-<!-- TMPL_VAR NAME="label_element" -->.pl?op=edit&element_id=" + element_id;
28 return; // no layout selected
32 var element_id = selected_layout();
34 window.location = "/cgi-bin/koha/labels/label-edit-<!-- TMPL_VAR NAME="label_element" -->.pl?op=edit&element_id=" + element_id;
37 return; // no layout selected
40 function selected_layout() {
41 if (document.layouts.action.length) {
42 for (i=0;i<document.layouts.action.length;i++){
43 if (document.layouts.action[i].checked==true){
44 return(document.layouts.action[i].value);
49 if (document.layouts.action.checked){
50 return(document.layouts.action.value);
52 //var x=document.getElementsByName("action");
55 // return(x[0].value);
58 alert("Please select a <!-- TMPL_VAR NAME="label_element" -->.");
65 <!-- TMPL_INCLUDE NAME="header.inc" -->
66 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
67 <div id="breadcrumbs">
68 <a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
69 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> ›
70 <a href="/cgi-bin/koha/labels/labels-home.pl">Labels</a> ›
71 Manage Label <!-- TMPL_VAR NAME="label_element_title" -->
73 <div id="doc3" class="yui-t2">
77 <!-- TMPL_INCLUDE NAME="labels-new-toolbar.inc" -->
79 <div class="yui-u first" id="manage-label-layouts">
80 <div class="hint">Current Branch: <!-- TMPL_VAR NAME="LoginBranchname" --></div>
82 <h2>Currently Available <!-- TMPL_VAR NAME="label_element_title" --></h2>
84 <!-- TMPL_LOOP NAME="table_loop" -->
85 <!-- TMPL_IF NAME="header_fields" -->
87 <!-- TMPL_LOOP NAME="header_fields" -->
88 <th><!-- TMPL_VAR NAME="field_label" --></th>
93 <!-- TMPL_LOOP NAME="text_fields" -->
94 <!-- TMPL_IF NAME="select_field" -->
95 <td align="center"><input type="radio" name="action" value="<!-- TMPL_VAR NAME="field_value" -->"></td>
97 <td><!-- TMPL_VAR NAME="field_value" --></td>
104 <div style="margin: 10px 10px 10px 0px;">
105 <span class="yui-button yui-link-button"><span class="first-child"><input type="button" id="edit" onclick="Edit()" value="Edit"></span></span>
106 <span class="yui-button yui-link-button"><span class="first-child"><input type="button" id="delete" onclick="DeleteConfirm()" value="Delete"></span></span>
107 <!-- TMPL_IF NAME="print" --><span class="yui-button yui-link-button"><span class="first-child"><input type="button" id="print" onclick="Print()" value="Print"></span></span><!-- /TMPL_IF -->
111 <!-- TMPL_IF NAME="error" -->
113 <div class="dialog alert">
114 <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 syslog for details.</strong>
122 <!-- TMPL_INCLUDE NAME="labels-menu.inc" -->
125 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->