} $this_player[$_POST['playerid']]['changed'] = 1; $this_player[$_POST['playerid']]['cp'] = $_POST['cpl']; $this_player[$_POST['playerid']]['td'] = $_POST['td']; $this_player[$_POST['playerid']]['in'] = $_POST['int']; $this_player[$_POST['playerid']]['ca'] = $_POST['cas']; $this_player[$_POST['playerid']]['mv'] = $_POST['mvp']; $this_player[$_POST['playerid']]['rs'] = $_POST['rush']; $this_player[$_POST['playerid']]['ps'] = $_POST['pass']; $this_player[$_POST['playerid']]['bl'] = $_POST['block']; $this_player[$_POST['playerid']]['fl'] = $_POST['foul']; $this_player[$_POST['playerid']]['inj'] = $_POST['inj']; $this_player[$_POST['playerid']]['inj_eff'] = 2 == $_POST['inj'] ? 7 : $_POST['inj_type']; } select_forms(); head_std("Admin"); body_top(); echo "<script type=\"text/javascript\" src=\"includes/wz_tooltip.js\"></script>"; if (isset($_SESSION['userID'])) { // We must be logged in to even se something here // Draw the results screen echo "<div align=center>\n"; echo "<table border=1 cellspacing=0 cellpadding=0 width=800>"; echo "<tr><td>\n"; // Draw the tabs and links to other admin-functions echo "<table cellspacing=0 cellpadding=0>"; echo "<tr>\n"; echo "<td>\n"; echo "<table border=1 cellspacing=0 cellpadding=0 width=200>"; echo "<tr><td align=center><a href=admin.php><B>LEAGUES</B></a></td></tr>"; echo "</table>\n</td>";
$r_sql = get_sqlresult($sql, "Updating player"); } else { //Adding new player $sql = 'INSERT INTO t_player VALUES(NULL, ' . $_POST['teamid'] . ', ' . $_POST['player'] . ', \'' . $_POST['player_name'] . '\', ' . $_POST['positions_id'] . ', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0)'; $r_sql = get_sqlresult($sql, "Add player"); } set_teamstatus($_POST['teamid'], 1); } if ($_POST['del_player']) { //delete the player from the roster $sql = 'DELETE FROM t_player WHERE t_player_ID = ' . $_POST['player_id']; $r_sql = get_sqlresult($sql, "Deleting player"); set_teamstatus($_POST['teamid'], 1); } select_forms(); head_std("Edit team"); body_top(); /* Variables from the team form: $team : t_team_ID $coach, $team_name, $apoth, $cheer, $assist, $fanfac, $reroll, $treas */ // Main form for editing team /* Vars from this form: Hidden: $teamid - t_team_ID $player - t_player_num $player_id - t_player_ID $positions_id Normal: $player_name - t_player_name
<?php include "includes/library.inc.php"; head_std("PHPCommish5 - v.3"); echo "<body>\n<P><center><img src=\"img/bbfirstpage.jpg\"></center>"; echo "</body>\n</html>";
<?php session_start(); include "includes/library.inc.php"; include "includes/sql_connect.php"; select_forms(); head_std("Leagues"); body_top(); if (isset($_SESSION['fixtureID'])) { echo "<div align=center>\n"; echo "<table><tr><td valign=top>\n"; viewtable($_SESSION['fixtureID']); t_gate_stat($_SESSION['fixtureID']); t_winnings_worst($_SESSION['fixtureID']); echo "<table><tr><td>\n"; t_offense_best($_SESSION['fixtureID']); echo "\n</td><td>\n"; t_offense_worst($_SESSION['fixtureID']); echo "\n</td></tr></table>\n"; echo "<table><tr><td>\n"; t_cas_best($_SESSION['fixtureID']); echo "\n</td><td>\n"; t_cas_worst($_SESSION['fixtureID']); echo "\n</td></tr></table>\n"; t_winnings_stat($_SESSION['fixtureID']); echo "\n</td><td valign=top>\n"; viewresults($_SESSION['fixtureID'], 3); echo "\n</td></tr></table>\n"; echo "</div>\n"; } echo "</body>\n</html>";
} if (isset($_POST['rem_acoach'])) { $_SESSION['team']['a_coach']--; $_SESSION['team']['treasury'] = $_SESSION['team']['treasury'] + 10000; } if (isset($_POST['rem_cheer'])) { $_SESSION['team']['cheer_l']--; $_SESSION['team']['treasury'] = $_SESSION['team']['treasury'] + 10000; } if (isset($_POST['rem_apoth'])) { $_SESSION['team']['apoth'] = 0; $_SESSION['team']['treasury'] = $_SESSION['team']['treasury'] + 50000; } } select_forms(); head_std("New team"); body_top(); echo "<script type=\"text/javascript\" src=\"includes/wz_tooltip.js\"></script>"; echo "<div align=center>\n"; echo "<table border=1 cellspacing=0 cellpadding=0 width=800>"; echo "<tr><td align=center>\n"; // Start of the code. if (isset($_POST['raceid'])) { unset($_SESSION['team']); unset($_SESSION['players']); unset($_SESSION['rosterpos']); $sql = "SELECT t_user_fullname FROM t_user WHERE t_user_id = " . $_SESSION['userID']; $r_name = get_sqlresult($sql, "Get username"); $n_name = mysql_fetch_array($r_name); $_SESSION['team'] = array("userid" => $_SESSION['userID'], "raceid" => $_POST['raceid'], "racename" => $_POST['racename'], "rr_price" => $_POST['rr_price'], "coach" => $n_name['t_user_fullname'], "num_players" => 0, "rerolls" => 0, "treasury" => 1000000, "status" => 1, "fanfactor" => 0, "a_coach" => 0, "cheer_l" => 0, "apoth" => 0, "playcount" => 0); $_SESSION['rosterpos'] = array(1 => 0, 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 0, 10 => 0, 11 => 0, 12 => 0, 13 => 0, 14 => 0, 15 => 0, 16 => 0);
<?php session_start(); include "includes/library.inc.php"; include "includes/sql_connect.php"; select_forms(); head_std("Rules - Skill List"); body_top(); echo "<div align=center>\n"; echo "<table border=1 cellspacing=0 cellpadding=0 width=800>"; echo "<tr><td>\n"; echo "<table cellspacing=0 cellpadding=0>"; echo "<tr><td width=400 align=center>"; echo "<table border=1 cellspacing=0 cellpadding=0 width=400>"; echo "<tr><td align=center>"; echo "<a href=rules_teams.php><B>TEAMS</B></a>"; echo "</td></tr>"; echo "</table>\n</td>\n"; echo "<td align=center width=400><B>SKILLS</B></a></td>"; echo "</tr>\n"; echo "<tr><td colspan=2>\n"; rules_skills(); echo "</td></tr>"; echo "</table>/n"; echo "</td></tr>"; echo "</table>/n"; echo "</div>"; echo "</body>\n</html>";
<?php session_start(); include "includes/library.inc.php"; include "includes/sql_connect.php"; select_forms(); head_std("Rules - Team List"); body_top(); echo "<script type=\"text/javascript\" src=\"includes/wz_tooltip.js\"></script>"; echo "<div align=center>\n"; echo "<table border=1 cellspacing=0 cellpadding=0 width=800>"; echo "<tr><td>\n"; echo "<table cellspacing=0 cellpadding=0>"; echo "<tr>"; echo "<td align=center width=400><B>TEAMS</B></a></td>\n"; echo "<td width=400 align=center>\n"; echo "<table border=1 cellspacing=0 cellpadding=0 width=400>\n"; echo "<tr><td align=center>\n"; echo "<a href=rules_skills.php><B>SKILLS</B></a>\n"; echo "</td></tr>\n"; echo "</table>\n</td>\n"; echo "</tr>\n"; echo "<tr><td colspan=2>\n"; rules_teams(); echo "</td></tr>\n"; echo "</table>/n"; echo "</td></tr>\n"; echo "</table>/n"; echo "</div>"; echo "</body>\n</html>";