merging 2.2 branch with head. Sorry for not making it before, many many commits done...
[koha.git] / koha-tmpl / intranet-tmpl / default / fr / acqui / newbiblio.tmpl
1 <!-- TMPL_INCLUDE name="acquisitions-top.inc" -->
2 <script language="javascript" type="text/javascript">
3
4 <!--
5 function update(f){
6   //collect values
7   quantity=f.quantity.value
8   discount=f.discount.value
9   listinc=parseInt(f.listinc.value)
10   currency=f.currency.value
11   applygst=parseInt(f.applygst.value)
12   listprice=f.list_price.value
13   //  rrp=f.rrp.value
14   //  ecost=f.ecost.value  //budgetted cost
15   //  GST=f.GST.value
16   //  total=f.total.value
17   //make useful constants out of the above
18   exchangerate=f.elements[currency].value      //get exchange rate
19   gst_on=(!listinc && applygst);
20   //do real stuff
21   rrp=listprice*exchangerate;
22   ecost=rrp*(100-discount)/100
23   GST=0;
24   if (gst_on){
25     rrp=rrp*(1+<!-- TMPL_VAR NAME="gstrate" -->);
26     GST=ecost*(<!-- TMPL_VAR NAME="gstrate" -->);
27   }
28
29   total=(ecost+GST)*quantity
30
31   f.rrp.value=rrp;
32   f.ecost.value=ecost;
33   f.GST.value=GST;
34   f.total.value=total;
35
36 }
37
38
39
40 function messenger(X,Y,etc){
41 win=window.open("","mess","height="+X+",width="+Y+",screenX=150,screenY=0");
42 win.focus();
43 win.document.close();
44 win.document.write("<body link='#333333' bgcolor='#ffffff' text='#000000'><font size='2'><p><br>");
45 win.document.write(etc);
46 win.document.write("<center><form><input type=button onclick='self.close()' value='Close'></form></center>");
47 win.document.write("</font></body></html>");
48 }
49 //-->
50
51 </script>
52 <div id="mainbloc">
53         <form action="/cgi-bin/koha/acqui/addorder.pl" method="post" name="frusin">
54         <!-- TMPL_UNLESS name="existing" --><input type="hidden" name="existing" value="no"><!-- /TMPL_UNLESS -->
55         <!-- <!-- TMPL_VAR NAME="title" --> -->
56         <input type="hidden" name="ordnum" value="<!-- TMPL_VAR NAME="ordnum" -->">
57         <input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->">
58         <input type="hidden" name="booksellerid" value="<!-- TMPL_VAR NAME="booksellerid" -->">
59         <input type="hidden" name="biblio" value="<!-- TMPL_VAR NAME="biblio" -->">
60         <input type="hidden" name="bibitemnum" value="<!-- TMPL_VAR NAME="biblioitemnumber" -->">
61         <input type="hidden" name="oldtype" value="<!-- TMPL_VAR NAME="itemtype" -->">
62         <input type="hidden" name="discount" value="<!-- TMPL_VAR NAME="discount" -->">
63         <input type="hidden" name="listinc" value="<!-- TMPL_VAR NAME="listincgst" -->">
64         <input type="hidden" name="currency" value="<!-- TMPL_VAR NAME="currency" -->">
65         <input type="hidden" name="applygst" value="<!-- TMPL_VAR NAME="gstreg" -->">
66         <input type="hidden" name="suggestionid" value="<!-- TMPL_VAR NAME="suggestionid" -->">
67         <!-- TMPL_LOOP NAME="loop_currencies" -->
68                 <input type="hidden" name="<!-- TMPL_VAR NAME="currency" -->" value="<!-- TMPL_VAR NAME="rate" -->">
69         <!-- /TMPL_LOOP -->
70         <a href="basket.pl?basket=<!-- TMPL_VAR NAME="basket" -->" class="button acquisition">Voir le panier</a> <h1 class="acquisition">
71                 <!-- TMPL_IF name="ordnum" -->
72                         Modifier les détails de la commande (ligne #<!-- TMPL_VAR NAME="ordnum" -->)
73                 <!-- TMPL_ELSE -->
74                         Nouvelle commande
75                 <!-- /TMPL_IF -->
76                  <!-- TMPL_IF name="suggestionid" -->spécifié à partir de la suggestion #<!-- TMPL_VAR NAME="suggestionid" --><!-- /TMPL_IF -->
77         </h1>
78         Panier d'Achat pour <!-- TMPL_VAR NAME="name" -->
79         <div id="bloc25">
80                 <h2 class="acquisition">Détails du catalogue</h2>
81                 <p>
82                         <label class="label100"><b>Titre *</b></label>
83                         <!-- TMPL_IF name="biblio" -->
84                                 <input type="hidden" size="20" name="title" value="<!-- TMPL_VAR NAME="title" -->"><!-- TMPL_VAR NAME="title" -->
85                         <!-- TMPL_ELSE -->
86                                 <input type="text" size="20" name="title" value="<!-- TMPL_VAR NAME="title" -->">
87                         <!-- /TMPL_IF -->
88                 </p>
89                 <p>
90                         <label class="label100">Auteur</label>
91                         <!-- TMPL_IF name="biblio" -->
92                                 <input type="hidden" size="20" name="author" value="<!-- TMPL_VAR NAME="author" -->"><!-- TMPL_VAR NAME="author" -->
93                         <!-- TMPL_ELSE -->
94                                 <input type="text" size="20" name="author" value="<!-- TMPL_VAR NAME="author" -->">
95                         <!-- /TMPL_IF -->
96                 </p>
97                 <p>
98                         <label class="label100"> Editeur</label>
99                         <!-- TMPL_IF name="biblio" -->
100                                 <input type="hidden" size="20" name="publishercode" value="<!-- TMPL_VAR NAME="publishercode" -->"><!-- TMPL_VAR NAME="publishercode" -->
101                         <!-- TMPL_ELSE -->
102                                 <input type="text" size="20" name="publishercode" value="<!-- TMPL_VAR NAME="publishercode" -->">
103                         <!-- /TMPL_IF -->
104                 </p>
105                 <p>
106                         <label class="label100">Date de copyright</label>
107                         <!-- TMPL_IF name="biblio" -->
108                                 <input type="hidden" size="20" name="copyrightdate" value="<!-- TMPL_VAR NAME="copyrightdate" -->"><!-- TMPL_VAR NAME="copyrightdate" -->
109                         <!-- TMPL_ELSE -->
110                                 <input type="text" size="20" name="copyrightdate" value="<!-- TMPL_VAR NAME="copyrightdate" -->">
111                         <!-- /TMPL_IF -->
112                 </p>
113                 <p>
114                         <label class="label100">Format</label>
115                         <!-- TMPL_VAR NAME="CGIitemtype" -->
116                 </p>
117                 <p>
118                         <label class="label100">ISBN</label>
119                         <!-- TMPL_IF name="biblio" -->
120                                 <input type="hidden" size="20" name="ISBN" value="<!-- TMPL_VAR NAME="isbn" -->"><!-- TMPL_VAR NAME="isbn" -->
121                         <!-- TMPL_ELSE -->
122                                 <input type="text" size="20" name="ISBN" value="<!-- TMPL_VAR NAME="isbn" -->">
123                         <!-- /TMPL_IF -->
124                 </p>
125                 <p>
126                         <label class="label100">Collections</label>
127                         <!-- TMPL_IF name="biblio" -->
128                                 <input type="hidden" size="20" name="series" value="<!-- TMPL_VAR NAME="seriestitle" -->"><!-- TMPL_VAR NAME="seriestitle" -->
129                         <!-- TMPL_ELSE -->
130                                 <input type="text" size="20" name="series" value="<!-- TMPL_VAR NAME="seriestitle" -->">
131                         <!-- /TMPL_IF -->
132                 </p>
133                 <p>
134                         <label class="label100">Site</label>
135                         <!-- TMPL_VAR NAME="CGIbranch" -->
136                 </p>
137         </div>
138         <div id="bloc25">
139                 <h2 class="acquisition">Détails de comptabilité</h2>
140                 <p>
141                         <label class="label100">Quantité</label>
142                         <input type="text" size="20" name="quantity" value="<!-- TMPL_VAR NAME="quantity" -->" onchange="update(this.form);">
143                 </p>
144                 <p>
145                         <label class="label100">Ligne de crédit</label>
146                         <!-- TMPL_VAR NAME="CGIbookfund" -->
147                 </p>
148                 <p>
149                         <label class="label100">Barème Fournisseur</label>
150                         <input type="text" size="20" name="list_price" value="<!-- TMPL_VAR NAME="listprice" -->" onchange="update(this.form)">
151                 </p>
152                 <p>
153                         <label class="label100">Coût de Remplacement </label>
154                         <input type="text" size="20" name="rrp" value="<!-- TMPL_VAR NAME="rrp" -->" onchange="update(this.form)">
155                 </p>
156                 <p>
157                         <label class="label100">Coût budgeté</label>
158                         <input type="text" size="20" name="ecost" value="<!-- TMPL_VAR NAME="ecost" -->" onchange="update(this.form)">
159                 </p>
160                 <p>
161                         <label class="label100">TVA budgetée</label>
162                         <input type="text" size="20" name="GST" value="" onchange="update(this.form)">
163                 </p>
164                 <p>
165                         <label class="label100"><b>TOTAL BUDGETE</b></label>
166                         <input type="text" size="20" name="total" value="" onchange="update(this.form)">
167                 </p>
168                 <p>
169                         <label class="label100">Coût Réel</label>
170                         <input type="text" size="20" name="cost" value="<!-- TMPL_VAR name="ecost"-->">
171                 </p>
172                 <p>
173                         <label class="label100">Numéro de Facture *</label>
174                         <input type="text" size="20" name="invoice"  value="<!-- TMPL_VAR name="invoice" -->">
175                 <p>
176                         <label class="label100">Notes</label>
177                         <input type="text" size="20" name="notes" value="<!-- TMPL_VAR NAME="notes" -->">
178                 </p>
179                 <p>Les deux champs suivants sont disponibles pour votre usage propre. Ils peuvent être utiles pour des besoins statistiques.</p>
180                 <p>
181                         <label class="label100">Champ de tri 1</label>
182                         <input type="text" size="20" name=sort1 value="<!-- TMPL_VAR NAME="sort1" -->">
183                 </p>
184                 <p>
185                         <label class="label100">Champ de tri 2</label>
186                         <input type="text" size="20" name=sort2 value="<!-- TMPL_VAR NAME="sort2" -->">
187                 </p>
188                 <p>
189                         <input type="submit" value="OK" class="button acquisition">
190                 </p>
191         </form>
192         </div>
193 </div>
194 <!-- TMPL_INCLUDE name="acquisitions-bottom.inc" -->