<?php include "config.php"; Session::start(); $tm = new Novedades(); $novedades = $tm->getAll(); $titulo = "Novedades"; $contenido = ""; ?> <?php ob_start(); ?> <h2>Foro de Novedades</h2><br> <p><a href="formulario.php"class="btn btn-default btn-sm" role="button">Nuevo Tema</a></p><br> <div class='row'> <table class='table table-hover table-striped'> <thead> <tr> <th> </th> <th>Tema</th> <th>Autor</th> <th>Fecha</th> <th>Respuestas</th> <?php if (Session::isSuperAdmin()) { ?> <th>Acciones</th> <?php }
<?php //require "resources/db.php"; require_once "libs.php"; require "functions/novedades-tienda.inc.php"; require 'functions/novedades.inc.php'; $novedades = new Novedades(); $collection = $novedades->getAll(); ?> <!doctype html> <!--[if lt IE 7]> <html lang="" class="no-js lt-ie10 lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html lang="" class="no-js lt-ie10 lt-ie9 lt-ie8 ie7"> <![endif]--> <!--[if IE 8]> <html lang="" class="no-js lt-ie10 lt-ie9 ie8"> <![endif]--> <!--[if IE 9]> <html lang="" class="no-js lt-ie10 ie9"> <![endif]--> <!--[if gt IE 9]><!--> <html lang="" class="no-js"> <!--<![endif]--> <head> <meta charset="utf-8" /> <title>Novedades</title> <meta name="description" content="" /> <link rel="shortcut icon" href="favicon.ico" />