Dim e As RequestEventArgs = args(0)
Dim wb As New weui
Dim nms() As String
Dim cps() As String
Dim Ls As String = "style= 'border:none;padding:0px;height:25px;margin:0;width:100%;color:blue;padding-left:10px;font-size:16px;'"
Dim cl As String="style= 'border:none;padding:0px;margin:0;height:45px;width:100%;margin:10px;font-size:16px;padding-left:0px;color:blue;"
Dim dr As DataRow = DataTables("用户").SQLFind("[身份证号] = '" & e.Cookies("UserName") & "' And [是否可用] = 'true'")
Dim lst As List(of DataRow)
wb.InsertHTML("<!DOCTYPE html>")
wb.InsertHTML("<html>")
wb.InsertHTML("<head>")
wb.InsertHTML("<meta charset='utf-8'>")
wb.InsertHTML("<meta name='viewport' c />")
wb.InsertHTML("<link href='../mui/css/mui.css' rel='stylesheet'/>")
wb.InsertHTML("<script Type='text/javascript' charset='utf-8'>mui.init();</script>")
wb.InsertHTML("<script src='../mui/js/mui.min.js'></script>")
wb.InsertHTML("<title></title>")
wb.InsertHTML("</head>")
wb.InsertHTML("<body>")
wb.InsertHTML("<header class='mui-bar mui-bar-nav mui-bar-nav-bg'>")
wb.InsertHTML("<a href='javascript:history.back(-1)' id='icon-menu' class='mui-action-back mui-icon mui-icon-left-nav mui-pull-left' ></a>")
wb.InsertHTML("<h1 class='mui-title'>查询选择</h1>")
wb.InsertHTML("</header>")
wb.InsertHTML("<div class='mui-content'>")
wb.AddForm("","form1","jwcxscjsy.htm")
If e.PostValues.Count = 0 Then
Dim xds As List(of String) = DataTables("学校信息").GetValues("学段","单位全称= '" & dr("group") & "'")
With wb.AddInputGroup("form1","ipg1")
Dim xd=.AddSelect("xd","选择学段:","|" & String.Join("|",xds.ToArray)) count>0时显示数据,用顶部返回时这个学段值在
xd.attribute="style ='border:none;padding:0px;height:45px;width:100%;margin:10px;font-size:16px;padding-left:0px;color:blue;'"
Dim ksmc=.AddSelect("ksmc", "考试名称:","") count>0时显示数据,用顶部返回时这个考试名称值不在,要重选学段值才有下拉
ksmc.attribute="style ='border:none;padding:0px;height:45px;width:100%;margin:10px;font-size:16px;padding-left:0px;color:blue;'"
.AddSelect("bjqc", "班级全称:","").Attribute=CL
.AddSwitch("px","是否排序:",False)
.AddSwitch("zh","是否折合:",False)
End With
With wb.AddButtonGroup("form1","btg1",True)
Dim bt1= .Add("btn1", "确定", "submit")
bt1.Attribute = "style='border:1px solid black;border-radius:20px;padding:0px;width:50%'"
bt1.kind=1
End With
' wb.AppendHTML("<script src='./lib/ajx.js'></script>")
For Each xd As String In xds
wb.InsertHTML("<p hidden id='" & xd & "'>" & "|" & DataTables("成绩").sqlGetComboListString("考试名称","学段='" & xd & "'","考试名称 desc") & "</p>")
Next
wb.AppendHTML("<script src='./lib/brands.js'></script>") '引入脚本文件
e.WriteString(wb.Build) '生成网页
Else
If e.PostValues("xd")="初中"
If e.PostValues("zh")= "on"
If e.postvalues("px")="on"