Koha/koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tmpl
2008-09-26 09:06:13 -05:00

131 lines
4.6 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Serials &rsaquo; Check Expiration</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<!-- TMPL_INCLUDE NAME="calendar.inc" -->
<script type="text/javascript" language="JavaScript">
// <![CDATA[
/**
* Function CheckForm
* This function checks the form before submit
*/
function CheckForm(form){
if(form.date.value){
return true;
}
else {
alert("You must enter a date !");
document.f.date.focus();
return false;
}
}
function popup(subscriptionid) {
newin=window.open("subscription-renew.pl?mode=popup&subscriptionid="+subscriptionid,'popup','width=590,height=440,toolbar=false,scrollbars=yes,resize=yes');
}
// ]]>
</script>
<!-- End of additions -->
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
<!-- TMPL_INCLUDE NAME="serials-search.inc" -->
<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; Check expiration </div>
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<h1>Check expiration</h1>
<form name="f" action="/cgi-bin/koha/serials/checkexpiration.pl" method="post" onsubmit="return CheckForm(this);">
<fieldset class="rows">
<legend>Filter results :</legend>
<ol>
<li><label for="title">Title:</label>
<input id="title" type="text" name="title" size="15" value="<!--TMPL_VAR NAME="title"-->" /></li>
<li><label for="issn">ISSN:</label>
<input id="issn" type="text" name="issn" size="15" value="<!-- TMPL_VAR NAME="issn"-->" /></li>
<li><label for="date" class="required" title="Required field">Expiring before:</label>
<input id="date" type="text" name="date" size="10" value="<!-- TMPL_VAR NAME="date"-->" class="focus" />
<img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar" border="0" id="openCalendar" style="cursor: pointer;" />
<script type="text/javascript">
Calendar.setup(
{
button : "openCalendar",
inputField : "date",
ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
}
);
</script> <span class="required">Required</span></li>
</ol>
</fieldset>
<fieldset class="action"><input type="submit" value="Search" /></fieldset>
</form>
<!-- TMPL_IF NAME="subscriptions_loop"-->
<p>
<b><!-- TMPL_VAR NAME="numsubscription"--></b> subscription(s)
<!-- TMPL_IF NAME="title"-->
with title matching <span class="title"><!-- TMPL_VAR NAME="title"--></class>
<!-- TMPL_IF NAME="issn"-->and <!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="issn"-->
with ISSN matching <b><!-- TMPL_VAR NAME="issn" --></b>
<!-- /TMPL_IF -->
will expire before <b><!-- TMPL_VAR NAME="date" --></b>
</p>
<table>
<tr>
<th>ISSN</th>
<th>Title</th>
<th>Note</th>
<th>Expiration date</th>
<th colspan="2">&nbsp;</th>
</tr>
<!-- TMPL_LOOP NAME="subscriptions_loop"-->
<!-- TMPL_IF NAME="toogle"-->
<tr class="highlight">
<!-- TMPL_ELSE -->
<tr>
<!-- /TMPL_IF -->
<td>
<!-- TMPL_VAR NAME="issn" -->
</td>
<td><a href="/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" ESCAPE="URL" -->"><!-- TMPL_IF NAME="title"-->
<!-- TMPL_VAR NAME="title" escape="html" -->
<!-- TMPL_ELSE -->
|
<!-- /TMPL_IF -->
</a>
</td>
<td>
<!-- TMPL_VAR NAME="notes"-->
</td>
<td>
<!-- TMPL_VAR NAME="expirationdate" -->
</td>
<td><a href="/cgi-bin/koha/serials/subscription-add.pl?op=mod&amp;subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->">Edit</a></td>
<td><a href="/cgi-bin/koha/serials/subscription-renew.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->" onclick="popup(<!-- TMPL_VAR NAME="subscriptionid" -->); return false;">Renew</a></td>
</tr>
<!-- /TMPL_LOOP -->
</table>
<!-- TMPL_ELSE -->
<p>No results for your query</p>
<!-- /TMPL_IF -->
</div>
</div>
<div class="yui-b">
<!-- TMPL_INCLUDE NAME="serials-menu.inc" -->
</div>
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->