Exemplo n.º 1
0
<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
if (!$_SESSION['username']) {
    $main = new Skin("nevia");
} else {
    $main = new Skin("loggato");
}
$luoghi = new Content($luoghiEntity);
$luoghi->setTemplate("luoghi-multiple-i");
$luoghi->setParameter("nome_categoria", Parchi);
$main->setContent("body", $luoghi->get());
$main->close();
Exemplo n.º 2
0
<?php

session_start();
mysql_connect("localhost", "root", "");
mysql_select_db("learnpad");
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
if (!$_SESSION['username']) {
    $main = new Skin("nevia");
} else {
    $main = new Skin("loggato");
}
$email = $_SESSION['username'];
$oid = mysql_query("SELECT luoghi.titolo, luoghi.indirizzo, luoghi.id FROM luoghi, itinerario WHERE luoghi.id=itinerario.id_luoghi");
$itinerario = new Content($itinerarioEntity, $luoghiEntity);
$itinerario->setParameter("username_users", $email);
$itinerario->setTemplate("itinerario");
if ($oid) {
}
while ($data = mysql_fetch_assoc($oid)) {
    $main->setContent("body", $itinerario->get());
}
$main->close();
Exemplo n.º 3
0
<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
if (!$_SESSION['username']) {
    $main = new Skin("nevia");
} else {
    $main = new Skin("loggato");
}
$luoghi = new Content($luoghiEntity);
$luoghi->setTemplate("luoghi-multiple-i");
$luoghi->setParameter("nome_categoria", BeB);
$main->setContent("body", $luoghi->get());
$main->close();
Exemplo n.º 4
0
<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
if (!$_SESSION['username']) {
    $main = new Skin("nevia");
} else {
    $main = new Skin("loggato");
}
$luoghi = new Content($luoghiEntity);
$luoghi->setTemplate("luoghi-multiple-i");
$luoghi->setParameter("nome_categoria", Ristoranti);
$main->setContent("body", $luoghi->get());
$main->close();
Exemplo n.º 5
0
function shared()
{
    global $main, $pageEntity;
    $pages = new Content($pageEntity);
    $pages->setParameter("section", 2);
    $pages->setLimit(2);
    $pages->clean();
    $pages->apply($main);
}
Exemplo n.º 6
0
<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
if (!$_SESSION['username']) {
    $main = new Skin("nevia");
} else {
    $main = new Skin("loggato");
}
$luoghi = new Content($luoghiEntity);
$luoghi->setTemplate("luoghi-multiple-i");
$luoghi->setParameter("nome_categoria", Discoteche);
$main->setContent("body", $luoghi->get());
$main->close();
Exemplo n.º 7
0
<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
if (!$_SESSION['username']) {
    $main = new Skin("nevia");
} else {
    $main = new Skin("loggato");
}
$luoghi = new Content($genEntity);
$luoghi->setTemplate("testo");
$luoghi->setParameter("id", 1);
$main->setContent("body", $luoghi->get());
$main->close();
Exemplo n.º 8
0
<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
if (!$_SESSION['username']) {
    $main = new Skin("nevia");
} else {
    $main = new Skin("loggato");
}
$luoghi = new Content($luoghiEntity);
$luoghi->setTemplate("luoghi-multiple-i");
$luoghi->setParameter("nome_categoria", Hotel);
$main->setContent("body", $luoghi->get());
$main->close();
Exemplo n.º 9
0
<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
if (!$_SESSION['username']) {
    $main = new Skin("nevia");
} else {
    $main = new Skin("loggato");
}
$luoghi = new Content($luoghiEntity);
$luoghi->setTemplate("luoghi-multiple-i");
$luoghi->setParameter("nome_categoria", Impianti_Sciistici);
$main->setContent("body", $luoghi->get());
$main->close();
Exemplo n.º 10
0
<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
if (!$_SESSION['username']) {
    $main = new Skin("nevia");
} else {
    $main = new Skin("loggato");
}
$luoghi = new Content($luoghiEntity);
$luoghi->setTemplate("luoghi-multiple-i");
$luoghi->setParameter("nome_categoria", Castelli);
$main->setContent("body", $luoghi->get());
$main->close();
Exemplo n.º 11
0
<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
if (!$_SESSION['username']) {
    $main = new Skin("nevia");
} else {
    $main = new Skin("loggato");
}
$luoghi = new Content($luoghiEntity);
$luoghi->setTemplate("luoghi-multiple-i");
$luoghi->setParameter("nome_categoria", Agriturismi);
$main->setContent("body", $luoghi->get());
$main->close();
Exemplo n.º 12
0
<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
if (!$_SESSION['username']) {
    $main = new Skin("nevia");
} else {
    $main = new Skin("loggato");
}
$luoghi = new Content($luoghiEntity);
$luoghi->setTemplate("luoghi-multiple-i");
$luoghi->setParameter("nome_categoria", Fontane);
$main->setContent("body", $luoghi->get());
$main->close();
Exemplo n.º 13
0
<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
if (!$_SESSION['username']) {
    $main = new Skin("nevia");
} else {
    $main = new Skin("loggato");
}
$luoghi = new Content($luoghiEntity);
$luoghi->setTemplate("luoghi-multiple-i");
$luoghi->setParameter("nome_categoria", Teatri);
$main->setContent("body", $luoghi->get());
$main->close();
Exemplo n.º 14
0
<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
if (!$_SESSION['username']) {
    $main = new Skin("nevia");
} else {
    $main = new Skin("loggato");
}
$luoghi = new Content($luoghiEntity);
$luoghi->setTemplate("luoghi-multiple-i");
$luoghi->setParameter("nome_categoria", Chiese);
$main->setContent("body", $luoghi->get());
$main->close();
Exemplo n.º 15
0
<?php

session_start();
$luog = $_GET['luoghi_id'];
$_SESSION['var'] = $luog;
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
if (!$_SESSION['username']) {
    $main = new Skin("nevia");
} else {
    $main = new Skin("loggato");
}
$body = new Skinlet("home");
$rece = new Skinlet("recluogo");
$luoghi = new Content($luoghiEntity);
$luoghi->setTemplate("luogo-i");
$main->setContent("body", $luoghi->get());
$recensioni = new Content($recensioniEntity);
$recensioni->setTemplate("recluogo");
$recensioni->setParameter("id_luoghi", $luog);
$recensioni->setOrderFields("id DESC");
$recensioni->setLimit(3);
$recensioni->applyIndexed($recensioni);
$recensioni->apply($rece);
$main->setContent('recensioni', $rece->get());
$main->close();
Exemplo n.º 16
0
<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
if (!$_SESSION['username']) {
    $main = new Skin("nevia");
} else {
    $main = new Skin("loggato");
}
$luoghi = new Content($luoghiEntity);
$luoghi->setTemplate("luoghi-multiple-i");
$luoghi->setParameter("nome_categoria", Escursioni);
$main->setContent("body", $luoghi->get());
$main->close();
Exemplo n.º 17
0
<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
if (!$_SESSION['username']) {
    $main = new Skin("nevia");
} else {
    $main = new Skin("loggato");
}
$generic = new Content($genEntity);
$generic->setTemplate("comearrivare");
$generic->setParameter("id", 2);
$main->setContent("body", $generic->get());
$main->close();
Exemplo n.º 18
0
<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
$main = new Skin("aqua");
$content = new Content($resGroupEntity, $areaEntity);
$content->setOrderFields("name");
$content->setStyle(HIERARCHICAL);
if (!isset($_REQUEST['researchgroup_id'])) {
    $content->setPresentation("area_title", "researchgroup_id", "researchgroup_name", "researchgroup_description");
} else {
    $people = new Content($usersEntity);
    $people->setParameter("id_resgroup", $_REQUEST['researchgroup_id']);
    $people->setTemplate("people_group");
    $people->setOrderFields("surname", "name");
    $content->setContent("people", $people->get());
}
#$content->setFilter("users.active = '*'");
$main->setContent("body", $content->get());
$main->close();
?>