<%@ Page Language="C#" AutoEventWireup="true" CodeFile="YongHuXinXi_search.aspx.cs" Inherits="Fyp_3TierCommon.Web.YongHuXinXi_search" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!--
'' ============================================================================================
'' 项目名称：风越项目范例ASPX普通三层结构
'' 项目版本：V1.0
'' 项目描述：风越项目范例，用于建立ASPX普通三层结构
'' 文件名称：YongHuXinXi_search.aspx
'' 文件描述：信息搜索文件 （用户信息）
'' 公司名称：中极网盛
'' 开发人员：刘怒
'' 创建日期：2008-12-25 20:23:50
'' 修订日期：2009-03-10 06:06:55
'' 版权信息：Copyright (C) 2008

'' 项目升级时需读取以下生成工具的版权信息
'' 生成工具：风越代码生成器 [FireCode Creator]
'' 当前版本：通用版 V1.8
'' 官方网站：http://www.sino8848.com
'' ============================================================================================
-->

<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>

    <script language="javascript" type="text/javascript" src="js/datepicker/WdatePicker.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        
        <asp:ValidationSummary ID="ValidationSummary_Input" runat="server" ShowMessageBox="True" ShowSummary="False"  ValidationGroup="search"/>

        <table id="tabSearch" width="100%" border="1" cellpadding="4" cellspacing="1" class="tableStyleSolidLine" style="margin-left:auto;margin-right:auto;">
        
        <tr>
        <td class="tableTitle1">
        <asp:Label ID="lab_USER_ID" runat="server" Text="编号"></asp:Label>

        
            <asp:RegularExpressionValidator ID="checkLen__USER_ID" runat="server" ControlToValidate="USER_ID" ErrorMessage="所输入 [编号]" ValidationExpression="^[\s\S]{1,10}$" ValidationGroup="search" SetFocusOnError="True">*</asp:RegularExpressionValidator>
        

        
            <asp:RegularExpressionValidator ID="checkMatch__USER_ID" runat="server" ControlToValidate="USER_ID" ErrorMessage="[编号]：仅允许整数" ValidationExpression="^[\d]+$" ValidationGroup="search" SetFocusOnError="True">*</asp:RegularExpressionValidator>
        
        </td>

        <td class="tableContent001">

        
        <asp:TextBox ID="USER_ID" runat="server" CssClass="textBox" Width="99%" MaxLength="10" Rows="10"></asp:TextBox>
        

        

        

        

        

        

        

        

        

        
        </td>
        </tr>

        
        <tr>
        <td class="tableTitle1">
        <asp:Label ID="lab_USER_NAME" runat="server" Text="姓名"></asp:Label>

        
            <asp:RegularExpressionValidator ID="checkLen__USER_NAME" runat="server" ControlToValidate="USER_NAME" ErrorMessage="所输入 [姓名]" ValidationExpression="^[\s\S]{1,200}$" ValidationGroup="search" SetFocusOnError="True">*</asp:RegularExpressionValidator>
        

        
        </td>

        <td class="tableContent001">

        
        <asp:TextBox ID="USER_NAME" runat="server" CssClass="textBox" Width="99%" MaxLength="200" Rows="10"></asp:TextBox>
        

        

        

        

        

        

        

        

        

        
        </td>
        </tr>

        
        <tr>
        <td class="tableTitle1">
        <asp:Label ID="lab_USER_PWD" runat="server" Text="密码"></asp:Label>

        

        
        </td>

        <td class="tableContent001">

        
        <asp:TextBox ID="USER_PWD" runat="server" CssClass="textBox" Width="99%" MaxLength="50" Rows="10"></asp:TextBox>
        

        

        

        

        

        

        

        

        

        
        </td>
        </tr>

        
        <tr>
        <td class="tableTitle1">
        <asp:Label ID="lab_USER_EMAIL" runat="server" Text="邮箱"></asp:Label>

        

        
        </td>

        <td class="tableContent001">

        
        <asp:TextBox ID="USER_EMAIL" runat="server" CssClass="textBox" Width="99%" MaxLength="50" Rows="10"></asp:TextBox>
        

        

        

        

        

        

        

        

        

        
        </td>
        </tr>

        
        <tr>
        <td class="tableTitle1">
        <asp:Label ID="lab_USER_BIRTHDAY" runat="server" Text="生日"></asp:Label>

        

        
            <asp:RegularExpressionValidator ID="checkMatch__USER_BIRTHDAY" runat="server" ControlToValidate="USER_BIRTHDAY" ErrorMessage="[生日]：仅日期" ValidationExpression="^(\d{4}[\-]?\d{1,2}[\-]?\d{1,2})$" ValidationGroup="search" SetFocusOnError="True">*</asp:RegularExpressionValidator>
        
        </td>

        <td class="tableContent001">

        

        

        

        

        
        <asp:TextBox ID="USER_BIRTHDAY" runat="server" CssClass="textBox" Width="99%" MaxLength="23" TextMode="SingleLine"></asp:TextBox> 
        

        

        

        

        

        
        </td>
        </tr>

        
        <tr>
        <td class="tableTitle1">
        <asp:Label ID="lab_USER_PHOTO" runat="server" Text="相片"></asp:Label>

        

        
        </td>

        <td class="tableContent001">

        
        <asp:TextBox ID="USER_PHOTO" runat="server" CssClass="textBox" Width="99%" MaxLength="1073741823" Rows="10"></asp:TextBox>
        

        

        

        

        

        

        

        

        

        
        </td>
        </tr>

        
        <tr>
        <td class="tableTitle1">
        <asp:Label ID="lab_USER_PHOTOS2" runat="server" Text="相片2"></asp:Label>

        

        
        </td>

        <td class="tableContent001">

        
        <asp:TextBox ID="USER_PHOTOS2" runat="server" CssClass="textBox" Width="99%" MaxLength="2147483647" Rows="10"></asp:TextBox>
        

        

        

        

        

        

        

        

        

        
        </td>
        </tr>

        
        <tr>
        <td class="tableTitle1">
        <asp:Label ID="lab_USER_NATION" runat="server" Text="民族"></asp:Label>

        
            <asp:RegularExpressionValidator ID="checkLen__USER_NATION" runat="server" ControlToValidate="USER_NATION" ErrorMessage="所输入 [民族]" ValidationExpression="^[\s\S]{1,10}$" ValidationGroup="search" SetFocusOnError="True">*</asp:RegularExpressionValidator>
        

        
            <asp:RegularExpressionValidator ID="checkMatch__USER_NATION" runat="server" ControlToValidate="USER_NATION" ErrorMessage="[民族]：仅允许整数" ValidationExpression="^[\d]+$" ValidationGroup="search" SetFocusOnError="True">*</asp:RegularExpressionValidator>
        
        </td>

        <td class="tableContent001">

        

        

        

        

        

        

        

        
        
        
        
        
        <asp:DropDownList ID="USER_NATION" runat="server" CssClass="dropDownList"> <asp:ListItem Value="">--请选择--</asp:ListItem> </asp:DropDownList>
        
        

        

        
        </td>
        </tr>

        
        <tr>
        <td class="tableTitle1">
        <asp:Label ID="lab_USER_COUNTRY" runat="server" Text="国家或地区"></asp:Label>

        

        
            <asp:RegularExpressionValidator ID="checkMatch__USER_COUNTRY" runat="server" ControlToValidate="USER_COUNTRY" ErrorMessage="[国家或地区]：仅允许整数" ValidationExpression="^[\d]+$" ValidationGroup="search" SetFocusOnError="True">*</asp:RegularExpressionValidator>
        
        </td>

        <td class="tableContent001">

        

        

        

        

        

        

        

        
        
        
        
        <asp:DropDownList ID="USER_COUNTRY" runat="server" CssClass="dropDownList" OnSelectedIndexChanged="USER_COUNTRY_SelectedIndexChanged" AutoPostBack="True"> <asp:ListItem Value="">--请选择--</asp:ListItem> </asp:DropDownList>
        
        
        
        
        

        

        
        </td>
        </tr>

        
        <tr>
        <td class="tableTitle1">
        <asp:Label ID="lab_USER_PROVINCE" runat="server" Text="省份"></asp:Label>

        

        
            <asp:RegularExpressionValidator ID="checkMatch__USER_PROVINCE" runat="server" ControlToValidate="USER_PROVINCE" ErrorMessage="[省份]：仅允许整数" ValidationExpression="^[\d]+$" ValidationGroup="search" SetFocusOnError="True">*</asp:RegularExpressionValidator>
        
        </td>

        <td class="tableContent001">

        

        

        

        

        

        

        

        
        
        
        
        
        <asp:DropDownList ID="USER_PROVINCE" runat="server" CssClass="dropDownList"> <asp:ListItem Value="">--请选择--</asp:ListItem> </asp:DropDownList>
        
        

        

        
        </td>
        </tr>

        

        <tr>
        <td class="tableTitle1"></td>
        <td class="tableContent001">
        <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="搜索" ValidationGroup="search" CssClass="btn001"/>
        </td>
        </tr>
        </table>
        

        <asp:GridView ID="GridView1" runat="server" CssClass="tableStyleSolidLine" Width="100%" PageSize="20"
        AutoGenerateColumns="False" AllowPaging="True" CellPadding="4" ShowFooter="True"
        DataKeyNames="USER_ID,USER_NAME"
        OnPageIndexChanging="GridView1_PageIndexChanging"
        OnRowDataBound="GridView1_RowDataBound"



    
        OnRowEditing="GridView1_RowEditing"
        OnRowCancelingEdit="GridView1_RowCancelingEdit"
        OnRowUpdating="GridView1_RowUpdating"
    
    
        OnRowDeleting="GridView1_RowDeleting"
    

        >
            <HeaderStyle CssClass="tableTitle1" Wrap="False"/>
            <RowStyle CssClass="tableContent001" Wrap="False" />
            <AlternatingRowStyle CssClass="tableContentAlternating001" Wrap="False" />
            <SelectedRowStyle Wrap="False" />
            <EditRowStyle Wrap="False" />
            <FooterStyle CssClass="tableTitle1" Wrap="False" />
            <PagerStyle Wrap="False" />
            <PagerSettings Mode="NextPreviousFirstLast" FirstPageText="首页" LastPageText="尾页" NextPageText="下页" PageButtonCount="3" PreviousPageText="上页"/>
            <Columns>
                
                <asp:TemplateField HeaderText="编号" FooterText="编号" SortExpression="USER_ID">
                <ItemTemplate>
                <asp:Label ID="lab_USER_ID_Show" runat="server" Text='<%# Eval("USER_ID")%>'></asp:Label>
                </ItemTemplate>

                <EditItemTemplate>
                

                
                <asp:Label ID="lab_USER_ID_Show" runat="server" Text='<%# Eval("USER_ID")%>'></asp:Label>
                
                </EditItemTemplate>

                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="姓名" FooterText="姓名" SortExpression="USER_NAME">
                <ItemTemplate>
                <asp:Label ID="lab_USER_NAME_Show" runat="server" Text='<%# Eval("USER_NAME")%>'></asp:Label>
                </ItemTemplate>

                <EditItemTemplate>
                
                <asp:TextBox ID="USER_NAME" runat="server" Text='<%# Bind("USER_NAME") %>' CssClass="textBox"></asp:TextBox>
                

                
                </EditItemTemplate>

                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="密码" FooterText="密码" SortExpression="USER_PWD">
                <ItemTemplate>
                <asp:Label ID="lab_USER_PWD_Show" runat="server" Text='<%# Eval("USER_PWD")%>'></asp:Label>
                </ItemTemplate>

                <EditItemTemplate>
                

                
                <asp:Label ID="lab_USER_PWD_Show" runat="server" Text='<%# Eval("USER_PWD")%>'></asp:Label>
                
                </EditItemTemplate>

                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="邮箱" FooterText="邮箱" SortExpression="USER_EMAIL">
                <ItemTemplate>
                <asp:Label ID="lab_USER_EMAIL_Show" runat="server" Text='<%# Eval("USER_EMAIL")%>'></asp:Label>
                </ItemTemplate>

                <EditItemTemplate>
                

                
                <asp:Label ID="lab_USER_EMAIL_Show" runat="server" Text='<%# Eval("USER_EMAIL")%>'></asp:Label>
                
                </EditItemTemplate>

                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="生日" FooterText="生日" SortExpression="USER_BIRTHDAY">
                <ItemTemplate>
                <asp:Label ID="lab_USER_BIRTHDAY_Show" runat="server" Text='<%# Eval("USER_BIRTHDAY")%>'></asp:Label>
                </ItemTemplate>

                <EditItemTemplate>
                

                
                <asp:Label ID="lab_USER_BIRTHDAY_Show" runat="server" Text='<%# Eval("USER_BIRTHDAY")%>'></asp:Label>
                
                </EditItemTemplate>

                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="相片" FooterText="相片" SortExpression="USER_PHOTO">
                <ItemTemplate>
                <asp:Label ID="lab_USER_PHOTO_Show" runat="server" Text='<%# Eval("USER_PHOTO")%>'></asp:Label>
                </ItemTemplate>

                <EditItemTemplate>
                

                
                <asp:Label ID="lab_USER_PHOTO_Show" runat="server" Text='<%# Eval("USER_PHOTO")%>'></asp:Label>
                
                </EditItemTemplate>

                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="相片2" FooterText="相片2" SortExpression="USER_PHOTOS2">
                <ItemTemplate>
                <asp:Label ID="lab_USER_PHOTOS2_Show" runat="server" Text='<%# Eval("USER_PHOTOS2")%>'></asp:Label>
                </ItemTemplate>

                <EditItemTemplate>
                

                
                <asp:Label ID="lab_USER_PHOTOS2_Show" runat="server" Text='<%# Eval("USER_PHOTOS2")%>'></asp:Label>
                
                </EditItemTemplate>

                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="民族" FooterText="民族" SortExpression="USER_NATION">
                <ItemTemplate>
                <asp:Label ID="lab_USER_NATION_Show" runat="server" Text='<%# Eval("USER_NATION")%>'></asp:Label>
                </ItemTemplate>

                <EditItemTemplate>
                

                
                <asp:Label ID="lab_USER_NATION_Show" runat="server" Text='<%# Eval("USER_NATION")%>'></asp:Label>
                
                </EditItemTemplate>

                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="国家或地区" FooterText="国家或地区" SortExpression="USER_COUNTRY">
                <ItemTemplate>
                <asp:Label ID="lab_USER_COUNTRY_Show" runat="server" Text='<%# Eval("USER_COUNTRY")%>'></asp:Label>
                </ItemTemplate>

                <EditItemTemplate>
                

                
                <asp:Label ID="lab_USER_COUNTRY_Show" runat="server" Text='<%# Eval("USER_COUNTRY")%>'></asp:Label>
                
                </EditItemTemplate>

                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="省份" FooterText="省份" SortExpression="USER_PROVINCE">
                <ItemTemplate>
                <asp:Label ID="lab_USER_PROVINCE_Show" runat="server" Text='<%# Eval("USER_PROVINCE")%>'></asp:Label>
                </ItemTemplate>

                <EditItemTemplate>
                

                
                <asp:Label ID="lab_USER_PROVINCE_Show" runat="server" Text='<%# Eval("USER_PROVINCE")%>'></asp:Label>
                
                </EditItemTemplate>

                </asp:TemplateField>
                



                <asp:TemplateField 
                HeaderText="<a href='YongHuXinXi_add.aspx' target='_blank'>新增</a>  " 
                FooterText="<a href='YongHuXinXi_add.aspx' target='_blank'>新增</a> "
                >
                
                    <EditItemTemplate>
                        <asp:LinkButton ID="LinkButton_Save" runat="server" CausesValidation="True" CommandName="Update"
                            Text="保存"></asp:LinkButton>
                        <asp:LinkButton ID="LinkButton_Cancel" runat="server" CausesValidation="False" CommandName="Cancel"
                            Text="取消"></asp:LinkButton>
                    </EditItemTemplate>
                 


                    <ItemTemplate>
                        <asp:HyperLink ID="LinkButton_View" NavigateUrl='<%# "YongHuXinXi_detail.aspx?USER_ID=" + this.Server.UrlEncode(Convert.ToString(Eval("USER_ID"))) + "&USER_NAME=" + this.Server.UrlEncode(Convert.ToString(Eval("USER_NAME")))%>' Target="_blank" runat="server">查看</asp:HyperLink>


                
                        <asp:LinkButton ID="LinkButton_Setting" runat="server" CausesValidation="False" CommandName="Edit" CommandArgument='<%#Eval("USER_ID") + "|||" + Eval("USER_NAME")%>'
                            Text="设置"></asp:LinkButton>
                 
                        <asp:HyperLink ID="LinkButton_Modify" NavigateUrl='<%# "YongHuXinXi_add.aspx?USER_ID=" + this.Server.UrlEncode(Convert.ToString(Eval("USER_ID"))) + "&USER_NAME=" + this.Server.UrlEncode(Convert.ToString(Eval("USER_NAME")))%>' Target="_blank" runat="server">修改</asp:HyperLink>

                    

                    
                        <asp:LinkButton ID="LinkButton_Del" runat="server" CausesValidation="False" CommandName="Delete" CommandArgument='<%#Eval("USER_ID") + "|||" + Eval("USER_NAME")%>'
                            Text="删除"></asp:LinkButton>
                    

                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>



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