Esempio n. 1
0
<table summary="" cellpadding="0" cellspacing="0" class="datatable">
<thead class="colplural">
<tr>
<td>用户名</td>
<td class="time">时间</td>
<td>当前动作</td>
<td>所在版块</td>
<td>所在主题</td>
</tr>
</thead>
<tbody><?php 
    if (is_array($onlinelist)) {
        foreach ($onlinelist as $online) {
            ?>
<tr class="<?php 
            echo swapclass('colplural');
            ?>
">
<td><?php 
            if ($online['uid']) {
                ?>
<a href="space.php?uid=<?php 
                echo $online['uid'];
                ?>
"><?php 
                echo $online['username'];
                ?>
</a><?php 
            } else {
                ?>
游客<?php 
当前用户组: <?php echo $_G['cache']['usergroups'][$_G['groupid']]['grouptitle'];?>
</p>
<?php if($do == 'expiry') { ?>
<div class="notice">您当前的用户组已经到期,请选择继续续费还是要切换到其他用户组</div>
<?php } if($expirylist) { ?>
<table cellspacing="0" cellpadding="0" class="dt mtm mbm">
<tbody class="th">
<tr>
<th>用户组</th>
<th>日价格</th>
<th>您目前可以购买</th>
<th>到期时间</th>
<th></th>
</tr>
</tbody>
<tbody><?php if(is_array($expirylist)) foreach($expirylist as $groupid => $group) { ?><tr class="<?php echo swapclass('alt'); ?>">
<td><a href="home.php?mod=spacecp&amp;ac=usergroup&amp;gid=<?php echo $groupid;?>" class="xi2" target="_blank"><?php echo $group['grouptitle'];?></a></td>
<td>
<?php if($_G['cache']['usergroups'][$groupid]['pubtype'] == 'buy' && $group['dailyprice']) { ?>
<?php echo $group['dailyprice'];?> <?php echo $_G['setting']['extcredits'][$_G['setting']['creditstrans']]['unit'];?><?php echo $_G['setting']['extcredits'][$_G['setting']['creditstrans']]['title'];?>
<?php } elseif($_G['cache']['usergroups'][$groupid]['pubtype'] == 'free') { ?>
免费
<?php } ?>
</td>
<td><?php if($group['usermaxdays']) { ?><?php echo $group['usermaxdays'];?> 天<?php } ?></td>
<td><?php echo $group['time'];?></td>
<td>
<?php if(in_array($groupid, $extgroupids) || $groupid == $_G['groupid']) { if($groupid != $_G['groupid']) { if(!$group['noswitch']) { ?>
<a href="home.php?mod=spacecp&amp;ac=usergroup&amp;do=switch&amp;groupid=<?php echo $groupid;?>&amp;handlekey=switchgrouphk" class="xw1 xi2" onclick="showWindow('group', this.href, 'get', 0);">切换</a>
<?php } if(!$group['maingroup']) { if($_G['cache']['usergroups'][$groupid]['pubtype'] == 'buy') { ?>
<a href="home.php?mod=spacecp&amp;ac=usergroup&amp;do=buy&amp;groupid=<?php echo $groupid;?>&amp;handlekey=buygrouphk" class="xw1 xi2" onclick="showWindow('group', this.href, 'get', 0);">续费</a>
<table cellspacing="0" cellpadding="0" class="dt mtm mbm">
<tbody class="th">
<tr>
<th>用户组</th>
<th>日价格</th>
<th>您目前可以购买</th>
<th>到期时间</th>
<th></th>
</tr>
</tbody>
<tbody><?php 
        if (is_array($expirylist)) {
            foreach ($expirylist as $groupid => $group) {
                ?>
<tr class="<?php 
                echo swapclass('alt');
                ?>
">
<td><a href="home.php?mod=spacecp&amp;ac=usergroup&amp;gid=<?php 
                echo $groupid;
                ?>
" class="xi2" target="_blank"><?php 
                echo $group['grouptitle'];
                ?>
</a></td>
<td>
<?php 
                if ($_G['cache']['usergroups'][$groupid]['pubtype'] == 'buy' && $group['dailyprice']) {
                    echo $group['dailyprice'];
                    ?>
 <?php 
<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>" />
<input type="text" name="srchmem" class="px vm" size="15" />
&nbsp;<button type="submit" class="pn vm"><em>搜索</em></button>
</form>
<h1 class="mt">会员列表</h1>
</div>
<table summary="会员列表" class="dt bm">
<tr>
<th><a href="misc.php?mod=stat&amp;op=memberlist&amp;order=username<?php if(!$_GET['asc']) { ?>&amp;asc=1<?php } ?>" class="showmenu">用户名</a></th>
<th><a href="misc.php?mod=stat&amp;op=memberlist&amp;order=uid<?php if(!$_GET['asc']) { ?>&amp;asc=1<?php } ?>" class="showmenu">UID</a></th>
<th><a href="misc.php?mod=stat&amp;op=memberlist&amp;order=gender<?php if(!$_GET['asc']) { ?>&amp;asc=1<?php } ?>" class="showmenu">性别</a></th>
<th><a href="misc.php?mod=stat&amp;op=memberlist&amp;order=regdate<?php if(!$_GET['asc']) { ?>&amp;asc=1<?php } ?>" class="showmenu">注册日期</a></th>
<th><a href="misc.php?mod=stat&amp;op=memberlist&amp;order=lastvisit<?php if(!$_GET['asc']) { ?>&amp;asc=1<?php } ?>" class="showmenu">上次访问</a></th>
<th><a href="misc.php?mod=stat&amp;op=memberlist&amp;order=posts<?php if(!$_GET['asc']) { ?>&amp;asc=1<?php } ?>" class="showmenu">帖子</a></th>
<th><a href="misc.php?mod=stat&amp;op=memberlist&amp;order=credits<?php if(!$_GET['asc']) { ?>&amp;asc=1<?php } ?>" class="showmenu">积分</a></th>
</tr><?php if(is_array($memberlist)) foreach($memberlist as $member) { ?><tr class="<?php echo swapclass('alt'); ?>">
<td><a href="home.php?mod=space&amp;uid=<?php echo $member['uid'];?>" class="xw1"><?php echo $member['username'];?></a></td>
<td><?php echo $member['uid'];?></td>
<td><?php if($member['gender'] == '1') { ?>男<?php } elseif($member['gender'] == 2) { ?>女<?php } else { ?>&nbsp;<?php } ?></td>
<td><?php echo $member['regdate'];?></td>
<td><?php echo $member['lastvisit'];?></td>
<td><?php echo $member['posts'];?></td>
<td><?php echo $member['credits'];?></td>
</tr>
<?php } ?>
</table>
<?php if(!empty($multipage)) { ?><div class="pgs cl"><?php echo $multipage;?></div><?php } ?>
</div>
</div><div class="appl">
<div class="tbn">
<h2 class="mt bbda">站点统计</h2>
<div class="bm">
<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
</div>
<?php 
    if (!empty($_G['setting']['pluginhooks']['index_top'])) {
        echo $_G['setting']['pluginhooks']['index_top'];
    }
    ?>
<div class="flg flt bm cl">
<h2>群组分类</h2><?php 
    if (is_array($first)) {
        foreach ($first as $groupid => $group) {
            if ($group['secondlist']) {
                ?>
<dl class="flc<?php 
                echo swapclass('', ' gcop');
                ?>
">
<dt><a href="group.php?gid=<?php 
                echo $groupid;
                ?>
"><?php 
                echo $group['name'];
                ?>
</a><?php 
                if ($group['groupnum']) {
                    ?>
<span>(<?php 
                    echo $group['groupnum'];
                    ?>
)</span><?php