Koha/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/card-print.tt
Katrin Fischer 892d64aa6c Bug 2780 - Capitalize strings consistently (patron cards)
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
2012-04-10 10:04:12 +02:00

165 lines
9.9 KiB
Text

[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Tools &rsaquo; Patron Card Creator &rsaquo; Patron card printing/exporting</title>
[% INCLUDE 'doc-head-close.inc' %]
<script type="text/JavaScript" language="JavaScript">
//<![CDATA[
function Done() {
window.location = "[% referer %]";
};
//]]>
</script>
<style type="text/css">#custom-doc {width:47.23em; *width:46.04em; min-width:610px; margin:auto; margin-top:0.4em;}</style>
<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>
</head>
<body id="pcard_card-print" class="tools pcard">
<div id="custom-doc" class="yui-t2">
<div id="bd">
[% IF ( batches ) %]
<form>
<div align="center">
<div class="message">
<b>Click on the following link(s) to download the exported batch(es).</b>
</div>
</div>
<fieldset class="rows">
<table class="borderless">
[% FOREACH batche IN batches %]
<tr>
[% IF ( batche.label_ids ) %]
<td class="borderless">
[% batche.label_count %] Single cards
</td>
<td class="borderless">
<h1 id="pdf">
<a href="/cgi-bin/koha/labels/[% batche.create_script %]?batch_id=[% batche.batch_id %]&amp;template_id=[% batche.template_id %]&amp;layout_id=[% batche.layout_id %]&amp;start_label=[% batche.start_label %][% batche.label_ids %]">label_single_[% batche.label_count %].pdf</a>
</h1>
</td>
<td class="borderless">
<h1 id="csv">
<a href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id %]&amp;template_id=[% batche.template_id %]&amp;layout_id=[% batche.layout_id %][% batche.label_ids %]">label_single_[% batche.label_count %].csv</a>
</h1>
</td>
<td class="borderless">
<h1 id="xml">
<a href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=[% batche.batch_id %]&amp;template_id=[% batche.template_id %]&amp;layout_id=[% batche.layout_id %][% batche.label_ids %]">label_single_[% batche.label_count %].xml</a>
</h1>
</td>
[% ELSIF ( batche.item_numbers ) %]
<td class="borderless">
[% batche.label_count %] Single Cards
</td>
<td class="borderless">
<h1 id="pdf">
<a href="/cgi-bin/koha/labels/[% batche.create_script %]?template_id=[% batche.template_id %]&amp;layout_id=[% batche.layout_id %]&amp;start_label=[% batche.start_label %][% batche.item_numbers %]">label_single_[% batche.label_count %].pdf</a>
</h1>
</td>
<td class="borderless">
<h1 id="csv">
<a href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id %]&amp;template_id=[% batche.template_id %]&amp;layout_id=[% batche.layout_id %][% batche.item_numbers %]">label_single_[% batche.label_count %].csv</a>
</h1>
</td>
<td class="borderless">
<h1 id="xml">
<a href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=[% batche.batch_id %]&amp;template_id=[% batche.template_id %]&amp;layout_id=[% batche.layout_id %][% batche.item_numbers %]">label_single_[% batche.label_count %].xml</a>
</h1>
</td>
[% ELSE %]
<td class="borderless">
Card batch number [% batche.batch_id %]
</td>
<td class="borderless">
<h1 id="pdf">
<a href="/cgi-bin/koha/labels/label-create-pdf.pl?batch_id=[% batche.batch_id %]&amp;template_id=[% batche.template_id %]&amp;layout_id=[% batche.layout_id %]&amp;start_label=[% batche.start_label %]">label_batch_[% batche.batch_id %].pdf</a>
</h1>
</td>
<td class="borderless">
<h1 id="csv">
<a href="/cgi-bin/koha/labels/label-create-csv.pl?batch_id=[% batche.batch_id %]&amp;template_id=[% batche.template_id %]&amp;layout_id=[% batche.layout_id %]">label_batch_[% batche.batch_id %].csv</a>
</h1>
</td>
<td class="borderless">
<h1 id="xml">
<a href="/cgi-bin/koha/labels/label-create-xml.pl?batch_id=[% batche.batch_id %]&amp;template_id=[% batche.template_id %]&amp;layout_id=[% batche.layout_id %]">label_batch_[% batche.batch_id %].xml</a>
</h1>
</td>
[% END %]
</tr>
[% END %]
</table>
</fieldset>
<fieldset class="action">
<div style="margin: 10px 10px 10px 0px;">
<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>
</div>
</fieldset>
</form>
[% ELSE %]
<div align="center">
<div class="message">
[% IF ( label_ids ) %]
<b>Exporting [% label_count %] cards(s).</b>
[% ELSIF ( item_numbers ) %]
<b>Exporting [% item_count %] cards(s).</b>
[% ELSE %]
<b>[% multi_batch_count %] batch(es) to export.</b>
[% END %]
</div>
</div>
<form name="exporting" method="post" action="/cgi-bin/koha/labels/label-print.pl">
<input type="hidden" name="op" value="export" />
<input type="hidden" name="referer" value="[% referer %]" />
[% FOREACH batch_id IN batch_ids %]
<input type="hidden" name="batch_id" value="[% batch_id.batch_id %]" />
[% END %]
[% FOREACH label_id IN label_ids %]
<input type="hidden" name="label_id" value="[% label_id.label_id %]" />
[% END %]
[% FOREACH item_number IN item_numbers %]
<input type="hidden" name="item_number" value="[% item_number.item_number %]" />
[% END %]
<fieldset class="rows">
<table class="borderless">
<tr>
<td class="borderless">
<label for="template">Select a template to be applied: </label>
</td>
<td class="borderless">
<select name="template_id">
[% FOREACH template IN templates %]
<option value="[% template.template_id %]">[% template.template_code %]</option>
[% END %]
</select>
</td>
</tr>
<tr>
<td class="borderless">
<label for="layout">Select a layout to be applied: </label>
</td>
<td class="borderless">
<select name="layout_id">
[% FOREACH layout IN layouts %]
<option value="[% layout.layout_id %]">[% layout.layout_name %]</option>
[% END %]
</select>
</td>
</tr>
<tr>
<td class="borderless">
<label for="start_label">Enter starting card number: </label>
</td>
<td class="borderless">
<input type="text" size="5" id="start_label" name="start_label" class="focus" title="Starting card number" value="1"/>
</td>
</tr>
</table>
</fieldset>
<fieldset class="action">
<div style="margin: 10px 10px 10px 0px;">
<span class="yui-button yui-link-button"><span class="first-child"><input type="submit" value="Export" /></span></span>
<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>
</div>
</fieldset>
</form>
[% END %]
</div>
[% INCLUDE 'intranet-bottom.inc' %]