Assembla home | Assembla project page
 

Changeset 117

Show
Ignore:
Timestamp:
11/10/06 09:52:55 (2 years ago)
Author:
moensch
Message:

If more than 100 entered in deposit field a warning is displayed.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/com_mls_events/barcodes/admin.mls_events.html.php

    r116 r117  
    11231123                $l->setBlock("checkin"); 
    11241124                ?> 
    1125                 <form action="index2.php" method="post" name="adminForm"> 
    1126                 <table class="adminheading"> 
    1127                 <tr> 
    1128                         <th>myLANsite Events: <?php echo $l->m("checkin"); ?> :: <?php echo $l->m("enter_barcodes"); ?></th> 
     1125                <script> 
     1126                function checkDeposit(varAmount) { 
     1127                        if(varAmount > 100) { 
     1128                                var varRet = confirm('<?=$l->m("deposit_too_high"); ?>'); 
     1129                                if(varRet == true) { 
     1130                                        document.adminForm.submit(); 
     1131                                } 
     1132                        } else { 
     1133                                document.adminForm.submit(); 
     1134                        } 
     1135                } 
     1136                </script> 
     1137                <form action="index2.php" method="post" name="adminForm"> 
     1138                <table class="adminheading"> 
     1139                <tr> 
     1140                        <th>myLANsite Events: <?php echo $l->m("checkin"); ?></th> 
    11291141                </tr> 
    11301142                </table> 
     
    11741186                        <tr> 
    11751187                                <td align="right" valign="top">&nbsp;</td> 
    1176                                 <td><input type="button" class="button" name="submitCodes" onclick="document.adminForm.submit()" value="<?php echo $l->m("save");?>" /></td> 
     1188                                <td><input type="button" class="button" name="submitCodes" onclick="checkDeposit(document.getElementById('deposit').value)" value="<?php echo $l->m("save");?>" /></td> 
    11771189                        </tr> 
    11781190                </table> 
     
    11981210                <?php 
    11991211                for($i = 0; $i < count($barcodes); $i++) { 
    1200                         echo "barcodes[".$i."] = ".(int)$barcodes[$i]->code.";\n"; 
     1212                        echo "barcodes[".$i."] = ".(double)$barcodes[$i]->code.";\n"; 
    12011213                } 
    12021214                ?> 
  • branches/com_mls_events/barcodes/lang/english.php

    r116 r117  
    280280                "account_balance" => "Accout Balance", 
    281281                "payback_balance" => "Payback Balance", 
    282                 "payback_at_checkout" => "Payback at checkout"); 
     282                "payback_at_checkout" => "Payback at checkout", 
     283                "deposit_too_high" => "The deposit is higher than 100. Are you sure? If you click OK, the form will be submitted."); 
    283284 
    284285