Пример #1
0
<?php

include "globals.php";
include "includes/lib_common.php";
include "includes/lib_html.php";
$page = get_int('page', 1);
HTML_Header("Title");
HTML_Content_Title("Game Finder", "Sorry for copying your layout bigWham, but I'm a programmer, not a designer ;)");
HTML_Pagination($page, 10, 1234, "?page=", "top");
HTML_List_Header();
for ($i = 1; $i <= 3; $i++) {
    $oddeven = $i % 2 ? "odd" : "even";
    switch ($i) {
        case 1:
            HTML_List_Item1($oddeven);
            break;
        case 2:
            HTML_List_Item2($oddeven);
            break;
        case 3:
            HTML_List_Item3($oddeven);
            break;
    }
}
HTML_List_Footer();
HTML_Pagination(1, 1, 1, "https://www.conquerclub.com/player.php?submit=Search&order=D&p1=MestreLion&p2=Yellow+Peril&page=", "bottom");
HTML_Footer();
function HTML_List_Header()
{
    ?>
<table class="listing">
Пример #2
0
<?php

include "globals.php";
include "includes/lib_common.php";
include "includes/lib_html.php";
# Default values
$player = get_str("player", session("username"));
$types = get_arr("type", array('P', 'D', 'T', 'Q'));
HTML_Header("Map Rank");
HTML_Content_Title("Map Rank", "");
HTML_Form($player, $types);
if ($_GET) {
    $url = "cgi-bin/maprank.cgi" . "?player=" . urlencode($player) . "&types=" . urlencode(implode($types, ','));
    HTML_AnimatedLoadNestedURLs($url, $url . "&info=1", "", "<br>", "<strong>", "</strong>");
}
HTML_Footer();
function HTML_Form($player, $types)
{
    ?>
<form class="ccform" action="" method="get" id="find">
<fieldset>
<legend>Search</legend>
<div class="field-row">
	<label class="field-label" for="player">Player</label>
	<input type="text" class="field" name="player" id="player" maxlength="16" value="<?php 
    echo _H($player);
    ?>
"/>
</div>
<div class="field-row">
	<span class="field-label">Game Type</span>
Пример #3
0
<?php

include "globals.php";
include "includes/lib_common.php";
include "includes/lib_html.php";
HTML_Header("CL7 Player Rank");
HTML_Content_Title("CL7 Player Rank", "");
HTML_AnimatedLoadURL("cgi-bin/clanplayerrank.cgi?player=" . urlencode(session('username')));
HTML_Footer();
Пример #4
0
<?php

include "globals.php";
include "includes/lib_common.php";
include "includes/lib_html.php";
HTML_Header("CL7 Scoreboards");
HTML_Content_Title("CL7 Scoreboards", "");
$cgi = "cgi-bin/league_scoreboard.cgi";
$scores = array(array("mode" => "finished", "title" => "Finished matches only:"), array("mode" => "ongoing", "title" => "Including ongoing matches:"));
foreach ($scores as $score) {
    HTML_Item($score["title"]);
    HTML_AnimatedLoadURL($cgi . "?mode=" . _U($score["mode"]) . "&clan=" . _U($CLAN['shortname']), $score["mode"]);
}
HTML_Legend();
HTML_Item($CLAN['name'] . " matches:");
HTML_AnimatedLoadURL($cgi . "?mode=matches&clanid=" . _U($CLAN['clanid']), "list");
HTML_Footer();
function HTML_Item($title = "")
{
    ?>
	<h4><?php 
    echo _H($title);
    ?>
</h4>
<?php 
}
function HTML_Legend()
{
    ?>
<h4>Legend:</h4>
<ul>
Пример #5
0
<?php

include "globals.php";
include "includes/lib_common.php";
include "includes/lib_html.php";
HTML_Header();
HTML_Content_Title("Main Page", "Use the menu on the left to access the tools");
HTML_Footer();