以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  [求助]手机设计中的Grid和文本输入框可否在一个窗口显示?  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=100088)

--  作者:新福星
--  发布时间:2017/5/4 16:22:00
--  [求助]手机设计中的Grid和文本输入框可否在一个窗口显示?

 

 With wb.AddInputGroup("form1","ipg1","登录")
.AddInput("xm","户名","text")
.AddInput("pw","密码","password")
End With

 

 With wb.AddGrid("","g1")
.Add("c1","Button","./images/button.png").Attribute = ""

 

这两类不同的控件能否显示在一个窗口内呢?谢谢


--  作者:有点蓝
--  发布时间:2017/5/4 17:15:00
--  
可以的,这种情况测试过就知道了
--  作者:新福星
--  发布时间:2017/5/4 17:43:00
--  

  Case "default.htm" \'首页
        wb.AddPageTitle("","pageheader","工资查询系统","金者软件开发")
        
              With wb.AddInputGroup("form1","ipg1","客户资料")
            .AddInput("姓名","姓名","Text") \'前一个"姓名"是ID,后一个"姓名"是标题
            .AddInput("年龄","年龄","number")
            .AddInput("日期","日期","date")
            .AddSelect("级别","级别","普通会员|高级会员|VIP会员")
            .AddSwitch("停权","停权")
        End With
        
               With wb.AddGrid("","g1")
         
            .Add("c1","增加订单", "./images/105.png").Attribute = ""
            .Add("c2","客户管理", "./images/120.png", "http://www.foxtable.com")
            .Add("c3","销售统计", "./images/121.png").Attribute = ""
            .Add("c4","修改密码", "./images/130.png","Update.htm")   \'.Attribute = ""   \' javascript:alert(""./images/121.png"")\'"
            .Add("c5","Progress", "./images/123.png", "http://www.foxtable.com")
            .Add("c12","退出", "./images/147.png", "exit.htm") \'退出登录
           
        End With
        e.WriteString(wb.Build)

 

经过测试上面这段程序,只显示下面Gird的内容。

 

把 e.WriteString(wb.Build)移到中间部份时就什么也不显示了!



--  作者:有点色
--  发布时间:2017/5/4 17:46:00
--  

加上红色

 

        wb.AddPageTitle("","pageheader","工资查询系统","金者软件开发")
        wb.AddForm("","form1","test.htm")
        With wb.AddInputGroup("form1","ipg1","客户资料")