<html>
<head>
<title>##@TABLE.strCaption h##</title>
<link REL="stylesheet" href="include/style.css" type="text/css">
<!--[if IE]>
<link REL="stylesheet" href="include/styleIE.css" type="text/css">
<![endif]-->
{BEGIN style_block}
<style>
#toplinks_caption{$id} {padding:0px 30px;font-size:12px;font-weight:bold;}
#mastertable_block{$id} {margin-left:50px;margin-top:10px}
#toplinks_block{$id} {width:100%;padding:3px;padding-left:30px;text-align:center;}
#toplinks_block{$id} span {padding-left:5px;width:20%}
#search_records_block{$id} { padding-left:20px;}
#search_records_block{$id} > * {vertical-align:middle;}
#search_records_block{$id} select {margin:3px 0px;}
#login_block{$id} {padding:10px; margin-bottom:3px}
#login_block{$id} * {margin-left:5px; padding:5px 0px;}
#menu_block{$id} {padding:10px;}
#menu_block{$id} * {list-style-type:none;}
#menu_block{$id} IMG {vertical-align:middle;}
#records_block{$id} {margin-left:203px;}
#record_controls{$id} {padding:10px 10px;}
#record_controls{$id} span {padding-left:10px;}
#recordcontrolsadd_block{$id} {padding:10px 10px;border: solid; border-width: 1px; border-color: #C0C0C0;}
#recordcontrolsadd_block{$id} span {padding-left:10px;}
#grid_block{$id} {border:none;}
.grid_recordheader{$id} {padding:0 5px 5px;vertical-align:top;}
.grid_recordheader{$id} * {margin:0px 5px; vertical-align:top;}
body {margin-left:10px;}
</style>
{END style_block}
</head>
<body topmargin=5 {$bodyattrs} class="shade">
{BEGIN body}
{$header}

<div id="recordcontrolsadd_block{$id}" class="blackshade">
##if @TABLE.bAdd || @TABLE.bInlineAdd##
{BEGIN newrecord_controls}
<span id="newrecords_block">
##if @TABLE.bAdd##
{BEGIN add_link}
<span>
 	<a href="##@TABLE.strShortTableName h##_add.##@ext##">##message ADD_NEW##</a>
</span>
{END add_link}
##endif##
{END newrecord_controls}
##endif##
{BEGIN search_records_block} 
<span id="search_records_block{$id}">
    ##if Fields[bSearch=1].len##
    {BEGIN searchform}
    <span class="blackshade" id="searchform{$id}">
        <b>##message SEARCH_FOR##: </b> &nbsp;&nbsp;&nbsp;
        {BEGIN searchform_field}
        <select id="ctlSearchField{$id}">
        <option value="">##message ANY_FIELD##</option>
        ##foreach Fields as @f filter @f.bSearch order @f.nAdvSearchPageOrder##
        <option value="##@f.strName h##" {$##@f.strName g##_searchfieldoption}>##@f.strLabel h##</option>
        ##endfor##
        </select>
        {END searchform_field}
        &nbsp;
        {BEGIN searchform_option}
        <select id="ctlSearchOption{$id}">
        <option value="Contains" {$Contains_searchtypeoption}>##message CONTAINS##</option>
        <option value="Equals" {$Equals_searchtypeoption}>##message EQUALS##</option>
        <option value="Starts with ..." {$Starts_with_____searchtypeoption}>##message STARTS_WITH##</option>
        <option value="More than ..." {$More_than_____searchtypeoption}>##message MORE_THAN##</option>
        <option value="Less than ..." {$Less_than_____searchtypeoption}>##message LESS_THAN##</option>
        <option value="Equal or more than ..." {$Equal_or_more_than_____searchtypeoption}>##message EQUAL_OR_MORE##</option>
        <option value="Equal or less than ..." {$Equal_or_less_than_____searchtypeoption}>##message EQUAL_OR_LESS##</option>
        <option value="Empty" {$Empty_searchtypeoption}>##message EMPTY##</option>
        </select>
        {END searchform_option}
        &nbsp;
        {BEGIN searchform_text}
        <input type=text size=20 {$searchfor_attrs}>
        {END searchform_text}
        &nbsp;
        {BEGIN searchform_search}
        <input type=button class="button" value="##message SEARCH##" {$searchbutton_attrs}>
        {END searchform_search}
        &nbsp;	
        {BEGIN searchform_showall}	
        <input type=button class="button" value="##message SHOW_ALL##" {$showallbutton_attrs}>
        {END searchform_showall}
    </span>
    {END searchform}
    ##endif##
    {BEGIN details_block}
    <span>##message DETAILS_FOUND##: <b>{$records_found}</b>&nbsp;&nbsp;&nbsp;&nbsp;</span>
    {END details_block}
    {BEGIN pages_block}
    <span>##message PAGE1## <b>{$page}</b> ##message PAGE2## <b>{$maxpages}</b></span>
    {END pages_block}

    &nbsp;&nbsp;&nbsp;&nbsp;
    {BEGIN recordspp_block}
    <span id="recordspp_block{$id}">
    ##message RECORDS_PP##:
    <select {$recordspp_attrs}>
    <option value="10" {$rpp10_selected}>10</option>
    <option value="20" {$rpp20_selected}>20</option>
    <option value="30" {$rpp30_selected}>30</option>
    <option value="50" {$rpp50_selected}>50</option>
    <option value="100" {$rpp100_selected}>100</option>
    <option value="500" {$rpp500_selected}>500</option>
    </select>
    </span>
    {END recordspp_block}
</span>
{END search_records_block} 
</div>

{BEGIN toplinks_block}
<div id="toplinks_block{$id}">

##if Fields[bAdvancedSearch=1].len##
{BEGIN asearch_link}
<span><a href="##@TABLE.strShortTableName h##_search.##@ext##">##message ADVANCED_SEARCH##</a></span>
{END asearch_link}
##endif##

##if @TABLE.bExportTo##
{BEGIN export_link}
<span><a href="##@TABLE.strShortTableName h##_export.##@ext##">##message EXPORT_RESULTS##</a></span>
{END export_link}
##endif##

##if @TABLE.bPrinterFriendly##
{BEGIN print_link}
<span>
<a target="_blank" href="##@TABLE.strShortTableName h##_print.##@ext##">
<img src="images/printer.gif" border=0></a>&nbsp;
<a href="##@TABLE.strShortTableName h##_print.##@ext##">##message PRINTER_FRIENDLY##</a></span>
{END print_link}

<span><a href="login.##@ext##">Admin area</a></span>

##endif##

</div>
{END toplinks_block}

<div id="usermessage{$id}" class="message"></div>


{BEGIN grid_block}
<table name="maintable" cellspacing=0 cellpadding=0 border=0 id="grid_block{$id}" width="95%" align="center">
<tr>
<td valign=top width=150 align=left>
<img src="images/logo.gif" height=60 width=100><br>
<br>
{$Cars_Search}
</td>
<td>
{BEGIN grid_row}
<table width=100% border=0 cellspacing=0>
{BEGIN grid_record}
<tr><td>
<table width=100% border=0 cellspacing=0 cellpadding=5 style="border: solid; border-width: 1px; border-color: #C0C0C0;BACKGROUND-COLOR: #ffffff;">
<tr valign="top"> 
<td><FONT size=6>{$Make_value}</font>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<em><FONT size=4>{$Model_value}</font></em></td>
<td width=30 rowspan=5>&nbsp;</td>
<td rowspan=5><a border=0 {$view_attrs}>{$Picture_value}</a></td>
</tr>
<tr>
<td><font size=2>Year of make&nbsp;-&nbsp;<b>{$YearOfMake_value}</b></font></td>
</tr>
<tr>
<td><font size=2>Color&nbsp;-&nbsp;<b>{$color_value}</b></font></td>
</tr>
<tr>
<td>{$descr_value}</td>
</tr>
##foreach Fields as @f filter bListPage && @f.strName!="Picture" && @f.strName!="Make" && @f.strName!="Model" && @f.strName!="YearOfMake" && @f.strName!="Horsepower" && @f.strName!="color" && @f.strName!="descr" order nListPageOrder##
<tr>
<td colspan=2>
{$##@f.strName g##_value}
</td>
</tr>
##endfor##
<tr><td colspan=3 style="HEIGHT: 10px"></td></tr>
<tr><td colspan=3 align=center>
{BEGIN view_link}
<a {$view_attrs}><b>More info</b></a>
{END view_link}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="carsform_add.##@ext##?{$quote_attrs}"><b>Get a quote</b></a>
</td></tr>
</table>
</td></tr>
<TR style="HEIGHT:10px;border:none;">
<TD colSpan=3>&nbsp;</TD></TR>
{END grid_record}
</table>
{END grid_row}

</td></tr></table>
{END grid_block}


{BEGIN pagination_block}
<p align=center class=toplist >{$pagination}</p>
{END pagination_block}

{BEGIN message_block}
<p align=center valign=middle class=toplist><b>{$message}</b></p>
{END message_block}
{$footer}
{END body}
</body>
</html>