More changes to enable YUI-Grids CSS layout
[koha_gimpoz] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / pendingreserves.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Circulation &rsaquo; Holds</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_INCLUDE NAME="header.inc" -->
5
6 <!-- Additions to enable Calendar system -->
7 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-system.css" />
8 <!-- End of additions --><!-- Additions to enable Calendar system -->
9 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar.js"></script>
10 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-en.js"></script>
11 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-setup.js"></script>
12 <!-- End of additions -->
13
14 <!-- TMPL_INCLUDE NAME="menu-circ.inc" -->
15
16 <div id="doc3" class="yui-t2">
17    
18    <div id="bd">
19         <div id="yui-main">
20         <div class="yui-b"><div class="yui-g">
21
22 <h1>Pending holds as of <!-- TMPL_VAR NAME="todaysdate" --></h1>
23 <div id="filters">
24 <br />
25 <form method="post" >
26 <p>
27 <label for "from">
28     Start date:
29 </label>
30 <input type="text" size="10" id="from" name="from" value="<!-- TMPL_VAR NAME="from" -->" />
31 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif"  border="0" id="openCalendarFrom" style="cursor: pointer;" alt="" />
32 <script language="JavaScript" type="text/javascript">
33 function validate1(date) {
34     var day = date.getDate();
35     var month = date.getMonth() + 1;
36     var year = date.getFullYear();
37     var weekDay = date.getDay();
38     var dayMonth = month + '-' + day;
39     var dateString = year + '-' + month + '-' + day;
40     var dateTo = document.getElementById('to').value.split("-");
41     var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
42     if (date > limitDate) {
43             return true;
44     } else {
45             return false;
46     }
47 }
48 Calendar.setup(
49         {
50         inputField : "from",
51         ifFormat : "%Y-%m-%d",
52         button : "openCalendarFrom",
53         disableFunc : validate1,
54         dateStatusFunc : validate1
55         }
56 );
57 </script>
58 <label for "to" >
59     End date:
60 </label>
61 <input size="10" id="to" name="to" value="<!-- TMPL_VAR NAME="to" -->" type="text" />
62 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="" id="openCalendarTo" style="cursor: pointer;" valign="top" border="0" />
63 <script type="text/javascript">
64         function validate2(date) {
65             var day = date.getDate();
66             var month = date.getMonth() + 1;
67             var year = date.getFullYear();
68             var weekDay = date.getDay();
69             var dayMonth = month + '-' + day;
70             var dateString = year + '-' + month + '-' + day;
71             var dateFrom = document.getElementById('from').value.split("-");
72             var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
73             if (limitDate > date) {
74                     return true;
75             } else {
76                     return false;
77             }
78         }
79
80         Calendar.setup(
81                 {
82                     inputField : "to",
83                     ifFormat : "%Y-%m-%d",
84                     button : "openCalendarTo",
85                     disableFunc : validate2,
86                     dateStatusFunc : validate2
87                 }
88         );
89 </script>
90 (inclusive)
91 <input type="submit" value="Go" class="submit">
92 </p>
93 </form>
94 <p>The following holds have not been filled.</p>
95 <p>Please retrieve them and check them in</p>
96 </div>
97
98 <div class="searchresults">
99     <!-- TMPL_IF NAME="reserveloop" -->
100     <table>
101     <tr>
102         <th >
103             Priority
104             <a href="/cgi-bin/koha/circ/reserve.pl?order=priority">Sort</a>
105         </th>
106         <th >Hold Date
107             <a href="/cgi-bin/koha/circ/reserve.pl?order=date">Sort</a>
108         </th>
109         <th >Patron
110         <a href="/cgi-bin/koha/circ/reserve.pl?order=borrower">Sort</a>
111         </th>
112         <th >Title
113         <a href="/cgi-bin/koha/circ/reserve.pl?order=biblio">Sort</a>
114         </th>
115         <th>
116             Library
117         </th>
118     </tr>
119     
120     <!-- TMPL_LOOP NAME="reserveloop" -->
121         <tr>
122             <!-- TMPL_IF name="borrowernumber" -->
123                 <td><p><!-- TMPL_VAR NAME="priority" --></p></td>
124                 <td width="15%">
125                     <p><!-- TMPL_VAR NAME="reservedate" --></p>
126                     <p>in <!-- TMPL_VAR NAME="branch" --></p>
127                     <!-- TMPL_IF NAME="statusw" --><p>Waiting</p><!-- /TMPL_IF --><!-- TMPL_IF NAME="statusf" --><p>Fullfilled</p><!-- /TMPL_IF -->
128                 </td>
129                 <td>
130                     <p><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!--TMPL_VAR Name="borrowernumber"-->"><!-- TMPL_VAR NAME="name" --></a><br /><!-- TMPL_VAR NAME="phone" --><br />
131                 <!-- TMPL_IF NAME="email" --><a href="mailto:<!-- TMPL_VAR NAME="email" -->?subject=Reservation: <!-- TMPL_VAR NAME="title" -->">
132     <!-- TMPL_VAR NAME="email" --></a><!--/TMPL_IF-->
133                     </p>
134                 </td>
135                 <td>
136                     <p>
137                     <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
138                     <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
139                         <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
140                     </a>
141                     <!-- TMPL_ELSE -->
142                         <!-- TMPL_IF name="BiblioDefaultViewisbd" -->
143                         <a href="/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
144                             <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
145                         </a>
146                         <!-- TMPL_ELSE -->
147                             <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->">
148                                 <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="subtitle" -->
149                             </a>
150                         <!-- /TMPL_IF -->
151                     <!-- /TMPL_IF -->
152                     </p>
153                     <p><!-- TMPL_VAR NAME="notes" --></p>
154                 </td>
155             <!-- TMPL_ELSE -->
156                 <td colspan="2">
157                     &nbsp;
158                 </td>
159                 <td>"</td>
160                 <td>"</td>
161             <!-- /TMPL_IF -->
162             <td><p><!-- TMPL_VAR NAME="holdingbranch" --> <!-- TMPL_VAR NAME="itemcallnumber" --></p></td>
163         </tr>
164     <!-- /TMPL_LOOP -->
165     </table>
166     <!-- TMPL_ELSE -->
167         <b>No items found.</b>
168     <!-- /TMPL_IF -->
169 </div>
170 </div>
171 </div>
172 </div>
173
174 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
175 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->