[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/koha-tmpl/intranet-tmpl/ccfls/en/members p... [dev_week]
From: |
Kyle Hall |
Subject: |
[Koha-cvs] koha/koha-tmpl/intranet-tmpl/ccfls/en/members p... [dev_week] |
Date: |
Tue, 24 Jul 2007 20:17:00 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: dev_week
Changes by: Kyle Hall <kylemhall> 07/07/24 20:17:00
Modified files:
koha-tmpl/intranet-tmpl/ccfls/en/members: pay.tmpl
Log message:
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/ccfls/en/members/pay.tmpl?cvsroot=koha&only_with_tag=dev_week&r1=1.1.2.1.2.7&r2=1.1.2.1.2.8
Patches:
Index: pay.tmpl
===================================================================
RCS file:
/sources/koha/koha/koha-tmpl/intranet-tmpl/ccfls/en/members/Attic/pay.tmpl,v
retrieving revision 1.1.2.1.2.7
retrieving revision 1.1.2.1.2.8
diff -u -b -r1.1.2.1.2.7 -r1.1.2.1.2.8
--- pay.tmpl 22 May 2007 11:50:53 -0000 1.1.2.1.2.7
+++ pay.tmpl 24 Jul 2007 20:16:59 -0000 1.1.2.1.2.8
@@ -80,7 +80,7 @@
<caption>Pay Fines By Amount</caption>
<tr>
<td>
- Amount to be paid: $<input type="text" name="total" />
+ Amount to be paid: <strong>$</strong><input id="payByAmountTotal"
type="text" name="total" onkeypress="atmField(this.id)"/><i>Note: Decimal will
be added automatically. You do not need to enter it by hand.</i>
</td>
<tr>
</table>
@@ -90,6 +90,39 @@
</div>
+<script type="text/javascript">
+function atmField(x){
+
+var input = document.getElementById(x).value
+
+if (input.length > 0) {
+ var numbers = "";
+ for(var i = 0; i < input.length; i++) {
+ var umChar = input.charAt(i);
+ if ( ! isNaN(umChar) ) {
+ numbers += umChar;
+ }
+ }
+ var output = "";
+ var n = numbers.length - 2;
+
+ var i = 0;
+ while(i < input.length + 1) {
+ if(i == n) {
+ output += numbers.charAt(i) + '.';
+ } else {
+ output += numbers.charAt(i)
+ }
+ i++;
+ }
+
+ document.getElementById(x).value = output;
+
+ }
+}
+</script>
+
+
<div id="main">
<form class="inline" action="/cgi-bin/koha/negotiate.pl" method="post">
<input type="hidden" name="bornum" value="<!-- TMPL_VAR name="bornum" -->" />
- [Koha-cvs] koha/koha-tmpl/intranet-tmpl/ccfls/en/members p... [dev_week],
Kyle Hall <=