<!--#include file="conn.asp"--><%seo_title="login-"&sitename%>
<!--#include file="IncAsp/WrzcNethtml_top.asp"-->
<!-- #include file="IncAsp/WrzcNethtml_md5.asp" -->

<%
comurl=request("comurl")
if request("action")="login" then
errmeg1="Please Enter Username and password"
errmeg2="Please Correct Enter Username and password"
user_name=DelStr(request("user_name"))
user_pass=md5(DelStr(request("user_pass")))
if request("user_name")="" or request("user_pass")="" then
response.Write "<script LANGUAGE='javascript'>alert('"&errmeg1&"');history.go(-1);</script>"
Response.Cookies("WrzcNethtml")("user_name")=""
Response.Cookies("WrzcNethtml")("user_type")=""
Response.end
end if
set rs=server.createobject("adodb.recordset")
sql="select * from WrzcNethtml_user where username='"&user_name&"' and userpass='"&user_pass&"'"
rs.open sql,conn,1,3
if rs.eof then
rs.close
set rs=nothing
response.Write "<script LANGUAGE='javascript'>alert('"&errmeg2&"');history.go(-1);</script>"
Response.Cookies("WrzcNethtml")("user_name")=""
Response.Cookies("WrzcNethtml")("user_type")=""
Response.end
end if
Response.Cookies("WrzcNethtml")("user_name")=rs("username")
Response.Cookies("WrzcNethtml")("user_pass")=rs("userpass")
Response.Cookies("WrzcNethtml")("user_type")=rs("user_type")
rs("landtime")=now()
rs("user_lastip")=request.servervariables("remote_addr")
rs("degree")=rs("degree")+1
rs.update
rs.close
set rs=nothing


if Request.Cookies("WrzcNethtml")("guest")<>"" then
guest=Request.Cookies("WrzcNethtml")("guest")
set rs=server.createobject("adodb.recordset")
rs.open "select user_name from WrzcNethtml_basket where user_name='"&guest&"' and basket_check=0",conn,1,3
do while not rs.eof
rs("user_name")=request("user_name")
rs.update
rs.movenext
loop
rs.close
set rs=nothing
Response.Cookies("WrzcNethtml")("guest")=""
end if



if comurl="" then
comurl="index.html"
end if
response.redirect comurl
Response.end
elseif request("action")="quit" then
Response.Cookies("WrzcNethtml")("user_name")=""
Response.Cookies("WrzcNethtml")("user_type")=""
Response.Cookies("WrzcNethtml")("user_pass")=""
Response.Cookies("WrzcNethtml")("guest")=""


if Request.ServerVariables("Http_Referer")<>"" then
response.redirect ""&Request.ServerVariables("Http_Referer")&""
else
response.redirect "index.html"
end if
else%>




<div align="center">
<table cellpadding="0" cellspacing="0" class="all_t1">
<tr><td class="all_l_td" valign="top">
<!--#include file="IncAsp/WrzcNethtml_log.asp"--><div class="d5"></div>
</td>
<td valign="top" class="all_c_td">

<table border="0" cellpadding="0" cellspacing="0" width="99%">
<tr><td height="30" class="sort">&nbsp;<IMG src="Skin/<%=WrzcNethtml_skin%>/home.gif" border=0 align="absmiddle">
	  
	<a href="index.html">Home</a> >>&nbsp;Login&nbsp; &nbsp; New Customer <a href="reg.asp"><u>Register</u></a> <a href="repass.asp"><u>Forgot your password?</u></a></td></tr>
<%if Request.Cookies("WrzcNethtml")("user_name")<>"" then
user_name=Request.Cookies("WrzcNethtml")("user_name")%>



<tr><td align="center" height="300">
	<table border="0" cellpadding="0" cellspacing="0" width="615" id="table1">
		<tr><td colspan="2" background="Skin/<%=WrzcNethtml_skin%>/logina1.gif" height="29"></td></tr>
		<tr>
			<td align="center" bgcolor="#F9F9F9">
			<img border="0" src="Skin/<%=WrzcNethtml_skin%>/logina3.gif"></td>
			<td bgcolor="#F9F9F9" class="fanse" align="left">
			<p style="line-height: 150%"><b>Notice:<br>
			</b>Hello <%=user_name%><br>
			Not <%=user_name%> , Please <a class="ser" href="login.asp?action=quit">Logout</a>!</td>
		</tr>
		<tr><td colspan="2" background="Skin/<%=WrzcNethtml_skin%>/logina2.gif" height="29"></td></tr>
	</table></td></tr>

<%else%>
<form method="POST" name="form1" action="login.asp?action=login">
<input name="comurl" type="hidden" value="<%=comurl%>">
<tr><td align="center" height="300">
	<table border="0" cellpadding="0" cellspacing="0" width="615" id="table1">
		<tr><td colspan="2" background="Skin/<%=WrzcNethtml_skin%>/logina1.gif" height="29"></td></tr>
		<tr>
			<td align="center" bgcolor="#F9F9F9">
			<img border="0" src="Skin/<%=WrzcNethtml_skin%>/logina3.gif"></td>
			<td bgcolor="#F9F9F9" align="left">
			<table border="0" cellpadding="0" cellspacing="0" id="table2">
				<tr>
					<td class="fanse" height="30">Username:<input name="user_name" type="text" class=input style="FONT-SIZE: 12px; WIDTH: 110px" value="wrzcnet"></td>
					<td rowspan="2" style="padding-left: 8px; padding-right: 8px"><input type=image src="Skin/<%=WrzcNethtml_skin%>/logina4.gif" name="login"></td>
				</tr>
				<tr>
					<td class="fanse" height="30">Password:<input name="user_pass" type="password" class=input style="FONT-SIZE: 12px; WIDTH: 110px" value="123456" size="12"></td>
				</tr>
			</table>
			</td>
		</tr>
		<tr><td colspan="2" background="Skin/<%=WrzcNethtml_skin%>/logina2.gif" height="29"></td>
		</tr>
	</table></td></tr></form>
<%end if%>
</table>



<%end if%>

</td></tr></table></div><!--#include file="IncAsp/WrzcNethtml_copy.asp"-->