本文整理匯總了PHP中Cabinet::UpdateCabinet方法的典型用法代碼示例。如果您正苦於以下問題:PHP Cabinet::UpdateCabinet方法的具體用法?PHP Cabinet::UpdateCabinet怎麽用?PHP Cabinet::UpdateCabinet使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Cabinet
的用法示例。
在下文中一共展示了Cabinet::UpdateCabinet方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: header
header("Location: " . redirect());
exit;
}
$dc = new DataCenter();
$cab = new Cabinet();
$cab->CabinetID = $_REQUEST["cabinetid"];
$cab->GetCabinet();
$dc->DataCenterID = $cab->DataCenterID;
$dc->GetDataCenter();
if (isset($_REQUEST["action"]) && $_REQUEST["action"] == "Submit") {
$cab->MapX1 = intval($_REQUEST["x1"]);
$cab->MapX2 = intval($_REQUEST["x2"]);
$cab->MapY1 = intval($_REQUEST["y1"]);
$cab->MapY2 = intval($_REQUEST["y2"]);
$cab->FrontEdge = $_REQUEST["frontedge"];
$cab->UpdateCabinet();
$url = redirect("cabnavigator.php?cabinetid={$cab->CabinetID}");
header("Location: {$url}");
}
$height = 0;
$width = 0;
if (strlen($dc->DrawingFileName) > 0) {
$mapfile = "drawings/{$dc->DrawingFileName}";
if (file_exists($mapfile)) {
list($width, $height, $type, $attr) = getimagesize($mapfile);
// There is a bug in the excanvas shim that can set the width of the canvas to 10x the width of the image
$ie8fix = '
<script type="text/javascript">
function uselessie(){
document.getElementById(\'mapCanvas\').className = "mapCanvasiefix";
}