织梦开发:淘客商品跳转面页
有不少有喜欢用DEDECMS修改成淘宝客类的网站,织梦作为淘宝客站并不是特别的方便和适用。举例,我们增加字段,为了SEO效果,有些朋友增加了一个跳转页面。
代码如下:举例四个字段,查询表arctype
<?php require_once(dirname(__FILE__)."/../include/common.inc.php"); $id == $id; if($id==0) { die(" Request Error! "); } else { $url = $dsql->GetOne("select test1,test2,test3,test4 from dede_arctype where id = '$id' "); $test1 = $url['test1']; $test2 = $url['test2']; $test3 = $url['test3']; $test4 = $url['test4']; } ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <title>即将前往:<?php echo $test2 ?>官网</title> <meta name="robots" content="noindex,nofollow" /> <meta name="viewport" content="width=1000" /> <meta http-equiv="refresh" content="1;url=<?php echo $test1 ?>"> <link rel="stylesheet" media="all" href="gourl.css" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <div class="website"> <div class="one"> <div class="logo"><a rel="nofollow" href="<?php echo $test1 ?>"><img src="http://127.0.0.1/logo/<?php echo $test3 ?>"></a></div> <div class="go"> <dl> <dt><a rel="nofollow" href="<?php echo $test1 ?>">即将前往:<?php echo $test2 ?>官网</a></dt> <dd>如果页面没有跳转,请您<a rel="nofollow" href="<?php echo $test1 ?>">点击这里</a>直接访问</dd> </dl> </div> </div> <div class="load"><img src="loading.gif" /></div> <div class="two"> <dl> <dt><?php echo $test2 ?>:</dt> <dd><?php echo $test4 ?></dd> </dl> </div> <div class="copy">Copyright © 2002-2011 DEDECMS. 织梦科技 版权所有 鄂ICP备08006614号-2</div> </div> </body> </html>
CSS代码
@charset "utf-8"; body{margin:0;padding:0;background:#faf9f8 url(bg.png);color:#666;font:normal 12px/1.8em Verdana,Arial,sans-serif;-webkit-text-size-adjust:none;} h1,h2,p,dl,dt,dd{margin:0;padding:0;} a{color:#d32e4c;text-decoration:none;} a:hover{text-decoration:underline;} .website{overflow:hidden;width:500px;margin:150px auto;padding:30px;background:#fff;border-radius:5px;box-shadow:0 1px 5px rgba(0,0,0,0.3);-moz-box-shadow:0 1px 5px rgba(0,0,0,0.3);-webkit-box-shadow:0 1px 5px rgba(0,0,0,0.3);border-top:3px solid #D72300;} .website .one,.website .three{background:url(screw.gif) right no-repeat;height:53px; margin-bottom:30px;} .website .one .logo{ width:150px; height:53px; float:left; padding-bottom:10px;} .website .one .go{ width:340px; height:63px; float:left;padding-left:10px;} .website .one .go dl dt,.website .three dl dt{color:#d32e4c;font:24px/26px '微软雅黑','华文细黑',Verdana,Geneva,sans-serif;} .website .one .go dl dd,.website .three dl dd{color:#666;font-size:14px;word-wrap:break-word;word-break:break-all; line-height:37px;} .website .two{padding:15px 10px 25px;} .website .two dl dt{margin:10px 0;color:#666;font-size:16px; font-weight:600;} .website .two dl dd{color:#999;font-size:14px;line-height:140%;} .website .copy{border-top:1px dotted #ccc;color:#ccc;font:12px/20px 'Lucida Sans Unicode','Lucida Grande',Verdana,Geneva,sans-serif;text-align:center; padding-top:10px; font-family:Arial, Helvetica, sans-serif;} .website .copy a{color:#ccc;} .website .load{ width:200px; height:13px; margin:0 auto;}
推荐栏目
本站推荐
- 修改DEDE链接中的单引号为双引号
- DEDECMS启用绝对路径后远程缩略图存BUG
- 织梦dedecms自由列表的"不使用目录默认
- dedecms把文章批量设为未审核的办法
- 织梦调用父级栏目链接和名称
- 织梦data文件夹移动到程序上一层目录
- 优化增加搜索栏目功能后的搜索结果
- 织梦同级栏目指定文章调用实现相关文章教
- 织梦获取顶级栏目\当前栏目\上级栏目的相
- 织梦dedecms栏目添加自定义字段,增加栏
- 织梦DedeCMS自增函数[field:global name=
- dedecms织梦上传图片 缩略图路径统一
- 新增DEDE栏目页,无法更新,无权限
- 修改织梦摘要长度字数限制
- DEDECMS后台批量替换数据安全码不显示
- 织梦DEDECMS网站标签Tag静态化,生成静态
- 去掉FCK编辑器复制粘贴产生的<p>&a
- 完美解决FCK编辑器上传图片自动带DIV标签
- 去掉FCK编辑器每一段之前的空格 
- 织梦登录后台显示空白
百度站内搜索
Copyright © 2007-2014 海鬼 保留所有权利.
无心无力无时间来进行无用的备案
Theme by 海鬼 坚持不一定胜利 也许你在南辕北辙!