$band = $_POST['band']; if (!$_SESSION["logged_in"]) { login_prompt($_POST[username], $_POST[remember_me], $_SESSION["error"]); } else { /*----- CONTENT ------*/ ?> <script type='text/javascript'> AdminMadness.updateAdminScoreboard(); </script> <div class="row"> <div class="tweleve columns content full-width"> <h1>Modern Rock Madness Matches</h1> <form action="mrm_manage_matches.php" method="get"> <?php $current_match = now_match(); if ($current_match) { countdown_values($current_match['id']); } ?> <center>Select a round: <select name="round" onchange="javascript:this.form.submit();"> <?php $rounds = array(); for ($i = 1; $i <= 6; $i++) { array_push($rounds, $i); } foreach ($rounds as $roundvalue) { if ($roundvalue == $round) { echo '<option value="' . $roundvalue . '" selected="' . $roundvalue . '"> Round ' . $roundvalue . '</option>' . "\n"; } else {
function sponsor() { $current_match = now_match(); if (isset($current_match['sponsor'])) { echo "<div class=\"sponsor\" id='sponsor_top'>\n" . "Match sponsored by\n" . "<br>\n" . $current_match['sponsor']; if (isset($current_match['sponsor_msg'])) { echo "<br>\n" . $current_match['sponsor_msg']; } echo "</div>\n"; echo "<div class=\"sponsor\" id='sponsor_bottom'>\n" . "Match sponsored by\n" . "<br>\n" . $current_match['sponsor']; if (isset($current_match['sponsor_msg'])) { echo "<br>\n" . $current_match['sponsor_msg']; } echo "</div>\n"; } }