<!--#include file="count.asp"-->
<%
If Not FoundInArr(SiteLanguage,0,",") then Response.Write chr(-10544)&chr(-12604)&chr(-11281)&chr(-11820)&chr(-20228)&chr(-15429)&chr(-11312)&chr(-16470)&chr(-14604):Response.End
'=================================================
'过程名：ShowUserLogin
'作  用：显示用户登录表单
'参  数：无
'=================================================
sub ShowUserLogin()
	dim strLogin
	If Session("UserName")="" Then
    	strLogin= "<table width='100%' border='0' cellspacing='0' cellpadding='0'>"
    	strLogin=strLogin & "<tr><td height='34' class='title_left' colspan='2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;会员中心</td></tr>"
		strLogin=strLogin & "<form action='UserLogin.asp' method='post' name='UserLogin' onSubmit='return CheckForm();'>"
        strLogin=strLogin & "<tr><td height='25' align='right'>用户名：</td><td height='25'><input name='UserName' type='text' id='UserName' size='10' maxlength='20'></td></tr>"
        strLogin=strLogin & "<tr><td height='25' align='right'>密&nbsp;&nbsp;码：</td><td height='25'><input name='Password' type='password' id='Password' size='10' maxlength='20'></td></tr>"
        strLogin=strLogin & "<tr align='center'><td height='25' colspan='2'><input name='Login' type='submit' id='Login' value=' 登录 ' Class='BUTTON'> <input name='Reset' type='reset' id='Reset' value=' 清除 ' Class='BUTTON'>"
        strLogin=strLogin & "</td></tr>"
        strLogin=strLogin & "<tr><td height='20' align='center' colspan='2'><a href='UserReg.asp'>新用户注册</a>&nbsp;&nbsp;<a href='GetPassword.asp'>忘记密码？</a></td></tr>"      
        strLogin=strLogin & "</form></table>"
		response.write strLogin
%>
<script language=javascript>
	function CheckForm()
	{
		if(document.UserLogin.UserName.value=="")
		{
			alert("请输入用户名！");
			document.UserLogin.UserName.focus();
			return false;
		}
		if(document.UserLogin.Password.value == "")
		{
			alert("请输入密码！");
			document.UserLogin.Password.focus();
			return false;
		}
	}
</script>
<%Else%>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="34" class="title_left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;会员中心</td>
      </tr>
      <tr>
        <td height="20"><div align="center">欢迎会员:<%=Session("username")%></div></td>
      </tr>
      <TR>
        <TD 
                            height=1 colspan="2" 
                            background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif" 
                              width=10></TD>
      </TR>
      <tr>
        <td height="20"><div align="center"><a href="UserOrder.asp">询价查询</a></div></td>
      </tr>
      <TR>
        <TD 
                            height=1 colspan="2" 
                            background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif" 
                              width=10></TD>
      </TR>
      <tr>
        <td height="20"><div align="center"><a href="Feedback.asp">我要留言</a></div></td>
      </tr>
      <TR>
        <TD 
                            height=1 colspan="2" 
                            background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif" 
                              width=10></TD>
      </TR>
      <tr>
        <td height="20"><div align="center"><a href="FeedbackMember.asp">我的留言</a></div></td>
      </tr>
      <TR>
        <TD height=1 colspan="2" 
                            background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif" 
                              width=10></TD>
      </TR>
      <tr>
        <td height="20"><div align="center"><a href="UserEdit.asp">资料修改</a></div></td>
      </tr>
      <TR>
        <TD 
                            height=1 colspan="2" 
                            background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif" 
                              width=10></TD>
      </TR>
      <tr>
        <td height="20"><div align="center"><a href="UserEditPwd.asp">密码修改</a></div></td>
      </tr>
      <TR>
        <TD 
                            height=1 colspan="2" 
                            background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif" 
                              width=10></TD>
      </TR>
      <tr>
        <td height="20"><div align="center"><a href="UserLogout.asp?Action=Ch">安全退出</a></div></td>
      </tr>
      <TR>
        <TD 
                            height=1 colspan="2" 
                            background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif" 
                              width=10></TD>
      </TR>
    </table>
<%
end if	
end sub
%>