Line 0
Link Here
|
|
|
1 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
<title>Koha › Tools › Label creator</title> |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
[% INCLUDE 'greybox.inc' %] |
5 |
[% IF ( bidi ) %] |
6 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/right-to-left.css" /> |
7 |
[% END %] |
8 |
<script type="text/javascript"> |
9 |
function Xport() { |
10 |
var str = ""; |
11 |
str += "from=" + parseInt(document.getElementById("from-input").value) + "&"; |
12 |
str += "to=" + parseInt(document.getElementById("to-input").value); |
13 |
return GB_showCenter('Export labels', "/cgi-bin/koha/labels/label-print.pl?" + str, 400, 800); |
14 |
return; |
15 |
} |
16 |
function print() { |
17 |
var error = false; |
18 |
if (parseInt(document.getElementById("from-input").value) == 0) { |
19 |
document.getElementById("from-error").innerHTML = " *Cannot be smaller than 1"; |
20 |
error = true; |
21 |
} else { |
22 |
document.getElementById("from-error").innerHTML = ""; |
23 |
} |
24 |
if (parseInt(document.getElementById("from-input").value) > parseInt(document.getElementById("to-input").value)) { |
25 |
document.getElementById("to-error").innerHTML = " *Cannot be smaller than starting value"; |
26 |
error = true; |
27 |
} |
28 |
else { |
29 |
document.getElementById("to-error").innerHTML = ""; |
30 |
} |
31 |
|
32 |
if (error) |
33 |
return; |
34 |
|
35 |
return Xport(); |
36 |
} |
37 |
|
38 |
</script> |
39 |
</head> |
40 |
<body id="labels_label-home" class="tools labels"> |
41 |
[% INCLUDE 'header.inc' %] |
42 |
[% INCLUDE 'cat-search.inc' %] |
43 |
<div id="breadcrumbs"> |
44 |
<a href="/cgi-bin/koha/mainpage.pl">Home</a> › |
45 |
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › |
46 |
Label creator |
47 |
</div> |
48 |
<div id="doc3" class="yui-t2"> |
49 |
<div id="bd"> |
50 |
<div id="yui-main"> |
51 |
<div class="yui-b"> |
52 |
<div class="yui-g"> |
53 |
[% INCLUDE 'labels-toolbar.inc' %] |
54 |
<div class="yui-u first"> |
55 |
|
56 |
</div> |
57 |
<h3>Print barcode range</h3> |
58 |
</div> |
59 |
<form name="add_by_number" action="/cgi-bin/koha/labels/label-edit-batch.pl" method="post"> |
60 |
<div> |
61 |
<fieldset class="rows" style="border-bottom: 0px; border: 0px;"> |
62 |
<ol> |
63 |
<li> |
64 |
<input type="hidden" name="op" value="add" /> |
65 |
</li> |
66 |
<li> |
67 |
<label for="from-input">From:</label> |
68 |
<input type="number" name="from" id="from-input" value="0" style="text-align: right;"/> |
69 |
<span id="from-error" style="color: red; font-style: italic;"></span> |
70 |
<br/> |
71 |
</li> |
72 |
<li> |
73 |
<label for="to-input">To:</label> |
74 |
<input type="number" name="to" id="to-input" value="0" style="text-align: right;"/> |
75 |
<span id="to-error" style="color: red; font-style: italic;"></span> |
76 |
<br/> |
77 |
</li> |
78 |
</ol> |
79 |
</fieldset> |
80 |
</div> |
81 |
</form> |
82 |
<div id="batch-manage" class="btn-toolbar"> |
83 |
<a class="btn btn-default btn-sm" id="print" href="javascript:print()"> |
84 |
<!-- This display a plus. Is there a more appropriate symbol to use? |
85 |
<i class="fa fa-plus"></i> |
86 |
--> |
87 |
Print range |
88 |
</a> |
89 |
</div> |
90 |
</div> |
91 |
</div> |
92 |
<div class="yui-b"> |
93 |
[% INCLUDE 'tools-menu.inc' %] |
94 |
</div> |
95 |
</div> |
96 |
[% INCLUDE 'intranet-bottom.inc' %] |