コード例 #1
0
ファイル: view_stats.php プロジェクト: stor/phpCommish
    }
    echo "</select>";
    //	echo "<br><input type=\"Submit\" name=\"submit\" value=\"Next >>\"></td></tr>";
    ?>
				</form>
			</td>
		</tr>
<?php 
} else {
    $q_division = 'SELECT * FROM t_division WHERE t_division_ID = ' . $_POST['division'];
    $r_division = mysql_query($q_division) or die("Division query failed");
    $n_division = mysql_fetch_array($r_division);
    $division_name = $n_division[1];
    //    Display the selected league, season and division*/
    echo "<b><i>League: " . $_POST['league_name'] . " / Season: " . $_POST['season_name'] . " / Division: " . $division_name . "</i></b>\n";
    echo "</td></tr>\n";
    echo "<tr><td>";
    t_gate_stat($_POST['division']);
    echo "</td></tr>";
    echo "<tr><td>";
    // Does not work
    //	t_winnings_worst($division);
    echo "</td></tr>";
    echo "</table>";
}
?>

	</table>
	</center>
</body>
</html>
コード例 #2
0
ファイル: league.php プロジェクト: stor/phpCommish
<?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>";