<%@ Page Language="C#" AutoEventWireup="true" CodeFile="{file_add_name}.cs" Inherits="{fyp_namespace}.Web.{file_add_name type="2"}" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

<!--
'' ============================================================================================
'' 项目名称：{fyp_title}
'' 项目版本：{fyp_version}
'' 项目描述：{fyp_description}
'' 文件名称：{file_add_name}
'' 文件描述：信息增改文件{value_match_check value1="{table_description}" value2="" extend_match="unequal"} （{table_description}）{/value_match_check}
'' 公司名称：{fyp_company}
'' 开发人员：{fyp_designer}
'' 创建日期：{fyp_created_date}
'' 修订日期：{system_date_time format="yyyy-MM-dd hh:mm:ss"}
'' 版权信息：{fyp_copyright}

'' 项目升级时需读取以下生成工具的版权信息
'' 生成工具：{fysoft_name}
'' 当前版本：{fysoft_version}
'' 官方网站：{fysoft_website}
'' ============================================================================================
-->

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>信息输入与修改</title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript" src="js/js_page.js"></script>
    <script language="javascript" type="text/javascript" src="js/js_string.js"></script>
    <script language="javascript" type="text/javascript" src="js/js_regex.js"></script>
{control_style_all_check value="日时选择|日期选择|时分框|时分秒框" match="true"}
    <script language="javascript" type="text/javascript" src="js/datepicker/WdatePicker.js"></script>
{/control_style_all_check}
</head>
<body>
    <form id="form1" runat="server">

<asp:ValidationSummary ID="ValidationSummary_Input" runat="server" ShowMessageBox="True" ShowSummary="False"  ValidationGroup="input"/>

<table id="tabInput" width="100%" border="1" cellpadding="4" cellspacing="1" class="tableStyleSolidLine" style="margin-left:auto;margin-right:auto;">

{remark}生成控件{/remark}
{fields_loop}
<tr>
<td class="tableTitle1">
<asp:Label ID="lab_{control_name}" runat="server" Text="{field_caption translate="auto"} {field_mininput_check value="允许空值" match="false"}*{/field_mininput_check}"></asp:Label>

{remark}检测控件输入信息是否允许空值{/remark}
{field_mininput_check value="允许空值" match="false"}
    <asp:RequiredFieldValidator ID="checkEmpty__{control_name}" runat="server" ControlToValidate="{control_name}" ErrorMessage="[{field_caption translate="auto"}] {text translate="auto"}不允许为空值{/text}" SetFocusOnError="True" ValidationGroup="input"{field_js_check_input_check value="false" match="true"} EnableClientScript="False"{/field_js_check_input_check}>*</asp:RequiredFieldValidator>
{/field_mininput_check}

{remark}检测控件输入信息长度{/remark}
    <asp:RegularExpressionValidator ID="checkLen__{control_name}" runat="server" ControlToValidate="{control_name}" ErrorMessage="{text translate="auto"}所输入 [{field_caption translate="auto"}] 的内容有误：值必须为{field_minlength}-{field_maxlength}个字符{/text}" ValidationExpression="^[\s\S]{{field_minlength},{field_maxlength}}$" ValidationGroup="input" SetFocusOnError="True"{field_js_check_input_check value="false" match="true"} EnableClientScript="False"{/field_js_check_input_check}>*</asp:RegularExpressionValidator>

{remark}检测控件输入信息是否符合正则表达式{/remark}
{field_allow_text_type_check value="不检测" match="false"}
    <asp:RegularExpressionValidator ID="checkMatch__{control_name}" runat="server" ControlToValidate="{control_name}" ErrorMessage="[{field_caption translate="auto"}]：{field_allow_text_type_desc}" ValidationExpression="{replace find_str1='"' replace_str1="&quot;"}{field_allow_text_type_regex}{/replace}" ValidationGroup="input" SetFocusOnError="True"{field_js_check_input_check value="false" match="true"} EnableClientScript="False"{/field_js_check_input_check}>*</asp:RegularExpressionValidator>
{/field_allow_text_type_check}</td>

<td class="tableContent001">

{control_style_check value="文本框" match="true"}
<asp:TextBox ID="{control_name}" runat="server" CssClass="textBox" Width="99%" MaxLength="{field_maxlength}" Rows="10"></asp:TextBox>
{/control_style_check}

{control_style_check value="文本域|UBB文本" match="true"}
<asp:TextBox ID="{control_name}" runat="server" CssClass="textArea" Width="99%" MaxLength="{field_maxlength}" TextMode="MultiLine" Rows="10"></asp:TextBox>
{/control_style_check}

{control_style_check value="密码框" match="true"}
<asp:TextBox ID="{control_name}" runat="server" CssClass="textBox" Width="99%" MaxLength="{field_maxlength}" TextMode="Password"></asp:TextBox>
{/control_style_check}

{control_style_check value="隐藏域" match="true"}
<asp:HiddenField ID="{control_name}" runat="server" Value="" />
{/control_style_check}

{control_style_check value="日时选择|日期选择|时分框|时分秒框" match="true"}
<asp:TextBox ID="{control_name}" runat="server" CssClass="textBox" Width="99%" MaxLength="{field_maxlength}" TextMode="SingleLine"></asp:TextBox> 
{/control_style_check}

{control_style_check value="单选按钮" match="true"}
<asp:RadioButtonList ID="{control_name}" runat="server"> <asp:ListItem Value="">选项</asp:ListItem> </asp:RadioButtonList>
{/control_style_check}

{control_style_check value="多选按钮" match="true"}
<asp:CheckBoxList ID="{control_name}" runat="server"> <asp:ListItem Value="">选项</asp:ListItem> </asp:CheckBoxList>
{/control_style_check}

{control_style_check value="下拉列表" match="true"}
{remark note="说明："}为级联菜单的非最后一级菜单时的生成代码{/remark}
{field_seltable_level_check value="0|null" match="false"}
{field_seltable_level_check value="0|null" match="false" next="1"}
<asp:DropDownList ID="{control_name}" runat="server" CssClass="dropDownList" OnSelectedIndexChanged="{control_name}_SelectedIndexChanged" AutoPostBack="True"> <asp:ListItem Value="">--请选择--</asp:ListItem> </asp:DropDownList>
{/field_seltable_level_check}
{/field_seltable_level_check}
{remark note="说明："}不为级联菜单、为级联菜单的最后一级菜单时的生成代码{/remark}
{field_seltable_level_check value="0|null" match="true" next="1"}
<asp:DropDownList ID="{control_name}" runat="server" CssClass="dropDownList"> <asp:ListItem Value="">--请选择--</asp:ListItem> </asp:DropDownList>
{/field_seltable_level_check}
{/control_style_check}

{control_style_check value="单选列表" match="true"}
{field_seltable_level_check value="0|null" match="false"}
{field_seltable_level_check value="0|null" match="false" next="1"}
<asp:ListBox ID="{control_name}" runat="server" CssClass="dropDownList" OnSelectedIndexChanged="{control_name}_SelectedIndexChanged" AutoPostBack="True"> <asp:ListItem Value="">--请选择--</asp:ListItem> </asp:ListBox>
{/field_seltable_level_check}
{/field_seltable_level_check}

{field_seltable_level_check value="0|null" match="true" next="1"}
<asp:ListBox ID="{control_name}" runat="server" CssClass="dropDownList"> <asp:ListItem Value="">--请选择--</asp:ListItem> </asp:ListBox>
{/field_seltable_level_check}
{/control_style_check}

{control_style_check value="多选列表" match="true"}
<asp:ListBox ID="{control_name}" runat="server" CssClass="dropDownList" SelectionMode="Multiple"> <asp:ListItem Value="">--请选择--</asp:ListItem> </asp:ListBox>
{/control_style_check}

{control_style_check value="上载到库|上载文件|图片到库|上载图片" match="true"}
<asp:FileUpload ID="{control_name}" runat="server" CssClass="textBox" Width="99%"></asp:FileUpload>
{/control_style_check}

{control_style_check value="上载文件|上载图片" match="true"}
<asp:Label ID="lab_{control_name}_file" runat="server" Text=" "></asp:Label>
<asp:LinkButton ID="btn_{control_name}_file_del" runat="server" OnCommand="btn_{control_name}_file_del_Command"></asp:LinkButton>
{/control_style_check}

{control_style_check value="上载到库|图片到库" match="true"}
<asp:LinkButton ID="btn_{control_name}_file" runat="server" OnClick="btn_{control_name}_file_Click"></asp:LinkButton>
<asp:LinkButton ID="btn_{control_name}_file_del" runat="server" OnClick="btn_{control_name}_file_del_Click"></asp:LinkButton>
{/control_style_check}</td>
</tr>

    {remark}两次输入设置{/remark}
    {field_input_again_check value="true" match="true"}
    {control_style_check value="文本框|密码框" match="true"}
    <tr>
    <td class="tableTitle1"><asp:Label ID="lab_{control_name}_again" runat="server" Text="{text translate="auto"}再次输入：{field_caption translate="auto"}{/text}"></asp:Label>
      <asp:RequiredFieldValidator ID="check_{field_source_name}_again" runat="server" ControlToValidate="{control_name}_again" ErrorMessage="{text translate="auto"}请再次输入[{field_caption translate="auto"}]{/text}" SetFocusOnError="True" ValidationGroup="input"{field_js_check_input_check value="false" match="true"} EnableClientScript="False"{/field_js_check_input_check}>*</asp:RequiredFieldValidator>

    <asp:RegularExpressionValidator ID="checkLen__{control_name}_again" runat="server" ControlToValidate="{control_name}_again" ErrorMessage="{text translate="auto"}[{field_caption translate="auto"}] 再次输入的内容有误：值必须为{field_minlength}-{field_maxlength}个字符{/text}" ValidationExpression="^[\s\S]{{field_minlength},{field_maxlength}}$" ValidationGroup="input" SetFocusOnError="True"{field_js_check_input_check value="false" match="true"} EnableClientScript="False"{/field_js_check_input_check}>*</asp:RegularExpressionValidator>

{field_allow_text_type_check value="不检测" match="false"}
    <asp:RegularExpressionValidator ID="checkMatch__{control_name}_again" runat="server" ControlToValidate="{control_name}" ErrorMessage="[{field_caption translate="auto"}]：{field_allow_text_type_desc}" ValidationExpression="{replace find_str1='"' replace_str1="&quot;"}{field_allow_text_type_regex}{/replace}" ValidationGroup="input" SetFocusOnError="True"{field_js_check_input_check value="false" match="true"} EnableClientScript="False"{/field_js_check_input_check}>*</asp:RegularExpressionValidator>
{/field_allow_text_type_check}

    <asp:CompareValidator ID="checkCompare__{control_name}_again" runat="server" ControlToCompare="{control_name}" ControlToValidate="{control_name}_again" ErrorMessage="{text translate="auto"}[{field_caption translate="auto"}] 两次输入的信息必须一致{/text}" ValidationGroup="input" SetFocusOnError="True"{field_js_check_input_check value="false" match="true"} EnableClientScript="False"{/field_js_check_input_check}>*</asp:CompareValidator>    </td>
    <td class="tableContent001">{control_aspx_input name="{control_name}_again" width="99%"}</td>
    </tr>
    {/control_style_check}
    {/field_input_again_check}
{/fields_loop}

{remark}校验码{/remark}
{valid_code_check value="true" match="true"}
<tr>
<td class="tableTitle1">
{text translate="auto"}校验码{/text}
<asp:RequiredFieldValidator ID="checkEmpty__ctrl_ValidCode" runat="server" ControlToValidate="ctrl_ValidCode" ErrorMessage="{text translate="auto"}[校验码] 不允许为空值{/text}" SetFocusOnError="True" ValidationGroup="input">*</asp:RequiredFieldValidator>
</td>
<td class="tableContent001">
<asp:TextBox ID="ctrl_ValidCode" runat="server" CssClass="textBox" MaxLength="50"
                Rows="10" Width="100px"></asp:TextBox>
<a href onclick="document.getElementById('ValidCode').src=document.getElementById('ValidCode').src + '?id=0';"><img src="ValidCode/ValidCode.aspx" alt="点击刷新验证码" id="ValidCode"></a></td>
</tr>
{/valid_code_check}

<tr>
<td class="tableTitle1"></td>
<td class="tableContent001">
<asp:Button ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" Text="{text translate="auto"}新增{/text}" ValidationGroup="input" CssClass="btn001"/></td>
</tr>
</table>


    </form>
</body>
</html>