<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="../Include/conn.asp" -->
<!--#include file="../Include/ConnDatabase.asp" -->
<!--#include file="../Include/NoHackSql.Asp" -->
<%
'=====================================
'天天企业网站管理系统  TianTianCMS
'博科网络科技工作室版权所有
'官方客服中心 http://www.ip126.com
'QQ:530051328 mail:bbfhq@163.com
'=====================================
%>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><% =SiteTitle %></title>
<meta name="keywords" content="<% =Keywords %>" />
<meta name="description" content="<% =Descriptions %>" />
<link href="images/style.css" rel="stylesheet" type="text/css">
<link href="images/header.css" rel="stylesheet" type="text/css">
<style type="text/css">
#loginTable
{
text-align:left;

}
.Input {
border:solid 1px #cecfce;
}
body
{
font-size:12px;
background-color:#FFFFFF;
margin-left:0px;
}
a
{
 font-size:12px;
}
A:visited {
	COLOR: #2e4690; FONT-FAMILY: Arial; TEXT-DECORATION: none; font-size:12px;
}
A:active {
	FONT-FAMILY: Arial; TEXT-DECORATION: none; font-size:12px;
}
A:hover {
	BORDER-TOP-WIDTH: 1px; BACKGROUND-POSITION: 50% bottom;  font-size:12px;BORDER-LEFT-WIDTH: 1px; LEFT: 1px; BORDER-BOTTOM-WIDTH: 1px; COLOR: #3399cc; BACKGROUND-REPEAT: repeat-x; POSITION: relative; TOP: 1px; BORDER-RIGHT-WIDTH: 1px; TEXT-DECORATION: none
}
 #loginimg
{ background-image: url(images/submit.jpg) ;
width: 30%; height: 100%; float: left;
background-repeat: no-repeat;
cursor: hand;
}
#regimg
{ 
  background-image: url(images/reg.jpg);
  width: 30%; height: 100%; float: left;
  background-repeat: no-repeat;
  cursor: hand;
}
#forgotpass
{ 
  background-image: url(images/pass.jpg);
  width: 38%; height: 100%; float: left; 
  background-repeat: no-repeat;
  cursor: hand;
}
#search
{
background-image: url("images/search.jpg");
width:60px;
height:25px;
cursor: hand;
}
#tou
{
background-image: url("images/tou.gif");
width : 60px;
height : 25px;
cursor: hand;
}
#cha
{
background-image : url("images/cha.gif");
width : 60px;
height : 25px;
cursor: hand;
}
</style>
<%if (session("MemName")="" or session("GroupID")="" or session("MemLogin")<>"Succeed") And session("openid")="" then%>
	<table id = "#loginTable"  class='login_txt01' border="0" cellpadding="0" cellspacing="0" style="width: 160px">
	<form id="formLogin" name="formLogin" method="post" action="MemberLogin.asp">
	<tr><td style="height: 50px; ">  
	<table  border=0 cellpadding=0 cellspacing=0 style="width: 96px"> 
	 <tr align=center> 	<td height=25 style="width: 41px">用户</td> 	 <td>
		<input name='LoginName' type='text' id='LoginName' size='10' maxlength='20' style="width: 56px"></td>   </tr> 	
		 <tr align=center> 	  <td height=25 align=center style="width: 41px">密码</td> 	
		  <td>
			<input name='LoginPassword' type='password' id='Password' size='10' maxlength='20' style="width: 56px"></td> </tr></table>	  
	<td style="height: 50px">   
	 <table  border=0 cellpadding=0 cellspacing=0>   
	  <tr><td><input name='Login' type='image' id='Login' src=images/userlogin.gif onclick= "javascript:formLogin.submit()"></td></tr>   
	   </table> 	      
	   </td></tr>  <tr><td colspan=2 valign=top>   
	   
	   <table  border=0 cellpadding=0 cellspacing=0>   	 
	   <tr align=center>     	<td height=25><a href='MemberRegister.asp' target="_blank"><img src=images/zhu.gif width=74 height=21></a></td>     
	   	<td height=25 width=20></td> 	 <td align=right><a href='MemberGetPass.asp' target="_blank"><img src=images/wang.gif width=74 height=21></a></td>
	   </tr></table> 
<TABLE>
<TR>
	<TD><%If API_QQEnable=True then%><%response.write " <a title=""使用QQ号快速登录"" href=""" & SysRootDir & "api/qq/redirect_to_login.asp""  target=""_blank""><img align=""absmiddle"" src=""images/qq_login.png"" border=""0"" align=""absmiddle""/></a>"%><%End if%></TD>
</TR>
</TABLE> 
    </td></tr>
	</form>
	</table>	
	<%session("qqlogin")=""
ElseIf session("openid")<>"" And Session("Access_Token")<>"" and session("MemLogin")="" Then
session("binding")="yes"%>
	<table style="width: 192px">
	<tr>

  <td height="28" colspan="2" style="width: 150px"><span style="font-size:12px; ">欢迎QQ的 <font color=#FF0000> <%=Session("nickname")%></font> 光临本站</span></td>
</tr>
<tr>
<td height="20" colspan="3" style="width: 160px"><span style="font-size:12px; ">请将会员号与QQ号关联<br>方便以后快捷登录 <font color=#0000FF><a title="使用QQ号快速登录" href="<%=SysRootDir%>api/qq/redirect_to_login.asp"  target="_blank"><font color=#0000FF><b>立即关联</b></font></a></font></span></td>
</tr>
<tr>
 <td height="20" colspan="3" style="width: 150px"><a href="MemberLogin.asp?Action=Out">退出</a></td>
</tr>
</table>
    <%else%>
	<table style="width: 192px">
	<tr>
  <td rowspan="3" align="center" valign="top" style="width: 53px">
	<img src="images/user_bg.gif" width="44" height="42" style="margin-top:5px;" /></td>
  <td height="28" colspan="2" style="width: 150px"><span style="font-size:12px; ">您好：<%=session("MemName")%></span></td>
</tr>
<tr>
<td height="20" colspan="3" style="width: 150px"><span style="font-size:12px; ">会员级别:<%=MemGroup(session("GroupID"))%></span></td>
</tr>
<tr>
 <td height="20" colspan="3" style="width: 150px"><a href="MemberInfo.asp" target="_blank">会员中心</a> <a href="MemberLogin.asp?Action=Out">退出登录</a></td>
</tr>
</table>
	<%end if%>
	
	<%function MemGroup(GroupID)
  dim rs,sql
  set rs = server.createobject("adodb.recordset")
  sql="select * from TianTianCMS_MemGroup where GroupID='"&GroupID&"'"
  rs.open sql,conn,1,1
  MemGroup=rs("GroupName"&Language)
  rs.close
  set rs=nothing
end Function%>