本文整理汇总了PHP中Content::setParameter方法的典型用法代码示例。如果您正苦于以下问题:PHP Content::setParameter方法的具体用法?PHP Content::setParameter怎么用?PHP Content::setParameter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Content
的用法示例。
在下文中一共展示了Content::setParameter方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Skin
<?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();
示例2: Skin
<?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();
示例3: Skin
<?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();
示例4: Skin
<?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();
示例5: shared
function shared()
{
global $main, $pageEntity;
$pages = new Content($pageEntity);
$pages->setParameter("section", 2);
$pages->setLimit(2);
$pages->clean();
$pages->apply($main);
}
示例6: Skin
<?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();
示例7: Skin
<?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();
示例8: Skin
<?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();
示例9: Skin
<?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();
示例10: Skin
<?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();
示例11: Skin
<?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();
示例12: Skin
<?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();
示例13: Skin
<?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();
示例14: Skin
<?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();
示例15: Skin
<?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();