<%@ Control Language="C#" AutoEventWireup="true" CodeFile="findpwd.ascx.cs" Inherits="usercontrol_findpwd" %>
&nbsp;<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div style="height: 520px; text-align: center"> 
<asp:Panel ID="Panel1" runat="server" Height="9px" Width="395px">
    &nbsp;<asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
   
    <table style=" width: 407px;">
        <tr>
            <td  valign=top colspan=2 style=" text-align: center; color: #ff3333; background-color: #ffff66; height: 20px;">
                请认真填写保密油箱和保密问答</td>
           
        </tr>
        <tr>
            <td  valign=top style="text-align: right; width: 181px;">
                <asp:Label ID="Label2" runat="server" Text="用户名:"></asp:Label></td>
            <td  valign=top style="text-align: left;">
                <asp:TextBox ID="username" runat="server" AutoPostBack="True" BackColor="Bisque"></asp:TextBox>
                <asp:Label ID="lbu" runat="server" Width="256px" ForeColor="Red">请输入用户名！</asp:Label></td>
          
        </tr>
        <tr>
            <td  valign=top style="text-align: right; width: 181px;">
                <asp:Label ID="Label3" runat="server" Text="保密邮箱:"></asp:Label></td>
            <td  valign=top style=" text-align: left;">
                <asp:TextBox ID="useremail" runat="server" BackColor="Bisque"></asp:TextBox></td>
        </tr>
        <tr>
            <td  valign=top style="text-align: right; width: 181px;">
                <asp:Label ID="Label4" runat="server" Text="保密问题:"></asp:Label></td>
            <td  valign=top style="text-align: left;">
                <asp:Label ID="quest" runat="server" Width="172px" BackColor="Bisque"></asp:Label></td>
        </tr>
        <tr>
            <td  valign=top style="text-align: right; width: 181px;">
                <asp:Label ID="Label5" runat="server" Text="保密答案:"></asp:Label></td>
            <td  valign=top style="text-align: left;">
                <asp:TextBox ID="ans" runat="server" BackColor="Bisque"></asp:TextBox></td>
        </tr>
       
        </table>
        
   
        </ContentTemplate>
    </asp:UpdatePanel>
    <table>
        <tr>
            <td  valign=top style="text-align: right; background-color: #ffff66; width: 249px;">
                
                <asp:Button ID="Button1" runat="server" Text="取消" BackColor="NavajoWhite" CausesValidation="False" PostBackUrl="~/Default.aspx" Width="69px" />&nbsp;&nbsp;&nbsp;</td>
                <td  valign=top style="text-align: left; width: 282px; background-color: #ffff66; height: 43px;">&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="Button2" runat="server" Text="提交" BackColor="NavajoWhite" Width="65px" OnClientClick="return check()" OnClick="Button2_Click" /></td>
            
        </tr>
    </table>
     </asp:Panel>
    &nbsp;&nbsp;
    <asp:Panel ID="re" runat="server" Height="1px"  Visible="False" Width="395px">
        <table>
            <tr>
                <td  valign=top colspan=2 style="color: #ff3300; background-color: #ffff66; text-align: center; height: 49px;">
                    找回密码成功</td>
                
            </tr>
            <tr>
                <td  valign=top style="width: 366px; text-align: right; height: 47px; background-color: palegoldenrod;">
                    <asp:Label ID="Label1" runat="server" Text="用户名:"></asp:Label></td>
                <td  valign=top style="width: 288px; text-align: left; height: 47px; background-color: palegoldenrod;">
                    <asp:Label ID="labuid" runat="server" Width="154px"></asp:Label></td>
            </tr>
            <tr>
                <td  valign=top style="width: 366px; text-align: right; height: 42px; background-color: palegoldenrod;">
                    <asp:Label ID="Label6" runat="server" Text="密码:"></asp:Label></td>
                <td  valign=top style="width: 288px; text-align: left; height: 42px; background-color: palegoldenrod;">
                    <asp:Label ID="labpwd" runat="server" Width="151px"></asp:Label></td>
            </tr>
            
            
            <tr>
                <td  valign=top style="width: 366px; text-align: right; background-color: #ffff66; height: 47px;">
                    <asp:Button ID="Button4" runat="server" Text="修改密码" BackColor="NavajoWhite" OnClick="Button4_Click" />&nbsp;&nbsp;&nbsp;
                </td>
               <td  valign=top style="width: 288px; background-color: #ffff66; height: 47px;">     
                    &nbsp;&nbsp;&nbsp;<asp:Button ID="Button3" runat="server" Text="登录" Width="77px" BackColor="NavajoWhite" OnClick="Button3_Click" /></td>
                
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="nore" runat="server" Height="36px" Visible="False" Width="397px">
        <table>
            <tr>
                <td  valign=top style="width: 387px; height: 117px; background-color: #ff9900; text-align: center;">
                    对不起!你所提供的信息不能帮您找回密码!<br />
                <a href="findpwd.aspx">返回重新填写</a></td>
            </tr>
        </table>
    </asp:Panel>
</div>
<script language="javascript">
<!--
function check()
{
if(document.getElementById("<%=username.ClientID %>").value=="")
{alert("请填写用户名!");
return false;}
if(document.getElementById("<%=useremail.ClientID %>").value=="")
{alert("请填写保密邮箱!");
return false;}
if(document.getElementById("<%=ans.ClientID %>").value=="")
{alert("请回答保密问题!!");
return false;}
}
-->
</script>