distribute fees

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
gurjit
Forum Contributor
Posts: 314
Joined: Thu May 15, 2003 11:53 am
Location: UK

distribute fees

Post by gurjit »

Hi all,

I want to be able to type in a payment amount in box "Amount Received". When i click in the first box "Total to Apply" it should take the amount entered in "Amount Recieved" and apply the max amount due, and the same happens when i click in the second, third "Total to Apply" boxes.

example:
if entered 500 in "Amount Received" then clicked on "Total to Apply" box 1 it will apply 200 in this box. When i click on "Total to Apply" box 2 it will apply 100. When i click on "Total to Apply" box 3 it will apply 150. When i click on "Total to Apply" box 4 it will apply 50.

It will continue to apply max "total due" until it reaches the amount entered in "Amount Received".

If you look at the code i have put hidden fields called "theamountdue[]" which shows the total due for each workshop.

If the user after applying the fees wants to enter another amount and adjust the fees they should be able to. So if in "Total to Apply" box 1 they wanted to apply 150 instead of 200, they click in the box and chane this. When they click the submit button on the bottom the page should check to see if "tot_apply[]" equals "Amount Received". If it does not a javascript alert box pops up.

How can i do this?

Code: Select all

<html>
<head>
<title></title>
<script>
function thebalance() {
var grand_balance_due = 0;
}
</script>
<meta http-equiv=&quote;Content-Type&quote; content=&quote;text/html; charset=iso-8859-1&quote;>
<body>
<table border=&quote;0&quote; cellspacing=&quote;0&quote; cellpadding=&quote;0&quote; width=&quote;98%&quote;>
  <tr align=&quote;center&quote;> 
    <td align=&quote;left&quote; class=&quote;NavHeadingTxt&quote;><table width=&quote;100%&quote; border=&quote;0&quote; cellspacing=&quote;0&quote; cellpadding=&quote;0&quote;>
        <tr bgcolor=&quote;#FEE68C&quote;> 
          <td height=&quote;25&quote; bgcolor=&quote;#FEE68C&quote; class=&quote;minitext&quote;><strong>Family:</strong> 
            Pawar, Joe</td>
          <td class=&quote;minitext&quote;><strong>Address:</strong> 50 Lane </td>
          <td class=&quote;minitext&quote;><strong>Phone:</strong> 234 675 576</td>
          <td class=&quote;minitext&quote;><strong>Balance Due:</strong> <SPAN ID=&quote;balancehere&quote; class=&quote;bodytext&quote;></SPAN></td>
        </tr>
        <tr> 
          <td height=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
          <td height=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
          <td height=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
          <td height=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
        </tr>
        <tr bgcolor=&quote;#FEE68C&quote;> 
          <td height=&quote;25&quote; colspan=&quote;4&quote; class=&quote;minitext&quote;><strong>&nbsp;</strong> 
            Students: Sukhjit (M) | Gurjit (M) | Sabina (F) </td>
        </tr>
      </table></td>
  </tr>
  <tr align=&quote;center&quote;> 
    <td align=&quote;left&quote; class=&quote;NavHeadingTxt&quote;>&nbsp;</td>
  </tr>
  <form method=&quote;post&quote; name=&quote;form1&quote;>
    <input type=&quote;hidden&quote; name=&quote;wfaid2&quote; value=&quote;2&quote;>
    <input type=&quote;hidden&quote; name=&quote;u_permM&quote; value=&quote;7&quote;>
    <tr align=&quote;center&quote;> 
      <td align=&quote;left&quote; class=&quote;NavHeadingTxt&quote;><table width=&quote;100%&quote; border=&quote;0&quote; cellspacing=&quote;0&quote; cellpadding=&quote;0&quote;>
          <tr class=&quote;bodytext&quote;> 
            <td>&nbsp;</td>
            <td bgcolor=&quote;#FEE68C&quote;></td>
            <td bgcolor=&quote;#FEE68C&quote;>Payment Date</td>
            <td bgcolor=&quote;#FEE68C&quote;></td>
            <td bgcolor=&quote;#FEE68C&quote; class=&quote;bodytext&quote;>Method of Payment</td>
            <td bgcolor=&quote;#FEE68C&quote;></td>
            <td bgcolor=&quote;#FEE68C&quote; class=&quote;bodytext&quote;>Memo</td>
            <td bgcolor=&quote;#FEE68C&quote;></td>
            <td bgcolor=&quote;#FEE68C&quote; class=&quote;bodytext&quote;>Amount Received</td>
          </tr>
          <tr class=&quote;bodytext&quote;> 
            <td>&nbsp;</td>
            <td width=&quote;5&quote;></td>
            <td><table border=&quote;0&quote; cellpadding=&quote;0&quote; cellspacing=&quote;0&quote;>
                <tr> 
                  <td><select name=&quote;dob_dd&quote; class=&quote;AllFormDD2Chars&quote; id=&quote;today_dd&quote; onkeydown=&quote;typeahead(this,event)&quote;>
                      <option value=&quote;1&quote; >1</option>
                      <option value=&quote;2&quote; >2</option>
                      <option value=&quote;3&quote; >3</option>
                      <option value=&quote;4&quote; >4</option>
                      <option value=&quote;5&quote; >5</option>
                      <option value=&quote;6&quote; >6</option>
                      <option value=&quote;7&quote; >7</option>
                      <option value=&quote;8&quote; >8</option>
                      <option value=&quote;9&quote; >9</option>
                      <option value=&quote;10&quote; >10</option>
                      <option value=&quote;11&quote; >11</option>
                      <option value=&quote;12&quote; >12</option>
                      <option value=&quote;13&quote; >13</option>
                      <option value=&quote;14&quote; >14</option>
                      <option value=&quote;15&quote; >15</option>
                      <option value=&quote;16&quote; >16</option>
                      <option value=&quote;17&quote; >17</option>
                      <option value=&quote;18&quote; >18</option>
                      <option value=&quote;19&quote; >19</option>
                      <option value=&quote;20&quote; >20</option>
                      <option value=&quote;21&quote; >21</option>
                      <option value=&quote;22&quote; >22</option>
                      <option value=&quote;23&quote; >23</option>
                      <option value=&quote;24&quote; >24</option>
                      <option value=&quote;25&quote; >25</option>
                      <option value=&quote;26&quote; >26</option>
                      <option value=&quote;27&quote; >27</option>
                      <option value=&quote;28&quote; >28</option>
                      <option value=&quote;29&quote; >29</option>
                      <option value=&quote;30&quote; >30</option>
                      <option value=&quote;31&quote; selected>31</option>
                    </select></td>
                  <td><select name=&quote;dob_mm&quote; class=&quote;AllFormDD3Chars&quote; id=&quote;today_mm&quote; onkeydown=&quote;typeahead(this,event)&quote;>
                      <option value=&quote;1&quote; >Jan</option>
                      <option value=&quote;2&quote; >Feb</option>
                      <option value=&quote;3&quote; selected>Mar</option>
                      <option value=&quote;4&quote; >Apr</option>
                      <option value=&quote;5&quote; >May</option>
                      <option value=&quote;6&quote; >Jun</option>
                      <option value=&quote;7&quote; >Jul</option>
                      <option value=&quote;8&quote; >Aug</option>
                      <option value=&quote;9&quote; >Sep</option>
                      <option value=&quote;10&quote; >Oct</option>
                      <option value=&quote;11&quote; >Nov</option>
                      <option value=&quote;12&quote; >Dec</option>
                    </select></td>
                  <td><select name=&quote;dob_yyyy&quote; class=&quote;AllFormDD4Chars&quote; id=&quote;today_yyyy&quote; onkeydown=&quote;typeahead(this,event)&quote;>
                      <option value=&quote;2005&quote; >2005</option>
                      <option value=&quote;2006&quote; >2006</option>
                    </select></td>
                </tr>
              </table></td>
            <td width=&quote;5&quote;></td>
            <td class=&quote;bodytext&quote;> <select name=&quote;frn_sfmid&quote; class=&quote;AllForm20Chars&quote;>
                <option value=&quote;&quote;>Please Select </option>
                <option value=&quote;1&quote; > Cash </option>
                <option value=&quote;2&quote; > Check </option>
                <option value=&quote;3&quote; > Credit Card </option>
                <option value=&quote;10&quote; > Manual Adjustment </option>
                <option value=&quote;7&quote; > Post Dated Check </option>
              </select></td>
            <td width=&quote;5&quote;></td>
            <td class=&quote;bodytext&quote;> <input name=&quote;wp_memo&quote; class=&quote;AllForm20Chars&quote; value=&quote;&quote; maxlength=&quote;20&quote;> 
            </td>
            <td width=&quote;5&quote;></td>
            <td class=&quote;bodytext&quote;> <input name=&quote;wp_payment&quote; class=&quote;AllForm6Chars&quote; value=&quote;&quote;> 
            </td>
          </tr>
        </table></td>
    </tr>
    <tr> 
      <td align=&quote;left&quote; class=&quote;foundtext&quote;>&nbsp;</td>
    </tr>
    <tr> 
      <td align=&quote;left&quote; class=&quote;foundtext&quote;>&nbsp;</td>
    </tr>
    <input type=&quote;hidden&quote; name=&quote;theschoolsV&#1111;]&quote; value=&quote;132&quote;>
    <input type=&quote;hidden&quote; name=&quote;schoolfeeV&#1111;]&quote; value=&quote;132&quote;>
    <tr> 
      <td align=&quote;right&quote; class=&quote;foundtext&quote;> <table width=&quote;600&quote; border=&quote;0&quote; cellpadding=&quote;0&quote; cellspacing=&quote;0&quote;>
          <tr bgcolor=&quote;#E2E2E2&quote;> 
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
          </tr>
          <tr class=&quote;bodytext&quote;> 
            <td width=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
            <td width=&quote;5&quote; height=&quote;16&quote; bgcolor=&quote;#FEE68C&quote;>&nbsp;</td>
            <td width=&quote;95&quote; bgcolor=&quote;#FEE68C&quote;>Transaction</td>
            <td width=&quote;5&quote; bgcolor=&quote;#FEE68C&quote;>&nbsp;</td>
            <td width=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
            <td width=&quote;5&quote; bgcolor=&quote;#FEE68C&quote;>&nbsp;</td>
            <td width=&quote;90&quote; align=&quote;left&quote; bgcolor=&quote;#FEE68C&quote;>Account Activity</td>
            <td width=&quote;5&quote; bgcolor=&quote;#FEE68C&quote;>&nbsp;</td>
            <td width=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
            <td width=&quote;5&quote; bgcolor=&quote;#FEE68C&quote;>&nbsp;</td>
            <td width=&quote;85&quote; align=&quote;left&quote; bgcolor=&quote;#FEE68C&quote;>Account Status</td>
            <td width=&quote;5&quote; bgcolor=&quote;#FEE68C&quote;>&nbsp;</td>
            <td width=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
            <td width=&quote;5&quote; bgcolor=&quote;#FEE68C&quote;>&nbsp;</td>
            <td width=&quote;60&quote; align=&quote;left&quote; bgcolor=&quote;#FEE68C&quote;>Debit</td>
            <td width=&quote;5&quote; bgcolor=&quote;#FEE68C&quote;>&nbsp;</td>
            <td width=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
            <td width=&quote;5&quote; bgcolor=&quote;#FEE68C&quote;>&nbsp;</td>
            <td width=&quote;60&quote; align=&quote;left&quote; bgcolor=&quote;#FEE68C&quote;>Credit</td>
            <td width=&quote;5&quote; bgcolor=&quote;#FEE68C&quote;>&nbsp;</td>
            <td width=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
            <td width=&quote;5&quote; bgcolor=&quote;#FEE68C&quote;>&nbsp;</td>
            <td width=&quote;60&quote; bgcolor=&quote;#FEE68C&quote;>Balance</td>
            <td width=&quote;5&quote; bgcolor=&quote;#FEE68C&quote;>&nbsp;</td>
            <td width=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
          </tr>
          <tr bgcolor=&quote;#E2E2E2&quote; height=&quote;1&quote;> 
            <td width=&quote;1&quote; height=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td width=&quote;1&quote; height=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td width=&quote;1&quote; height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td width=&quote;1&quote; height=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td width=&quote;1&quote; height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td width=&quote;1&quote; height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td width=&quote;1&quote; height=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
          </tr>
          <tr> 
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; height=&quote;16&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td class=&quote;bodytext&quote;>Gurjit S Pawar</td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td class=&quote;bodytext&quote;>Workshop 5 - (Mar 19 2005 - Mar 19 2005)</td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td class=&quote;bodytext&quote;> Accepted </td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td class=&quote;bodytext&quote;> 200.00 </td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td class=&quote;bodytext&quote;>&nbsp; </td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td align=&quote;right&quote; valign=&quote;middle&quote; class=&quote;bodytext&quote;>200.00 </td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
          </tr>
          <tr bgcolor=&quote;#E2E2E2&quote;> 
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
          </tr>
          <tr> 
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; height=&quote;16&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td class=&quote;bodytext&quote;>Mar 29 2005</td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td class=&quote;bodytext&quote;>paid</td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td class=&quote;bodytext&quote;> Cash </td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td class=&quote;bodytext&quote;>&nbsp; </td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td class=&quote;bodytext&quote;> 10.00 </td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td align=&quote;right&quote; valign=&quote;middle&quote; class=&quote;bodytext&quote;> 190.00 </td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
          </tr>
          <tr bgcolor=&quote;#E2E2E2&quote;> 
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
          </tr>
          <tr> 
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; height=&quote;16&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td align=&quote;right&quote; class=&quote;bodytext&quote;><strong>Total</strong></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td class=&quote;bodytext&quote;>&nbsp;</td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td class=&quote;bodytext&quote;>&nbsp;</td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td class=&quote;bodytext&quote;>&nbsp;</td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td class=&quote;bodytext&quote;>&nbsp;</td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td align=&quote;right&quote; valign=&quote;middle&quote; class=&quote;bodytext&quote;>190.00 </td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
          </tr>
          <tr bgcolor=&quote;#E2E2E2&quote;> 
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
          </tr>
        </table></td>
    </tr>
    <tr> 
      <td height=&quote;10&quote;></td>
    </tr>
    <input type=&quote;hidden&quote; name=&quote;theamountdue&#1111;]&quote; value=&quote;190&quote;>
    <tr> 
      <td align=&quote;left&quote; class=&quote;foundtext&quote;><table border=&quote;0&quote; align=&quote;right&quote; cellpadding=&quote;0&quote; cellspacing=&quote;0&quote;>
          <tr> 
            <td class=&quote;bodytext&quote;><strong>Total to Apply</strong></td>
            <td width=&quote;5&quote;></td>
            <td><input name=&quote;tot_apply&#1111;]&quote; type=&quote;text&quote; class=&quote;AllForm7CharsRight&quote;></td>
          </tr>
        </table></td>
    </tr>
    <tr> 
      <td align=&quote;left&quote; class=&quote;foundtext&quote;> </td>
    </tr>
    <tr> 
      <td align=&quote;left&quote; class=&quote;foundtext&quote;>&nbsp;</td>
    </tr>
    <input type=&quote;hidden&quote; name=&quote;theschoolsV&#1111;]&quote; value=&quote;131&quote;>
    <input type=&quote;hidden&quote; name=&quote;schoolfeeV&#1111;]&quote; value=&quote;131&quote;>
    <tr> 
      <td align=&quote;right&quote; class=&quote;foundtext&quote;> <table width=&quote;600&quote; border=&quote;0&quote; cellpadding=&quote;0&quote; cellspacing=&quote;0&quote;>
          <tr bgcolor=&quote;#E2E2E2&quote;> 
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
          </tr>
          <tr class=&quote;bodytext&quote;> 
            <td width=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
            <td width=&quote;5&quote; height=&quote;16&quote; bgcolor=&quote;#FEE68C&quote;>&nbsp;</td>
            <td width=&quote;95&quote; bgcolor=&quote;#FEE68C&quote;>Transaction</td>
            <td width=&quote;5&quote; bgcolor=&quote;#FEE68C&quote;>&nbsp;</td>
            <td width=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
            <td width=&quote;5&quote; bgcolor=&quote;#FEE68C&quote;>&nbsp;</td>
            <td width=&quote;90&quote; align=&quote;left&quote; bgcolor=&quote;#FEE68C&quote;>Account Activity</td>
            <td width=&quote;5&quote; bgcolor=&quote;#FEE68C&quote;>&nbsp;</td>
            <td width=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
            <td width=&quote;5&quote; bgcolor=&quote;#FEE68C&quote;>&nbsp;</td>
            <td width=&quote;85&quote; align=&quote;left&quote; bgcolor=&quote;#FEE68C&quote;>Account Status</td>
            <td width=&quote;5&quote; bgcolor=&quote;#FEE68C&quote;>&nbsp;</td>
            <td width=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
            <td width=&quote;5&quote; bgcolor=&quote;#FEE68C&quote;>&nbsp;</td>
            <td width=&quote;60&quote; align=&quote;left&quote; bgcolor=&quote;#FEE68C&quote;>Debit</td>
            <td width=&quote;5&quote; bgcolor=&quote;#FEE68C&quote;>&nbsp;</td>
            <td width=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
            <td width=&quote;5&quote; bgcolor=&quote;#FEE68C&quote;>&nbsp;</td>
            <td width=&quote;60&quote; align=&quote;left&quote; bgcolor=&quote;#FEE68C&quote;>Credit</td>
            <td width=&quote;5&quote; bgcolor=&quote;#FEE68C&quote;>&nbsp;</td>
            <td width=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
            <td width=&quote;5&quote; bgcolor=&quote;#FEE68C&quote;>&nbsp;</td>
            <td width=&quote;60&quote; bgcolor=&quote;#FEE68C&quote;>Balance</td>
            <td width=&quote;5&quote; bgcolor=&quote;#FEE68C&quote;>&nbsp;</td>
            <td width=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
          </tr>
          <tr bgcolor=&quote;#E2E2E2&quote; height=&quote;1&quote;> 
            <td width=&quote;1&quote; height=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td width=&quote;1&quote; height=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td width=&quote;1&quote; height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td width=&quote;1&quote; height=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td width=&quote;1&quote; height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td width=&quote;1&quote; height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td width=&quote;1&quote; height=&quote;1&quote; bgcolor=&quote;#E2E2E2&quote;></td>
          </tr>
          <tr> 
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; height=&quote;16&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td class=&quote;bodytext&quote;>Gurjit S Pawar</td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td class=&quote;bodytext&quote;>Saturday Workshop - (Mar 26 2005 - Mar 27 2005)</td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td class=&quote;bodytext&quote;> Accepted </td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td class=&quote;bodytext&quote;> 100.00 </td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td class=&quote;bodytext&quote;>&nbsp; </td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td align=&quote;right&quote; valign=&quote;middle&quote; class=&quote;bodytext&quote;>100.00 </td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
          </tr>
          <tr bgcolor=&quote;#E2E2E2&quote;> 
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
          </tr>
          <tr> 
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; height=&quote;16&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td align=&quote;right&quote; class=&quote;bodytext&quote;><strong>Total</strong></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td class=&quote;bodytext&quote;>&nbsp;</td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td class=&quote;bodytext&quote;>&nbsp;</td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td class=&quote;bodytext&quote;>&nbsp;</td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td class=&quote;bodytext&quote;>&nbsp;</td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td align=&quote;right&quote; valign=&quote;middle&quote; class=&quote;bodytext&quote;>100.00 </td>
            <td width=&quote;5&quote; class=&quote;bodytext&quote;>&nbsp;</td>
            <td bgcolor=&quote;#E2E2E2&quote; width=&quote;1&quote;></td>
          </tr>
          <tr bgcolor=&quote;#E2E2E2&quote;> 
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
            <td height=&quote;1&quote;></td>
          </tr>
        </table></td>
    </tr>
    <tr> 
      <td height=&quote;10&quote;></td>
    </tr>
    <input type=&quote;hidden&quote; name=&quote;theamountdue&#1111;]&quote; value=&quote;100&quote;>
    <tr> 
      <td align=&quote;left&quote; class=&quote;foundtext&quote;><table border=&quote;0&quote; align=&quote;right&quote; cellpadding=&quote;0&quote; cellspacing=&quote;0&quote;>
          <tr> 
            <td class=&quote;bodytext&quote;><strong>Total to Apply</strong></td>
            <td width=&quote;5&quote;></td>
            <td><input name=&quote;tot_apply&#1111;]&quote; type=&quote;text&quote; class=&quote;AllForm7CharsRight&quote;></td>
          </tr>
        </table></td>
    </tr>
    <tr> 
      <td align=&quote;left&quote; class=&quote;foundtext&quote;> </td>
    </tr>
   
    <tr> 
      <td align=&quote;left&quote; class=&quote;foundtext&quote;> </td>
    </tr>
    <tr> 
      <td align=&quote;left&quote; class=&quote;foundtext&quote;>&nbsp;</td>
    </tr>
    <tr> 
      <td align=&quote;center&quote; class=&quote;foundtext&quote;> <input name=&quote;add_payment&quote; type=&quote;submit&quote; class=&quote;AllFormButton&quote; id=&quote;add_payment&quote; value=&quote;Add Payment&quote;> 
      </td>
    </tr>
  </form>
  <tr> 
    <td align=&quote;left&quote; class=&quote;foundtext&quote;>&nbsp;</td>
  </tr>
</table>
</body>
</html>
<script>

<!-- Begin
var ie4 = (document.all) ? true : false;
var ns4 = (document.layers) ? true : false;
var ns6 = (document.getElementById && !document.all) ? true : false;
function hidelayer(lay) {
if (ie4) {document.all&#1111;lay].style.visibility = &quote;hidden&quote;;}
if (ns4) {document.layers&#1111;lay].visibility = &quote;hide&quote;;}
if (ns6) {document.getElementById(&#1111;lay]).style.display = &quote;none&quote;;}
}
function showlayer(lay) {
if (ie4) {document.all&#1111;lay].style.visibility = &quote;visible&quote;;}
if (ns4) {document.layers&#1111;lay].visibility = &quote;show&quote;;}
if (ns6) {document.getElementById(&#1111;lay]).style.display = &quote;block&quote;;}
}
function writetolayer(lay,txt) {
if (ie4) {
document.all&#1111;lay].innerHTML = txt;
}
if (ns4) {
document&#1111;lay].document.write(txt);
document&#1111;lay].document.close();
}
if (ns6) {
over = document.getElementById(&#1111;lay]);
range = document.createRange();
range.setStartBefore(over);
domfrag = range.createContextualFragment(txt);
while (over.hasChildNodes()) {
over.removeChild(over.lastChild);
}
over.appendChild(domfrag);
   }
}
//  End -->

writetolayer('balancehere','860.00');
</script>
Last edited by gurjit on Thu Mar 31, 2005 8:09 am, edited 6 times in total.
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

o_O WTF... post your Code in such form that it is readable...
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

gurjit, start posting code correctly, read the posting code guidelines. :evil:
User avatar
gurjit
Forum Contributor
Posts: 314
Joined: Thu May 15, 2003 11:53 am
Location: UK

Post by gurjit »

the guidelines are not clear on how to post html code, all the examples show how to post php code.

I tried many methods to display the code properly.

I can view this code ok on my screen.
Post Reply