Viewing file: index.php (8.52 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
include ("include/listing_functions.php");
//only do the full query the first time through if (!$dataStr){
makeListingsArray(); $current = 0; }
//otherwise, break up the data string and only query for the current listing getDetailRecord($current, $dataStr);
//And finally, we get the actual data that we need.
$mainPic_URL = $database == "makras" ? "../property_pics/$main_pic" : "http://www.sfmkt.com/property_pics/$main_pic"; if ($picture1){ $picture1 = $database == "makras" ? "../property_pics/$picture1" : "http://www.sfmkt.com/property_pics/$picture1"; } if ($picture2){ $picture2 = $database == "makras" ? "../property_pics/$picture2" : "http://www.sfmkt.com/property_pics/$picture2"; } if ($picture3){ $picture3 = $database == "makras" ? "../property_pics/$picture3" : "http://www.sfmkt.com/property_pics/$picture3"; } if ($picture4){ $picture4 = $database == "makras" ? "../property_pics/$picture4" : "http://www.sfmkt.com/property_pics/$picture4"; } $next = $current < ($arrayCount - 1) ? $current + 1 : 0; //if we're not at the end, then the next one is the next highest number. Else reset to zero $prev = $current > 0 ? $current - 1 : $arrayCount - 1;//same thing going the other way. $priceType = substr($price, 0, 1); if (ereg("[0-9]", $priceType)){ $thePrice = "$"."$price"; } else $thePrice = " "."$price";
if ($database == "makras"){
$agentarray[1] = array("Victor Makras", "victor@makrasrealestate.com"); $agentarray[2] = array("Timothy Huddleston", "timothy@makrasrealestate.com"); $agentarray[3] = array("Bea Jackson", "bea@makrasrealestate.com"); $agentarray[4] = array("Nick Kontonis ", "nick@makrasrealestate.com"); $agentarray[5] = array("Adela Penner", "adela1y2@pacbell.net"); $agentarray[6] = array("Chris Christoforidis ", "chrisacj@msn.com"); $agentarray[7] = array("Elizabeth Molony", "elizabeth@makrasrealestate.com"); $agentarray[8] = array("Richard Rovetti ", "rarovetti@yahoo.com"); $agentarray[9] = array("Elaine Passaris", "elaine@makrasrealestate.com"); $agentarray[10] = array("Mika Maheras", "mikamaheras@hotmail.com"); $agentarray[11] = array("Oren McEwen", "oren@makrasrealestate.com"); $agentarray[12] = array("Judith Larios", "judith@makrasrealestate.com"); $agentarray[13] = array("Michael McAuliffe", "michael@makrasrealestate.com");
} else{
$agentarray[1] = array("Jim Hurley", "jim@sfmkt.com"); $agentarray[2] = array("Sheila Hagen", "sheila@sfmkt.com");
}
$next = $current < ($arrayCount - 1) ? $current + 1 : 0; //if we're not at the end, then the next one is the next highest number. Else reset to zero $prev = $current > 0 ? $current - 1 : $arrayCount - 1;//same thing going the other way.
include ("../include/start_page"); ?>
<tr> <td rowspan="2" width="100%" valign="top"> <br> <div class="page_title"><?=$page_title?></div> <div class="page_subtitle"><?=$page_subtitle?></div> <!--Begin content table, starting with graphic formatting-->
<table bgcolor="#0b3010" width="100%" align="center" border="0" cellpadding="0" cellspacing="0"> <tr> <td rowspan="5" bgcolor="5e6e60" height="1"><img src="../common/images/spacer.gif" width="1" height="1" alt="" border="0"></td> <td colspan="5" bgcolor="5e6e60" height="1"><img src="../common/images/spacer.gif" width="1" height="1" alt="" border="0"></td> <td rowspan="5" bgcolor="5e6e60" height="1"><img src="../common/images/spacer.gif" width="1" height="1" alt="" border="0"></td> </tr> <tr> <td colspan="3"><img src="../common/images/spacer.gif" width="20" height="20" alt="" border="0"></td> </tr> <tr> <td><img src="../common/images/spacer.gif" width="20" height="20" alt="" border="0"></td>
<script language="JavaScript" type="text/javascript"> <!--hide
//pre-load images function preLoad(){ if (document.images){
var names = new Array("next", "prev", "back");
for (var i=0; i < names.length; i++) { var navOn = new Array(); navOn[i] = new Image(); navOn[i].src = "images/" + names[i] + "_on.gif"; } } } //rollover function roll2(name, state){
if (document.images){ eval("document." + name + ".src = " + "\"images/" + name + "_" + state + ".gif\"");
} }
// unhide --> </script>
<!--actual content goes in this td--> <td width="90%" align="center"> <!--main picture with border--> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td colspan="3" bgcolor="#bd9d27" height="2"><img src="../common/images/spacer.gif" width="1" height="2"></td> </tr> <tr> <td bgcolor="#bd9d27"><img src="../common/images/spacer.gif" width="2" height="2"></td> <td><img src="<?echo $mainPic_URL?>" width="250" vspace="4" hspace="4" border="0"></td> <td bgcolor="#bd9d27"><img src="../common/images/spacer.gif" width="2" height="2"></td> <td rowspan="2"><img src="../common/images/spacer.gif" width="20" height="2"></td> </tr> <tr> <td colspan="3" bgcolor="#bd9d27" height="2"><img src="../common/images/spacer.gif" width="1" height="2"></td> </tr> </table> <br clear="all"> <table border="0" cellpadding="0" cellspacing="5"> <tr> <td colspan="2"><p class="title"><br><?echo $title?></p></td> </tr> <? for ($i = 1; $i <=5; $i++){ $bullet = NULL; eval ("\$bullet = \$bullet$i;"); if ($bullet){ print("\t\t\t<tr>\n"); print("\t\t\t\t<td valign=\"top\"><img src=\"images/dot.gif\" align=\"middle\" width=\"4\" height=\"4\" vspace=\"5\" border=\"0\"></td>\n"); print("\t\t\t\t<td valign=\"top\">$bullet</td>\n"); print("\t\t\t</tr>\n"); } } ?> <tr> <td></td> <td> <?print($show_price != "no" ? "<br><br>Asking: $thePrice\n" : NULL);?> <?=strlen($vtourURL) > 3 ? '<br><br><a href="http://'.str_replace('http://', '', $vtourURL).'" target="_blank">» Visit Property Website</a>' : NULL;?> </td> </tr> </table> <br clear="all"> <table border="0" cellpadding="0" cellspacing="8"> <tr> <? for ($i = 1; $i <= 4; $i++){ $secondary_pic = NULL; eval ("\$secondary_pic = \$picture$i;"); if ($secondary_pic){ print("\t\t\t<td align=\"center\"><img src=\"$secondary_pic\" width=\"120\" border=\"0\"></td>\n"); } } ?> </tr> <tr> <td colspan="4"><p><?echo $description?>
<p>Listing Agent: <?echo $agentarray[$bullet6][0]?><br> <a href="mailto:<?echo $agentarray[$bullet6][1]?>" class="goldlink"><?echo $agentarray[$bullet6][1]?></a><br><br> <hr width="90%" size="1" noshade></td> </tr> <tr> <td> <a href="<?echo "index.php?current=$prev&dataStr=$dataStr"?>" onmouseover="roll2('prev', 'on')" onmouseout="roll2('prev', 'off')"><img src="images/prev_off.gif" width="135" height="20" alt="" border="0" name="prev"></a> </td> <td align="center"><!--<a href="<?echo "index.php?current=$current&dataStr=$dataStr"?>" onmouseover="roll2('back', 'on')" onmouseout="roll2('back', 'off')"><img src="images/back_off.gif" width="111" height="14" alt="" border="0" name="back"></a>--></td> <td> <a href="<?echo "index.php?current=$next&dataStr=$dataStr"?>" onmouseover="roll2('next', 'on')" onmouseout="roll2('next', 'off')"><img src="images/next_off.gif" width="113" height="20" alt="" border="0" name="next"></a> </td> </tr> </table> </td> <!--End of content cell--> <!--Formatting for table with light color outline--> <td><img src="../common/images/spacer.gif" width="20" height="20" alt="" border="0"></td> </tr> <tr> <td colspan="3"><img src="../common/images/spacer.gif" width="20" height="20" alt="" border="0"></td> </tr> <tr> <td colspan="5" bgcolor="5e6e60" height="1"><img src="../common/images/spacer.gif" width="1" height="1" alt="" border="0"></td> </tr> </table> </td> <!--this td stretches the content cell so it starts right below the pictures--> <td height="150" width="1"><img src="../common/images/spacer.gif" width="1" height="1" border="0"></td> </tr> <tr><!--logo at bottom--> <td valign="bottom"><a href="../index.php"><img src="../common/images/logo_med.gif" width="80" alt="" border="0" vspace="40" hspace="40" align="right"></a></td> <td width="1"></td> </tr>
<?include ("../include/end_page");?>
|