求高手帮忙改个东西,不需要登录就能查看前台内容
程序代码:
<!--#Include File="Include.asp"--> <%IF Request.Cookies("Song")="yes" Then Call NewUrl (0,"","business02.asp")%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <link rel="stylesheet" type="text/css" href="style/style.css"> <title><%=WebConfig(0)%></title> <meta name="Keywords" content="<%=WebConfig(4)%>" /> <meta name="description" content="<%=WebConfig(2)%>" /> <script language="javascript"> function Dntrim(str) { return str.replace(/(^[\s\u3000]*)|([\s\u3000]*$)/g,""); } function ncFormCheck(){ if(Dntrim(document.nform2.U_User.value)==""){ alert('请填写登录用户名!'); document.nform2.U_User.focus(); return false; } if(Dntrim(document.nform2.U_Password.value)==""){ alert('请填写登录密码!'); document.nform2.U_Password.focus(); return false; } } </script> <style type="text/css"> <!-- .style1 {color: #FFCC00} .style2 {color: #8E8E8E} --> </style> </head> <body> <div align="center"> <!--#Include file="top.asp"--> <table width="994" border="0" cellspacing="0" cellpadding="0"> <tr align="center" valign="top"> <td width="227" bgcolor="#000000"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="30" align="right" background="images/about01.gif"><table width="90%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="14" height="30" background="images/about02.gif"> </td> <td class="font09">产品展示</td> </tr> </table></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="443" align="left" valign="top" background="images/about03.jpg"><table width="171" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="298" align="center" valign="top"><!--#Include file="product_show.asp"--></td> </tr> </table> <!--#Include file="login.asp"--> </td> </tr> </table></td> <td width="15"> </td> <td width="752" background="images/about08.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="right" valign="top" class="font12" id="a08"><a href="index.asp">首页</a> >> <a href="business.asp">经销商专区</a> >> 会员产品</td> </tr> <tr> <td height="8" align="right" valign="top" background="images/about07.gif"></td> </tr> </table> <table width="689" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="100"> </td> </tr> <tr> <td height="16"> <table border="0" width="300" align="center" cellpadding="0" cellspacing="15" class="b14"> <form id="nform2" name="nform2" method="post" action="login_check.asp" onSubmit="return ncFormCheck()"> <tr> <td class="font11">经销商登录:</td> </tr> <tr> <td class="b06"><span class="font07">用户名: <input name="U_User" type="text" class="border02" id="U_User" maxlength="20"> </span></td> </tr> <tr> <td class="b07"><span class="font07">密 码: <input name="U_Password" type="password" class="border02" id="U_Password" value="" maxlength="30"> </span></td> </tr> <tr> <td class="b08"><input type="image" name="imageField" id="imageField" src="images/login.gif" /> <input name="nSource" type="hidden" id="nSource" value="<%=CuFileName%>" /> <input name="Action" type="hidden" id="Action" value="Login" /></td> </tr> </form> </table> </td> </tr> <tr> <td height="16"><br /><br /><br /><font color="#FF6600">您没有登录或者您没有权限访问此页面,所有产品必须登录后方可查看;</font></td> </tr> </table></td> </tr> </table> <!--#Include file="copyright.asp"--> </div> </body> </html><script language="javascript"> function ntrim(str) { return str.replace(/(^[\s\u3000]*)|([\s\u3000]*$)/g,""); } function nFormCheck(){ if(ntrim(document.nform1.U_User.value)==""){ alert('请填写登录用户名!'); document.nform1.U_User.focus(); return false; } if(ntrim(document.nform1.U_Password.value)==""){ alert('请填写登录密码!'); document.nform1.U_Password.focus(); return false; } } </script> <table width="171" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="1" background="images/about06.gif"></td> </tr> <tr> <td class="b03"> <%IF Request.Cookies("Song")<>"yes" Then%> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <form id="nform1" name="nform1" method="post" action="login_check.asp" onSubmit="return nFormCheck()"> <tr> <td class="font11">经销商登录:</td> </tr> <tr> <td class="b06"><span class="font07">用户名: <input name="U_User" type="text" class="border02" id="U_User" maxlength="20"> </span></td> </tr> <tr> <td class="b07"><span class="font07">密 码: <input name="U_Password" type="password" class="border02" id="U_Password" value="" maxlength="30"> </span></td> </tr> <tr> <td class="b08"><input type="image" name="imageField" id="imageField" src="images/login.gif" /> <input name="nSource" type="hidden" id="nSource" value="<%=CuFileName%>" /> <input name="Action" type="hidden" id="Action" value="Login" /></td> </tr> </form> </table> <%Else%> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" height="22" class="font11"><%=Request.Cookies("U_Company")%></td> </tr> <tr> <td align="left" height="22" class="font11">欢 迎 您:<a href="business.asp"><font color="#FF0000"><u><%=Request.Cookies("U_User")%></u></font></a></td> </tr> <tr> <td align="left" height="22" class="font11">登录次数:<font color="#FF0000"><%=Request.Cookies("U_Login")%></font></td> </tr> <tr> <td align="left" height="22" class="font11"><a href="login_check.asp?Action=Exit"><u>退出登录</u></a></td> </tr> </table> <%End IF%> </td> </tr> <tr> <td height="1" background="images/about06.gif"></td> </tr> </table>