<?php

$file = __FILE__;
include ("inc/inc_common.php");
include ("inc/inc_connect.php");

$result=mysql_query("SELECT * FROM $calendartable WHERE intId = '$id'");
$num_rows = mysql_num_rows( $result );
while ( $a_row = mysql_fetch_object( $result ) )
{
    $cday = $a_row->intDay;
    $cmonth = $a_row->intMonth;
    $cyear = $a_row->intYear;
    $eventname = $a_row->strTitle;
}

include ("inc/inc_admincheck.php");
include ("inc/inc_getdate.php");
include ("inc/inc_forumname.php");
$page = "Calendar Review";
$pagelink = $file."cmonth=$cmonth&cday=$cday&cyear=$cyear";
include("inc/inc_setonline.php");
$title = "$name1 - Review $eventname";
include ("inc/inc_head.php");
include ("inc/inc_body.php");
$title = "Review \"$eventname\"";
include ("inc/inc_title.php");

if (!isset($cday))
{
    $cday = $sday;
}

if (!isset($cmonth))
{
    $cmonth = $smonth;
}
if (!isset($cyear))
{
    $cyear = $year;
}
if ($cmonth == "")
{
    $cmonth = $smonth;
}
if ($cyear == "")
{
    $cyear = $year;
}
print "</centeR><table border=0 width=\"100%\" cellpadding=1 cellspacing=0><tr><td  width=\"20%\">
<table border=0 cellpadding=1 cellspacing=0><tr><td>
<font face=\"$font\" size=$fontsize><image src=\"images/folder_icon.gif\">&nbsp;<a href=\"index.php\">$name1&nbsp;Home</a>
</td></tr>
<tr><td><image src=\"images/folder_line.gif\">
<font face=\"$font\" size=$fontsize><image src=\"images/folder_icon.gif\">&nbsp;<a href=\"calendar.php\">Calendar</a></td></tr>
<tr><td><font face=\"$font\" size=$fontsize>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<image src=\"images/folder_line.gif\">
<image src=\"images/folder_icon.gif\">&nbsp;<a href=\"calendardayall.php?cmonth=$cmonth&cday=$cday&cyear=$cyear\">$cday/$cmonth/$cyear</a></td></tr>
<tr><td><font face=\"$font\" size=$fontsize>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<image src=\"images/folder_line.gif\">
<image src=\"images/open_folder_icon.gif\">&nbsp;Review Event</a></td></tr>
</table>
</td><td><center>";

include ("inc/inc_navigation.php");
include ("inc/inc_newmailsdisplay.php");
print "</td></tr></table><br><center>";

//end of include files...

print "
<table border=1 cellpadding=3 cellspacing=0 style=\"border-collapse: collapse\" bordercolor=\"$bordercolor\" width=50% style=\"font-family: $font; font-size: $fontpoint\" bgcolor=\"$fgcolour\"><tr><td>
<table border=0 bordercolor=\"$bordercolor\" width=\"100%\" cellspacing=0 cellpadding=2 bgcolor=\"$fgcolour\"><tr><td><br><form method=post action=\"calendarreviewset.php\"><font face=$font size=2>";

print "<br><font face=$font size=2><center>Score: Us: <input onfocus=\"document.onkeypress=function(){};\" type=\"text\" name=\"homescore\" size=4 style=\"background-image: url('images/textbox_background.gif')\">&nbsp;&nbsp;Them: <input onfocus=\"document.onkeypress=function(){};\" type=\"text\" name=\"awayscore\" size=4 style=\"background-image: url('images/textbox_background.gif')\"></td></tr>
<tr><td><font face=$font size=2><center>We: <select size=1 name=result>
                                            <option selected value=\"Won\">Won</option>
                                            <option value=\"Lost\">Lost</option>
                                            <option value=\"Drew\">Drew</option>
                                            <option value=\"Won by default\">Won by default</option>
                                            <option value=\"Lost by default\">Lost by default</option></select>

</td></tr>

<tr><td><center><font face=$font size=2>Review: </td></tr><tr><td><center><textarea onfocus=\"document.onkeypress=function(){};\" rows=7 cols=35 name=review style=\"background-image: url('images/textarea_background.gif')\"></textarea>
<br><br>
<input type=\"hidden\" value=\"$id\" name=\"id\">
<input type=\"submit\" value=\"Set Review\"></form></td></tr></table>
</td></tr></table>";

include ("inc/inc_footer.php");
?>