Adding link to the committed budget breakdown
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / histsearch.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Acquisitions order search</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-calendar.inc" -->
4 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5 <!-- Additions to enable Calendar system -->
6 <link rel="stylesheet" type="text/css" href="/intranet-tmpl/prog/en/lib/calendar/calendar-system.css" />
7 <!-- End of additions -->
8
9 <!-- Additions to enable Calendar system -->
10 <script type="text/javascript" src="/intranet-tmpl/prog/en/lib/calendar/calendar.js"></script>
11 <script type="text/javascript" src="/intranet-tmpl/prog/en/lib/calendar/calendar-en.js"></script>
12 <script type="text/javascript" src="/intranet-tmpl/prog/en/lib/calendar/calendar-setup.js"></script>
13 <!-- End of additions -->
14 </head>
15 <body>
16 <!-- TMPL_INCLUDE NAME="header.inc" -->
17 <!-- TMPL_INCLUDE NAME="menu-acqui.inc" -->
18
19 <div id="doc3" class="yui-t2">
20    
21    <div id="bd">
22         <div id="yui-main">
23         <div class="yui-b"><div class="yui-g">
24         
25
26
27         <h1>Order search</h1>
28         <div id="acqui_histsearch">
29                 <form action="/cgi-bin/koha/acqui/histsearch.pl" method="post">
30                 <table>
31                         <tr>
32                                 <th>&nbsp;</th>
33                                 <th>Title</th>
34                                 <th>Author</th>
35                                 <th>Supplier</th>
36                                 <th>Placed on</th>
37                                 <th>Recieved on</th>
38                                 <th>Quantity ordered</th>
39                                 <th>Unit cost</th>
40                                 <th>&nbsp;</th>
41                         </tr>
42                         <tr>
43                                         <th>Filter By:</th>
44                                         <th><input type="text" name="title" value="<!-- TMPL_VAR name="title"-->" /></th>
45                                         <th><input type="text" name="author" value="<!-- TMPL_VAR name="author" -->" /></th>
46                                         <th><input type="text" name="name" value="<!-- TMPL_VAR name="name" -->" /></th>
47                                         <th>From <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" border="0" hspace="0" vspace="0" id="openCalendarFrom" style="cursor: pointer;" alt="calendar" />
48                                                 <input type="text" readonly="readonly" size="10" id="from" name="fromplacedon" value="<!-- TMPL_VAR name="from_placed_on" -->" />
49                                                 <script language="JavaScript" type="text/javascript">
50                                                         function validate1(date) {
51                                                                 var day = date.getDate();
52                                                                 var month = date.getMonth() + 1;
53                                                                 var year = date.getFullYear();
54                                                                 var weekDay = date.getDay();
55                                                                 var dayMonth = month + '-' + day;
56                                                                 var dateString = year + '-' + month + '-' + day;
57                                                                 var dateTo = document.getElementById('to').value.split("-");
58                                                                 var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
59                                                                 if (date > limitDate) {
60                                                                         return true;
61                                                                 } else {
62                                                                         return false;
63                                                                 }
64                                                         }
65                                                         Calendar.setup(
66                                                                 {
67                                                                         inputField : "from",
68                                                                         ifFormat : "%Y-%m-%d",
69                                                                         button : "openCalendarFrom",
70                                                                         disableFunc : validate1,
71                                                                         dateStatusFunc : validate1
72                                                                 }
73                                                         );
74                                                 </script>
75                                                 To <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="openCalendarTo" style="cursor: pointer;" alt="calendar" />
76                                                 <input readonly="readonly" size="10" id="to" name="toplacedon" value="<!-- TMPL_VAR name="to_placed_on" -->" type="text" />
77                                                 <script type="text/javascript">
78                                                         function validate2(date) {
79                                                                 var day = date.getDate();
80                                                                 var month = date.getMonth() + 1;
81                                                                 var year = date.getFullYear();
82                                                                 var weekDay = date.getDay();
83                                                                 var dayMonth = month + '-' + day;
84                                                                 var dateString = year + '-' + month + '-' + day;
85                                                                 var dateFrom = document.getElementById('from').value.split("-");
86                                                                 var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
87                                                                 if (limitDate > date) {
88                                                                         return true;
89                                                                 } else {
90                                                                         return false;
91                                                                 }
92                                                         }
93         
94                                                         Calendar.setup(
95                                                                 {
96                                                                         inputField : "to",
97                                                                         ifFormat : "%Y-%m-%d",
98                                                                         button : "openCalendarTo",
99                                                                         disableFunc : validate2,
100                                                                         dateStatusFunc : validate2
101                                                                 }
102                                                         );
103                                                 </script></th>
104                                         <th>&nbsp;</th>
105                                         <th>&nbsp;</th>
106                                         <th>&nbsp;</th>
107                                         <th><input type="submit" value="Set Filter" /></th>
108                         </tr>
109                         <!-- TMPL_LOOP NAME="suggestions_loop" -->
110                                 <tr>
111                                         <td>
112                                             <!-- TMPL_IF NAME="invoicenumber" -->
113                                                 <a href="/cgi-bin/koha/acqui/parcel.pl?invoice=<!-- TMPL_VAR NAME="invoicenumber"-->&amp;supplierid=<!-- TMPL_VAR NAME="id"-->&amp;datereceived=<!-- TMPL_VAR NAME="datereceived" -->">Parcel</a>
114                                             <!-- TMPL_ELSE -->
115                                                 &nbsp;
116                                             <!-- /TMPL_IF -->
117                                         </td>
118                                         <td><a href="basket.pl?basketno=<!-- TMPL_VAR name="basketno" -->"><!-- TMPL_VAR NAME="title" --></a></td>
119                                         <td><!-- TMPL_VAR NAME="author" --></td>
120                                         <td><!-- TMPL_VAR NAME="name" --></td>
121                                         <td><!-- TMPL_VAR name="creationdate" --></td>
122                                         <td><!-- TMPL_VAR name="datereceived" --></td>
123                                         <td><!-- TMPL_VAR name="quantity" --></td>
124                                         <td><!-- TMPL_VAR name="ecost" --></td>
125                                         <td>&nbsp;</td>
126                                 </tr>
127                         <!-- /TMPL_LOOP -->
128                 </table>
129                 </form>
130         </div>
131
132 </div>
133 </div>
134 </div>
135
136 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
137 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->