/* wxh */
.bfg_ntopa
{
float:center;
clear:center;
font-weight: bold;
margin: 2px 2px 0px 2px;
text-align: center;
line-height: 18px;
BORDER-RIGHT: #cccccc 1px solid;
BORDER-LEFT: #cccccc 1px solid;
vertical-align:bottom;
}
.bfg_ntopb {
float:center;
clear:center;
BORDER-RIGHT: #cccccc 1px solid;
BORDER-BOTTOM:#cccccc 1px solid;
BORDER-LEFT: #cccccc 1px solid;
margin: 2px 2px 0px 2px;
text-align: center;
vertical-align : middle;
line-height: 18px;
}
/*wxh ends*/
$query = $db->query("SELECT attach.aid, attach.attachment, t.tid,t.fid, t.subject FROM {$tablepre}attachments attach LEFT JOIN{$tablepre}threads t ON t.displayorder>=0 AND t.tid=attach.tid WHEREattach.readperm='0' AND displayorder>='0' AND filetype='image/pjpeg'$fids GROUP BY attach.tid ORDER BY $orderby DESC LIMIT $searchnums");
$query = $db->query("SELECT attach.aid, attach.attachment, t.tid,t.fid, t.subject FROM {$tablepre}attachments attach LEFT JOIN{$tablepre}threads t ON t.tid=attach.tid WHERE attach.readperm='0' ANDdisplayorder>='0' AND (filetype='image/pjpeg' orfiletype='image/jpeg' or filetype='image/png') $fids GROUP BYattach.tid ORDER BY $orderby DESC LIMIT $searchnums");