本文整理汇总了PHP中Member::getMemberLink方法的典型用法代码示例。如果您正苦于以下问题:PHP Member::getMemberLink方法的具体用法?PHP Member::getMemberLink怎么用?PHP Member::getMemberLink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Member
的用法示例。
在下文中一共展示了Member::getMemberLink方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dispLoggedIn
function dispLoggedIn($arrLoginInfo)
{
global $MAIN_ROOT, $mysqli;
$memberObj = new Member($mysqli);
/*
$arrLoginInfo['memberID'] = $memberID;
$arrLoginInfo['memberUsername'] = $memberUsername;
$arrLoginInfo['memberRank'] = $memberRank;
$arrLoginInfo['pmCID'] = $pmCID;
$arrLoginInfo['pmCount'] = $dispPMCount;
*/
$memberInfo = $arrLoginInfo['memberInfo'];
$memberObj->select($memberInfo['member_id']);
$dispLoggedinBox = "\n\t\t<div class='loggedInSection'>\n\t\t\t<b>Account Name:</b><br>\n\t\t\t<p>" . $memberObj->getMemberLink() . "</p>\n\t\t\t<div class='dottedLine' style='margin: 5px 0px'></div>\n\t\t\t<b>Rank:</b>\n\t\t\t<p>" . $arrLoginInfo['memberRank'] . "</p>\n\t\t\t<div class='dottedLine' style='margin: 5px 0px'></div>\n\t\t\t<b>Member Options:</b><br>\n\t\t\t<ul class='loggedInMenuList'>\n\t\t\t\t<li><a href='" . $MAIN_ROOT . "members'>My Account</a></li>\n\t\t\t\t<li><a href='" . $MAIN_ROOT . "members/console.php?cID=" . $arrLoginInfo['pmCID'] . "'>PM Inbox " . $arrLoginInfo['pmCountDisp'] . "</a></li>\n\t\t\t\t<li><a href='" . $MAIN_ROOT . "members/signout.php'>Sign Out</a></li>\n\t\t\t</ul>\n\t\t</div>\n\t";
/*
<div class='loggedInIMG'></div>
<div class='menuLinks' style='padding-left: 8px'>
<b>Account Name:</b><br>
<a href='".$MAIN_ROOT."profile.php?mID=".$arrLoginInfo['memberID']."'>".$arrLoginInfo['memberUsername']."</a>
<hr style='width: 135px; margin: 6px 1px; padding: 0px; border: dotted whitesmoke 1px'>
<b>Rank:</b><br>
".$arrLoginInfo['memberRank']."
<hr style='width: 135px; margin: 6px 1px; padding: 0px; border: dotted whitesmoke 1px'>
<b>Member Options:</b><br>
<b>·</b> <a href='".$MAIN_ROOT."members'>My Account</a><br>
<b>·</b> <a href='".$MAIN_ROOT."members/console.php?cID=".$arrLoginInfo['pmCID']."'>PM Inbox ".$arrLoginInfo['pmCountDisp']."</a><br>
<b>·</b> <a href='".$MAIN_ROOT."members/signout.php'>Sign Out</a><br>
</div>
";
*/
return $dispLoggedinBox;
}
示例2: dispIAMessages
function dispIAMessages($iaID)
{
global $MAIN_ROOT, $dbprefix, $mysqli;
$iaMember = new Member($mysqli);
$counter = 0;
$iaMessages = "";
$iaMessagesQuery = $mysqli->query("SELECT * FROM " . $dbprefix . "iarequest_messages WHERE iarequest_id = '" . $iaID . "' ORDER BY messagedate DESC");
while ($iaMessageRow = $iaMessagesQuery->fetch_assoc()) {
if ($counter == 1) {
$addCSS = "";
$counter = 0;
} else {
$addCSS = " alternateBGColor";
$counter = 1;
}
$iaMember->select($iaMessageRow['member_id']);
$iaMessages .= "\n\t\t\t<div class='dottedLine" . $addCSS . "' style='padding: 10px 5px; margin-left: auto; margin-right: auto; width: 80%;'>\n\t\t\t\t" . $iaMember->getMemberLink() . " - " . getPreciseTime($iaMessageRow['messagedate']) . "<br><br>\n\t\t\t\t<div style='padding-left: 5px'>" . nl2br(filterText($iaMessageRow['message'])) . "</div>\n\t\t\t</div>\n\t\t";
}
if ($iaMessagesQuery->num_rows == 0) {
$iaMessages = "<i>No Messages</i>";
}
return $iaMessages;
}
示例3: DateTime
$addCSS = "";
if ($counter % 2 == 0) {
$addCSS = " alternateBGColor";
}
$counter++;
$objMember->select($eventInfo['member_id']);
$dateTimeObj = new DateTime();
$dateTimeObj->setTimestamp($eventInfo['startdate']);
$includeTimezone = "";
if ($eventInfo['timezone'] != "") {
$dateTimeObj->setTimezone(new DateTimeZone($eventInfo['timezone']));
$dispTimezone = $dateTimeObj->format(" T");
}
$dateTimeObj->setTimezone("UTC");
$dispStartDate = $dateTimeObj->format("M j, Y g:i A") . $dispTimezone;
echo "\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class='main" . $addCSS . "' style='padding: 3px'><a href='info.php?eID=" . $eventInfo['event_id'] . "'>" . $eventInfo['title'] . "</a></td>\n\t\t\t\t\t\t<td class='main" . $addCSS . "' style='padding: 3px' align='center'>" . $objMember->getMemberLink() . "</td>\n\t\t\t\t\t\t<td class='main" . $addCSS . "' style='padding: 3px' align='center'>" . $dispStartDate . "</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t\n\t\t\t\t\t";
}
}
?>
</table>
<?php
if ($countEvents == 0) {
echo "\n\t\t\t\n\t\t\t\t<div class='shadedBox' style='width: 30%; margin-top: 20px; margin-left: auto; margin-right: auto'>\n\t\t\t\t\t<p class='main' align='center'>\n\t\t\t\t\t\t<i>No visible events have been created!</i>\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t\n\t\t\t";
}
?>
</div>
<?php
示例4: array
$oldRecruiterInfo = $memberObj->get_info_filtered();
}
// Check Recruiter
if (!$memberObj->select($_POST['newrecruiter'])) {
$countErrors++;
$dispError = " <b>·</b> You selected an invalid Recruiter.<br>";
} else {
$newRecruiterInfo = $memberObj->get_info_filtered();
}
if ($countErrors == 0) {
$arrColumns = array("recruiter");
$arrValues = array($_POST['newrecruiter']);
$memberObj->select($_POST['member']);
if ($memberObj->update($arrColumns, $arrValues)) {
$logMessage = $member->getMemberLink() . " changed " . $newMemberInfo['username'] . "'s recruiter from " . $oldRecruiterInfo['username'] . " to " . $newRecruiterInfo['username'] . ".<br><br><b>Reason:</b><br>" . filterText($_POST['reason']);
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 set " . $memberObj->getMemberLink() . "'s recruiter to <b>" . $newRecruiterInfo['username'] . "</b>!\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 Recruiter', '" . $MAIN_ROOT . "members', 'successBox');\n\t\t\t\t</script>\n\t\t\t\n\t\t\t";
$memberObj->postNotification("Your recruiter has been set to " . $newMemberInfo['username'] . "!");
$member->select($memberInfo['member_id']);
$member->logAction($logMessage);
} else {
$countErrors++;
$dispError .= " <b>·</b> Unable to save information to the database. Please contact the website administrator.<br>";
}
}
if ($countErrors > 0) {
$_POST = filterArray($_POST);
$_POST['submit'] = false;
}
}
if (!$_POST['submit']) {
$result = $mysqli->query("SELECT " . $dbprefix . "members.* FROM " . $dbprefix . "members, " . $dbprefix . "ranks WHERE " . $dbprefix . "ranks.rank_id = " . $dbprefix . "members.rank_id AND " . $dbprefix . "members.disabled = '0' AND " . $dbprefix . "members.rank_id != '1' ORDER BY " . $dbprefix . "ranks.ordernum DESC, " . $dbprefix . "members.username");
示例5: displayMessage
public function displayMessage($donationID, $css = "")
{
if ($this->donationObj->select($donationID)) {
$member = new Member($this->MySQL);
$donationInfo = $this->donationObj->get_info_filtered();
if ($member->select($donationInfo['member_id'])) {
$extraName = $donationInfo['name'] != "" ? " <i>(" . $donationInfo['name'] . ")</i>" : "";
$dispDonatorName = $member->getMemberLink() . $extraName;
} else {
$dispDonatorName = $donationInfo['name'] == "" ? "Anonymous" : $donationInfo['name'];
}
include BASE_DIRECTORY . "plugins/donations/include/messages_template.php";
}
}
示例6: ConsoleOption
*
* License: http://www.bluethrust.com/license.php
*
*/
if (!defined("SHOW_MANAGERLIST")) {
include_once "../../../_setup.php";
include_once "../../../classes/member.php";
include_once "../../../classes/rank.php";
include_once "../../../classes/tournament.php";
$consoleObj = new ConsoleOption($mysqli);
$cID = $consoleObj->findConsoleIDByName("Manage Tournaments");
$consoleObj->select($cID);
$member = new Member($mysqli);
$member->select($_SESSION['btUsername']);
$tournamentObj = new Tournament($mysqli);
if (!$member->authorizeLogin($_SESSION['btPassword']) || !$tournamentObj->select($_POST['tID']) || $tournamentObj->get_info("member_id") != $memberInfo['member_id'] || !$member->hasAccess($consoleObj)) {
exit;
}
}
$arrManagers = $tournamentObj->getManagers();
foreach ($arrManagers as $tManagerID => $tMemberID) {
$member->select($tMemberID);
echo "<div class='mttPlayerSlot main'>" . $member->getMemberLink() . "<div class='mttDeletePlayer'><a href='javascript:void(0)' onclick=\"deleteManager('" . $tManagerID . "')\">X</a></div></div>";
}
if (count($arrManagers) == 0) {
echo "\n\t\t<div class='shadedBox' style='width: 75%; margin-top: 10px; margin-left: auto; margin-right: auto'>\n\t\t\t<p class='main' align='center'>\n\t\t\t\t<i>No managers assigned to this tournament.</i>\n\t\t\t</p>\n\t\t</div>\n\t";
}
$member->select($memberInfo['member_id']);
?>
示例7: elseif
$counter = 1;
} else {
$counter = 0;
}
$arrSpecialMenuItems['newmembers'] .= "\n\t<div class='menusNewestMembersItemWrapper dottedLine " . $addCSS . "'>";
$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/rockyice/images/defaultprofile.png";
}
$menuMemberRankObj->select($newestMemberInfo['rank_id']);
$arrSpecialMenuItems['newmembers'] .= "\n\t\t<div class='menusNewestMembersAvatarDiv'>\n\t\t\t<img src='" . $newestMemberInfo['profilepic'] . "'>\n\t\t</div>";
$arrSpecialMenuItems['newmembers'] .= "\n\t\t<div class='menusNewestMembersTextWrapper'>\n\t\t\t<div class='menusNewestMembersName'>\n\t\t\t\t" . $menuMemberObj->getMemberLink() . "\n\t\t\t</div>\n\t\t\t<div class='menusNewestMembersRank'>\n\t\t\t\t" . $menuMemberRankObj->get_info_filtered("name") . "\n\t\t\t</div>\n\t\t</div>";
$arrSpecialMenuItems['newmembers'] .= "\n\t\t<div style='clear: both'></div>";
$arrSpecialMenuItems['newmembers'] .= "\n\t</div>";
}
$arrSpecialMenuItems['newmembers'] .= "<div style='clear: both'></div></div>";
// LATEST FORUM ACTIVITY
$forumActivityObj = new ForumBoard($mysqli);
$arrSpecialMenuItems['forumactivity'] = "<div class='menusForumActivityWrapper'>";
$counter = 0;
$postCount = 0;
$arrShownTopics = array();
$result = $mysqli->query("SELECT * FROM " . $dbprefix . "forum_post ORDER BY dateposted DESC");
while ($row = $result->fetch_assoc()) {
$blnShowPost = false;
$forumActivityObj->objTopic->select($row['forumtopic_id']);
$menuTopicInfo = $forumActivityObj->objTopic->get_info_filtered();
示例8: Member
<tr>
<td class='formTitle' width="30%">Tournament Name:</td>
<td class='formTitle' width="25%">Manager:</td>
<td class='formTitle' width="25%">Start Date:</td>
<td class='formTitle' width="20%">Status:</td>
</tr>
<?php
$memberObj = new Member($mysqli);
$counter = 0;
$result = $mysqli->query("SELECT * FROM " . $dbprefix . "tournaments ORDER BY startdate DESC");
while ($row = $result->fetch_assoc()) {
$tournamentObj->select($row['tournament_id']);
$memberObj->select($row['member_id']);
$dispManager = $memberObj->getMemberLink();
$dateTimeObj = new DateTime();
$dateTimeObj->setTimestamp($row['startdate']);
$includeTimezone = "";
$dateTimeObj->setTimezone(new DateTimeZone("UTC"));
$dispStartDate = $dateTimeObj->format("M j, Y g:i A");
if ($row['timezone'] != "") {
$dateTimeObj->setTimezone(new DateTimeZone($row['timezone']));
$includeTimezone = " T";
}
$dispStartDate .= $dateTimeObj->format($includeTimezone);
if ($row['startdate'] < time() && $tournamentObj->getTournamentWinner() == 0) {
$dispStatus = "<img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/bluedot.png' title='Started'>";
} elseif ($row['startdate'] > time()) {
$dispStatus = "<img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/orangedot.png' title='Forming'>";
} elseif ($row['startdate'] < time() && $tournamentObj->getTournamentWinner() != 0) {
示例9: arsort
arsort($arrMembers);
} else {
$dispSort = "<a href='" . $MAIN_ROOT . "top-players/recruiters.php?sort=down'><img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/uparrow.png'></a>";
$_GET['sort'] = "up";
asort($arrMembers);
}
echo "\n\t\t<table class='formTable' style='margin-top: 50px'>\n\t\t\t<tr>\n\t\t\t\t<td class='formTitle' align='center' style='width: 5%; height: 14px'>#</td>\n\t\t\t\t<td class='formTitle' style='width: 60%'>Member</td>\n\t\t\t\t<td class='formTitle' align='center' style='width: 35%'>Recruits - " . $dispSort . "</td>\n\t\t\t</tr>\n\t";
$counter = 0;
foreach ($arrMembers as $memberID => $statValue) {
$counter++;
$addCSS = "";
if ($counter % 2 == 0) {
$addCSS = " alternateBGColor";
}
$member->select($memberID);
echo "\n\t\t<tr>\n\t\t\t<td class='main" . $addCSS . "' style='height: 30px'>" . $counter . ".</td>\n\t\t\t<td class='main" . $addCSS . "' style='height: 30px; padding-left: 20px'>" . $member->getMemberLink() . "</td>\n\t\t\t<td class='main" . $addCSS . "' align='center' style='height: 30px'>" . $statValue . "</td>\n\t\t</tr>\n\t\n\t\t";
if ($counter >= 10) {
break;
}
}
if ($counter < 10) {
for ($i = $counter + 1; $i <= 10; $i++) {
$addCSS = "";
if ($i % 2 == 0) {
$addCSS = " alternateBGColor";
}
echo "\n\t\t\t<tr>\n\t\t\t\t<td class='main" . $addCSS . "' style='height: 30px'>" . $i . ".</td>\n\t\t\t\t<td class='main" . $addCSS . "' style='height: 30px; padding-left: 20px'><i>Empty</i></td>\n\t\t\t\t<td class='main" . $addCSS . "' align='center' style='height: 30px'>-</td>\n\t\t\t</tr>\n\t\t\t";
}
}
echo "</table>";
include $prevFolder . "themes/" . $THEME . "/_footer.php";
示例10: elseif
$member->select($row['member_id']);
$posterInfo = $member->get_info_filtered();
if ($posterInfo['avatar'] == "") {
$posterInfo['avatar'] = $MAIN_ROOT . "themes/" . $THEME . "/images/defaultavatar.png";
} else {
$posterInfo['avatar'] = $MAIN_ROOT . $posterInfo['avatar'];
}
if ($row['newstype'] == 1) {
$dispNewsType = " - <span class='publicNewsColor' style='font-style: italic'>public</span>";
} elseif ($row['newstype'] == 2) {
$dispNewsType = " - <span class='privateNewsColor' style='font-style: italic'>private</span>";
} elseif ($row['newstype'] == 3) {
$dispNewsType = "";
}
$dispLastEdit = "";
if ($member->select($row['lasteditmember_id'])) {
$checkHTMLAccess = $member->hasAccess($checkHTMLConsoleObj);
$dispLastEditTime = getPreciseTime($row['lasteditdate']);
$dispLastEdit = "<span style='font-style: italic'>last edited by " . $member->getMemberLink() . " - " . $dispLastEditTime . "</span>";
}
$member->select($row['member_id']);
if (!isset($checkHTMLAccess)) {
$checkHTMLAccess = $member->hasAccess($checkHTMLConsoleObj);
}
$dispNews = $checkHTMLAccess ? parseBBCode($row['newspost']) : nl2br(parseBBCode(filterText($row['newspost'])));
echo "\n\t\t\t\n\t\t\t\t<div class='newsDiv' id='newsDiv_" . $row['news_id'] . "'>\n\t\t\t\t\t<div class='postInfo'>\n\t\t\t\t\t\t<div style='float: left'><img src='" . $posterInfo['avatar'] . "' class='avatarImg'></div>\n\t\t\t\t\t\t<div style='float: left; margin-left: 15px'>posted by " . $member->getMemberLink() . " - " . getPreciseTime($row['dateposted']) . $dispNewsType . "<br>\n\t\t\t\t\t\t<span class='subjectText'>" . filterText($row['postsubject']) . "</span></div>\n\t\t\t\t\t\t<div style='clear: both'></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<br>\n\t\t\t\t\t<div class='dottedLine' style='margin-top: 5px'></div>\n\t\t\t\t\t<div class='postMessage'>\n\t\t\t\t\t\t" . utf8_decode($dispNews) . "\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='dottedLine' style='margin-top: 5px; margin-bottom: 5px'></div>\n\t\t\t\t\t<div class='main' style='margin-top: 0px; margin-bottom: 10px; padding-left: 5px'>" . $dispLastEdit . "</div>\n\t\t\t\t\t<p style='padding: 0px; margin: 0px' align='right'><b><a href='" . $MAIN_ROOT . "members/console.php?cID=" . $cID . "&newsID=" . $row['news_id'] . "&action=edit'>EDIT</a> | <a href='javascript:void(0)' onclick=\"deleteNews('" . $row['news_id'] . "')\">DELETE</a></b></p>\n\t\t\t\t</div>\n\t\t\t\n\t\t\t\n\t\t\t";
}
} else {
echo "\n\t\t\t<div class='shadedBox' style='width: 300px; margin-left: auto; margin-right: auto'>\n\t\t\t\t<p class='main' align='center'>\n\t\t\t\t\t<i>There are currently no news posts!</i>\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t";
}
}
示例11: getPreciseTime
$newTopicBG = "";
$dispNewTopicIMG = "";
if ($LOGGED_IN && $boardObj->hasNewTopics($memberInfo['member_id'])) {
$dispNewTopicIMG = " <img style='margin-left: 5px' src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/forum-new.png' title='New Posts!'>";
$newTopicBG = " boardNewPostBG";
}
// Get Last Post Display Info
if (count($arrForumTopics) > 0) {
$boardObj->objPost->select($arrForumTopics[0]);
$firstPostInfo = $boardObj->objPost->get_info_filtered();
$boardObj->objTopic->select($firstPostInfo['forumtopic_id']);
$lastPostID = $boardObj->objTopic->get_info("lastpost_id");
$boardObj->objPost->select($lastPostID);
$lastPostInfo = $boardObj->objPost->get_info_filtered();
$postMemberObj->select($lastPostInfo['member_id']);
$dispLastPost = "<div class='boardLastPostTitle'><a href='viewtopic.php?tID=" . $firstPostInfo['forumtopic_id'] . "#" . $lastPostID . "' title='" . $firstPostInfo['title'] . "'>" . $firstPostInfo['title'] . "</a></div>by " . $postMemberObj->getMemberLink() . "<br>" . getPreciseTime($lastPostInfo['dateposted']);
} else {
$dispLastPost = "<div style='text-align: center'>No Posts</div>";
}
$dispTopicCount = $boardObj->countTopics();
$dispPostCount = $boardObj->countPosts();
$arrDispSubForums = array();
$arrSubForums = $boardObj->getSubForums();
foreach ($arrSubForums as $value) {
$subForumObj->select($value);
$subForumInfo = $subForumObj->get_info_filtered();
$arrDispSubForums[] = "<a href='" . $MAIN_ROOT . "forum/viewboard.php?bID=" . $value . "'>" . $subForumInfo['name'] . "</a>";
}
$dispSubForums = "";
if (count($arrDispSubForums) > 0) {
$dispSubForums = "<br><br><b>Sub-Forums:</b><br> " . implode(" <b>|</b> ", $arrDispSubForums);
示例12: displayNewMembers
public function displayNewMembers($amountToShow = 5)
{
$member = new Member($this->MySQL);
$rank = new Rank($this->MySQL);
if (file_exists(BASE_DIRECTORY . "themes/" . $this->dir . "/menus/newmembers.php")) {
if (!defined("NEWMEMBERS_MENUITEM")) {
define("NEWMEMBERS_MENUITEM", true);
}
include BASE_DIRECTORY . "themes/" . $this->dir . "/menus/newmembers.php";
} else {
echo "\n\t\t\t\t\t<div class='menusNewestMembersWrapper'>\n\t\t\t\t";
$altColorSwitch = 0;
$result = $this->MySQL->query("SELECT member_id FROM " . $this->MySQL->get_tablePrefix() . "members WHERE rank_id != '1' ORDER BY datejoined DESC LIMIT " . $amountToShow);
while ($row = $result->fetch_assoc()) {
$member->select($row['member_id']);
$rank->select($member->get_info("rank_id"));
if ($altColorSwitch == 1) {
$addCSS = "";
$altColorSwitch = 0;
} else {
$addCSS = " alternateBGColor";
$altColorSwitch = 1;
}
echo "\n\t\t\t\t\t\t<div class='menusNewestMembersItemWrapper dottedLine " . $addCSS . "'>\n\t\t\t\t\t\t\t<div class='menusNewestMembersAvatarDiv'>\n\t\t\t\t\t\t\t\t" . $member->getProfilePic() . "\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class='menusNewestMembersTextWrapper'>\n\t\t\t\t\t\t\t\t<div class='menusNewestMembersName'>\n\t\t\t\t\t\t\t\t\t" . $member->getMemberLink() . "\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class='menusNewestMembersRank'>\n\t\t\t\t\t\t\t\t\t" . $rank->get_info_filtered("name") . "\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div style='clear: both'></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t";
}
echo "\n\t\t\t\t\t</div>\n\t\t\t\t";
}
}
示例13: array
if ($blnBasicChecks && in_array($_POST['teamID'], $arrUnfilledTeams)) {
$tournamentObj->objPlayer->update(array("team_id"), array($_POST['teamID']));
} elseif ($blnBasicChecks && !in_array($_POST['teamID'], $arrUnfilledTeams)) {
$arrUnableToAddPlayer[] = $playerID;
}
}
}
}
echo "\n\t<table class='formTable' style='border-spacing: 0px'>\n\t\t\t";
$arrUnassignedPlayers = array();
$result = $mysqli->query("SELECT tournamentplayer_id FROM " . $dbprefix . "tournamentplayers WHERE tournament_id = '" . $tID . "' AND team_id = '0'");
while ($row = $result->fetch_assoc()) {
$tournamentObj->objPlayer->select($row['tournamentplayer_id']);
$playerInfo = $tournamentObj->objPlayer->get_info_filtered();
if ($member->select($playerInfo['member_id']) && $playerInfo['member_id'] != 0) {
$arrUnassignedPlayers[$row['tournamentplayer_id']] = $member->getMemberLink();
} else {
$arrUnassignedPlayers[$row['tournamentplayer_id']] = $playerInfo['displayname'];
}
}
asort($arrUnassignedPlayers);
$counter = 0;
foreach ($arrUnassignedPlayers as $playerID => $playerName) {
$tournamentObj->objPlayer->select($playerID);
$plainTextUsername = "";
if ($member->select($tournamentObj->objPlayer->get_info("member_id"))) {
$plainTextUsername = $member->get_info_filtered("username");
}
if ($counter == 1) {
$addCSS = " alternateBGColor";
$counter = 0;
示例14: AND
$tournamentName = $tournamentObj->get_info_filtered("name");
$playerID = $tournamentObj->getTournamentPlayerID($memberInfo['member_id']);
$tournamentObj->objPlayer->select($playerID);
$teamID = $tournamentObj->objPlayer->get_info("team_id");
// Get matches
$result = $mysqli->query("SELECT * FROM " . $dbprefix . "tournamentpools_teams WHERE tournament_id='" . $tournamentID . "' AND ((team1_id != '0' AND team2_id = '" . $teamID . "') OR (team2_id != '0' AND team1_id = '" . $teamID . "')) AND (team1approve = '0' OR team2approve = '0')");
while ($row = $result->fetch_assoc()) {
$counter++;
if ($row['team1_id'] != $teamID) {
$dispOpponent = $tournamentObj->getPlayerName($row['team1_id']);
} else {
$dispOpponent = $tournamentObj->getPlayerName($row['team2_id']);
}
$tournamentObj->objPlayer->select($playerID);
if ($tMemberObj->select($dispOpponent)) {
$dispOpponent = $tMemberObj->getMemberLink();
}
$dispPools .= "\n\t\t\t\t<tr>\n\t\t\t\t\t<td class='main' style='height: 20px'><a href='" . $MAIN_ROOT . "members/console.php?cID=" . $cID . "&pID=" . $row['poolteam_id'] . "'>" . $tournamentName . "</a></td>\n\t\t\t\t\t<td class='main' style='height: 20px; padding-left: 10px'>" . $dispOpponent . "</td>\n\t\t\t\t\t<td class='main' style='height: 20px' align='center'>Pool</td>\n\t\t\t\t</tr>\n\t\t\t";
}
$result = $mysqli->query("SELECT * FROM " . $dbprefix . "tournamentmatch WHERE tournament_id='" . $tournamentID . "' AND ((team1_id != '0' AND team2_id = '" . $teamID . "') OR (team2_id != '0' AND team1_id = '" . $teamID . "')) AND (team1approve = '0' OR team2approve = '0') ORDER BY round");
while ($row = $result->fetch_assoc()) {
$counter++;
if ($row['team1_id'] != $teamID) {
$dispOpponent = $tournamentObj->getPlayerName($row['team1_id']);
} else {
$dispOpponent = $tournamentObj->getPlayerName($row['team2_id']);
}
$tournamentObj->objPlayer->select($playerID);
if ($tMemberObj->select($dispOpponent)) {
$dispOpponent = $tMemberObj->getMemberLink();
}
示例15: Member
<?php
if (!defined("MAIN_ROOT")) {
exit;
}
$donationMember = new Member($mysqli);
$dispMemberName = $donationMember->select($donationInfo['member_id']) ? $donationMember->getMemberLink() : "";
$dispName = $donationInfo['name'];
if ($donationInfo['name'] == "" && $dispMemberName == "") {
$dispName = "Anonymous";
} elseif ($donationInfo['name'] != "" && $dispMemberName != "") {
$dispName = $dispMemberName . " <i>(" . $donationInfo['name'] . ")</i>";
}
$dispMessage = $donationInfo['message'] == "" ? "None" : nl2br(parseBBCode($donationInfo['message']));
$i = 0;
$arrComponents = array("campaign" => array("type" => "custom", "html" => "<div class='formInput main'><a href='" . $campaignObj->getLink() . "'>" . $campaignInfo['title'] . "</a></div>", "sortorder" => $i++, "display_name" => "Campaign"), "datesent" => array("type" => "custom", "html" => "<div class='formInput main'>" . getPreciseTime($donationInfo['datesent']) . "</div>", "sortorder" => $i++, "display_name" => "Date Sent"), "paypalid" => array("type" => "custom", "html" => "<div class='formInput main'>" . $donationInfo['transaction_id'] . "</div>", "sortorder" => $i++, "display_name" => "PayPal Transaction ID"), "amount" => array("type" => "custom", "html" => "<div class='formInput main'>" . $campaignObj->formatAmount($donationInfo['amount']) . "</div>", "sortorder" => $i++, "display_name" => "Amount"), "donationfrom" => array("type" => "custom", "html" => "<div class='formInput main'>" . $dispName . "</div>", "sortorder" => $i++, "display_name" => "Donated From"), "message" => array("type" => "custom", "html" => "<div class='formInput main'>" . $dispMessage . "</div><br>", "sortorder" => $i++, "display_name" => "Message"));
$setupFormArgs = array("name" => "console-" . $cID . "-donationdetails-" . $donationInfo['donation_id'], "components" => $arrComponents);