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


PHP Skin::setContent方法代码示例

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


在下文中一共展示了Skin::setContent方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: draw

 public function draw()
 {
     $main = new Skin("installer");
     $head = new Skinlet("frame-public-head");
     $main->setContent("head", $head->get());
     $header = new Skinlet("header");
     $main->setContent("header", $header->get());
     $body = new Skinlet("installer_databaseform");
     $main->setContent("body", $body->get());
     $footer = new Skinlet("footer");
     $main->setContent("footer", $footer->get());
     $main->close();
 }
开发者ID:patriziopezzilli,项目名称:Fusion,代码行数:13,代码来源:installerDatabaseFormState.php

示例2: updateOutput

 public function updateOutput()
 {
     if ($this->validData) {
         header('Location: install_complete.php');
     } else {
         $main = new Skin("installer");
         $head = new Skinlet("frame-public-head");
         $main->setContent("head", $head->get());
         $header = new Skinlet("header");
         $main->setContent("header", $header->get());
         $body = new Skinlet("installer_template");
         $main->setContent("body", $body->get());
         $footer = new Skinlet("footer");
         $main->setContent("footer", $footer->get());
         $main->close();
     }
 }
开发者ID:patriziopezzilli,项目名称:Fusion,代码行数:17,代码来源:installerTemplateState.php

示例3: updateOutput

 public function updateOutput()
 {
     if ($this->validData) {
         header('location: install_complete.php');
     } else {
         $main = new Skin("system");
         $head = new Skinlet("frame-private-head");
         $main->setContent("head", $head->get());
         $header = new Skinlet("header");
         $header->setContent("webApp", 'Installing');
         $main->setContent("header", $header->get());
         $body = new Skinlet("installer_admin");
         $main->setContent("body", $body->get());
         $menu = new Skinlet("menu_installer");
         $footer = new Skinlet("footer");
         $menu->setContent('footer', $footer->get());
         $main->setContent("menu", $menu->get());
         $main->close();
     }
 }
开发者ID:patriziopezzilli,项目名称:Fusion,代码行数:20,代码来源:installerAdminState.php

示例4: updateOutput

 public function updateOutput()
 {
     $main = new Skin("system");
     $head = new Skinlet("frame-private-head");
     $main->setContent("head", $head->get());
     $header = new Skinlet("header");
     $header->setContent('webApp', 'Installing');
     $main->setContent("header", $header->get());
     $menu = new Skinlet('menu_installer');
     $footer = new Skinlet("footer");
     $menu->setContent("footer", $footer->get());
     $main->setContent('menu', $menu->get());
     if ($this->validData) {
         $body = new Skinlet("installer_databaseform");
     } else {
         $body = new Skinlet("installer_init");
     }
     $main->setContent("body", $body->get());
     $main->close();
 }
开发者ID:patriziopezzilli,项目名称:Fusion,代码行数:20,代码来源:installerInitState.php

示例5: Skin

<?php

session_start();
require "include/template2.inc.php";
require "include/beContent.inc.php";
require "include/content.inc.php";
$main = new Skin("aqua");
$news = new Content($newsEntity, $usersEntity, $newsCatEntity);
$news->setOrderFields("date DESC");
$main->setContent("body", $news->get());
$main->close();
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:11,代码来源:news2.php

示例6: 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($usersEntity, $facultyRoleEntity, $ssdEntity, $areaEntity);
$content->setFilter("users.active_home = '*'");
$content->setStyle(HIERARCHICAL);
$content->setOrderFields("facultyrole.position", "surname", "name");
$content->setPresentation("facultyrole_name_plural", "users_username", "users_name", "users_surname", "users_email", "area_id", "area_title", "ssd_id", "ssd_name");
$main->setContent("body", $content->get());
$main->close();
?>

开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:15,代码来源:people.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");
$news = new Content($newsEntity, $usersEntity);
$news->setOrderFields("date DESC");
$main->setContent("body", $news->getPager(3));
$main->close();
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:11,代码来源:news.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");
}
$foto = new Content($fotoEntity, $galleryEntity);
$foto->setOrderFields("position");
$main->setContent("body", $foto->get());
$main->close();
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:15,代码来源:gallery.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");
}
$eventi = new Content($eventiEntity);
$eventi->setTemplate("eventi-multiple");
$main->setContent("body", $eventi->getPager());
$main->close();
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:15,代码来源:eventi.php

示例10: Template

    function addItem_postInsertion()
    {
        /* controllare reload */
        $mail = new Template("dtml/user.mail");
        $mail->setContent("name", $_REQUEST['name']);
        $mail->setContent("username", $_REQUEST['username']);
        $mail->setContent("password", $_REQUEST['password']);
        $mail->setContent("message", $_REQUEST['message']);
        mail("{$_REQUEST['email']}", "{$GLOBALS['config']['website']['name']} Login data", $mail->get(), "From: {{$GLOBALS['config']['website']['email']}}");
    }
}
/* LOCAL END */
#if (isset($_SESSION['registered-user'])) {
#	$main = new Template("dtml_{$_SESSION['language']}/frame-public-2.html");
#} else {
#	$main = new Template("dtml/frame-private.html");
#}
$main = new Skin();
$form = new Form("dataEntry", $usersEntity);
$form->addSection("Modifica Password");
#$form1->addText("username", "username", 20, MANDATORY);
#$form1->addSection("personal data");
$form->addPassword("password", aux::lingual("Nuova Password", "New Password", "Nuova Password"));
if (!isset($_REQUEST['page'])) {
    $_REQUEST['page'] = 1;
    $_REQUEST['value'] = $_SESSION['user']['username'];
}
$main->setContent("body", $form->editItem(NO_DELETE));
$main->close();
?>
 
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:30,代码来源:password.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");
}
$pictures = new Content($pictureEntity, $albumEntity);
$album = new Content($albumEntity);
$album->apply($pictures, "menu");
$main->setContent("body", $pictures->get());
$main->close();
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:16,代码来源:album.php

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

示例13: createSystemGraphic

 /**
  *
  * @param Skin $skin
  * @param boolean $login
  * Costruisce la struttura del back-end.
  * Utilizza:
  * frame-private-head: tag html <head>
  * header e footer: header e footer del tema
  *
  */
 public function createSystemGraphic($skin, $login = false)
 {
     /*
      * entity necessarie per il funzionamento del back-end
      */
     $actualUser = $_SESSION['user']['username'];
     $servicecategoryEntity = $GLOBALS['sys_servicecategory'];
     $servicesEntity = $GLOBALS['sys_service'];
     $servicesGroupsRelation = $GLOBALS['sys_service_sys_group'];
     $groupsEntity = $GLOBALS['sys_group'];
     $userEntity = $GLOBALS['sys_user'];
     $usersGroupsRelation = $GLOBALS['sys_user_sys_group'];
     /*
      * skinlet frame-private-head: skins/system/frame-private-head.html
      */
     $head = new Skinlet("frame-private-head");
     /*
      * skinlet header: skins/system/header.html
      */
     $header = new Skinlet("header");
     $loggedUser = new Content($userEntity);
     $loggedUser->setFilter('username', $actualUser);
     $loggedUser->forceSingle();
     $loggedUser->apply($header);
     $config = Config::getInstance()->getConfigurations();
     $header->setContent('webApp', $config["defaultuser"]["webApp"]);
     /*
      * skinlet menu_admin: skins/system/menu_admin.html
      */
     $menuTemplate = new Skinlet("menu_admin");
     $menu = new Content($servicecategoryEntity, $servicesEntity, $servicesGroupsRelation, $groupsEntity, $usersGroupsRelation);
     $menu->setOrderFields("position");
     $menu->setFilter("username_sys_user", $actualUser);
     $menu->apply($menuTemplate);
     /*
      * skinlet footer: skins/system/footer.html
      */
     $footer = new Skinlet("footer");
     $menuTemplate->setContent("footer", $footer->get());
     /*
      * funzionalità breadcrump
      */
     /*
         $breadcrump = new Skinlet("sitemap");
         $breadcrumpContent = new Content($pageEntity, $pageEntity, $pageEntity);
         $breadcrumpContent->forceMultiple();
         $breadcrumpContent->apply($breadcrump);
     
         $actual_script=str_replace("/", "", $_SERVER['SCRIPT_NAME']);
     
         if($actual_script!="page.php")
             $breadcrump->setContent('actual_script', $actual_script);
         else
             $breadcrump->setContent('actual_script',str_replace("/", "", $_SERVER['REQUEST_URI']) );
     
         $skin->setContent("sitemap", $breadcrump->get());
     */
     /*
      * creazione della struttura
      */
     $skin->setContent("head", $head->get());
     $skin->setContent("header", $header->get());
     $skin->setContent("menu", $menuTemplate->get());
 }
开发者ID:patriziopezzilli,项目名称:Fusion,代码行数:74,代码来源:InitGraphic.php

示例14: apply

 /**
  * This method applies the content to a template passed as a parameter, is useful in the case of partial
  * content in a page and for using a template different from the standard entityName_single / entityName_multiple
  * it operates on the $skin and compiles fields related to this content for that skin
  * it uses getRaw to retrieve data
  * @param Skin $skin
  * @param String $prefix
  *
  * usa il prefix per due apply differenti nella stessa skin
  */
 function apply($skin, $prefix = "")
 {
     $entity = DB::getInstance()->getEntityByName($this->entity_name);
     $data = $this->getRaw();
     /*passing retrieved instances to smarty*/
     if ($this->mode == SINGLE) {
         if (isset($entity->instances)) {
             if ($prefix != '') {
                 $skin->setContent($prefix . '_instance', $entity->instances[0]);
             } else {
                 $skin->setContent("instance", $entity->instances[0]);
             }
         } else {
             $skin->setContent("instance", null);
         }
         $skin->setContent("instances", null);
     } else {
         if (isset($entity->instances)) {
             if ($prefix != '') {
                 $skin->setContent($prefix . '_instances', $entity->instances);
             } else {
                 $skin->setContent("instances", $entity->instances);
             }
         } else {
             $skin->setContent("instances", null);
         }
         $skin->setContent("instance", null);
     }
 }
开发者ID:patriziopezzilli,项目名称:Fusion,代码行数:39,代码来源:content.php

示例15: 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");
}
$best = new Skinlet("best");
$rece = new Skinlet("rec");
$slides = new Skinlet("slide-multiple");
$last = new Skinlet("lastminute");
$recensioni = new Content($recensioniEntity);
$recensioni->setOrderFields("id DESC");
$recensioni->setLimit(3);
$recensioni->apply($rece);
$recensioni->applyIndexed($rece);
$main->setContent('recensioni', $rece->get());
$slide = new Content($slideEntity);
$slide->apply($slides);
$main->setContent("slide", $slides->get());
$lastminute = new Content($eventiEntity);
$lastminute->setOrderFields("id DESC");
$lastminute->setLimit(3);
$lastminute->apply($last);
$main->setContent("lastminute", $last->get());
$main->setContent("best", $best->get());
$main->close();
开发者ID:stefanocortellessa,项目名称:VisitAQ,代码行数:31,代码来源:index.php


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