Ejemplo n.º 1
0
<?php

$title = "Diagram catalog | Diagramo";
$description = $title;
$key = explode(" ", $description);
$keywords = trim($key[0]);
for ($i = 1; $i < count($key); $i++) {
    $keywords .= "," . trim($key[$i]);
}
require_once dirname(__FILE__) . '/editor/common/delegate.php';
define('ROWS', 2);
define('COLS', 2);
$diagramsPerPage = ROWS * COLS;
$d = new Delegate();
$nrOfPublicDiagrams = $d->diagramCountGetAllPublic();
$page = 0;
if (is_numeric($_REQUEST['page'])) {
    $page = intval($_REQUEST['page']);
}
$publicDiagrams = $d->diagramGetPublic(ROWS * COLS * $page, ROWS * COLS * ($page + 1));
?>

<!DOCTYPE html>
<html>

    <head>
        <title><?php 
echo $title;
?>
</title>
        <meta name="description" content="<?php