Dim e As RequestEventArgs = args(0)
Dim wb As New weui
wb.AppendHTML("<link rel='stylesheet' href='./weui/exweui.css'/>",True)
wb.AppendHTML("<script src='./weui/exweui.js' ></script>",True)
With wb.AddTabBar("", "tb1", 1)
.AddPage("page1","侧栏","./images/cell.png").Attribute = "style='height: 100%;'"
.AddPage("page2","导航","./images/tab.png").Attribute = "style='height: 100%;'"
.AddPage("page3","详情","./images/tab.png").Attribute = "style='height: 100%;'"
.AddPage("page4","宫格","./images/tab.png").Attribute = "style='height: 100%;'"
End With
Dim tab As ExWeUI.ExSideTab = ExWeUI.WebUI.AddSideTab("","stab1")
tab.AddPage("st1","单选框","getExRadioGroup.htm","./images/button.png",True)
tab.AddPage("st2","复选框","getExCheckGroup.htm","./images/toast.png")
tab.AddPage("st3","空白页面","")
wb.InsertHTML("page1",tab.BuildHtml)
'wb.AppendHTML("<script>initExWeUI();</script>")
wb.InsertHTML("page2","<div id='divpage1' />")
wb.AppendHTML("<script>document.getElementById('page2_btn').addEventListener('click',function(){document.getElementById('divpage1').innerHTML=sendAjaxText('zhedie','zhedie.htm','',false);},false);</script>")
With wb.AddGrid("page4","ar5")
For Each dr As DataRow In DataTables("基础资料表").sqlSelect("服务名称>''")
.Add(dr("_Identify"),dr("服务名称"),"./images/toast.png",dr("ip"))
'MessageBox.Show(dr("_Identify"))
Next
End With
wb.InsertHTML("page3","<div id='divpage2' />")
wb.AppendHTML("<script>document.getElementById('page3_btn').addEventListener('click',function(){document.getElementById('divpage2').innerHTML=sendAjaxText('yemian','yemian.htm','',false);},false);</script>")
wb.AppendHTML("<script>initExWeUI();</script>")
e.WriteString(wb.Build)
wb.AppendHTML("<script>initExWeUI();</script>")
e.WriteString(wb.Build)