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