|
|
@ -414,6 +414,12 @@ function set_pagination($count, $row,$request='') {
|
|
|
|
function set_pagination_all($count, $row,$request='') {
|
|
|
|
function set_pagination_all($count, $row,$request='') {
|
|
|
|
|
|
|
|
|
|
|
|
$aside = '<script>function pagechange(that){url = location.href.replace(".html","").replace(/(&|\/)row(=|\/)\d*/gi,"").replace(/\/p\/\d*/gi,"");if(url.indexOf("?")>0){url += "&row="+that.value;}else{url += "?row="+that.value;} window.location.href = url;}</script><select id="pagechange" name="row" onchange="pagechange(this)">';
|
|
|
|
$aside = '<script>function pagechange(that){url = location.href.replace(".html","").replace(/(&|\/)row(=|\/)\d*/gi,"").replace(/\/p\/\d*/gi,"");if(url.indexOf("?")>0){url += "&row="+that.value;}else{url += "?row="+that.value;} window.location.href = url;}</script><select id="pagechange" name="row" onchange="pagechange(this)">';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($row == 999999){
|
|
|
|
|
|
|
|
$aside .= '<option value="999999" selected>全部显示</option>';
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
$aside .= '<option value="999999">全部显示</option>';
|
|
|
|
|
|
|
|
}
|
|
|
|
if($row == 10){
|
|
|
|
if($row == 10){
|
|
|
|
$aside .= '<option value="10" selected>每页10条</option>';
|
|
|
|
$aside .= '<option value="10" selected>每页10条</option>';
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
@ -425,15 +431,11 @@ function set_pagination_all($count, $row,$request='') {
|
|
|
|
$aside .= '<option value="50">每页50条</option>';
|
|
|
|
$aside .= '<option value="50">每页50条</option>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if($row == 100){
|
|
|
|
if($row == 100){
|
|
|
|
$aside .= '<option value="100" selected>每页100条</option>';
|
|
|
|
$aside .= '<option value="100" selected>每页100条</option></select>';
|
|
|
|
}else{
|
|
|
|
|
|
|
|
$aside .= '<option value="100">每页100条</option>';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if($row == 999999){
|
|
|
|
|
|
|
|
$aside .= '<option value="999999" selected>全部显示</option></select>';
|
|
|
|
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
$aside .= '<option value="999999">全部显示</option></select>';
|
|
|
|
$aside .= '<option value="100">每页100条</option></select>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$count=$count?$count:0;
|
|
|
|
$count=$count?$count:0;
|
|
|
|
$row=$row?$row:10;
|
|
|
|
$row=$row?$row:10;
|
|
|
|
if ($count > $row) {
|
|
|
|
if ($count > $row) {
|
|
|
|