本文整理汇总了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>";
}