<?php
defined('IN_TS') or die('Access Denied.');

//板块回收站

$groupid = intval($_GET['groupid']);

$strGroup = $new['group']->getOneGroup($groupid);

$title = $strGroup['groupname'];

/*
 *获取板块全部内容列表
 */
 
$page = isset($_GET['page']) ? intval($_GET['page']) : 1;

$url = 'index.php?app=group&ac=group_recovery&groupid='.$groupid.'&page=';

$lstart = $page*30-30;

$arrTopic = $db->fetch_all_assoc("select * from ".dbprefix."group_topics where groupid='$groupid' and isshow='1' order by addtime desc  limit $lstart,30");

$topicNum = $db->once_num_rows("select * from ".dbprefix."group_topics where groupid='$groupid' and isshow='1' ");

$pageUrl = pagination($topicNum, 30, $page, $url);

if($page > '1'){
	$titlepage = " - 第".$page."页";
}else{
	$titlepage='';
}

$title =$title.'板块的回收站'.$titlepage;

include template("group_recovery");