我们要完成的是电影网的评价功能:
我们要做这个功能前,就要让前期工作准备好,首先让鼠标移动到星星时,星星的左边都是黄色的星星右边还是灰星星。
我们打开内容页的模版看下他代码是如何组成的:
我们在这里可以很清晰的看得到他是通过二十张图片而组成的,所以我们首先将所有的星星都绑定一个鼠标移动事件,onmouseover,
写这个功能前必须要先引入jquery库,如下所示:
然后用id选择器将他绑定,如下所示:
然后在后台更新下文章页模版,
让后就将鼠标放到星星头上看下有没弹出OK,如果弹出证明我们的绑定已经成功了:
然后继续修改文章页的模版文件:
<script type="text/javascript" language="javascript"> $("#rank_pic img").mouseover(function(){ //先测试下是否已经绑定成功 //alert('OK'); //-------------------让选中的单前星星也变成黄色GO var imgsrc=$(this).attr("src"); imgsrc=imgsrc.replace("rank_3.gif","rank_1.gif"); imgsrc=imgsrc.replace("rank_4.gif","rank_2.gif"); //从新设置给该图片 $(this).attr("src",imgsrc); //---------------------------------------------ONE //将选中的星星左边的所有img的src换成黄星,将右边的换成灰星,这个this表示移动到的星星 $(this).prevAll().each(function(){ //对左边的所有星星进行遍历,修改src,这个this表示左边的某个星星 var imgsrc=$(this).attr("src"); //alert(imgsrc); //字符替换 imgsrc=imgsrc.replace("rank_3.gif","rank_1.gif"); imgsrc=imgsrc.replace("rank_4.gif","rank_2.gif"); //从新设置给该图片 $(this).attr("src",imgsrc); }); //将右方的所有图片换成灰星 $(this).nextAll().each(function(){ var imgsrc=$(this).attr('src'); imgsrc=imgsrc.replace("rank_1.gif","rank_3.gif"); imgsrc=imgsrc.replace("rank_2.gif","rank_4.gif"); $(this).attr('src',imgsrc); }); }); </script>
然后再去刷新下文章页的模版文件,再去放鼠标到星星上面看下效果即可:
如果如上图所示证明我们的第一步js特效方面已经成功了。。
然后我们开始让用户点击星星时候让评分值数据入库了,但是在入库时候要添加两个字段我们才可以知道评分值(总分数÷评分人数=平均分)。
我们首先1.要绑定事件,2.获取分数,3.将这次评分值入库
$("#rank_pic img").click(function(){ //获取用户评分值 var pingfen=($(this).prevAll().length+1)/2; //alert(pingfen); //js配合dede标签取出当前文档的id var aid={dede:field.aid/}; //alert(aid); //用dede标签配合js定义一个url直接指向plus var twourl="{dede:field name='phpurl'/}"+"/pingfen.php?aid="+aid+"&pingfen="+pingfen; //alert(twourl); //发出ajax请求,让后通过在plus目录下创建pingfen.php来利用dsql进行接收处理这里的数据 $.ajax({ type: "GET", url: twourl, success: function(msg){ $('#rank').html(msg); } }); });
我们用ajax发送数据给了plus目录下的pingfen.php文件来进行数据处理,代码如下所示:
<?php require_once(dirname(__FILE__)."/../include/common.inc.php"); //接收id $aid = $_GET['aid']; //接收评分 $pingfen = $_GET['pingfen']; //修改下评分值 $sql = "update `#@__addonmovie` set pingfen=$pingfen where aid=$aid"; //测试看下sql语句是否正确 //file_put_contents("d:/mytest.log",$sql); if($dsql->ExecuteNoneQuery($sql)){ $sql = "select pingfen from `#@__addonmovie` where aid=$aid"; $row = $dsql->GetOne($sql); if(is_array($row)){ echo $row['pingfen']; } }else{ echo "评分失败"; }
然后我们过去更新下文章页的模版文件,然后再来测试下,效果如下所示:
但是我们发现了一个问题,如果从新进来到该影片时,确又发生了变化,如下所示:
我们不能同步起来,因为我们第二次点击时候还是访问了缓冲的模版文件,还没更新过来,所以我们要继续改写让实际的评分和显示的评分值要同步起来。
解决方法可以通过直接嵌入一段<script></script>代码来进行解决,我盟将原本的取值方法改下:
我们将他稍微的改下问题即可解决,代码如下所示:
<li>用户评分:
<font id="rank">
<script src="{dede:field name='phpurl'/}/pingfen.php?flag=getpf&aid={dede:field name='id'/}" type="text/javascript">
</script>
</font> 分
(共有<font id="rank_num">...</font>人评分)
</li>
$("#rank_pic img").click(function(){ //获取用户评分值 var pingfen=($(this).prevAll().length+1)/2; //alert(pingfen); //js配合dede标签取出当前文档的id var aid={dede:field.aid/}; //alert(aid); //用dede标签配合js定义一个url直接指向plus var twourl="{dede:field name='phpurl'/}"+"/pingfen.php?flag=pingfen&aid="+aid+"&pingfen="+pingfen; //alert(twourl); //发出ajax请求,让后通过在plus目录下创建pingfen.php来利用dsql进行接收处理这里的数据 $.ajax({ type: "GET", url: twourl, success: function(msg){ $('#rank').html(msg); } }); });
然后再修改下pingfen.php
<?php require_once(dirname(__FILE__)."/../include/common.inc.php"); //先接收一个flag值,判断用户是要评分才是取分 $flag = $_GET['flag']; if($flag=='pingfen'){ //接收id $aid = $_GET['aid']; //接收评分 $pingfen = $_GET['pingfen']; //修改下评分值 $sql = "update `#@__addonmovie` set pingfen=$pingfen where aid=$aid"; //测试看下sql语句是否正确 //file_put_contents("d:/mytest.log",$sql); if($dsql->ExecuteNoneQuery($sql)){ $sql = "select pingfen from `#@__addonmovie` where aid=$aid"; $row = $dsql->GetOne($sql); if(is_array($row)){ echo $row['pingfen']; } }else{ echo "评分失败"; } }else if($flag=='getpf'){ //接收aid $aid = $_GET['aid']; $sql = "select pingfen from `#@__addonmovie` where aid={$aid}"; $row = $dsql->GetOne($sql); if(is_array($row)){ echo "document.write('".$row['pingfen']."');\r\n"; } }
这样问题即可解决,只要评价多少分,那么每次进来一看,他就是多少分的了。。。
但是新的问题又来了,我们每次打开的时候他的分数是确定了,但是星星不确定,如下所示
而且这个地方的评分也还是不能同步的,我们要对我们的列表页模版进行修改:让我们的评分值要时时的取出,
代码如下所示:
然后在这里面给他个10分:
让后在列表页刷新下看看:
10分成功了,但是里面的星星还不是同步的:
我们首先要明白他的原理:
废话不多说,来修改模版:
<!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>3GP手机电影,高清3GP MP4手机电影,每日更新 - A67手机电影</title> <meta name="Keywords" content="3GP,手机电影,3GP手机电影" /> <meta name="Description" content="" /> <link href="{dede:global.cfg_templets_skin/}/css/style.css" type="text/css" rel="stylesheet"/> <link href="{dede:global.cfg_templets_skin/}/css/yingshi.css" type="text/css" rel="stylesheet"/> <script language="javascript" src="{dede:global.cfg_templets_skin/}/js/global.js"></script> <script type="text/javascript" src="{dede:global.cfg_templets_skin/}/js/index_0809.js" ></script> </head> <body> <div id="header"> <div id="menu"> <div class="top"> <div class="logn">3GP/MP4手机电影第一门户网!<a href="#" target="_blank">请登录</a><a href="#" target="_blank">注册会员</a></div> <div class="txt"> <ul> <li><a href="http://www.a67.com/view/" target="_blank">提提建议</a></li> <li><a href="http://www.a67.com/maps.html" target="_blank">网站地图</a></li> <li><a href="javascript:;" onclick="return addFavor('A67手机电影', 'http://www.a67.com/movie/')">加入收藏</a></li> <li><a href="javascript:;" onclick="return setHome(this, 'http://www.a67.com');">设为首页</a></li> </ul> </div> </div> </div> <div class="menu"> <div class="menu_wrap"> <div class="logo"><a href="http://www.a67.com/" target="_blank"><img src="{dede:global.cfg_templets_skin/}/images/logo.gif" alt="A67手机电影" border="0" /></a></div> <div class="search"> <div class="searcher_wrap"> <div class="searcher_tet"> <form action="http://so.a67.com/so" method="get" name="q" target="_blank" id="search" > <input type="text" name="q" class="focus" value="" /> <input type="image" name="s" class="searchbutton" id="button" src="{dede:global.cfg_templets_skin/}/images/searcher.jpg" align="absmiddle" /> </form> </div> <div class="hot_search_box"> <div class="hotkeywords"> 一周热搜: <a href="http://so.a67.com/so?q=%E4%B8%80%E8%B5%B7%E5%8F%88%E7%9C%8B%E6%B5%81%E6%98%9F%E9%9B%A8&t=movie" target="_blank">一起又看流星雨</a> <a href="http://so.a67.com/so?q=%E6%B3%A1%E6%B2%AB%E4%B9%8B%E5%A4%8F&t=movie" target="_blank">泡沫之夏</a> <a href="http://so.a67.com/so?q=%E6%88%90%E9%BE%99&t=movie" target="_blank">成龙</a> <a href="http://so.a67.com/so?q=%E6%B5%B7%E6%B4%BE%E7%94%9C%E5%BF%83&t=movie" target="_blank">海派甜心</a> <a href="http://so.a67.com/so?q=%E5%91%A8%E6%98%9F%E9%A9%B0&t=movie" target="_blank">周星驰</a> <a href="http://so.a67.com/so?q=%E5%98%BB%E6%B8%B8%E8%AE%B0&t=movie" target="_blank">嘻游记</a> <a href="http://so.a67.com/so?q=%E5%94%90%E5%B1%B1%E5%A4%A7%E5%9C%B0%E9%9C%87&t=movie" target="_blank">唐山大地震</a> <a href="http://so.a67.com/so?q=%E6%95%A2%E6%AD%BB%E9%98%9F&t=movie" target="_blank">敢死队</a> </div> </div> </div> </div> </div> <div class="banner"><img src="{dede:global.cfg_templets_skin/}/images/banner.gif" alt="新红楼梦" border="0" /></div> {dede:include filename="head.htm"/} </div> </div> <div id="main"> <div class="scrollimg"> <div class="big_pic_show"> <div class="pic" id="SwitchBigPic"> <div class="big_pic"><a href="http://www.a67.com/movie/7448" target="_blank"><img id="bigpic_0" src="{dede:global.cfg_templets_skin/}/images/pindao/direnjie.jpg" alt="狄仁杰之通天帝国" /></a></div> <div class="big_pic"><a href="http://www.a67.com/movie/7309" target="_blank"><img id="bigpic_1" src="{dede:global.cfg_templets_skin/}/images/pindao/shanzhashu.jpg" alt="山楂树之恋" /></a></div> <div class="big_pic"><a href="http://www.a67.com/movie/7343" target="_blank"><img id="bigpic_2" src="{dede:global.cfg_templets_skin/}/images/pindao/jianyu.jpg" alt="剑雨" /></a></div> <script> var ScrollBigPic = new Array() ; ScrollBigPic[0] = "{dede:global.cfg_templets_skin/}/images/pindao/direnjie.jpg" ; ScrollBigPic[1] = "{dede:global.cfg_templets_skin/}/images/pindao/shanzhashu.jpg" ; ScrollBigPic[2] = "{dede:global.cfg_templets_skin/}/images/pindao/jianyu.jpg" ; </script> </div> </div> <div class="bg"></div> <div class="scrollimg_con"> <div id="big_pic_title_desc_0"> <h3><a href="http://www.a67.com/movie/7448" title="" target="_blank">狄仁杰之通天帝国</a></h3> <p>通天浮屠、地下鬼市怪诞离奇,1.3亿重现大唐盛世。焚尸案背后,谁是凶手?谁是主犯?动机为何?鬼才导演徐克再次出山重塑神探狄仁杰。</p> <div class="play_bg"></div> <a href="http://www.a67.com/movie/7448" title="" class="play" target="_blank">点击下载</a> </div> <div id="big_pic_title_desc_1" style="display:none"> <h3><a href="http://www.a67.com/movie/7309" title="" target="_blank">山楂树之恋</a></h3> <p>当最清纯的静秋邂逅老三,凄美爱恋华丽上演。史上最干净的爱情,是否名副其实?张艺谋的诚心回归力作,山楂树之恋华美绽放!</p> <div class="play_bg"></div> <a href="http://www.a67.com/movie/7309" title="" class="play" target="_blank">点击下载</a> </div> <div id="big_pic_title_desc_2" style="display:none"> <h3><a href="http://www.a67.com/movie/7343" title="" target="_blank">剑雨</a></h3> <p>吴宇森首部武侠巨制,冷艳女杀手与落魄男邮差,奉上武侠版“史密斯夫妇”。12巨星轮番惊艳,大S突破尺度连脱三次,杀人游戏马上开始!</</p> <div class="play_bg"></div> <a href="http://www.a67.com/movie/7343" title="" class="play" target="_blank">点击下载</a> </div> <ul class="scroll_num"> <li><a id="big_pic_nav_0" href="javascript://" target="_self" title="" class="on">1</a></li> <li><a id="big_pic_nav_1" href="javascript://" target="_self" title="">2</a></li> <li><a id="big_pic_nav_2" href="javascript://" target="_self" title="">3</a></li> </ul> <button id="big_pic_pre_btn" class="no">上一张</button> <button id="big_pic_next_btn" class="next">下一张</button> </div> </div> <script> var MovieRecom={ bigpic:"SwitchBigPic", //大图DIV之ID通用部分 step:980, smallpic:"big_pic_nav",//小图之ID通用部分 selectstyle:"currA", //小图被选中之后的CSS pictxt:"", //配套图片文字 totalcount:3, //图片数量 autotimeintval:5000, objname:"MovieRecom" //对象名称 }; BigNews.init(MovieRecom); </script> <div class="fenlei"> <div class="fenlei_top"><img src="{dede:global.cfg_templets_skin/}/images/pd_fl_top.gif" /></div> <div class="fenlei_u"> <div class="fenlei_l"> <div class="fenlei_js"><span>电影<br />检索</span></div> <div class="fenlei_h"> <li><a href="#" target="_blank">所有电影>></a></li> </div> </div> <dl class="searchDl" style="width:250px;"> <dt>按年代</dt> <dd> <a href="{dede:global.cfg_plus_dir/}/twosearch.php?typeid={dede:field.id/}&niandai=" target="_blank">全部</a> <a href="{dede:global.cfg_plus_dir/}/twosearch.php?typeid={dede:field.id/}&niandai=2016" target="_blank">2016</a> <a href="{dede:global.cfg_plus_dir/}/twosearch.php?typeid={dede:field.id/}&niandai=2015" target="_blank">2015</a> <a href="{dede:global.cfg_plus_dir/}/twosearch.php?typeid={dede:field.id/}&niandai=2014" target="_blank">2014</a> <a href="{dede:global.cfg_plus_dir/}/twosearch.php?typeid={dede:field.id/}&niandai=2013" target="_blank">2013</a> <a href="{dede:global.cfg_plus_dir/}/twosearch.php?typeid={dede:field.id/}&niandai=2012" target="_blank">2012</a> <a href="{dede:global.cfg_plus_dir/}/twosearch.php?typeid={dede:field.id/}&niandai=2011" target="_blank">2011</a> <a href="{dede:global.cfg_plus_dir/}/twosearch.php?typeid={dede:field.id/}&niandai=2010" target="_blank">2010</a> <a href="{dede:global.cfg_plus_dir/}/twosearch.php?typeid={dede:field.id/}&niandai=2009" target="_blank">2009</a> <a href="{dede:global.cfg_plus_dir/}/twosearch.php?typeid={dede:field.id/}&niandai=2008" target="_blank">2008</a> <a href="{dede:global.cfg_plus_dir/}/twosearch.php?typeid={dede:field.id/}&niandai=2006" target="_blank">2006</a> </dd> </dl> <dl class="searchDl" style="width:150px;"> <dt>按地区</dt> <dd> <a href="{dede:global.cfg_plus_dir/}/twosearch.php?typeid={dede:field.id/}&diqu=" target="_blank">全部</a> <a href="{dede:global.cfg_plus_dir/}/twosearch.php?typeid={dede:field.id/}&diqu=大陆" target="_blank">大陆</a> <a href="{dede:global.cfg_plus_dir/}/twosearch.php?typeid={dede:field.id/}&diqu=港台" target="_blank">港台</a> <a href="{dede:global.cfg_plus_dir/}/twosearch.php?typeid={dede:field.id/}&diqu=日韩" target="_blank">日韩</a> <a href="{dede:global.cfg_plus_dir/}/twosearch.php?typeid={dede:field.id/}&diqu=欧美" target="_blank">欧美</a> </dd> </dl> <dl style="width:200px;" class="searchDl"> <dt>按明星</dt> <dd><a href="{dede:global.cfg_plus_dir/}/twosearch.php?typeid={dede:field.id/}&zhuyan=洪金宝" target="_blank">洪金宝</a> <a href="{dede:global.cfg_plus_dir/}/twosearch.php?typeid={dede:field.id/}&zhuyan=成龙" target="_blank">成龙</a> <a href="{dede:global.cfg_plus_dir/}/twosearch.php?typeid={dede:field.id/}&zhuyan=李连杰" target="_blank">李连杰</a> <a href="{dede:global.cfg_plus_dir/}/twosearch.php?typeid={dede:field.id/}&zhuyan=刘亦菲" target="_blank">刘亦菲</a> <a href="{dede:global.cfg_plus_dir/}/twosearch.php?typeid={dede:field.id/}&zhuyan=范冰冰" target="_blank">范冰冰</a> <a href="{dede:global.cfg_plus_dir/}/twosearch.php?typeid={dede:field.id/}&zhuyan=周星驰" target="_blank">周星驰</a> </dd> </dl> </div> </div> <div class="module"> <div class="movie"> <div class="movie_top"><span>今天更新</span><p><a href="#" title="最新手机电影" target="_blank">更多>></a></p></div> <div class="movie_list"> {dede:arclist row="5" channelid="18" addfields="yuyan,pingfen"} <li class="d[field:global.autoindex/]"> <a href="[field:arcurl/]" target="_blank"> <img src="[field:litpic/]" alt="[field:title/] 3GP MP4高清下载" /> </a> <p>[field:yuyan/]</p> <b> <a href="[field:arcurl/]" target="_blank">[field:title/]</a> <script type="text/javascript" src="[field:global.cfg_plus_dir/]/pingfen.php?flag=getxx&aid=[field:id/]"> </script> <em> <script src="[field:global.cfg_plus_dir/]/pingfen.php?flag=getpf&aid=[field:id/]" type="text/javascript"> </script> 分</em> </b> </li> {/dede:arclist} </div> <div class="movie_txt"> <ul> <li><span><a href="#" target="_blank">昨天更新</a> |</span><a href="#" target="_blank">鱼狗</a><a href="#" target="_blank">卑鄙的我</a><a href="#" target="_blank">爱出色</a><a href="#" target="_blank">群魔乱舞</a><a href="#" target="_blank">我的野蛮男友</a><a href="#" target="_blank">河东狮吼</a><a href="#" target="_blank">朋党</a><a href="#" target="_blank">凶榜</a><a href="#" target="_blank">恭喜发财</a><a href="#" target="_blank">床上的故事</a></li> <li><span><a href="#" target="_blank">前天更新</a> |</span><a href="#" target="_blank">露西娅的情人</a><a href="#" target="_blank">珍珠港</a><a href="#" target="_blank">黑白战场</a><a href="#" target="_blank">小生怕怕</a><a href="#" target="_blank">另一个大仲马</a><a href="#" target="_blank">绑匪</a><a href="#" target="_blank">瘦虎肥龙</a><a href="#" target="_blank">刺马</a><a href="#" target="_blank">爱与诚</a><a href="#" target="_blank">性与早餐</a></li> <li><span><a href="#" target="_blank">12-2更新</a> |</span><a href="#" target="_blank">爱我别走</a><a href="#" target="_blank">爱杀2000</a><a href="#" target="_blank">爱情敏感地带</a><a href="#" target="_blank">热血最强</a><a href="#" target="_blank">爱情维修站</a><a href="#" target="_blank">屠龙少年历险记</a><a href="#" target="_blank">四三二一</a><a href="#" target="_blank">双重时间</a><a href="#" target="_blank">电锯惊魂7</a><a href="#" target="_blank">铁男3:子弹人</a></li> </ul> </div> </div> <div class="paihang"> <div class="paihang_top">上升最快</div> <div class="paihang_u"> <ul class="block"> <li class="hover"><span>1</span><a href="/movie/7036" title="金瓶双艳3GP MP4下载" target="_blank">金瓶双艳</a></li> <li class="hover"><span>2</span><a href="/movie/7238" title="生化危机4:来生3GP MP4下载" target="_blank">生化危机4:来生</a></li> <li class="hover"><span>3</span><a href="/movie/7623" title="钻石狗3GP MP4下载" target="_blank">钻石狗</a></li> <li><span>4</span><a href="/movie/7634" title="世界大战3GP MP4下载" target="_blank">世界大战</a></li> <li><span>5</span><a href="/movie/7583" title="女教师日记3GP MP4下载" target="_blank">女教师日记</a></li> <li><span>6</span><a href="/movie/7676" title="子曰:食色性也3GP MP4下载" target="_blank">子曰:食色性也</a></li> <li><span>7</span><a href="/movie/7566" title="在床上3GP MP4下载" target="_blank">在床上</a></li> <li><span>8</span><a href="/movie/5727" title="2012末日预言3GP MP4下载" target="_blank">2012末日预言</a></li> <li><span>9</span><a href="/movie/7602" title="顶层公寓3GP MP4下载" target="_blank">顶层公寓</a></li> <li class="none"><span>10</span><a href="/movie/5335" title="海云台3GP MP4下载" target="_blank">海云台</a></li> </ul> </div> </div> </div> <div class="module"> <div class="movie"> <div class="movie_top"><span>热门大片</span><p><a href="#" title="热门手机电影" target="_blank">更多>></a></p></div> <div class="movie_list"> {dede:arclist row="5" channelid="18" addfields="yuyan,pingfen" orderby="click" orderway="desc"} <li class="d[field:global.autoindex/]"> <a href="[field:arcurl/]" target="_blank"> <img src="[field:litpic/]" alt="[field:title/] 3GP MP4高清下载" /> </a> <p>[field:yuyan/]</p> <b> <a href="[field:arcurl/]" target="_blank">[field:title/]</a> <script type="text/javascript" src="[field:global.cfg_plus_dir/]/pingfen.php?flag=getxx&aid=[field:id/]"> </script> <em> <script src="[field:global.cfg_plus_dir/]/pingfen.php?flag=getpf&aid=[field:id/]" type="text/javascript"> </script> 分</em> </b> </li> {/dede:arclist} </div> <div class="movie_dpt"> <ul> <li><span><a href="#" target="_blank">大陆大片</a> |</span><a href="#" target="_blank">鱼狗</a><a href="#" target="_blank">卑鄙的我</a><a href="#" target="_blank">爱出色</a><a href="#" target="_blank">群魔乱舞</a><a href="#" target="_blank">我的野蛮男友</a></li> <li><span><a href="#" target="_blank">港台大片</a> |</span><a href="#" target="_blank">露西娅的情人</a><a href="#" target="_blank">珍珠港</a><a href="#" target="_blank">黑白战场</a><a href="#" target="_blank">小生怕怕</a></li> <li><span><a href="#" target="_blank">日韩大片</a> |</span><a href="#" target="_blank">爱我别走</a><a href="#" target="_blank">爱杀2000</a><a href="#" target="_blank">爱情敏感地带</a><a href="#" target="_blank">热血最强</a></li> <li><span><a href="#" target="_blank">欧美大片</a> |</span><a href="#" target="_blank">屠龙少年历险记</a><a href="#" target="_blank">四三二一</a><a href="#" target="_blank">电锯惊魂7</a><a href="#" target="_blank">铁男3:子弹人</a></li> <li><span><a href="#" target="_blank">动作大片</a> |</span><a href="#" target="_blank">爱我别走</a><a href="#" target="_blank">爱杀2000</a><a href="#" target="_blank">爱情敏感地带</a><a href="#" target="_blank">热血最强</a></li> <li><span><a href="#" target="_blank">灾难大片</a> |</span><a href="#" target="_blank">屠龙少年历险记</a><a href="#" target="_blank">四三二一</a><a href="#" target="_blank">电锯惊魂7</a><a href="#" target="_blank">铁男3:子弹人</a></li> </ul> </div> </div> <div class="paihang"> <div class="paihang_top">热门大片下载排行</div> <div class="paihang_u"> <ul class="block"> <li class="hover"><span>1</span><a href="/movie/7036" title="金瓶双艳3GP MP4下载" target="_blank">金瓶双艳</a></li> <li class="hover"><span>2</span><a href="/movie/7238" title="生化危机4:来生3GP MP4下载" target="_blank">生化危机4:来生</a></li> <li class="hover"><span>3</span><a href="/movie/7623" title="钻石狗3GP MP4下载" target="_blank">钻石狗</a></li> <li><span>4</span><a href="/movie/7634" title="世界大战3GP MP4下载" target="_blank">世界大战</a></li> <li><span>5</span><a href="/movie/7583" title="女教师日记3GP MP4下载" target="_blank">女教师日记</a></li> <li><span>6</span><a href="/movie/7676" title="子曰:食色性也3GP MP4下载" target="_blank">子曰:食色性也</a></li> <li><span>7</span><a href="/movie/7566" title="在床上3GP MP4下载" target="_blank">在床上</a></li> <li><span>8</span><a href="/movie/5727" title="2012末日预言3GP MP4下载" target="_blank">2012末日预言</a></li> <li><span>9</span><a href="/movie/7602" title="顶层公寓3GP MP4下载" target="_blank">顶层公寓</a></li> <li class="none"><span>10</span><a href="/movie/5335" title="海云台3GP MP4下载" target="_blank">海云台</a></li> </ul> </div> </div> <div class="banner980"><img src="{dede:global.cfg_templets_skin/}/images/ad/hengfu1.gif" width="980" height="60" /></div> </div> <div class="module"> <div class="movie"> <div class="movie_top"><span>大陆电影</span><p><a href="#" title="大陆手机电影" target="_blank">更多>></a></p></div> <div class="movie_list"> {dede:arclist row="5" mydiqu="diqu='大陆'" channelid="18" addfields="yuyan,pingfen"} <li class="d[field:global.autoindex/]"> <a href="[field:arcurl/]" target="_blank"> <img src="[field:litpic/]" alt="[field:title/] 3GP MP4高清下载" /> </a> <p>[field:yuyan/]</p> <b> <a href="[field:arcurl/]" target="_blank">[field:title/]</a> <script type="text/javascript" src="[field:global.cfg_plus_dir/]/pingfen.php?flag=getxx&aid=[field:id/]"> </script> <em> <script src="[field:global.cfg_plus_dir/]/pingfen.php?flag=getpf&aid=[field:id/]" type="text/javascript"> </script> 分</em> </b> </li> {/dede:arclist} </div> <div class="movie_flt"> <ul> <li><span><a href="#" target="_blank">动作片</a> |</span><a href="#" target="_blank">鱼狗</a><a href="#" target="_blank">卑鄙的我</a><a href="#" target="_blank">爱出色</a><a href="#" target="_blank">群魔乱舞</a><a href="#" target="_blank">我的野蛮男友</a></li> <li><span><a href="#" target="_blank">爱情片</a> |</span><a href="#" target="_blank">露西娅的情人</a><a href="#" target="_blank">珍珠港</a><a href="#" target="_blank">黑白战场</a><a href="#" target="_blank">小生怕怕</a></li> <li><span><a href="#" target="_blank">喜剧片</a> |</span><a href="#" target="_blank">爱我别走</a><a href="#" target="_blank">爱杀2000</a><a href="#" target="_blank">爱情敏感地带</a><a href="#" target="_blank">热血最强</a></li> <li><span><a href="#" target="_blank">恐怖片</a> |</span><a href="#" target="_blank">屠龙少年历险记</a><a href="#" target="_blank">四三二一</a><a href="#" target="_blank">电锯惊魂7</a><a href="#" target="_blank">铁男3:子弹人</a></li> <li><span><a href="#" target="_blank">历史片</a> |</span><a href="#" target="_blank">爱我别走</a><a href="#" target="_blank">爱杀2000</a><a href="#" target="_blank">爱情敏感地带</a><a href="#" target="_blank">热血最强</a></li> <li><span><a href="#" target="_blank">科幻片</a> |</span><a href="#" target="_blank">屠龙少年历险记</a><a href="#" target="_blank">四三二一</a><a href="#" target="_blank">电锯惊魂7</a><a href="#" target="_blank">铁男3:子弹人</a></li> </ul> </div> </div> <div class="paihang"> <div class="paihang_top">大陆电影下载排行</div> <div class="paihang_u"> <ul class="block"> <li class="hover"><span>1</span><a href="/movie/7036" title="金瓶双艳3GP MP4下载" target="_blank">金瓶双艳</a></li> <li class="hover"><span>2</span><a href="/movie/7238" title="生化危机4:来生3GP MP4下载" target="_blank">生化危机4:来生</a></li> <li class="hover"><span>3</span><a href="/movie/7623" title="钻石狗3GP MP4下载" target="_blank">钻石狗</a></li> <li><span>4</span><a href="/movie/7634" title="世界大战3GP MP4下载" target="_blank">世界大战</a></li> <li><span>5</span><a href="/movie/7583" title="女教师日记3GP MP4下载" target="_blank">女教师日记</a></li> <li><span>6</span><a href="/movie/7676" title="子曰:食色性也3GP MP4下载" target="_blank">子曰:食色性也</a></li> <li><span>7</span><a href="/movie/7566" title="在床上3GP MP4下载" target="_blank">在床上</a></li> <li><span>8</span><a href="/movie/5727" title="2012末日预言3GP MP4下载" target="_blank">2012末日预言</a></li> <li><span>9</span><a href="/movie/7602" title="顶层公寓3GP MP4下载" target="_blank">顶层公寓</a></li> <li class="none"><span>10</span><a href="/movie/5335" title="海云台3GP MP4下载" target="_blank">海云台</a></li> </ul> </div> </div> </div> <div class="module"> <div class="movie"> <div class="movie_top"><span>港台电影</span><p><a href="#" title="港台手机电影" target="_blank">更多>></a></p></div> <div class="movie_list"> {dede:arclist row="5" mydiqu="diqu='港台'" channelid="18" addfields="yuyan,pingfen"} <li class="d[field:global.autoindex/]"> <a href="[field:arcurl/]" target="_blank"> <img src="[field:litpic/]" alt="[field:title/] 3GP MP4高清下载" /> </a> <p>[field:yuyan/]</p> <b> <a href="[field:arcurl/]" target="_blank">[field:title/]</a> <script type="text/javascript" src="[field:global.cfg_plus_dir/]/pingfen.php?flag=getxx&aid=[field:id/]"> </script> <em> <script src="[field:global.cfg_plus_dir/]/pingfen.php?flag=getpf&aid=[field:id/]" type="text/javascript"> </script> 分</em> </b> </li> {/dede:arclist} </div> <div class="movie_dpt"> <ul> <li><span><a href="#" target="_blank">动作片</a> |</span><a href="#" target="_blank">鱼狗</a><a href="#" target="_blank">卑鄙的我</a><a href="#" target="_blank">爱出色</a><a href="#" target="_blank">群魔乱舞</a><a href="#" target="_blank">我的野蛮男友</a></li> <li><span><a href="#" target="_blank">爱情片</a> |</span><a href="#" target="_blank">露西娅的情人</a><a href="#" target="_blank">珍珠港</a><a href="#" target="_blank">黑白战场</a><a href="#" target="_blank">小生怕怕</a></li> <li><span><a href="#" target="_blank">喜剧片</a> |</span><a href="#" target="_blank">爱我别走</a><a href="#" target="_blank">爱杀2000</a><a href="#" target="_blank">爱情敏感地带</a><a href="#" target="_blank">热血最强</a></li> <li><span><a href="#" target="_blank">恐怖片</a> |</span><a href="#" target="_blank">屠龙少年历险记</a><a href="#" target="_blank">四三二一</a><a href="#" target="_blank">电锯惊魂7</a><a href="#" target="_blank">铁男3:子弹人</a></li> <li><span><a href="#" target="_blank">历史片</a> |</span><a href="#" target="_blank">爱我别走</a><a href="#" target="_blank">爱杀2000</a><a href="#" target="_blank">爱情敏感地带</a><a href="#" target="_blank">热血最强</a></li> <li><span><a href="#" target="_blank">科幻片</a> |</span><a href="#" target="_blank">屠龙少年历险记</a><a href="#" target="_blank">四三二一</a><a href="#" target="_blank">电锯惊魂7</a><a href="#" target="_blank">铁男3:子弹人</a></li> </ul> </div> </div> <div class="paihang"> <div class="paihang_top">港台电影下载排行</div> <div class="paihang_u"> <ul class="block"> <li class="hover"><span>1</span><a href="/movie/7036" title="金瓶双艳3GP MP4下载" target="_blank">金瓶双艳</a></li> <li class="hover"><span>2</span><a href="/movie/7238" title="生化危机4:来生3GP MP4下载" target="_blank">生化危机4:来生</a></li> <li class="hover"><span>3</span><a href="/movie/7623" title="钻石狗3GP MP4下载" target="_blank">钻石狗</a></li> <li><span>4</span><a href="/movie/7634" title="世界大战3GP MP4下载" target="_blank">世界大战</a></li> <li><span>5</span><a href="/movie/7583" title="女教师日记3GP MP4下载" target="_blank">女教师日记</a></li> <li><span>6</span><a href="/movie/7676" title="子曰:食色性也3GP MP4下载" target="_blank">子曰:食色性也</a></li> <li><span>7</span><a href="/movie/7566" title="在床上3GP MP4下载" target="_blank">在床上</a></li> <li><span>8</span><a href="/movie/5727" title="2012末日预言3GP MP4下载" target="_blank">2012末日预言</a></li> <li><span>9</span><a href="/movie/7602" title="顶层公寓3GP MP4下载" target="_blank">顶层公寓</a></li> <li class="none"><span>10</span><a href="/movie/5335" title="海云台3GP MP4下载" target="_blank">海云台</a></li> </ul> </div> </div> <div class="banner980"><img src="{dede:global.cfg_templets_skin/}/images/ad/hengfu1.gif" width="980" height="60" /></div> </div> <div class="module"> <div class="movie"> <div class="movie_top"><span>日韩电影</span><p><a href="#" title="日韩手机电影" target="_blank">更多>></a></p></div> <div class="movie_list"> {dede:arclist row="5" mydiqu="diqu='日韩'" channelid="18" addfields="yuyan,pingfen"} <li class="d[field:global.autoindex/]"> <a href="[field:arcurl/]" target="_blank"> <img src="[field:litpic/]" alt="[field:title/] 3GP MP4高清下载" /> </a> <p>[field:yuyan/]</p> <b> <a href="[field:arcurl/]" target="_blank">[field:title/]</a> <script type="text/javascript" src="[field:global.cfg_plus_dir/]/pingfen.php?flag=getxx&aid=[field:id/]"> </script> <em> <script src="[field:global.cfg_plus_dir/]/pingfen.php?flag=getpf&aid=[field:id/]" type="text/javascript"> </script> 分</em> </b> </li> {/dede:arclist} </div> <div class="movie_flt"> <ul> <li><span><a href="#" target="_blank">动作片</a> |</span><a href="#" target="_blank">鱼狗</a><a href="#" target="_blank">卑鄙的我</a><a href="#" target="_blank">爱出色</a><a href="#" target="_blank">群魔乱舞</a><a href="#" target="_blank">我的野蛮男友</a></li> <li><span><a href="#" target="_blank">爱情片</a> |</span><a href="#" target="_blank">露西娅的情人</a><a href="#" target="_blank">珍珠港</a><a href="#" target="_blank">黑白战场</a><a href="#" target="_blank">小生怕怕</a></li> <li><span><a href="#" target="_blank">喜剧片</a> |</span><a href="#" target="_blank">爱我别走</a><a href="#" target="_blank">爱杀2000</a><a href="#" target="_blank">爱情敏感地带</a><a href="#" target="_blank">热血最强</a></li> <li><span><a href="#" target="_blank">恐怖片</a> |</span><a href="#" target="_blank">屠龙少年历险记</a><a href="#" target="_blank">四三二一</a><a href="#" target="_blank">电锯惊魂7</a><a href="#" target="_blank">铁男3:子弹人</a></li> <li><span><a href="#" target="_blank">历史片</a> |</span><a href="#" target="_blank">爱我别走</a><a href="#" target="_blank">爱杀2000</a><a href="#" target="_blank">爱情敏感地带</a><a href="#" target="_blank">热血最强</a></li> <li><span><a href="#" target="_blank">科幻片</a> |</span><a href="#" target="_blank">屠龙少年历险记</a><a href="#" target="_blank">四三二一</a><a href="#" target="_blank">电锯惊魂7</a><a href="#" target="_blank">铁男3:子弹人</a></li> </ul> </div> </div> <div class="paihang"> <div class="paihang_top">日韩电影下载排行</div> <div class="paihang_u"> <ul class="block"> <li class="hover"><span>1</span><a href="/movie/7036" title="金瓶双艳3GP MP4下载" target="_blank">金瓶双艳</a></li> <li class="hover"><span>2</span><a href="/movie/7238" title="生化危机4:来生3GP MP4下载" target="_blank">生化危机4:来生</a></li> <li class="hover"><span>3</span><a href="/movie/7623" title="钻石狗3GP MP4下载" target="_blank">钻石狗</a></li> <li><span>4</span><a href="/movie/7634" title="世界大战3GP MP4下载" target="_blank">世界大战</a></li> <li><span>5</span><a href="/movie/7583" title="女教师日记3GP MP4下载" target="_blank">女教师日记</a></li> <li><span>6</span><a href="/movie/7676" title="子曰:食色性也3GP MP4下载" target="_blank">子曰:食色性也</a></li> <li><span>7</span><a href="/movie/7566" title="在床上3GP MP4下载" target="_blank">在床上</a></li> <li><span>8</span><a href="/movie/5727" title="2012末日预言3GP MP4下载" target="_blank">2012末日预言</a></li> <li><span>9</span><a href="/movie/7602" title="顶层公寓3GP MP4下载" target="_blank">顶层公寓</a></li> <li class="none"><span>10</span><a href="/movie/5335" title="海云台3GP MP4下载" target="_blank">海云台</a></li> </ul> </div> </div> </div> <div class="module"> <div class="movie"> <div class="movie_top"><span>欧美电影</span><p><a href="#" title="欧美手机电影" target="_blank">更多>></a></p></div> <div class="movie_list"> {dede:arclist row="5" mydiqu="diqu='欧美'" channelid="18" addfields="yuyan,pingfen"} <li class="d[field:global.autoindex/]"> <a href="[field:arcurl/]" target="_blank"> <img src="[field:litpic/]" alt="[field:title/] 3GP MP4高清下载" /> </a> <p>[field:yuyan/]</p> <b> <a href="[field:arcurl/]" target="_blank">[field:title/]</a> <script type="text/javascript" src="[field:global.cfg_plus_dir/]/pingfen.php?flag=getxx&aid=[field:id/]"> </script> <em> <script src="[field:global.cfg_plus_dir/]/pingfen.php?flag=getpf&aid=[field:id/]" type="text/javascript"> </script> 分</em> </b> </li> {/dede:arclist} </div> <div class="movie_dpt"> <ul> <li><span><a href="#" target="_blank">动作片</a> |</span><a href="#" target="_blank">鱼狗</a><a href="#" target="_blank">卑鄙的我</a><a href="#" target="_blank">爱出色</a><a href="#" target="_blank">群魔乱舞</a><a href="#" target="_blank">我的野蛮男友</a></li> <li><span><a href="#" target="_blank">爱情片</a> |</span><a href="#" target="_blank">露西娅的情人</a><a href="#" target="_blank">珍珠港</a><a href="#" target="_blank">黑白战场</a><a href="#" target="_blank">小生怕怕</a></li> <li><span><a href="#" target="_blank">喜剧片</a> |</span><a href="#" target="_blank">爱我别走</a><a href="#" target="_blank">爱杀2000</a><a href="#" target="_blank">爱情敏感地带</a><a href="#" target="_blank">热血最强</a></li> <li><span><a href="#" target="_blank">恐怖片</a> |</span><a href="#" target="_blank">屠龙少年历险记</a><a href="#" target="_blank">四三二一</a><a href="#" target="_blank">电锯惊魂7</a><a href="#" target="_blank">铁男3:子弹人</a></li> <li><span><a href="#" target="_blank">历史片</a> |</span><a href="#" target="_blank">爱我别走</a><a href="#" target="_blank">爱杀2000</a><a href="#" target="_blank">爱情敏感地带</a><a href="#" target="_blank">热血最强</a></li> <li><span><a href="#" target="_blank">科幻片</a> |</span><a href="#" target="_blank">屠龙少年历险记</a><a href="#" target="_blank">四三二一</a><a href="#" target="_blank">电锯惊魂7</a><a href="#" target="_blank">铁男3:子弹人</a></li> </ul> </div> </div> <div class="paihang"> <div class="paihang_top">欧美电影下载排行</div> <div class="paihang_u"> <ul class="block"> <li class="hover"><span>1</span><a href="/movie/7036" title="金瓶双艳3GP MP4下载" target="_blank">金瓶双艳</a></li> <li class="hover"><span>2</span><a href="/movie/7238" title="生化危机4:来生3GP MP4下载" target="_blank">生化危机4:来生</a></li> <li class="hover"><span>3</span><a href="/movie/7623" title="钻石狗3GP MP4下载" target="_blank">钻石狗</a></li> <li><span>4</span><a href="/movie/7634" title="世界大战3GP MP4下载" target="_blank">世界大战</a></li> <li><span>5</span><a href="/movie/7583" title="女教师日记3GP MP4下载" target="_blank">女教师日记</a></li> <li><span>6</span><a href="/movie/7676" title="子曰:食色性也3GP MP4下载" target="_blank">子曰:食色性也</a></li> <li><span>7</span><a href="/movie/7566" title="在床上3GP MP4下载" target="_blank">在床上</a></li> <li><span>8</span><a href="/movie/5727" title="2012末日预言3GP MP4下载" target="_blank">2012末日预言</a></li> <li><span>9</span><a href="/movie/7602" title="顶层公寓3GP MP4下载" target="_blank">顶层公寓</a></li> <li class="none"><span>10</span><a href="/movie/5335" title="海云台3GP MP4下载" target="_blank">海云台</a></li> </ul> </div> </div> <div class="banner980"><img src="{dede:global.cfg_templets_skin/}/images/ad/hengfu1.gif" width="980" height="60" /></div> </div> <div class="module"> <div class="movie"> <div class="movie_top"><span>其他地区电影</span><p><a href="#" title="日韩手机电影" target="_blank">更多>></a></p></div> <div class="movie_list"> {dede:arclist row="5" mydiqu="diqu='其他'" channelid="18" addfields="yuyan,pingfen"} <li class="d[field:global.autoindex/]"> <a href="[field:arcurl/]" target="_blank"> <img src="[field:litpic/]" alt="[field:title/] 3GP MP4高清下载" /> </a> <p>[field:yuyan/]</p> <b> <a href="[field:arcurl/]" target="_blank">[field:title/]</a> <script type="text/javascript" src="[field:global.cfg_plus_dir/]/pingfen.php?flag=getxx&aid=[field:id/]"> </script> <em> <script src="[field:global.cfg_plus_dir/]/pingfen.php?flag=getpf&aid=[field:id/]" type="text/javascript"> </script> 分</em> </b> </li> {/dede:arclist} </div> <div class="movie_flt"> <ul> <li><span><a href="#" target="_blank">动作片</a> |</span><a href="#" target="_blank">鱼狗</a><a href="#" target="_blank">卑鄙的我</a><a href="#" target="_blank">爱出色</a><a href="#" target="_blank">群魔乱舞</a><a href="#" target="_blank">我的野蛮男友</a></li> <li><span><a href="#" target="_blank">爱情片</a> |</span><a href="#" target="_blank">露西娅的情人</a><a href="#" target="_blank">珍珠港</a><a href="#" target="_blank">黑白战场</a><a href="#" target="_blank">小生怕怕</a></li> <li><span><a href="#" target="_blank">喜剧片</a> |</span><a href="#" target="_blank">爱我别走</a><a href="#" target="_blank">爱杀2000</a><a href="#" target="_blank">爱情敏感地带</a><a href="#" target="_blank">热血最强</a></li> <li><span><a href="#" target="_blank">恐怖片</a> |</span><a href="#" target="_blank">屠龙少年历险记</a><a href="#" target="_blank">四三二一</a><a href="#" target="_blank">电锯惊魂7</a><a href="#" target="_blank">铁男3:子弹人</a></li> <li><span><a href="#" target="_blank">历史片</a> |</span><a href="#" target="_blank">爱我别走</a><a href="#" target="_blank">爱杀2000</a><a href="#" target="_blank">爱情敏感地带</a><a href="#" target="_blank">热血最强</a></li> <li><span><a href="#" target="_blank">科幻片</a> |</span><a href="#" target="_blank">屠龙少年历险记</a><a href="#" target="_blank">四三二一</a><a href="#" target="_blank">电锯惊魂7</a><a href="#" target="_blank">铁男3:子弹人</a></li> </ul> </div> </div> <div class="paihang"> <div class="paihang_top">其他地区电影下载排行</div> <div class="paihang_u"> <ul class="block"> <li class="hover"><span>1</span><a href="/movie/7036" title="金瓶双艳3GP MP4下载" target="_blank">金瓶双艳</a></li> <li class="hover"><span>2</span><a href="/movie/7238" title="生化危机4:来生3GP MP4下载" target="_blank">生化危机4:来生</a></li> <li class="hover"><span>3</span><a href="/movie/7623" title="钻石狗3GP MP4下载" target="_blank">钻石狗</a></li> <li><span>4</span><a href="/movie/7634" title="世界大战3GP MP4下载" target="_blank">世界大战</a></li> <li><span>5</span><a href="/movie/7583" title="女教师日记3GP MP4下载" target="_blank">女教师日记</a></li> <li><span>6</span><a href="/movie/7676" title="子曰:食色性也3GP MP4下载" target="_blank">子曰:食色性也</a></li> <li><span>7</span><a href="/movie/7566" title="在床上3GP MP4下载" target="_blank">在床上</a></li> <li><span>8</span><a href="/movie/5727" title="2012末日预言3GP MP4下载" target="_blank">2012末日预言</a></li> <li><span>9</span><a href="/movie/7602" title="顶层公寓3GP MP4下载" target="_blank">顶层公寓</a></li> <li class="none"><span>10</span><a href="/movie/5335" title="海云台3GP MP4下载" target="_blank">海云台</a></li> </ul> </div> </div> </div> <div class="module"> <div class="movie"> <div class="movie_top"><span>评分最高</span><p><a href="#" title="精彩影评" target="_blank">更多>></a></p></div> <div class="pinglun"> <ul> <li class="pic"><a href="http://www.a67.com/movie/7448" target="_blank"><img alt="狄仁杰之通天帝国" src="http://img.a67.com/2010/10/128744929407f2.jpg" /></a></li> <li class="title"><a href="http://www.a67.com/movie/7448" target="_blank">狄仁杰之通天帝国</a></li> <li class="info"><img src="{dede:global.cfg_templets_skin/}/images/1.jpg" /> 9.8分</li> <li class="cont">在片中,刘德华饰演唐朝名相、超级侦探狄仁杰,刘嘉玲饰演武则天,武则天身边的大红人上官婉儿则由李冰冰出演。据悉,制片方十分欣赏武则天与狄仁杰的感情故事,因此故事将集中于感情戏,不会过分历史化。 </li> </ul> <ul> <li class="pic"><a href="http://www.a67.com/movie/7343" target="_blank"><img alt="剑雨" src="http://img.a67.com/2010/10/12860686900844.jpg" /></a></li> <li class="title"><a href="http://www.a67.com/movie/734" target="_blank">剑雨</a></li> <li class="info"><img src="{dede:global.cfg_templets_skin/}/images/1.jpg" /> 9.6分</li> <li class="cont">江湖相传,天竺高僧罗摩祖师的遗体中藏着武功秘笈,只要得到遗体,参透其中奥秘,即可练就绝世神功,称霸武林。令人闻风丧胆的暗杀组织「黑石」一直在追踪罗摩遗体。组织内...</li> </ul> <ul> <li class="pic"><a href="http://www.a67.com/movie/7876" target="_blank"><img alt="赵氏孤儿" src="http://img.a67.com/2010/11/12904790742019.jpg" /></a></li> <li class="title"><a href="http://www.a67.com/movie/7876" target="_blank">赵氏孤儿</a></li> <li class="info"><img src="{dede:global.cfg_templets_skin/}/images/1.jpg" /> 9.2分</li> <li class="cont">在陈凯歌版《赵氏孤儿》中,程婴并不是原来故事范本中赵盾的门客,而是一个平民草泽医生。在机缘巧合中卷入了赵氏的灭门事件,并用药箱将赵氏孤儿带出,免遭毒手。面对大奸臣屠岸贾的步步紧逼...</li> </ul> <ul> <li class="pic"><a href="http://www.a67.com/movie/8228" target="_blank"><img alt="大笑江湖" src="http://img.a67.com/2010/12/1291771950accc.jpg" /></a></li> <li class="title"><a href="http://www.a67.com/movie/8228" target="_blank">大笑江湖</a></li> <li class="info"><img src="{dede:global.cfg_templets_skin/}/images/1.jpg" /> 9.6分</li> <li class="cont">这是一部讲述独孤求败还没到求败境界之前的故事,事关他的成长以及他的爱情,有打有笑有爱情……</li> </ul> </div> </div> <div class="movie_zt"> <div class="movie_zt_top"><span>手机电影专题</span></div> </div> <div class="link_u"> <li><a href="#" target="_blank"><img alt="龙凤店" src="{dede:global.cfg_templets_skin/}/images/ad/i_1.gif" border="0" /></a></li> <li><a href="#" target="_blank"><img alt="叶问2" src="{dede:global.cfg_templets_skin/}/images/ad/i_2.gif" border="0" /></a></li> <li><a href="#" target="_blank"><img alt="无极" src="{dede:global.cfg_templets_skin/}/images/ad/i_3.gif" border="0" /></a></li> <li><a href="#" target="_blank"><img alt="龙凤店" src="{dede:global.cfg_templets_skin/}/images/ad/i_1.gif" border="0" /></a></li> <li><a href="#" target="_blank"><img alt="叶问2" src="{dede:global.cfg_templets_skin/}/images/ad/i_2.gif" border="0" /></a></li> <li><a href="#" target="_blank"><img alt="无极" src="{dede:global.cfg_templets_skin/}/images/ad/i_3.gif" border="0" /></a></li> </div> </div> </div> <div id="bottom"> <div class="bottom_so"> <div class="bottom_so_wrap"> <div class="bottom_searcher_tet"> <form action="http://so.a67.com/so" method="get" name="q" target="_blank" id="search" > <input type="text" name="q" class="bottom_focus" value="" /> <input type="image" name="s" class="bottom_searchbutton" id="button" src="{dede:global.cfg_templets_skin/}/images/botto_searcher.gif" align="absmiddle" /> </form> </div> <div class="bottom_keywords"> <a href="http://so.a67.com/so?q=%E5%91%A8%E6%98%9F%E9%A9%B0&t=movie" target="_blank">周星驰</a> <a href="http://so.a67.com/so?q=%E5%98%BB%E6%B8%B8%E8%AE%B0&t=movie" target="_blank">嘻游记</a> <a href="http://so.a67.com/so?q=%E5%94%90%E5%B1%B1%E5%A4%A7%E5%9C%B0%E9%9C%87&t=movie" target="_blank">唐山大地震</a> <a href="http://so.a67.com/so?q=%E6%95%A2%E6%AD%BB%E9%98%9F&t=movie" target="_blank">敢死队</a> | <a href="http://www.a67.com/zuixin/" target="_blank">最新电影</a> <a href="http://www.a67.com/paihang/" target="_blank">电影排行榜</a> </div> </div> </div> <div class="copyright"> <p>Copyright © 2010 <a href="http://www.a67.com/">A67.COM</a> <a href="http://www.a67.com/">遛机网</a> All Rights Reserved 鲁ICP备05010054号</p> <p>本站所有手机资源均为会员制作上传,本站仅提供存储空间,如侵犯到您的权益,请及时联系本站删除,本站不负任何法律责任!</p> </div> </div> </body> </html>
然后回到我们的plus目录下的pingfen.php文件:
<?php require_once(dirname(__FILE__)."/../include/common.inc.php"); //先接收一个flag值,判断用户是要评分才是取分 $flag = $_GET['flag']; if($flag=='pingfen'){ //接收id $aid = $_GET['aid']; //接收评分 $pingfen = $_GET['pingfen']; //修改下评分值 $sql = "update `#@__addonmovie` set pingfen=$pingfen where aid=$aid"; //测试看下sql语句是否正确 //file_put_contents("d:/mytest.log",$sql); if($dsql->ExecuteNoneQuery($sql)){ $sql = "select pingfen from `#@__addonmovie` where aid=$aid"; $row = $dsql->GetOne($sql); if(is_array($row)){ echo $row['pingfen']; } }else{ echo "评分失败"; } }else if($flag=='getpf'){ //接收aid $aid = $_GET['aid']; $sql = "select pingfen from `#@__addonmovie` where aid={$aid}"; $row = $dsql->GetOne($sql); if(is_array($row)){ echo "document.write('".$row['pingfen']."');\r\n"; } }else if($flag=='getxx'){ $aid = $_GET['aid']; $sql = "select pingfen from `#@__addonmovie` where aid={$aid}"; $row = $dsql->GetOne($sql); if(is_array($row)){ //先将他转成小数 $pingfen = floatval($row['pingfen']); //拼接串,一颗星星表示2分 $yellow_xx = ceil($pingfen/2); global $cfg_templets_skin; //声明一个全局变量,直接指向模版文件目录下的 $str = ""; //开始拼接黄星 ,, 这里一定要注意src 这里面不能有单引号 for($i=0;$i<$yellow_xx;$i++){ $str .= "<img src=".$cfg_templets_skin."/images/star.jpg />"; } //然后开始拼接灰星,因为一共是5颗星星,所以5-黄星得出灰星,, 这里一定要注意src 这里面不能有单引号 for($i=0;$i<5-$yellow_xx;$i++){ $str .= "<img src=".$cfg_templets_skin."/images/star_grid.jpg />"; } //测试一下看下str是否正确 //file_put_contents('d:/my.log',$str,FILE_APPEND); echo "document.write('".$str."');\r\n"; } }
然后在后台更新下栏目页的模版文件:
然后再来看看效果如何: