📄 order.php
字号:
<?/* $Id: order.php 4322 2006-09-04 08:49:33Z shacka $ */include('config.php');// Validate arguments and create new order// ...$objPrice = array( "Suite Single Server" => 399, "Suite Domain Wide" => 2400, "Suite Unlimited" => 3700, "Suite Library" => 4800);$iPriceEach = 0;if (isset($_POST["pLicenseType"]) && isset($objPrice[$_POST["pLicenseType"]])) { $iPriceEach = $objPrice[$_POST["pLicenseType"]];}$iPriceTotal = $iPriceEach;if (isset($_POST["pNumberLicenses"])) { $iNumberLicenses = $_POST["pNumberLicenses"] * 1; if ($iNumberLicenses > 1) { $iPriceTotal *= $iNumberLicenses; }}// If order was created successfully$arrResponse = array( "success" => true, "callbackArgs" => array( "orderNumber" => mt_rand(), "priceEach" => $iPriceEach . ".00", "priceTotal" => $iPriceTotal . ".00" ));/*// If error occured$arrResponse = array( "success" => false, "generalError" => "Validation errors", "fieldErrors" => array( "pWebsite" => "This Web Site is already registered", "uEmail" => "This Email is already registered" ));*/// Return responseecho $objJsonConverter->encode($arrResponse);?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -