Exemplo n.º 1
0
        private void MenuList(int Id, string Separator, string MenuId)
        {
            DataView dv = new DataView(dsList.Tables[0]);

            dv.RowFilter = "ParentId = " + Id;
            foreach (DataRowView dr in dv)
            {
                HttpContext.Current.Response.Write("    <option value='" + dr["Id"] + "'" + StringDeal.GetSelected(dr["Id"], MenuId) + ">" + Separator + StringDeal.StrFormat(dr["Title"]) + "</option>");
                MenuList(StringDeal.ToInt(dr[0]), "┃" + Separator, MenuId);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// 批量文件上传
 /// </summary>
 private void BatchFileType()
 {
     HttpContext.Current.Response.Write("文件类型:<select name='UploadFileType'><option value='VideoType'" + StringDeal.GetSelected(GetXmlValue("UploadFileType"), "VideoType") + ">视频类型</option><option value='AudioType'" + StringDeal.GetSelected(GetXmlValue("UploadFileType"), "AudioType") + ">音频类型</option><option value='SoftType'" + StringDeal.GetSelected(GetXmlValue("UploadFileType"), "SoftType") + ">软件类型</option><option value='OtherType'" + StringDeal.GetSelected(GetXmlValue("UploadFileType"), "OtherType") + ">其他类型</option><option value=''" + StringDeal.GetSelected(GetXmlValue("UploadFileType"), "") + ">全部类型</option></select><br />");
     HttpContext.Current.Response.Write("默 认 值:<input type='text' value='" + GetXmlValue("Field_Text") + "' class='input' maxlength='200' name='Default'>标题,文件名称或地址");
     ValidatorInfo();
 }
Exemplo n.º 3
0
 /// <summary>
 /// 编辑器
 /// </summary>
 private void EditorType()
 {
     HttpContext.Current.Response.Write("编辑器类型:<select name='EditorType'><option value='1'" + StringDeal.GetSelected(GetXmlValue("EditorType"), 1) + ">简洁版</option><option value='2'" + StringDeal.GetSelected(GetXmlValue("EditorType"), 2) + ">标准版</option><option value='3'" + StringDeal.GetSelected(GetXmlValue("EditorType"), 3) + ">高级版</option></select><br />");
     HttpContext.Current.Response.Write("显示的宽度:<input type='text' value='" + GetXmlValue("Width") + "' class='input' size='5' maxlength='3' name='Width'><br />");
     HttpContext.Current.Response.Write("显示的高度:<input type='text' value='" + GetXmlValue("Height") + "' class='input' size='5' maxlength='3' name='Height'><br />");
     HttpContext.Current.Response.Write("默 认 值:<textarea name='Default' cols='45' rows='5'>" + GetXmlValue("Field_Text") + "</textarea>");
     ValidatorInfo();
 }
Exemplo n.º 4
0
 /// <summary>
 /// 数字
 /// </summary>
 private void NumberType()
 {
     HttpContext.Current.Response.Write("小数位数:<select name='Bit'><option value='0'" + StringDeal.GetSelected(GetXmlValue("Bit"), 0) + ">0</option><option value='1'" + StringDeal.GetSelected(GetXmlValue("Bit"), 1) + ">1</option><option value='2'" + StringDeal.GetSelected(GetXmlValue("Bit"), 2) + ">2</option><option value='3'" + StringDeal.GetSelected(GetXmlValue("Bit"), 3) + ">3</option><option value='4'" + StringDeal.GetSelected(GetXmlValue("Bit"), 4) + ">4</option><option value='5'" + StringDeal.GetSelected(GetXmlValue("Bit"), 5) + ">5</option></select><br />");
     HttpContext.Current.Response.Write("默&nbsp;&nbsp;认&nbsp;&nbsp;值:<input type='text' value='" + GetXmlValue("Field_Text") + "' class='input' maxlength='18' name='Default'>");
     ValidatorInfo();
 }
Exemplo n.º 5
0
 /// <summary>
 /// 密码
 /// </summary>
 private void PasswordType()
 {
     HttpContext.Current.Response.Write("最大字符数:<input type='text' value='" + GetXmlValue("MaxLength") + "' class='input' size='5' maxlength='4' name='MaxLength'><br />");
     HttpContext.Current.Response.Write("文本框长度:<input type='text' value='" + GetXmlValue("Size") + "' class='input' size='5' maxlength='3' name='Size'><br />");
     HttpContext.Current.Response.Write("默 认 值:<input type='text' value='" + GetXmlValue("Field_Text") + "' class='input' size='30' maxlength='100' name='Default'><br />");
     HttpContext.Current.Response.Write("加&nbsp;&nbsp;&nbsp;&nbsp;密&nbsp;&nbsp;&nbsp;&nbsp;方&nbsp;&nbsp;&nbsp;&nbsp;式:<select name='PwdMode'><option value='0'" + StringDeal.GetSelected(GetXmlValue("PwdMode"), "0") + ">不加密</option><option value='MD5'" + StringDeal.GetSelected(GetXmlValue("PwdMode"), "MD5") + ">MD5加密</option><option value='DES'" + StringDeal.GetSelected(GetXmlValue("PwdMode"), "DES") + ">DES加密</option><option value='AES'" + StringDeal.GetSelected(GetXmlValue("PwdMode"), "AES") + ">AES加密</option></select>");
     ValidatorInfo();
 }