<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Wasah</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta charset="utf-8">
    <!-- External CSS libraries -->
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="css/bootstrap-submenu.css">
    <link rel="stylesheet" type="text/css" href="css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="css/slider.css">
    <link rel="stylesheet" type="text/css" href="fonts/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="fonts/linearicons/style.css">
    <link rel="stylesheet" type="text/css" href="fonts/flaticon/font/flaticon.css">
    <link href="css/bootstrap-select.min.css" type="text/css" rel="stylesheet">
    <!-- Custom stylesheet -->
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <link rel="stylesheet" type="text/css" id="style_sheet" href="css/colors/default.css">
    <!-- Favicon icon -->
    <link rel="shortcut icon" href="img/favicon.gif" type="image/x-icon" >
    <!-- Google fonts -->
    <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800%7CPlayfair+Display:400,700%7CRoboto:100,300,400,400i,500,700">
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <link href="css/ie10-viewport-bug-workaround.css" rel="stylesheet">
    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script type="text/javascript" src="js/ie8-responsive-file-warning.js"></script><![endif]-->
<script type="text/javascript" src="js/ie-emulation-modes-warning.js"></script>
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]><script type="text/javascript" src="js/html5shiv.min.js"></script><script type="text/javascript" src="js/respond.min.js"></script><![endif]-->
  </head>
  <body>
    <div class="page_loader"> 
      <img src="img/loader.gif" alt="Loader">
    </div>
    <!-- Top Header start -->
    <?php include_once ("styl/vrchni_panel.php");?>
    <!-- Top Header end -->
    <!-- Main header start -->
    <?php include_once ("styl/panel.php");?>
    <!-- Main header end --> 
    <!-- Sub banner start -->
    <div class="sub-banner">
      <div class="overlay">
        <div class="container">
          <div class="row">
            <div class="col-md-12">
              <div class="breadcrumb-area">
              </div>
            </div>
          </div>
        </div>
      </div>
    </div> 
    <!-- Sub banner end -->
    
 
    <!-- Car grid start-->
    <div class="car-grid content-area">
      <div class="container">
        <div class="row">
          <!-- není potřeba <div class="col-lg-8 col-md-8 col-xs-12 col-md-push-4"> -->
            <!-- Block heading Start-->
            <div class="block-heading">
              <div class="row">
                <div class="col-lg-6 col-md-5 col-sm-5 col-xs-2">
                  <div class="section-heading">
                    <div class="media">
                      <div class="media-left"> 
                        <i class="flaticon-sedan-car-front"></i>
                      </div>
                      <div class="media-body">                                             <h4>EEC3</h4>
                        <div class="border">
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
               
              </div>
            </div>
            <!-- Block heading end -->
            <!-- Car grid start -->     
                  
<?php      //******************************************************VÝPIS AUT Z DATABÁZE*********************************
                include_once ("databaze/pripojit.php");
//$dotaz="SELECT * FROM auta";
$dotaz="SELECT * FROM auta WHERE oddeleni like '%EEC3%' ";

$vysledek = mysqli_query($link, $dotaz);
if(!$vysledek) {
    echo "error car_list";
    exit();
  }    
    $pocet = mysqli_num_rows($vysledek);
  for ($i = 0; $pocet > $i; $pocet=($pocet-2)) {
                	$radek=mysqli_fetch_object($vysledek);
             
                                        ?>        
             <div class="row">

                    <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 wow fadeInUp delay-03s">
                        <!-- Car box start-->
                        <div class="thumbnail car-box clearfix">
                            <div class="car-box-thumbnail">
                                <img src="<?php echo $radek->obrazek; ?>" alt="<?php echo $radek->model; ?>">
                            </div>
                            <!-- detail -->
                            <div class="caption detail">
                                <!-- Header -->
                                <header class="clearfix">
                                    <h5 class="title">
                                         <a target="_blank" href="Car_list_vypis.php?ID=<?php echo $radek->ID;  ?>">
                        <?php echo $radek->znacka." "; echo $radek->model; ?></a>   
                                    </h5>
                                </header>
                                <!-- paragraph -->
                                <!-- Facilities List -->
                                <div class="facilities-area">
                                    <ul class="facilities-list clearfix">
                                        <li>
                                    <i class="fa fa-info"></i>  
                                    <span> <?php echo $radek->infotainment; ?> </span>
                                </li>
                                <li>
                                    <i class="flaticon-gasoline-pump"></i>
                                    <span> <?php echo $radek->palivo; ?></span>
                                </li>
                                <li>
                                    <i class="flaticon-automatic-flash-symbol"></i>
                                     <span>  <?php echo $radek->prevodovka; ?></span>
                                </li>
                                <li>
                                    <i class="flaticon-road-with-broken-line"></i>
                                    <span><?php echo $radek->najeto_km; ?></span>
                                </li>
                                <li>
                                    <i class="fa fa-tags"></i>
                                    <span> <?php echo $radek->vybava; ?></span>
                                </li>
                                <li>
                                   <i class="fa fa-wifi"></i>  
                                    <span>   <?php echo $radek->propojeni; ?></span>
                                </li>
                                <li>
                                    <i class="flaticon-time"></i>
                                    <span><?php echo $radek->rok_vyroby; ?></span>
                                </li>
                                	<li>
                                            <i class="flaticon-road-with-broken-line"></i>
                                            <span>Vin:  <?php echo $radek->vin; ?></span>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <!-- Car box end-->
                    </div>
					
					
					   <?php 	$radek=mysqli_fetch_object($vysledek); 
             
             if ($radek->model=="") {}
             else {
             
             ?>
					<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 wow fadeInUp delay-03s">
                        <!-- Car box start-->
                        <div class="thumbnail car-box clearfix">
                            <div class="car-box-thumbnail">
                                <img src="<?php echo $radek->obrazek; ?>" alt="<?php echo $radek->model; ?>">
                            </div>
                            <!-- detail -->
                            <div class="caption detail">
                                <!-- Header -->
                                <header class="clearfix">
                                    <h5 class="title">
                                        <a target="_blank" href="Car_list_vypis.php?ID=<?php echo $radek->ID;  ?>">
                        <?php echo $radek->znacka." "; echo $radek->model; ?></a>
                                    </h5>
                                </header>
                                <!-- paragraph -->
                                <!-- Facilities List -->
                                <div class="facilities-area">
                                    <ul class="facilities-list clearfix">
                                       	<li>
                                            <i class="fa fa-info"></i> 
                                            <span><?php echo $radek->infotainment; ?></span>
                                        </li>
                                        <li>
                                            <i class="flaticon-gasoline-pump"></i>
                                            <span> <?php echo $radek->palivo; ?></span>
                                        </li>
                                        <li>
                                            <i class="flaticon-automatic-flash-symbol"></i>
                                            <span><?php echo $radek->prevodovka; ?></span>
                                        </li>
                                        <li>
                                            <i class="flaticon-road-with-broken-line"></i>
                                            <span><?php echo $radek->najeto_km; ?></span>
                                        </li>
                                        <li>
                                            <i class="fa fa-tags"></i>
                                            <span><?php echo $radek->vybava; ?></span>
                                        </li>
                                        <li>
                                          <i class="fa fa-wifi"></i>  
                                            <span><?php echo $radek->propojeni; ?></span>
                                        </li>
                                        <li>
                                            <i class="flaticon-time"></i>
                                            <span><?php echo $radek->rok_vyroby; ?></span>
                                        </li>
										<li>
                                            <i class="flaticon-road-with-broken-line"></i>
                                            <span>Vin:  <?php echo $radek->vin; ?></span>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <!-- Car box end-->
                    </div>  <?php } ?>
                </div>
             <?php } ?>   
            <!-- Car grid end-->

          </div>
          <div class="col-lg-4 col-md-4 col-xs-12 col-md-pull-8">
            <!-- Sidebar start-->
           
            <!-- Sidebar End-->
          </div>
        </div>
      </div>
    </div>
    <!-- Car grid end-->
    <!-- Footer start-->
    <?php include_once ("styl/spodek.php");?>
    <!-- Footer end-->
<script type="text/javascript" src="js/jquery-2.2.0.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/bootstrap-slider.js"></script>
<script type="text/javascript" src="js/wow.min.js"></script>
<script type="text/javascript" src="js/jquery.scrollUp.js"></script>
<script type="text/javascript" src="js/bootstrap-select.min.js"></script>
<script type="text/javascript" src="js/bootstrap-submenu.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script type="text/javascript" src="js/ie10-viewport-bug-workaround.js"></script>
    <!-- Custom javascript -->
<script type="text/javascript" src="js/app.js"></script>
  </body>
</html>