include('include/config.php'); $ipp = 6; include('scripts/php/functions.php'); $_table = $_GET['table']; $navigator_query = mysql_query("SELECT COUNT(1) FROM ".$_table." WHERE active = 1", $conn) or die(mysql_error()); $tmp_var = mysql_fetch_array($navigator_query); $navigator_recs = $tmp_var[0]; $nr_pages = ceil($navigator_recs/$ipp); $query_recs = "SELECT * FROM ".$_table." WHERE active=1 ORDER BY `order` ASC, id_".$_table." DESC LIMIT $start,$ipp"; $recs = mysql_query($query_recs, $conn) or die(mysql_error()); $row_recs = mysql_fetch_assoc($recs); $totalRows_recs = mysql_num_rows($recs); if($_table == "events"){ $_page = "events"; $_page_title = "Evenimente"; }elseif($_table == "news"){ $_page = "news"; $_page_title = "Noutati"; }elseif($_table == "raxo"){ $_page = "raxo"; $_page_title = "Mesajele Raxo"; $_class = "-mesaje"; }elseif($_table == "testimonials"){ $_page = "testimonials"; $_page_title = "Testimoniale"; $_class = "-testimoniale"; } $meta_title = $_page_title; #start output include('include/meta.php'); ?>
include('include/header.php');?>