Ec (2); & nbsp; copy the code functionpagenavi ($ total, $ offset) {& nbsp; global $ conf_pagemax; & nbsp; global $ conf_home; & nbsp; global $ conf_pastlog; & nbsp; global $ view; & nbsp; $ nex script ec (2); script
| The Code is as follows: |
|
Function pagenavi ($ total, $ offset ){ Global $ conf_pagemax; Global $ conf_home; Global $ conf_pastlog; Global $ view; $ Next = $ offset + $ conf_pagemax; $ Prev = $ offset-$ conf_pagemax; Echo" "; If ($ offset >$ conf_pagemax-1 ){ Echo "if ($ view =" past "){ Echo "& view = past "; } Echo ""> < <上一页 "; } ($ Total % $ pagemax )? $ Pagenum = ($ total/$ conf_pagemax) + 1: $ pagenum = ($ total/$ conf_pagemax ); If ($ total <= $ conf_pagemax) $ pagenum = 0; $ C = 0; $ Page = 1; If ($ total> $ conf_pagemax ){ Echo "["; While ($ pagenum> 0 ){ If ($ offset = $ c ){ $ Str. = "$ page "; } Else { $ Str. = "if ($ view =" past "){ $ Str. = "& view = past "; } $ Str. = ""> $ page "; } $ Page ++; $ Pagenum --; $ C = $ c + $ conf_pagemax; } Echo "$ str] "; } If ($ next <$ total ){ Echo "if ($ view =" past "){ Echo "& view = past "; } Echo ""> next page> "; } Echo" |
";
Echo"
";
Echo"
[Back to homepage]
";
If ($ view! = "Past "){
If (file ($ conf_pastlog )){
Echo "[previous messages]";
}
}
Echo "[Search]";
Echo "[Message Board Homepage]";
}