IsTable($mtable)){ $row =$dsql->GetOne("SELECT COUNT(*) AS nums FROM {$mtable}"); return empty($row['nums'])? "0" : $row['nums']; }else{ return '0'; } } $sql = "SELECT `id`,`name`,`table`,`description`,`state`,`issystem` FROM #@__member_model ORDER BY id ASC"; $dlist = new DataListCP(); $dlist->SetTemplet(DEDEADMIN."/templets/member_model_main.htm"); $dlist->SetSource($sql); $dlist->display(); $dlist->Close();