帝国论坛帝国网站管理系统交流区模板/标签/插件共享交流怎样把下载地址修改成点击以后在新窗口中打开? 【本版专题贴子】  
主题:怎样把下载地址修改成点击以后在新窗口中打开? [加入收藏夹]   

18568
用户头衔:书生

精华贴   :0
发贴数   :80
经验值   :301
注册时间:2008-04-29
信息 搜索 好友 发送悄悄话 精益求精-帝国网站管理系统7.5正式版开源发布】   [第 1 楼]
怎样把下载地址修改成点击以后在新窗口中打开?
怎样把下载地址修改成点击以后在新窗口中打开?

www.pcshadu.com.cn

我的是点击后直接打开的,要怎么修改模版才可以让点击下载直接弹出来新窗口中下载?

这样直接下载不好加广告,郁闷中,哪位教下谢谢了



虚拟主机全国最底,提供永久免费空间
2008-10-24 09:59:32 已设置保密 顶部 回复 引用 报告 编辑 删除

yingnt
用户头衔:嘉宾

精华贴   :6
发贴数   :6831
经验值   :19394
注册时间:2006-01-01
信息 搜索 好友 发送悄悄话 免费开源-EBMA系统:更安全的MYSQL管理和备份系统】   [第 2 楼]

将下载地址改为:
/e/DownSys/DownSoft/?classid=[!--classid--]&id=[!--id--]&pathid=0




模板定制,开发,v7.2 qq,微博,百度登陆出售等 www.ecmsjz.cn QQ 415204
可长期合作!
dedecms转帝国7.2

帝国群:48024477

2008-10-24 12:10:45 已设置保密 顶部 回复 引用 报告 编辑 删除

18568
用户头衔:书生

精华贴   :0
发贴数   :80
经验值   :301
注册时间:2008-04-29
信息 搜索 好友 发送悄悄话 精益求精-帝国网站管理系统7.5正式版开源发布】   [第 3 楼]

<script src="http://pstatic.xunlei.com/js/webThunderDetect.js"></script>
<?
require("encode.inc");
?>
<?php
require("../../class/connect.php");
include("../../class/db_sql.php");
include("../../class/config.php");
include("../../class/q_functions.php");
include("../../class/user.php");
include("../../class/class.php");
include("../../class/MemberLevel.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
$ecmsreurl=2;
$id=(int)$_GET['id'];
$pathid=(int)$_GET['pathid'];
$classid=(int)$_GET['classid'];
if(!$classid||empty($class_r[$classid][tbname])||!$id)
{
        echo"<script>alert('此信息不存在');window.close();</script>";
        exit();
}
$query="select downpath,id,title from {$dbtbpre}ecms_".$class_r[$classid][tbname]." where id='$id' and classid='$classid'";
$r=$empire->fetch1($query);
if(!$r[id])
{
        echo"<script>alert('此信息不存在');window.close();</script>";
        exit();
}
//区分下载地址
$path_r=explode("\r\n",$r[downpath]);
$showdown_r=explode("::::::",$path_r[$pathid]);
//下载权限
$downgroup=$showdown_r[2];
if($downgroup)
{
        $user=islogin();
        //取得会员资料
        $u=$empire->fetch1("select * from ".$user_tablename." where ".$user_userid."='$user[userid]' and ".$user_rnd."='$user[rnd]' limit 1");
        if(empty($u[$user_userid]))
        {
                echo"<script>alert('同一帐号,只能一人在线');window.close();</script>";
        exit();
    }
        //下载次数限制
        if($level_r[$u[$user_group]][daydown])
        {
                $thetoday=date("Y-m-d");
                if($thetoday==$u[$user_todaydate])
                {
                        if($u[$user_todaydown]>=$level_r[$u[$user_group]][daydown])
                        {
                                echo"<script>alert('您的下载与观看次数已超过系统限制(".$level_r[$u[$user_group]][daydown]." 次)!');window.close();</script>";
                                exit();
                        }
                }
        }
        if($level_r[$downgroup][level]>$level_r[$u[$user_group]][level])
        {
                echo"<script>alert('您的会员级别不足(".$level_r[$downgroup][groupname]."),没有下载此软件的权限!');window.close();</script>";
                exit();
        }
        //点数是否足够
        if($showdown_r[3])
        {
                //---------是否有历史记录
                $bakr=$empire->fetch1("select id,truetime from {$dbtbpre}enewsdownrecord where id='$id' and classid='$classid' and userid='$user[userid]' and pathid='$pathid' and online=0 order by truetime desc limit 1");
                if($bakr[id]&&(time()-$bakr[truetime]<=$public_r[redodown]*3600))
                {}
                else
                {
                        //包月卡
                        if($u[$user_userdate]-time()>0)
                        {}
                        //点数
                        else
                        {
                                if($showdown_r[3]>$u[$user_userfen])
                            {
                                        echo"<script>alert('您的点数不足 $showdown_r[3] 点,无法下载此软件');window.close();</script>";
                                        exit();
                            }
                        }
                }
        }
}
//验证码
$pass=md5("wm_chief".$public_r[downpass].$user[userid]);
$url="../../enews?enews=DownSoft&classid=$classid&id=$id&pathid=$pathid&pass=".$pass."&p=".$user[userid].":::".$user[rnd];
//$url=ReturnDSofturl($showdown_r[1],$showdown_r[4],'../../');
db_close();
$empire=null;
$downurlone=$showdown_r[1];

$name = $downurlone;
$pan = "://";
$con = explode($pan,$name);
if (count($con)>1)
{
        $thunderUrl = ThunderEncode($downurlone);
}
else
{
    $thunderUrl = ThunderEncode("http://www.pcshadu.com.cn/".$downurlone);
}
    echo "<script src='http://pstatic.xunlei.com/js/webThunderDetect.js'></script><script>OnDownloadClick('".$thunderUrl."','',location.href,'48047',2,'')</script>";



?>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../data/images/qcss.css" rel="stylesheet" type="text/css">
<title><?=$r[title]?>- 帮您解决一切电脑安全问题-www.Pcshadu.Com.Cn</title>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="/skins/css/style.css" rel="stylesheet" type="text/css" />
<link href="/skins/css/css.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="75" background="/skins/img/top_bg.gif"><table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="145" height="75"><img src="/skins/img/logo.gif" width="145" height="37" /></td>
        <td align="right">
        <table width="400" border="0" align="right" cellpadding="0" cellspacing="0">
          <tr>
            <td height="28" colspan="2" align="right" class="top_font"><a href="http://www.pcshadu.com.cn/" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.pcshadu.com.cn/');return(false);" style="behavior: url(#default#homepage)"> 设为主页</a> | <a href="#" onclick="javascript:window.external.AddFavorite('http://www.pcshadu.com.cn/', '电脑杀毒站')" target="_self">加入收藏</a> | <a href="sogouwz@163.com">联系我们</a> </td>
          </tr>
          <form action='/e/search/index.php' method="post" name="search_news" id="search_news">
            <tr>
              <td width="357" height="28" align="right">
              <input type=hidden name=show value='title,smalltext,newstext,writer'>
              <input name="keyboard" type="text" class="search_input" id="keyboard" value="请输入软件名或者病毒名" onclick="this.value=''" />
              </td>
              <td width="43" align="right" valign="middle"><input name="Submit22" type="image" class="inputsub" src="/skins/img/search_bt.gif" width="43" height="22" />
              </td>
            </tr>
          </form>
        </table>
        </td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="30" class="nav">
    <table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="30" class="nav_right">
        <div class=navigation>
        <ul class=navigation_con>
            <li><a href="http://www.pcshadu.com.cn/">网站首页</a></li>
            <li><a href="/news/">新闻资讯</a></li>
            <li><a href="/kills/">杀毒软件</a></li>
            <li><a href="/zs/"><div class="aa">专杀工具</div></a></li>
            <li><a href="/fw/">防火墙</a></li>
            <li><a href="/online/">在线杀毒</a></li>
            <li><a href="/cs/">厂商专区</a></li>
            <li><a href="/bingdugengxin/">病毒更新</a></li>
            <li><a href="http://www.pcshadu.com.cn/e/tool/gbook/?bid=2"><div class="aa">求助专区</div></a></li>
        </ul>
        </div>
        </td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="5" background="/skins/img/menu_bt.gif"></td>
  </tr>
</table>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="10"></td>
  </tr>
</table>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="950" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="5" height="28" background="/skins/img/title_L01.gif"></td>
    <td class="path">您当前的位置:<!--empire.url--><a href="http://www.pcshadu.com.cn/">首页</a>&nbsp;>&nbsp;<a href="http://www.pcshadu.com.cn/">软件下载地址页面</a></td>
    <td width="5" background="/skins/img/title_R01.gif"></td>
  </tr>
</table>
<br>
<table align=center><tr>
    <td align=center><a href="<?=$url?>"><img src="../../data/images/download.jpg" border=0></a></td>
  </tr></table>
<br>
<table align=center>
  <tr>
    <td align=center><br>
<iframe scrolling="no" width=910 height=168 src="http://www.pcshadu.com.cn/e/downsys/getdown/link/link.htm" frameborder=0 align="center"></iframe>    <br>
      点击右键 -&gt; 用下载软件下载 </td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center" class="bottom">
    关于我们 | 服务与支持 | 人才招聘 | 联系方式 | 网站地图 | 免责声明  <a href="http://www.pcshadu.com.cn/e/web/"  target="_blank"><img src="/skins/img/Rss.gif" width="45" height="17" border="0" /></a><br />
      Copyright &copy; 2008-2010 Pcshadu.Com.Cn Corp. Ltd. All Rights Reserved<br />
      网站备案:<A href="http://www.miibeian.gov.cn/" target=_blank>粤ICP备06030959号</A> 感谢<A href="http://www.63web.com/" target=_blank> 央网互联 </A>提供VIP务服器<!-- *** Vdoing Code *** -->
<script src="http://s78.cnzz.com/stat.php?id=292158&web_id=292158" language="JavaScript" charset="gb2312"></script>
<!-- *** End of Vdoing Code *** --><br />
    版权所有 Pcshadu.Com.Cn 技术支持 Myshadu
</td>
  </tr>
</table><script language="javascript">
var msg = "如感觉本站对你日常生活有帮助请收藏本站并设为首页,同时请发给你的QQ好友!>>>>>>>" ;
var interval = 180
var spacelen = 180;
var space10=" ";
var seq=0;
function Helpor_net() {
len = msg.length;
window.status = msg.substring(0, seq+1);
seq++;
if ( seq >= len ) {
seq = 0;
window.status = '';
window.setTimeout("Helpor_net();", interval );
}
else
window.setTimeout("Helpor_net();", interval );
}
Helpor_net();
</script>


修改哪一个代码?没有搞明白



虚拟主机全国最底,提供永久免费空间
2008-10-30 17:32:38 已设置保密 顶部 回复 引用 报告 编辑 删除

hlp
用户头衔:探花 *

精华贴   :0
发贴数   :2620
经验值   :7970
注册时间:2008-03-17
信息 搜索 好友 发送悄悄话 免费开源-EBMA系统:更安全的MYSQL管理和备份系统】   [第 4 楼]

看上面代码头就晕




2008-10-31 00:05:45 已设置保密 顶部 回复 引用 报告 编辑 删除

快速回复
内容

表情
使用EBB代码 使用smile代码 显示签名 自动分析url 自动分析img
     【进入高级模式】   (按 Ctrl+Enter 直接提交)
    顶部  加入收藏夹
关于帝国 | 广告服务 | 联系我们 | 法律声明 | 隐私条款 | 许可协议
Powered by: EBB Version 2.2.1