Viewing file: index.php (5.04 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
//error_reporting(0);
include ("../include/functions.php");
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
getIndexRecord($current, $dataStr);
//And finally, we get the actual data that we need.
$priceType = substr($price, 0, 1);
if (ereg("[0-9]", $priceType)){
$thePrice = "$"."$price";
}
else $thePrice = " "."$price";
$thumbURL = $database == "makras" ? "../property_pics/$thumb" : "http://www.sfmkt.com/property_pics/$thumb";
$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_page2");
?>
<tr>
<td rowspan="2" width="100%" valign="top">
<img src="images/p_title.gif" width="470" height="24" alt="" border="0"><br>
<img src="images/sub_featured.gif" width="470" height="20" alt="" border="0">
<!--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");
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%">
<table cellpadding="15" cellspacing="0" border="0">
<tr>
<td valign="top"><img src="../common/images/spacer.gif" width="1" height="170" border="0" align="left"><?listingBorder("$thumbURL", "detail.php?dataStr=$dataStr¤t=$current");?></td>
<td valign="top" width="300">
<p class="title"><?echo $title?>
<p class="light"><?echo $intro?>
<p>Asking: <?echo $thePrice?><br><br>
<?print("<a href=\"detail.php?dataStr=$dataStr¤t=$current\">\n");?><img src="images/info.gif" width="125" height="43" border="0"></a>
</td>
</tr>
<tr>
<td colspan="2"><hr width="100%" align="center" size="1" noshade></td>
</tr>
<tr>
<td colspan="2" align="center"><a href="<?print("index.php?current=$prev&dataStr=$dataStr\n");?>" onmouseover="roll2('prev', 'on')" onmouseout="roll2('prev', 'off')""><img src="images/prev_off.gif" width="135" height="20" alt="" border="0" name="prev"></a> <a href="<?print("index.php?current=$next&dataStr=$dataStr\n");?>" 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");?>
|