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


PHP ConsoleOption::getConsoleLinkByName方法代碼示例

本文整理匯總了PHP中ConsoleOption::getConsoleLinkByName方法的典型用法代碼示例。如果您正苦於以下問題:PHP ConsoleOption::getConsoleLinkByName方法的具體用法?PHP ConsoleOption::getConsoleLinkByName怎麽用?PHP ConsoleOption::getConsoleLinkByName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ConsoleOption的用法示例。


在下文中一共展示了ConsoleOption::getConsoleLinkByName方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: ConsoleOption

                $addCSS = "";
            }
            $counter++;
            $tournamentObj->objTeam->select($teamID);
            $dispTeamName = $tournamentObj->getPlayerName();
            if ($dispTeamName == "") {
                $dispTeamName = "<i>Empty Spot</i>";
            }
            $dispTeamRecord = $tournamentObj->objTournamentPool->getTeamRecord($teamID);
            $dispPools .= "<tr><td class='tinyFont" . $addCSS . "' valign='top' style='width: 65%'>" . $counter . ". " . $dispTeamName . "</td><td class='tinyFont" . $addCSS . "' style='width: 35%' valign='top'>" . $dispTeamRecord . "</td></tr>";
        }
        $dispPoolLetter++;
        $dispPools .= "<tr><td colspan='2' class='tinyFont'><br></td></tr>";
    }
    echo "\n\t\t\t\t\n\t\t\t\t<span class='tournamentProfileTitle'>POOLS</span>\n\t\t\t\t<div class='dashedBox main' style='height: 400px; overflow-y: auto; padding: 5px'>\n\t\t\t\t\t<table class='formTable' style='margin-left: 3px; margin-top: 3px; width: 95%; border-spacing: 0px'>\n\t\t\t\t\t\t" . $dispPools . "\n\t\t\t\t\t</table>\n\t\t\t\t</div>\n\t\t\t\t<p class='tournamentProfileTitle' align='center'>\n\t\t\t\t\t<a href='" . $MAIN_ROOT . "tournaments/poolmatches.php?tID=" . $tID . "' target='_blank'>View Matches</a>\n\t\t\t\t</p>\n\t\t\t\t\n\t\t\t";
}
if ($tournamentInfo['seedtype'] != 3) {
    echo "\n\t\t\t<span class='tournamentProfileTitle'>MATCHES</span>\n\t\t\t<div class='dashedBox main' style='height: 400px; overflow-y: auto; padding: 5px'>\n\t\t\t\n\t\t\t\t<b>Select Round:</b> <select id='roundSelect' class='textBox'>" . $roundoptions . "</select>\n\t\t\t\t<div class='loadingSpiral' id='loadingSpiral'>\n\t\t\t\t\t<p align='center'>\n\t\t\t\t\t\t<img src='" . $MAIN_ROOT . "themes/" . $THEME . "/images/loading-spiral.gif'><br>Loading\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t\t<div id='matchDiv'>\n\t\t\t\t\n\t\t\t\t\t";
    include "include/listmatches.php";
    echo "\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<p class='tournamentProfileTitle' align='center'>\n\t\t\t\t<a href='" . $MAIN_ROOT . "tournaments/bracket.php?tID=" . $tID . "' target='_blank'>View Bracket</a>\n\t\t\t</p>\n\t\t\t\n\t\t\t";
    if ($tournamentObj->checkForPools()) {
        echo "\n\t\t\t\t\t<p class='tournamentProfileTitle' align='center'>\n\t\t\t\t\t\t<a href='" . $MAIN_ROOT . "tournaments/poolmatches.php?tID=" . $tID . "' target='_blank'>View Pool Matches</a>\n\t\t\t\t\t</p>\n\t\t\t\t";
    }
    if ($tournamentObj->memberCanJoin($memberInfo['member_id'])) {
        $tConsoleObj = new ConsoleOption($mysqli);
        $joinTournamentLink = $tConsoleObj->getConsoleLinkByName("Join a Tournament", false);
        echo "\n\t\t\t\t\t<p class='tournamentProfileTitle' align='center'>\n\t\t\t\t\t\t<a href='" . $joinTournamentLink . "&tID=" . $tID . "'>Join Tournament</a>\n\t\t\t\t\t</p>\n\t\t\t\t";
    }
}
echo "\t\n\t\t</div>\n\t\n\t</div>\n\t\n\t<script type='text/javascript'>\n\t\n\t\t\$(document).ready(function() {\n\t\n\t\t\t\$('#roundSelect').change(function() {\n\t\n\t\t\t\t\$('#roundNumSpan').html(\$('#roundSelect').val());\n\t\n\t\t\t\t\$('#matchDiv').hide();\n\t\t\t\t\$('#loadingSpiral').show();\n\t\t\t\t\$.post('" . $MAIN_ROOT . "tournaments/include/listmatches.php', { tID: " . $tID . ", roundSelected: \$('#roundSelect').val() }, function(data) {\n\t\t\t\t\t\$('#matchDiv').html(data);\n\t\t\t\t\t\n\t\t\t\t\t\$('#loadingSpiral').hide();\n\t\t\t\t\t\$('#matchDiv').fadeIn(250);\n\t\t\t\t});\n\t\n\t\t\t});\n\t\t\t\n\t\t});\n\t\n\t\n\t</script>\n\t\n";
include $prevFolder . "themes/" . $THEME . "/_footer.php";
開發者ID:nsystem1,項目名稱:clanscripts,代碼行數:31,代碼來源:view.php


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