order.php
来自「zapatec suite 最新版 20070204,非常棒的ajax widg」· PHP 代码 · 共 57 行
PHP
57 行
<?/* $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 + =
减小字号Ctrl + -
显示快捷键?