Modifying AddAuthorities in order to fix encoding bugs.
[koha_gimpoz] / koha-tmpl / intranet-tmpl / prog / en / acqui / supplier.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Supplier <!-- TMPL_VAR name="bookselname" --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4
5 <!-- TMPL_INCLUDE NAME="menus.inc" -->
6 <!-- TMPL_INCLUDE NAME="menu-acqui.inc" -->
7
8 <!--TMPL_IF Name="enter"-->
9     <form action=updatesupplier.pl method="post">
10     
11     <input type="hidden" name="id" value="<!-- TMPL_VAR NAME="id" -->">
12     
13     <!-- TMPL_IF name="id" -->
14         <h1>Update: <!-- TMPL_VAR NAME="name" --></h1>
15     <!-- TMPL_ELSE -->
16         <h1>Add supplier</h1>
17     <!-- /TMPL_IF -->
18         <fieldset>
19             <legend>Company details</legend>
20             <p>
21                 <label>Company Name</label>
22                 <input type="text" size="40" name="company" value="<!-- TMPL_VAR NAME="name" -->">
23             </p>
24             <p>
25                 <label>Postal Address</label>
26                     <textarea name="company_postal" cols="40" rows="3"><!-- TMPL_VAR NAME="postal" --></textarea>
27             </p>
28             <p>
29                 <label>Physical Address</label>
30                 <textarea name="physical" cols="40" rows="3"><!-- TMPL_VAR NAME="address1" --><!-- TMPL_VAR NAME="address2" --><!-- TMPL_VAR NAME="address3" --><!-- TMPL_VAR NAME="address4" --></textarea>
31             </p>
32             <p>
33                 <label>Phone</label>
34                 <input type="text" size="20" name="company_phone" value="<!-- TMPL_VAR NAME="phone" -->">
35             </p>
36             <p>
37                 <label>Fax</label>
38                 <input type="text" size="20" name="company_fax" value="<!-- TMPL_VAR NAME="fax" -->">
39             </p>
40             <p>
41                 <label>Website</label>
42                 <input type="text" size="40" name="website" value="<!-- TMPL_VAR NAME="url" -->">
43             </p>
44         </fieldset>
45         <fieldset>
46             <legend>Contact details</legend>
47             <p>
48                 <label>Contact Name</label>
49                 <input type="text" size="40" name="company_contact_name" value="<!-- TMPL_VAR NAME="contact" -->">
50             </p>
51             <p>
52                 <label>Position</label>
53                 <input type="text" size="40" name="company_contact_position" value="<!-- TMPL_VAR NAME="contpos" -->">
54             </p>
55             <p>
56                 <label>Phone</label>
57                 <input type="text" size="20" name="contact_phone" value="<!-- TMPL_VAR NAME="contphone" -->">
58             </p>
59             <p>
60                 <label>Alternative phone</label>
61                 <input type="text" size="20" name="contact_phone_2" value="<!-- TMPL_VAR NAME="contaltphone" -->">
62             </p>
63             <p>
64                 <label>Fax</label>
65                 <input type="text" size="20" name="contact_fax" value="<!-- TMPL_VAR NAME="contfax" -->">
66             </p>
67             <p>
68                 <label>E-mail</label>
69                 <input type="text" size="40" name="company_email" value="<!-- TMPL_VAR NAME="contemail" -->">
70             </p>
71             <p>
72                 <label>Notes</label>
73                 <textarea name="contact_notes" cols="40" rows="4"><!-- TMPL_VAR NAME="contnotes" --></textarea>
74             </p>
75         </fieldset>
76         <fieldset>
77             <legend>Ordering informations</legend>
78             <p>
79                 <label>Supplier is</label>
80                     <!-- TMPL_IF name="active" -->
81                         <input type="radio" name="status" value="1" checked>Active
82                         <input type="radio" name="status" value="0">Inactive</td>
83                     <!-- TMPL_ELSE -->
84                         <input type="radio" name="status" value="1">Active
85                         <input type="radio" name="status" value="0" checked>Inactive</td>
86                     <!-- /TMPL_IF -->
87             </p>
88             <p>
89                 <label>Preferred publishers</label>
90                 <textarea name="publishers_imprints" cols="40" rows="3"><!-- TMPL_VAR NAME="specialty" --></textarea>
91             </p>
92             <p>
93                 <label>List Prices are</label>
94                     <select name="list_currency" size="1">
95                     <!-- TMPL_LOOP NAME="loop_pricescurrency" -->
96                         <!-- TMPL_VAR NAME="currency" -->
97                     <!-- /TMPL_LOOP -->
98                     </select>
99             </p>
100             <p>
101                 <label>Invoice Prices are</label>
102                     <select name="invoice_currency" size="1">
103                     <!-- TMPL_LOOP NAME="loop_invoicecurrency" -->
104                         <!-- TMPL_VAR NAME="currency" -->
105                     <!-- /TMPL_LOOP -->
106                     </select>
107             </p>
108             <!-- TMPL_IF NAME="GST" --><p>
109                 <label>GST Registered</label>
110                     <input type="radio" name="gst" value="1" <!-- TMPL_IF name="gstreg" -->checked<!-- /TMPL_IF -->>Yes
111                     <input type="radio" name="gst" value="0" <!-- TMPL_UNLESS name="gstreg" -->checked<!-- /TMPL_UNLESS -->>No
112             </p><!-- TMPL_ELSE --><input type="hidden" name="gst" value="0"><!-- /TMPL_IF -->
113             <!-- TMPL_IF NAME="GST" --><p>
114                 <label>Ordering prices</label>
115                     <input type="radio" name="list_gst" value="1" <!-- TMPL_IF name="listincgst" -->checked<!-- /TMPL_IF -->>include GST
116                     <input type="radio" name="list_gst" value="0" <!-- TMPL_UNLESS name="listincgst" -->checked<!-- /TMPL_UNLESS -->>don't include GST
117             </p><!-- TMPL_ELSE --><input type="hidden" name="list_gst" value="0"><!-- /TMPL_IF -->
118             <!-- TMPL_IF NAME="GST" --><p>
119                 <label>Invoice prices</label>
120                     <input type="radio" name="invoice_gst" value="1" <!-- TMPL_IF name= "invoiceincgst" -->checked<!-- /TMPL_IF -->>include GST
121                     <input type="radio" name="invoice_gst" value="0" <!-- TMPL_UNLESS name="invoiceincgst" -->checked<!-- /TMPL_UNLESS -->>don't include GST
122             </p><!-- TMPL_ELSE --><input type="hidden" name="invoice_gst" value="0"><!-- /TMPL_IF -->
123             <p>
124                 <label>Discount</label>
125                 <input type="text" size="3" name="discount" value="<!-- TMPL_VAR NAME="discount" -->"> %
126             </p>
127             <p>
128                 <label>Notes</label>
129                 <textarea cols="40" rows="4" name="notes" ><!-- TMPL_VAR NAME="notes" --></textarea>
130             </p>
131         </fieldset>
132         <p><input type="submit" value="Save" /></p>
133     </form>
134 <!--TMPL_ELSE-->
135     <h1>Information for : <!-- TMPL_VAR NAME="name" --></h1>
136     <div id="action">
137         <div class="edit">
138             <a href="supplier.pl?supplierid=<!--TMPL_VAR Name="id"-->&op=enter">
139                 Edit Supplier
140             </a>
141             <!-- TMPL_UNLESS name="basketcount" -->
142                 <a href="javascript:confirm_deletion()">
143                     Delete Supplier
144                 </a>
145             <!-- /TMPL_UNLESS -->
146         </div>
147         <div class="view">
148             <a href="booksellers.pl?supplier=<!--TMPL_VAR Name="id"-->">
149                 Manage Orders
150             </a>
151             <a href="parcels.pl?supplierid=<!--TMPL_VAR Name="id"-->"> 
152                 Receive Parcel
153             </a>
154         </div>
155     </div>
156         <fieldset>
157             <legend>Company details</legend>
158             <p>
159                 <label>Company Name</label>
160                 <!-- TMPL_VAR NAME="name" -->&nbsp;
161             </p>
162             <p>
163                 <label>Postal Address</label>
164                     <!-- TMPL_VAR NAME="postal" -->&nbsp;
165             </p>
166             <p>
167                 <label>Physical Address</label>
168                 <!-- TMPL_VAR NAME="address1" --><!-- TMPL_VAR NAME="address2" --><!-- TMPL_VAR NAME="address3" --><!-- TMPL_VAR NAME="address4" -->&nbsp;
169             </p>
170             <p>
171                 <label>Phone</label>
172                 <!-- TMPL_VAR NAME="phone" -->&nbsp;
173             </p>
174             <p>
175                 <label>Fax</label>
176                 <!-- TMPL_VAR NAME="fax" -->&nbsp;
177             </p>
178             <p>
179                 <label>Website</label>
180                 <!-- TMPL_VAR NAME="url" -->&nbsp;
181             </p>
182         </fieldset>
183         <fieldset>
184             <legend>Contact details</legend>
185             <p>
186                 <label>Contact name</label>
187                 <!-- TMPL_VAR NAME="contact" -->&nbsp;
188             </p>
189             <p>
190                 <label>Position</label>
191                 <!-- TMPL_VAR NAME="contpos" -->&nbsp;
192             </p>
193             <p>
194                 <label>Phone</label>
195                 <!-- TMPL_VAR NAME="contphone" -->&nbsp;
196             </p>
197             <p>
198                 <label>Alternative phone</label>
199                 <!-- TMPL_VAR NAME="contaltphone" -->&nbsp;
200             </p>
201             <p>
202                 <label>Fax</label>
203                 <!-- TMPL_VAR NAME="contfax" -->&nbsp;
204             </p>
205             <p>
206                 <label>E-mail</label>
207                 <!-- TMPL_VAR NAME="contemail" -->&nbsp;
208             </p>
209             <p>
210                 <label>Notes</label>
211                 <!-- TMPL_VAR NAME="contnotes" -->&nbsp;
212             </p>
213         
214         </fieldset>
215         <fieldset>
216         <legend>Ordering informations</legend>
217             <p>
218                 <label>Supplier is</label>
219                     <!-- TMPL_IF name="active" -->
220                         Active
221                     <!-- TMPL_ELSE -->
222                         Inactive
223                     <!-- /TMPL_IF -->
224             </p>
225             <p>
226                 <label>Publishers and Imprints</label>
227                 <!-- TMPL_VAR NAME="specialty" -->&nbsp;
228             </p>
229             <p>
230                 <label>List Prices are</label><!--TMPL_VAR Name="listprice"-->&nbsp;
231             </p>
232             <p>
233                 <label>Invoice Prices are</label><!--TMPL_VAR Name="invoiceprice"-->&nbsp;
234             </p>
235             <p>
236                 <label>GST Registered</label>
237                     <!-- TMPL_IF name="gstreg" -->Yes<!--TMPL_ELSE-->No<!-- /TMPL_IF -->
238             </p>
239             <p>
240                 <label>List Item Price Includes GST</label>
241                     <!-- TMPL_IF name="listincgst" -->Yes<!--TMPL_ELSE-->No<!-- /TMPL_IF -->
242             </p>
243             <p>
244                 <label>Invoice Item Price Includes GST</label>
245                     <!-- TMPL_IF name= "invoiceincgst" -->Yes<!--TMPL_ELSE-->No<!-- /TMPL_IF -->
246             </p>
247             <p>
248                 <label>Discount</label>
249                 <!-- TMPL_VAR NAME="discount" --> %&nbsp;
250             </p>
251             <p>
252                 <label>Notes</label>
253                 <!-- TMPL_VAR NAME="notes" -->&nbsp;
254             </p>
255         </fieldset>
256 </div>
257 <!--/TMPL_IF-->
258 <script>
259 function confirm_deletion() {
260     if (confirm("Confirm deletion of this supplier ?")) {
261         window.location="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!--TMPL_VAR Name="id"-->&op=delete";
262     }
263 }
264 </script>
265 <!-- TMPL_INCLUDE name="intranet-bottom.inc" -->