begin of thinksaas 3.68

Signed-off-by: kevin <kevin@lmve.net>
This commit is contained in:
2023-06-22 13:33:25 +08:00
commit 963ec1b2ea
2746 changed files with 331806 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
<?php
defined('IN_TS') or die('Access Denied.');
$userid = aac('user')->isLogin();
$strUser = aac('user')->getOneUser($userid);
+30
View File
@@ -0,0 +1,30 @@
<?php
defined ( 'IN_TS' ) or die ( 'Access Denied.' );
//加入的小组
$arrGroupsList = $new['group']->findAll('group_user',array(
'userid'=>$strUser['userid'],
),null,'groupid');
foreach($arrGroupsList as $key=>$item){
$arrGroup[] = aac('group')->getOneGroup($item['groupid']);
}
//创建的小组
$arrCreateGroup = $new['group']->findAll('group',array(
'userid'=>$strUser['userid'],
));
foreach($arrCreateGroup as $key=>$item){
$arrCreateGroup[$key]['groupname'] = tsTitle($item['groupname']);
if($item['photo']){
$arrCreateGroup[$key]['photo'] = tsXimg($item['photo'],'group',120,120,$item['path'],1);
}else{
$arrCreateGroup[$key]['photo'] = SITE_URL.'public/images/group.jpg';
}
}
$title = '我加入的小组';
include template('my/index');
+20
View File
@@ -0,0 +1,20 @@
<?php
defined ( 'IN_TS' ) or die ( 'Access Denied.' );
$page = isset ( $_GET ['page'] ) ? intval ( $_GET ['page'] ) : 1;
$url = tsUrl ( 'group', 'my', array ('my'=>'topic','page' => '' ) );
$lstart = $page * 20 - 20;
$arrTopic = $new['group']->findAll('group_topic',array(
'userid'=>$strUser['userid'],
),'addtime desc',null,$lstart.',20');
$topicNum = $new ['group']->findCount ( 'group_topic', array (
'userid' => $strUser['userid'],
) );
$pageUrl = pagination ( $topicNum, 20, $page, $url );
$title = '我的帖子';
include template('my/topic');