5f4542992a
previously, it wasn't possible to insert anything into the <head> on an individual template unless it was the title of the page. Now, the structure is a bit more flexible to allow additional head elements to be included.
250 lines
10 KiB
Cheetah
250 lines
10 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
|
<title>Koha › Supplier <!-- TMPL_VAR name="bookselname" --></title>
|
|
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
|
|
<!-- TMPL_INCLUDE NAME="menus.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="menu-acqui.inc" -->
|
|
|
|
<!--TMPL_IF Name="enter"-->
|
|
<form action=updatesupplier.pl method="post">
|
|
|
|
<input type="hidden" name="id" value="<!-- TMPL_VAR NAME="id" -->">
|
|
|
|
<!-- TMPL_IF name="id" -->
|
|
<h1>Update: <!-- TMPL_VAR NAME="name" --></h1>
|
|
<!-- TMPL_ELSE -->
|
|
<h1>Add supplier</h1>
|
|
<!-- /TMPL_IF -->
|
|
<fieldset>
|
|
<legend>Company details</legend>
|
|
<p>
|
|
<label>Company Name</label>
|
|
<input type="text" size="40" name="company" value="<!-- TMPL_VAR NAME="name" -->">
|
|
</p>
|
|
<p>
|
|
<label>Postal Address</label>
|
|
<textarea name="company_postal" cols="40" rows="3"><!-- TMPL_VAR NAME="postal" --></textarea>
|
|
</p>
|
|
<p>
|
|
<label>Physical Address</label>
|
|
<textarea name="physical" cols="40" rows="3"><!-- TMPL_VAR NAME="address1" --><!-- TMPL_VAR NAME="address2" --><!-- TMPL_VAR NAME="address3" --><!-- TMPL_VAR NAME="address4" --></textarea>
|
|
</p>
|
|
<p>
|
|
<label>Phone</label>
|
|
<input type="text" size="20" name="company_phone" value="<!-- TMPL_VAR NAME="phone" -->">
|
|
</p>
|
|
<p>
|
|
<label>Fax</label>
|
|
<input type="text" size="20" name="company_fax" value="<!-- TMPL_VAR NAME="fax" -->">
|
|
</p>
|
|
<p>
|
|
<label>Website</label>
|
|
<input type="text" size="40" name="website" value="<!-- TMPL_VAR NAME="url" -->">
|
|
</p>
|
|
</fieldset>
|
|
<fieldset>
|
|
<legend>Contact details</legend>
|
|
<p>
|
|
<label>Contact Name</label>
|
|
<input type="text" size="40" name="company_contact_name" value="<!-- TMPL_VAR NAME="contact" -->">
|
|
</p>
|
|
<p>
|
|
<label>Position</label>
|
|
<input type="text" size="40" name="company_contact_position" value="<!-- TMPL_VAR NAME="contpos" -->">
|
|
</p>
|
|
<p>
|
|
<label>Phone</label>
|
|
<input type="text" size="20" name="contact_phone" value="<!-- TMPL_VAR NAME="contphone" -->">
|
|
</p>
|
|
<p>
|
|
<label>Alternative phone</label>
|
|
<input type="text" size="20" name="contact_phone_2" value="<!-- TMPL_VAR NAME="contaltphone" -->">
|
|
</p>
|
|
<p>
|
|
<label>Fax</label>
|
|
<input type="text" size="20" name="contact_fax" value="<!-- TMPL_VAR NAME="contfax" -->">
|
|
</p>
|
|
<p>
|
|
<label>E-mail</label>
|
|
<input type="text" size="40" name="company_email" value="<!-- TMPL_VAR NAME="contemail" -->">
|
|
</p>
|
|
<p>
|
|
<label>Notes</label>
|
|
<textarea name="contact_notes" cols="40" rows="4"><!-- TMPL_VAR NAME="contnotes" --></textarea>
|
|
</p>
|
|
</fieldset>
|
|
<fieldset>
|
|
<legend>Ordering informations</legend>
|
|
<p>
|
|
<label>Supplier is</label>
|
|
<!-- TMPL_IF name="active" -->
|
|
<input type="radio" name="status" value="1" checked>Active
|
|
<input type="radio" name="status" value="0">Inactive</td>
|
|
<!-- TMPL_ELSE -->
|
|
<input type="radio" name="status" value="1">Active
|
|
<input type="radio" name="status" value="0" checked>Inactive</td>
|
|
<!-- /TMPL_IF -->
|
|
</p>
|
|
<p>
|
|
<label>Preferred publishers</label>
|
|
<textarea name="publishers_imprints" cols="40" rows="3"><!-- TMPL_VAR NAME="specialty" --></textarea>
|
|
</p>
|
|
<p>
|
|
<label>List Prices are</label>
|
|
<select name="list_currency" size="1">
|
|
<!-- TMPL_LOOP NAME="loop_pricescurrency" -->
|
|
<!-- TMPL_VAR NAME="currency" -->
|
|
<!-- /TMPL_LOOP -->
|
|
</select>
|
|
</p>
|
|
<p>
|
|
<label>Invoice Prices are</label>
|
|
<select name="invoice_currency" size="1">
|
|
<!-- TMPL_LOOP NAME="loop_invoicecurrency" -->
|
|
<!-- TMPL_VAR NAME="currency" -->
|
|
<!-- /TMPL_LOOP -->
|
|
</select>
|
|
</p>
|
|
<!-- TMPL_IF NAME="GST" --><p>
|
|
<label>GST Registered</label>
|
|
<input type="radio" name="gst" value="1" <!-- TMPL_IF name="gstreg" -->checked<!-- /TMPL_IF -->>Yes
|
|
<input type="radio" name="gst" value="0" <!-- TMPL_UNLESS name="gstreg" -->checked<!-- /TMPL_UNLESS -->>No
|
|
</p><!-- TMPL_ELSE --><input type="hidden" name="gst" value="0"><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="GST" --><p>
|
|
<label>Ordering prices</label>
|
|
<input type="radio" name="list_gst" value="1" <!-- TMPL_IF name="listincgst" -->checked<!-- /TMPL_IF -->>include GST
|
|
<input type="radio" name="list_gst" value="0" <!-- TMPL_UNLESS name="listincgst" -->checked<!-- /TMPL_UNLESS -->>don't include GST
|
|
</p><!-- TMPL_ELSE --><input type="hidden" name="list_gst" value="0"><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF NAME="GST" --><p>
|
|
<label>Invoice prices</label>
|
|
<input type="radio" name="invoice_gst" value="1" <!-- TMPL_IF name= "invoiceincgst" -->checked<!-- /TMPL_IF -->>include GST
|
|
<input type="radio" name="invoice_gst" value="0" <!-- TMPL_UNLESS name="invoiceincgst" -->checked<!-- /TMPL_UNLESS -->>don't include GST
|
|
</p><!-- TMPL_ELSE --><input type="hidden" name="invoice_gst" value="0"><!-- /TMPL_IF -->
|
|
<p>
|
|
<label>Discount</label>
|
|
<input type="text" size="3" name="discount" value="<!-- TMPL_VAR NAME="discount" -->"> %
|
|
</p>
|
|
<p>
|
|
<label>Notes</label>
|
|
<textarea cols="40" rows="4" name="notes" ><!-- TMPL_VAR NAME="notes" --></textarea>
|
|
</p>
|
|
</fieldset>
|
|
<p><input type="submit" value="Save" /></p>
|
|
</form>
|
|
<!--TMPL_ELSE-->
|
|
<h1>Information for : <!-- TMPL_VAR NAME="name" --></h1>
|
|
<div id="action">
|
|
<a href="supplier.pl?supplierid=<!--TMPL_VAR Name="id"-->&op=enter">
|
|
Edit Supplier
|
|
</a>
|
|
<a href="booksellers.pl?supplier=<!--TMPL_VAR Name="id"-->">
|
|
Manage Orders
|
|
</a>
|
|
<a href="parcels.pl?supplierid=<!--TMPL_VAR Name="id"-->">
|
|
Receive Parcel
|
|
</a>
|
|
</div>
|
|
<fieldset>
|
|
<legend>Company details</legend>
|
|
<p>
|
|
<label>Company Name</label>
|
|
<!-- TMPL_VAR NAME="name" -->
|
|
</p>
|
|
<p>
|
|
<label>Postal Address</label>
|
|
<!-- TMPL_VAR NAME="postal" -->
|
|
</p>
|
|
<p>
|
|
<label>Physical Address</label>
|
|
<!-- TMPL_VAR NAME="address1" --><!-- TMPL_VAR NAME="address2" --><!-- TMPL_VAR NAME="address3" --><!-- TMPL_VAR NAME="address4" -->
|
|
</p>
|
|
<p>
|
|
<label>Phone</label>
|
|
<!-- TMPL_VAR NAME="phone" -->
|
|
</p>
|
|
<p>
|
|
<label>Fax</label>
|
|
<!-- TMPL_VAR NAME="fax" -->
|
|
</p>
|
|
<p>
|
|
<label>Website</label>
|
|
<!-- TMPL_VAR NAME="url" -->
|
|
</p>
|
|
</fieldset>
|
|
<fieldset>
|
|
<legend>Contact details</legend>
|
|
<p>
|
|
<label>Contact name</label>
|
|
<!-- TMPL_VAR NAME="contact" -->
|
|
</p>
|
|
<p>
|
|
<label>Position</label>
|
|
<!-- TMPL_VAR NAME="contpos" -->
|
|
</p>
|
|
<p>
|
|
<label>Phone</label>
|
|
<!-- TMPL_VAR NAME="contphone" -->
|
|
</p>
|
|
<p>
|
|
<label>Alternative phone</label>
|
|
<!-- TMPL_VAR NAME="contaltphone" -->
|
|
</p>
|
|
<p>
|
|
<label>Fax</label>
|
|
<!-- TMPL_VAR NAME="contfax" -->
|
|
</p>
|
|
<p>
|
|
<label>E-mail</label>
|
|
<!-- TMPL_VAR NAME="contemail" -->
|
|
</p>
|
|
<p>
|
|
<label>Notes</label>
|
|
<!-- TMPL_VAR NAME="contnotes" -->
|
|
</p>
|
|
|
|
</fieldset>
|
|
<fieldset>
|
|
<legend>Ordering informations</legend>
|
|
<p>
|
|
<label>Supplier is</label>
|
|
<!-- TMPL_IF name="active" -->
|
|
Active
|
|
<!-- TMPL_ELSE -->
|
|
Inactive
|
|
<!-- /TMPL_IF -->
|
|
</p>
|
|
<p>
|
|
<label>Publishers and Imprints</label>
|
|
<!-- TMPL_VAR NAME="specialty" -->
|
|
</p>
|
|
<p>
|
|
<label>List Prices are</label><!--TMPL_VAR Name="listprice"-->
|
|
</p>
|
|
<p>
|
|
<label>Invoice Prices are</label><!--TMPL_VAR Name="invoiceprice"-->
|
|
</p>
|
|
<p>
|
|
<label>GST Registered</label>
|
|
<!-- TMPL_IF name="gstreg" -->Yes<!--TMPL_ELSE-->No<!-- /TMPL_IF -->
|
|
</p>
|
|
<p>
|
|
<label>List Item Price Includes GST</label>
|
|
<!-- TMPL_IF name="listincgst" -->Yes<!--TMPL_ELSE-->No<!-- /TMPL_IF -->
|
|
</p>
|
|
<p>
|
|
<label>Invoice Item Price Includes GST</label>
|
|
<!-- TMPL_IF name= "invoiceincgst" -->Yes<!--TMPL_ELSE-->No<!-- /TMPL_IF -->
|
|
</p>
|
|
<p>
|
|
<label>Discount</label>
|
|
<!-- TMPL_VAR NAME="discount" --> %
|
|
</p>
|
|
<p>
|
|
<label>Notes</label>
|
|
<!-- TMPL_VAR NAME="notes" -->
|
|
</p>
|
|
</fieldset>
|
|
</div>
|
|
<!--/TMPL_IF-->
|
|
|
|
<!-- TMPL_INCLUDE name="intranet-bottom.inc" -->
|