All pastes #775565 Raw Edit

Something

public text v1 · immutable
·published 2007-11-15 17:23 UTC
rendered paste body
<style>
ul#userinfo {
	list-style-type: none;
	background:#5A85CF;
	border-bottom: 1px solid #5A85CF;
	margin: 0 auto;
	text-align:center;
}
ul#userinfo li {
text-align:center;
	margin: 2px 2px 0 0px;
	border: 1px solid #5A85CF;
	color:#FFF;
	background: #5A85CF;
	display:inline;
	font-size: 10px;
	padding:0;
	}
ul#userinfo li strong {
	font-size:11px;
	}
</style>

	<link rel="stylesheet" href="/includes/css/previewPopUp.css" type="text/css" media="all">

<div class="title"><a href="/home.page">Home</a> &raquo; <a href="/clients/buyers/index.page">Buyers</a> &raquo; <a href="/clients/buyers/index.page?client=<?=$clientId?>">Profile</a> &raquo; Offers/Deals</div>
<div class="frame">
	<ul id="subnavigation">
		<li><a href="detail.page?client=<?=$clientId?>">Profile</a></li>
		<li><a href="appointments.page?client=<?=$clientId?>">Appointments</a></li>
		<li><a href="deals.page?client=<?=$clientId?>">Offers/Deals</a></li>
		<li><a href="calendar.page?client=<?=$clientId?>">Calendar</a></li>
		<li><a href="ratings.page?client=<?=$clientId?>">Buildings/Apartments</a></li>		
        <li><a href="map.page?client=<?=$clientId?>">Map</a></li>
		<li  class="active"><a href="recommended.page?client=<?=$clientId?>">Recommended Listings</a></li>	
	</ul>
	<div style="text-align:center;height:20px;margin: 0 10px;padding-top:5px;background:#5A85CF;">
		<ul id="userinfo">
			<li><strong>Name:</strong> <?=$rowBrokerClient['CLIENT_NAME']?></li> 
			<li><strong>Home:</strong> <?=$rowBrokerClient['CLIENT_PHONE']?></li>
			<li><strong>Cell:</strong> <?=$rowBrokerClient['CLIENT_CELL']?></li>
			<li><strong>Bedrooms:</strong> <?=$rowBrokerClient['CLIENT_BEDROOM']?></li>
			<li><strong>Budget:</strong> $<?=number_format($rowBrokerClient['CLIENT_MAX_BUDGET'])?></li>
			<li><strong>Follow up:</strong> <?=$rowBrokerClient['CLIENT_FOLLOW_UP']?></li>
			<li><strong>Last login:</strong> <?=$rowBrokerClient['CLIENT_LOGIN']?></li>
		</ul>
	</div>
	
<div id="content" style="border-top:0;padding-top:2px;">
<div style="clear:left;float:none;height:20px;"></div>

<h1>Recommended Listings</h1>
<div style="clear:left;float:none;height:20px;"></div>
<table class="sortable" id="activeListings" cellpadding="2" cellspacing="1" style="margin: 5px auto;width:99%;">
				<tr class="th">
					<th >Apt.</th><th>Address</th><th>Beds</th><th>Sq. Ft.</th><th>Sale Price</th><th>Price/Sq. Ft.</th><th> Maintenance/CC</th><th>RE Tax</th><th>Status</th><th>Date Update</th><th>Agent</th>				
				</tr>
<?
if(!empty($lists)){
$i = 0;
foreach( $lists as $line )
{
if(!empty($line[SQFT]) && !empty($line[SALE_PRICE]))
			$price_sq = number_format($line[SALE_PRICE]/$line[SQFT]);
else 	$price_sq = 0;	
			
if(!empty($line[BEDROOM]) && ($line[BEDROOM] != "Studio") && ($line[BEDROOM] != "Loft") ){
				$bed = preg_replace('/[a-zA-Z]/',' ',$line[BEDROOM]);	
			}
?>
	<tr class="td <?=(++$i%2==0)?'highlight':''?>" >			
	     <td><a href="javascript: popUpNew2('Global', '<?=$line["LISTING_ID"]?>', 'previewListing', '620');"><?=(!empty($line[UNIT]))?"$line[UNIT]":"-";?></a></td>
		 <td><?=$line[ROWADDRESS]?></td>
	     <td><?=(!empty($bed))?"$bed":"-";?></td>
		 <td><?=(!empty($line[SQFT]))?"$line[SQFT]":"-";?></td>
		 <td><?=(!empty($line[SALE_PRICE]))?"$".number_format($line[SALE_PRICE]):"-";?></td>
		 <td><?=(!empty($price_sq))?"$".$price_sq:"-";?></td>
		 <td><?=(!empty($line[MAINTENANCE]))?"$".number_format($line[MAINTENANCE]):"-";?></td>
		 <td><?=(!empty($line[TAX]))?"$".number_format($line[TAX]):"-";?></td>
		 <td><?=(!empty($line[STATUS_ID]))?"Active":"Inactive";?></td>
		 <td><?=(!empty($line[STAMP_DATE]))?"$line[STAMP_DATE]":"-";?></td>
		 <td><?=$line[AGENT_NAME]?></td>
	</tr>
			 	
<? }
} else{?>
<tr><td colspan="12" style="padding:12px;color:red">We couldn't find any of the listings that match the buyer's criteria.</td></tr>
<?}?>
</table>
</div>