Example #1
0
 */
// require all the files
require_once 'Matchup.inc.php';
require_once 'session.php';
// create an instanceof MURegistration
$registration = new MURegistration();
// check if the submit button is pressed
if (isset($_POST["submit"])) {
    // get all the values
    $username = $_POST["username"];
    $tournament = $_POST["tournament"];
    $price = $_POST["price"];
    $award = $_POST["award"];
    $approved = isset($_POST['approved']) && $_POST['approved'] ? "1" : "0";
    // update all the values
    $registration->updateAll($username, $tournament, $price, $award, $approved);
}
// get all the users that are enrolled in the tournament
$allUsers = $registration->getUsersEnrolledInTournament($_GET["tournament"]);
?>
 <!DOCTYPE html>
 <html>
 <head>
     <title>Utenti del torneo</title>
     <link rel="stylesheet" type="text/css" href="css/style.css" />
 </head>
 <body>
     <div class="header">
		<div class="content_left"><b>MatchUp</b></div>
		<div class="content_right">
			<ul>