Jump to content

Link Not Working In FF or Safari??


roldahayes

Recommended Posts

<div class='infobar' style='margin-bottom:10px;'>

<a href='listings.php?<?php echo $pass_vars; ?>'>Back to Listings</a>

<div class='right'>
	<?php if($row[link_url]) echo "<a href='$row[link_url]' target='_blank'>$row[link_text]</a>  - "; ?>
	<a href="javascript:new_window('friend.php?id=<?php echo $_GET[id]; ?>', '700', '500');">Send to a Friend</a>  - 
	<a href="javascript:new_window('contact.php?id=<?php echo $_GET[id]; ?>', '700', '500');">Enquire about this vehicle</a>  - 
	<a href="javascript:new_window('print.php?id=<?php echo $_GET[id]; ?>', '700', '500');">Printable Page</a>
</div>

</div>

<table class='display' width='680' border='0' cellpadding='0' cellspacing='0'>

<tr>
	<td width='390' valign='top'>
		<?php
		if($row[images]) {

			if($row[images] > 1) echo "<a href=\"javascript:new_window('slideshow.php?id=$_GET[id]', '700', '550');\">";

			echo "<img class='none' name='large' src='images/$image_set[0]' alt=''/>";

			if($row[images] > 1) echo "</a><p style='text-align:center;margin:5px 0;padding:0;'>Click the photo above to view a slideshow.</p>";

			// if there is more than one image, display the others as thumbnails
			if($row[images] > 1) {

				echo "<table border='0' cellpadding='0' cellspacing='0'>";
				echo "<tr>";

				$n = 1;
				foreach($image_set as $image) {

					echo "<td style='padding-top:10px;' width='130' valign='top'>";
					echo "<a href=\"javascript:swap('large', '$image');\"><img class='none' src='thumbs/$image' alt=''/></a>";
					echo "</td>";

					if(!($n % 3) && $n < count($image_set)) echo "</tr><tr>";
					$n++;
				}

				echo "</tr>";
				echo "</table>";

				echo "<p style='margin-top:10px;'>Click the thumbnails above to view larger images.  
				The larger images may take a moment to load on slower internet connections.</p>";
			}

		} else {

			echo "<img src='common/no-photo-large.jpg' alt=''/>";

		}
		?>
	</td>

	<td width='20'><div style='width:20px;'></div></td>

	<td width='270' valign='top'>
		<table class='info' width='270' border='0' cellpadding='0' cellspacing='0'>
			<?php

			// general information
			echo "<tr><td class='title' colspan='2'>";
			if($row[model_year]) echo $row[model_year]." ";
			echo "$row[make] $row[model]</td></tr>";
			echo "<tr><td class='label'>Location:</td><td>$location[name]</td></tr>";

			echo "<tr><td>Availability:</td><td>";
			if($row[status] == 2) echo "<span class='alert'>".$status[$row[status]]."</span>";
			elseif($row[status] == 3) echo "<span class='error'>".$status[$row[status]]."</span>";
			else echo $status[$row[status]];
			echo "</td></tr>";

			if($row[stock]) echo "<tr><td>Stock Number:</td><td>$row[stock]</td></tr>";
			if($row[vin]) echo "<tr><td>$conf[vin]:</td><td>$row[vin]</td></tr>";
			if($row[cond]) echo "<tr><td>Condition:</td><td>$row[cond]</td></tr>";
			if($row[mileage_alt]) echo "<tr><td>Usage:</td><td>$row[mileage_alt]</td></tr>";
			elseif($row[mileage]) echo "<tr><td>$conf[units]:</td><td>".number_format($row[mileage])." $conf[units]</td></tr>";

			if($row[ebay_url]) echo "<tr><td>Price:</td><td><a href='$row[ebay_url]' target='_blank'><img class='none' src='common/ebay-logo.gif'/></a></td></tr>";
			elseif($row[price])	echo "<tr><td>Price:</td><td>".$conf[currency].number_format($row[price])."</td></tr>";
			elseif($row[price_alt]) echo "<tr><td>Price:</td><td>$row[price_alt]</td></tr>";
			else echo "<tr><td>Price:</td><td>Call for Price</td></tr>";
			if($row[sale]) echo "<tr><td>Sale Price:</td><td><span class='success'>".$conf[currency].number_format($row[sale])."</span></td></tr>";



			// salesperson information
			if($user[contact]) {

				echo "<tr><td colspan='2'><hr/></td></tr>";

				echo "<tr><td>Salesperson:</td><td>$user[name]</td></tr>";
				echo "<tr><td>Email Address:</td><td><a href=\"javascript:new_window('contact.php?id=$_GET[id]&mode=sales', '700', '500');\">Email Salesperson</a></td></tr>";
				if($user[phone]) echo "<tr><td>Phone Number:</td><td>$user[phone]</td></tr>";

			}

			echo "<tr><td colspan='2'><hr/></td></tr>";

			// additional details
			if($row[exterior]) echo "<tr><td>Exterior Color:</td><td>$row[exterior]</td></tr>";
			if($row[interior]) echo "<tr><td>Interior Color:</td><td>$row[interior]</td></tr>";
			if($row[doors]) echo "<tr><td>Doors:</td><td>$row[doors]</td></tr>";
			if($row[fuel]) echo "<tr><td>Fuel Type:</td><td>$row[fuel]</td></tr>";
			if($row[drive]) echo "<tr><td>Drive Train:</td><td>$row[drive]</td></tr>";

			// engine details
			if($row[engine]) echo "<tr><td>Engine:</td><td>$row[engine]</td></tr>";
			if($row[trans]) echo "<tr><td>Transmission:</td><td>$row[trans]</td></tr>";
			if($row[top_speed]) echo "<tr><td>Top Speed:</td><td>$row[top_speed]</td></tr>";
			if($row[horsepower]) echo "<tr><td>Horsepower:</td><td>$row[horsepower]</td></tr>";
			if($row[torque]) echo "<tr><td>Torque:</td><td>$row[torque]</td></tr>";
			if($row[towing]) echo "<tr><td>Towing Capacity:</td><td>$row[towing]</td></tr>";

			?>						
		</table>
		<p><br />
<br />
<br />
	  <img src="../images/tel.jpg" width="189" height="61" /></p></td>
</tr>

<?php 
// listing description
if($row[description]) {
	echo "<tr><td colspan='3'><hr/></td></tr>";
	echo "<tr><td colspan='3'>".nl2br($row[description])."</td></tr>";
}

// listing features
if($row[features]) {
	echo "<tr><td colspan='3'><hr/></td></tr>";
	echo "<tr><td colspan='3'>";
	$tmp = explode("\n", $row[features]);
	foreach($tmp as $key => $value) if(!trim($value)) unset($tmp[$key]); else $tmp[$key] = trim($value); // remove empty lines
	$tmp = array_unique($tmp); // remove duplicate entries
	$cnt = count($tmp);
	$num = ceil($cnt / 4);
	echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>";
	echo "<tr>";
	echo "<td style='text-align:left;' width='25%' valign='top'><ul>";
	$n = 1;
	foreach($tmp as $value) {
		echo "<li>$value</li>";
		if($n % $num == 0 && $n < $cnt) echo "</ul></td><td style='text-align:left;' width='25%' valign='top'><ul>";
		$n++;
	}
	echo "</ul></td></tr>";
	echo "</table>";
	echo "</td></tr>";
}
?>

</table>
<div class='infobar' style='margin-top:10px;'>

<a href='listings.php?<?php echo $pass_vars; ?>'>Back to Listings</a>

<div class='right'>
	<?php if($row[link_url]) echo "<a href='$row[link_url]' target='_blank'>$row[link_text]</a>  - "; ?>
	<a href="javascript:new_window('friend.php?id=<?php echo $_GET[id]; ?>', '700', '500');">Send to a Friend</a>  - 
	<a href="javascript:new_window('contact.php?id=<?php echo $_GET[id]; ?>', '700', '500');">Enquire about this vehicle</a>  - 
	<a href="javascript:new_window('print.php?id=<?php echo $_GET[id]; ?>', '700', '500');">Printable Page</a>
</div>

</div>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.