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


PHP Rank::get_info_filtered方法代码示例

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


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

示例1: MAX

$cID = $_GET['cID'];
$dispError = "";
$countErrors = 0;
if ($memberInfo['rank_id'] == 1) {
    $maxOrderNum = $mysqli->query("SELECT MAX(ordernum) FROM " . $dbprefix . "ranks WHERE rank_id != '1'");
    $arrMaxOrderNum = $maxOrderNum->fetch_array(MYSQLI_NUM);
    if ($maxOrderNum->num_rows > 0) {
        $result = $mysqli->query("SELECT rank_id FROM " . $dbprefix . "ranks WHERE ordernum = '" . $arrMaxOrderNum[0] . "'");
        $row = $result->fetch_assoc();
        $rankInfo['promotepower'] = $row['rank_id'];
    }
}
$rankObj = new Rank($mysqli);
if ($_POST['submit']) {
    $rankObj->select($rankInfo['promotepower']);
    $maxRankInfo = $rankObj->get_info_filtered();
    if ($rankInfo['rank_id'] == 1) {
        $maxRankInfo['ordernum'] += 1;
    }
    $arrRanks = array();
    $result = $mysqli->query("SELECT * FROM " . $dbprefix . "ranks WHERE ordernum <= '" . $maxRankInfo['ordernum'] . "' AND rank_id != '1' ORDER BY ordernum DESC");
    while ($row = $result->fetch_assoc()) {
        $arrRanks[] = $row['rank_id'];
        if ($maxRankInfo['ordernum'] > $row['ordernum']) {
            $arrMemRanks[] = $row['rank_id'];
        }
    }
    // Check Member
    if (!$member->select($_POST['member']) || $_POST['member'] == $memberInfo['member_id']) {
        $countErrors++;
        $dispError = "&nbsp;&nbsp;&nbsp;<b>&middot;</b> You selected an invalid member.<br>";
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:setrank.php

示例2: implode

$cID = $consoleObj->findConsoleIDByName("Private Messages");
$consoleObj->select($cID);
if ($member->authorizeLogin($_SESSION['btPassword']) && $member->hasAccess($consoleObj)) {
    $memberInfo = $member->get_info_filtered();
    $searchTerm = $mysqli->real_escape_string($_GET['term']);
    $pmSessionID = $_GET['pmsessionid'];
    $filterMembers = "('')";
    $checkFilterList = implode("", $_SESSION['btComposeList'][$pmSessionID]['member']);
    if (is_numeric($checkFilterList)) {
        $filterMembers = "('" . implode("','", $_SESSION['btComposeList'][$pmSessionID]['member']) . "')";
    }
    $rankObj = new Rank($mysqli);
    $result = $mysqli->query("SELECT " . $dbprefix . "members.*, " . $dbprefix . "ranks.name FROM " . $dbprefix . "members, " . $dbprefix . "ranks WHERE " . $dbprefix . "members.disabled = '0' AND " . $dbprefix . "members.rank_id = " . $dbprefix . "ranks.rank_id AND " . $dbprefix . "members.username LIKE '" . $searchTerm . "%' AND " . $dbprefix . "members.member_id NOT IN " . $filterMembers . " ORDER BY " . $dbprefix . "members.username");
    while ($row = $result->fetch_assoc()) {
        $rankObj->select($row['rank_id']);
        $displayName = $rankObj->get_info_filtered("name") . " " . filterText($row['username']);
        $arrComposeList[] = array("id" => "member_" . $row['member_id'], "value" => $displayName);
    }
    $arrQuery['rankcategory']['query'] = "SELECT * FROM " . $dbprefix . "rankcategory WHERE name LIKE '" . $searchTerm . "%' AND rankcategory_id NOT IN ";
    $arrQuery['rankcategory']['orderby'] = " ORDER BY ordernum DESC";
    $arrQuery['rankcategory']['id'] = "rankcategory_id";
    $arrQuery['rankcategory']['append'] = " - Category";
    $arrQuery['rank']['query'] = "SELECT * FROM " . $dbprefix . "ranks WHERE name LIKE '" . $searchTerm . "%' AND rank_id != '1' AND rank_id NOT IN ";
    $arrQuery['rank']['orderby'] = " ORDER BY ordernum DESC";
    $arrQuery['rank']['id'] = "rank_id";
    $arrQuery['rank']['append'] = " - Rank";
    $arrQuery['squad']['query'] = "SELECT " . $dbprefix . "squads.* FROM " . $dbprefix . "squads, " . $dbprefix . "squads_members WHERE " . $dbprefix . "squads.squad_id = " . $dbprefix . "squads_members.squad_id AND " . $dbprefix . "squads_members.member_id = '" . $memberInfo['member_id'] . "' AND " . $dbprefix . "squads.name LIKE '" . $searchTerm . "%' AND " . $dbprefix . "squads.squad_id NOT IN ";
    $arrQuery['squad']['orderby'] = " ORDER BY " . $dbprefix . "squads.name DESC";
    $arrQuery['squad']['id'] = "squad_id";
    $arrQuery['squad']['append'] = " Members";
    $arrQuery['tournament']['query'] = "SELECT * FROM " . $dbprefix . "tournaments WHERE member_id = '" . $memberInfo['member_id'] . "' AND name LIKE '" . $searchTerm . "%' AND tournament_id NOT IN ";
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:compose_search.php

示例3: elseif

        $counter = 1;
    } else {
        $counter = 0;
    }
    $arrSpecialMenuItems['newmembers'] .= "<div class='dottedLine " . $addCSS . "' style='padding: 5px 5px'>";
    $menuMemberObj->select($row['member_id']);
    $newestMemberInfo = $menuMemberObj->get_info_filtered();
    $checkURL = parse_url($newestMemberInfo['profilepic']);
    if ((!isset($checkURL['scheme']) || $checkURL['scheme'] == "") && $newestMemberInfo['profilepic'] != "") {
        $newestMemberInfo['profilepic'] = $MAIN_ROOT . $newestMemberInfo['profilepic'];
    } elseif ($newestMemberInfo['profilepic'] == "") {
        $newestMemberInfo['profilepic'] = $MAIN_ROOT . "themes/alliancebattle/images/defaultprofile.png";
    }
    $menuMemberRankObj->select($newestMemberInfo['rank_id']);
    $arrSpecialMenuItems['newmembers'] .= "<div style='float: left; width: 43px'><img src='" . $newestMemberInfo['profilepic'] . "' style='width: 40px; height: 53px; border: solid black 1px'></div>";
    $arrSpecialMenuItems['newmembers'] .= "<div style='float: left; padding-left: 8px; width: 85px'><div style='font-size: 12px; overflow: hidden; text-overflow: ellipsis; width: 85px'>" . $menuMemberObj->getMemberLink() . "</div><div class='main' style=\"font-family: 'Fenix', verdana, sans-serif; width: 85px; overflow: hidden; text-overflow: ellipsis\">" . $menuMemberRankObj->get_info_filtered("name") . "</div></div>";
    $arrSpecialMenuItems['newmembers'] .= "<div style='clear: both'></div>";
    $arrSpecialMenuItems['newmembers'] .= "</div>";
}
$arrSpecialMenuItems['newmembers'] .= "<div style='clear: both'></div></div>";
// LATEST FORUM ACTIVITY
$forumActivityObj = new ForumBoard($mysqli);
$arrSpecialMenuItems['forumactivity'] = "<div style='margin-left: 2px; margin-right: 2px; margin-top: 0px; padding-bottom: 10px'>";
$counter = 0;
$postCount = 0;
$result = $mysqli->query("SELECT * FROM " . $dbprefix . "forum_post ORDER BY dateposted DESC");
$arrShownTopics = array();
while ($row = $result->fetch_assoc()) {
    $blnShowPost = false;
    $forumActivityObj->objTopic->select($row['forumtopic_id']);
    $menuTopicInfo = $forumActivityObj->objTopic->get_info_filtered();
开发者ID:bluethrust,项目名称:clanscriptsv4,代码行数:31,代码来源:_menus.php

示例4: filterArray

         } else {
             $rankImgURL = $_POST['rankimageurl'];
         }
     }
 }
 if ($countErrors > 0) {
     $_POST = filterArray($_POST);
     $_POST['submit'] = false;
 } else {
     // EVERYTHING IS OK
     $newRank = new Rank($mysqli);
     $arrColumns = array("rankcategory_id", "name", "description", "imageurl", "ordernum", "autodays", "hiderank", "promotepower", "autodisable", "color", "imagewidth", "imageheight");
     $arrValues = array($_POST['rankcat'], $_POST['rankname'], $_POST['rankdesc'], $rankImgURL, $intNewRankOrderNum, isset($_POST['autodays']) ? $_POST['autodays'] : 0, isset($_POST['hiderank']) ? $_POST['hiderank'] : 0, isset($_POST['promoterank']) ? $_POST['promoterank'] : 0, isset($_POST['autodisable']) ? $_POST['autodisable'] : 0, $_POST['rankcolor'], $_POST['rankimagewidth'], $_POST['rankimageheight']);
     if ($newRank->addNew($arrColumns, $arrValues)) {
         // Added Rank! Now give the rank its privileges
         $newRankInfo = $newRank->get_info_filtered();
         // If maximum rank is set to "(this rank)", set the promotepower to the new rank's rank_id
         if ($_POST['promoterank'] == -1) {
             $newRank->update(array("promotepower"), array($newRankInfo['rank_id']));
         }
         $arrColumns = array("rank_id", "console_id");
         $privObj = new Basic($mysqli, "rank_privileges", "privilege_id");
         $result = $mysqli->query("SELECT * FROM " . $dbprefix . "console ORDER BY sortnum");
         $rankOptions = "";
         while ($row = $result->fetch_assoc()) {
             $strPostVarName = "consoleid_" . $row['console_id'];
             if (isset($_POST[$strPostVarName]) && $_POST[$strPostVarName] == 1) {
                 $arrValues = array($newRankInfo['rank_id'], $row['console_id']);
                 $privObj->addNew($arrColumns, $arrValues);
             }
         }
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:addrank.php

示例5: ConsoleOption

include_once $prevFolder . "classes/member.php";
include_once $prevFolder . "classes/rank.php";
include_once $prevFolder . "classes/rankcategory.php";
include_once $prevFolder . "classes/consoleoption.php";
$cOptObj = new ConsoleOption($mysqli);
$cID = $cOptObj->findConsoleIDByName("Manage Ranks");
$cOptObj->select($cID);
$member = new Member($mysqli);
$checkMember = $member->select($_SESSION['btUsername']);
if ($checkMember) {
    if ($member->authorizeLogin($_SESSION['btPassword'])) {
        $memberInfo = $member->get_info();
        if ($member->hasAccess($cOptObj)) {
            $rank = new Rank($mysqli);
            if ($rank->select($_GET['rID'])) {
                $rankInfo = $rank->get_info_filtered();
                echo "\n\t\t\t\t\n\t\t\t\t<script type='text/javascript'>\n\t\t\t\t\t\$(document).ready(function() {\n\t\t\t\t\t\t\$('#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 . "'>Manage Ranks</a> > " . $rankInfo['name'] . "\");\n\t\t\t\t\t});\n\t\t\t\t</script>\n\t\t\t\t";
                if (isset($_POST['submit']) && $_POST['submit']) {
                    $countErrors = 0;
                    // Check Rank Name
                    $checkRankName = trim($_POST['rankname']);
                    if ($checkRankName == "") {
                        $countErrors++;
                        $dispError .= "&nbsp;&nbsp;&nbsp;<b>&middot;</b> You may not enter a blank rank name.<br>";
                    }
                    // Check Rank Category
                    $rankCatObj = new Basic($mysqli, "rankcategory", "rankcategory_id");
                    if (!$rankCatObj->select($_POST['rankcat'])) {
                        $countErrors++;
                        $dispError .= "&nbsp;&nbsp;&nbsp;<b>&middot;</b> You selected an invalid rank category.<br>";
                    }
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:edit.php

示例6: getMemberLink

 function getMemberLink($args = array("color" => true))
 {
     global $MAIN_ROOT;
     $returnVal = "";
     if ($this->intTableKeyValue != "" && is_numeric($this->intTableKeyValue)) {
         $memberRank = new Rank($this->MySQL);
         $memberRankCat = new Basic($this->MySQL, "rankcategory", "rankcategory_id");
         $memberInfo = $this->get_info_filtered();
         $memberRank->select($memberInfo['rank_id']);
         $rankInfo = $memberRank->get_info_filtered();
         $memberRankCat->select($rankInfo['rankcategory_id']);
         $memberColor = $memberRankCat->get_info_filtered("color");
         if ($args['color']) {
             $returnVal = "<span style='color: " . $rankInfo['color'] . "'><a href='" . $MAIN_ROOT . "profile.php?mID=" . $memberInfo['member_id'] . "' style='color: " . $memberColor . "' title='" . $memberInfo['username'] . "'>" . $memberInfo['username'] . "</a></span>";
         } else {
             $returnVal = "<a href='" . MAIN_ROOT . "profile.php?mID=" . $this->intTableKeyValue . "'>" . $memberInfo['username'] . "</a>";
         }
         if ($args['wrapper'] === false) {
             $returnVal = MAIN_ROOT . "profile.php?mID=" . $this->intTableKeyValue;
         }
     }
     return $returnVal;
 }
开发者ID:nsystem1,项目名称:clanscripts,代码行数:23,代码来源:member.php

示例7: Member

 *
 */
include "../../../../_setup.php";
include_once "../../../../classes/member.php";
include_once "../../../../classes/forumboard.php";
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$rankObj = new Rank($mysqli);
$boardObj = new ForumBoard($mysqli);
$consoleObj = new ConsoleOption($mysqli);
$cID = $consoleObj->findConsoleIDByName("Post Topic");
$consoleObj->select($cID);
if ($member->authorizeLogin($_SESSION['btPassword']) && $member->hasAccess($consoleObj)) {
    $memberInfo = $member->get_info_filtered();
    $rankObj->select($memberInfo['rank_id']);
    $posterRankInfo = $rankObj->get_info_filtered();
    $_POST['wysiwygHTML'] = str_replace("<?", "&lt;?", $_POST['wysiwygHTML']);
    $_POST['wysiwygHTML'] = str_replace("?>", "?&gt;", $_POST['wysiwygHTML']);
    $_POST['wysiwygHTML'] = str_replace("<script", "&lt;script", $_POST['wysiwygHTML']);
    $_POST['wysiwygHTML'] = str_replace("</script>", "&lt;/script&gt;", $_POST['wysiwygHTML']);
    if ($memberInfo['avatar'] == "") {
        $memberInfo['avatar'] = $MAIN_ROOT . "themes/" . $THEME . "/images/defaultavatar.png";
    } else {
        $memberInfo['avatar'] = $MAIN_ROOT . $memberInfo['avatar'];
    }
    $dispSetAvatarWidth = "";
    $dispSetAvatarHeight = "";
    if ($websiteInfo['forum_avatarwidth'] > 0) {
        $dispSetAvatarWidth = " width: " . $websiteInfo['forum_avatarwidth'] . $websiteInfo['forum_avatarwidthunit'] . ";";
    }
    if ($websiteInfo['forum_avatarheight'] > 0) {
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:previewpost.php

示例8: MAX

}
$cID = $_GET['cID'];
if ($memberInfo['rank_id'] == 1) {
    $maxOrderNum = $mysqli->query("SELECT MAX(ordernum) FROM " . $dbprefix . "ranks WHERE rank_id != '1'");
    $arrMaxOrderNum = $maxOrderNum->fetch_array(MYSQLI_NUM);
    if ($maxOrderNum->num_rows > 0) {
        $result = $mysqli->query("SELECT rank_id FROM " . $dbprefix . "ranks WHERE ordernum = '" . $arrMaxOrderNum[0] . "'");
        $row = $result->fetch_assoc();
        $rankInfo['promotepower'] = $row['rank_id'];
    }
}
$rankObj = new Rank($mysqli);
$medalObj = new Medal($mysqli);
$awardMedalObj = new Basic($mysqli, "medals_members", "medalmember_id");
$rankObj->select($rankInfo['promotepower']);
$maxRankInfo = $rankObj->get_info_filtered();
if ($rankInfo['rank_id'] == 1) {
    $maxRankInfo['ordernum'] += 1;
}
$arrRanks = array();
$result = $mysqli->query("SELECT * FROM " . $dbprefix . "ranks WHERE ordernum <= '" . $maxRankInfo['ordernum'] . "' AND rank_id != '1' ORDER BY ordernum DESC");
while ($row = $result->fetch_assoc()) {
    $arrRanks[] = $row['rank_id'];
}
$sqlRanks = "('" . implode("','", $arrRanks) . "')";
$result = $mysqli->query("SELECT * FROM " . $dbprefix . "members INNER JOIN " . $dbprefix . "ranks ON " . $dbprefix . "members.rank_id = " . $dbprefix . "ranks.rank_id WHERE " . $dbprefix . "members.rank_id IN " . $sqlRanks . " AND " . $dbprefix . "members.disabled = '0' AND " . $dbprefix . "members.member_id != '" . $memberInfo['member_id'] . "' ORDER BY " . $dbprefix . "ranks.ordernum DESC");
while ($row = $result->fetch_assoc()) {
    $rankObj->select($row['rank_id']);
    $memberOptions[$row['member_id']] = $rankObj->get_info_filtered("name") . " " . filterText($row['username']);
}
$result = $mysqli->query("SELECT * FROM " . $dbprefix . "medals ORDER BY ordernum DESC");
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:awardmedal.php

示例9: MAX

}
$cID = $_GET['cID'];
$dispError = "";
$countErrors = 0;
if ($memberInfo['rank_id'] == 1) {
    $maxOrderNum = $mysqli->query("SELECT MAX(ordernum) FROM " . $dbprefix . "ranks WHERE rank_id != '1'");
    $arrMaxOrderNum = $maxOrderNum->fetch_array(MYSQLI_NUM);
    if ($maxOrderNum->num_rows > 0) {
        $result = $mysqli->query("SELECT rank_id FROM " . $dbprefix . "ranks WHERE ordernum = '" . $arrMaxOrderNum[0] . "'");
        $row = $result->fetch_assoc();
        $rankInfo['promotepower'] = $row['rank_id'];
    }
}
$rankObj = new Rank($mysqli);
$rankObj->select($rankInfo['promotepower']);
$maxRankInfo = $rankObj->get_info_filtered();
$arrRanks = array();
$result = $mysqli->query("SELECT * FROM " . $dbprefix . "ranks WHERE ordernum <= '" . $maxRankInfo['ordernum'] . "' AND rank_id != '1' ORDER BY ordernum DESC");
while ($row = $result->fetch_assoc()) {
    $arrRanks[] = $row['rank_id'];
}
if ($_POST['submit']) {
    // Check Member
    if (!$member->select($_POST['member'])) {
        $countErrors++;
        $dispError .= "&nbsp;&nbsp;&nbsp;<b>&middot;</b> You selected an invalid member.<br>";
    } elseif ($member->select($_POST['member']) && !in_array($member->get_info("rank_id"), $arrRanks)) {
        $countErrors++;
        $dispError .= "&nbsp;&nbsp;&nbsp;<b>&middot;</b> You may not change that member's password.<br>";
    }
    // Check Password
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:resetpassword.php

示例10: prepareAdditionalMemberInfo

 public function prepareAdditionalMemberInfo()
 {
     if ($this->blnLoggedIn) {
         // Private Message Info
         $consoleOptionObj = new ConsoleOption($this->MySQL);
         $pmCID = $consoleOptionObj->findConsoleIDByName("Private Messages");
         $totalPMs = $this->memberObj->countPMs();
         $totalNewPMs = $this->memberObj->countPMs(true);
         $alertPM = 0;
         if ($totalNewPMs > 0) {
             $dispPMCount = "<b>(" . $totalNewPMs . ")</b> <img src='" . MAIN_ROOT . "themes/" . THEME . "/images/pmalert.gif'>";
             $intPMCount = $totalNewPMs;
             $alertPM = 1;
         } else {
             $dispPMCount = "(" . $totalPMs . ")";
             $intPMCount = $totalPMs;
         }
         $this->data['pmCID'] = $pmCID;
         $this->data['pmCount'] = $intPMCount;
         $this->data['pmCountDisp'] = $dispPMCount;
         $this->data['pmAlert'] = $alertPM;
         $this->data['pmLink'] = "<a href='" . MAIN_ROOT . "members/console.php?cID=" . $pmCID . "' id='pmLoggedInLink'>PM Inbox " . $dispPMCount . "</a>";
         // Member Info
         $rank = new Rank($this->MySQL);
         $rank->select($this->memberObj->get_info("rank_id"));
         $this->data['memberRank'] = $rank->get_info_filtered("name");
         $this->data['memberInfo'] = $this->memberObj->get_info_filtered();
     }
 }
开发者ID:nsystem1,项目名称:clanscripts,代码行数:29,代码来源:btthememenu.php

示例11: array

        $arrValue = array($recruitDate);
        if ($memberObj->update($arrColumn, $arrValue)) {
            echo "\n\t\t\t\t<div style='display: none' id='successBox'>\n\t\t\t\t\t<p align='center'>\n\t\t\t\t\t\tSuccessfully changed " . $memberObj->getMemberLink() . "'s recruit date!\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<script type='text/javascript'>\n\t\t\t\t\tpopupDialog('Set Member\\'s Recruit Date', '" . $MAIN_ROOT . "members', 'successBox');\n\t\t\t\t</script>\n\t\t\t\n\t\t\t";
            $logMessage = "Changed " . $tempMemInfo['username'] . "'s recruit date to " . date("D M j, Y g:i a", $recruitDate) . ".";
            $member->logAction($logMessage);
        } else {
            $countErrors++;
            $dispError .= "&nbsp;&nbsp;&nbsp;<b>&middot;</b> Unable to save information to the database.  Please contact the website administrator.<br>";
        }
    }
    if ($countErrors > 0) {
        $_POST['submit'] = false;
    }
}
if (!$_POST['submit']) {
    $result = $mysqli->query("SELECT " . $dbprefix . "members.member_id FROM " . $dbprefix . "members, " . $dbprefix . "ranks WHERE " . $dbprefix . "ranks.rank_id = " . $dbprefix . "members.rank_id AND " . $dbprefix . "ranks.ordernum <= '" . $powerRankInfo['ordernum'] . "' AND " . $dbprefix . "members.rank_id != '1' AND " . $dbprefix . "members.disabled = '0' ORDER BY " . $dbprefix . "ranks.ordernum DESC, " . $dbprefix . "members.username");
    while ($row = $result->fetch_assoc()) {
        $memberObj->select($row['member_id']);
        $tempMemInfo = $memberObj->get_info_filtered();
        $rankObj->select($tempMemInfo['rank_id']);
        $tempRankInfo = $rankObj->get_info_filtered();
        $memberoptions .= "<option value='" . $row['member_id'] . "'>" . $tempRankInfo['name'] . " " . $tempMemInfo['username'] . "</option>";
    }
    echo "\n\t\t<form action='" . $MAIN_ROOT . "members/console.php?cID=" . $cID . "' method='post'>\n\t\t\t<div class='formDiv'>\n\t\t\t";
    if ($dispError != "") {
        echo "\n\t\t<div class='errorDiv'>\n\t\t<strong>Unable to change recruit date because the following errors occurred:</strong><br><br>\n\t\t{$dispError}\n\t\t</div>\n\t\t";
    }
    echo "\n\t\t\t\tUse the form below to change a member's recruit date.\n\t\t\t\t<table class='formTable'>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class='formLabel'>Member:</td>\n\t\t\t\t\t\t<td class='main'><select name='member' class='textBox'>" . $memberoptions . "</select></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class='formLabel'>Recruit Date:</td>\n\t\t\t\t\t\t<td class='main'><input type='text' class='textBox' id='recruitdate' readonly='readonly'></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class='main' align='center' colspan='2'><br>\n\t\t\t\t\t\t\t<input type='submit' name='submit' value='Change Date' class='submitButton'>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t\t<input type='hidden' name='newrecruitdate' id='realrecruitdate'>\n\t\t\t</div>\n\t\t</form>\n\t\t\n\t\t<script type='text/javascript'>\n\t\t\t\$(document).ready(function() {\n\t\t\t\n\t\t\t\t\$('#recruitdate').datepicker({\n\t\t\t\t\n\t\t\t\t";
    $dispMonth = date("n") - 1;
    echo "\n\t\t\t\t\tchangeMonth: true,\n\t\t\t\t\tyearRange: '" . (date("Y") - 20) . ":" . date("Y") . "',\n\t\t\t\t\tchangeYear: true,\n\t\t\t\t\tdateFormat: 'M d, yy',\n\t\t\t\t\tmaxDate: new Date(" . date("Y") . ", " . $dispMonth . ", " . date("j") . "),\n\t\t\t\t\taltField: '#realrecruitdate',\n\t\t\t\t\taltFormat: '@'\n\t\t\t\t\n\t\t\t\t});\n\t\t\t});\n\t\t</script>\n\t";
}
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:setrecruitdate.php

示例12: implode

$arrCIDs[] = $consoleObj->findConsoleIDByName("Disable a Member");
$arrCIDs[] = $consoleObj->findConsoleIDByName("Undisable Member");
$arrCIDs[] = $consoleObj->findConsoleIDByName("Set Member's Rank");
$arrCIDs[] = $consoleObj->findConsoleIDByName("Award Medal");
$arrCIDs[] = $consoleObj->findConsoleIDByName("Revoke Medal");
$sqlCID = "('" . implode("','", $arrCIDs) . "')";
$memberoptions = "";
$result = $mysqli->query("SELECT " . $dbprefix . "members.member_id, " . $dbprefix . "members.username, " . $dbprefix . "ranks.name FROM " . $dbprefix . "console_members, " . $dbprefix . "members, " . $dbprefix . "ranks WHERE " . $dbprefix . "console_members.member_id = " . $dbprefix . "members.member_id AND " . $dbprefix . "members.rank_id = " . $dbprefix . "ranks.rank_id AND " . $dbprefix . "console_members.console_id IN " . $sqlCID . " AND " . $dbprefix . "console_members.allowdeny = '1' AND " . $dbprefix . "members.disabled = '0' ORDER BY " . $dbprefix . "ranks.ordernum DESC");
while ($row = $result->fetch_assoc()) {
    $member->select($row['member_id']);
    $rankObj->select($row['rank_id']);
    $rankObj->select($member->get_info("rank_id"));
    $rankInfo = $rankObj->get_info();
    $dispDefaultPower = "Can't Promote";
    if ($rankInfo['promotepower'] != 0 && $rankObj->select($rankInfo['promotepower'])) {
        $dispDefaultPower = $rankObj->get_info_filtered("name");
    }
    $memberoptions .= "<option value='" . $row['member_id'] . "' data-maxrank='" . $member->get_info("promotepower") . "' data-defaultpower=\"" . $dispDefaultPower . "\">" . $row['name'] . " " . $row['username'] . "</option>";
}
if ($memberoptions == "") {
    $_POST['submit'] = false;
}
if ($_POST['submit']) {
    // Check Member
    if (!$member->select($_POST['member'])) {
        $countErrors++;
        $dispError = "&nbsp;&nbsp;&nbsp;<b>&middot;</b> You selected an invalid member.<br>";
    }
    // Check Maximum Rank
    if ($_POST['maximumrank'] != -1 && $_POST['maximumrank'] != 0 && !$rankObj->select($_POST['maximumrank'])) {
        $countErrors++;
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:setpromotionpower.php

示例13: getPreciseTime

</div>

<table class='formTable'>
	<tr>
		<td class='formTitle'>Rank:</td>
		<td class='formTitle'>Username:</td>
		<td class='formTitle'>Main Game:</td>
		<td class='formTitle'>Inactive Since:</td>
	</tr>
<?php 
$result = $mysqli->query("SELECT " . $dbprefix . "members.member_id, " . $dbprefix . "ranks.ordernum FROM " . $dbprefix . "members, " . $dbprefix . "ranks WHERE " . $dbprefix . "members.rank_id = " . $dbprefix . "ranks.rank_id AND " . $dbprefix . "members.onia = '1' AND " . $dbprefix . "members.disabled = '0' AND " . $dbprefix . "members.rank_id != '1' ORDER BY " . $dbprefix . "ranks.ordernum DESC");
while ($row = $result->fetch_assoc()) {
    $member->select($row['member_id']);
    $rankObj->select($member->get_info("rank_id"));
    $memberListInfo = $member->get_info_filtered();
    $rankListInfo = $rankObj->get_info_filtered();
    $dispMainGame = "Not Set";
    if ($gameObj->select($memberListInfo['maingame_id'])) {
        $gameObj->refreshImageSize();
        $gameInfo = $gameObj->get_info_filtered();
        $dispMainGame = "<img src='" . $gameInfo['imageurl'] . "' width='" . $gameInfo['imagewidth'] . "' height='" . $gameInfo['imageheight'] . "' onmouseover=\"showToolTip('" . $gameInfo['name'] . "')\" onmouseout='hideToolTip()'>";
    }
    echo "\n\t\t\t<tr>\n\t\t\t\t<td class='main' align='center'>\n\t\t\t\t\t<img src='" . $rankListInfo['imageurl'] . "' width='" . $rankListInfo['imagewidth'] . "' height='" . $rankListInfo['imageheight'] . "' onmouseover=\"showToolTip('" . $rankListInfo['name'] . "')\" onmouseout='hideToolTip()'>\n\t\t\t\t</td>\n\t\t\t\t<td class='main'>" . $member->getMemberLink() . "</td>\n\t\t\t\t<td class='main' align='center'>" . $dispMainGame . "</td>\n\t\t\t\t<td class='main' align='center'>" . getPreciseTime($memberListInfo['inactivedate']) . "</td>\n\t\t\t</tr>\n\t\t\n\t\t";
}
?>
</table>

<?php 
if ($result->num_rows > 0) {
    echo "\n\t\t<p align='center'>\n\t\t\t<b>Total Inactive Members:</b>\t<?php echo {$result->num_rows}; ?>\n\t\t</p>\n\t";
} else {
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:inactive-members.php

示例14: elseif

     */
    if (isset($_POST['action']) && $accessMemberObj->select($_POST['mID'])) {
        if ($_POST['action'] == "add" && ($_POST['accessRule'] == "1" || $_POST['accessRule'] == "0" || $_POST['accessRule'] == "2")) {
            $_SESSION['btMemberAccessCache'][$_POST['mID']] = $_POST['accessRule'];
        } elseif ($_POST['action'] == "delete") {
            $_SESSION['btMemberAccessCache'][$_POST['mID']] = "";
        }
    }
    // Display Cache List
    echo "\n\t\n\t\t<table align='left' border='0' cellspacing='2' cellpadding='2' width=\"90%\">\n\t\t\t<tr>\n\t\t\t\t<td class='formTitle' width=\"60%\">Member:</td>\n\t\t\t\t<td class='formTitle' width=\"20%\">Access:</td>\n\t\t\t\t<td class='formTitle' width=\"20%\">Actions:</td>\n\t\t\t</tr>\n\t\t\t\n\t\t\t";
    $countRules = 0;
    foreach ($_SESSION['btMemberAccessCache'] as $memID => $accessRule) {
        if ($accessRule != "" && $accessMemberObj->select($memID)) {
            $tempMemInfo = $accessMemberObj->get_info_filtered();
            $rankObj->select($tempMemInfo['rank_id']);
            $dispRankName = $rankObj->get_info_filtered("name");
            $dispAccess = "<span class='denyText'>Deny</span>";
            if ($accessRule == 1) {
                $dispAccess = "<span class='pendingFont'>Full</span>";
            } elseif ($accessRule == 2) {
                $dispAccess = "<span class='allowText'>Read-Only</span>";
            }
            echo "\n\t\t\t\t<tr>\n\t\t\t\t\t<td class='main'><a href='" . $MAIN_ROOT . "profile.php?mID=" . $tempMemInfo['username'] . "'>" . $dispRankName . " " . $tempMemInfo['username'] . "</a></td>\n\t\t\t\t\t<td class='main' align='center'>" . $dispAccess . "</td>\n\t\t\t\t\t<td class='main' align='center'><a href='javascript:void(0)' onclick=\"deleteAccessRule('" . $memID . "')\"><img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/buttons/delete.png' title='Delete'></a></td>\n\t\t\t\t</tr>\t\t\t\n\t\t\t";
            $countRules++;
        }
    }
    if ($countRules == 0) {
        echo "\n\t\t\t<tr>\n\t\t\t\t<td class='main' colspan='3'>\n\t\t\t\t\t<p align='center' style='padding-top: 10px'><i>No special member access rules set!</i></p>\n\t\t\t\t</td>\n\t\t\t</tr>\t\t\n\t\t";
    }
    echo "\n\t\t\t\n\t\t</table>\n\t\n\t\n\t";
}
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:boardaccesscache.php

示例15: Member

 * 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";
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$rankObj = new Rank($mysqli);
if ($member->authorizeLogin($_SESSION['btPassword'])) {
    $blnDispNone = true;
    if (($_POST['action'] == "promote" || $_POST['action'] == "demote") && $member->select($_POST['mID'])) {
        $rankObj->select($member->get_info("rank_id"));
        if ($_POST['action'] == "promote") {
            $nextRank = $rankObj->get_info("ordernum") + 1;
        } else {
            $nextRank = $rankObj->get_info("ordernum") - 1;
        }
        if ($nextRank != 1 && $rankObj->selectByOrder($nextRank)) {
            $blnDispNone = false;
            echo $rankObj->get_info_filtered("name");
        }
    }
    if ($blnDispNone) {
        echo "None";
    }
} else {
    echo "Error";
}
开发者ID:nsystem1,项目名称:clanscripts,代码行数:31,代码来源:checknextrank.php


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