<?

/*
FlexCMS (http://www.flexcms.com)
Flexible, Powerful, Affordable.

Contents of this file are protected by the copyright
notice found at http://www.flexcms.com/flex/pages/copyright.html,
and its usage is subject to the terms of the licensing agreement 
available at http://www.flexcms.com/flex/pages/license.html
*/



	// ========================================================================================
	// Delete Existing Calendar Event
	// ========================================================================================
	
	$PageTitle = '<img src="'.$ImagesURL.'/admin/admincp_calendar.gif" width="28" height="18"> '.$MsgText[1][79];
	$BrowserTitle = $MsgText[1][79];
	$LocationBar = '<a href="'.$IndexURL.'">'.$MsgText[0][1].'</a> > <a href="' . $MainURL . '/options.html">'.$MsgText[0][4].'</a> > <a href="'.$MainURL.'/admin/calendar.html">'.$MsgText[1][2].'</a> > '.$MsgText[1][79];
	
	if ($LoggedIn == 'y') {
		
		ReadPermissions();
		Global $Permissions;
		
		if ($Permissions[100] == 'y') {

												
			$query55 = "select * from `".$Settings['DBPrefix']."cl-Events` where RecordNumber='".$Arguments3."' limit 1";
			$result55 = mysql_query($query55) or die (mysql_error());
			
			if (mysql_num_rows($result55) > 0) {
				
	
				$row55 = mysql_fetch_array($result55);
				
				
				$PageContents .= '<b>'.$MsgText[1][80].' "'.$row55['Title'].'" ?</b><br><br><form action="'.$MainURL.'/admin/calendar-confirmdelete" method="post">
<input type="hidden" name="RecordNumber" value="'.$row55['RecordNumber'].'">
<input type="submit" value="'.$MsgText[0][237].'"><br><br><br><input type="button" value="'.$MsgText[0][238].'" onClick="window.location.href=\''.$MainURL.'/admin/calendar.html\'"></form>';
				
		
			}
			else {
				$PageContents .= '<br>['.$MsgText[1][81].']<br>';
			}
	
				
	
	
		}
		else {
		
			$PageContents = $MsgText[0][97];
		
		}

	}
	else {
	
		RedirectToLogin();
	
	}
	

	// ========================================================================================




?>
