当前位置: 首页>>代码示例>>PHP>>正文


PHP Content::setTemplate方法代码示例

本文整理汇总了PHP中Content::setTemplate方法的典型用法代码示例。如果您正苦于以下问题:PHP Content::setTemplate方法的具体用法?PHP Content::setTemplate怎么用?PHP Content::setTemplate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Content的用法示例。


在下文中一共展示了Content::setTemplate方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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");
}
$eventi = new Content($eventiEntity);
$eventi->setTemplate("eventi-multiple");
$main->setContent("body", $eventi->getPager());
$main->close();
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:15,代码来源:eventi.php

示例2: 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");
}
$generic = new Content($genEntity);
$generic->setTemplate("comearrivare");
$generic->setParameter("id", 2);
$main->setContent("body", $generic->get());
$main->close();
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:16,代码来源:comearrivare.php

示例3: Skin

<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
$main = new Skin("nevia");
$page = new Content($pageEntity);
$page->setTemplate("page_single_2");
$main->setContent("body", $page->get());
$main->close();
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:11,代码来源:page.php

示例4: 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

示例5: Content

<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
include "skins/nevia/dtml/scelta.html";
$luoghi = new Content($luoghiEntity);
$luoghi->setTemplate("scelta");
$main->setContent("body", $luoghi->get());
$main->close();
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:11,代码来源:scelta.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", Parchi);
$main->setContent("body", $luoghi->get());
$main->close();
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:16,代码来源:parchi.php

示例7: Skin

<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
$main = new Skin("nevia");
$luoghi = new Content($luoghiEntity);
$luoghi->setTemplate("about");
$main->setContent("body", $luoghi->get());
$main->close();
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:11,代码来源:about.php

示例8: 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

示例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($genEntity);
$luoghi->setTemplate("testo");
$luoghi->setParameter("id", 1);
$main->setContent("body", $luoghi->get());
$main->close();
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:16,代码来源:testo.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("contattaci");
$main->setContent("body", $luoghi->get());
$main->close();
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:15,代码来源:contattaci.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");
}
$eventi = new Content($eventiEntity);
$eventi->setTemplate("eventi-single");
$main->setContent("body", $eventi->get());
$main->close();
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:15,代码来源:evento.php

示例12: Skin

<?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();
?>

开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:23,代码来源:groups.php


注:本文中的Content::setTemplate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。