//----------tgbz $User = M ( 'tgbz' ); $map['user']=$_SESSION['uname']; $list = $User->where ( $map )->order ( 'id DESC' )->select (); //----------jsbz $User = M ( 'jsbz' ); $map1['user']=$_SESSION['uname']; $list1 = $User->where ( $map1 )->order ( 'id DESC' )->select (); /////---------------- foreach($list1 as $k=>$v){ array_push($list,$v); } foreach($list as $k=>$v){ $list[$k]['time0']=strtotime($v['date']); } $sort = array( 'direction' => 'SORT_DESC', //排序顺序标志 SORT_DESC 降序;SORT_ASC 升序 'field' => 'time0', //排序字段 ); $arrSort = array(); if($sort['direction']){ array_multisort($arrSort[$sort['field']], constant($sort['direction']), $list); } $this->assign ( 'list', $list ); // 赋值数据集