Koha/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-print.tmpl
2009-09-01 15:51:47 -04:00

98 lines
5.2 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Tools &rsaquo; Labels &rsaquo; Label Printing/Exporting</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<style type="text/css">#custom-doc {width:47.23em; *width:46.04em; min-width:610px; margin:auto; margin-top:0.4em;}</style>
</head>
<body>
<div id="custom-doc" class="yui-t2">
<div id="bd">
<!-- TMPL_IF NAME="batches" -->
<form name="exporting" method="post" action="/cgi-bin/koha/labels/label-manage.pl">
<input type="hidden" name="label_element" value="batch" />
<div align="center">
<div class="message">
<h2>Click on the following link(s) to download the exported batch(es).</h2>
</div>
</div>
<fieldset class="rows">
<table class="borderless">
<!-- TMPL_LOOP NAME="batches" -->
<tr>
<td class="borderless">
<a href="/cgi-bin/koha/labels/<!-- 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_label=<!-- TMPL_VAR NAME="start_label" -->">label_batch_<!-- TMPL_VAR NAME="batch_id" -->.pdf</a>
</td>
</tr>
<!-- /TMPL_LOOP -->
</table>
</fieldset>
<fieldset class="action">
<input type="submit" value="Done" class="submit" />
</fieldset>
</form>
<!-- TMPL_ELSE -->
<div align="center">
<div class="message">
<h2><!-- TMPL_VAR NAME="multi_batch_count" --> batch(es) to export.</h2>
</div>
</div>
<form name="exporting" method="post" action="/cgi-bin/koha/labels/label-print.pl">
<input type="hidden" name="op" value="export" />
<!-- TMPL_LOOP NAME="batch_ids" -->
<input type="hidden" name="batch_id" value="<!-- TMPL_VAR NAME="batch_id" -->" />
<!-- /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_label">Enter starting label number: </label>
</td>
<td class="borderless">
<input type="text" size="5" id="start_label" name="start_label" class="focus" title="Starting label number" value="1"/>
</td>
</tr>
<tr>
<td class="borderless">
<label for="output_type">Select output format: </label>
</td>
<td class="borderless">
<select name="output_format">
<!-- TMPL_LOOP NAME="label_output_formats" -->
<option value="<!-- TMPL_VAR NAME="type" -->"><!-- TMPL_VAR NAME="desc" --></option>
<!-- /TMPL_LOOP -->
</select>
</td>
</tr>
</table>
</fieldset>
<fieldset class="action">
<input type="submit" value="Export" class="submit" />
<a class="cancel close" href="#">Cancel</a>
</fieldset>
</form>
<!-- /TMPL_IF -->
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->