本文整理匯總了PHP中Cabinet::GetCabRowSelectList方法的典型用法代碼示例。如果您正苦於以下問題:PHP Cabinet::GetCabRowSelectList方法的具體用法?PHP Cabinet::GetCabRowSelectList怎麽用?PHP Cabinet::GetCabRowSelectList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Cabinet
的用法示例。
在下文中一共展示了Cabinet::GetCabRowSelectList方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Cabinet
require_once 'db.inc.php';
require_once 'facilities.inc.php';
$cab = new Cabinet();
$dept = new Department();
$taginsert = "";
$status = "";
// AJAX Requests
//Zone Lists
if (isset($_POST['zonelist'])) {
$cab->DataCenterID = $_POST['zonelist'];
echo $cab->GetZoneSelectList();
exit;
}
if (isset($_POST['rowlist'])) {
$cab->ZoneID = $_POST['rowlist'];
echo $cab->GetCabRowSelectList();
exit;
}
//Row Lists
// END - AJAX Requests
$write = $person->WriteAccess ? true : false;
if (isset($_REQUEST['cabinetid'])) {
$cab->CabinetID = isset($_POST['cabinetid']) ? $_POST['cabinetid'] : $_GET['cabinetid'];
$cab->GetCabinet();
$write = $person->canWrite($cab->AssignedTo) ? true : $write;
}
// If you're deleting the cabinet, no need to pull in the rest of the information, so get it out of the way
// Only a site administrator can create or delete a cabinet
if (isset($_POST["delete"]) && $_POST["delete"] == "yes" && $person->SiteAdmin) {
$cab->DeleteCabinet();
$status['code'] = 200;