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


PHP ConsoleOption::select方法代码示例

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


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

示例1: checkManageAllEvents

 public function checkManageAllEvents()
 {
     $this->blnManageAllEvents = false;
     if (isset($_SESSION['btUsername']) && isset($_SESSION['btPassword'])) {
         $member = new Member($this->MySQL);
         $consoleObj = new ConsoleOption($this->MySQL);
         $manageAllEventsCID = $consoleObj->findConsoleIDByName("Manage All Events");
         if ($member->select($_SESSION['btUsername']) && $member->authorizeLogin($_SESSION['btPassword'])) {
             $consoleObj->select($manageAllEventsCID);
             $this->blnManageAllEvents = $member->hasAccess($consoleObj);
         }
     }
     return $this->blnManageAllEvents;
 }
开发者ID:nsystem1,项目名称:clanscripts,代码行数:14,代码来源:event.php

示例2: Rank

 if ($member->authorizeLogin($_SESSION['btPassword'])) {
     $LOGIN_FAIL = false;
     $memberInfo = $member->get_info();
     $memberRankID = $memberInfo['rank_id'];
     $memberRank = new Rank($mysqli);
     $memberRank->select($memberRankID);
     $rankPrivileges = $memberRank->get_privileges();
     $strPrivileges = implode(",", $rankPrivileges);
     $result = $mysqli->query("SELECT * FROM " . $mysqli->get_tablePrefix() . "consolecategory ORDER BY ordernum");
     while ($row = $result->fetch_assoc()) {
         $arrConsoleCats[] = $row['consolecategory_id'];
     }
     $arrFullySortedConsole = array();
     $consoleObj = new ConsoleOption($mysqli);
     foreach ($rankPrivileges as $consoleoption) {
         $consoleObj->select($consoleoption);
         $consoleInfo = $consoleObj->get_info();
         $sortNum = array_search($consoleInfo['consolecategory_id'], $arrConsoleCats);
         $arrFullySortedConsole[$sortNum][] = $consoleoption;
     }
     $consoleCatObj = new basic($mysqli, "consolecategory", "consolecategory_id");
     foreach ($arrConsoleCats as $key => $categoryID) {
         $consoleCatObj->select($categoryID);
         $consoleCatInfo = $consoleCatObj->get_info();
         echo "<b>" . $consoleCatInfo['name'] . "</b>";
         echo "<br>";
         $arrConsoleOptions = $arrFullySortedConsole[$key];
         foreach ($arrConsoleOptions as $consoleOptionID) {
             $consoleObj->select($consoleOptionID);
             $consoleInfo = $consoleObj->get_info();
             echo " - " . $consoleInfo['pagetitle'] . "<br>";
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:main.php

示例3: ConsoleOption

 *
 * Author: Bluethrust Web Development
 * E-mail: support@bluethrust.com
 * Website: http://www.bluethrust.com
 *
 * License: http://www.bluethrust.com/license.php
 *
 */
include_once "../../../_setup.php";
include_once "../../../classes/member.php";
include_once "../../../classes/rank.php";
include_once "../../../classes/squad.php";
// Start Page
$consoleObj = new ConsoleOption($mysqli);
$cID = $consoleObj->findConsoleIDByName("View Your Squads");
$consoleObj->select($cID);
$consoleInfo = $consoleObj->get_info_filtered();
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$arrSquadPrivileges = $squadObj->arrSquadPrivileges;
$squadObj = new Squad($mysqli);
$squadAppObj = new Basic($mysqli, "squadapps", "squadapp_id");
// Check Login
$LOGIN_FAIL = true;
if ($member->authorizeLogin($_SESSION['btPassword']) && $member->hasAccess($consoleObj)) {
    $LOGIN_FAIL = false;
    $memberInfo = $member->get_info_filtered();
    if ($squadObj->select($_POST['sID']) && $squadObj->memberHasAccess($memberInfo['member_id'], "acceptapps") && $squadAppObj->select($_POST['saID'])) {
        $squadInfo = $squadObj->get_info_filtered();
        $squadAppInfo = $squadAppObj->get_info();
        $squadRankList = $squadObj->getRankList();
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:appdecision.php

示例4: Member

 * E-mail: support@bluethrust.com
 * Website: http://www.bluethrust.com
 *
 * License: http://www.bluethrust.com/license.php
 *
 */
if (!defined("LOGGED_IN") || !LOGGED_IN) {
    $setupManageListArgs = json_decode($_POST['listArgs'], true);
    include "../_setup.php";
    include_once "../classes/member.php";
    include_once "../classes/rank.php";
    include_once "../classes/consoleoption.php";
    $member = new Member($mysqli);
    $member->select($_SESSION['btUsername']);
    $consoleObj = new ConsoleOption($mysqli);
    if (!$consoleObj->select($setupManageListArgs['console_id'])) {
        exit;
    }
    if (!$member->authorizeLogin($_SESSION['btPassword']) || !$member->hasAccess($consoleObj)) {
        exit;
    }
    $actionsWidth = count($setupManageListArgs['actions']) * 6;
    $titleWidth = 100 - $actionsWidth;
}
echo "\n\t\n\t\t<table class='formTable' style='border-spacing: 0px; margin-top: 0px'>\n\t";
$counter = 0;
foreach ($setupManageListArgs['items'] as $itemInfo) {
    if ($itemInfo['type'] == "listitem") {
        if ($counter == 1) {
            $addCSS = " alternateBGColor";
            $counter = 0;
开发者ID:bluethrust,项目名称:clanscriptsv4,代码行数:31,代码来源:console.managelist.list.php

示例5: ConsoleOption

 * E-mail: support@bluethrust.com
 * Website: http://www.bluethrust.com
 *
 * License: http://www.bluethrust.com/license.php
 *
 */
if (!isset($member) || !isset($squadObj) || substr($_SERVER['PHP_SELF'], -strlen("managesquad.php")) != "managesquad.php") {
    exit;
} else {
    // This is a little repeatative, but for security.
    $memberInfo = $member->get_info();
    $consoleObj->select($cID);
    $squadObj->select($sID);
    $manageAllSquadsCID = $consoleObj->findConsoleIDByName("Manage All Squads");
    $consoleAllSquads = new ConsoleOption($mysqli);
    $consoleAllSquads->select($manageAllSquadsCID);
    if (!$member->hasAccess($consoleObj) || $squadInfo['member_id'] != $memberInfo['member_id'] && !$member->hasAccess($consoleAllSquads)) {
        exit;
    }
}
echo "\n\n<script type='text/javascript'>\n\$(document).ready(function() {\n\$('#breadCrumbTitle').html(\"Close Squad\");\n\$('#breadCrumb').html(\"<a href='" . $MAIN_ROOT . "'>Home</a> > <a href='" . $MAIN_ROOT . "members'>My Account</a> > <a href='" . $MAIN_ROOT . "members/console.php?cID=" . $cID . "&select=" . $squadInfo['squad_id'] . "'>" . $consoleTitle . "</a> > <b>" . $squadInfo['name'] . ":</b> Close Squad\");\n});\n</script>\n";
$dispError = "";
$countErrors = 0;
$squadMemberList = $squadObj->getMemberListSorted();
if ($_POST['submitted']) {
    if ($squadObj->delete()) {
        $dispMessage = "Successfully closed squad: <b>" . $squadInfo['name'] . "</b>";
        $dispFounderName = $member->getMemberLink();
        foreach ($squadMemberList as $memberID) {
            if ($memberID != $squadInfo['member_id']) {
                $member->select($memberID);
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:closesquad.php

示例6: ConsoleOption

define("SHOW_MANAGERLIST", true);
include "include/managerlist.php";
?>
			</div>
		</div>
		<div class='mttRightColumn'>
			<div class='dottedLine' style='padding-bottom: 3px'><b>Assign Managers:</b></div>
			<p><b>Enter Username:</b></p>
			<input type='text' class='textBox' id='newManager'>
			<p><i>- OR -</i></p>
			<p><b>Select from player list:</b></p>
			<select id='newManagerSelect' class='textBox'>
				<option value=''>Select</option>
				<?php 
$tournamentConsoleCheck = new ConsoleOption($mysqli);
$tournamentConsoleCheck->select($cID);
$result = $mysqli->query("SELECT " . $dbprefix . "tournamentplayers.member_id FROM " . $dbprefix . "tournamentplayers, " . $dbprefix . "members, " . $dbprefix . "ranks WHERE " . $dbprefix . "members.member_id = " . $dbprefix . "tournamentplayers.member_id AND " . $dbprefix . "members.rank_id = " . $dbprefix . "ranks.rank_id AND " . $dbprefix . "tournamentplayers.tournament_id = '" . $tID . "' AND " . $dbprefix . "tournamentplayers.member_id != '0' ORDER BY " . $dbprefix . "ranks.ordernum DESC");
while ($row = $result->fetch_assoc()) {
    $member->select($row['member_id']);
    if ($member->hasAccess($tournamentConsoleCheck)) {
        echo "<option value='" . $row['member_id'] . "'>" . $member->getMemberLink() . "</option>";
    }
}
$member->select($memberInfo['member_id']);
?>
			</select>
			<br><br>
			<p align='center'>
				<input type='button' class='submitButton' value='Add Manager' id='btnAddManager'>
				
			</p>
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:setmanagers.php

示例7: Member

}
include_once $prevFolder . "_setup.php";
// Classes needed for console.php
include_once $prevFolder . "classes/member.php";
include_once $prevFolder . "classes/rank.php";
include_once $prevFolder . "classes/rankcategory.php";
include_once $prevFolder . "classes/consoleoption.php";
$member = new Member($mysqli);
$checkMember = $member->select($_SESSION['btUsername']);
if ($checkMember) {
    if ($member->authorizeLogin($_SESSION['btPassword'])) {
        $cOptObj = new ConsoleOption($mysqli);
        if (!isset($_GET['cID'])) {
            $_GET['cID'] = $cOptObj->findConsoleIDByName("Manage Ranks");
        }
        $cOptObj->select($_GET['cID']);
        $intAddNewRankCID = $cOptObj->findConsoleIDByName("Add New Rank");
        $memberInfo = $member->get_info();
        if ($member->hasAccess($cOptObj)) {
            echo "\n\t\t\t<script type='text/javascript'>\n\t\t\t\n\t\t\t\$(document).ready(function() {\n\t\t\t\t\$('#breadCrumb').html(\"<a href='" . $MAIN_ROOT . "'>Home</a> > <a href='" . $MAIN_ROOT . "members'>My Account</a> > Manage Ranks\");\n\t\t\t});\n\t\t\t\n\t\t\t</script>\n\t\t\t";
            $cOptObj = new ConsoleOption($mysqli);
            $intAddNewRankCID = $cOptObj->findConsoleIDByName("Add New Rank");
            $x = 0;
            $counter = 0;
            $result = $mysqli->query("SELECT * FROM " . $dbprefix . "ranks WHERE rank_id != '1' ORDER BY ordernum DESC");
            $dispRanks = "";
            while ($row = $result->fetch_assoc()) {
                if ($counter == 1) {
                    $addCSS = " alternateBGColor";
                    $counter = 0;
                } else {
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:main.php

示例8: while

 $rankOptions = "";
 while ($arrConsoleOptions = $consoleOptions->fetch_assoc()) {
     $tempCat = $arrConsoleOptions['consolecategory_id'];
     $arrFormatOptions[$tempCat][] = $arrConsoleOptions['console_id'];
 }
 $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 = "";
                 }
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:edit.php

示例9: ConsoleOption

 *
 */
// Config File
$prevFolder = "../";
include $prevFolder . "_setup.php";
include_once $prevFolder . "classes/member.php";
include_once $prevFolder . "classes/poll.php";
$consoleObj = new ConsoleOption($mysqli);
$pollObj = new Poll($mysqli);
$member = new Member($mysqli);
if (!$pollObj->select($_GET['pID'])) {
    echo "\n\t\t<script type='text/javascript'>window.location = '" . $MAIN_ROOT . "';</script>\n\t";
    exit;
}
$viewPollResultsCID = $consoleObj->findConsoleIDByName("View Poll Results");
$consoleObj->select($viewPollResultsCID);
$pollInfo = $pollObj->get_info_filtered();
$member->select($_SESSION['btUsername']);
$blnMemberVoted = false;
if ($member->authorizeLogin($_SESSION['btPassword']) && $pollObj->hasVoted($member->get_info("member_id"))) {
    $blnMemberVoted = true;
}
if ($member->authorizeLogin($_SESSION['btPassword'])) {
    $memberInfo = $member->get_info_filtered();
}
$blnShowResults = false;
if ($pollObj->totalVotes() > 0 && ($member->hasAccess($consoleObj) || $pollInfo['member_id'] == $memberInfo['member_id'] || $pollInfo['resultvisibility'] == "open" || $pollInfo['resultvisibility'] == "votedonly" && $blnMemberVoted || $pollInfo['resultvisibility'] == "pollend" && $pollInfo['pollend'] < time())) {
    $blnShowResults = true;
}
if ($blnShowResults) {
    $arrResults = array("['Option', 'Votes']");
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:view.php

示例10: ProfileCategory

        exit;
    }
}
$cID = $_GET['cID'];
$profileCategoryObj = new ProfileCategory($mysqli);
$profileOptionObj = new ProfileOption($mysqli);
$gameObj = new Game($mysqli);
$arrGames = $gameObj->getGameList();
$consoleCatSettingObj = new Basic($mysqli, "consolecategory", "consolecategory_id");
$arrSocialMediaInfo = $member->objSocial->get_entries(array(), "ordernum DESC");
// Setup Default Console Category Select Options
$arrPrivileges = $memberRank->get_privileges();
$arrConsoleCats = array();
$consoleSettingObj = new ConsoleOption($mysqli);
foreach ($arrPrivileges as $consoleOptionID) {
    $consoleSettingObj->select($consoleOptionID);
    $consoleCatID = $consoleSettingObj->get_info("consolecategory_id");
    if (!in_array($consoleCatID, $arrConsoleCats)) {
        $consoleCatSettingObj->select($consoleCatID);
        $consoleCatOrder = $consoleCatSettingObj->get_info("ordernum");
        $arrConsoleCats[$consoleCatOrder] = $consoleCatID;
    }
}
krsort($arrConsoleCats);
foreach ($arrConsoleCats as $value) {
    $consoleCatSettingObj->select($value);
    $defaultConsoleOptions[$value] = $consoleCatSettingObj->get_info_filtered("name");
}
// Setup Notification Settings Options
$notificationOptions = array("Show notification with sound", "Show notification without sound", "Don't show notifications");
// Setup Forum Settings Options
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:editprofile.php

示例11: ConsoleOption

 * Author: Bluethrust Web Development
 * E-mail: support@bluethrust.com
 * Website: http://www.bluethrust.com
 *
 * License: http://www.bluethrust.com/license.php
 *
 */
include_once "../../../../_setup.php";
include_once "../../../../classes/member.php";
include_once "../../../../classes/rank.php";
include_once "../../../../classes/news.php";
include_once "../../../../classes/shoutbox.php";
// Start Page
$consoleObj = new ConsoleOption($mysqli);
$cID = $consoleObj->findConsoleIDByName("Post in Shoutbox");
$consoleObj->select($cID);
$consoleInfo = $consoleObj->get_info_filtered();
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$newsObj = new News($mysqli);
// Check Login
$LOGIN_FAIL = true;
$shoutboxObj = new Shoutbox($mysqli, "news", "news_id");
$shoutboxObj->strDivID = $_POST['divID'];
$shoutboxObj->intDispWidth = 140;
$shoutboxObj->intDispHeight = 300;
$shoutboxObj->blnUpdateShoutbox = true;
if ($member->authorizeLogin($_SESSION['btPassword'])) {
    $manageNewsCID = $consoleObj->findConsoleIDByName("Manage News");
    $consoleObj->select($manageNewsCID);
    if ($member->hasAccess($consoleObj)) {
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:reloadshoutbox.php

示例12: array

     if ($checkConsole === false) {
         $tempCatID = $arrConsoleCategoryIDs[$arrConsoleOptionInfo[$key]['category']];
         $consoleOptionObj->setCategoryKeyValue($tempCatID);
         $consoleOptionObj->resortOrder();
         $highestSortNum = $consoleOptionObj->getHighestSortNum();
         $newOrderNum = $highestSortNum + 1;
         if ($arrConsoleOptionInfo[$key]['addsep'] == "1") {
             $arrValues = array($tempCatID, "-separator-", "", $newOrderNum, "1", "", "1");
             $consoleOptionObj->addNew($arrColumns, $arrValues);
             $newOrderNum++;
         }
         $arrValues = array($tempCatID, $consoleOptionName, $arrConsoleOptionInfo[$key]['filename'], $newOrderNum, "1", $arrConsoleOptionInfo[$key]['hide'], "");
         $consoleOptionObj->addNew($arrColumns, $arrValues);
         $consoleOptionObj->resortOrder();
     } elseif ($consoleOptionName == "Private Messages" && $checkConsole !== false && $pmCatID != "") {
         $consoleOptionObj->select($checkConsole);
         $consoleOptionObj->update(array("consolecategory_id", "sortnum"), array($pmCatID, 0));
         $consoleOptionObj->resortOrder();
     }
 }
 // Check for valid theme
 $arrValidThemes = array();
 $themeOptions .= "";
 $websiteInfoObj = new WebsiteInfo($mysqli);
 $websiteInfoObj->select(1);
 $themeName = $websiteInfoObj->get_info("theme");
 // Add New Websiteinfo
 $websiteInfoObj->multiUpdate(array("default_timezone", "date_format", "display_date"), array("America/New_York", "l, F j, Y", "1"));
 $verifyTheme = file_exists("../themes/" . $themeName . "/themeinfo.xml");
 $_SESSION['btUsername'] = $member->get_info("username");
 $_SESSION['btPassword'] = $member->get_info("password");
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:step3.php

示例13: ConsoleOption

<?php

/*
 * Bluethrust Clan Scripts v4
 * Copyright 2014
 *
 * Author: Bluethrust Web Development
 * E-mail: support@bluethrust.com
 * Website: http://www.bluethrust.com
 *
 * License: http://www.bluethrust.com/license.php
 *
 */
include_once "../../../../_setup.php";
include_once "../../../../classes/member.php";
include_once "../../../../classes/poll.php";
// Start Page
$consoleObj = new ConsoleOption($mysqli);
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$managePollsCID = $consoleObj->findConsoleIDByName("Manage Polls");
$consoleObj->select($managePollsCID);
$pollObj = new Poll($mysqli);
// Check Login
$LOGIN_FAIL = true;
if ($member->authorizeLogin($_SESSION['btPassword']) && $pollObj->select($_POST['pollID']) && $member->hasAccess($consoleObj)) {
    $pollInfo = $pollObj->get_info_filtered();
    $pollObj->delete();
    define("SHOW_POLLLIST", true);
    include "polllist.php";
}
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:delete.php

示例14: Member

 * Copyright 2014
 *
 * Author: Bluethrust Web Development
 * E-mail: support@bluethrust.com
 * Website: http://www.bluethrust.com
 *
 * License: http://www.bluethrust.com/license.php
 *
 */
include_once "../../../../_setup.php";
include_once "../../../../classes/member.php";
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$consoleObj = new ConsoleOption($mysqli);
$diplomacyRequestsCID = $consoleObj->findConsoleIDByName("View Diplomacy Requests");
$consoleObj->select($diplomacyRequestsCID);
$diplomacyRequestObj = new Basic($mysqli, "diplomacy_request", "diplomacyrequest_id");
if ($member->authorizeLogin($_SESSION['btPassword']) && $diplomacyRequestObj->select($_POST['reqID']) && $member->hasAccess($consoleObj)) {
    $diplomacyRequestInfo = $diplomacyRequestObj->get_info_filtered();
    if (isset($_POST['confirmDecline'])) {
        // Send E-mail Confirmation
        $emailTo = $diplomacyRequestInfo['email'];
        $emailFrom = "confirmemail@bluethrust.com";
        $emailSubject = $websiteInfo['clanname'] . " - Diplomacy Request: Declined";
        $emailMessage = "\nHi " . $diplomacyRequestInfo['name'] . ",\n\n\n\t\t\nYour diplomacy request has been declined.\n\n\n-" . $websiteInfo['clanname'];
        //mail($emailTo, $emailSubject, $emailMessage, "From: ".$emailFrom);
        $diplomacyRequestObj->delete();
        include "diplomacyrequests.php";
        $member->logAction("Declined " . $diplomacyRequestInfo['clanname'] . "'s diplomacy request.");
    } else {
        echo "\n\t\t\t<div id='confirmDialogBox' style='display: none'>\n\t\t\t\t<p class='main' align='center'>\n\t\t\t\t\tAre you sure you want to decline <b>" . $diplomacyRequestInfo['clanname'] . "'s</b> diplomacy request?\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t\t<script type='text/javascript'>\n\t\t\n\t\t\t\t\$(document).ready(function() {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\$('#confirmDialogBox').dialog({\n\t\t\t\t\t\n\t\t\t\t\t\ttitle: 'Decline Diplomacy Request',\n\t\t\t\t\t\tmodal: true,\n\t\t\t\t\t\tzIndex: 99999,\n\t\t\t\t\t\twidth: 400,\n\t\t\t\t\t\tshow: 'scale',\n\t\t\t\t\t\tbuttons: {\n\t\t\t\t\t\t\t'Yes': function() {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\$.post('" . $MAIN_ROOT . "members/include/diplomacy/include/declinerequest.php', { reqID: " . $_POST['reqID'] . ", confirmDecline: 1 }, function(data) {\n\t\t\t\t\t\t\t\t\t\$('#diplomacyRequests').fadeOut(250);\n\t\t\t\t\t\t\t\t\t\$('#diplomacyRequests').html(data);\n\t\t\t\t\t\t\t\t\t\$('#diplomacyRequests').fadeIn(250);\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\$(this).dialog('close');\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t'Cancel': function() {\n\t\t\t\t\t\t\t\t\$(this).dialog('close');\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t});\n\t\t\t\n\t\t\t</script>\n\t\t\n\t\t";
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:declinerequest.php

示例15: MenuCategory

    $menuCatObj = new MenuCategory($mysqli);
    if (trim($_SERVER['HTTPS']) == "" || $_SERVER['HTTPS'] == "off") {
        $dispHTTP = "http://";
    } else {
        $dispHTTP = "https://";
    }
    $siteDomain = $_SERVER['SERVER_NAME'];
    try {
        $menuXML = new SimpleXMLElement(BASE_DIRECTORY . "themes/" . $THEME . "/themeinfo.xml", NULL, true);
    } catch (Exception $e) {
        $menuXML = new SimpleXMLElement(BASE_DIRECTORY . "themes/" . $THEME . "/themeinfo.xml", NULL, true);
    }
}
$intAddMenuCatCID = $consoleObj->findConsoleIDByName("Add Menu Category");
$intEditMenuCatCID = $consoleObj->findConsoleIDByName("Manage Menu Categories");
$consoleObj->select($intAddMenuCatCID);
$checkAccess1 = $member->hasAccess($consoleObj);
$consoleObj->select($intEditMenuCatCID);
$checkAccess2 = $member->hasAccess($consoleObj);
if ($member->authorizeLogin($_SESSION['btPassword']) && ($checkAccess1 || $checkAccess2)) {
    if (isset($_POST['section']) && is_numeric($_POST['section'])) {
        $orderoptions = "";
        $selectCatID = "";
        if (!isset($_POST['mcID'])) {
            $_POST['mcID'] = "";
        } else {
            $menuCatObj->select($_POST['mcID']);
            $selectCatID = $menuCatObj->findBeforeAfter();
            $selectCatID = $selectCatID[0];
        }
        $lastCategory = "";
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:menucategorylist.php


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