Koha/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tmpl
Paul POULAIN 6a924eb363 reintroducing lateissues-excel
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-14 09:09:37 -06:00

200 lines
No EOL
7.8 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Serials &rsaquo; Claims</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/javascript">
<!-- TMPL_UNLESS NAME="preview" -->
function Setorder(myorder){
if (document.claims.elements['order'].value == myorder){
document.claims.elements['order'].value=myorder+' desc';
} else {
document.claims.elements['order'].value=myorder;
}
document.claims.elements['op'].value="";
document.claims.submit();
}
<!-- /TMPL_UNLESS -->
function popup(supplierid,serialid){
window.open('claims.pl?supplierid='+ supplierid +'&amp;serialid='+ serialid +'&amp;op=preview' ,'popup', 'width=600,height=400,toolbar=no,scrollbars=yes');
}
//-->
</script>
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
<!-- TMPL_UNLESS NAME="preview" -->
<!--TMPL_INCLUDE NAME="serials-search.inc" -->
<!-- /TMPL_UNLESS -->
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/serials/serials-home.pl">Serials</a> &rsaquo; Claims</div>
<!-- TMPL_UNLESS NAME="preview" -->
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<h1>Claims</h1>
<form name="claims" action="claims.pl" method="post">
<p>
<!-- TMPL_VAR name="CGIsupplier" -->
<input type="submit" value="OK" />
<!-- TMPL_IF name="phone" -->Phone: <!-- TMPL_VAR name="phone" --><!-- /TMPL_IF -->
<!-- TMPL_IF name="booksellerfax" -->Fax: <!-- TMPL_VAR name="booksellerfax" --><!-- /TMPL_IF -->
<!-- TMPL_IF name="bookselleremail" --></p><p><a href="mailto:<!-- TMPL_VAR name="bookselleremail" -->"><!-- TMPL_VAR name="bookselleremail" --></a><!-- /TMPL_IF -->
</p>
<p>
<!-- TMPL_IF NAME="letter" -->
Select Letter :
<select name="letter_code">
<!-- TMPL_LOOP name="letters" -->
<option value="<!--TMPL_VAR Name="code"-->"><!--TMPL_VAR Name="name"--></option>
<!--/TMPL_LOOP-->
</select>
<!--TMPL_ELSE-->
No Letter defined. Please Define One. The list of expected issues is displayed.
<!--/TMPL_IF-->
</p>
<input type="hidden" name="order" value="<!--TMPL_VAR Name="order"-->" />
<input type="hidden" name="op" value="" />
<!-- TMPL_IF NAME="missingissues" -->
<h3>Missing Issues</h3>
<table>
<tr>
<!--TMPL_IF NAME="letter"-->
<th>Claim</th>
<!--/TMPL_IF-->
<th>Supplier</th>
<th>Title</th>
<th>Issue number</th>
<th>Status <a href="javascript:Setorder('status');">sort</a></th>
<th>Since <a href="javascript:Setorder('planneddate');">sort</a></th>
<th></th>
<th>Began Claim</th>
</tr>
<!-- TMPL_LOOP name="missingissues" -->
<tr>
<!--TMPL_IF NAME="letter" -->
<td>
<input type="checkbox" name="serialid" value="<!-- TMPL_VAR NAME="serialid"-->" onclick="document.claims.op='send_alert';" />
</td>
<!--/TMPL_IF-->
<td>
<!-- TMPL_VAR name="name" -->
</td>
<td>
<!-- TMPL_VAR name="title" -->
</td>
<td>
<!-- TMPL_VAR name="serialseq" -->
</td>
<td>
<!-- TMPL_IF Name="status1" -->Waited<!-- /TMPL_IF -->
<!-- TMPL_IF Name="status2" -->Arrived<!-- /TMPL_IF -->
<!-- TMPL_IF Name="status3" -->Late<!-- /TMPL_IF -->
<!-- TMPL_IF Name="status4" -->Missing<!-- /TMPL_IF -->
<!-- TMPL_IF Name="status7" -->Claimed<!-- /TMPL_IF -->
</td>
<td>
<!-- TMPL_VAR name="planneddate" -->
</td>
<td>
<!-- TMPL_VAR name="claimdate" -->
</td>
<td>
<a href="/cgi-bin/koha/serials/lateissues-excel.pl?supplierid=<!-- TMPL_VAR name="supplieri" -->&serialid=<!-- TMPL_VAR name="serialid" -->&op=claims">Export item data</a>
</td>
</tr>
<!-- /TMPL_LOOP -->
</table>
<!-- TMPL_ELSE -->
<p>Select a supplier</p>
<!-- /TMPL_IF -->
<!-- TMPL_IF Name="singlesupplier"-->
<input type="hidden" name="supplierid" value="<!--TMPL_VAR NAME="supplierid"-->" />
<!--
<a href="claims.pl?supplierid=<!-- TMPL_VAR
name="supplierid" -->&amp;op=preview" onclick="popup(<!-- TMPL_VAR
name="supplierid" -->,''); return false" class="button">Supplier Group Claim Letter</a></p> -->
<!-- /TMPL_IF -->
<!--TMPL_IF Name="letter" -->
<input type="submit" name="submit" class="button" value="Send letter" />
<!--/TMPL_IF-->
</form>
<!-- TMPL_ELSE -->
<div id="doc" class="yui-t7">
<div id="bd">
<!-- TMPL_IF Name="supplierloop"-->
<!-- TMPL_LOOP Name="supplierloop"-->
<!-- TMPL_IF NAME="name" -->
<p><b><!-- TMPL_VAR NAME="name" --></b><br />
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="postal" -->
<!-- TMPL_VAR NAME="postal" --><br />
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="contphone" -->
Ph: <!-- TMPL_VAR NAME="contphone" --><br />
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="contfax" -->
Fax: <!-- TMPL_VAR NAME="contfax" --><br />
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="contemail" -->
Email: <!-- TMPL_VAR NAME="contemail" --><br />
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="accountnumber" -->
A/C: <!-- TMPL_VAR NAME="accountnumber" --></p>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="contact" -->
<p>Dear <!-- TMPL_VAR NAME="contact" --></p>
<!-- TMPL_ELSE -->
<p>To whom it may concern</p>
<!-- /TMPL_IF -->
<p>The following items have not been received from you and are now considered missing:</p>
<!-- /TMPL_LOOP -->
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="missingissues" -->
<h3>Missing Issues</h3>
<table>
<tr>
<td><b>Supplier<b></td>
<td><b>Title</b></td>
<td><b>Issue number</b></td>
<td><b>Missing since</b></td>
</tr>
<!-- TMPL_LOOP name="missingissues" -->
<tr>
<td>
<!-- TMPL_VAR name="name" -->
</td>
<td>
<!-- TMPL_VAR name="Title" -->
</td>
<td>
<!-- TMPL_VAR name="serialseq" -->
</td>
<td>
<!-- TMPL_VAR name="planneddate" -->
</td>
</tr>
<!-- /TMPL_LOOP -->
</table>
<!-- /TMPL_IF -->
<p class="noprint"><a href="javascript:window.print()" class="button">Print</a> &nbsp; <a href="javascript:window.close()" class="button">Close</a></p>
<!-- /TMPL_UNLESS -->
</div>
</div>
<!-- TMPL_UNLESS NAME="preview" -->
<div class="yui-b">
<!-- TMPL_INCLUDE NAME="serials-menu.inc" -->
</div>
<!-- /TMPL_UNLESS -->
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->