Templating request

This commit is contained in:
hdl 2003-01-22 23:35:57 +00:00
parent abfac9778b
commit 4ff523bff0

View file

@ -0,0 +1,185 @@
<TMPL_INCLUDE Name="cat-top.inc">
<form action="placerequest.pl" method=post>
<INPUT TYPE="image" name="submit" VALUE="request" height=42 WIDTH=187 BORDER=0 src="/images/place-request.gif" align=right >
<input type=hidden name=biblio value="<TMPL_VAR Name="bib">">
<input type=hidden name=type value=str8>
<input type=hidden name=title value="<TMPL_VAR Name="title">">
<FONT SIZE=6><em>Requesting: <br>
<a href=/cgi-bin/koha/detail.pl?bib=<TMPL_VAR Name="bib">><TMPL_VAR Name="bib"></a>
<TMPL_VAR Name="author">)</em></FONT><P>
<p>
<TABLE CELLSPACING=0 CELLPADDING=5 border=1 >
<TR VALIGN=TOP>
<td bgcolor="99cc33" background="/images/background-mem.gif"><B>Rank</b></TD>
<td bgcolor="99cc33" background="/images/background-mem.gif"><B>Member Number</b></TD>
<td bgcolor="99cc33" background="/images/background-mem.gif"><B>Notes</b></TD>
<td bgcolor="99cc33" background="/images/background-mem.gif"><B>Date</b></TD>
<td bgcolor="99cc33" background="/images/background-mem.gif"><B>Pickup</b></TD>
<td bgcolor="99cc33" background="/images/background-mem.gif"><B>Request</b></TD>
</TR>
<tr VALIGN=TOP >
<td><select name=rank-request>
<!--$priorityoptions-->
<TMPL_LOOP Name="optionloop">
<option value="<TMPL_VAR Name="num">" <TMPL_IF Name="selected"> selected</TMPL_IF>>
<TMPL_VAR Name="num">
</option>
</TMPL_LOOP>
</select>
</td>
<td><input type=text size=10 name=member></td>
<td><input type=text size=20 name=notes></td>
<td><TMPL_VAR Name=date></td>
<td><select name=pickup>
<!--$branchoptions-->
<TMPL_LOOP Name="branchloop">
<option value=<TMPL_VAR Name="branch"> <TMPL_IF Name="selected">selected</TMPL_IF>>
<TMPL_VAR Name="branchname">
</option>
</TMPL_LOOP>
</select></td>
<td><input type=checkbox name=request value=any>Next Available,
<br>(or choose from list below)</td>
</tr></table>
<TABLE CELLSPACING=0 CELLPADDING=5 border=1 >
<TR VALIGN=TOP>
<td bgcolor="99cc33" background="/images/background-mem.gif"><B>Request</b></TD>
<td bgcolor="99cc33" background="/images/background-mem.gif"><B>Item Type</b></TD>
<td bgcolor="99cc33" background="/images/background-mem.gif"><B>Classification</b></TD>
<td bgcolor="99cc33" background="/images/background-mem.gif"><B>Volume</b></TD>
<td bgcolor="99cc33" background="/images/background-mem.gif"><B>Pubdate</b></TD>
<td bgcolor="99cc33" background="/images/background-mem.gif"><B>Copies</b></TD>
</TR>
<!--$bibitemrows-->
<TMPL_LOOP Name="bibitemloop">
<tr VALIGN=TOP>
<TD>
<TMPL_IF Name="itemlost">
Cannot be selected
<TMPL_ELSE>
<input type=checkbox name=reqbib value=<TMPL_VAR Name="biblioitemnumber">>
<input type=hidden name=biblioitem value=<TMPL_VAR Name="biblioitemnumber">>
<TMPL_IF>
</td>
<TD>
<TMPL_VAR Name="description">
</td>
<TD>
<TMPL_VAR Name="class">
</td>
<td>
<TMPL_VAR Name="volumeddesc">
</td>
<td>
<TMPL_VAR Name="publicationyear">
</td>
<td>
<TMPL_LOOP Name="barcodeloop">
<TMPL_VAR Name="barcode"> <TMPL_VAR Name="message"><br>
</TMPL_LOOP>
</td>
</tr>
</TMPL_LOOP>
</table>
</form>
<p>&nbsp;</p>
<form name=T<TMPL_VAR Name="time"> action=modrequest.pl method=post>
<TABLE CELLSPACING=0 CELLPADDING=5 border=1 >
<TR VALIGN=TOP>
<td bgcolor="99cc33" background="/images/background-mem.gif" colspan=7><B>MODIFY EXISTING REQUESTS </b></TD>
</TR>
<TR VALIGN=TOP>
<td bgcolor="99cc33" background="/images/background-mem.gif"><B>Rank</b></TD>
<td bgcolor="99cc33" background="/images/background-mem.gif"><B>Member</b></TD>
<td bgcolor="99cc33" background="/images/background-mem.gif"><B>Notes</b></TD>
<td bgcolor="99cc33" background="/images/background-mem.gif"><B>Date</b></TD>
<td bgcolor="99cc33" background="/images/background-mem.gif"><B>Pickup</b></TD>
<td bgcolor="99cc33" background="/images/background-mem.gif"><B>Request</b></TD>
</TR>
<!--$existingreserves-->
<TMPL_LOOP Name="reserveloop">
<tr VALIGN=TOP>
<TD>
<input type=hidden name=borrower value=<TMPL_VAR Name="borrowernumber">>
<input type=hidden name=biblio value=<TMPL_VAR Name="biblionumber">>
<select name=rank-request>
<TMPL_IF Name="wait">
<option value=W selected>Waiting</option>
</TMPL_IF>
<TMPL_LOOP Name="optionloop">
<option value="<TMPL_VAR Name="num">" <TMPL_IF Name="selected"> selected </TMPL_IF>>
<TMPL_VAR Name="num">
</option>
</TMPL_LOOP>
<option value=del>Del</option>
</select></td>
<TD>
<a href=/cgi-bin/koha/moremember.pl?bornum=<TMPL_VAR Name="borrowernumber">><TMPL_VAR Name="firstname"> <TMPL_VAR Name="surname"></a>
</td>
<td><TMPL_VAR Name="notes"></td>
<TD><TMPL_VAR Name="date"></td>
<TD>OO <TMPL_IF Name="wait">
Item waiting at <b> <TMPL_VAR Name="wbrname"></b> <input type=hidden name=pickup value=<TMPL_VAR Name="wbrcd">>
<TMPL_ELSE>
<select name=pickup>
<TMPL_LOOP Name="branchloop">
<option value=<TMPL_VAR Name="branch">
<TMPL_IF Name="selected">
selected
</TMPL_IF>
><TMPL_VAR Name="branchname"></option>
</TMPL_LOOP>
</select>
</TMPL_IF>
</td>
<TD>
<TMPL_IF Name="wait">
<a href=/cgi-bin/koha/detail.pl?bib=<TMPL_VAR Name=''biblionumber"> &type=intra onClick=\"openWindow(this, 'Item', 480, 640)\">
<TMPL_VAR Name="barcode">
</a>
<TMPL_ELSE>
<TMPL_IF Name="constrainttypea">
Next Available
<TMPL_ELSE>
<TMPL_IF Name="constrainttypeo">
This type only <TMPL_VAR Name="volumeddesc"> <TMPL_VAR Name="itemtype">
</TMPL_IF>
</TMPL_IF>
</TMPL_IF>
$type
</td>
</tr>
</TMPL_LOOP>
<tr VALIGN=TOP>
<TD colspan=6 align=right>
Delete a request by selecting "del" from the rank list.
<INPUT TYPE="image" name="submit" VALUE="request" height=42 WIDTH=64 BORDER=0 src="/images/ok.gif"></td>
</tr>
</table>
<P>
<br>
</form>
<TMPL_INCLUDE Name="cat-bottom.inc">