<?php
require_once('../../../config.php');
require_once(FOLDER_RELATIVE_COMMON . 'authorization.php');
require_once(FOLDER_RELATIVE_COMMON . 'database.php');
require_once(FOLDER_RELATIVE_COMMON . 'xml.php');
// Reply to ajax table listing.
$sql = 'SELECT id, ' . databaseGetDate('scheduled_date') . ' AS Scheduled, opponent AS Opponent FROM Games ORDER BY scheduled_date DESC';
processXMLRequestForJaxTable($sql, array());
// Show the list form.
require_once(FOLDER_RELATIVE_COMMON . 'builder-admin.php');
$header = '';
$onload = "jaxTableSetSuppressId(); jaxTableSetDateColumn(0, 'table_date'); jaxTableSetLinkColumn(0, 'admin_scoreboard.php?request=edit&id='); jaxTableRegister('admin_scoreboard_list.php?request=xml', 'scoreboard');";
$title = 'Scoreboard';
$content = 'admin_scoreboard_list.html';
$page = buildAdminPage($header, $onload, $title, $content);
echo $page;
?>