if ($_REQUEST["record2"]!="")
{
	/*
	$query = "SELECT * FROM  auto_history";
	mysql_query("SET NAMES UTF8");
	$res = mysql_query($query);
	while ($row = @mysql_fetch_array($res))
	{
		$date = strtotime($row["datestr"]);
		print "
".date('m/d/Y',$date)."
";
		print "
";
		print "
";
	}
	/**/
	$query = "SELECT * FROM   auto_history WHERE Id='".intval($_REQUEST["record2"])."'";
	mysql_query("SET NAMES UTF8");
	$res = mysql_query($query);
	$row = @mysql_fetch_array($res);
	
	$date = strtotime($row["datestr"]);
	print "
".date('m/d/Y',$date)."
";
	print "
".$row["name"]."
";
	print "
".$row["description"]."
";
	
	
	require_once("views/block/calendar.php");
	$table=getMonthData();
	print "
".$table."
";
	print "
";
	
}
else
{
	$query = "SELECT * FROM  auto_history";
	mysql_query("SET NAMES UTF8");
	$res = mysql_query($query);
	while ($row = @mysql_fetch_array($res))
	{
		$date = strtotime($row["datestr"]);
		print "
".date('m/d/Y',$date)."
";
		print "
";
		print "
";
	}
}
?>