Property Details

Longitude:$myrowG[longitude] –>”;

// set address for headline
//$thisAddress = $myrowG[‘Address’].”, “.$myrowG[‘City’].”, “.$myrowG[‘State’];
$thisAddress = $myrowG[‘Address’];

// create the google maps javascript lines
if (abs($myrowG[‘latitude’]) > 1 && abs($myrowG[‘longitude’]) > 1) {
if ($myrowG[‘latitude’]) $latArr[$gglCounter] = $myrowG[‘latitude’];
if ($myrowG[‘longitude’]) $lngArr[$gglCounter] = $myrowG[‘longitude’];
$bizName[$gglCounter] = “# $myrowG[Mls_Num]
$myrowG[Prop_Type]
Asking Price $”.number_format($myrowG[‘Asking_Price’]).”
$myrowG[Address] $myrowG[City]”;
//$bizAddr[$gglCounter] = “Property Details“;
$bizAddr[$gglCounter] = “”;
$gglCounter++;
}
}
if (count($latArr)) {
// calculate center of longitude coordinates and difference between largest/smallest
$lngCenter = (max($lngArr) + min($lngArr))/2;
$lngDiff = max($lngArr) – min($lngArr);

// calculate center of latitude coordinates and difference between largest/smallest
$latCenter = (max($latArr) + min($latArr))/2;
$latDiff = abs(min($latArr) – max($latArr));

//echo “

Latitude Center:$latCenter
Longitude Center:$lngCenter

“;

// increase bounds to encompass all markers (seems to increase one zoom level)
$boundsMaxLat = max($latArr)+.008;
$boundsMaxLng = max($lngArr)+.008;
$boundsMinLat = min($latArr)-.008;
$boundsMinLng = min($lngArr)-.008;
}
// create markers string
$markerStr = “”;
for($i=0;$i= 1) {
$markerVar = “marker”.($i+1);
} else {
$markerVar = “marker”;
}
$markerStr .= ” var $markerVar = createMarker((new GLatLng(“.$latArr[$i].”,”.$lngArr[$i].”)), \””.$bizName[$i].”\”, \””.$bizAddr[$i].”\”);
map.addOverlay($markerVar);
“;

//echo “

Listing info for map:$bizName[$i]

“;

}

foreach ($_GET as $key => $value) {
$$key = $value;
if (($value) && ($key != “Prop_Class”) && ($key != “Offset”) && ($key != “Mls_Num”) && ($key != “whichForm”)) {
$GetPass .= “$key=”.urlencode($value).”&”;
}
}
reset($_GET);
foreach ($_POST as $key => $value) {
$$key = $value;
if (($value) && ($key != “Prop_Class”) && ($key != “Offset”) && ($key != “Mls_Num”) && ($key != “whichForm”)) {
$GetPass .= “$key=”.urlencode($value).”&”;
}
}
reset($_POST);

if ($Prop_Class) {
while(list($key,$value)=each($Prop_Class)) {
if ($value) {
$GetPass .= “Prop_Class[$key]=$value&”;
}
}
}

//echo “

“;

// echo “
Back To Search Results
“;

$sql = “SELECT *
FROM Gunnison_listings_new
WHERE Mls_Num = ‘$Mls_Num’
“;
$result = mysqli_query($db,$sql);

//echo “

$sql

“;
//$error_text = mysql_error();
//if ($error_text) echo “Error: $error_text

“;

$myrow = mysqli_fetch_array($result);
$numResults = mysqli_num_rows($result);
if (!$numResults) {
header(“Location: https://www.crestedbuttecollection.com/404.php”);
exit;
}

if (trim($myrow[‘Area’]) == “Mt CB”) $myrow[‘Area’] = “Mt. Crested Butte”;
if (trim($myrow[‘Area’]) == “Rural CB”) $myrow[‘Area’] = “Rural Crested Butte”;
if (trim($myrow[‘Area’]) == “CB South”) $myrow[‘Area’] = “Crested Butte South”;
if (trim($myrow[‘Area’]) == “Rural Mount CB”) $myrow[‘Area’] = “Rural Mt. Crested Butte”;

//echo “\Area:*********”.$myrow[‘Area’].”********”;

// look in custom file for a virtual tour for this property
if ($propTourArr[$Mls_Num]) $myrow[‘virtual_tour’] = $propTourArr[$Mls_Num];

while(list($key,$value)=each($myrow)){
if ($value && $key != “Remarks” && $key != “virtual_tour” && $key != “virtualTour” && $key != “propertyPageURL” && $key != “propertyPageLinkText” && $value != “SLO” && $key != “Address”) {
$myrow[$key] = ucwords(strtolower($value));
}
}
$thisAddress = $myrow[‘Address’];
if ($myrow[‘Address_2’]) $thisAddress .= ” “.$myrow[‘Address_2’];
$thisAddress .= “, “.$myrow[‘City’].”, “.strtoupper($myrow[‘State’]).” “.$myrow[‘Zip’];

$imagePrimarySourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”.jpg”;
$imageASourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”a.jpg”;
$imageBSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”b.jpg”;
$imageCSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”c.jpg”;
$imageDSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”d.jpg”;
$imageESourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”e.jpg”;
$imageFSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”f.jpg”;
$imageGSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”g.jpg”;
$imageHSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”h.jpg”;
$imageISourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”i.jpg”;
$imageJSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”j.jpg”;
$imageKSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”k.jpg”;
$imageLSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”l.jpg”;
$imageMSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”m.jpg”;
$imageNSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”n.jpg”;
$imageOSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”o.jpg”;
$imagePSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”p.jpg”;
$imageQSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”q.jpg”;
$imageRSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”r.jpg”;
$imageSSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”s.jpg”;
$imageTSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”t.jpg”;
$imageUSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”u.jpg”;
$imageVSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”v.jpg”;
$imageWSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”w.jpg”;
$imageXSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”x.jpg”;
$imageYSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”y.jpg”;
$imageZSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”z.jpg”;
$imageAASourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”A.jpg”;
$imageBBSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”B.jpg”;
$imageCCSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”C.jpg”;
$imageDDSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”D.jpg”;
$imageEESourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”E.jpg”;
$imageFFSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”F.jpg”;
$imageGGSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”G.jpg”;
$imageHHSourcePath = “http://cren.interactiveproperties.com/images/listings/cren”.$Mls_Num.”H.jpg”;

//##################################################################################
// this code commented out below uses a large image and clickable thumbnails
//##################################################################################

//$imgCheck = file_get_contents($imagePrimarySourcePath);

$galleryThumbsShow = “”;
$colCount = 0;

// break up and cycle through imageLocations field
if ($myrow[‘imageLocations’]) {
//echo ““;
$imgBits = explode(“|”,$myrow[‘imageLocations’]);
$useUpper = 0;
for($i=0;$i

“;
$colCount++;
// additional images
} else if ($imgIttyBits[1] && $imgIttyBits[1] != “main”) {
if ($useUpper == 1) $imgIttyBits[1] = strtoupper($imgIttyBits[1]);
if ($imgIttyBits[1] == “z”) $useUpper = 1;
$galleryThumbsShow .= ”


“;
$colCount++;
}
}
}

if ($myrow[‘Status’] == “Uc/contingent/call Lb”) {
$thisStatus = “UNDER CONTRACT”;
} else if ($myrow[‘Status’]) {
$thisStatus = $myrow[‘Status’];
} else {
$thisStatus = “Active”;
}
?>


Status: “.$thisStatus.”

“;

echo “

Asking: $”.number_format($myrow[‘Asking_Price’]).”

“;

if ($myrow[‘Bedrooms’]) {
echo “

“.$myrow[‘Bedrooms’].” Bedroom
“;
if ($myrow[‘Bedrooms’] && $myrow[‘Fl_Baths’]) echo ” / “;
if ($myrow[‘Fl_Baths’]) {
echo ”
“.$myrow[‘Fl_Baths’].” Full Bath

“;
}
echo ”

“;
}

if ($myrow[‘TotalSqFt’]) {
echo “

“.number_format($myrow[‘TotalSqFt’]).” Sq Ft

“;
}

echo ”


“.$galleryThumbsShow.”



Slideshow Maker


“;

echo ”

“;

echo ”

“.nl2br($myrow[‘Remarks’]).”

MLS#: “.$Mls_Num.”
“;
if ($myrow[‘Address_2’]) echo “Unit “.$myrow[‘Address_2’].” | “.$myrow[‘Location’].”
“;
if ($myrow[‘Acres’]) echo ““.$myrow[‘Acres’].” Acres
“;
echo ”
“;
if ($myrow[‘YearBuilt’]) echo “Year Built: “.$myrow[‘YearBuilt’].”
“;
if ($myrow[‘Subdivision’]) echo “Subdivision: “.$myrow[‘Subdivision’].”
“;
echo ”
“;
if ($myrow[‘HoaFee’]) echo “HOA Dues: $”.$myrow[‘HoaFee’].”
“;
if ($myrow[‘Taxes’]) echo “Taxes: $”.$myrow[‘Taxes’].”
“;
echo ”

“;

echo ”

“;

if (($myrow[‘Agent_Name’]) or ($myrow[‘Office’])) {
echo “Listing courtesy of “;
if ($myrow[‘Office’] == “Bluebird Real Estate”) $myrow[‘Office’] = “Bluebird Real Estate”;
if ($myrow[‘Agent_Name’]) {
$agentBits = explode(“,”, $myrow[‘Agent_Name’]);
$agentNameDisplay = ltrim($agentBits[1]).” “.$agentBits[0];
}

if ($agentNameDisplay) echo ” $agentNameDisplay
“;
echo ” $myrow[Office]
“;
if (($myrow[‘Agent2_Name’]) or ($myrow[‘Office2’])) {
if ($myrow[‘Office2’] == “Bluebird Real Estate”) $myrow[‘Office2’] = “Bluebird Real Estate”;
if ($myrow[‘Agent2_Name’]) {
$agent2Bits = explode(“,”, $myrow[‘Agent2_Name’]);
$agent2NameDisplay = ltrim($agent2Bits[1]).” “.$agent2Bits[0];
}

if ($agent2NameDisplay) echo “and
$agent2NameDisplay
“;
echo ” $myrow[Office2]
“;
}
} else {
echo “Listing agent information not available
“;
} // END if (($myrow[‘Agent_Name’]) or ($myrow[‘Office’]))

echo ”

“;

if ($myrow[‘latitude’] && $myrow[‘latitude’] != “0.00000000000000000000” && $myrow[‘longitude’] && $myrow[‘longitude’] != “0.00000000000000000000”) {
echo “
“;
}

echo ”

“;

if ($myrow[‘WaterRights’]) {
echo “

WATER RIGHTS
$myrow[WaterRights]

“;
}

if ($myrow[‘WaterFront’]) {
echo “

WATER FRONT
$myrow[WaterFront]

“;
}

if ($myrow[‘Utilities’]) {
echo “

UTILITIES
“;
$utilBits = explode(“,”,$myrow[‘Utilities’]);
for($i=0;$i “;
}
}
echo “

“;
}

echo ”

“;

if ($myrow[‘Style’]) {
echo “

STYLE
“;
$stlBits = explode(“,”,$myrow[‘Style’]);
for($i=0;$i “;
}
}
echo “

“;
}

if ($myrow[‘Heat’]) {
echo “

HEAT
“;
$heatBits = explode(“,”,$myrow[‘Heat’]);
for($i=0;$i “;
}
}
echo “

“;
}

if ($myrow[‘Zone’]) {
echo “

ZONE
$myrow[Zone]

“;
}

if ($myrow[‘Zoning’]) {
echo “

ZONING
$myrow[Zoning]

“;
}

echo ”

“;

if ($myrow[‘Access’]) {
echo “

ACCESS
“;
$acsBits = explode(“,”,$myrow[‘Access’]);
for($i=0;$i “;
}
}
echo “

“;
}

if ($myrow[‘RealestateIncluded’]) {
echo “

REALESTATE INCLUDED
$myrow[RealestateIncluded]

“;
}

if ($myrow[‘BuildingDesc1’]) {
echo “

BUILDING DESCRIPTION
$myrow[BuildingDesc1]

“;
}

echo ”

“;

if ($myrow[‘Timber’]) {
echo “

TIMBER
$myrow[Timber]

“;
}

if ($myrow[‘Irrigation’]) {
echo “

IRRIGATION
$myrow[Irrigation]

“;
}

if ($myrow[‘Convenant’]) {
echo “

CONVENANT
$myrow[Convenant]

“;
}
/*
if ($myrow[‘HoaFee’]) {
echo “

HOA FEE
$myrow[HoaFee]

“;
}
*/
if ($myrow[‘Ownership’]) {
echo “

OWNERSHIP
$myrow[Ownership]

“;
}
echo ”

“;
$today = date(“F d, Y”);
$year = date(“Y”);

echo ”


\"CREN

The data relating to real estate for sale on this web site comes in part from the Internet Data Exchange (IDX) program of Colorado Real Estate Network, Inc. (CREN), © Copyright “.$year.”. All rights reserved. All data deemed reliable but not guaranteed and should be independently verified. This database record is provided subject to "limited license" rights. Duplication or reproduction is prohibited.
Full Cren Disclaimer

Real Estate listings held by companies other than “.$companyName.” contain that company’s name.
Fair Housing Disclaimer

Data last updated on: “.$today.”

Powered by Interactive Properties

“;
?>