<?php

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

$result = mysql_query( "SELECT * FROM $calendartable WHERE intId = '$id'" );
$num_rows = mysql_num_rows( $result );
while ( $a_row = mysql_fetch_object( $result ) )
{
    $id = $a_row->intId; //no idea why this is here - but I guess it's for a reason...
    $postthis = $a_row->memReview;
    include ("formatposts.php");
    $reviewer = $a_row->strReviewer;
    $eventname = $a_row->strTitle;
    $cday = $a_row->intDay;
    $cmonth = $a_row->intMonth;
    $cyear = $a_row->intYear;
}


$page = "$eventname Review";
$pagelink = $file."cmonth=$cmonth&cday=$cday&cyear=$cyear";
include("inc/inc_setonline.php");
$title = "$name1 Calendar - $eventname Review";
include ("inc/inc_head.php");
include ("inc/inc_body.php");
$title = "$eventname Review";
include ("inc/inc_title.php");
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</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 "<br><table border=1 cellpadding=3 cellspacing=0 style=\"border-collapse: collapse\" bordercolor=\"$bordercolor\" width=70% style=\"font-family: $font; font-size: $fontpoint\" bgcolor=\"$fgcolour\"><tr><td align=\"center\"><br>$postthis<br><br>Reviewed by $reviewer<br><br>";


print "<font face=$font size=2>";

if ( $cAdminLevel > 1 )
{
    print "<br><br><a href=\"calendarreviewdelete.php?id=$id\">Delete this review</a><br>Warning - deleting a review also deletes any match scores and results.<br><br>";
}
print "</td></tr></table>";

include ("inc/inc_footer.php");

?>