Location: PHPKode > projects > MyPHPSchool > MyPHPSchool-0.3.1/html/calendar/modify.php


10/5/01 - By Geoff
	Added whitespace, fixed a little formatting.


include ("../main.inc.php");
list($ulvl, $loggedin) = check_auth();

if($ulvl < 30)
	echo "Sorry You Do Not have a High Enough User Level to Edit the Calendar.";

print_header("MHS:Calendar:Modify Calendar");
	$mysql_tablename = 'calendar';
	$tablename = date('Fy', mktime(0,0,0,$month,1,$year));
	$monthname = date('F', mktime(0,0,0,$month,1,$year));

	echo "<font face=Arial size=5><b><center>$day $monthname $year</center></b><p>";
	echo "<font size=3>";

	$query = mysql_query("SELECT * FROM $mysql_tablename WHERE stamp >= \"$year-$month-$day 00:00:00\" AND stamp <= \"$year-$month-$day 23:59:59\" ORDER BY stamp", $db);

	echo "<form method=post action=operate.php>
		<table cellpadding=5 cellspacing=5 border=1 width=80%>

	while ($row = mysql_fetch_array($query))
		echo "<tr><td><input type=radio name=id value=$row[id]></td>

	echo "</table><p>
		<input type=hidden name=day value=$day>
		<input type=hidden name=month value=$month>
		<input type=hidden name=year value=$year>
Main: <input type=checkbox name=main value=main><br>
Sports: <input type=checkbox name=clubs value=atheletics><br>
Clubs: <input type=checkbox name=clubs value=clubs><br>
		<input type=submit name=action value=\"Delete marked\">
		<input type=submit name=action value=\"Modify marked\">
Return current item: MyPHPSchool