echo '<div id="search"> <input type="text" name="search" size="75" placeholder="Introduza os termos de pesquisa..."> <input type="checkbox" name="title" checked="checked">Título <input type="checkbox" name="text">Texto <input type="checkbox" name="tag">Tag </div>'; } ?> <div id="conteudo"> <?php if (count($news) == 0) { //if no results echo "<h5>Nenhuma notícia encontrada.</h5>"; } else { if (!empty($id)) { //if news by id showNewsId($news, $db); } else { //in any other case showAllNews($news); if (empty($tag) && empty($fav)) { //only show pagination on all news listing showPagination($db, $p, $news[0]['id'], $news[sizeof($news) - 1]['id']); } } } echo "</div>"; showFooter(); ?> </body> </html>
<?php $timeStart = microtime(true); session_start(); if (empty($_SESSION)) { exit(header("Location: ../../index.php")); } require_once $_SESSION['File_Root'] . '/Kernel/Include.php'; require_once $_SESSION['File_Root'] . '/HTML/Header.php'; require_once 'Functions/SQL.php'; redirectToLogin($accountID, $linkRoot); redirectToBattle($verifyBattle, $linkRoot); hasAdmin($accountAccess); ?> <br> <div class="panel panel-warning"> <div class="panel-heading"><h3 class="panel-title"><?php echo $anews0; ?> </h3></div> <div class="panel-body"> <?php showAllNews($bdd); ?> </div> </div> <?php require_once $_SESSION['File_Root'] . '/HTML/Footer.php';