Koha/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/print.tmpl
2010-01-11 18:21:13 -05:00

135 lines
8 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Tools &rsaquo; Patron Cards &rsaquo; Patron Card Printing/Exporting</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/JavaScript" language="JavaScript">
//<![CDATA[
function Done() {
window.location = "<!-- TMPL_VAR NAME="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;} .tr {border-collapse: separate;}</style>
</head>
<body>
<div id="custom-doc" class="yui-t2">
<div id="bd">
<!-- TMPL_IF NAME="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">
<!-- TMPL_LOOP NAME="batches" -->
<tr>
<!-- TMPL_IF NAME="label_ids" -->
<td class="borderless">
<!-- TMPL_VAR NAME="card_count" --> Single Patron Cards
</td>
<td class="borderless">
<h1 id="pdf">
<a href="/cgi-bin/koha/patroncards/<!-- TMPL_VAR NAME="create_script" -->?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;template_id=<!-- TMPL_VAR NAME="template_id" -->&amp;layout_id=<!-- TMPL_VAR NAME="layout_id" -->&amp;start_card=<!-- TMPL_VAR NAME="start_card" --><!-- TMPL_VAR NAME="label_ids" -->">label_single_<!-- TMPL_VAR NAME="card_count" -->.pdf</a>
</h1>
</td>
<!-- TMPL_ELSIF NAME="borrower_numbers" -->
<td class="borderless">
<!-- TMPL_VAR NAME="card_count" --> Single Patron Cards
</td>
<td class="borderless">
<h1 id="pdf">
<a href="/cgi-bin/koha/patroncards/<!-- TMPL_VAR NAME="create_script" -->?template_id=<!-- TMPL_VAR NAME="template_id" -->&amp;layout_id=<!-- TMPL_VAR NAME="layout_id" -->&amp;start_card=<!-- TMPL_VAR NAME="start_card" --><!-- TMPL_VAR NAME="borrower_numbers" -->">label_single_<!-- TMPL_VAR NAME="card_count" -->.pdf</a>
</h1>
</td>
<!-- TMPL_ELSE -->
<td class="borderless">
Card Batch Number <!-- TMPL_VAR NAME="batch_id" -->
</td>
<td class="borderless">
<h1 id="pdf">
<a href="/cgi-bin/koha/patroncards/create-pdf.pl?batch_id=<!-- TMPL_VAR NAME="batch_id" -->&amp;template_id=<!-- TMPL_VAR NAME="template_id" -->&amp;layout_id=<!-- TMPL_VAR NAME="layout_id" -->&amp;start_card=<!-- TMPL_VAR NAME="start_card" -->">label_batch_<!-- TMPL_VAR NAME="batch_id" -->.pdf</a>
</h1>
</td>
<!-- /TMPL_IF -->
</tr>
<!-- /TMPL_LOOP -->
</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>
<!-- TMPL_ELSE -->
<div align="center">
<div class="message">
<!-- TMPL_IF NAME="label_ids" -->
<b>Exporting <!-- TMPL_VAR NAME="card_count" --> patroncard(s).</b>
<!-- TMPL_ELSIF NAME="borrower_numbers"-->
<b>Exporting <!-- TMPL_VAR NAME="borrower_count" --> patroncard(s).</b>
<!-- TMPL_ELSE -->
<b><!-- TMPL_VAR NAME="multi_batch_count" --> batch(es) to export.</b>
<!-- /TMPL_IF -->
</div>
</div>
<form name="exporting" method="post" action="/cgi-bin/koha/patroncards/print.pl">
<input type="hidden" name="op" value="export" />
<input type="hidden" name="referer" value="<!-- TMPL_VAR NAME="referer" -->" />
<!-- TMPL_LOOP NAME="batch_ids" -->
<input type="hidden" name="batch_id" value="<!-- TMPL_VAR NAME="batch_id" -->" />
<!-- /TMPL_LOOP -->
<!-- TMPL_LOOP NAME="label_ids" -->
<input type="hidden" name="label_id" value="<!-- TMPL_VAR NAME="label_id" -->" />
<!-- /TMPL_LOOP -->
<!-- TMPL_LOOP NAME="borrower_numbers" -->
<input type="hidden" name="borrower_number" value="<!-- TMPL_VAR NAME="borrower_number" -->" />
<!-- /TMPL_LOOP -->
<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">
<!-- TMPL_LOOP NAME="templates" -->
<option value="<!-- TMPL_VAR NAME="template_id" -->"><!-- TMPL_VAR NAME="template_code" --></option>
<!-- /TMPL_LOOP -->
</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">
<!-- TMPL_LOOP NAME="layouts" -->
<option value="<!-- TMPL_VAR NAME="layout_id" -->"><!-- TMPL_VAR NAME="layout_name" --></option>
<!-- /TMPL_LOOP -->
</select>
</td>
</tr>
<tr>
<td class="borderless">
<label for="start_card">Enter starting card number: </label>
</td>
<td class="borderless">
<input type="text" size="5" id="start_card" name="start_card" 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>
<!-- /TMPL_IF -->
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->