| @@ -40,7 +40,7 @@ function GetNextUrl($notallowArr = array('dopost', 'f', 'del')) | |||||
| } | } | ||||
| return $reurl; | return $reurl; | ||||
| } | } | ||||
| //更新上一篇和下一篇 | |||||
| //更新上篇和下篇 | |||||
| if ($dopost == 'makeprenext') { | if ($dopost == 'makeprenext') { | ||||
| require_once(DEDEINC.'/archive/archives.class.php'); | require_once(DEDEINC.'/archive/archives.class.php'); | ||||
| $aid = intval($aid); | $aid = intval($aid); | ||||
| @@ -75,12 +75,12 @@ if ($dopost == 'makeindex') { | |||||
| $templet = str_replace("{style}", $cfg_df_style, $row['templet']); | $templet = str_replace("{style}", $cfg_df_style, $row['templet']); | ||||
| $homeFile = dirname(__FILE__).'/'.$row['position']; | $homeFile = dirname(__FILE__).'/'.$row['position']; | ||||
| $homeFile = str_replace("//", "/", str_replace("\\", "/", $homeFile)); | $homeFile = str_replace("//", "/", str_replace("\\", "/", $homeFile)); | ||||
| $fp = fopen($homeFile, 'w') or die("无法更新网站首页到:$homeFile 位置"); | |||||
| $fp = fopen($homeFile, 'w') or die("无法更新网站首页到:".$homeFile."位置"); | |||||
| fclose($fp); | fclose($fp); | ||||
| $tpl = $cfg_basedir.$cfg_templets_dir.'/'.$templet; | $tpl = $cfg_basedir.$cfg_templets_dir.'/'.$templet; | ||||
| if (!file_exists($tpl)) { | if (!file_exists($tpl)) { | ||||
| $tpl = $cfg_basedir.$cfg_templets_dir.'/dedebiz/index.htm'; | $tpl = $cfg_basedir.$cfg_templets_dir.'/dedebiz/index.htm'; | ||||
| if (!file_exists($tpl)) exit("无法找到首页模板:$tpl "); | |||||
| if (!file_exists($tpl)) exit("无法找到首页模板:$tpl"); | |||||
| } | } | ||||
| $GLOBALS['_arclistEnv'] = 'index'; | $GLOBALS['_arclistEnv'] = 'index'; | ||||
| $pv->SetTemplet($tpl); | $pv->SetTemplet($tpl); | ||||
| @@ -109,9 +109,7 @@ input[type=radio],input[type=checkbox],input[type=radio]:focus,input[type=checkb | |||||
| #validateimg,.btn-send{border-radius:0 0.5rem 0.5rem 0!important} | #validateimg,.btn-send{border-radius:0 0.5rem 0.5rem 0!important} | ||||
| #returntop{display:none;position:fixed;padding:10px 15px;right:1rem;bottom:1rem;color:var(--white);cursor:pointer;background:var(--orange);border-radius:0.5rem;border:0;z-index:9998} | #returntop{display:none;position:fixed;padding:10px 15px;right:1rem;bottom:1rem;color:var(--white);cursor:pointer;background:var(--orange);border-radius:0.5rem;border:0;z-index:9998} | ||||
| #returntop:hover{background:var(--orange)} | #returntop:hover{background:var(--orange)} | ||||
| @media (max-width:768px){.m-pb-1{padding-bottom:1rem} | |||||
| .m-pb-2{padding-bottom:2rem} | |||||
| .login-from{width:100%} | |||||
| @media (max-width:768px){.login-from{width:100%} | |||||
| .bannr-img,.item-theme-img img,.list-article-img img{height:250px} | .bannr-img,.item-theme-img img,.list-article-img img{height:250px} | ||||
| .item-news-img img{height:210px} | .item-news-img img{height:210px} | ||||
| .feedbacks .feedback-action{float:none} | .feedbacks .feedback-action{float:none} | ||||
| @@ -58,7 +58,7 @@ class Archives | |||||
| $this->TypeLink = new TypeLink($arr['typeid']); | $this->TypeLink = new TypeLink($arr['typeid']); | ||||
| if ($this->ChannelUnit->ChannelInfos['issystem'] != -1) { | if ($this->ChannelUnit->ChannelInfos['issystem'] != -1) { | ||||
| //如果当前文档不是系统模型,为自定义模型 | //如果当前文档不是系统模型,为自定义模型 | ||||
| $query = "SELECT arc.*,tp.reid,tp.typedir,ch.addtable,mb.uname,mb.face,mb.userid FROM `#@__archives` arc LEFT JOIN `#@__arctype` tp on tp.id=arc.typeid LEFT JOIN `#@__channeltype` as ch on arc.channel = ch.id LEFT JOIN `#@__member` mb on arc.mid = mb.mid WHERE arc.id='$aid' "; | |||||
| $query = "SELECT arc.*,tp.reid,tp.typedir,ch.addtable,mb.uname,mb.face,mb.userid,mb.sex FROM `#@__archives` arc LEFT JOIN `#@__arctype` tp on tp.id=arc.typeid LEFT JOIN `#@__channeltype` as ch on arc.channel = ch.id LEFT JOIN `#@__member` mb on arc.mid = mb.mid WHERE arc.id='$aid' "; | |||||
| $this->Fields = $this->dsql->GetOne($query); | $this->Fields = $this->dsql->GetOne($query); | ||||
| } else { | } else { | ||||
| $this->Fields['title'] = ''; | $this->Fields['title'] = ''; | ||||
| @@ -98,7 +98,7 @@ class Archives | |||||
| //为了减少重复查询,这里直接把附加表查询记录放在$this->addTableRow中,在ParAddTable()不再查询 | //为了减少重复查询,这里直接把附加表查询记录放在$this->addTableRow中,在ParAddTable()不再查询 | ||||
| if ($this->ChannelUnit->ChannelInfos['addtable'] != '') { | if ($this->ChannelUnit->ChannelInfos['addtable'] != '') { | ||||
| if ($this->ChannelUnit->ChannelID < -1) { | if ($this->ChannelUnit->ChannelID < -1) { | ||||
| $query = "SELECT tb.*,mb.uname,mb.face,mb.userid FROM `{$this->ChannelUnit->ChannelInfos['addtable']}` tb LEFT JOIN `#@__member` mb on tb.mid = mb.mid WHERE tb.`aid` = '$aid'"; | |||||
| $query = "SELECT tb.*,mb.uname,mb.face,mb.userid,mb.sex FROM `{$this->ChannelUnit->ChannelInfos['addtable']}` tb LEFT JOIN `#@__member` mb on tb.mid = mb.mid WHERE tb.`aid` = '$aid'"; | |||||
| } else { | } else { | ||||
| $query = "SELECT * FROM `{$this->ChannelUnit->ChannelInfos['addtable']}` WHERE `aid` = '$aid'"; | $query = "SELECT * FROM `{$this->ChannelUnit->ChannelInfos['addtable']}` WHERE `aid` = '$aid'"; | ||||
| } | } | ||||
| @@ -198,7 +198,7 @@ class Archives | |||||
| $this->Fields['imgurls'] = preg_replace("@ [\s]{0,}alt[\s]{0,}=[\"'\s]{0,}[\s\S]{0,}[\"'\s] @isU","",$this->Fields['imgurls']); | $this->Fields['imgurls'] = preg_replace("@ [\s]{0,}alt[\s]{0,}=[\"'\s]{0,}[\s\S]{0,}[\"'\s] @isU","",$this->Fields['imgurls']); | ||||
| $this->Fields['imgurls'] = str_ireplace("<img","<img alt=\"".$this->Fields['title']."\" title=\"".$this->Fields['title']."\"",$this->Fields['imgurls']); | $this->Fields['imgurls'] = str_ireplace("<img","<img alt=\"".$this->Fields['title']."\" title=\"".$this->Fields['title']."\"",$this->Fields['imgurls']); | ||||
| } | } | ||||
| //移除文档模型正文图片宽度和高度,适配自适应/响应式网站 | |||||
| //移除文档模型正文图片宽度和高度,适配响应式网站 | |||||
| $this->Fields['body'] = preg_replace("/style=\"width\:(.*)\"/","",$this->Fields['body']); | $this->Fields['body'] = preg_replace("/style=\"width\:(.*)\"/","",$this->Fields['body']); | ||||
| } | } | ||||
| //完成附加表信息读取 | //完成附加表信息读取 | ||||
| @@ -586,7 +586,7 @@ class Archives | |||||
| } else if ($ctag->GetName() == 'prenext') { | } else if ($ctag->GetName() == 'prenext') { | ||||
| $this->dtp->Assign($i, $this->GetPreNext($ctag->GetAtt('get'))); | $this->dtp->Assign($i, $this->GetPreNext($ctag->GetAtt('get'))); | ||||
| } | } | ||||
| //添加上一篇下一篇标签{dede:prenextdiy get='pre'}{/dede:prenextdiy}{dede:prenextdiy get='next'}{/dede:prenextdiy} | |||||
| //添加上篇下篇标签{dede:prenextdiy get='pre'}{/dede:prenextdiy}{dede:prenextdiy get='next'}{/dede:prenextdiy} | |||||
| else if ($ctag->GetName()=='prenextdiy') | else if ($ctag->GetName()=='prenextdiy') | ||||
| { | { | ||||
| $innertext = trim($ctag->GetInnerText()); | $innertext = trim($ctag->GetInnerText()); | ||||
| @@ -659,10 +659,10 @@ class Archives | |||||
| $this->Fields = ''; | $this->Fields = ''; | ||||
| } | } | ||||
| /** | /** | ||||
| * 获取上一篇和下一篇链接 | |||||
| * 获取上篇和下篇链接 | |||||
| * | * | ||||
| * @access public | * @access public | ||||
| * @param string $gtype pre为上一篇,preimg为上一篇图片,next为下一篇,nextimg为下一篇图片 | |||||
| * @param string $gtype pre为上篇,preimg为上篇图片,next为下篇,nextimg为下篇图片 | |||||
| * @return string | * @return string | ||||
| */ | */ | ||||
| function GetPreNext($gtype = '') | function GetPreNext($gtype = '') | ||||
| @@ -699,10 +699,10 @@ class Archives | |||||
| $this->PreNext['diy']['pre']['title'] = $preRow['title']; | $this->PreNext['diy']['pre']['title'] = $preRow['title']; | ||||
| $this->PreNext['diy']['pre']['litpic'] = $preRow['litpic']; | $this->PreNext['diy']['pre']['litpic'] = $preRow['litpic']; | ||||
| $this->PreNext['diy']['pre']['pubdate'] = $preRow['senddate']; | $this->PreNext['diy']['pre']['pubdate'] = $preRow['senddate']; | ||||
| $this->PreNext['pre'] = "上一篇:<a href='$mlink'>{$preRow['title']}</a>"; | |||||
| $this->PreNext['pre'] = "上篇:<a href='$mlink'>{$preRow['title']}</a>"; | |||||
| $this->PreNext['preimg'] = "<a href='$mlink'><img src=\"{$preRow['litpic']}\" alt=\"{$preRow['title']}\" title=\"{$preRow['title']}\"></a> "; | $this->PreNext['preimg'] = "<a href='$mlink'><img src=\"{$preRow['litpic']}\" alt=\"{$preRow['title']}\" title=\"{$preRow['title']}\"></a> "; | ||||
| } else { | } else { | ||||
| $this->PreNext['pre'] = "上一篇:暂无"; | |||||
| $this->PreNext['pre'] = "上篇:暂无"; | |||||
| $this->PreNext['preimg'] = ''; | $this->PreNext['preimg'] = ''; | ||||
| } | } | ||||
| if (is_array($nextRow)) { | if (is_array($nextRow)) { | ||||
| @@ -727,10 +727,10 @@ class Archives | |||||
| $this->PreNext['diy']['next']['title'] = $nextRow['title']; | $this->PreNext['diy']['next']['title'] = $nextRow['title']; | ||||
| $this->PreNext['diy']['next']['litpic'] = $nextRow['litpic']; | $this->PreNext['diy']['next']['litpic'] = $nextRow['litpic']; | ||||
| $this->PreNext['diy']['next']['pubdate'] = $nextRow['senddate']; | $this->PreNext['diy']['next']['pubdate'] = $nextRow['senddate']; | ||||
| $this->PreNext['next'] = "下一篇:<a href='$mlink'>{$nextRow['title']}</a> "; | |||||
| $this->PreNext['next'] = "下篇:<a href='$mlink'>{$nextRow['title']}</a> "; | |||||
| $this->PreNext['nextimg'] = "<a href='$mlink'><img src=\"{$nextRow['litpic']}\" alt=\"{$nextRow['title']}\" title=\"{$nextRow['title']}\"></a> "; | $this->PreNext['nextimg'] = "<a href='$mlink'><img src=\"{$nextRow['litpic']}\" alt=\"{$nextRow['title']}\" title=\"{$nextRow['title']}\"></a> "; | ||||
| } else { | } else { | ||||
| $this->PreNext['next'] = "下一篇:暂无"; | |||||
| $this->PreNext['next'] = "下篇:暂无"; | |||||
| $this->PreNext['nextimg'] = ''; | $this->PreNext['nextimg'] = ''; | ||||
| } | } | ||||
| } | } | ||||
| @@ -816,12 +816,12 @@ class Archives | |||||
| $nPage = $nowPage - 1; | $nPage = $nowPage - 1; | ||||
| $lPage = $nowPage + 1; | $lPage = $nowPage + 1; | ||||
| if ($nowPage == 1) { | if ($nowPage == 1) { | ||||
| $PageList .= "<li class='page-item disabled'><span class='page-link'>上一页</span></li>"; | |||||
| $PageList .= "<li class='page-item disabled'><span class='page-link'>上页</span></li>"; | |||||
| } else { | } else { | ||||
| if ($nPage == 1) { | if ($nPage == 1) { | ||||
| $PageList .= "<li class='page-item'><a class='page-link' href='".$this->NameFirst.".".$this->ShortName."'>上一页</a></li>"; | |||||
| $PageList .= "<li class='page-item'><a class='page-link' href='".$this->NameFirst.".".$this->ShortName."'>上页</a></li>"; | |||||
| } else { | } else { | ||||
| $PageList .= "<li class='page-item'><a class='page-link' href='".$this->NameFirst."-".$nPage.".".$this->ShortName."'>上一页</a></li>"; | |||||
| $PageList .= "<li class='page-item'><a class='page-link' href='".$this->NameFirst."-".$nPage.".".$this->ShortName."'>上页</a></li>"; | |||||
| } | } | ||||
| } | } | ||||
| for ($i = 1; $i <= $totalPage; $i++) { | for ($i = 1; $i <= $totalPage; $i++) { | ||||
| @@ -841,9 +841,9 @@ class Archives | |||||
| } | } | ||||
| } | } | ||||
| if ($lPage <= $totalPage) { | if ($lPage <= $totalPage) { | ||||
| $PageList .= "<li class='page-item'><a class='page-link' href='".$this->NameFirst."-".$lPage.".".$this->ShortName."'>下一页</a></li>"; | |||||
| $PageList .= "<li class='page-item'><a class='page-link' href='".$this->NameFirst."-".$lPage.".".$this->ShortName."'>下页</a></li>"; | |||||
| } else { | } else { | ||||
| $PageList .= "<li class='page-item'><span class='page-link'>下一页</span></li>"; | |||||
| $PageList .= "<li class='page-item'><span class='page-link'>下页</span></li>"; | |||||
| } | } | ||||
| return $PageList; | return $PageList; | ||||
| } | } | ||||
| @@ -938,19 +938,19 @@ class Archives | |||||
| $nPage = $nowPage - 1; | $nPage = $nowPage - 1; | ||||
| $lPage = $nowPage + 1; | $lPage = $nowPage + 1; | ||||
| if ($nowPage == 1) { | if ($nowPage == 1) { | ||||
| $PageList .= "<li class='page-item disabled'><span class='page-link'>上一页</span></li>"; | |||||
| $PageList .= "<li class='page-item disabled'><span class='page-link'>上页</span></li>"; | |||||
| } else { | } else { | ||||
| if ($nPage == 1) { | if ($nPage == 1) { | ||||
| if ($cfg_rewrite == 'Y') { | if ($cfg_rewrite == 'Y') { | ||||
| $PageList .= "<li class='page-item'><a class='page-link' href='".$cfg_cmsurl."/doc-$aid.html'>上一页</a></li>"; | |||||
| $PageList .= "<li class='page-item'><a class='page-link' href='".$cfg_cmsurl."/doc-$aid.html'>上页</a></li>"; | |||||
| } else { | } else { | ||||
| $PageList .= "<li class='page-item'><a class='page-link' href='".$this->Fields['phpurl']."/view.php?aid=$aid'>上一页</a></li>"; | |||||
| $PageList .= "<li class='page-item'><a class='page-link' href='".$this->Fields['phpurl']."/view.php?aid=$aid'>上页</a></li>"; | |||||
| } | } | ||||
| } else { | } else { | ||||
| if ($cfg_rewrite == 'Y') { | if ($cfg_rewrite == 'Y') { | ||||
| $PageList .= "<li class='page-item'><a class='page-link' href='".$cfg_cmsurl."/doc-$aid-$nPage.html'>上一页</a></li>"; | |||||
| $PageList .= "<li class='page-item'><a class='page-link' href='".$cfg_cmsurl."/doc-$aid-$nPage.html'>上页</a></li>"; | |||||
| } else { | } else { | ||||
| $PageList .= "<li class='page-item'><a class='page-link' href='".$this->Fields['phpurl']."/view.php?aid=$aid&pageno=$nPage'>上一页</a></li>"; | |||||
| $PageList .= "<li class='page-item'><a class='page-link' href='".$this->Fields['phpurl']."/view.php?aid=$aid&pageno=$nPage'>上页</a></li>"; | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| @@ -980,12 +980,12 @@ class Archives | |||||
| } | } | ||||
| if ($lPage <= $totalPage) { | if ($lPage <= $totalPage) { | ||||
| if ($cfg_rewrite == 'Y') { | if ($cfg_rewrite == 'Y') { | ||||
| $PageList .= "<li class='page-item'><a class='page-link' href='".$cfg_cmsurl."/doc-$aid-$lPage.html'>下一页</a></li>"; | |||||
| $PageList .= "<li class='page-item'><a class='page-link' href='".$cfg_cmsurl."/doc-$aid-$lPage.html'>下页</a></li>"; | |||||
| } else { | } else { | ||||
| $PageList .= "<li class='page-item'><a class='page-link' href='".$this->Fields['phpurl']."/view.php?aid=$aid&pageno=$lPage'>下一页</a></li>"; | |||||
| $PageList .= "<li class='page-item'><a class='page-link' href='".$this->Fields['phpurl']."/view.php?aid=$aid&pageno=$lPage'>下页</a></li>"; | |||||
| } | } | ||||
| } else { | } else { | ||||
| $PageList .= "<li class='page-item'><span class='page-link'>下一页</span></li>"; | |||||
| $PageList .= "<li class='page-item'><span class='page-link'>下页</span></li>"; | |||||
| } | } | ||||
| return $PageList; | return $PageList; | ||||
| } | } | ||||
| @@ -644,16 +644,16 @@ class FreeList | |||||
| $purl = $this->GetCurUrl(); | $purl = $this->GetCurUrl(); | ||||
| $tnamerule = $this->GetMakeFileRule(); | $tnamerule = $this->GetMakeFileRule(); | ||||
| $tnamerule = preg_replace("#^(.*)\/#", '', $tnamerule); | $tnamerule = preg_replace("#^(.*)\/#", '', $tnamerule); | ||||
| //获得上一页和首页的链接 | |||||
| //获得上页和首页的链接 | |||||
| if ($this->PageNo != 1) { | if ($this->PageNo != 1) { | ||||
| $prepage .= "<li class='page-item'><a class='page-link' href='".str_replace("{page}", $prepagenum, $tnamerule)."'>上一页</a></li>\r\n"; | |||||
| $prepage .= "<li class='page-item'><a class='page-link' href='".str_replace("{page}", $prepagenum, $tnamerule)."'>上页</a></li>\r\n"; | |||||
| $indexpage = "<li class='page-item'><a class='page-link' href='".str_replace("{page}", 1, $tnamerule)."'>首页</a></li>\r\n"; | $indexpage = "<li class='page-item'><a class='page-link' href='".str_replace("{page}", 1, $tnamerule)."'>首页</a></li>\r\n"; | ||||
| } else { | } else { | ||||
| $indexpage = "<li class='page-item'><span class='page-link'>首页</span></li>\r\n"; | $indexpage = "<li class='page-item'><span class='page-link'>首页</span></li>\r\n"; | ||||
| } | } | ||||
| //下一页和未页的链接 | |||||
| //下页和未页的链接 | |||||
| if ($this->PageNo != $totalpage && $totalpage > 1) { | if ($this->PageNo != $totalpage && $totalpage > 1) { | ||||
| $nextpage .= "<li class='page-item'><a class='page-link' href='".str_replace("{page}", $nextpagenum, $tnamerule)."'>下一页</a></li>\r\n"; | |||||
| $nextpage .= "<li class='page-item'><a class='page-link' href='".str_replace("{page}", $nextpagenum, $tnamerule)."'>下页</a></li>\r\n"; | |||||
| $endpage = "<li class='page-item'><a class='page-link' href='".str_replace("{page}", $totalpage, $tnamerule)."'>末页</a></li>\r\n"; | $endpage = "<li class='page-item'><a class='page-link' href='".str_replace("{page}", $totalpage, $tnamerule)."'>末页</a></li>\r\n"; | ||||
| } else { | } else { | ||||
| $endpage = "<li class='page-item'><span class='page-link'>末页</span></li>\r\n"; | $endpage = "<li class='page-item'><span class='page-link'>末页</span></li>\r\n"; | ||||
| @@ -748,15 +748,15 @@ class FreeList | |||||
| $hidenform = "<input type='hidden' name='lid' value='".$this->FreeID."' />\r\n"; | $hidenform = "<input type='hidden' name='lid' value='".$this->FreeID."' />\r\n"; | ||||
| $hidenform .= "<input type='hidden' name='TotalResult' value='".$this->TotalResult."' />\r\n"; | $hidenform .= "<input type='hidden' name='TotalResult' value='".$this->TotalResult."' />\r\n"; | ||||
| $purl .= "?".$geturl; | $purl .= "?".$geturl; | ||||
| //获得上一页和下一页的链接 | |||||
| //获得上页和下页的链接 | |||||
| if ($this->PageNo != 1) { | if ($this->PageNo != 1) { | ||||
| $prepage .= "<li class='page-item'><a class='page-link' href='".$purl."PageNo=$prepagenum'>上一页</a></li>\r\n"; | |||||
| $prepage .= "<li class='page-item'><a class='page-link' href='".$purl."PageNo=$prepagenum'>上页</a></li>\r\n"; | |||||
| $indexpage = "<li class='page-item'><a class='page-link' href='".$purl."PageNo=1'>首页</a>\r\n"; | $indexpage = "<li class='page-item'><a class='page-link' href='".$purl."PageNo=1'>首页</a>\r\n"; | ||||
| } else { | } else { | ||||
| $indexpage = "<li class='page-item'><span class='page-link'>首页</span></li>\r\n"; | $indexpage = "<li class='page-item'><span class='page-link'>首页</span></li>\r\n"; | ||||
| } | } | ||||
| if ($this->PageNo != $totalpage && $totalpage > 1) { | if ($this->PageNo != $totalpage && $totalpage > 1) { | ||||
| $nextpage .= "<li class='page-item'><a class='page-link' href='".$purl."PageNo=$nextpagenum'>下一页</a></li>\r\n"; | |||||
| $nextpage .= "<li class='page-item'><a class='page-link' href='".$purl."PageNo=$nextpagenum'>下页</a></li>\r\n"; | |||||
| $endpage = "<li class='page-item'><a class='page-link' href='".$purl."PageNo=$totalpage'>末页</a></li>\r\n"; | $endpage = "<li class='page-item'><a class='page-link' href='".$purl."PageNo=$totalpage'>末页</a></li>\r\n"; | ||||
| } else { | } else { | ||||
| $endpage = "<li class='page-item'><span class='page-link'>末页</span></li>\r\n"; | $endpage = "<li class='page-item'><span class='page-link'>末页</span></li>\r\n"; | ||||
| @@ -40,7 +40,7 @@ class ListView | |||||
| * | * | ||||
| * @access public | * @access public | ||||
| * @param int $typeid 栏目id | * @param int $typeid 栏目id | ||||
| * @param int $uppage 上一页 | |||||
| * @param int $uppage 上页 | |||||
| * @param int $mod 渲染类型 0:HTML 1:JSON | * @param int $mod 渲染类型 0:HTML 1:JSON | ||||
| * @return string | * @return string | ||||
| */ | */ | ||||
| @@ -1032,16 +1032,16 @@ class ListView | |||||
| $maininfo = "<li class='page-item disabled'><span class='page-link'>{$totalpage}页".$this->TotalResult."条</span></li>\r\n"; | $maininfo = "<li class='page-item disabled'><span class='page-link'>{$totalpage}页".$this->TotalResult."条</span></li>\r\n"; | ||||
| $tnamerule = $this->GetMakeFileRule($this->Fields['id'], "list", $this->Fields['typedir'], $this->Fields['defaultname'], $this->Fields['namerule2']); | $tnamerule = $this->GetMakeFileRule($this->Fields['id'], "list", $this->Fields['typedir'], $this->Fields['defaultname'], $this->Fields['namerule2']); | ||||
| $tnamerule = preg_replace("/^(.*)\//", '', $tnamerule); | $tnamerule = preg_replace("/^(.*)\//", '', $tnamerule); | ||||
| //获得上一页和首页的链接 | |||||
| //获得上页和首页的链接 | |||||
| if ($this->PageNo != 1) { | if ($this->PageNo != 1) { | ||||
| $prepage .= "<li class='page-item'><a class='page-link' href='".str_replace("{page}", $prepagenum, $tnamerule)."'>上一页</a></li>\r\n"; | |||||
| $prepage .= "<li class='page-item'><a class='page-link' href='".str_replace("{page}", $prepagenum, $tnamerule)."'>上页</a></li>\r\n"; | |||||
| $indexpage = "<li class='page-item'><a class='page-link' href='".str_replace("{page}", 1, $tnamerule)."'>首页</a></li>\r\n"; | $indexpage = "<li class='page-item'><a class='page-link' href='".str_replace("{page}", 1, $tnamerule)."'>首页</a></li>\r\n"; | ||||
| } else { | } else { | ||||
| $indexpage = "<li class='page-item'><span class='page-link'>首页</span></li>\r\n"; | $indexpage = "<li class='page-item'><span class='page-link'>首页</span></li>\r\n"; | ||||
| } | } | ||||
| //下一页和未页的链接 | |||||
| //下页和未页的链接 | |||||
| if ($this->PageNo != $totalpage && $totalpage > 1) { | if ($this->PageNo != $totalpage && $totalpage > 1) { | ||||
| $nextpage .= "<li class='page-item'><a class='page-link' href='".str_replace("{page}", $nextpagenum, $tnamerule)."'>下一页</a></li>\r\n"; | |||||
| $nextpage .= "<li class='page-item'><a class='page-link' href='".str_replace("{page}", $nextpagenum, $tnamerule)."'>下页</a></li>\r\n"; | |||||
| $endpage = "<li class='page-item'><a class='page-link' href='".str_replace("{page}", $totalpage, $tnamerule)."'>末页</a></li>\r\n"; | $endpage = "<li class='page-item'><a class='page-link' href='".str_replace("{page}", $totalpage, $tnamerule)."'>末页</a></li>\r\n"; | ||||
| } else { | } else { | ||||
| $endpage = "<li class='page-item'><span class='page-link'>末页</span></li>\r\n"; | $endpage = "<li class='page-item'><span class='page-link'>末页</span></li>\r\n"; | ||||
| @@ -1157,15 +1157,15 @@ class ListView | |||||
| foreach($_GET as $key => $value) { | foreach($_GET as $key => $value) { | ||||
| $pageaddurl .= ($key!="tid" && $key!="TotalResult" && $key!="PageNo" && $key!="PageSize" && $key!="mod") ? "&".string_filter($key)."=".string_filter($value) : ''; | $pageaddurl .= ($key!="tid" && $key!="TotalResult" && $key!="PageNo" && $key!="PageSize" && $key!="mod") ? "&".string_filter($key)."=".string_filter($value) : ''; | ||||
| } | } | ||||
| //获得上一页和下一页的链接 | |||||
| //获得上页和下页的链接 | |||||
| if ($this->PageNo != 1) { | if ($this->PageNo != 1) { | ||||
| $prepage .= "<li class='page-item'><a href='".$purl."PageNo=$prepagenum".$pageaddurl."' class='page-link'>上一页</a></li>\r\n"; | |||||
| $prepage .= "<li class='page-item'><a href='".$purl."PageNo=$prepagenum".$pageaddurl."' class='page-link'>上页</a></li>\r\n"; | |||||
| $indexpage = "<li class='page-item'><a href='".$purl."PageNo=1".$pageaddurl."' class='page-link'>首页</a></li>\r\n"; | $indexpage = "<li class='page-item'><a href='".$purl."PageNo=1".$pageaddurl."' class='page-link'>首页</a></li>\r\n"; | ||||
| } else { | } else { | ||||
| $indexpage = "<li class='page-item'><span class='page-link'>首页</span></li>\r\n"; | $indexpage = "<li class='page-item'><span class='page-link'>首页</span></li>\r\n"; | ||||
| } | } | ||||
| if ($this->PageNo != $totalpage && $totalpage > 1) { | if ($this->PageNo != $totalpage && $totalpage > 1) { | ||||
| $nextpage .= "<li class='page-item'><a href='".$purl."PageNo=$nextpagenum".$pageaddurl."' class='page-link'>下一页</a></li>\r\n"; | |||||
| $nextpage .= "<li class='page-item'><a href='".$purl."PageNo=$nextpagenum".$pageaddurl."' class='page-link'>下页</a></li>\r\n"; | |||||
| $endpage = "<li class='page-item'><a href='".$purl."PageNo=$totalpage".$pageaddurl."' class='page-link'>末页</a></li>\r\n"; | $endpage = "<li class='page-item'><a href='".$purl."PageNo=$totalpage".$pageaddurl."' class='page-link'>末页</a></li>\r\n"; | ||||
| } else { | } else { | ||||
| $endpage = "<li class='page-item'><span class='page-link'>末页</span></li>\r\n"; | $endpage = "<li class='page-item'><span class='page-link'>末页</span></li>\r\n"; | ||||
| @@ -662,15 +662,15 @@ class SearchView | |||||
| $hidenform .= "<input type='hidden' name='typeid' value='".$this->TypeID."'>\r\n"; | $hidenform .= "<input type='hidden' name='typeid' value='".$this->TypeID."'>\r\n"; | ||||
| $hidenform .= "<input type='hidden' name='TotalResult' value='".$this->TotalResult."'>\r\n"; | $hidenform .= "<input type='hidden' name='TotalResult' value='".$this->TotalResult."'>\r\n"; | ||||
| $purl .= "?".$geturl; | $purl .= "?".$geturl; | ||||
| //获得上一页和下一页的链接 | |||||
| //获得上页和下页的链接 | |||||
| if ($this->PageNo != 1) { | if ($this->PageNo != 1) { | ||||
| $prepage .= "<li class='page-item'><a class='page-link' href='".$purl."PageNo=$prepagenum'>上一页</a></li>\r\n"; | |||||
| $prepage .= "<li class='page-item'><a class='page-link' href='".$purl."PageNo=$prepagenum'>上页</a></li>\r\n"; | |||||
| $indexpage = "<li class='page-item'><a class='page-link' href='".$purl."PageNo=1'>首页</a></li>\r\n"; | $indexpage = "<li class='page-item'><a class='page-link' href='".$purl."PageNo=1'>首页</a></li>\r\n"; | ||||
| } else { | } else { | ||||
| $indexpage = "<li class='page-item disabled'><a class='page-link'>首页</a></li>\r\n"; | $indexpage = "<li class='page-item disabled'><a class='page-link'>首页</a></li>\r\n"; | ||||
| } | } | ||||
| if ($this->PageNo != $totalpage && $totalpage > 1) { | if ($this->PageNo != $totalpage && $totalpage > 1) { | ||||
| $nextpage .= "<li class='page-item'><a class='page-link' href='".$purl."PageNo=$nextpagenum'>下一页</a></li>\r\n"; | |||||
| $nextpage .= "<li class='page-item'><a class='page-link' href='".$purl."PageNo=$nextpagenum'>下页</a></li>\r\n"; | |||||
| $endpage = "<li class='page-item'><a class='page-link' href='".$purl."PageNo=$totalpage'>末页</a></li>\r\n"; | $endpage = "<li class='page-item'><a class='page-link' href='".$purl."PageNo=$totalpage'>末页</a></li>\r\n"; | ||||
| } else { | } else { | ||||
| $endpage = "<li class='page-item'><a class='page-link'>末页</a></li>\r\n"; | $endpage = "<li class='page-item'><a class='page-link'>末页</a></li>\r\n"; | ||||
| @@ -861,16 +861,16 @@ class SgListView | |||||
| $maininfo = "<li class='page-item disabled'><span class='page-link'>{$totalpage}页".$this->TotalResult."条</span></li>"; | $maininfo = "<li class='page-item disabled'><span class='page-link'>{$totalpage}页".$this->TotalResult."条</span></li>"; | ||||
| $tnamerule = $this->GetMakeFileRule($this->Fields['id'], "list", $this->Fields['typedir'], $this->Fields['defaultname'], $this->Fields['namerule2']); | $tnamerule = $this->GetMakeFileRule($this->Fields['id'], "list", $this->Fields['typedir'], $this->Fields['defaultname'], $this->Fields['namerule2']); | ||||
| $tnamerule = preg_replace("/^(.*)\//", '', $tnamerule); | $tnamerule = preg_replace("/^(.*)\//", '', $tnamerule); | ||||
| //获得上一页和首页的链接 | |||||
| //获得上页和首页的链接 | |||||
| if ($this->PageNo != 1) { | if ($this->PageNo != 1) { | ||||
| $prepage .= "<li class='page-item'><a class='page-link' href='".str_replace("{page}", $prepagenum, $tnamerule)."'>上一页</a></li>\r\n"; | |||||
| $prepage .= "<li class='page-item'><a class='page-link' href='".str_replace("{page}", $prepagenum, $tnamerule)."'>上页</a></li>\r\n"; | |||||
| $indexpage = "<li class='page-item'><a class='page-link' href='".str_replace("{page}", 1, $tnamerule)."'>首页</a></li>\r\n"; | $indexpage = "<li class='page-item'><a class='page-link' href='".str_replace("{page}", 1, $tnamerule)."'>首页</a></li>\r\n"; | ||||
| } else { | } else { | ||||
| $indexpage = "<li class='page-item'>首页</li>\r\n"; | $indexpage = "<li class='page-item'>首页</li>\r\n"; | ||||
| } | } | ||||
| //下一页和未页的链接 | |||||
| //下页和未页的链接 | |||||
| if ($this->PageNo != $totalpage && $totalpage > 1) { | if ($this->PageNo != $totalpage && $totalpage > 1) { | ||||
| $nextpage .= "<li class='page-item'><a class='page-link' href='".str_replace("{page}", $nextpagenum, $tnamerule)."'>下一页</a></li>\r\n"; | |||||
| $nextpage .= "<li class='page-item'><a class='page-link' href='".str_replace("{page}", $nextpagenum, $tnamerule)."'>下页</a></li>\r\n"; | |||||
| $endpage = "<li class='page-item'><a class='page-link' href='".str_replace("{page}", $totalpage, $tnamerule)."'>末页</a></li>\r\n"; | $endpage = "<li class='page-item'><a class='page-link' href='".str_replace("{page}", $totalpage, $tnamerule)."'>末页</a></li>\r\n"; | ||||
| } else { | } else { | ||||
| $endpage = "<li class='page-item'><a class='page-link'>末页</a></li>"; | $endpage = "<li class='page-item'><a class='page-link'>末页</a></li>"; | ||||
| @@ -965,15 +965,15 @@ class SgListView | |||||
| $hidenform = "<input type='hidden' name='keyword' value='$keyword' />\r\n"; | $hidenform = "<input type='hidden' name='keyword' value='$keyword' />\r\n"; | ||||
| $hidenform .= "<input type='hidden' name='TotalResult' value='".$this->TotalResult."' />\r\n"; | $hidenform .= "<input type='hidden' name='TotalResult' value='".$this->TotalResult."' />\r\n"; | ||||
| $purl .= "?tid=".$this->TypeID."&"; | $purl .= "?tid=".$this->TypeID."&"; | ||||
| //获得上一页和下一页的链接 | |||||
| //获得上页和下页的链接 | |||||
| if ($this->PageNo != 1) { | if ($this->PageNo != 1) { | ||||
| $prepage .= "<li class='page-item'><a class='page-link' href='".$purl."PageNo=$prepagenum{$geturl}'>上一页</a></li>\r\n"; | |||||
| $prepage .= "<li class='page-item'><a class='page-link' href='".$purl."PageNo=$prepagenum{$geturl}'>上页</a></li>\r\n"; | |||||
| $indexpage = "<li class='page-item'><a class='page-link' href='".$purl."PageNo=1{$geturl}'>首页</a></li>\r\n"; | $indexpage = "<li class='page-item'><a class='page-link' href='".$purl."PageNo=1{$geturl}'>首页</a></li>\r\n"; | ||||
| } else { | } else { | ||||
| $indexpage = "<li class='page-item disabled'><a class='page-link'>首页</a></li>\r\n"; | $indexpage = "<li class='page-item disabled'><a class='page-link'>首页</a></li>\r\n"; | ||||
| } | } | ||||
| if ($this->PageNo != $totalpage && $totalpage > 1) { | if ($this->PageNo != $totalpage && $totalpage > 1) { | ||||
| $nextpage .= "<li class='page-item'><a class='page-link' href='".$purl."PageNo=$nextpagenum{$geturl}'>下一页</a></li>\r\n"; | |||||
| $nextpage .= "<li class='page-item'><a class='page-link' href='".$purl."PageNo=$nextpagenum{$geturl}'>下页</a></li>\r\n"; | |||||
| $endpage = "<li class='page-item'><a class='page-link' href='".$purl."PageNo=$totalpage{$geturl}'>末页</a></li>\r\n"; | $endpage = "<li class='page-item'><a class='page-link' href='".$purl."PageNo=$totalpage{$geturl}'>末页</a></li>\r\n"; | ||||
| } else { | } else { | ||||
| $endpage = "<li class='page-item disabled'><a class='page-link'>末页</a></li>"; | $endpage = "<li class='page-item disabled'><a class='page-link'>末页</a></li>"; | ||||
| @@ -446,15 +446,15 @@ class SpecView | |||||
| } | } | ||||
| $purl = $this->GetCurUrl(); | $purl = $this->GetCurUrl(); | ||||
| $tnamerule = "spec_"; | $tnamerule = "spec_"; | ||||
| //获得上一页和下一页的链接 | |||||
| //获得上页和下页的链接 | |||||
| if ($this->PageNo != 1) { | if ($this->PageNo != 1) { | ||||
| $prepage .= "<li><a href='".$tnamerule."$prepagenum".$GLOBALS['art_shortname']."'>上一页</a></li>\r\n"; | |||||
| $prepage .= "<li><a href='".$tnamerule."$prepagenum".$GLOBALS['art_shortname']."'>上页</a></li>\r\n"; | |||||
| $indexpage = "<li><a href='".$tnamerule."1".$GLOBALS['art_shortname']."'>首页</a></li>\r\n"; | $indexpage = "<li><a href='".$tnamerule."1".$GLOBALS['art_shortname']."'>首页</a></li>\r\n"; | ||||
| } else { | } else { | ||||
| $indexpage = "<li><a>首页</a></li>\r\n"; | $indexpage = "<li><a>首页</a></li>\r\n"; | ||||
| } | } | ||||
| if ($this->PageNo != $totalpage && $totalpage > 1) { | if ($this->PageNo != $totalpage && $totalpage > 1) { | ||||
| $nextpage .= "<li><a href='".$tnamerule."$nextpagenum".$GLOBALS['art_shortname']."'>下一页</a></li>\r\n"; | |||||
| $nextpage .= "<li><a href='".$tnamerule."$nextpagenum".$GLOBALS['art_shortname']."'>下页</a></li>\r\n"; | |||||
| $endpage = "<li><a href='".$tnamerule."$totalpage".$GLOBALS['art_shortname']."'>末页</a></li>\r\n"; | $endpage = "<li><a href='".$tnamerule."$totalpage".$GLOBALS['art_shortname']."'>末页</a></li>\r\n"; | ||||
| } else { | } else { | ||||
| $endpage = "<li><a>末页</a></li>\r\n"; | $endpage = "<li><a>末页</a></li>\r\n"; | ||||
| @@ -513,15 +513,15 @@ class SpecView | |||||
| $hidenform = "<input type='hidden' name='typeid' value='".$this->TypeID."'>\r\n"; | $hidenform = "<input type='hidden' name='typeid' value='".$this->TypeID."'>\r\n"; | ||||
| $hidenform .= "<input type='hidden' name='TotalResult' value='".$this->TotalResult."'>\r\n"; | $hidenform .= "<input type='hidden' name='TotalResult' value='".$this->TotalResult."'>\r\n"; | ||||
| $purl .= "?".$geturl; | $purl .= "?".$geturl; | ||||
| //获得上一页和下一页的链接 | |||||
| //获得上页和下页的链接 | |||||
| if ($this->PageNo != 1) { | if ($this->PageNo != 1) { | ||||
| $prepage .= "<li><a href='".$purl."PageNo=$prepagenum'>上一页</a></li>\r\n"; | |||||
| $prepage .= "<li><a href='".$purl."PageNo=$prepagenum'>上页</a></li>\r\n"; | |||||
| $indexpage = "<li><a href='".$purl."PageNo=1'>首页</a></li>\r\n"; | $indexpage = "<li><a href='".$purl."PageNo=1'>首页</a></li>\r\n"; | ||||
| } else { | } else { | ||||
| $indexpage = "<li><a>首页</a></li>\r\n"; | $indexpage = "<li><a>首页</a></li>\r\n"; | ||||
| } | } | ||||
| if ($this->PageNo != $totalpage && $totalpage > 1) { | if ($this->PageNo != $totalpage && $totalpage > 1) { | ||||
| $nextpage .= "<li><a href='".$purl."PageNo=$nextpagenum'>下一页</a></li>\r\n"; | |||||
| $nextpage .= "<li><a href='".$purl."PageNo=$nextpagenum'>下页</a></li>\r\n"; | |||||
| $endpage = "<li><a href='".$purl."PageNo=$totalpage'>末页</a></li>\r\n"; | $endpage = "<li><a href='".$purl."PageNo=$totalpage'>末页</a></li>\r\n"; | ||||
| } else { | } else { | ||||
| $endpage = "<li><a>末页</a></li>"; | $endpage = "<li><a>末页</a></li>"; | ||||
| @@ -416,15 +416,15 @@ class TagList | |||||
| $maininfo = "<li class='page-item disabled'><span class='page-link'>{$totalpage}页".$this->TotalResult."条</span></li>\r\n"; | $maininfo = "<li class='page-item disabled'><span class='page-link'>{$totalpage}页".$this->TotalResult."条</span></li>\r\n"; | ||||
| $purl = $this->GetCurUrl(); | $purl = $this->GetCurUrl(); | ||||
| $purl .= "?/".urlencode($this->Tag); | $purl .= "?/".urlencode($this->Tag); | ||||
| //获得上一页和下一页的链接 | |||||
| //获得上页和下页的链接 | |||||
| if ($this->PageNo != 1) { | if ($this->PageNo != 1) { | ||||
| $prepage .= "<li class='page-item'><a class='page-link' href='".$purl."/$prepagenum/'>上一页</a></li>\r\n"; | |||||
| $prepage .= "<li class='page-item'><a class='page-link' href='".$purl."/$prepagenum/'>上页</a></li>\r\n"; | |||||
| $indexpage = "<li class='page-item'><a class='page-link' href='".$purl."/1/'>首页</a></li>\r\n"; | $indexpage = "<li class='page-item'><a class='page-link' href='".$purl."/1/'>首页</a></li>\r\n"; | ||||
| } else { | } else { | ||||
| $indexpage = "<li class='page-item'><span class='page-link'>首页</span></li>\r\n"; | $indexpage = "<li class='page-item'><span class='page-link'>首页</span></li>\r\n"; | ||||
| } | } | ||||
| if ($this->PageNo != $totalpage && $totalpage > 1) { | if ($this->PageNo != $totalpage && $totalpage > 1) { | ||||
| $nextpage .= "<li class='page-item'><a class='page-link' href='".$purl."/$nextpagenum/'>下一页</a></li>\r\n"; | |||||
| $nextpage .= "<li class='page-item'><a class='page-link' href='".$purl."/$nextpagenum/'>下页</a></li>\r\n"; | |||||
| $endpage = "<li class='page-item'><a class='page-link' href='".$purl."/$totalpage/'>末页</a></li>\r\n"; | $endpage = "<li class='page-item'><a class='page-link' href='".$purl."/$totalpage/'>末页</a></li>\r\n"; | ||||
| } else { | } else { | ||||
| $endpage = "<li class='page-item'><span class='page-link'>末页</span></li>\r\n"; | $endpage = "<li class='page-item'><span class='page-link'>末页</span></li>\r\n"; | ||||
| @@ -490,15 +490,15 @@ class TagList | |||||
| } | } | ||||
| $maininfo = "<li class='page-item disabled'><span class='page-link'>{$totalpage}页".$this->TotalResult."条</span></li>\r\n"; | $maininfo = "<li class='page-item disabled'><span class='page-link'>{$totalpage}页".$this->TotalResult."条</span></li>\r\n"; | ||||
| $purl = $this->tagsDir.'/'.$this->TagInfos['id']; | $purl = $this->tagsDir.'/'.$this->TagInfos['id']; | ||||
| //获得上一页和下一页的链接 | |||||
| //获得上页和下页的链接 | |||||
| if ($this->PageNo != 1) { | if ($this->PageNo != 1) { | ||||
| $prepage .= "<li class='page-item'><a href='".$purl."/$prepagenum/' class='page-link'>上一页</a></li>\r\n"; | |||||
| $prepage .= "<li class='page-item'><a href='".$purl."/$prepagenum/' class='page-link'>上页</a></li>\r\n"; | |||||
| $indexpage = "<li class='page-item'><a href='".$purl."/1/' class='page-link'>首页</a></li>\r\n"; | $indexpage = "<li class='page-item'><a href='".$purl."/1/' class='page-link'>首页</a></li>\r\n"; | ||||
| } else { | } else { | ||||
| $indexpage = "<li class='page-item'><span class='page-link'>首页</span></li>\r\n"; | $indexpage = "<li class='page-item'><span class='page-link'>首页</span></li>\r\n"; | ||||
| } | } | ||||
| if ($this->PageNo != $totalpage && $totalpage > 1) { | if ($this->PageNo != $totalpage && $totalpage > 1) { | ||||
| $nextpage .= "<li class='page-item'><a href='".$purl."/$nextpagenum/' class='page-link'>下一页</a></li>\r\n"; | |||||
| $nextpage .= "<li class='page-item'><a href='".$purl."/$nextpagenum/' class='page-link'>下页</a></li>\r\n"; | |||||
| $endpage = "<li class='page-item'><a href='".$purl."/$totalpage/' class='page-link'>末页</a></li>\r\n"; | $endpage = "<li class='page-item'><a href='".$purl."/$totalpage/' class='page-link'>末页</a></li>\r\n"; | ||||
| } else { | } else { | ||||
| $endpage = "<li class='page-item'><span class='page-link'>末页</span></li>\r\n"; | $endpage = "<li class='page-item'><span class='page-link'>末页</span></li>\r\n"; | ||||
| @@ -253,7 +253,7 @@ class DataListCP | |||||
| } | } | ||||
| } | } | ||||
| $purl .= "?".$geturl; | $purl .= "?".$geturl; | ||||
| //获得上一页和下一页的链接 | |||||
| //获得上页和下页的链接 | |||||
| if ($this->pageNO != 1) { | if ($this->pageNO != 1) { | ||||
| $prepage .= "<li class='page-item'><a class='page-link' href='".$purl."pageno=$prepagenum'>$lang_pre_page</a></li> \n"; | $prepage .= "<li class='page-item'><a class='page-link' href='".$purl."pageno=$prepagenum'>$lang_pre_page</a></li> \n"; | ||||
| $indexpage = "<li class='page-item'><a class='page-link' href='".$purl."pageno=1'>$lang_index_page</a></li> \n"; | $indexpage = "<li class='page-item'><a class='page-link' href='".$purl."pageno=1'>$lang_index_page</a></li> \n"; | ||||
| @@ -18,7 +18,7 @@ function lib_arccontent(&$ctag, &$refObj) | |||||
| $type = $ctag->GetAtt('type'); | $type = $ctag->GetAtt('type'); | ||||
| $revalue = ''; | $revalue = ''; | ||||
| if (in_array($type, array("pre", "next")) && get_class($refObj) === "Archives") { | if (in_array($type, array("pre", "next")) && get_class($refObj) === "Archives") { | ||||
| //在文档页面获取上一篇下一篇文档 | |||||
| //在文档页面获取上篇下篇文档 | |||||
| $asql = "WHERE id<{$refObj->Fields['id']}"; | $asql = "WHERE id<{$refObj->Fields['id']}"; | ||||
| if ($type === "next") { | if ($type === "next") { | ||||
| $asql = "WHERE id>{$refObj->Fields['id']}"; | $asql = "WHERE id>{$refObj->Fields['id']}"; | ||||
| @@ -99,7 +99,7 @@ | |||||
| @me = ''; | @me = ''; | ||||
| } | } | ||||
| {/dede:field} | {/dede:field} | ||||
| <!--如果使用的是多页单图模式幻灯,把href里的链接改为javascript:dPlayNext();表示点击看下一页--> | |||||
| <!--如果使用多页单图模式,把href里链接改为javascript:dPlayNext();表示查看下页--> | |||||
| {dede:field name='imgurls' alt='输出不同的图片信息'} | {dede:field name='imgurls' alt='输出不同的图片信息'} | ||||
| [field:pagestyle runphp='yes'] @me= (@me==3 ? '<div class="col-4">' : '');[/field:pagestyle] | [field:pagestyle runphp='yes'] @me= (@me==3 ? '<div class="col-4">' : '');[/field:pagestyle] | ||||
| <p><a href='[field:linkurl/]'><img src='[field:imgsrc/]' [field:imgwidth/] id='bigimg' alt='[field:alttext/]' title='[field:alttext/]'></a></p> | <p><a href='[field:linkurl/]'><img src='[field:imgsrc/]' [field:imgwidth/] id='bigimg' alt='[field:alttext/]' title='[field:alttext/]'></a></p> | ||||