} } ?> <table class="table table-striped"> <thead> <tr style="text-align: center;"> <th>Název</th> <th>Autor</th> <th>Datum vložení</th> <th></th> </tr> </thead> <tbody> <?php $settingModel = new SettingModel(); $articles = $settingModel->getArticles($_SESSION['login']['id']); foreach ($articles as $article) { echo '<tr><td style="text-align: left;">' . $article['article_name'] . '</td><td style="text-align: left;">' . $_SESSION['login']['name'] . ", " . $article['authors'] . '</td><td style="text-align: left;">' . date_format($article['create_date'], "d/m/Y") . '</td>'; echo '<td style="text-align: right;">' . '<a href="index.php?setting=detailArticle&id=' . $article['id_article'] . '" class="btn btn-success btn-xs"><i class="fa fa-eye"></i> DETAIL</a> ' . '<a href="index.php?setting=editArticle&id=' . $article['id_article'] . '" class="btn btn-warning btn-xs"><i class="fa fa-pencil"></i> EDITACE</a> ' . '<a href="index.php?setting=deleteArticle&id=' . $article['id_article'] . '" class="btn btn-danger btn-xs"><i class="fa fa-trash-o"></i> ODSTRANIT</a></td>'; } ?> </tbody> </table> </header> </div> <!--<script type="text/javascript"> $(document).ready(function () {