2) { include '404.shtml'; header("HTTP/1.0 404 Not Found"); header("Status: 404 Not Found"); exit; } } $limit = 50; if (!$page) { $page = 0; } $limit_from = $page * $limit; ?>
"); exit; } echo("Unable to locate the dwh database at this time.
" ); } /* //This is the query for the top banner else { $top_banner = mysql_query("SELECT IS_ACTIVE, POSITION, URL, IMAGE FROM BANNER WHERE STATE = '" . $state . "' AND PLACEMENT = 1 ORDER BY POSITION ASC"); $top_banner_count = mysql_num_rows($top_banner); } */ ?> " . $state_full . " " . date(Y) . " Motorcycle Events and Rallies"); //echo("See a full list of " . $state . " Motorcycle Events (not only bike rallies)"); ?> |
");
if(!$row["SEO_NAME"])
{
$info_page = '';
}
else
{
$info_page = '';
}
echo(' ' . $info_page. $v_font_color_begin . special_cleanup($row["NAME"]) . $v_font_color_end . ' (# ' . $row["EVENT_ID"] . ')');
if($row["DAYS"]<8)
{
echo(' - New');
}
echo(" ");
if ($row["F_DATE_FROM"]==$row["F_DATE_TO"])
{
echo("" . $row["F_DATE_FROM"] . " (" . $row["F_DAY_FROM"] . ")");
}
else
{
echo("" . $row["F_DATE_FROM"] . " - " . $row["F_DATE_TO"] . " (" . $row["F_DAY_FROM"] . " - " . $row["F_DAY_TO"] . ")");
}
echo(""); echo(""); //if($row["ADDRESS"]) {echo($row["ADDRESS"] . ", ");} echo($row["CITY"] . ", " . $row["STATE"] . " "); echo($map_click_out_log); echo(' '); echo($weather_click_out_log); echo(''); echo($hotel_click_out_log);echo(''); echo(" "); if ($row["IMAGE"]) { list($image_width, $image_height, $type, $attr) = getimagesize(substr($row["IMAGE"], 1)); if($image_width>200) { $image_width = 200; $image_height = ''; } if($row["URL"]) { echo(" "); } else { echo(""); } } $desc_len = strlen($row["DESCRIPTION"]); $cutoff = 350; if($row["IS_CANCELED"]=="Y") { echo("Canceled By The Organizer "); } if ($desc_len > $cutoff) { echo($v_font_color_begin . substr(special_cleanup($row["DESCRIPTION"]), 0, $cutoff) . $v_font_color_end . '...... ' . $info_page . 'For More Information Click Here '); } else { echo($v_font_color_begin . special_cleanup($row["DESCRIPTION"]) . $v_font_color_end . ' '); } //echo(" if ($row["IS_PHOTO"]) { echo("" . $row["NAME"] . " photos "); } if ($row["URL"]) { //echo(" echo(" " . $row["URL"] . " "); } if($row["CONTACT"]) {echo($row["CONTACT"] . " ");} if($row["PHONE"]) {echo($row["PHONE"]);} if($row["EMAIL"]) { echo(", Email Motorcycle Event Organizer"); } echo(" |