?>

<table id="TableGestione">
<tr>
	<th class="firstTableItem">Nome Pagina</th>
	<th>Titolo Testo Pagina</th>
	<th>Testo Pagina</th>
	<th>Keywords</th>
	<th>Description</th>
	<th>Visibilità</th>
	<th colspan="2">Gestisci</th>
</tr>

<?php 
require_once ROOT . DS . "controllers" . DS . "controller_content.php";
$ConContentObj = new ConContent();
$aux = $ConContentObj->takeContent($param);
$pageNum = count($aux);
// variabile con il numero massimo di link
$liContent = '';
// ciclo che itera i dati del database e li registra in una variabile
for ($i = 0; $i != $pageNum; $i++) {
    $id = $aux[$i]['page_id'];
    $meta_key = $aux[$i]['page_keywords'];
    $meta_desc = $aux[$i]['page_description'];
    $page_name = $aux[$i]['page_title'];
    $page_title_text = $aux[$i]['page_titleText'];
    $page_text = substr($aux[$i]['page_text'], 0, 20) . ' ...';
    // 20 lunghezza testo per il preview
    if ($aux[$i]['active'] == 1) {
        $classVisible = 'TableGestioneVisibleYes';
Exemple #2
0
<?php

$page_id = isset($_GET['page']) ? $_GET['page'] : 1;
// se esiste @page in GET usalo se no page_id = 1
require_once ROOT . DS . "controllers" . DS . "controller_content.php";
$ConContentObj = new ConContent();
$auxContent = $ConContentObj->takeContent($param, $page_id);
$content = <<<CONTENT
<section id="content">
\t<h1>{$auxContent['page_titleText']}</h1>
\t{$auxContent['page_text']}
</section>
CONTENT
;