Exemple #1
0
    header("Location: usermanager.php");
}
if (isset($_GET['reqplayerid']) && $_GET['reqplayerid'] > 0) {
    $REQUESTPLAYERID = $_GET['reqplayerid'];
} else {
    $REQUESTPLAYERID = -1;
}
$smarty->assign('userID', $USERID);
$smarty->assign('reqPlayerID', $REQUESTPLAYERID);
if (isset($_POST['action']) && $_POST['action'] == 'Assign Watch Stat') {
    process_watchstat_form();
    header("Location: usermanager.php");
}
$smarty->assign('page_name', 'Edit Watching Stat');
set_user_info();
setup_select_player_candidates();
// Build the page
require 'global_begin.php';
$smarty->display('admin/editwatchstat.tpl');
require 'global_end.php';
/*
* ********************************************************************************
* ********************************************************************************
* **************************L O C A L  F U N C T I O N S**************************
* ********************************************************************************
* ********************************************************************************
*/
function set_user_info()
{
    global $smarty;
    global $USERID;
Exemple #2
0
function setup_draft_form()
{
    global $smarty;
    setup_select_team_candidates();
    setup_select_player_candidates();
}