本文整理汇总了PHP中pubTemplate函数的典型用法代码示例。如果您正苦于以下问题:PHP pubTemplate函数的具体用法?PHP pubTemplate怎么用?PHP pubTemplate使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pubTemplate函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
<?php
defined('IN_TS') or die('Access Denied.');
//小组成员
switch ($ts) {
//小组成员首页
case "":
$groupid = intval($_GET['id']);
//判断是否存在这个群组
$strGroup = $new['group']->getOneGroup($groupid);
if ($strGroup == '') {
header("HTTP/1.1 404 Not Found");
header("Status: 404 Not Found");
$title = '404';
include pubTemplate("404");
exit;
}
//小组组长信息
$leaderId = $strGroup['userid'];
$strLeader = aac('user')->getOneUser($leaderId);
//管理员信息
$strAdmin = $new['group']->findAll('group_user', array('groupid' => $strGroup['groupid'], 'isadmin' => '1', 'isfounder' => '0'));
if (is_array($strAdmin)) {
foreach ($strAdmin as $key => $item) {
$arrAdmin[] = aac('user')->getOneUser($item['userid']);
$arrAdmin[$key]['isadmin'] = $item['isadmin'];
}
}
//小组会员分页
$page = isset($_GET['page']) ? intval($_GET['page']) : 1;
$url = tsUrl('group', 'user', array('id' => $groupid, 'page' => ''));
示例2: defined
<?php
defined('IN_TS') or die('Access Denied.');
include template('header');
?>
<div class="container">
<div class="my">
<div class="col-md-3">
<div class="my_left">
<?php
include pubTemplate("my");
?>
</div>
</div>
<div class="col-md-9">
<div class="my_right">
<div class="rc">
<?php
doAction('my_right_top');
?>
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="">我的圖</a></li>
</ul>
<?php
foreach ((array) $arrAlbum as $key => $item) {
?>
<div class="box albumlst">
<a target="_blank" href="<?php
echo tsurl('photo', 'album', array('id' => $item['albumid']));
?>
" class="album_photo"><img src="<?php
示例3: defined
<?php
defined('IN_TS') or die('Access Denied.');
include pubTemplate("header");
示例4: defined
<?php
defined('IN_TS') or die('Access Denied.');
include pubTemplate("header");
?>
<div class="midder container">
<div class="mc">
<div style="padding:100px 0px 0px 0px;">
<h2>提示:</h2>
<p>您请求的页面不存在</p>
<p>404</p>
</div>
</div>
</div>
<?php
include pubTemplate("footer");
示例5: ts404
function ts404()
{
header("HTTP/1.1 404 Not Found");
header("Status: 404 Not Found");
$title = '404';
include pubTemplate("404");
exit;
}