Koha/koha-tmpl/intranet-tmpl/prog/en/modules/serials/member-search.tmpl
Owen Leonard 1b1972044c Fix for Bug 3905 (Serial routing list add patron popup pagination broken)
This patch also includes formatting fixes and style updates. The patron search filter form is incorporated now within serials/member-search.tmpl in order to have a markup structure more suited to the pop-up.
2009-12-20 14:31:33 +01:00

83 lines
3.7 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Member Search &rsaquo; <!-- TMPL_VAR name="bookselname" --></title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/javascript">
<!--
function add_member(subscriptionid,borrowernumber){
var myurl = "routing.pl?subscriptionid="+subscriptionid+"&borrowernumber="+borrowernumber+"&op=add";
window.opener.location.href = myurl;
}
//-->
</script>
<style type="text/css">
#custom-doc { width:36.46em;*width:35.53em;min-width:430px; margin:auto; text-align:left; padding: 1em; }
</style>
</head>
<body>
<div id="custom-doc" class="yui-t7">
<div id="bd">
<div id="yui-main">
<div id="search" class="yui-g">
<form action="<!--TMPL_VAR Name="actionname"-->" method="get">
<fieldset class="rows">
<legend> Filter :</legend>
<ol>
<li><label for="member">Name:</label> <input type="hidden" name="surname" value="<!-- TMPL_VAR name="surname"-->" />
<input type="text" name="member" id="member" value="<!-- TMPL_VAR name="member"-->" /></li>
<li><label for="branchcode"> Library :</label><select name="branchcode" id="branchcode">
<option value="">Any</option><!-- TMPL_LOOP name="branchloop" -->
<!-- TMPL_IF NAME="selected" -->
<option value="<!-- TMPL_VAR name="value" -->" selected="selected"><!-- TMPL_VAR name="branchname" --></option><!-- TMPL_ELSE -->
<option value="<!-- TMPL_VAR name="value" -->"><!-- TMPL_VAR name="branchname" --></option><!-- /TMPL_IF -->
<!-- /TMPL_LOOP --></select></li>
<li><label for="categorycode">Category:</label><select name="categorycode" id="categorycode">
<option value="">Any</option><!-- TMPL_LOOP name="categoryloop" -->
<!-- TMPL_IF NAME="selected" -->
<option value="<!-- TMPL_VAR name="categorycode" -->" selected="selected"><!-- TMPL_VAR name="description" --></option><!-- TMPL_ELSE -->
<option value="<!-- TMPL_VAR name="categorycode" -->"><!-- TMPL_VAR name="description" --></option><!-- /TMPL_IF -->
<!-- /TMPL_LOOP --></select></li>
</ol>
<fieldset class="action"><input type="submit" value="Search" /></fieldset>
</fieldset>
</form>
</div>
<!-- TMPL_IF NAME="resultsloop" -->
<div id="searchheader" style="margin-top:.7em;"> <h3>Results <!-- TMPL_VAR Name ="from" --> to <!-- TMPL_VAR Name ="to" --> of <!-- TMPL_VAR Name ="numresults" --> found for <!--TMPL_IF Name="member"-->'<span class="ex"><!-- TMPL_VAR NAME="member" --></span>'<!--/TMPL_IF--><!--TMPL_IF Name="surname"-->'<span class="ex"><!-- TMPL_VAR NAME="surname" --></span>'<!--/TMPL_IF--></h3></div>
<div class="searchresults">
<table id="memberresultst">
<thead>
<tr>
<th>Card</th>
<th>Name</th>
<th>Library</th>
<th>Add</th>
</tr>
</thead>
<tbody>
<!-- TMPL_LOOP NAME="resultsloop" -->
<!--TMPL_IF Name="__odd__"--><tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF -->
<td><!-- TMPL_VAR NAME="cardnumber" --> </td>
<td><!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR NAME="firstname" --> </td>
<td><!-- TMPL_VAR NAME="branchcode" --> </td>
<td><a onclick="add_member(<!-- TMPL_VAR
NAME="subscriptionid" -->,<!-- TMPL_VAR NAME="borrowernumber" -->); return false" href="/cgi-bin/koha/serials/routing.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;op=add">Add</a></td></tr>
<!-- /TMPL_LOOP -->
</tbody>
</table>
<div class="pages"><!--TMPL_IF Name="multipage"--><!--TMPL_VAR Name="paginationbar" --><!--/TMPL_IF--></div>
</div>
<!-- TMPL_ELSE -->
<!-- TMPL_IF NAME="searching" -->
<p>No results found</p>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<fieldset class="action"><a href="#" class="button close">Close</a></fieldset>
</div>
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->