當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ConsoleOption::hasAccess方法代碼示例

本文整理匯總了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 "&nbsp;&nbsp;<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'>&nbsp;&nbsp;<input type='checkbox' name='consoleid_" . $consoleOptionInfo['console_id'] . "' value='1'" . $dispSelected . ">&nbsp;</div>" . $dispSeparator;
                 echo "<div style='clear: both'></div>";
             }
開發者ID:nsystem1,項目名稱:clanscripts,代碼行數:31,代碼來源:edit.php


注:本文中的ConsoleOption::hasAccess方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。