时间:2021-07-01 10:21:17 帮助过:11人阅读
代码如下:
if(!$r || $r['status'] != 99) showmessage(L('info_does_not_exists'),'blank');
找到后,在它的下一行添加上
代码如下:
 //
 $next_page = $this->db->get_one("`catid`= '$catid' AND `id`>'$id' AND `status`=99");
 if(empty($previous_page)) {
                            $previous_page = array('title'=>L('first_page'), 'thumb'=>IMG_PATH.'nopic_small.gif', 'url'=>'javascript:alert(\''.L('first_page').'\');');
                    }
                    if(empty($next_page)) {
                            $next_page = array('title'=>L('last_page'), 'thumb'=>IMG_PATH.'nopic_small.gif', 'url'=>'javascript:alert(\''.L('last_page').'\');');
                    }
在模板中添加
:
代码如下:
{$next_page[title]}
以上所述就是本文的全部内容了,希望大家能够喜欢。