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