Cleanup on Serials. Markup corrections and cleanup, moving script blocks into header...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / routing.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Serials</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script language="javascript" type="text/javascript">
5 <!--
6
7 function reorder_item(sid,rid,rank){
8     var mylocation = 'reorder_members.pl?subscriptionid='+sid+'&routingid='+rid+'&rank='+rank;
9     window.location.href=mylocation; 
10 }
11
12 function search_member(subscriptionid){
13     var myurl = 'member-search.pl?subscriptionid='+subscriptionid; window.open(myurl,'FindAMember','width=500,height=400,toolbar=no,scrollbars=yes');
14 }
15
16 //-->
17 </script>
18 </head>
19 <body>
20 <!-- TMPL_INCLUDE NAME="header.inc" -->
21 <!--TMPL_INCLUDE NAME="menu-serials.inc" -->
22
23 <div id="doc3" class="yui-t2">
24    
25    <div id="bd">
26         <div id="yui-main">
27         <div class="yui-b"><div class="yui-g">
28
29
30 <!-- TMPL_IF NAME="op" -->
31 <h1>Create Routing List</h1>
32 <!-- TMPL_ELSE -->
33 <h1>Edit Routing List</h1>
34 <!-- /TMPL_IF -->
35
36 <form method="post" action="routing.pl">
37 <input type="hidden" name="op" value="save" />
38 <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR NAME="subscriptionid" -->" />
39 <p><b>Serial Title:</b> <!-- TMPL_VAR NAME="title" --></p>
40 <p><b>Issue:</b> 
41
42 <select name="date_selected">
43 <!-- TMPL_LOOP NAME="dates" -->
44 <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>
45 <!-- /TMPL_LOOP -->
46 </select>
47
48
49 <!-- TMPL_VAR NAME="issue" --></p>
50
51 <!-- TMPL_IF NAME="memberloop" -->
52 <table border="0" cellspacing="0" cellpadding="0">
53 <tr valign="top"><td style="padding-top:5px;"><b>List Member:</b></td>
54     <td><table cellspacing="0" cellpadding="0" border="0" class="collapse">
55         <tr><th>Name</th>
56             <th>Location</th>
57             <th>Rank</th>
58             <th>Delete</th></tr>
59 <!-- TMPL_LOOP NAME="memberloop" -->
60         <tr><td><!-- TMPL_VAR NAME="name" --></td>
61             <td><!-- TMPL_VAR NAME="location" --></td>
62             <td><!-- TMPL_VAR NAME="routingbox" --></td>
63             <td><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>
64 <!-- /TMPL_LOOP -->
65         </table><p><a onclick="search_member(<!-- TMPL_VAR
66 NAME="subscriptionid" -->); return false"
67 href="/cgi-bin/koha/serials/member-search.pl?subscriptionid=<!-- TMPL_VAR
68 NAME="subscriptionid" -->" class="button">Add List Member</a> &nbsp; <a
69 href="/cgi-bin/koha/serials/routing.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->&amp;op=delete" class="button">Delete All</a></p></td></tr>
70
71 <!-- TMPL_ELSE -->
72 <table border="0" cellspacing="0" cellpadding="0">
73 <tr><td><b>List Member:</b></td>
74     <td><p><a onclick="search_member(<!-- TMPL_VAR NAME="subscriptionid"
75 -->); return false" href="/cgi-bin/koha/serials/member-search.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->" class="button">Add List Member</a></p></td></tr>
76 <!-- /TMPL_IF -->
77 <tr><td valign="top"><label for="notes">Notes:</label></td>
78     <td><textarea name="notes" id="notes" rows="3" cols="50"><!-- TMPL_VAR NAME="routingnotes" --></textarea></td></tr>
79 </table>
80 <p><input type="submit" name="submit" class="button" value="Save" /></p>
81 </form>
82
83 </div>
84 </div>
85 </div>
86
87 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
88 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->