该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
public function getTopic($board,$top,$start='',$end='',$page='10',$key='',$orderField='topic_posttime',$orderValue='desc',$status='0',$hot='',$keyword=''){
$topicList=$this->getTopicList($board,$top,$start,$end,$orderField,$orderValue,$status,$hot,$keyword);
if ($topicList){
foreach($topicList as $row){
$fileList=$this->getFileListByID(0,$row['topic_id']);
echo "
if($row["topic_isgood"]=="1") echo "[".S_GOOD."]";
if($fileList) include("add.php");
if (empty($key)){
echo " ".$row["topic_title"]."
";
echo substr($row["topic_content"],0,800);
echo "
";
}else{
echo " ".$row["topic_title"]."
";
echo substr($row["topic_content"],0,800);
}
}
}else{
echo "
}
}
上面是取最新帖子类
public function getTopicFileByTopicID($topicID,$type){
$sql="select * from ".DB_TABLE_PREFIX."file where file_topic=".$topicID." and file_sort='".$type."' order by file_addtime desc";
$query=$this->db->query($sql);
return $query->rows;
}
上面是帖子附件类
请问要怎么样才能把附件以及图片显示在帖子下方