require_once(dirname(__FILE__)."/../include/common.inc.php"); require_once(DEDEINC."/datalistcp.class.php"); $nativeplace=500; if(!empty($nativeplace)) { if($nativeplace% 500 ==0 ) { $naddQuery .= " And nativeplace >= '$nativeplace' And nativeplace < '".($nativeplace+500)."' "; } else { $naddQuery .= " And nativeplace = '$nativeplace'"; } } $sql = "select * From `#@__addoninfos` where typeid=1 and arcrank=0 $naddQuery order by senddate desc "; $dlist = new DataListCP(); $dlist->SetTemplet("BeiJing_CTA_Office.htm"); $dlist->SetSource($sql); $dlist->display(); ?>