1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Tools › Patron Cards › 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;} .tr {border-collapse: separate;}</style>
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.card_count %] Single Patron Cards
32 <td class="borderless">
34 <a href="/cgi-bin/koha/patroncards/[% batche.create_script %]?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&start_card=[% batche.start_card %][% batche.label_ids %]">label_single_[% batche.card_count %].pdf</a>
37 [% ELSIF ( batche.borrower_numbers ) %]
38 <td class="borderless">
39 [% batche.card_count %] Single Patron Cards
41 <td class="borderless">
43 <a href="/cgi-bin/koha/patroncards/[% batche.create_script %]?template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&start_card=[% batche.start_card %][% batche.borrower_numbers %]">label_single_[% batche.card_count %].pdf</a>
47 <td class="borderless">
48 Card Batch Number [% batche.batch_id %]
50 <td class="borderless">
52 <a href="/cgi-bin/koha/patroncards/create-pdf.pl?batch_id=[% batche.batch_id %]&template_id=[% batche.template_id %]&layout_id=[% batche.layout_id %]&start_card=[% batche.start_card %]">label_batch_[% batche.batch_id %].pdf</a>
60 <fieldset class="action">
61 <div style="margin: 10px 10px 10px 0px;">
62 <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>
69 [% IF ( label_ids ) %]
70 <b>Exporting [% card_count %] patroncard(s).</b>
71 [% ELSIF ( borrower_numbers ) %]
72 <b>Exporting [% borrower_count %] patroncard(s).</b>
74 <b>[% multi_batch_count %] batch(es) to export.</b>
78 <form name="exporting" method="post" action="/cgi-bin/koha/patroncards/print.pl">
79 <input type="hidden" name="op" value="export" />
80 <input type="hidden" name="referer" value="[% referer %]" />
81 [% FOREACH batch_id IN batch_ids %]
82 <input type="hidden" name="batch_id" value="[% batch_id.batch_id %]" />
84 [% FOREACH label_id IN label_ids %]
85 <input type="hidden" name="label_id" value="[% label_id.label_id %]" />
87 [% FOREACH borrower_number IN borrower_numbers %]
88 <input type="hidden" name="borrower_number" value="[% borrower_number.borrower_number %]" />
90 <fieldset class="rows">
91 <table class="borderless">
93 <td class="borderless">
94 <label for="template">Select a template to be applied: </label>
96 <td class="borderless">
97 <select name="template_id">
98 [% FOREACH template IN templates %]
99 <option value="[% template.template_id %]">[% template.template_code %]</option>
105 <td class="borderless">
106 <label for="layout">Select a layout to be applied: </label>
108 <td class="borderless">
109 <select name="layout_id">
110 [% FOREACH layout IN layouts %]
111 <option value="[% layout.layout_id %]">[% layout.layout_name %]</option>
117 <td class="borderless">
118 <label for="start_card">Enter starting card number: </label>
120 <td class="borderless">
121 <input type="text" size="5" id="start_card" name="start_card" class="focus" title="Starting card number" value="1"/>
126 <fieldset class="action">
127 <div style="margin: 10px 10px 10px 0px;">
128 <span class="yui-button yui-link-button"><span class="first-child"><input type="submit" value="Export" /></span></span>
129 <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>
135 [% INCLUDE 'intranet-bottom.inc' %]