gettotal($totalquery); if(empty($num)) { printerror('SchallNotRecord','',1); } } else { $num=$totalnum; } $search=$schallr['search'].'&sear=1'; if($public_r['usetotalnum']) { $search.='&totalnum='.$num; } //checkpageno eCheckListPageNo($page,$line,$num); $query.=" order by infotime desc limit $offset,$line"; $sql=$empire->query($query); $listpage=page1($num,$line,$page_line,$start,$page,$search); $url="".$fun_r['index']." > ".$fun_r['SearchAllNav']; ?> ; $formatdate=""; while($r=$empire->fetch($sql)) { $tbname=$class_r[$r[classid]]['tbname']; if(empty($tbname)) { continue; } $titlefield=$schalltb_r[$tbname]['titlefield']; $smalltextfield=$schalltb_r[$tbname]['smalltextfield']; $infor=$empire->fetch1("select id,classid,titlepic,newstime,isurl,titleurl,".$titlefield.",".$smalltextfield." from {$dbtbpre}ecms_".$tbname." where id='$r[id]' limit 1"); if(empty($infor['id'])) { continue; } $no++; $titleurl=sys_ReturnBqTitleLink($infor); $titlepic=$infor['titlepic']?$infor['titlepic']:$public_r['newsurl']."e/data/images/notimg.gif"; $smalltext=SubSchallSmalltext($infor[$smalltextfield],$subnum); $title=DoReplaceFontRed($infor[$titlefield],$keyboard); $smalltext=DoReplaceFontRed($smalltext,$keyboard); $newstime=date($formatdate,$infor['newstime']); ?>