當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Content::setParameter方法代碼示例

本文整理匯總了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();
開發者ID:stefanocortellessa,項目名稱:VisitAQ,代碼行數:16,代碼來源:parchi.php

示例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();
開發者ID:stefanocortellessa,項目名稱:VisitAQ,代碼行數:24,代碼來源:itinerario.php

示例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();
開發者ID:stefanocortellessa,項目名稱:VisitAQ,代碼行數:16,代碼來源:beb.php

示例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();
開發者ID:stefanocortellessa,項目名稱:VisitAQ,代碼行數:16,代碼來源:ristoranti.php

示例5: shared

function shared()
{
    global $main, $pageEntity;
    $pages = new Content($pageEntity);
    $pages->setParameter("section", 2);
    $pages->setLimit(2);
    $pages->clean();
    $pages->apply($main);
}
開發者ID:stefanocortellessa,項目名稱:VisitAQ,代碼行數:9,代碼來源:config.inc.php

示例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();
開發者ID:stefanocortellessa,項目名稱:VisitAQ,代碼行數:16,代碼來源:discoteche.php

示例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();
開發者ID:stefanocortellessa,項目名稱:VisitAQ,代碼行數:16,代碼來源:testo.php

示例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();
開發者ID:stefanocortellessa,項目名稱:VisitAQ,代碼行數:16,代碼來源:hotel.php

示例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();
開發者ID:stefanocortellessa,項目名稱:VisitAQ,代碼行數:16,代碼來源:impiantisci.php

示例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();
開發者ID:stefanocortellessa,項目名稱:VisitAQ,代碼行數:16,代碼來源:castelli.php

示例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();
開發者ID:stefanocortellessa,項目名稱:VisitAQ,代碼行數:16,代碼來源:agriturismi.php

示例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();
開發者ID:stefanocortellessa,項目名稱:VisitAQ,代碼行數:16,代碼來源:fontane.php

示例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();
開發者ID:stefanocortellessa,項目名稱:VisitAQ,代碼行數:16,代碼來源:teatri.php

示例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();
開發者ID:stefanocortellessa,項目名稱:VisitAQ,代碼行數:16,代碼來源:chiese.php

示例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();
開發者ID:stefanocortellessa,項目名稱:VisitAQ,代碼行數:27,代碼來源:luogo-i.php


注:本文中的Content::setParameter方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。