<!--#include file="../inc/base64.asp"-->
<%
dim m_name,m_pass,m_type,m_score,haslogin
if(session("TotCms_UserName")<>"" and session("TotCms_UserType")<>"") then
	if(cint(session("TotCms_UserType"))<2) then
	haslogin=true
	m_name=session("TotCms_UserName")
	end if
else
	if(request.Cookies("TotCms_Cookie")("UserName")<>"") then
		m_name=Base64decode(request.Cookies("TotCms_Cookie")("UserName"))
		session("TotCms_UserName")=m_name
		haslogin=true
	else
		haslogin=false
	end if
end if

if(haslogin=true) then
	response.Write("document.write('&nbsp;欢迎您："&m_name&" <a href=""/member"" target=""_parent"">控制面板</a>&nbsp;&nbsp;<a href=""/logout.asp"" target=""_parent"">退 出</a>');")
else
%>
document.writeln("<form id=\"form1\" name=\"form1\" method=\"post\" action=\"\/login.asp?act=do\">");
document.writeln("          用户名：");
document.writeln("          <input name=\"username\" class=\"input_d\" type=\"text\" id=\"username\" size=\"12\" \/>");
document.writeln("        密码：");
document.writeln("        <input name=\"userpass\" class=\"input_d\" type=\"password\" id=\"userpass\" size=\"12\" \/>");
document.writeln("        <input name=\"button\" type=\"submit\" class=\"submit\" id=\"button\" value=\" 登录 \" \/>");
document.writeln("        <a href=\"\/findpass.asp\"><\/a>");
document.writeln("        <\/form>");
<%
end if
%>