removing useless code (copied from addbiblio)
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / supplier.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Vendor <!-- TMPL_VAR name="bookselname" --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript">
5 //<![CDATA[
6 function confirm_deletion() {
7     if (confirm("Confirm deletion of this vendor ?")) {
8         window.location="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!--TMPL_VAR Name="id"-->&op=delete";
9     }
10 }
11 function check(f) {
12 if (f.company.value == "") {
13     alert("You must specify a name for this vendor.");
14     return false;
15 }
16     f.submit();
17 }
18 //]]>
19 </script>
20 </head>
21 <body>
22 <!-- TMPL_INCLUDE NAME="header.inc" -->
23 <!-- TMPL_INCLUDE NAME="acquisitions-search.inc" -->
24
25 <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="enter"--><!-- TMPL_IF name="id" --> <a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR NAME="id" -->"><!-- TMPL_VAR NAME="name" --></a> &rsaquo; Update: <!-- TMPL_VAR NAME="name" --><!-- TMPL_ELSE -->Add vendor<!-- /TMPL_IF --> <!-- TMPL_ELSE --><!-- TMPL_VAR NAME="name" --><!-- /TMPL_IF --></div>
26
27 <div id="doc" class="yui-t7">
28    
29    <div id="bd">
30         <div id="yui-main">
31         <!--TMPL_IF Name="enter"-->
32             <!-- TMPL_IF name="id" -->
33         <h1>Update: <!-- TMPL_VAR NAME="name" --></h1>
34     <!-- TMPL_ELSE -->
35         <h1>Add vendor</h1>
36     <!-- /TMPL_IF -->
37     <!-- /TMPL_IF -->
38 <!-- TMPL_UNLESS NAME="enter" --><!-- TMPL_INCLUDE NAME="acquisitions-toolbar.inc" --><!-- /TMPL_UNLESS -->
39 <!--TMPL_IF Name="enter"-->
40     <form action="updatesupplier.pl" name="updatesupplier" method="post">
41         <div class="yui-g">
42         <div class="yui-u first">
43         <input type="hidden" name="id" value="<!-- TMPL_VAR NAME="id" -->" />
44         <fieldset class="rows">
45             <legend>Company details</legend>
46             <ol><li><label for="company" class="required">Company Name * </label>
47                 <input type="text" size="40" id="company" name="company" value="<!-- TMPL_VAR NAME="name" -->" /></li>
48             <li><label for="company_postal">Postal Address</label>
49                     <textarea id="company_postal" name="company_postal" cols="40" rows="3"><!-- TMPL_VAR NAME="postal" --></textarea></li>
50             <li><label for="physical">Physical Address</label>
51                 <textarea id="physical" name="physical" cols="40" rows="3"><!-- TMPL_VAR NAME="address1" --><!-- TMPL_VAR NAME="address2" --><!-- TMPL_VAR NAME="address3" --><!-- TMPL_VAR NAME="address4" --></textarea></li>
52             <li><label for="company_phone">Phone</label>
53                 <input type="text" size="20" id="company_phone" name="company_phone" value="<!-- TMPL_VAR NAME="phone" -->" /></li>
54             <li><label for="company_fax">Fax</label>
55                 <input type="text" size="20" id="company_fax" name="company_fax" value="<!-- TMPL_VAR NAME="fax" -->" /></li>
56             <li><label for="website">Website</label>
57                 <input type="text" size="40" id="website" name="website" value="<!-- TMPL_VAR NAME="url" -->" /></li></ol>
58         </fieldset>
59                 </div>
60                 <div class="yui-u">
61         <fieldset class="rows">
62             <legend>Contact details</legend>
63            <ol> <li><label for="company_contact_name">Contact Name</label>
64                 <input type="text" size="40" id="company_contact_name" name="company_contact_name" value="<!-- TMPL_VAR NAME="contact" -->" /></li>
65             <li><label for="company_contact_position">Position</label>
66                 <input type="text" size="40" id="company_contact_position" name="company_contact_position" value="<!-- TMPL_VAR NAME="contpos" -->" /></li>
67             <li><label for="contact_phone">Phone</label>
68                 <input type="text" size="20" id="contact_phone" name="contact_phone" value="<!-- TMPL_VAR NAME="contphone" -->" /> </li>
69             <li><label for="contact_phone_2">Alternative phone</label>
70                 <input type="text" size="20" id="contact_phone_2" name="contact_phone_2" value="<!-- TMPL_VAR NAME="contaltphone" -->" /></li>
71             <li><label for="contact_fax">Fax</label>
72                 <input type="text" size="20" id="contact_fax" name="contact_fax" value="<!-- TMPL_VAR NAME="contfax" -->" /></li>
73             <li><label for="company_email">Email</label>
74                 <input type="text" size="40" id="company_email" name="company_email" value="<!-- TMPL_VAR NAME="contemail" -->" /></li>
75             <li><label for="contact_notes">Notes</label>
76                 <textarea id="contact_notes" name="contact_notes" cols="40" rows="4"><!-- TMPL_VAR NAME="contnotes" --></textarea></li></ol>
77         </fieldset>
78                 </div>
79         </div>
80                 <div class="yui-g">
81         <fieldset class="rows">
82             <legend>Ordering information</legend>
83             <ol class="radio"><li><label for="activestatus" class="radio">Vendor is:</label>
84                     <!-- TMPL_IF name="active" -->
85                         <label for="activestatus">Active</label> <input type="radio" id="activestatus" name="status" value="1" checked="checked" />
86                         <label for="inactivestatus">Inactive</label> <input type="radio" id="inactivestatus" name="status" value="0" />
87                     <!-- TMPL_ELSE -->
88                         <label for="activestatus">Active</label> <input type="radio" id="activestatus" name="status" value="1" />
89                         <label for="inactivestatus">Inactive</label> <input type="radio" id="inactivestatus" name="status" value="0" checked="checked" />
90                     <!-- /TMPL_IF --></li>
91                         </ol>
92                         <ol>
93             <li><label for="publishers_imprints">Preferred publishers</label>
94                 <textarea id="publishers_imprints" name="publishers_imprints" cols="40" rows="3"><!-- TMPL_VAR NAME="specialty" --></textarea></li>
95             <li><label for="list_currency">List Prices are</label>
96                     <select name="list_currency" id="list_currency">
97                     <!-- TMPL_LOOP NAME="loop_pricescurrency" -->
98                         <!-- TMPL_VAR NAME="currency" -->
99                     <!-- /TMPL_LOOP -->
100                     </select></li>
101             <li><label for="invoice_currency">Invoice Prices are</label>
102                     <select name="invoice_currency" id="invoice_currency">
103                     <!-- TMPL_LOOP NAME="loop_invoicecurrency" -->
104                         <!-- TMPL_VAR NAME="currency" -->
105                     <!-- /TMPL_LOOP -->
106                     </select></li>
107             <!-- TMPL_IF NAME="GST" --><li>GST Registered
108                                 <!-- TMPL_IF name="gstreg" -->
109                                         <input type="radio" name="gst" id="gstyes" value="1" checked="checked" /><label for="gstyes">Yes</label>
110                     <input type="radio" name="gst" id="gstno" value="0" /><label for="gstno">No</label>
111                                 <!-- TMPL_ELSE -->
112                     <input type="radio" name="gst" id="gstyes" value="1" /><label for="gstyes">Yes</label>
113                     <input type="radio" name="gst" id="gstno" value="0" checked="checked" /><label for="gstno">No</label>
114                                 <!-- /TMPL_IF --></li><!-- /TMPL_IF -->
115                         
116             <!-- TMPL_IF NAME="GST" --><li>Ordering prices
117                                 <!-- TMPL_IF name="listincgst" -->
118                                         <input type="radio" id="list_gstyes" name="list_gst" value="1" checked="checked" /><label for="list_gstyes">include GST</label>
119                     <input type="radio" id="list_gstno" name="list_gst" value="0" /><label for="list_gstno">don't include GST</label>
120                                 <!-- TMPL_ELSE -->
121                     <input type="radio" id="list_gstyes" name="list_gst" value="1" /><label for="list_gstyes">include GST</label>
122                     <input type="radio" id="list_gstno" name="list_gst" value="0" checked="checked" /><label for="list_gstno">don't include GST</label>
123                                 <!-- /TMPL_IF --></li><!-- /TMPL_IF -->
124                         
125             <!-- TMPL_IF NAME="GST" --><li>Invoice prices
126                                 <!-- TMPL_IF name= "invoiceincgst" -->
127                     <input type="radio" id="invoice_gstyes" name="invoice_gst" value="1" checked="checked" /><label for="invoice_gstyes">include GST</label>
128                     <input type="radio" id="invoice_gstno" name="invoice_gst" value="0" /><label for="invoice_gstno">don't include GST</label>
129                                         <!-- TMPL_ELSE -->
130                     <input type="radio" id="invoice_gstyes" name="invoice_gst" value="1"><label for="invoice_gstyes">include GST</label>
131                     <input type="radio" id="invoice_gstno" name="invoice_gst" value="0" checked="checked" /><label for="invoice_gstno">don't include GST</label>
132                                 <!-- /TMPL_IF --></li><!-- /TMPL_IF -->
133             <li><label for="discount">Discount</label>
134                 <input type="text" size="3" id="discount" name="discount" value="<!-- TMPL_VAR NAME="discount" -->" /> %</li>
135             <li><label for="gstrate">GST rate</label><input type="text" name="gstrate" id="gstrate" size="5" value="<!-- TMPL_VAR name="GST" -->"/>%</li>
136             <li><label for="notes">Notes</label>
137                 <textarea cols="40" rows="4" id="notes" name="notes" ><!-- TMPL_VAR NAME="notes" --></textarea></li></ol>                       
138                         <!-- TMPL_UNLESS NAME="GST" -->
139                                 <input type="hidden" name="gst" value="0" />
140                                 <input type="hidden" name="list_gst" value="0" />
141                                 <input type="hidden"  name="invoice_gst" value="0" />
142                         <!-- /TMPL_UNLESS -->
143         </fieldset>
144         <fieldset class="action"><input type="button" value="Save" onclick="check(this.form);" /> <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?supplierid=<!-- TMPL_VAR NAME="id" -->">Cancel</a></fieldset>
145                 </div>
146     </form>
147 <!--TMPL_ELSE-->
148     <h1><!-- TMPL_VAR NAME="name" --></h1>
149                 <div class="yui-g">
150         <div id="supplier-company-details" class="yui-u first">
151             <p><strong>Company Name: </strong>
152                 <!-- TMPL_VAR NAME="name" --></p>
153             <p><strong>Postal Address: </strong>
154                     <!-- TMPL_VAR NAME="postal" --></p>
155             <p><strong>Physical Address: </strong>
156                 <!-- TMPL_VAR NAME="address1" --><!-- TMPL_VAR NAME="address2" --><!-- TMPL_VAR NAME="address3" --><!-- TMPL_VAR NAME="address4" --></p>
157             <p><strong>Phone: </strong>
158                 <!-- TMPL_VAR NAME="phone" --></p>
159             <p><strong>Fax: </strong>
160                 <!-- TMPL_VAR NAME="fax" --></p>
161            <!-- TMPL_IF NAME="url" --> <p><strong>Web site: </strong>
162                 <a href="<!-- TMPL_VAR NAME="url" -->"><!-- TMPL_VAR NAME="url" --></a></p><!-- /TMPL_IF -->
163         </div>
164         <div id="supplier-contact-details" class="yui-u">
165             <h3>Contact details</h3>
166             <p><strong>Contact name: </strong>
167                 <!-- TMPL_VAR NAME="contact" --></p>
168             <p><strong>Position: </strong>
169                 <!-- TMPL_VAR NAME="contpos" --></p>
170             <p><strong>Phone: </strong>
171                 <!-- TMPL_VAR NAME="contphone" --></p>
172             <p><strong>Alternative phone: </strong>
173                 <!-- TMPL_VAR NAME="contaltphone" --></p>
174             <p><strong>Fax: </strong>
175                 <!-- TMPL_VAR NAME="contfax" --></p>
176             <!-- TMPL_IF NAME="contemail" --><p><strong>Email: </strong>
177                 <a href="mailto:<!-- TMPL_VAR NAME="contemail" -->"><!-- TMPL_VAR NAME="contemail" --></a></p><!-- /TMPL_IF -->
178             <!-- TMPL_IF NAME="contnotes" --><p><strong>Notes: </strong>
179                 <!-- TMPL_VAR NAME="contnotes" --></p><!-- /TMPL_IF -->
180         
181         </div>
182                 </div>
183         <div id="supplier-ordering-information" class="yui-g">
184         <h3>Ordering information</h3>
185             <p><strong>Vendor is: </strong>
186                     <!-- TMPL_IF name="active" -->
187                         Active
188                     <!-- TMPL_ELSE -->
189                         Inactive
190                     <!-- /TMPL_IF --></p>
191             <p><strong>Publishers and Imprints: </strong>
192                 <!-- TMPL_VAR NAME="specialty" --></p>
193             <p><strong>List Prices are: </strong><!--TMPL_VAR Name="listprice"--></p>
194             <p><strong>Invoice Prices are: </strong><!--TMPL_VAR Name="invoiceprice"--></p>
195             <!-- TMPL_IF NAME="GST" --><p><strong>GST Registered: </strong>
196                     <!-- TMPL_IF name="gstreg" -->Yes<!--TMPL_ELSE-->No<!-- /TMPL_IF --></p>
197             <p><strong>List Item Price Includes GST: </strong>
198                     <!-- TMPL_IF name="listincgst" -->Yes<!--TMPL_ELSE-->No<!-- /TMPL_IF --></p>
199             <p><strong>Invoice Item Price Includes GST: </strong>
200                     <!-- TMPL_IF name= "invoiceincgst" -->Yes<!--TMPL_ELSE-->No<!-- /TMPL_IF --></p><!-- /TMPL_IF -->
201             <p><strong>Discount: </strong>
202                 <!-- TMPL_VAR NAME="discount" --> %</p>
203             <p><strong>GST rate: </strong>
204                 <!-- TMPL_VAR name="GST" -->%</p>
205             <!-- TMPL_IF NAME="notes" --><p><strong>Notes: </strong>
206                 <!-- TMPL_VAR NAME="notes" --></p><!-- /TMPL_IF -->
207         </div>
208 <!--/TMPL_IF-->
209
210 </div>
211 </div>
212 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->