Your IP : 13.58.24.13


Current Path : /data/web/virtuals/51568/virtual/www/www/plany.bak/
Upload File :
Current File : /data/web/virtuals/51568/virtual/www/www/plany.bak/roky-seznam.php

<script src="www/plany/roky.js"></script>

<?php
  if (file_exists('funkce/DbConnect.php')){
     require_once('funkce/DbConnect.php');
  }
  if (file_exists('../../funkce/DbConnect.php')){
     require_once('../../funkce/DbConnect.php');
  }

    
   $sql = 'SELECT * FROM pl_roky order by rok desc';
   $result = mysqli_query($conn, $sql) ;
   if (mysqli_num_rows($result)>0) {?>                                                     
    <table class="table table-sm">                                                                       
      <tr class="table-info">        
        <td>rok</td>        
        <td>začátek</td>        
        <td>ukaž</td>                                                                  
      </tr>                                                                  
      <?php    while($row =  mysqli_fetch_object($result)) {  ?>                                                                          
      <tr onclick="rokDetail(<?= $row->id; ?>)" class="odkaz" id="trRok<?= $row->id; ?>">            
      <td>                                                                                                   
          <?php  echo $row->rok; ?></td>                
          <td>                                                                                                     
          <?php  echo date('j.n.Y', strtotime($row->zacatek)); ?></td>                                                                                          
        <td id="roEd<?php echo $row->id; ?>" class="odkaz text-center" >                                                                                                      
          <i class="fas fa-info  text-primary"></i>                  </td>                                                                       
      </tr>                                                                       
      <?php }?>                                                            
    </table>                                         
    <? } else {?>                                               
    <div class="alert alert-info h5 rounded-0">Není založen žádný rok.                            
    </div>                                    
    <?php }  ?>