** * 尾部 */
(po *PageOptions, totalpages int)
| 275 | * 尾部 |
| 276 | */ |
| 277 | func getFooter(po *PageOptions, totalpages int) string { |
| 278 | var rs string = "" |
| 279 | if po.EnablePreNexLink { |
| 280 | var a int = po.CurrentPage + 1 |
| 281 | rs += "<li " + judgeDisable(po, totalpages, 1) + " ><a href='" + po.Href + "&" + po.ParamName + "=" + con.Itoa(a) + "'>" + po.NextPageText + "</a></li>" |
| 282 | } |
| 283 | if po.EnableFirstLastLink { //当首页,尾页都设定的时候,就显示 |
| 284 | if po.CurrentPage == totalpages { |
| 285 | rs += "<li " + judgeDisable(po, totalpages, 1) + " class=\"disabled\"><a href=\"###\">" + po.LastPageText + "</a></li>" |
| 286 | } else { |
| 287 | rs += "<li " + judgeDisable(po, totalpages, 1) + " ><a href=\"" + po.Href + "&" + po.ParamName + "=" + con.Itoa(totalpages) + "\">" + po.LastPageText + "</a></li>" |
| 288 | } |
| 289 | } |
| 290 | rs += "</ul>" |
| 291 | return rs |
| 292 | } |
| 293 | |
| 294 | /** |
| 295 | * 设置默认值 |
no test coverage detected