<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>{if $viewsingle}{foreach item="records" from=$singlelistdata}{$records.year} {$records.make} {$records.model}{/foreach}{/if} -- Window Poster</title>

<meta name="description" content="{$smarty.const.DESCRIPTION}" />
<meta name="keywords" content="{foreach item="features" from=$featurelist}{foreach item="data" from=$records.features}{if $features.id eq $data}{$features.features},{/if}{/foreach}{/foreach}{$smarty.const.KEYWORDS}" />
<meta name="robot" content="index,follow" />
<meta name="copyright" content="Copyright © {$smarty.const.SITE_NAME} All Rights Reserved." />
<meta name="revisit-after" content="14" />

<link href="./style/style.css" rel="stylesheet" type="text/css" media="screen" />
<link href="./style/pp_style.css" rel="stylesheet" type="text/css" media="print" />

</head>

<body>
{if $viewsingle}
{foreach item="records" from=$singlelistdata}

<div id="pageContainer">
	<div id="header">
	</div>

<div id="poster">
<table width="90%"  border="0" cellspacing="0" cellpadding="4">
  <tr>
    <td width="200" rowspan="3" valign="top">
	<h2> {$smarty.const.FEATURES}</h2>
		<ul>
		{foreach item="features" from=$featurelist}
			{foreach item="data" from=$records.features}
			{if $features.id eq $data}
				<li>{$features.features}</li>
			{/if}
			{/foreach}
		{/foreach}
		</ul>
	</td>
    <td colspan="2" valign="top">
	
	<h1 class="center-align">{$records.listing_condition} {$records.year} {$records.make} {$records.model}</h1>

	</td>
    </tr>
  <tr>
    <td valign="top">
	{if $records.engine}
		<strong>{$smarty.const.ENGINE}</strong> {$records.engine}<br />
	{/if}
	{if $records.mileage}
		<strong>{$smarty.const.MILEAGE}</strong> {$records.mileage|number_format:0:".":","}<br />
	{/if}
	{if $records.trans}
		<strong>{$smarty.const.TRANS}</strong> {$records.trans}<br />
	{/if}
	</td>
    <td valign="top">
			{if $records.vehicle_type}
				<strong>{$smarty.const.TYPE}</strong> {$records.vehicle_type}<br />
			{/if}
			{if $records.doors}
				<strong>{$smarty.const.DOORS}</strong> {$records.doors}<br />
			{/if}
			{if $records.drive_train}
				<strong>{$smarty.const.DRIVETRAIN}</strong> {$records.drive_train}<br />
			{/if}
			{if $records.mpg}
				<strong>{$smarty.const.MPG}</strong> {$records.mpg}<br />
			{/if}
	</td>
  </tr>
  <tr>
    <td colspan="2">
	
	<h2> {$smarty.const.DETAILS}</h2>
			<p class="longtext">
			<strong>{$smarty.const.ADDDESC}</strong><br />
				{$records.adddesc|badwords}
			</p>

			{if $largeIMG}
				<div class="center-align"><img id="mainimage" src="{if $records.sold}image.php?pic={/if}{$largeIMG}" alt="Selected Image" /></div>
			{elseif $records.images}
				{foreach item="image" from=$records.images}
					{if $image.mainimage}
						<div class="center-align"><img id="mainimage" src="{if $records.sold}image.php?pic={/if}{$image.imagepath}" alt="{if $image.imagepath}Main {/if}Image" /></div>
					{/if}
				{/foreach}
			{/if}

			{if $sellerinfo}
			<h3>{$smarty.const.SELLER_INFO}</h3>
			{foreach item="seller" from=$sellerinfo}
				<p class="longtext">{$seller.first_name} {$seller.last_name}
				</p>
			{/foreach}
			{/if}

		<h2 class="center-align">{$smarty.const.PRICE} {$smarty.const.CURRENCY_SYMBOL}{$records.price|number_format:2:".":","}</h2>
		
	</td>
    </tr>
</table>
</div>
{/foreach}
{/if}

<div id="footer">
<div id="bottomcontainer">

	<div class="boxlt">
	  <p>Powered by <a href="http://www.openautoclassifieds.com/" style="color:white">Open Auto Classifieds</a></p>
	</div>
	<div class="boxrt">
	  <p>{$smarty.const.COPYRIGHT} <a href="{$smarty.const.SITE_URL}" style="color:white">{$smarty.const.SITE_NAME}</a></p>
	</div>

  </div>
 </div>
</div>
</body>
</html>