<%@ page language="C#" autoeventwireup="true" inherits="Passport_Index, HoWaveIMSV5.0" debug="false" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="../UserControls/UserLogin.ascx" TagName="UserLogin" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>会员中心</title>
<style type="text/css">
 body{ font-size:12px;margin:0;}
 a{text-decoration:none;color:blue;}
 .modalPopup {
	background-color:#ffffdd;
	background-image:url(Images/dialog/sBody_bg.png);	
	border-color:Black;
    border:1px;
	width:300px;
	filter:progid:DXImageTransform.Microsoft.Gradient 
(startColorStr='#F7FCFF', endColorStr='#CCECFD', gradientType='0');
   
}
.modalPouupIhert
{
    border-width:1px;
	border-style:solid;
	border-color:#1F81DF;	
	padding:1px;
}
.MenuBar_Top
{
     background-image:url(Images/dialog/MenuBar_top.png);
     background-repeat:repeat-x;
     color:white;
     cursor: move;
     
}
.Close{ cursor: hand;}
.modalBackground {
	background-color:#C0C0C0;
	filter:alpha(opacity=70);
	opacity:0.7;
}
#toolbar {
	BACKGROUND: url(Images/dialog/toolbar_bg.gif) #f3f5fc repeat-x left top; 
	
	OVERFLOW: hidden;
	BORDER-BOTTOM: #a3a2b3 1px solid; 
	HEIGHT: 24px;
	padding-top:5px;
}
#toolbar A {
	 OVERFLOW: hidden; LINE-HEIGHT: 22px; HEIGHT: 20px;COLOR: #333;padding-top:5px;padding-left:5px;padding-right:5px;padding-bottom:0;
}
#toolbar A:hover {
	BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #fff 1px solid; MARGIN: 0px 1px 0px 0px; BORDER-LEFT: #fff 1px solid; BORDER-BOTTOM: #808080 1px solid; TEXT-DECORATION: none;padding-top:5px;padding-left:5px;padding-right:5px;padding-bottom:0;
}
	
    </style>
</head>
<body scroll="no">
    <form id="form1" runat="server">  
    
       <asp:ScriptManager ID="ScriptManager1" runat="server" />
       <div id="toolbar" >
          <div id="toolbar_login" style="float:left; margin-left:5px">          
             <asp:HyperLink ID="LoginBtn" Text="登录" runat="server" NavigateUrl="#" /> &nbsp;::             
             <asp:HyperLink ID="RegBtn" Text="注册" runat="server" NavigateUrl="#"  Visible="false"/>
              <%-- <a href="javascript:void(0)" onclick="return initContent('Login.aspx');">登录</a>&nbsp;:: --%>
             <a href="javascript:void(0)" onclick="return initContent('UserReg.aspx');">注册</a>&nbsp;:: 
          </div>
          <div id="toolbar_welcome" style="display:none; float:left; margin-left:5px;"></div>
          <div style="float:left">
             <a href="javascript:void(0)" onclick="return initContent('MySpace.aspx');">个人空间</a>&nbsp;:: 
             <a href="javascript:void(0)" onclick="return initContent('TransferPoint.aspx');">社区银行</a>
             <%GetInterfaceMenu(); %>
          </div>          
       </div>        
       <div style="width:100%;">
          <div class="inner">
             <iframe id="main_frame" style="Z-INDEX: 1; VISIBILITY: inherit;width:100%;height:100%; " name="howave_usercenter_main" src='<%=m_subUrl %>' frameBorder="0"></iframe>             
          </div>
       </div>
       <asp:Panel ID="LoginPanel" runat="server" Style="display: none" CssClass="modalPopup">
          <div class="modalPouupIhert">
             <asp:Panel ID="Panel3" runat="server" CssClass="MenuBar_Top" Height="20px">
                 <div style=" float:left">&nbsp;&nbsp;登录</div>
                 <div style=" float:right"><asp:ImageButton ID="CloseLogin" ImageUrl="Images/dialog/dialogCloseF.gif" runat="server"  CssClass="Close" ForeColor="white"/>&nbsp;&nbsp;</div>
             </asp:Panel> 
             <div style="text-align:left; padding:5px; height:80px;">
                 <uc1:UserLogin ID="UserLogin1" runat="server" />                                  
             </div> 
          </div>   
        </asp:Panel>
        <asp:Panel ID="RegPanel" runat="server" Style="display: none" CssClass="modalPopup">
          <div class="modalPouupIhert">
             <asp:Panel ID="Panel4" runat="server" CssClass="MenuBar_Top" Height="20px">
                 <div style=" float:left">&nbsp;&nbsp;用户注册</div>
                 <div style=" float:right"><asp:ImageButton ID="CloseReg" ImageUrl="Images/dialog/dialogCloseF.gif" runat="server"  CssClass="Close" ForeColor="white"/>&nbsp;&nbsp;</div>
             </asp:Panel> 
             <div style="text-align:left; padding:5px;">
                 <table >
                     <tr>
                        <td align="right">用户名</td>
                        <td><input type="text" id="RegUserName" style="width:150px;"/></td>
                     </tr>
                     <tr>
                        <td align="right">密码</td>
                        <td><input id="RegPassword" type="password" style="width:150px;"/></td>
                     </tr>
                     <tr>
                        <td align="right">确认密码</td>
                        <td><input id="ConfirmPassword" type="password" style="width:150px;"/></td>
                     </tr>
                     <tr>
                        <td align="right">Emial</td>
                        <td><input type="text" id="RegEmail" style="width:150px;"/></td>
                     </tr>
                     <tr>
                        <td align="right">验证码</td>
                        <td><input type="text" id="RegCheckCode" style="width:150px;"/><img src="../CheckCode.aspx" /></td>
                     </tr>
                     <tr>
                        <td colspan="2" align="center"><input type="button" value="确定"  id="RegButton" id="RegButton" onclick="RegUser();"/></td>
                        
                     </tr>                     
                 </table>                                  
             </div> 
          </div>   
        </asp:Panel>
        
        <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender" runat="server" 
            TargetControlID="LoginBtn"
            PopupControlID="LoginPanel" 
            BackgroundCssClass="modalBackground"                     
            CancelControlID="CloseLogin" 
            DropShadow="true"
            PopupDragHandleControlID="Panel3" />
        <ajaxToolkit:ModalPopupExtender ID="mp2" runat="server" 
            TargetControlID="RegBtn"
            PopupControlID="RegPanel" 
            BackgroundCssClass="modalBackground"                     
            CancelControlID="CloseReg" 
             OnCancelScript="ClearReg()"
            DropShadow="true"
            PopupDragHandleControlID="Panel4" />
    </form>
</body>
</html>
<script src="Js/passport.js" type="text/javascript"></script> 
<script type="text/javascript">
 function initContent(url)
 {
   url = typeof url != 'undefined' ? url : ''; 
   parent.howave_usercenter_main.location = url;
   return false;
 }    
CheckIndexLogin();
    
</script>
 