merging katipo changes

This commit is contained in:
bob_lyon 2006-07-20 03:45:26 +00:00
parent 160cde34e0
commit ee4f22a193
3 changed files with 164 additions and 0 deletions

View file

@ -0,0 +1,44 @@
<!-- TMPL_INCLUDE NAME="popup-top.inc" -->
<script type="text/javascript">
<!--
function add_member(subscriptionid,bornum){
var myurl = "routing.pl?subscriptionid="+subscriptionid+"&bornum="+bornum+"&op=add";
window.opener.location.href = myurl;
}
//-->
</script>
<div class="popup-block">
<h1 class="bull">Member Search</h1>
<p>
<form name="search" action="/cgi-bin/koha/bull/member-search.pl" method="post">
<input type="text" name="member" size="30" />
<input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR NAME="subscriptionid" -->">
<input type="submit" class="button" value="Search" />
</form>
</p>
<!-- TMPL_IF NAME="memberloop" -->
<table cellspacing="0" cellpadding="0" border="0" width="480" class="collapse">
<tr><td class="cell-header">Name</td>
<td class="cell-header">Location</td>
<td class="cell-header">Add</td></tr>
<!-- TMPL_LOOP NAME="memberloop" -->
<tr><td class="cell"><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></td>
<td class="cell"><!-- TMPL_VAR NAME="streetaddress" --></td>
<td class="cell"><a onclick="add_member(<!-- TMPL_VAR NAME="subscriptionid" -->,<!-- TMPL_VAR NAME="borrowernumber" -->); return false" href="/cgi-bin/koha/bull/routing.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->&amp;bornum=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;op=add">Add</a></td></tr>
<!-- /TMPL_LOOP -->
</table></td></tr>
</table>
<!-- TMPL_ELSE -->
<!-- TMPL_IF NAME="member" -->
<p>No results found</p>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<br />
<p><a href="javascript:self.close()" class="button">Close</a></p>
</div>
<!-- TMPL_INCLUDE NAME="popup-bottom.inc" -->

View file

@ -0,0 +1,42 @@
<!-- TMPL_INCLUDE NAME="bull-top.inc" -->
<div id="mainbloc">
<h1 class="bull">Preview Routing List</h1>
<form method="post" action="routing-preview.pl">
<input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR NAME="subscriptionid" -->" />
<p><b>Serial Title:</b> <!-- TMPL_VAR NAME="title" --></p>
<p><b>Issue:</b> <!-- TMPL_VAR NAME="issue" --></p>
<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td style="padding-top: 5px;"><b>List Member:</b>&nbsp;</td>
<td><table cellspacing="0" cellpadding="0" border="0" class="collapse">
<tr><td class="cell-header">Name</td>
<td class="cell-header">Location</td></tr>
<!-- TMPL_LOOP NAME="memberloop" -->
<tr><td class="cell"><!-- TMPL_VAR NAME="name" --></td>
<td class="cell"><!-- TMPL_VAR NAME="location" --></td></tr>
<!-- /TMPL_LOOP -->
</table></td></tr>
<tr valign="top"><td colspan="2">&nbsp;</td></tr>
<tr valign="top"><td><b>Notes:</b></td>
<td><!-- TMPL_VAR NAME="routingnotes" --></td></tr>
</table>
<p>
<input type="submit" name="ok" class="button" value="OK, Preview Routing Slip" onclick="print_slip(<!-- TMPL_VAR NAME="subscriptionid" -->,'<!-- TMPL_VAR NAME="issue" -->'); return false" />
<input type="submit" name="edit" class="button" value="Edit" />
<input type="submit" name="delete" class="button" value="Delete" /></p>
</form>
</div>
<script type="text/javascript">
<!--
function print_slip(subscriptionid,issue){
var myurl = 'routing-preview.pl?ok=1&subscriptionid='+subscriptionid+'&issue='+issue;
window.open(myurl,'PrintSlip','width=400,height=500,toolbar=no,scrollbars=yes');
window.location.href='serials-home.pl';
}
//-->
</script>
<!-- TMPL_INCLUDE NAME="bull-bottom.inc" -->

View file

@ -0,0 +1,78 @@
<!-- TMPL_INCLUDE NAME="bull-top.inc" -->
<script language="javascript" type="text/javascript">
<!--
function reorder_item(sid,rid,rank){
var mylocation = 'reorder_members.pl?subscriptionid='+sid+'&routingid='+rid+'&rank='+rank;
window.location.href=mylocation;
}
//-->
</script>
<div id="mainbloc">
<!-- TMPL_IF NAME="op" -->
<h1 class="bull">Create Routing List</h1>
<!-- TMPL_ELSE -->
<h1 class="bull">Edit Routing List</h1>
<!-- /TMPL_IF -->
<form method="post" action="routing.pl">
<input type="hidden" name="op" value="save" />
<input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR NAME="subscriptionid" -->" />
<p><b>Serial Title:</b> <!-- TMPL_VAR NAME="title" --></p>
<p><b>Issue:</b>
<select name="date_selected">
<!-- TMPL_LOOP NAME="dates" -->
<option value="<!-- TMPL_VAR NAME="serialseq" --> (<!-- TMPL_VAR NAME="planneddate" -->)" <!-- TMPL_IF NAME="selected" --> selected="SELECTED" <!-- /TMPL_IF -->><!-- TMPL_VAR NAME="serialseq" --> (<!-- TMPL_VAR NAME="planneddate" -->)</option>
<!-- /TMPL_LOOP -->
</select>
<!-- TMPL_VAR NAME="issue" --></p>
<!-- TMPL_IF NAME="memberloop" -->
<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td style="padding-top:5px;"><b>List Member:</b>&nbsp;</td>
<td><table cellspacing="0" cellpadding="0" border="0" class="collapse">
<tr><td class="cell-header">Name</td>
<td class="cell-header">Location</td>
<td class="cell-header">Rank</td>
<td class="cell-header">Delete</td></tr>
<!-- TMPL_LOOP NAME="memberloop" -->
<tr><td class="cell"><!-- TMPL_VAR NAME="name" --></td>
<td class="cell"><!-- TMPL_VAR NAME="location" --></td>
<td class="cell"><!-- TMPL_VAR NAME="routingbox" --></td>
<td class="cell"><a href="/cgi-bin/koha/serials/routing.pl?routingid=<!-- TMPL_VAR NAME="routingid" -->&amp;subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->&amp;op=delete">Delete</a></td></tr>
<!-- /TMPL_LOOP -->
<tr><td colspan="4"><br /><a onclick="search_member(<!-- TMPL_VAR
NAME="subscriptionid" -->); return false"
href="/cgi-bin/koha/serials/member-search.pl?subscriptionid=<!-- TMPL_VAR
NAME="subscriptionid" -->" class="button bull">Add List Member</a> &nbsp; <a
href="/cgi-bin/koha/serials/routing.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->&amp;op=delete" class="button bull">Delete All</a></td></tr>
</table></td></tr>
<!-- TMPL_ELSE -->
<table border="0" cellspacing="0" cellpadding="0">
<tr><td><b>List Member:&nbsp;</b></td>
<td><p><a onclick="search_member(<!-- TMPL_VAR NAME="subscriptionid"
-->); return false" href="/cgi-bin/koha/serials/member-search.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->" class="button bull">Add List Member</a></p></td></tr>
<!-- /TMPL_IF -->
<tr><td valign="top" colspan="2">&nbsp;</td></tr>
<tr><td valign="top"><b>Notes:</b></td>
<td><textarea name="notes" rows="3" cols="50"><!-- TMPL_VAR NAME="routingnotes" --></textarea></td></tr>
<tr><td></td>
<td><input type="submit" name="submit" class="button" value="Save" /></td></tr>
</table>
</form>
</div>
<script type="text/javascript">
<!--
function search_member(subscriptionid){
var myurl = 'member-search.pl?subscriptionid='+subscriptionid; window.open(myurl,'FindAMember','width=500,height=400,toolbar=no,scrollbars=yes');
}
//-->
</script>
<!-- TMPL_INCLUDE NAME="bull-bottom.inc" -->