<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <?php include("includes/header.php");?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title>Proyecto dpoo</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="iecss.css" />
<![endif]-->
<script language="javascript"> 
function enviar() { 
document.formulario.submit(); 
return false 
} 
</script> 
<script type="text/javascript" src="js/boxOver.js"></script>
<script type="text/javascript" src="mootools-release-1.11.js"></script>
<script type="text/javascript" src="thumbnoo.js"></script>
</head>
<body>

<div id="main_container">
	<div class="top_bar">
    	<div class="top_search">
        	<div class="search_text"><a href="index.php?ad=">Busqueda avanzada</a></div>
            <form action="index.php" method="GET">
            <input type="text" class="search_input" name="ad" />
            <input type="submit" src="images/search.gif" /></form>

           
        </div>
    
    </div>
	<div id="header">
        
        <div id="logo">
            	    </div>
        
        <div class="oferte_content">
        	<div class="top_divider"><img src="images/header_divider.png" alt="" title="" width="1" height="164" /></div>
        	<div class="oferta">
            
           		<div class="oferta_content">
                	
                	
                    <div class="oferta_details">
                            <div class="oferta_title"></div>
                            <div class="oferta_text">

                            </div>
 
                    </div>
                </div>
                <div class="oferta_pagination">
                              
                </div>        

            </div>
            <div class="top_divider"><img src="images/header_divider.png" alt="" title="" width="1" height="164" /></div>
        	
        </div> <!-- end of oferte_content-->
        

    </div>
    
   <div id="main_content"> 
   
            <div id="menu_tab">
            <div class="left_menu_corner"></div>
                    <ul class="menu">
                         <li><a href="index.php" class="nav1">  Home </a></li>
                         
                         <li class="divider"></li>
                         <li><a href="documentacion.html" class="nav6">Contact Us</a></li>
                         <li class="divider"></li>
                         <li class="currencies">
                         </li>
                    </ul>

             <div class="right_menu_corner"></div>
            </div><!-- end of menu tab -->
            
    <div class="crumb_navigation">
   
    
    </div>        
    
    
   <div class="left_content">
    <div class="title_box">A&ntilde;o</div>
    
        <ul class="left_menu">
        <li class="odd"><a href="index.php?anio=2010">2010</a></li>
        <li class="even"><a href="index.php?anio=2009">2009</a></li>
         <li class="odd"><a href="index.php?anio=2008">2008</a></li>
         <li class="odd"><a href="index.php?anio=2007">2007</a></li>
        <li class="even"><a href="index.php?anio=2006">2006</a></li>
         <li class="odd"><a href="index.php?anio=2005">2005</a></li>
         <li class="odd"><a href="index.php?anio=2004">2004</a></li>
        <li class="even"><a href="index.php?anio=2003">2003</a></li>
         <li class="odd"><a href="index.php?anio=2002">2002</a></li>
         <li class="odd"><a href="index.php?anio=2001">2001</a></li>
        <li class="even"><a href="index.php?anio=2000">2000</a></li>
         <li class="odd"><a href="index.php?anio=old">Antes</a></li>
        </ul> 
        
        
     
   
        
    
   </div><!-- end of left content -->
   
   
   <div class="center_content">
   	<div class="center_title_bar">Latest Products</div>
    
    	<?php
		$i = new vehiculo();
		
		if(isset($_GET["anio"])){
			$anio=$_GET["anio"];
			if($anio!='old'){
			$i = $i->getbusca_vehiculo("anio",$anio);
			}
			else{$i = $i->getbusca_vehiculoantiguo();}
							
		} elseif(isset($_GET["marca"])){
			$marca=$_GET["marca"];
			$i = $i->getbusca_vehiculo("marca",$marca);
		}
		elseif(isset($_GET["ad"])){
			$busca=$_GET["ad"];
			$i = $i->getbusca_avanzada($busca);
		}
		else{
				$i = $i->getvehiculos_fecha();
		}
				while($ahora=current($i)){?>
  	<div class="prod_box">
        	<div class="top_prod_box"></div>
            <div class="center_prod_box">            
                 <div class="product_title"><a href="details.php?id=<?php echo $ahora->getid();?>"><?php echo $ahora->getmarca();?> <?php echo $ahora->getmodelo();?></a></div>
                 <div class="product_img"><a href="details.php?id=<?php echo $ahora->getid();?>"><a <img src="<?php echo $ahora->getfoto();?>" width="150" height="120" class="thumbnoo h:374 w:500" style="float: center" /></a></a></div>
                 <div class="prod_price"><span class="blue">aņo <?php echo $ahora->getanio();?> </span> <span class="price">$<?php echo $ahora->getprecio();?></span></div>                        
            </div>
            <div class="bottom_prod_box"></div>             
            <div class="prod_details_tab">
            <a href="#" title="header=[Add to cart] body=[&nbsp;] fade=[on]"><img src="images/cart.gif" alt="" title="" border="0" class="left_bt" /></a>
            <a href="#" title="header=[Specials] body=[&nbsp;] fade=[on]"><img src="images/favs.gif" alt="" title="" border="0" class="left_bt" /></a>
            <a href="#" title="header=[Gifts] body=[&nbsp;] fade=[on]"><img src="images/favorites.gif" alt="" title="" border="0" class="left_bt" /></a>           
            <a href="details.php?id=<?php echo $ahora->getid();?>" class="prod_details">details</a>            
            </div>                     
        </div> 
  
  
			  <?php next($i);	 }?>
			
		

    
 
 
    
    
   
   </div><!-- end of center content -->
   
   <div class="right_content">
   	
    <div class="title_box">Marcas</div>
    
        <ul class="left_menu">
        <li class="odd"><a href="index.php?marca=chevrolet">Chevrolet</a></li>
        <li class="even"><a href="index.php?marca=kia">Kia</a></li>
        <li class="odd"><a href="index.php?marca=subaru">Subaru</a></li>
        <li class="even"><a href="index.php?marca=ford">Ford</a></li>
        <li class="odd"><a href="index.php?marca=renault">Renault</a></li>
        <li class="even"><a href="index.php?marca=peugeot">Peugeot</a></li>
        <li class="odd"><a href="index.php?marca=hyundai">Hyundai</a></li>
        <li class="even"><a href="index.php?marca=Aston Martin">Aston Martin</a></li>
        <li class="even"><a href="index.php?marca=dodge">Dodge</a></li>
        <li class="even"><a href="index.php?marca=ferrari">Ferrari</a></li>
        <li class="even"><a href="index.php?marca=Cadillac">cadillac</a></li>
        <li class="even"><a href="index.php?marca=Jaguar">Jaguar</a></li>
       <li class="even"><a href="index.php?marca=porsche">Porsche</a></li>
     </ul>   
   </div><!-- end of right content -->   
   
            
   </div><!-- end of main content -->
   
   
   
   <div class="footer">
   

        <div class="left_footer">
        <img src="images/footer_logo.png" alt="" title="" width="170" height="49"/>
        </div>
        
        <div class="center_footer">
                </div>
        
        <div class="right_footer">
        <a href="index.php">home</a>
         <a href="documentacion.html">contact us</a>
        </div>   
   
   </div>                 


</div>
<!-- end of main_container -->
</body>
</html>