本文整理汇总了PHP中Pages::findPages方法的典型用法代码示例。如果您正苦于以下问题:PHP Pages::findPages方法的具体用法?PHP Pages::findPages怎么用?PHP Pages::findPages使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pages
的用法示例。
在下文中一共展示了Pages::findPages方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sanitize
?>
<?
if(isset($_POST['submit'])) {
$_POST = sanitize($_POST);
$pages = $_POST;
settype($pages,'object');
Pages::updatePages($pages);
$success = "Page Successfully Saved!";
$updates = 'Update Page Content';
AdminAction::addAdminAction($_SESSION['admin_name'],$updates);
}
$page = Pages::findPages($_REQUEST['id']);
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" media="screen" href="<?php
echo $ROOT_URL;
?>
_admin/_assets/css/core3.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<?php
echo $ROOT_URL;
?>
_admin/_assets/css/page.css" />
<script type="text/javascript" src="<?php
示例2: session_start
<?php
session_start();
include 'manager/_pi/base.php';
$page1 = Pages::findPages(1);
?>
<? startblock('section') ?>
<aside>
<?php
include 'manager/includes/side_panel.php';
?>
</aside>
<article>
<div id="hp_hdr">
<img src="assets/images/ajax_header.jpg">
</div>
<div id="featured_products">
<hgroup>
<h2>Featured Products</h2>
<hr />
</hgroup>
<? $product = Products::displayAllFeaturedProducts(); ?>
<? foreach($product as $products):
$nctr=$nctr+1;
$pClass = ($nctr==2) ? "class='last'" : "";?>
<? if($nctr==1) { ?><ul><? } ?>
<li <?php
echo $pClass;