当前位置: 首页>>代码示例>>PHP>>正文


PHP DataCenter::GetDataCenterbyID方法代码示例

本文整理汇总了PHP中DataCenter::GetDataCenterbyID方法的典型用法代码示例。如果您正苦于以下问题:PHP DataCenter::GetDataCenterbyID方法的具体用法?PHP DataCenter::GetDataCenterbyID怎么用?PHP DataCenter::GetDataCenterbyID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DataCenter的用法示例。


在下文中一共展示了DataCenter::GetDataCenterbyID方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: BuildCabinet

            } else {
                $side = 'front';
            }
        } else {
            if ($frontedge == $cabinet->FrontEdge || $frontedge != $cabinet->FrontEdge) {
                $side = 'front';
            } else {
                $side = 'rear';
            }
        }
    }
    $body .= BuildCabinet($cabinet->CabinetID, $side);
}
$dcID = $cabinets[0]->DataCenterID;
$dc->DataCenterID = $dcID;
$dc->GetDataCenterbyID();
foreach (Department::GetDepartmentListIndexedbyID() as $deptid => $d) {
    if ($d->DeptColor != "#FFFFFF") {
        // If head is empty then we don't have any custom colors defined above so add a style container for these
        $head = $head == "" ? "\t\t<style type=\"text/css\">\n" : $head;
        $head .= "\t\t\t.dept{$deptid} {background-color:{$d->DeptColor};}\n";
        $legend .= "\t\t<div class=\"legenditem\"><span class=\"border colorbox dept{$deptid}\"></span> - <span>{$d->Name}</span></div>\n";
    }
}
// If $head isn't empty then we must have added some style information so close the tag up.
if ($head != "") {
    $head .= '		</style>';
}
$title = $cabrow->Name != '' ? __("Row") . " {$cabrow->Name}" . (isset($_GET["rear"]) ? "(" . __("Rear") . ")" : "") . " :: " . count($cabinets) . " " . __("Cabinets") . " :: {$dc->Name}" : __("Facilities Cabinet Maintenance");
?>
<!doctype html>
开发者ID:mnibbelink,项目名称:openDCIM,代码行数:31,代码来源:rowview.php

示例2: list

        $zone->MapY1 = $_POST["y1"];
        $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>';
    }
开发者ID:paragm,项目名称:openDCIM,代码行数:31,代码来源:zone.php


注:本文中的DataCenter::GetDataCenterbyID方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。