邓士鹏 石家庄职业技术学院
邓士鹏 石家庄职业技术学院邓士鹏 石家庄职业技术学院邓士鹏 石家庄职业技术学院邓士鹏 石家庄职业技术学院邓士鹏 石家庄职业技术学院邓士鹏 石家庄职业技术学院邓士鹏 石家庄职业技术学院邓士鹏 石家庄职业技术学院邓士鹏 石家庄职业技术学院邓士鹏 石家庄职业技术学院邓士鹏 石家庄职业技术学院邓士鹏 石家庄职业技术学院邓士鹏 石家庄职业技术学院
$condition = "thumb<>'' and groupid<8 and groupid>5 AND catids<>''";
if($keyword) $condition .= " AND keyword LIKE '%$keyword%'";
if($mode) $condition .= " AND mode LIKE '%$modes[$mode]%'";
if($type) $condition .= " AND type='$types[$type]'";
if($size) $condition .= " AND size='$sizes[$size]'";
if($catid) $condition .= " AND catids LIKE '%,".$catid.",%' ";
if($areaid) $condition .= ($ARE['child']) ? " AND areaid IN (".$ARE['arrchildid'].")" : " AND areaid=$areaid";
if($thumb) $condition .= " AND thumb<>''";
if($vip) $condition .= $vip == 1 ? " AND vip>0" : " AND vip=$vip-1";
if($mincapital) $condition .= " AND capital>$mincapital";
if($maxcapital) $condition .= " AND capital<$maxcapital";
// $pagesize = $MOD['pagesize'];
$pagesize = '5';
$offset = ($page-1)*$pagesize;
$items = $db->count($table, $condition, $DT['cache_search']);
$pages = pages($items, $page, $pagesize);
if($items) {
$order = $MOD['order'] ? " ORDER BY ".$MOD['order'] : '';
$result = $db->query("SELECT $fds FROM {$table} WHERE {$condition}{$order} LIMIT {$offset},{$pagesize}", $DT['cache_search'] && $page == 1 ? 'CACHE' : '', $DT['cache_search']);
if($kw) {
$replacef = explode(' ', $kw);
$replacet = array_map('highlight', $replacef);
}