Changeset 117
- Timestamp:
- 11/10/06 09:52:55 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/com_mls_events/barcodes/admin.mls_events.html.php
r116 r117 1123 1123 $l->setBlock("checkin"); 1124 1124 ?> 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> 1129 1141 </tr> 1130 1142 </table> … … 1174 1186 <tr> 1175 1187 <td align="right" valign="top"> </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> 1177 1189 </tr> 1178 1190 </table> … … 1198 1210 <?php 1199 1211 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"; 1201 1213 } 1202 1214 ?> branches/com_mls_events/barcodes/lang/english.php
r116 r117 280 280 "account_balance" => "Accout Balance", 281 281 "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."); 283 284 284 285