Esempio n. 1
0
File: index.php Progetto: hdp/brass
}
$mypage->leaf('h3', 'Games that are currently recruiting:');
gamelistdisplayr($mypage, false);
$mypage->leaf('h3', 'Games that are currently looking for a replacement player:');
gamelistdisplayx($mypage);
$mypage->leaf('h3', 'Games that are currently in progress:');
if ($NumGamesInProgress > 20) {
    $games_in_progress_notice = 'This list shows only 20 of the ' . $NumGamesInProgress . ' games that are currently in progress. You can ';
    if ($_SESSION['LoggedIn']) {
        $games_in_progress_notice .= 'see a full list by clicking <a href="allcurrentgames.php">here</a>.';
    } else {
        $games_in_progress_notice .= 'access a full list if you log in.';
    }
    $mypage->leaf('p', $games_in_progress_notice);
}
gamelistdisplayp($mypage, false) . $mypage->leaf('p', '<a href="oldgames.php">View a list of games that are finished</a>');
if ($Administrator) {
    $mypage->leaf('p', '<a href="cancelledgames.php">View a list of all games cancelled during recruitment</a> (Admins only)');
}
$mypage->leaf('h3', 'Discussion boards:');
$mypage->opennode('table', 'class="table_extra_horizontal_padding"');
$mypage->opennode('thead');
$mypage->opennode('tr');
$mypage->leaf('th', 'Board');
$mypage->leaf('th', 'Threads');
$mypage->leaf('th', 'Posts');
$mypage->leaf('th', 'Last post in');
$mypage->leaf('th', 'by');
$mypage->leaf('th', 'at <span style="font-weight: normal;">(GMT)</span>');
$mypage->closenode(2);
$mypage->opennode('tbody');
Esempio n. 2
0
<?php

require '_std-include.php';
$mypage = page::standard();
if ($_SESSION['LoggedIn']) {
    require HIDDEN_FILES_PATH . 'gamelistdisplay.php';
    $mypage->title_body('All games currently in progress');
    $mypage->loginbox(false);
    $mypage->leaf('h1', 'All games currently in progress');
    gamelistdisplayp($mypage, true) . $mypage->leaf('p', 'Click <a href="index.php">here</a> to return to the Main Page.');
} else {
    $mypage->title_body('Not logged in');
    $mypage->leaf('p', 'You can\'t access this page, as you are not logged in. Please return to the Main Page by clicking <a href="index.php">here</a>.');
}
$mypage->finish();