function gGetArrVal($key,$arr_src,$fc) {
$arr_c = split(",",$fc);
$cdesc = array();
foreach($arr_c as $c) {
$cdesc[] = $arr_src[$c][$key];
}
return implode(", ",$cdesc);
}
function gFV($obj,$label,$fld,$br="
") {
$lnk="";
if($obj[$fld]!="" && $obj[$fld]!="0") {
$lnk = ''.$label.''.$obj[$fld].''.$br;
} return $lnk;
}
$location = $row[CITY];
$address = $row[STREET_NUMBER].' '.$row[STREET_NAME].', '.$row[CITY].', '.$row[SUBDIVISION].', '.$row[COUNTY];
$featured = gGetArrVal('desc',$features,$row[FEATURE_CODES]);
$remark = $row[REMARKS];
$ptype = $row[PROP_TYPE_DESCRIPTION];
?>
$form = $_SESSION['visitor'].$_SESSION['search']; ?>
include_once 'app/lang.php'; ?>
=$location?> Real Estate, =$ptype?>, =$address?>
=$G_MAP?>
include 'header.php' ?>
Property No.: =$title?>
$i=1; ?>
while ($rec = $record->next()): ?>
$img_url = $rec[PHOTO_URL];
if(trim($img_url)=="") $img_url = "/themes/admin/imgs/nophoto.gif";
?>
|
|
Price: $=$rec[SALE_PRICE]?>
Address: '.$rec[STREET_NUMBER].' '.$rec[STREET_NAME].', ';
echo $rec[CITY].', '.$rec[SUBDIVISION].', '.$rec[COUNTY];
?> |
|
Features:
=gGetArrVal('desc',$features,$rec[FEATURE_CODES])?>
','REMARKS')?> |
| |
|
Request More Information |
| |
|
|
|
$arr_photos = array();
$arr_p = array();
$pcount = $rec[PHOTO_QUANTITY];
if($pcount>1) {
$img_w = 110;
$img = $rec[PHOTO_URL];
$arr_i = split("\.",$img);
$i2=1;
for($i=1;$i<=$pcount;$i++) {
$arr_i2 = $arr_i;
$fpos = count($arr_i2)-2;
$arr_i2[$fpos] .= '_'.$i;
if($i==1) $img = $rec[PHOTO_URL];
else $img = implode(".",$arr_i2);
$src_img = ' ';
$arr_p[] = $src_img;
if($i2>=5) {
$arr_photos[] = $arr_p;
$arr_p = array();
$i2=1;
} else {
$i2++;
}
}
$arr_photos[] = $arr_p;
}
?>
|
|
Show Street View Here If Available
Listing Courtesy of =$rec['MLS_OFFICE_NAME']?>
endwhile ?>
include 'rightnav.php' ?>
include 'footer.php' ?>