bugfix for bug #141
[koha.git] / koha-tmpl / intranet-tmpl / default / en / includes / acquisitions-top.inc
1 <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
2 <!--Authored by rachel@katipo.co.nz 104:38 1/11/99-->
3 <!--updated by rachel@katipo.co.nz 12:24 12/01/00-->
4 <!--updated by chris@katipo.co.nz 1/3/00-->
5 <!--renamed by saas@users.sf.net 21/04/02 "aquisitions" to "acquisitions" -->
6
7 <html>
8 <head>
9 <title>KOHA: INTRANET: Acquisitions</title>
10
11 <style type="text/css">
12 <!--
13 select,option {font-size:12px}
14 -->
15
16 </style>
17
18 <SCRIPT LANGUAGE="JavaScript">
19 // go to page selected from options menu
20
21 function leapto(form) {
22 var myindex=form.dest.selectedIndex
23 parent.location.href=(form.dest.options[myindex].value);
24 }
25
26           //
27    
28 if (document.images){
29
30 menu=new Image;
31 menu.src ="/images/acq-acq.gif"
32
33 }
34
35
36         //
37 //adder
38
39
40 //display tidys up a number for display: hopefully leaving 2 decimal points
41
42 function display(numb){
43   if (parseInt(numb)){
44     if (numb== Math.round(numb)){
45       return ( numb + ".00")
46     }
47     else {
48       numb=(numb + "0");
49       return (numb.substring(0,(numb.indexOf(".")+3)))
50     }
51   }
52   else{
53     return "0.00"
54   }
55 }
56 // update -- the main function
57
58 function update(f){
59   z=0;
60   total=0;
61   count=0;
62   subtotal=0;
63   discount=0;
64   q=f.length-5;
65   while (z < q){
66 //     f.elements[z].value=z;
67     z++;
68     //skip rrp for now
69     est = parseFloat(f.elements[z].value);
70     z++;
71     quant = parseInt(f.elements[z].value);
72     z++;
73     booktotal= est*quant;
74     f.elements[z].value=display(booktotal);
75     subtotal = subtotal + booktotal;
76     z++;
77     z++;
78     z++;
79   }
80   GST=subtotal*0.125;
81   total=subtotal+GST;
82   f.subtotal.value = display(subtotal);
83   f.gst.value =display(GST);
84   f.grandtotal.value =display(total);
85 }
86     
87     //-->
88     
89 </script>
90
91 </head>
92 <body text="black" bgcolor="white" link="#0000ff" vlink="#0000ff" "3366cc" Alink="#cc3300"
93 marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>
94
95
96 <!--HDL Colours
97         Yellow = ffcc00 
98         light blue = ccccff
99         bright blue links = 0000ff
100         aubergine = 663266 
101         light green/grey = cccc99
102 -->
103
104 <!------------------------MENUS-------------------------------->
105
106 <table cellpadding=0 cellspacing=0 width="100%" border=0>
107 <tr bgcolor=ffcc00  >
108
109         <td valign=top >
110         <table cellpadding=0 cellspacing=0  border=0 height=29>
111         <tr valign=top bgcolor=ffcc00 >
112         <td background="/images/catalogue-spot-1.gif" width="224" 
113         height="29"><font size=1 face="arial"><img src="/images/holder.gif" width=210 height=4 alt=" " hspace=0 vspace=0><br>
114         <img src="/images/holder.gif"
115         width=35 height=21 align=left alt=" " hspace=0 vspace=0><font size="+1">KOHA: <a href="/cgi-bin/koha/mainpage.pl">Main Menu</a></font><br>
116         <img src="/images/holder.gif" width=210 height=1 alt=" " hspace=0 vspace=0></FONT></td>
117         
118         </TR></TABLE></TD>
119
120         <td  valign=bottom align=right><img src="/images/holder.gif"
121           WIDTH=1  HEIGHT=38 HSPACE=0 vspace=0></td>
122
123         <td  valign=bottom align=right>
124         <table cellpadding=0 cellspacing=0  border=0 height=29><tr><td><img src=/images/acq-acq.gif     border="0" name=menu usemap="#map" HSPACE=0 vspace=0 ></td>
125         
126         </TR></TABLE></TD>
127 </tr>
128
129 <TR VALIGN=TOP BGCOLOR="000000"><TD  COLSPAN=3><img src="/images/blackdot.gif"  WIDTH=1  HEIGHT=2  HSPACE=0 vspace=0></TD></TR>
130
131 </table>
132
133
134 <map name="map">
135 <area shape="rect" coords="18,8,84,27" href="/cgi-bin/koha/catalogue-home.pl" alt="Catalogue" onMouseOver="if(document.images)document.menu.src='/images/acq-cat.gif'" onMouseOut="if(document.images)document.menu.src='/images/acq-acq.gif'">
136
137 <area shape="rect" coords="94,8,149,28" href="/cgi-bin/koha/members-home.pl" alt="Members" onMouseOver="if(document.images)document.menu.src='/images/acq-mem.gif'" onMouseOut="if(document.images)document.menu.src='/images/acq-acq.gif'">
138
139 <area shape="rect" coords="154,9,212,29" alt="Acquisitions"   href="/cgi-bin/koha/loadmodules.pl?module=acquisitions" onMouseOver="if(document.images)document.menu.src='/images/acq-acq.gif'" onMouseOut="if(document.images)document.menu.src='/images/acq-acq.gif'">
140
141 <area  shape="rect"alt="Reports"  coords="217,7,289,27"href="/cgi-bin/koha/reports-home.pl" onMouseOver="if(document.images)document.menu.src='/images/acq-rep.gif'" onMouseOut="if(document.images)document.menu.src='/images/acq-acq.gif'">
142
143 <area shape="rect" coords="306,8,352,27" href="/cgi-bin/koha/circ/circulation.pl" alt="Circulation" onMouseOver="if(document.images)document.menu.src='/images/acq-crc.gif'" onMouseOut="if(document.images)document.menu.src='/images/acq-acq.gif'">
144
145 <area  shape="rect" alt="Home" coords="374,9,419,29" href="/cgi-bin/koha/mainpage.pl" onMouseOver="if(document.images)document.menu.src='/images/acq-hom.gif'" onMouseOut="if(document.images)document.menu.src='/images/acq-acq.gif'">
146 <area shape="default" nohref>
147 </map>
148
149 <BLOCKQUOTE>