PHPCMSV9上一篇下篇没有内容则返回栏目页

一点小小细节的优化,弹出对话框实再让人受不了。

[html]

{if $previous_page[title]!=’第一页’}<a href="{$previous_page[url]}" title="{$previous_page[title]}" id="previous_page">上一组图</a>{else}<a href="<?php echo $this->category[url]; ?>" title="<?php echo $this->category[catname]; ?>" id="previous_page">返回栏目</a>{/if}
{if $next_page[title]!=’最后一页’}<a href="{$next_page[url]}" title="{$next_page[title]}" id="next_page">下一组图</a>{else}<a href="<?php echo $this->category[url]; ?>" title="<?php echo $this->category[catname]; ?>" id="next_page">返回栏目</a>{/if}

[/html]