コード例 #1
0
 /// <summary>
 /// 日期
 /// </summary>
 private void DateTimeType()
 {
     HttpContext.Current.Response.Write("格  式:<input value='yyyy-mm-dd' type='radio' name='DateTime'" + StringDeal.GetChecked(GetXmlValue("DateTime"), "yyyy-mm-dd") + " />仅日期");
     HttpContext.Current.Response.Write(" <input value='yyyy-mm-dd hh:mm:ss' type='radio' name='DateTime'" + StringDeal.GetChecked(GetXmlValue("DateTime"), "yyyy-mm-dd hh:mm:ss") + " />日期和时间<br />");
     HttpContext.Current.Response.Write("默&nbsp;&nbsp;认&nbsp;&nbsp;值:<input type='text' value='" + GetXmlValue("Field_Text") + "' class='input' maxlength='20' name='Default'>选择日期/当前日期");
     ValidatorInfo();
 }
コード例 #2
0
 /// <summary>
 /// 选项(下拉、单选、多选)
 /// </summary>
 private void SelectType()
 {
     HttpContext.Current.Response.Write("每个选项:<br /><textarea name='Options' cols='45' rows='5' class=''>" + GetXmlValue("Options") + "</textarea><br />请输入选项名称,中间用回车分割开<br />");
     HttpContext.Current.Response.Write("选项类型:<input value='select' type='radio' name='OptionsType'" + StringDeal.GetChecked(GetXmlValue("OptionsType"), "select") + " />单选下拉列表框");
     HttpContext.Current.Response.Write(" <input value='radio' type='radio' name='OptionsType'" + StringDeal.GetChecked(GetXmlValue("OptionsType"), "radio") + " />单选按钮");
     HttpContext.Current.Response.Write(" <input value='checkbox' type='radio' name='OptionsType'" + StringDeal.GetChecked(GetXmlValue("OptionsType"), "checkbox") + " />复选框<br />");
     HttpContext.Current.Response.Write("默&nbsp;&nbsp;认&nbsp;&nbsp;值:<input type='text' value='" + GetXmlValue("Field_Text") + "' class='input' maxlength='100' name='Default'>");
     ValidatorInfo();
 }