<!DOCTYPE html>
<html lang="cz">  
  <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" href="css/style_form.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>      
<?php 
    
    
    
        if (isset($_GET["ID"])) {  ?>        
    <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>    
    </div>    
    <!-- Sub banner end -->            
<?php 
 // *******************************Zápis do databáze START******************************   
    include_once ("databaze/pripojit.php"); 
      $z_id = htmlspecialchars($_GET["ID"]);
   if (isset($_GET["zmena_oddjmeno"])) {
      $z_oddjmeno = htmlspecialchars($_GET["zmena_oddjmeno"]);
      $z_oddpost = htmlspecialchars($_GET["zmena_oddpost"]);
      $z_oddemail = htmlspecialchars($_GET["zmena_oddemail"]);
      $z_oddtel = htmlspecialchars($_GET["zmena_oddtel"]);
      $z_informace = htmlspecialchars($_GET["zmena_informace"]);
      $z_znacka = htmlspecialchars($_GET["zmena_znacka"]);
      $z_model = htmlspecialchars($_GET["zmena_model"]);
      $z_infotainment = htmlspecialchars($_GET["zmena_infotainment"]);
      $z_rokvyroby = htmlspecialchars($_GET["zmena_rokvyroby"]);
      $z_spz = htmlspecialchars($_GET["zmena_spz"]);
      $z_vin = htmlspecialchars($_GET["zmena_vin"]);
      $z_barva = htmlspecialchars($_GET["zmena_barva"]);
      $z_prevodovka = htmlspecialchars($_GET["zmena_prevodovka"]);
      $z_palivo = htmlspecialchars($_GET["zmena_palivo"]);
      $z_vybava = htmlspecialchars($_GET["zmena_vybava"]);
       $z_najetokm = htmlspecialchars($_GET["zmena_najetokm"]);
      $z_obrazek = htmlspecialchars($_GET["zmena_obrazek"]);
	    $z_propojeni = htmlspecialchars($_GET["zmena_propojeni"]);
		$z_kalendar = htmlspecialchars($_GET["zmena_kalendar"]);
 
    $dotaz="UPDATE auta SET znacka ='".$z_znacka."', obrazek ='".$z_obrazek."', infotainment ='".$z_infotainment."', propojeni ='".$z_propojeni."', palivo ='".$z_palivo."', rok_vyroby ='".$z_rokvyroby."', vybava ='".$z_vybava."', model ='".$z_model."', spz ='".$z_spz."', vin ='".$z_vin."', barva ='".$z_barva."', prevodovka ='".$z_prevodovka."' , odd_jmeno ='".$z_oddjmeno."', odd_post ='".$z_oddpost."', odd_email ='".$z_oddemail."', odd_tel='".$z_oddtel."', kalendar ='".$z_kalendar."', informace ='".$z_informace."', najeto_km ='".$z_najetokm."'  WHERE ID='".$z_id."'";
      $vysledek = mysqli_query($link, $dotaz);
if(!$vysledek) {
    echo "errror uprava auta";
    exit();
  }         
   }
 
 // *******************************Zápis do databáze STOP******************************
  // *******************************Zápis do databáze parkování START******************************
       if (isset($_GET["zmena_parkovani"])) {
      $z_parkovani = htmlspecialchars($_GET["zmena_parkovani"]);
 
    $dotaz="UPDATE auta SET parkovani ='".$z_parkovani."'  WHERE ID='".$z_id."'";
      $vysledek = mysqli_query($link, $dotaz);
if(!$vysledek) {
    echo "errror uprava auta";
    exit();
  }         
   }
    // *******************************Zápis do databáze parkování STOP*****************************   
 
 $dotaz="SELECT * FROM auta WHERE ID='".$_GET["ID"]."'";
$vysledek = mysqli_query($link, $dotaz);
if(!$vysledek) {
    echo "error car_list?id";
    exit();
  }    
                	$radek=mysqli_fetch_object($vysledek);
                  
 
         ?>          
    <!-- **************************************************************** ZMĚNA AUTA START**************************--->          
    <form action="Car_list_vypis.php"  method="GET" id="uprava_auta">            
      <input type="hidden" name="ID" value="<?php echo $radek->ID;?>">         
      <!-- **************************************************************** ZMĚNA AUTA STOP**************************--->         
      <!-- Car details body start-->         
      <div class="car-details-body">             
        <div class="container">                   
          <div class="row">                         
            <div class="col-lg-12">                               
              <!-- Option bar start-->                                
              <div class="option-bar  details-option-bar clearfix">                                     
                <div class="row">                                           
                  <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">                                                 
                    <div class="section-heading">                                                       
                      <div class="media">                                                             
                        <div class="media-left">                                                                   
                          <i class="flaticon-sedan-car-front"></i>                                                             
                        </div>                                                             
                        <div class="media-body hidden-xs">                                        <h4>                            
                            <?php echo $radek->znacka." ".$radek->model; 
                            
                            if (isset($_GET["rezervace_odeslana"])) { echo " - !!!Rezervace odeslána!!!"; } 
                            
                            ?></h4> 
                                  									                              
                          <div class="border">                          
                          </div>                                                                   
                          <p>                            
                            <!-- EEC1 -->                          
                          </p>                                                             
                        </div>                                                       
                      </div>                                                 
                    </div>                                           
                  </div>                                                            
                </div>                               
              </div>                               
              <!-- Option bar end-->                          
            </div>                   
          </div>                   
          <div class="row">                         
            <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12">                               
              <div class="car-details sidebar-widget">                                     
                <!-- Car detail slider start-->                                      
                <div class="car-detail-slider simple-slider">                                           
                  <div id="carousel-custom" class="carousel slide" data-ride="carousel">                                                 
                    <div class="carousel-outer">                                                       
                      <!-- Wrapper for slides -->                                                        
                      <div class="carousel-inner">                                                             
                        <div class='item active'>                                                                   
                          <img src='<?php echo $radek->obrazek; ?>' class="thumb-preview" alt='<?php echo $radek->obrazek; ?>' />                                                             
                        </div>                                                       
                      </div>                                                                 </a>                                                 
                    </div>                                                                    
                    </ol>                                           
                  </div>                                     
                </div>                                     
                <!-- Car detail slider end-->                                      
                <br>                                     
                <!-- Car details end -->                                                           
                <!-- Panel box start -->                                      
                <div class="panel-box">                                           
                  <ul class="nav nav-tabs">                                                 
                    <li class="active">                      
                      <a href="#tab1default" data-toggle="tab" aria-expanded="true">Technik</a>                    
                    </li>                                                 
                    <li class="">                      
                      <a href="#tab2default" data-toggle="tab" aria-expanded="false">Parkování</a>                    
                    </li>                                                 
                    <li class="">                      
                      <a href="#tab3default" data-toggle="tab" aria-expanded="false">Informace</a>                    
                    </li> 
					  <li class="">                      
                      <a href="#tab4default" data-toggle="tab" aria-expanded="false">QR kód</a>                    
                    </li>
                    <li class="">                      
                      <a href="#tab5default" data-toggle="tab" aria-expanded="false">Rezervace</a>                    
                    </li>
                    <li class="">                      
                      <a href="#tab6default" data-toggle="tab" aria-expanded="false">Soubory</a>                    
                    </li> 
                    <li class="">                      
                      <a href="#tab7default" data-toggle="tab" aria-expanded="false">Kalendář</a>                    
                    </li> 
                  </ul>                                           
                  <div class="panel with-nav-tabs panel-default">                                                 
                    <div class="panel-body">                                                       
                      <div class="tab-content">                                                             
                        <div class="tab-pane fade active in" id="tab1default">                                                 
<?php if ($_SESSION["uzivatel"]->prava=='admin' || $_SESSION["uzivatel"]->prava=='superadmin' || $_SESSION["uzivatel"]->email==$radek->odd_email) 
                                                                                { ?>   						                           
                          <font  size="7" color="#4BA82E">                            
                            <input type="text" name="zmena_oddjmeno" value="<?php echo $radek->odd_jmeno;?>">                            
                          </font>  						<h5>                            
                            <input type="text" name="zmena_oddpost" value="<?php echo $radek->odd_post;?>"> </h5>						                           
                          <br>                                                                                                                                      <h3>                                                                    
                            <i class="fa fa-envelope"></i>                                                                                           
                            <input type="text" name="zmena_oddemail" value="<?php echo $radek->odd_email;?>"> 								                             
                            <br>                                 
                            <br>                                                                                 
                            <i class="fa fa-phone"></i>                                                                                           
                            <input type="text" name="zmena_oddtel" value="<?php echo $radek->odd_tel;?>">                                </h3>                                                             
                        </div>                                                             
                    <div class="tab-pane fade features" id="tab2default">
					    
									<br> <br>
                          <font  size="7" color="#4BA82E">Parkovací místo:                               
                            <?php echo $radek->parkovani;?>                           
                          </font>                                                    
<?php 
                                
                                } else {
                                
                                                                                    ?>                               
                          <font  size="7" color="#4BA82E">                            
                            <?php echo $radek->odd_jmeno;?>                          
                          </font>  						<h5>                            
                            <?php echo $radek->odd_post;?></h5>						                           
                          <br>                                                                                                                                                                                                                                                         <h3>                                                                    
                            <i class="fa fa-envelope"></i>                                                             
                            <a href="mailto: <?php echo $radek->odd_email;?>">                               
                              <?php echo $radek->odd_email;?></a>								                             
                            <br>                                 
                            <br>                                                                                 
                            <i class="fa fa-phone"></i>                                                             
                            <a href="tel:<?php echo $radek->odd_tel;?>">                               
                              <?php echo $radek->odd_tel;?></a>                                </h3>                                                             
                        </div>                                                             
                        <div class="tab-pane fade features" id="tab2default">									                           
                          <font  size="7" color="#4BA82E">Parkovací místo:                              
                            <?php echo $radek->parkovani;?>                           
                          </font>                                                                                     
                          <?php } ?>                                                                                               
                          <div class="sorting-options">	
                          						
 <form>
        </form>							


  <h2>   
<form action="Car_list_vypis.php" method="get" id="form1">
 <input type="hidden" name="ID" value="<?php echo $radek->ID;?>">   
  <select name="zmena_parkovani">
    <option value="A1">A1</option>  <option value="A2">A2</option><option value="A3">A3</option><option value="A4">A4</option>
    <option value="B1">B1</option> <option value="B2">B2</option> <option value="B3">B3</option> <option value="B4">B4</option>
    <option value="C1">C1</option> <option value="C2">C2</option> <option value="C3">C3</option> <option value="C4">C4</option>
    <option value="D1">D1</option><option value="D2">D2</option><option value="D3">D3</option><option value="D4">D4</option>
  </select>  
  <button type="submit" form="form1" value="Submit">Zaparkuj</button>    
</form>
  	</h2> 
          







		  
                            							                             
                            <br>                              
                            <br>								                                                                                      
                          </div>                                                             
                        </div>                                                             
                        <div class="tab-pane fade technical" id="tab3default">                                       
<?php if ($_SESSION["uzivatel"]->prava=='admin' || $_SESSION["uzivatel"]->prava=='superadmin' || $_SESSION["uzivatel"]->email==$radek->odd_email) 
                                                                                { ?>                                                             
                          <p>
<textarea name="zmena_informace"  cols="80%" rows="5%"><?php echo $radek->informace; ?></textarea>                            
                          </p>                                                                                    
                          <?php } else { ?>                                                                     
                          <p>                            
                            <?php echo $radek->informace;
                            ?>                          
                          </p>                                                                   
                          <?php } ?>                                                              
                        </div>  




                    <div class="tab-pane fade features" id="tab4default" >
                       <?php           
                       
                                    echo '<img src="phpqrcode/qr/'.$radek->qrcode.'">';
                       

                       
                        ?>              
                        </div>


<div class="tab-pane fade features" id="tab5default">
<div class="col-lg-10 col-md-15 col-sm-6 col-xs-12">
                <!-- Contact form start-->
                <div class="contact-form">
                    <div class="row">
                        <form action="rezervace_auta.php" method="GET">
                            <div class="col-lg-4 col-md-4 col-xs-12">
							<label for="name">Jméno a Příjmení</label>
                                <div class="form-group fullname">
                                    <input type="text" name="jmeno" class="input-text" id="fullname" placeholder="Jméno a Příjmení">
                                </div>
                            </div>
							
							<div class="col-lg-4 col-md-4 col-xs-12">
							<label for="name">Email</label>
							 <div class="form-group fullname">
                                    <input type="email" name="email" class="input-text" id="fullname" placeholder="Email">
                                    <input type="hidden" name="email_spravce" value="<?php echo $radek->odd_email;?>">
                                    <input type="hidden" name="odkaz" value="<?php echo $radek->ID;?>">
                                </div>
							</div>
							
                            <div class="col-lg-4 col-md-4 col-xs-12">
							<label for="name">Datum: od kdy</label>
                                <div class="form-group enter-email">
                                    <input type="date" name="datum_od_kdy" class="input-text" id="enter-email" placeholder="Datum: od kdy">
                                </div>
								</div>
								<div class="col-lg-4 col-md-4 col-xs-12">
								<label for="name">Datum: do kdy</label>
								                                <div class="form-group enter-email">
                                    <input type="date" name="datum_do_kdy" class="input-text" id="enter-email" placeholder="Datum: do kdy">
                                </div>
								
                            </div>
                            <div class="col-lg-4 col-md-4 col-xs-12">
							<label for="name">Čas: od kolika</label>
                                <div class="form-group subject">
                                    <input type="time" name="cas_od_kolika" class="input-text" id="subject" placeholder="Čas: od kolika">
                                </div>
                            </div>
							
							                            <div class="col-lg-4 col-md-4 col-xs-12">
														<label for="name">Čas: do kolika</label>
                                <div class="form-group subject">
                                    <input type="time" name="cas_do_kolika" class="input-text" id="subject" placeholder="Čas: do kolika">
                                </div>
                            </div>
							
							
							
                            <div class="col-lg-12">
                                <div class="form-group message">
                                    <textarea id="message" class="input-text" name="zprava" placeholder="Doplňující informace."></textarea>
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="form-group">
                                    <button type="submit" class="btn btn-submit">Odeslání rezervace</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <!-- Contact form end-->
            </div>





					  
                        </div>
						
						
						
						
						<div class="tab-pane fade features" id="tab6default">
                        
                        
     
<?php  if ($_SESSION["uzivatel"]->prava=='admin' || $_SESSION["uzivatel"]->prava=='superadmin' || $_SESSION["uzivatel"]->email==$radek->odd_email){ ?>                      
<form action="files.php" method="post" enctype="multipart/form-data">
    <font size="5" color="#4BA82E">Vyber soubor k nahrání: </font>  
    <input type="file" name="fileToUpload" id="fileToUpload"><br>
    <input type="submit" value="Nahraj soubor" name="submit">
    <input id="prodId" name="prodId" type="hidden" value="<?php echo $radek->ID?>">
</form>
<?php  } ?>
                        <br><br>
						<font size="5" color="#4BA82E">Soubory:</font> <br>
                         <?php
                               $files = scandir( "files" );
                              foreach( $files as $file ){
                                 if ($file === '.' or $file === '..') continue;
                                 if (preg_match('#'.$radek->ID.'_#',$file)){echo "<a href='files/$file' download>$file</a><br>";}      
                                   
                                                                                                
                                 
                                     }
                                     
                                     
                                     
                                     
                                     
                                   
                                   
                                   ?>

                        
                        
                        
                        
                        
                        </div>
						
						
						
						
						<div class="tab-pane fade features" id="tab7default">
				<iframe                      
					src=" 							  					  
                        <?php echo $radek->kalendar; ?>
 "
                         style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>        
                        </div>
						
						
						
						
						

						
                      </div>                                                 
                    </div>                                           
                  </div>                                     
                </div>                                     
                <!-- Panel box end -->                                
              </div>                               
              <!-- Content div end-->                          
            </div>                         
            <div class="col-ld-4 col-md-4 col-sm-12 col-xs-12">                               
              <div class="details-sidebar pad-div">                                     
                <!-- Car details sidebar start -->                                      
                <div class="sidebar-widget car-details-sidebar hidden-xs hidden-sm">                                           
                  <div class="section-heading option-bar">                                                 
                    <div class="media">                                                       
                      <div class="media-left">                                                             
                        <i class="fa fa-wrench"></i>                                                       
                      </div>                                                       
                      <div class="media-body">                                    <h4>Specifikace</h4>                                                       
                      </div>                                                 
                    </div>                                           
                  </div>                          
<?php if ($_SESSION["uzivatel"]->prava=='admin' || $_SESSION["uzivatel"]->prava=='superadmin'  || $_SESSION["uzivatel"]->email==$radek->odd_email) 
                                                                { ?>                                                                                 
                  <ul>                                                 
                    <li>                                                     
                    <span>Značka                     
                    </span>                    
                    <input type="text" name="zmena_znacka" value="<?php echo $radek->znacka;?>">                                                  
                    </li>                                                 
                    <li>                                                     
                    <span>Model                     
                    </span>                    
                    <input type="text" name="zmena_model" value="<?php echo $radek->model;?>">                                                  
                    </li>                                                 
                    <li>                                                     
                    <span>Infotainment                     
                    </span>                    
                    <input type="text" name="zmena_infotainment" value="<?php echo $radek->infotainment;?>">                                                  
                    </li>                                                 
                    <li>                                                     
                    <span>Rok výroby                     
                    </span>                    
                    <input type="text" name="zmena_rokvyroby" value="<?php echo $radek->rok_vyroby;?>">                                                  
                    </li>							                     
                    <li>                                                     
                    <span>SPZ                     
                    </span>                    
                    <input type="text" name="zmena_spz" value="<?php echo $radek->spz;?>">                                                  
                    </li>                                                 
                    <li>                                                     
                    <span>VIN                     
                    </span>                    
                    <input type="text" name="zmena_vin" value="<?php echo $radek->vin;?>">                                                  
                    </li>                                                 
                    <li>                                                     
                    <span>Barva                     
                    </span>                    
                    <input type="text" name="zmena_barva" value="<?php echo $radek->barva;?>">                                                  
                    </li>                                                 
                    <li>                                                     
                    <span>Převodovka                     
                    </span>                    
                    <input type="text" name="zmena_prevodovka" value="<?php echo $radek->prevodovka;?>">                                                  
                    </li>                                                 
                    <li>                                                     
                    <span>Palivo                     
                    </span>                    
                    <input type="text" name="zmena_palivo" value="<?php echo $radek->palivo;?>"> 							                     
                    </li>							                     
                    <li>                                                     
                    <span>Výbava                     
                    </span>                    
                    <input type="text" name="zmena_vybava" value="<?php echo $radek->vybava;?>">                                                  
                    </li>   
                     <li>                                                     
                    <span>Obrázek                     
                    </span>                    
                    <input type="text" name="zmena_obrazek" value="<?php echo $radek->obrazek;?>">                                                  
                    </li>
                       <li>                                                     
                    <span>Najeto KM:                     
                    </span>                    
                    <input type="text" name="zmena_najetokm" value="<?php echo $radek->najeto_km;?>">                                                  
                    </li>
      <li>                                                     
                    <span>Propojení:                     
                    </span>                    
                    <input type="text" name="zmena_propojeni" value="<?php echo $radek->propojeni;?>">                                                  
                    </li> 

      
	  <li>
	                            <?php if ($_SESSION["uzivatel"]->prava=='admin' || $_SESSION["uzivatel"]->prava=='superadmin' || $_SESSION["uzivatel"]->email==$radek->odd_email) 
                            { ?>
							
							<span>Link na kalendář:                     
                    </span>                    
                    <input type="text" name="zmena_kalendar" value="<?php echo $radek->kalendar;?>">

                                
                                   
                           <?php  } ?>
	  
	  </li> 
	  
	  


					
                                                                  
                    <li> 
                    <span>                                           
                    <!-- SMAZAT START -->             
                    <button class="tlacitko_smaz" onclick="myFunction()" form="uprava_auta2">Smazat</button>
                    <?php $smazat='smaz_auto.php?id='.$radek->ID; ?>
<script>
function myFunction() {
    if (confirm("Opravdu chceš položku smazat?")) {
       
              window.location="<?php echo $smazat; ?>"
    } else {
        
    }
}
</script>               
                        <!-- SMAZAT STOP --> <input type="submit" class="tlacitko_uloz" value="Uložit" form="uprava_auta">   </span>                  
                    </li>                                           
                  </ul>                                                                                       
<?php }
                            else {
                                                                 ?>                                             
                  <ul>                                                 
                    <li>                                                     
                    <span>Značka                     
                    </span>                    
                    <?php echo $radek->znacka;?>                                                 
                    </li>                                                 
                    <li>                                                     
                    <span>Model                     
                    </span>                    
                    <?php echo $radek->model;?>                                                 
                    </li>                                                 
                    <li>                                                     
                    <span>Infotainment                     
                    </span>                    
                    <?php echo $radek->infotainment;?>                                                 
                    </li>                                                 
                    <li>                                                     
                    <span>Rok výroby                     
                    </span>                    
                    <?php echo $radek->rok_vyroby;?>                                                 
                    </li>							                     
                    <li>                                                     
                    <span>SPZ                     
                    </span>                    
                    <?php echo $radek->spz;?>                                                 
                    </li>                                                 
                    <li>                                                     
                    <span>VIN                     
                    </span>                    
                    <?php echo $radek->vin;?>                                                 
                    </li>                                                 
                    <li>                                                     
                    <span>Barva                     
                    </span>                    
                    <?php echo $radek->barva;?>                                                 
                    </li>                                                 
                    <li>                                                     
                    <span>Převodovka                     
                    </span>                    
                    <?php echo $radek->prevodovka;?>                                                 
                    </li>                                                 
                    <li>                                                     
                    <span>Palivo                     
                    </span>                    
                    <?php echo $radek->palivo;?>							                     
                    </li>	
                    <li>                                                     
                    <span>Najeto KM:                     
                    </span>                    
                    <?php echo $radek->najeto_km;?>                                                  
                    </li>						                     
                    <li>                                                     
                    <span>Výbava                     
                    </span>                    
                    <?php echo $radek->vybava;?>                                                 
                    </li> 
					
                    <li>                                                     
	                            <?php if ($_SESSION["uzivatel"]->prava=='admin' || $_SESSION["uzivatel"]->prava=='superadmin' || $_SESSION["uzivatel"]->email==$radek->odd_email) 
                            { ?>
							
							<span>Link na kalendář:                     
                    </span>                    
                    <input type="text" name="zmena_kalendar" value="<?php echo $radek->kalendar;?>">

                                
                                   
                           <?php  } ?>                                          
                    </li>

					
                    <?php } ?>                                             
                  </ul>                                     
                </div>                         
    </form>                                                                   
    <!-- Car details end -->                       
    </div>                 
    </div>             
    </div>         
    </div>    
    </div>    
    <!-- Car details body 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>   
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB0N5pbJN10Y1oYFRd0MJ_v2g8W2QT74JE"></script>           
    <?php } else { include_once("404.php");}  ?>     
  </body>
</html>