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

include 'userinfo.php';

$page = tsIntval($_GET['page'],1);
$url = tsUrl('user','topic',array('id'=>$strUser['userid'],'page'=>''));
$lstart = $page*30-30;

$arrTopic = $new['user']->findAll('topic',array(
	'userid'=>$strUser['userid'],
),'addtime desc',null,$lstart.',30');

$topicNum = $new['user']->findCount('topic',array(
	'userid'=>$strUser['userid'],
));
$pageUrl = pagination($topicNum, 30, $page, $url);

$title = $strUser['username'].'的帖子';
include template('topic');