Exemple #1
0
<?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' => ''));
<?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 
<?php

defined('IN_TS') or die('Access Denied.');
include pubTemplate("header");
<?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");
function ts404()
{
    header("HTTP/1.1 404 Not Found");
    header("Status: 404 Not Found");
    $title = '404';
    include pubTemplate("404");
    exit;
}