本文整理汇总了PHP中Zone::GetZoneList方法的典型用法代码示例。如果您正苦于以下问题:PHP Zone::GetZoneList方法的具体用法?PHP Zone::GetZoneList怎么用?PHP Zone::GetZoneList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zone
的用法示例。
在下文中一共展示了Zone::GetZoneList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
<?php
require_once "db.inc.php";
require_once "facilities.inc.php";
$subheader = __("Rows of Cabinets");
if (!$person->SiteAdmin) {
// No soup for you.
header('Location: ' . redirect());
exit;
}
$cabrow = new CabRow();
$zone = new Zone();
$DC = new DataCenter();
$zoneList = $zone->GetZoneList();
$formpatch = "";
$status = "";
if (isset($_POST['action']) && $_POST['action'] == 'Delete') {
$cabrow->CabRowID = $_POST['cabrowid'];
$cabrow->DeleteCabRow();
header('Location: cabrow.php');
exit;
}
if (isset($_REQUEST["cabrowid"])) {
$cabrow->CabRowID = isset($_POST['cabrowid']) ? $_POST['cabrowid'] : $_GET['cabrowid'];
$cabrow->GetCabRow();
if (isset($_POST["action"]) && ($_POST["action"] == "Create" || $_POST["action"] == "Update")) {
$cabrow->Name = $_POST["name"];
$cabrow->DataCenterID = $_POST["datacenterid"];
$cabrow->ZoneID = $_POST["zoneid"];
if ($_POST["action"] == "Create") {
$cabrow->CreateCabRow();
示例2: list
$zone->MapX2 = $_POST["x2"];
$zone->MapY2 = $_POST["y2"];
$zone->MapZoom = $_POST["mapzoom"];
if ($_POST["action"] == "Create") {
$zone->CreateZone();
} else {
$status = __("Updated");
$zone->UpdateZone();
}
}
$formpatch = "?zoneid={$zone->ZoneID}";
}
$zone->MapZoom = $zone->ZoneID == 0 ? 100 : $zone->MapZoom;
$dc_zone->DataCenterID = $zone->DataCenterID;
$dc_zone->GetDataCenterbyID();
$zoneList = $zone->GetZoneList();
$height = 0;
$width = 0;
if (strlen($dc_zone->DrawingFileName) > 0) {
$mapfile = "drawings/{$dc_zone->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";
}
</script>';
}
}