You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
4.6 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. <!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /><meta http-equiv="Cache-Control" content="no-siteapp" /><meta http-equiv="Cache-Control" content="no-transform" /><meta name="mobile-agent" content="format=xhtml;url=http://m.bnbni.com<?php echo GetCurUrl(); ?>">
  2. <title><?php echo $post['seotitle'];if($page!=0){echo ' '.($page+1);} ?></title><meta name="keywords" content="<?php echo $post["keywords"]; ?>" /><meta name="description" content="<?php echo $post["description"]; ?>" /><link rel="stylesheet" href="<?php echo sysconfig('CMS_BASEHOST'); ?>/images/style.css" media="all"><script type="text/javascript" src="<?php echo sysconfig('CMS_BASEHOST'); ?>/js/jquery.min.js"></script><script type="text/javascript" src="<?php echo sysconfig('CMS_BASEHOST'); ?>/js/ad.js"></script><script>uaredirect("http://m.bnbni.com/cat{dede:type}[field:ID /]{/dede:type}");</script></head><body><script>site();</script>
  3. @include('home.common.header')<div id="tad"><script>tjs();</script></div>
  4. <div class="box mt10"><div class="fl_640"><h1 class="arct"><?php echo $post["typename"]; ?></h1>
  5. <div class="content"><?php echo $post["content"]; ?></div><div id="lad1"><script>ljs1();</script></div></div><!-- fl_640 end -->
  6. <div class="fr_300"><div id="rad1"><script>rjs1();</script></div>
  7. <div class="side"><div class="stit"><h3>热门文章</h3><a href="javascript:getmore({PageSize:5,_token:'{{ csrf_token() }}',typeid:<?php echo $post['id']; ?>,tuijian:1,mode:1,orderby:'rand()'});" class="more">换一换</a><div class="cl"></div></div>
  8. <ul class="uli chs" id="xglist"><?php $posts=arclist(array("row"=>5,"typeid"=>$post['id'],"tuijian"=>1));if($posts){foreach($posts as $row){ ?><li><a target="_blank" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a></li><?php }} ?></ul><div class="cl"></div></div>
  9. <div id="rad3"><script>rjs3();</script></div>
  10. <div class="side"><div class="stit"><h3>猜你喜欢</h3><a href="javascript:getmore({PageSize:5,_token:'{{ csrf_token() }}',typeid:<?php echo $post['id']; ?>,mode:2,orderby:'rand()'});" class="more">换一换</a><div class="cl"></div></div>
  11. <div class="uli2" id="xglike"><?php $posts=arclist(array("row"=>5,"typeid"=>$post['id'],"orderby"=>'rand()'));if($posts){foreach($posts as $row){ ?><div class="suli"><?php if(!empty($row['litpic'])){ ?><a class="limg" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><img alt="<?php echo $row['title']; ?>" src="<?php echo $row['litpic']; ?>"></a><?php } ?><a target="_blank" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a><div class="sulii"><?php if(!empty($row['writer'])){echo '<span class="time">'.$row['writer'].'</span>';}elseif(!empty($row['source'])){echo '<span class="time">'.$row['source'].'</span>';} ?> 阅读(<?php echo $row['click']; ?>)</div><div class="cl"></div></div><?php }} ?><div class="cl"></div></div></div>
  12. <div id="rad2"><script>rjs2();</script></div></div><!-- fr_300 end --></div><!-- box end -->
  13. <script>
  14. function getmore(condition)
  15. {
  16. var url = "<?php echo sysconfig('CMS_BASEHOST'); ?>/api/listarc";
  17. //var typeid = "";
  18. $.post(url,condition,function(res){
  19. if(res.code==0)
  20. {
  21. var json = res.data; //数组
  22. var str = '';
  23. $.each(json, function (index) {
  24. //循环获取数据
  25. //var title = json[index].title;
  26. if(condition.mode==1)
  27. {
  28. str = str + '<li><a target="_blank" href="'+json[index].url+'">'+json[index].title+'</a></li>';
  29. }
  30. else if(condition.mode==2)
  31. {
  32. var litpic = '';if(json[index].litpic!==''){litpic = '<a class="limg" href="'+json[index].url+'"><img alt="'+json[index].title+'" src="'+json[index].litpic+'"></a>';}
  33. str = str + '<div class="suli">'+litpic+'<a target="_blank" href="'+json[index].url+'">'+json[index].title+'</a><div class="sulii">阅读('+json[index].click+')</div><div class="cl"></div></div>';
  34. }
  35. });
  36. if(str!='' && str!=null && condition.mode==1)
  37. {
  38. $('#xglist').html(str);
  39. }
  40. else if(str!='' && str!=null && condition.mode==2)
  41. {
  42. $('#xglike').html(str);
  43. }
  44. }
  45. else
  46. {
  47. }
  48. },'json');
  49. }
  50. </script>
  51. @include('home.common.footer')</body></html>