1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Tools › Patron Card Creator › Patron card printing/exporting</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/JavaScript" language="JavaScript">
7 window.location = "[% referer %]";
11 <style type="text/css">#custom-doc {width:47.23em; *width:46.04em; min-width:610px; margin:auto; margin-top:0.4em;}</style>
12 <style type="text/css">table {border-collapse: separate; border-spacing: 0; border: hidden none;} .header {cursor: auto; background-position: center center; background-repeat: repeat;}</style>
14 <body id="pcard_card-print" class="tools pcard">
15 <div id="custom-doc" class="yui-t2">
21 <b>Click on the following link(s) to download the exported batch(es).</b>
24 <fieldset class="rows">
25 <table class="borderless">
26 [% FOREACH batche IN batches %]
28 [% IF ( batche.label_ids ) %]
29 <td class="borderless">
30 [% batche.label_count %] Single cards
32 <td class="borderless">
34 <a href="/cgi-bin/koha/labels/[% batche.create_script %]?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&start_label=[% batche.start_label %][% batche.label_ids %]">label_single_[% batche.label_count %].pdf</a>
37 <td class="borderless">
39 <a href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %][% batche.label_ids %]">label_single_[% batche.label_count %].csv</a>
42 <td class="borderless">
44 <a href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %][% batche.label_ids %]">label_single_[% batche.label_count %].xml</a>
47 [% ELSIF ( batche.item_numbers ) %]
48 <td class="borderless">
49 [% batche.label_count %] Single Cards
51 <td class="borderless">
53 <a href="/cgi-bin/koha/labels/[% batche.create_script %]?template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&start_label=[% batche.start_label %][% batche.item_numbers %]">label_single_[% batche.label_count %].pdf</a>
56 <td class="borderless">
58 <a href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %][% batche.item_numbers %]">label_single_[% batche.label_count %].csv</a>
61 <td class="borderless">
63 <a href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %][% batche.item_numbers %]">label_single_[% batche.label_count %].xml</a>
67 <td class="borderless">
68 Card batch number [% batche.batch_id %]
70 <td class="borderless">
72 <a href="/cgi-bin/koha/labels/label-create-pdf.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&start_label=[% batche.start_label %]">label_batch_[% batche.batch_id %].pdf</a>
75 <td class="borderless">
77 <a href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]">label_batch_[% batche.batch_id %].csv</a>
80 <td class="borderless">
82 <a href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]">label_batch_[% batche.batch_id %].xml</a>
90 <fieldset class="action">
91 <div style="margin: 10px 10px 10px 0px;">
92 <span class="yui-button yui-link-button"><span class="first-child"><input type="button" id="done" onclick="parent.parent.GB_hide();" value="Done"></span></span>
99 [% IF ( label_ids ) %]
100 <b>Exporting [% label_count %] cards(s).</b>
101 [% ELSIF ( item_numbers ) %]
102 <b>Exporting [% item_count %] cards(s).</b>
104 <b>[% multi_batch_count %] batch(es) to export.</b>
108 <form name="exporting" method="post" action="/cgi-bin/koha/labels/label-print.pl">
109 <input type="hidden" name="op" value="export" />
110 <input type="hidden" name="referer" value="[% referer %]" />
111 [% FOREACH batch_id IN batch_ids %]
112 <input type="hidden" name="batch_id" value="[% batch_id.batch_id %]" />
114 [% FOREACH label_id IN label_ids %]
115 <input type="hidden" name="label_id" value="[% label_id.label_id %]" />
117 [% FOREACH item_number IN item_numbers %]
118 <input type="hidden" name="item_number" value="[% item_number.item_number %]" />
120 <fieldset class="rows">
121 <table class="borderless">
123 <td class="borderless">
124 <label for="template">Select a template to be applied: </label>
126 <td class="borderless">
127 <select name="template_id">
128 [% FOREACH template IN templates %]
129 <option value="[% template.template_id %]">[% template.template_code %]</option>
135 <td class="borderless">
136 <label for="layout">Select a layout to be applied: </label>
138 <td class="borderless">
139 <select name="layout_id">
140 [% FOREACH layout IN layouts %]
141 <option value="[% layout.layout_id %]">[% layout.layout_name %]</option>
147 <td class="borderless">
148 <label for="start_label">Enter starting card number: </label>
150 <td class="borderless">
151 <input type="text" size="5" id="start_label" name="start_label" class="focus" title="Starting card number" value="1"/>
156 <fieldset class="action">
157 <div style="margin: 10px 10px 10px 0px;">
158 <span class="yui-button yui-link-button"><span class="first-child"><input type="submit" value="Export" /></span></span>
159 <span class="yui-button yui-link-button"><span class="first-child"><input type="button" id="done" onclick="parent.parent.GB_hide();" value="Cancel"></span></span>
165 [% INCLUDE 'intranet-bottom.inc' %]