demo commit
[mces.git] / src / MCES.Web / Login.aspx
blob960cf0b563e6ef70039530823a5f1646a500139b
1 <%@ Page Language="C#" Title="::登录::" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="MCES.Web.LoginPage" MasterPageFile="~/MasterPage.master"%>
3 <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">   
4     <style type="text/css">
5     #login{ margin-top:160px;}
6     </style>
7     <script type="text/javascript">
8     IsTopWindow = function()
9     {
10        if(parent == window)
11        {
12           return true;
13        }
14        //
15        parent.location.href = window.location.href;
16        return false;
17     }
18     //
19     if(! IsTopWindow()) PageOnLoad = null;
20     </script>
21 </asp:Content>
23 <asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
24     <center>
25     <div>
26   <!-- border start -->
27     <div style="width:320px;" class="x-box-blue" id="login">        
28         <div class="x-box-tl"><div class="x-box-tr"><div class="x-box-tc"></div></div></div>
29     <div class="x-box-ml"><div class="x-box-mr"><div class="x-box-mc">
30     <!-- border start -->
31            <h3 style="margin-bottom:5px;"><%=SystemName%>&#160;<%=SystemVersion%></h3>
32                           <div class="x-form-bd" id="container">
33                 <fieldset>
34                     <legend>登录认证</legend>
35                                         <div id="form-ct">                                      
36                                          <asp:Login ID="loginCtrl" runat="server" DisplayRememberMe="False" OnAuthenticate="loginCtrl_Authenticate" OnLoginError="loginCtrl_LoginError">
37         <LayoutTemplate>
38         <table cellpadding="0" cellspacing="0" border="0" width="100%">
39           <tr>
40           <td>          
41          <!-- Login Control Template Start --> 
42         <table cellpadding="0" cellspacing="0" border="0" width="100%">
43           <tr>
44          <td nowrap><asp:Label ID="lblLoginName" runat="server" Text="登&nbsp;录&nbsp;名:" /></td>
45          <td style="padding-left:5px;white-space:nowrap">                    
46          <asp:TextBox ID="UserName" runat="server" Width="180px"  MaxLength="20"/>
47          <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="UserName"
48                   Display="static" ErrorMessage="*" EnableClientScript="True"></asp:RequiredFieldValidator>
49           </td>        
50         </tr>
51         <tr>
52          <td style="height: 26px;"><asp:Label ID="lblPassword" runat="server" Text="密&nbsp;&nbsp;&nbsp;&nbsp;码:"/></td>
53          <td style="height: 26px;padding-left:5px; white-space:nowrap"><asp:TextBox ID="Password"  runat="server" Width="180px" TextMode="Password" MaxLength="16" />
54          <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Password"
55                   Display="Static" ErrorMessage="*" EnableClientScript="True"></asp:RequiredFieldValidator>         
56          </td>
57         </tr>
58          <tr><td colspan="2"><hr size="1" width="100%" /></td></tr>
59         <tr><td colspan="2" align="right">
60             <asp:Button ID="btnLogin" Text="&nbsp;登&nbsp;录&nbsp;" runat="server" CommandName="Login" Height="22px"/>
61         </td></tr>
62            <tr style="height:4px"><td colspan="2" style="height:4px"></td></tr>
63         </table>
64         <!-- Login Control Template End --> 
65         </td></tr>
66         </table>     
67         </LayoutTemplate>
68         </asp:Login>
69         
70                                         </div>  
71                                 </fieldset>
72                         </div> 
73     
74     
75     <!-- border end -->
76     </div></div></div>
77      <div class="x-box-bl"><div class="x-box-br"><div class="x-box-bc"></div></div></div>
78     <!-- border end -->
79     </div>
80     </div>
81     </center>
82 </asp:Content>