Changeset 125
- Timestamp:
- 11/14/06 16:15:46 (2 years ago)
- Files:
-
- trunk/com_mls_catering/admin.mls_catering.html.php (modified) (1 diff)
- trunk/com_mls_catering/admin.mls_catering.php (modified) (2 diffs)
- trunk/com_mls_catering/lang/english.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/com_mls_catering/admin.mls_catering.html.php
r118 r125 1248 1248 <td width="80%"><?php echo $lists["search_default"]; ?></td> 1249 1249 </tr> 1250 <tr> 1251 <td width="20%" valign="top" align="right"><?php echo $l->m("automatically_pay"); ?>:</td> 1252 <td width="80%"><input type="checkbox" name="autopay" value="1"<?php if($confarr["autopay"] == 1) { echo " checked"; } ?>/></td> 1253 </tr> 1254 <tr> 1255 <td width="20%" valign="top" align="right"><?php echo $l->m("not_enough_credit"); ?>:</td> 1256 <td width="80%"><?php echo $lists["autopay_action"]; ?></td> 1257 </tr> 1250 1258 </table> 1251 1259 <input type="hidden" name="option" value="<?php echo $option; ?>" /> trunk/com_mls_catering/admin.mls_catering.php
r119 r125 1379 1379 $config .= "\$cnf_mls_catering[\"currency\"] = \"".$_POST["currency"]."\";\n"; 1380 1380 $config .= "\$cnf_mls_catering[\"search_default\"] = \"".$_POST["search_default"]."\";\n"; 1381 if($_POST["autopay"] == 0) { 1382 $config .= "\$cnf_mls_catering[\"autopay\"] = 0;\n"; 1383 } else { 1384 $config .= "\$cnf_mls_catering[\"autopay\"] = 1;\n"; 1385 } 1386 $config .= "\$cnf_mls_catering[\"autopay_action\"] = \"".$_POST["autopay_action"]."\";\n"; 1381 1387 $config .= "?>"; 1382 1388 … … 1404 1410 $lists["search_default"] = mosHTML::selectList($opts,'search_default','class="inputbox"','value','text',$confarr["search_default"]); 1405 1411 1412 /** Autopay action **/ 1413 $opts = array(); 1414 $opts[] = mosHTML::makeOption('warn',$l->m("display_warning")); 1415 $opts[] = mosHTML::makeOption('stop',$l->m("prevent_ordering")); 1416 $lists["autopay_action"] = mosHTML::selectList($opts,'autopay_action','class="inputbox"','value','text',$confarr["autopay_action"]); 1417 1406 1418 HTML_MLS_catering_config::editConfig($confarr, $lists, $option, $act); 1407 1419 } trunk/com_mls_catering/lang/english.php
r118 r125 190 190 "userid" => "User ID", 191 191 "barcode" => "Barcode", 192 "search_default" => "Default focus field on search page"); 192 "search_default" => "Default focus field on search page", 193 "automatically_pay" => "Automatically pay for items ordered in the frontend if user has enough credit", 194 "not_enough_credit" => "If user has not enough credit", 195 "display_warning" => "Display warning only", 196 "prevent_ordering" => "Prevent user from ordering"); 193 197 194 198 ?>