Current Path : /data/web/virtuals/51568/virtual/www/www/plany/ |
Current File : /data/web/virtuals/51568/virtual/www/www/plany/roky-tydny.php |
<?php if (file_exists('funkce/DbConnect.php')){ require_once('funkce/DbConnect.php'); } if (file_exists('../../funkce/DbConnect.php')){ require_once('../../funkce/DbConnect.php'); } if (IsSet($_POST["rokID"])) {$rokID = trim($_POST["rokID"]);} else { include "www/plany/rok-aktualni.php"; } $sql = "SELECT `id`, `idrok`, `cislo`, `zacatek` FROM `pl_tydny` WHERE idrok=$rokID"; if ($result = mysqli_query($conn, $sql)) {?> <div class="table-scroll-container-40 table-scroll mb-3" style="width:200px;"> <table class="table table-sm "> <thead> <tr class="table-info"> <td>týden</td> <td>začátek</td> </thead> </tr> <?php while ($row = mysqli_fetch_object($result)) { ?> <tr> <td> <?php echo $row->cislo;?></td> <td> <?php echo date('d.m.Y', strtotime($row->zacatek));?></td> </tr> <?php } ?> </table> </div> <?php } ?>