| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 553 人关注过本帖
标题:求高手帮忙改个东西,不需要登录就能查看前台内容
取消只看楼主 加入收藏
bin1986423
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2009-10-7
结帖率:0
收藏
已结贴  问题点数:20 回复次数:3 
求高手帮忙改个东西,不需要登录就能查看前台内容
图片附件: 游客没有浏览图片的权限,请 登录注册
程序代码:
<!--#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">&nbsp;</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">&nbsp;</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">&nbsp;</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>

搜索更多相关主题的帖子: 前台 
2011-02-11 10:23
bin1986423
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2009-10-7
收藏
得分:0 
http://11.dc.ftn.含前台整站实例.rar?k=67353732d982b0cd8a0047384361541d050c070b56555e57195452055c4c525101571a535756571f070451005458575100560750657f66615b5b507128324664051b0688c9a6d6fe9ce0cce7dbabd3f2c91b4553176121&fr=00&&txf_fid=f6f0fbece83966682dc6827876cd6cd7924abd6f

提取码:4572eaf2

上面是全部源码
2011-02-11 10:29
bin1986423
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2009-10-7
收藏
得分:0 
      wwwwwwww
2011-02-12 15:16
bin1986423
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2009-10-7
收藏
得分:0 
不行啊
2011-02-12 19:20
快速回复:求高手帮忙改个东西,不需要登录就能查看前台内容
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.041980 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved