1. <legend id='514sls15'><style id='0e4wbno9'><dir id='a956al6l'><q id='y2pifonf'></q></dir></style></legend>

    <i id='dds9l8ww'><tr id='oyk06cm4'><dt id='fm43yinx'><q id='s6t2ccx3'><span id='11gxuzlk'><b id='hf1preky'><form id='2mwqvorw'><ins id='dldd8cko'></ins><ul id='q7xcbx0w'></ul><sub id='5th7pvrf'></sub></form><legend id='qdnrs4hk'></legend><bdo id='muisko0p'><pre id='tncq0po6'><center id='ck3k7mne'></center></pre></bdo></b><th id='0azxoyd6'></th></span></q></dt></tr></i><div id='u3igitsa'><tfoot id='s7kqpl1d'></tfoot><dl id='uw3jszin'><fieldset id='mtamh9kp'></fieldset></dl></div>
  2. <tfoot id='yrbrpdrm'></tfoot>

        <bdo id='1ulori5i'></bdo><ul id='n2z8ekij'></ul>

      <small id='jy8n08un'></small><noframes id='m05ii5dh'>

      精准传达 • 价值共享

      洞悉互联网前沿资讯,探寻网站营销规律

      织梦dedcms手机版上一篇下一篇链接跳转到电脑解

      作者: 庚午网络 | 2020-10-20 16:54 |点击:

      网站开发 网站建设 SEO 网站设计 网站首页 新网站 专业网站

      • <bdo id='3miavic8'></bdo><ul id='jhvszip1'></ul>

              <tfoot id='jjixp2c7'></tfoot>
              <i id='jusmgiv8'><tr id='s87fw0d8'><dt id='f2xhlygs'><q id='fbanauz1'><span id='9mh23own'><b id='enqo0swi'><form id='we57j1y3'><ins id='4lvt5xaa'></ins><ul id='zp83yss7'></ul><sub id='8v1z7elw'></sub></form><legend id='zkojd92y'></legend><bdo id='485hoqib'><pre id='k8k3uifj'><center id='6hn4yesm'></center></pre></bdo></b><th id='moxz1cv3'></th></span></q></dt></tr></i><div id='7g1663lj'><tfoot id='sqjp5uf7'></tfoot><dl id='8d53w7bz'><fieldset id='aaukkmi1'></fieldset></dl></div>
                <tbody id='kww2qe0j'></tbody>

                <legend id='5i8vx7tc'><style id='av93m5ys'><dir id='yudezt6l'><q id='gj542nde'></q></dir></style></legend>
              • <small id='r52xzgpb'></small><noframes id='ryfd5x41'>

              • 修改织梦include/arc.archives.class.php文件。

                织梦dedcms手机版上一篇下一篇链接跳转到电脑解决方案


                1、搜索
                 
                function GetPreNext($gtype='')

                2、将这个函数的所有内容替换为




                 
                1. function GetPreNext($gtype='')
                      {
                          $rs = '';
                          if(count($this->PreNext)<2)
                          {
                              $aid = $this->ArcID;
                              $preR =  $this->dsql->GetOne("Select id From `dede_arctiny` where id<$aid And arcrank>-1 And typeid='{$this->Fields['typeid']}' order by id desc");
                              $nextR = $this->dsql->GetOne("Select id From `dede_arctiny` where id>$aid And arcrank>-1 And typeid='{$this->Fields['typeid']}' order by id asc");
                              $next = (is_array($nextR) ? " where arc.id={$nextR['id']} " : ' where 1>2 ');
                              $pre = (is_array($preR) ? " where arc.id={$preR['id']} " : ' where 1>2 ');
                              $query = "Select arc.id,arc.title,arc.shorttitle,arc.typeid,arc.ismake,arc.senddate,arc.arcrank,arc.money,arc.filename,arc.litpic,
                                          t.typedir,t.typename,t.namerule,t.namerule2,t.ispart,t.moresite,t.siteurl,t.sitepath
                                          from `dede_archives` arc left join dede_arctype t on arc.typeid=t.id  ";
                              $nextRow = $this->dsql->GetOne($query.$next);
                              $preRow = $this->dsql->GetOne($query.$pre);
                              if(is_array($preRow))
                              {
                                  $mlink = GetFileUrl($preRow['id'],$preRow['typeid'],$preRow['senddate'],$preRow['title'],$preRow['ismake'],$preRow['arcrank'],
                                  $preRow['namerule'],$preRow['typedir'],$preRow['money'],$preRow['filename'],$preRow['moresite'],$preRow['siteurl'],$preRow['sitepath']);
                                  $mobile_mlink = "/m/view.php?aid=".$preRow['id'];
                                  $this->PreNext['pre'] = "上一篇:<a href='$mlink'>{$preRow['title']}</a> ";
                                  $this->PreNext['mobile_pre'] = "上一篇:<a href='$mobile_mlink'>{$preRow['title']}</a> ";
                                  $this->PreNext['preimg'] = "<a href='$mlink'><img src=\"{$preRow['litpic']}\" alt=\"{$preRow['title']}\"/></a> "; 
                              }
                              else
                              {
                                  $this->PreNext['pre'] = "上一篇:没有了 ";
                                  $this->PreNext['mobile_pre'] = "上一篇:没有了 ";
                                  $this->PreNext['preimg'] ="<img src=\"/templets/default/images/nophoto.jpg\" alt=\"对不起,没有上一图集了!\"/>";
                              }
                              if(is_array($nextRow))
                              {
                                  $mlink = GetFileUrl($nextRow['id'],$nextRow['typeid'],$nextRow['senddate'],$nextRow['title'],$nextRow['ismake'],$nextRow['arcrank'],
                                  $nextRow['namerule'],$nextRow['typedir'],$nextRow['money'],$nextRow['filename'],$nextRow['moresite'],$nextRow['siteurl'],$nextRow['sitepath']);                
                                  $mobile_mlink = "/m/view.php?aid=".$nextRow['id'];
                                  $this->PreNext['next'] = "下一篇:<a href='$mlink'>{$nextRow['title']}</a> ";
                                  $this->PreNext['mobile_next'] = "下一篇:<a href='$mobile_mlink'>{$nextRow['title']}</a> ";
                                  $this->PreNext['nextimg'] = "<a href='$mlink'><img src=\"{$nextRow['litpic']}\" alt=\"{$nextRow['title']}\"/></a> ";
                              }
                              else
                              {
                                  $this->PreNext['next'] = "下一篇:没有了 ";
                                  $this->PreNext['mobile_next'] = "下一篇:没有了 ";
                                  $this->PreNext['nextimg'] ="<a href='javascript:void(0)' alt=\"\"><img src=\"/templets/default/images/nophoto.jpg\" alt=\"对不起,没有下一图集了!\"/></a>";
                              }
                          }
                          if($gtype=='pre')
                          {
                              $rs =  $this->PreNext['pre'];
                          }
                          else if($gtype=='preimg'){
                              $rs =  $this->PreNext['preimg'];
                          }        
                          else if($gtype=='mobile_pre'){
                              $rs =  $this->PreNext['mobile_pre'];
                          }
                          else if($gtype=='next')
                          {
                              $rs =  $this->PreNext['next'];
                          }        
                          else if($gtype=='mobile_next')
                          {
                              $rs =  $this->PreNext['mobile_next'];
                          }
                          else if($gtype=='nextimg'){
                              $rs =  $this->PreNext['nextimg'];
                          }
                          else
                          {
                              $rs =  $this->PreNext['pre']." &nbsp; ".$this->PreNext['next'];
                          }
                          return $rs;
                      }
                   
                 


                3、在织梦手机网站内容详情页模板内,将调用上一篇、下一篇标签插入。

                上一篇:{dede:prenext get='mobile_pre'/}

                下一篇:{dede:prenext get='mobile_next'/}

                 

                二度创作,如有侵权请联系删除。如没特殊注明,文章均为庚午网络原创,转载请注明https://www.hngengwu.com/wangzhanjianshezhishi/207.html

                <small id='1wvstwus'></small><noframes id='34u28yq0'>

              • <i id='ijdvvd00'><tr id='dc42mj71'><dt id='urydt55n'><q id='jyw6lq62'><span id='ctxajv8i'><b id='grns9etl'><form id='k645gz9w'><ins id='oaolz1q6'></ins><ul id='vvh6pxzt'></ul><sub id='0ikbyeh6'></sub></form><legend id='eumrqidc'></legend><bdo id='9xlvg4kd'><pre id='gly15hxo'><center id='v3i3fk4u'></center></pre></bdo></b><th id='jk63oo4n'></th></span></q></dt></tr></i><div id='op70456m'><tfoot id='3g6pxd4y'></tfoot><dl id='6iexsv4y'><fieldset id='uakjhzs8'></fieldset></dl></div>
                  <bdo id='46zwiydv'></bdo><ul id='cg2qfnf8'></ul>

                1. <legend id='czxodr38'><style id='9zgc0vfo'><dir id='x9tb3ffe'><q id='ys4vd5me'></q></dir></style></legend>

                    <tfoot id='z9dobdkd'></tfoot>
                    多一份策划方案,总有益处。

                    请直接添加技术总监微信联系咨询

                    网站设计 品牌营销

                    多一份参考,总有益处

                    联系庚午网络,获得专属《策划方案》及报价

                    咨询相关问题或预约面谈,可以通过以下方式与我们联系

                    业务热线:18574395938 / 大客户专线:18574395938