nomenclature cleanup for acquisitions:
[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 &rsaquo; <!-- TMPL_IF NAME="suggestions_loop" -->Orders search &rsaquo; Search Results<!-- TMPL_ELSE -->Order search<!-- /TMPL_IF --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-calendar.inc" -->
4 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
6 </head>
7 <body>
8 <!-- TMPL_INCLUDE NAME="header.inc" -->
9 <!-- TMPL_INCLUDE NAME="acquisitions-history-search.inc" -->
10
11 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; <!-- TMPL_IF NAME="suggestions_loop" --><a href="/cgi-bin/koha/acqui/histsearch.pl">Orders search</a> &rsaquo; Search Results<!-- TMPL_ELSE -->Order search<!-- /TMPL_IF --></div>
12
13 <div id="doc3" class="yui-t2">
14    
15    <div id="bd">
16         <div id="yui-main">
17         <div class="yui-b">
18         
19                 <!-- TMPL_UNLESS NAME="suggestions_loop" --><form action="/cgi-bin/koha/acqui/histsearch.pl" method="post">
20 <fieldset class="rows">
21         <legend>Search Orders</legend>
22                                         <ol>
23                                         <li><label for="title">Title: </label> <input type="text" name="title" id="title" value="<!-- TMPL_VAR name="title"-->" /></li>
24                                         <li><label for="author">Author: </label> <input type="text" name="author" id="author" value="<!-- TMPL_VAR name="author" -->" /></li>
25                                         <li><label for="name">Vendor: </label> <input type="text" name="name" id="name" value="<!-- TMPL_VAR name="name" -->" /></li>
26                                         <li><label for="from">From: </label> <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" border="0" id="openCalendarFrom" style="cursor: pointer;" alt="Show Calendar" />
27                                                 <input type="text" readonly="readonly" size="10" id="from" name="fromplacedon" value="<!-- TMPL_VAR name="from_placed_on" -->" />
28                                                 <script language="JavaScript" type="text/javascript">
29                                                         function validate1(date) {
30                                                                 var day = date.getDate();
31                                                                 var month = date.getMonth() + 1;
32                                                                 var year = date.getFullYear();
33                                                                 var weekDay = date.getDay();
34                                                                 var dayMonth = month + '-' + day;
35                                                                 var dateString = year + '-' + month + '-' + day;
36                                                                 var dateTo = document.getElementById('to').value.split("-");
37                                                                 var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
38                                                                 if (date > limitDate) {
39                                                                         return true;
40                                                                 } else {
41                                                                         return false;
42                                                                 }
43                                                         }
44                                                         Calendar.setup(
45                                                                 {
46                                                                         inputField : "from",
47                                                                         ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
48                                                                         button : "openCalendarFrom",
49                                                                         disableFunc : validate1,
50                                                                         dateStatusFunc : validate1
51                                                                 }
52                                                         );
53                                                 </script></li>
54                                                 <li><label for="to">To: </label> <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="openCalendarTo" style="cursor: pointer;" alt="Show Calendar" />
55                                                 <input readonly="readonly" size="10" id="to" name="toplacedon" value="<!-- TMPL_VAR name="to_placed_on" -->" type="text" />
56                                                 <script type="text/javascript">
57                                                         function validate2(date) {
58                                                                 var day = date.getDate();
59                                                                 var month = date.getMonth() + 1;
60                                                                 var year = date.getFullYear();
61                                                                 var weekDay = date.getDay();
62                                                                 var dayMonth = month + '-' + day;
63                                                                 var dateString = year + '-' + month + '-' + day;
64                                                                 var dateFrom = document.getElementById('from').value.split("-");
65                                                                 var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
66                                                                 if (limitDate > date) {
67                                                                         return true;
68                                                                 } else {
69                                                                         return false;
70                                                                 }
71                                                         }
72         
73                                                         Calendar.setup(
74                                                                 {
75                                                                         inputField : "to",
76                                                                         ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
77                                                                         button : "openCalendarTo",
78                                                                         disableFunc : validate2,
79                                                                         dateStatusFunc : validate2
80                                                                 }
81                                                         );
82                                                 </script></li>
83                         </ol>
84                         </fieldset>
85                         <fieldset class="action"><input type="submit" value="Search" /></fieldset>
86                 </form><!-- /TMPL_UNLESS -->
87         <!-- TMPL_IF NAME="suggestions_loop" --><h1>Search Results</h1>
88         <div id="acqui_histsearch">
89                 <table>
90                         <tr>
91                                 <th>Basket</th>
92                                 <th>Invoice Number</th>
93                                 <th>Summary</th>
94                                 <th>Vendor</th>
95                                 <th>Placed on</th>
96                                 <th>Received on</th>
97                                 <th>Quantity ordered</th>
98                                 <th>Unit cost</th>
99                         </tr>
100                         
101                         <!-- TMPL_LOOP NAME="suggestions_loop" -->
102                                 <tr>
103                     <td><a href="basket.pl?basketno=<!-- TMPL_VAR name="basketno" -->"><!-- TMPL_VAR name="basketno" --></a></td>
104                                         <td><!-- TMPL_IF NAME="invoicenumber" -->
105                                                 <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" -->"><!-- TMPL_VAR NAME="invoicenumber"--></a>
106                                             <!-- TMPL_ELSE -->
107                                                 &nbsp;
108                                             <!-- /TMPL_IF -->
109                                         </td>
110                                         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR name="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a>
111                         <br /><!-- TMPL_VAR NAME="author" --></td>
112                                         <td><a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR name="id" -->"><!-- TMPL_VAR NAME="name" --></a></td>
113                                         <td><!-- TMPL_VAR name="creationdate" --></td>
114                                         <td><!-- TMPL_VAR name="datereceived" --></td>
115                                         <td><!-- TMPL_VAR name="quantity" --></td>
116                                         <td><!-- TMPL_VAR name="ecost" --></td>
117                                 </tr>
118                         <!-- /TMPL_LOOP -->
119                 </table>
120         </div><!-- TMPL_ELSE --><!-- /TMPL_IF -->
121
122 </div>
123 </div>
124 <div class="yui-b">
125 <!-- TMPL_INCLUDE NAME="acquisitions-menu.inc" -->
126 </div>
127 </div>
128 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->