<%
__header("Content-Type","text/html; charset=gb2312");
db_Open("/NandFlash/tmp/dbDat0.db3");
write("{\"items\":");
db_QryAdv("select ss.[SubSys], ssd.SID, ssd.Type, ssd.Fld, sm.Name, ss.Note, sm.Tag1, sm.State as AlmSt, sm.SerDef, sm.Ext2, sm.AID, ss.Count, ssd.[LastUpd], ssd.State from tbSubSysDetail ssd left join tbSubSys ss on ssd.[SubSys] = ss.SubSys left join tbSM sm on ssd.[SID] = sm.SID",0);
write(",\"gsm\":");
db_QryAdv("select * from tbAlmGsm",0);
write(",\"dt\":{\"dt\":");
cfg_GetCfg(5);
write("}}");
db_Close();
%>