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