getDeviceCapabilitiesFromAgent(); $dbconn = mysql_connect($dbhost, $dbuser, $dbpass) or die("

ERROR > Unable to make connection to database server:

".mysql_error()."

"); mysql_select_db($dbname) or die("

ERROR > The specified database is unavailable or it does not exist."); $id = preg_replace('(/([^/\.]+)/([^/\.]+)/)', '', $_SERVER['REQUEST_URI']); $query = "SELECT * FROM users WHERE ID = '$id'"; $result = mysql_query($query); $row = mysql_fetch_array($result); $query2 = "SELECT * FROM colorScheme WHERE name = ".$row['scheme'].""; $result2 = mysql_query($query2); $row2 = mysql_fetch_array($result2); $UID = $row['ID']; $query3 = "SELECT * FROM pages WHERE (uid = ".$UID.") AND ownerEl = 0 AND (Active = 'active') ORDER BY position ASC"; $result3 = mysql_query($query3); if($row['state']=='AL'){ $longstate='Alabama'; }elseif($row['state']=='AK'){ $longstate='Alaska'; }elseif($row['state']=='AZ'){ $longstate='Arizona'; }elseif($row['state']=='AR'){ $longstate='Arkansas'; }elseif($row['state']=='CA'){ $longstate='California'; }elseif($row['state']=='CO'){ $longstate='Colorado'; }elseif($row['state']=='CT'){ $longstate='Connecticut'; }elseif($row['state']=='DE'){ $longstate='Delaware'; }elseif($row['state']=='DC'){ $longstate='District Of Columbia'; }elseif($row['state']=='FL'){ $longstate='Florida'; }elseif($row['state']=='GA'){ $longstate='Georgia'; }elseif($row['state']=='HI'){ $longstate='Hawaii'; }elseif($row['state']=='ID'){ $longstate='Idaho'; }elseif($row['state']=='IL'){ $longstate='Illinois'; }elseif($row['state']=='IN'){ $longstate='Indiana'; }elseif($row['state']=='IA'){ $longstate='Iowa'; }elseif($row['state']=='KS'){ $longstate='Kansas'; }elseif($row['state']=='KY'){ $longstate='Kentucky'; }elseif($row['state']=='LA'){ $longstate='Louisiana'; }elseif($row['state']=='ME'){ $longstate='Maine'; }elseif($row['state']=='MD'){ $longstate='Maryland'; }elseif($row['state']=='MA'){ $longstate='Massachusetts'; }elseif($row['state']=='MI'){ $longstate='Michigan'; }elseif($row['state']=='MN'){ $longstate='Minnesota'; }elseif($row['state']=='MS'){ $longstate='Mississippi'; }elseif($row['state']=='MO'){ $longstate='Missouri'; }elseif($row['state']=='MT'){ $longstate='Montana'; }elseif($row['state']=='NE'){ $longstate='Nebraska'; }elseif($row['state']=='NV'){ $longstate='Nevada'; }elseif($row['state']=='NH'){ $longstate='New Hampshire'; }elseif($row['state']=='NJ'){ $longstate='New Jersey'; }elseif($row['state']=='NM'){ $longstate='New Mexico'; }elseif($row['state']=='NY'){ $longstate='New York'; }elseif($row['state']=='NC'){ $longstate='North Carolina'; }elseif($row['state']=='ND'){ $longstate='North Dakota'; }elseif($row['state']=='OH'){ $longstate='Ohio'; }elseif($row['state']=='OK'){ $longstate='Oklahoma'; }elseif($row['state']=='OR'){ $longstate='Oregon'; }elseif($row['state']=='PA'){ $longstate='Pennsylvania'; }elseif($row['state']=='RI'){ $longstate='Rhode Island'; }elseif($row['state']=='SC'){ $longstate='South Carolina'; }elseif($row['state']=='SD'){ $longstate='South Dakota'; }elseif($row['state']=='TN'){ $longstate='Tennessee'; }elseif($row['state']=='TX'){ $longstate='Texas'; }elseif($row['state']=='UT'){ $longstate='Utah'; }elseif($row['state']=='VT'){ $longstate='Vermont'; }elseif($row['state']=='VA'){ $longstate='Virginia'; }elseif($row['state']=='WA'){ $longstate='Washington'; }elseif($row['state']=='WV'){ $longstate='West Virginia'; }elseif($row['state']=='WI'){ $longstate='Wisconsin'; }elseif($row['state']=='WY'){ $longstate='Wyoming'; }else{ $longstate=''; } echo ""; ?> getDeviceCapability('max_image_width'); $wurheight=$wurflObj->getDeviceCapability('max_image_height'); $istablet=$wurflObj->getDeviceCapability('is_tablet'); $iswireless=$wurflObj->getDeviceCapability('is_wireless_device'); if($wurwidth>$exwidest){ $imagewidth="800"; }elseif(($wurwidth<$exwidest) && ($wurwidth>=$widest)){ $imagewidth="760"; }elseif(($wurwidth<$widest) && ($wurwidth>=$wider)){ $imagewidth="580"; }elseif(($wurwidth<$widest) && ($wurwidth>=$wide)){ $imagewidth="460"; }elseif(($wurwidth<$wide) && ($wurwidth>=$mdwide)){ $imagewidth="300"; }elseif(($wurwidth<$mdwide) && ($wurwidth>=$smwide)){ $imagewidth="220"; }elseif(($wurwidth<$smwide) && ($wurwidth>=$smaller)){ $imagewidth="160"; }elseif(($wurwidth<$smaller) && ($wurwidth>=$smwide)){ $imagewidth="120"; }else{ $imagewidth="100"; } $wurjava=$wurflObj->getDeviceCapability('ajax_support_javascript'); ?> <?php echo $row['busname']." Bed and Breakfast Inn Hotel Lodging ~ ".$row['city']." B&B Inn Hotel Lodging ".$longstate." - Mobile Website"; ?> bed and breakfast inn hotel lodging B&B bed and breakfast inn hotel lodging B&B beds ands breakfasts inns hotels lodgings B&Bs s beder ander breakfaster inner hoteler lodginger B&Ber beding anding breakfasting inning hoteling lodginging B&Bing or bedor andor breakfastor innor hotelor lodgingor B&Bor bedor andor breakfastor innor hotelor lodgingor B&Bor or" /> bed and breakfast inn hotel lodging." /> Bed and Breakfast inn hotel lodging ~ B&B inn hotel lodging " /> bed and breakfast inn hotel lodging." /> bed and breakfast inn hotel lodging." /> bed and breakfast inn hotel lodging." /> bed and breakfast inn hotel lodging B&B " />

"; echo "

".nl2br($row['shortdesc'])."

"; if($istablet==1 || $iswireless==""){ echo "

".nl2br($row['longdesc'])."

"; }else{ echo NULL; } if ($row['special'] != '') { echo "
".$row['special']."
"; } if ($row['listingtype']=="prem"){ if (mysql_num_rows($result3)==0){ echo NULL; }else{ $i = 0; while ($row3 = mysql_fetch_array($result3)){ $dataset3[$i]['uid'] = $row3['uid']; $dataset3[$i]['pagename'] = $row3['pagename']; $dataset3[$i]['ID'] = $row3['ID']; $i ++; } foreach ($dataset3 as $resultset3){ $city = trim($row['city']); $city = preg_replace('/[^a-zA-Z0-9\s]/','',$city); echo "".$resultset3['pagename']."\n"; } } } } echo "
"; echo "
"; if(($row['listingtype']!="free") && ($row['onlineres']!="")){ echo "Reserve Online"; } echo "".$row['phone'].""; if($row['publicemail']!=""){ echo "Email Us"; } ##if($iswireless!=""){ ## echo "TXT Page To Friend"; ## } ?> Directions/GPS NavLocation Unverified
";} if($row['listingtype']!=="free"){ if ($row['mainormobi'] == 'main') { echo "Visit Our Main Website"; } if ($row['mainormobi'] == 'mobi') { echo "Visit Our Mobile Website"; } } ?>
"; $killdiv = 1; } if ($row['facebook'] != '') { echo "\"Facebook\" "; } if ($row['twitter'] != '') { echo " \"Twitter\""; } if ($killdiv==1) { echo "
"; } if($wurjava=='true'){ echo "
Back"; }else{ echo "
"; } if($row['listingtype']=="free"){ echo "Home"; } else if($row['listingtype']=="stan"){ echo NULL; }else{ $city = trim($row['city']); $city = preg_replace('/[^a-zA-Z0-9\s]/','',$city); echo "Home"; } # echo "Top"; ?>

©InnsMobile
Innkeepers Site