本文整理匯總了PHP中ConsoleOption::hasAccess方法的典型用法代碼示例。如果您正苦於以下問題:PHP ConsoleOption::hasAccess方法的具體用法?PHP ConsoleOption::hasAccess怎麽用?PHP ConsoleOption::hasAccess使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ConsoleOption
的用法示例。
在下文中一共展示了ConsoleOption::hasAccess方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Basic
}
$countConsoleCats = 0;
$consoleJSCode = "";
$consoleCatObj = new Basic($mysqli, "consolecategory", "consolecategory_id");
foreach ($arrFormatOptions as $key => $arrOptions) {
$consoleCatObj->select($key);
$consoleCatInfo = $consoleCatObj->get_info();
if (count($arrOptions) > 0) {
$countConsoleCats++;
echo "<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<u><b>" . $consoleCatInfo['name'] . "</b></u> - <a href='javascript:void(0)' onclick=\"selectAllCheckboxes('category" . $countConsoleCats . "', 1)\">Check All</a> - <a href='javascript:void(0)' onclick=\"selectAllCheckboxes('category" . $countConsoleCats . "', 0)\">Uncheck All</a><br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div id='category" . $countConsoleCats . "'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
foreach ($arrOptions as $consoleOption) {
$consoleObj->select($consoleOption);
$consoleOptionInfo = $consoleObj->get_info();
$consoleJSCode .= "arrConsoleIDs[" . $consoleOptionInfo['console_id'] . "] = \$('#consoleid_" . $consoleOptionInfo['console_id'] . "').attr('checked'); \n\t\t\t\t\t\t\t\t\t";
if ($consoleOptionInfo['pagetitle'] != "-separator-") {
if ($consoleObj->hasAccess($rankInfo['rank_id'])) {
$dispSelected = " checked";
} else {
$dispSelected = "";
}
echo " <input type='checkbox' name='consoleid_" . $consoleOptionInfo['console_id'] . "' value='1'" . $dispSelected . "> " . $consoleOptionInfo['pagetitle'] . "<br>";
} elseif ($consoleOptionInfo['pagetitle'] == "-separator-") {
if ($consoleObj->hasAccess($rankInfo['rank_id'])) {
$dispSelected = " checked";
} else {
$dispSelected = "";
}
$dispSeparator = "<div class='dashedLine' style='width: 250px; margin: 6px 1px; padding: 0px; float: left'></div>";
echo "<div style='float: left'> <input type='checkbox' name='consoleid_" . $consoleOptionInfo['console_id'] . "' value='1'" . $dispSelected . "> </div>" . $dispSeparator;
echo "<div style='clear: both'></div>";
}