//获得上一页和主页的链接if($this->PageNo != 1){$prepage.="<li><a href='".str_replace("{page}",$prepagenum,$tnamerule)."'>上一页</a>$indexpage="<li><a href='".$this->Fields['defaultname']."'>首页</a></li>/r/n";}修改成//获得上一页和主页的链接if($this->PageNo != 1){if($prepagenum==1){$prepage.="<li><a href='".$this->Fields['defaultname']."'>上一页</a></li>/r/n";}else{$prepage.="<li><a href='".str_replace("{page}",$prepagenum,$tnamerule)."'>上一页</a></li>/r/n";}$indexpage="<li><a href='".$this->Fields['defaultname']."'>首页</a></li>/r/n";}然后找到 if($mjj==$this->PageNo){$optionlist .= "<option value='".str_replace("{page}",$mjj,$tnamerule)."' selected>$mjj</option>/r/n";}else{$optionlist .= "<option value='".str_replace("{page}",$mjj,$tnamerule)."'>$mjj</option>/r/n";修改成 if($mjj==1){$linkvalue = $this->Fields['defaultname'];}else{$linkvalue = str_replace("{page}",$mjj,$tnamerule);}if($mjj==$this->PageNo){$optionlist .= "<option value='".$linkvalue."' selected>$mjj</option>/r/n";}else{$optionlist .= "<option value='".$linkvalue."'>$mjj</option>/r/n";}最后找到if($j==$this->PageNo){$listdd.= "<li class=/"thisclass/">$j</li>/r/n";}else{$listdd.="<li><a href='".str_replace("{page}",$j,$tnamerule)."'>".$j."</a></li>/r/n";}修改成 if($j==$this->PageNo){$listdd.= "<li class=/"thisclass/">$j</li>/r/n";}else{if($j==1){$listdd.="<li><a href='".$this->Fields['defaultname']."'>".$j."</a></li>/r/n";}else{$listdd.="<li><a href='".str_replace("{page}",$j,$tnamerule)."'>".$j."</a></li>/r/n";}} |
新闻热点
疑难解答