synch'ing head and rel_2_2 (from 2.2.5, including npl templates)
[koha.git] / koha-tmpl / intranet-tmpl / default / fr / acqui / histsearch.tmpl
1 <!-- TMPL_INCLUDE NAME="acquisitions-top.inc" -->
2 <div id="mainbloc">
3         <h1 class="acquisition">Recherche sur les commandes</h1>
4         <p class="resultcount"><!-- TMPL_VAR Name ="numresults" --> commandes trouvées
5          </p>
6         <table>
7                 <tr>
8                         <th class="acquisition">&nbsp;</th>
9                         <th class="acquisition">Fournisseur</th>
10                         <th class="acquisition">Titre/Auteur</th>
11                         <th class="acquisition">Prévu pour</th>
12                         <th class="acquisition">Livré le</th>
13                         <th class="acquisition">Quantité Commandée</th>
14                         <th class="acquisition">Quantité Reçue</th>
15                         <th class="acquisition">Coût unitaire</th>
16                         <th class="acquisition">&nbsp;</th>
17                 </tr>
18                 <tr>
19                         <form action="/cgi-bin/koha/acqui/histsearch.pl" method="get">
20                                 <th class="acquisition">
21                                         Sélectionner sur
22                                 </th>
23                                 <th class="acquisition">
24                                         <input type="text" name="name" value="<!-- TMPL_VAR name="name" -->">
25                                 </th>
26                                 <th class="acquisition">
27                                         <input type="text" name="title" value="<!-- TMPL_VAR name="title"-->"> / <input type="text" name="author" value="<!-- TMPL_VAR name="author" -->">
28                                 </th>
29                                 <th class="acquisition">
30                                         De <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" border="0" hspace="0" vspace="0" id="openCalendarFrom" style="cursor: pointer;" valign="top">
31                                         <input type="text" readonly="readonly" size="10" id="from" name="fromplacedon" value="<!-- TMPL_VAR name="from_placed_on" -->">
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                                         <br/>
59                                         à <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="openCalendarTo" style="cursor: pointer;" valign="top" border="0" hspace="0" vspace="0">
60                                         <input readonly="readonly" size="10" id="to" name="toplacedon" value="<!-- TMPL_VAR name="to_placed_on" -->" type="text">
61                                         <script type="text/javascript">
62                                                 function validate2(date) {
63                                                         var day = date.getDate();
64                                                         var month = date.getMonth() + 1;
65                                                         var year = date.getFullYear();
66                                                         var weekDay = date.getDay();
67                                                         var dayMonth = month + '-' + day;
68                                                         var dateString = year + '-' + month + '-' + day;
69                                                         var dateFrom = document.getElementById('from').value.split("-");
70                                                         var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
71                                                         if (limitDate > date) {
72                                                                 return true;
73                                                         } else {
74                                                                 return false;
75                                                         }
76                                                 }
77
78                                                 Calendar.setup(
79                                                         {
80                                                                 inputField : "to",
81                                                                 ifFormat : "%Y-%m-%d",
82                                                                 button : "openCalendarTo",
83                                                                 disableFunc : validate2,
84                                                                 dateStatusFunc : validate2
85                                                         }
86                                                 );
87                                         </script>
88                                 </th>
89                                 <th class="acquisition">
90                                         &nbsp;
91                                 </th>
92                                 <th class="acquisition">
93                                         &nbsp;
94                                 </th>
95                                 <th class="acquisition">
96                                         &nbsp;
97                                 </th>
98                                 <th class="acquisition">
99                                         &nbsp;
100                                 </th>
101                                 <th class="acquisition">
102                                         <input type="submit" class="button acquisition" value="Sélectionner">
103                                 </th>
104                         </form>
105                 </tr>
106                 <!-- TMPL_LOOP NAME="suggestions_loop" -->
107                         <tr>
108                                 <!-- TMPL_IF name="toggle" -->
109                                         <td class="hilighted">
110                                 <!-- TMPL_ELSE -->
111                                         <td>
112                                 <!-- /TMPL_IF -->
113                                         <!-- TMPL_VAR NAME="count" -->
114                                 </td>
115                                 <!-- TMPL_IF name="toggle" -->
116                                         <td class="hilighted">
117                                 <!-- TMPL_ELSE -->
118                                         <td>
119                                 <!-- /TMPL_IF -->
120                                         <!-- TMPL_VAR NAME="name" -->
121                                 </td>
122                                 <!-- TMPL_IF name="toggle" -->
123                                         <td class="hilighted">
124                                 <!-- TMPL_ELSE -->
125                                         <td>
126                                 <!-- /TMPL_IF -->
127                                         <p><a href="basket.pl?basket=<!-- TMPL_VAR name="basketno" -->"><!-- TMPL_VAR NAME="title" --></a></p>
128                                         <p><!-- TMPL_VAR NAME="author" --></p>
129                                 </td>
130                                 <!-- TMPL_IF name="toggle" -->
131                                         <td class="hilighted">
132                                 <!-- TMPL_ELSE -->
133                                         <td>
134                                 <!-- /TMPL_IF -->
135                                         <!-- TMPL_VAR name="creationdate" -->
136                                 </td>
137                                 <!-- TMPL_IF name="toggle" -->
138                                         <td class="hilighted">
139                                 <!-- TMPL_ELSE -->
140                                         <td>
141                                 <!-- /TMPL_IF -->
142                                         <!-- TMPL_VAR name="datereceived" -->
143                                 </td>
144                                 <!-- TMPL_IF name="toggle" -->
145                                         <td class="hilighted number">
146                                 <!-- TMPL_ELSE -->
147                                         <td class="number">
148                                 <!-- /TMPL_IF -->
149                                         <!-- TMPL_VAR name="quantity" -->
150                                 </td>
151                                 <!-- TMPL_IF name="toggle" -->
152                                         <td class="hilighted number">
153                                 <!-- TMPL_ELSE -->
154                                         <td class="number">
155                                 <!-- /TMPL_IF -->
156                                         <!-- TMPL_VAR name="quantityreceived" -->
157                                 </td>
158                                 <!-- TMPL_IF name="toggle" -->
159                                         <td class="hilighted number">
160                                 <!-- TMPL_ELSE -->
161                                         <td class="number">
162                                 <!-- /TMPL_IF -->
163                                         <!-- TMPL_VAR name="ecost" -->
164                                 </td>
165                                 <!-- TMPL_IF name="toggle" -->
166                                         <td class="hilighted">
167                                 <!-- TMPL_ELSE -->
168                                         <td>
169                                 <!-- /TMPL_IF -->
170                                         &nbsp;
171                                 </td>
172
173                         </tr>
174                 <!-- /TMPL_LOOP -->
175                 <tr>
176                         <th class="acquisition">&nbsp;</th>
177                         <th class="acquisition">&nbsp;</th>
178                         <th class="acquisition">&nbsp;</th>
179                         <th class="acquisition">&nbsp;</th>
180                         <th class="acquisition">&nbsp;</th>
181                         <th class="acquisition"><!-- TMPL_VAR name="total_qty" --></th>
182                         <th class="acquisition"><!-- TMPL_VAR name="total_qtyreceived" --></th>
183                         <th class="acquisition"><!-- TMPL_VAR name="total_price" --></th>
184                         <th class="acquisition">&nbsp;</th>
185                 </tr>
186         </table>
187 </div>
188
189 <!-- TMPL_INCLUDE NAME="acquisitions-bottom.inc" -->