<%
__header("Content-Type","text/html; charset=gb2312");
db_Open("/NandFlash/tmp/dbData.db3");
var sql="select * from tbSMAlarm where LastUpd>='" + starttime + "' and LastUpd<='" + endtime + "'";
if (isid!="all")
  sql=sql+" and SID="+isid;
sql=sql+" order by DID desc";
db_QryAdv(sql);
db_Close();

%>