<%@ control language="C#" autoeventwireup="true" inherits="loginuser, xnzy-radius-web_deploy" %>


<style type="text/css">
    .style1
    {
        width: 83px;
    }
    .style2
    {
        height: 32px;
        width: 88px;
    }
</style>


<table border="0" cellpadding="0" cellspacing="0" class="table" 
    style="width: 19%">
      <tr>
        <td valign="top">
        <%if (Session["People"]!=null)
          { %>
        <table border="0" cellspacing="0" cellpadding="4" style="width: 98%" >
          <tr>
            <td colspan="2" align="center" class="hei12">欢迎用户<%=Session["People"].ToString()%>
                &nbsp;</td>
          </tr>
          <tr>
            <td align="right" class="hei12" style="width: 50%; height: 27px">
                <a href="Mycategory.aspx">看购物车</a></td>
            <td align="left" class="hei12" style="height: 27px"><a href="Myorder.aspx">查看订单</a></td>
          </tr>
          <tr>
            <td align="right" class="hei12" style="width: 50%; height: 32px;">
                  <a href="MyInfor.aspx">修改资料</a></td>
     
            <td align="left" valign=middle class="hei12" style="height: 32px; width:100%;">
                 <a href="Changepassword.aspx">修改密码</a></td>
          </tr>
           <tr>
            <td align="right" class="hei12" style="width: 50%; height: 32px;">
               <a href="outlogin.aspx"> 退出登录</a></td>
            <td class="hei12" align=left style="height: 32px">&nbsp;</td>
          </tr> </table>
           <%
          }
          else
          {%>
          
        
        <table border="0" cellspacing="0" cellpadding="4" style="width: 80%"  >
          <tr>
            <td colspan="3" align="left" class="hei12">&nbsp;</td>
          </tr>
          <tr>
            <td align="center" class="style1">
                拨号用户:</td>
            <td align="left" class="hei12" style="height: 32px" colspan="2">
            <asp:TextBox ID="username" runat="server" CssClass="login"  dataType="Require" 
                    msg="用户名不能为空" Width="92px"></asp:TextBox></td>
          </tr>
          <tr>
            <td align=center class="style1">拨号密码:</td>
            <td align="left" class="hei12" style="height: 27px" colspan="2"><asp:TextBox ID="password" 
                    runat="server" CssClass="login"  dataType="Require" msg="密码不能为空" 
                    TextMode="Password" Width="90px"></asp:TextBox></td>
          </tr>
          <tr>
            <td align="center" class="style1">验证:</td>
            <td align="left" class="style2">
                <asp:TextBox ID="checkcode" runat="server" CssClass="code"  dataType="Require" 
                    msg="验证码不能为空" Width="51px"  ></asp:TextBox></td>
            <td width="50" align="left" class="hei12" style="height: 32px; width: 25px;">
                <asp:Image ID="Image2" runat="server" Height="22px" Width="55px" 
                        ImageUrl="CheckCode.aspx" />
                          </td>
          </tr>
           <tr>
            <td align="right" class="style1">
                <asp:Button ID="Button1" runat="server" Text="登陆" CssClass="submit" 
                    OnClick="Button1_Click1" OnClientClick="return Validator.Validate(form1,2);" 
                    Width="70px" Height="31px"   /></td>
            <td class="hei12" align=left style="height: 32px" colspan="2">&nbsp;<asp:Button ID="Button2" 
                    runat="server" Text="注册"  CssClass="submit" OnClick="Button2_Click1" 
                    Width="70px" Height="31px"   /></td>
          </tr>
        &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;</table>
          <%} %>
        </td>
      </tr>
      
    </table>
   