removing useless code (copied from addbiblio)
[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-close.inc" -->
4 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
5 </head>
6 <body>
7 <!-- TMPL_INCLUDE NAME="header.inc" -->
8 <!-- TMPL_INCLUDE NAME="acquisitions-history-search.inc" -->
9
10 <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>
11
12 <div id="doc3" class="yui-t2">
13    
14    <div id="bd">
15         <div id="yui-main">
16         <div class="yui-b">
17         
18                 <!-- TMPL_UNLESS NAME="suggestions_loop" --><form action="/cgi-bin/koha/acqui/histsearch.pl" method="post">
19 <fieldset class="rows">
20         <legend>Search Orders</legend>
21                 <ol>
22                 <li><label for="title">Title: </label> <input type="text" name="title" id="title" value="<!-- TMPL_VAR name="title"-->" /></li>
23                 <li><label for="author">Author: </label> <input type="text" name="author" id="author" value="<!-- TMPL_VAR name="author" -->" /></li>
24                 <li><label for="name">Vendor: </label> <input type="text" name="name" id="name" value="<!-- TMPL_VAR name="name" -->" /></li>
25                 <li><label for="from">From: </label> 
26                         <input type="text" size="10" id="from" name="from" value="<!-- TMPL_VAR name="from_placed_on" -->" />
27                         <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="openCalendarFrom" style="cursor: pointer;" alt="Show Calendar" />
28                 </li>
29                 <li><label for="to">To: </label> 
30                         <input type="text" size="10" id="to" name="to" value="<!-- TMPL_VAR name="to_placed_on" -->" />
31                         <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="openCalendarTo" style="cursor: pointer;" alt="Show Calendar" />
32                         <script type="text/javascript">
33                                 // return true if the date is blocked.
34                                 function disable_from(date) {var limit = get_Calendar_limit(date,'to'  ); return (limit && limit < date);}  // true or false
35                                 function disable_to  (date) {var limit = get_Calendar_limit(date,'from'); return (limit && limit > date);}  // true or false
36                                 Calendar.setup({
37                                         inputField : "from",
38                                         ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
39                                         button : "openCalendarFrom",
40                                         disableFunc : disable_from,
41                                         dateStatusFunc : disable_from
42                                 });
43                                 Calendar.setup({
44                                         inputField : "to",
45                                         ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
46                                         button : "openCalendarTo",
47                                         disableFunc : disable_to,
48                                         dateStatusFunc : disable_to
49                      });
50                         </script>
51                 </li>
52                 </ol>
53         </fieldset>
54         <fieldset class="action"><input type="submit" value="Search" /></fieldset>
55         </form><!-- /TMPL_UNLESS -->
56         <!-- TMPL_IF NAME="suggestions_loop" --><h1>Search Results</h1>
57         <div id="acqui_histsearch">
58                 <table>
59                         <tr>
60                                 <th>Basket</th>
61                                 <th>Invoice Number</th>
62                                 <th>Summary</th>
63                                 <th>Vendor</th>
64                                 <th>Placed on</th>
65                                 <th>Received on</th>
66                                 <th>Quantity ordered</th>
67                                 <th>Unit cost</th>
68                         </tr>
69                         
70                         <!-- TMPL_LOOP NAME="suggestions_loop" -->
71                                 <tr>
72                     <td><a href="basket.pl?basketno=<!-- TMPL_VAR name="basketno" -->"><!-- TMPL_VAR name="basketno" --></a></td>
73                                         <td><!-- TMPL_IF NAME="invoicenumber" -->
74                                                 <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>
75                                             <!-- TMPL_ELSE -->
76                                                 &nbsp;
77                                             <!-- /TMPL_IF -->
78                                         </td>
79                                         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR name="biblionumber" -->"><!-- TMPL_VAR NAME="title" escape="html" --></a>
80                         <br /><!-- TMPL_VAR NAME="author" --></td>
81                                         <td><a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR name="id" -->"><!-- TMPL_VAR NAME="name" --></a></td>
82                                         <td><!-- TMPL_VAR name="creationdate" --></td>
83                                         <td><!-- TMPL_VAR name="datereceived" --></td>
84                                         <td><!-- TMPL_VAR name="quantity" --></td>
85                                         <td><!-- TMPL_VAR name="ecost" --></td>
86                                 </tr>
87                         <!-- /TMPL_LOOP -->
88                 </table>
89         </div><!-- TMPL_ELSE --><!-- /TMPL_IF -->
90
91 </div>
92 </div>
93 <div class="yui-b">
94 <!-- TMPL_INCLUDE NAME="acquisitions-menu.inc" -->
95 </div>
96 </div>
97 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->