每页条数
0) {
foreach ($page_arr as $key => $vel) {
if ($page['current_page'] == 1 && ($vel == '首页' || $vel == '<上一页')) {
$class = 'not_click';
} elseif ($page['current_page'] == $vel) {
$class = 'click';
} elseif ($page['current_page'] == $page['total_page'] && ($vel == '末页' || $vel == '下一页>')) {
$class = 'not_click';
} elseif ($vel == '...') {
$class = 'not_click';
} else {
$class = 'clickable';
}
if ($vel != '首页' && $vel != '<上一页' && $vel != '下一页>' && $vel != '末页') {
$class = 'page_num ' . $class;
}
if ($class == 'clickable' || $class == 'page_num clickable') {
echo '' . $vel . '';
} else {
echo '' . $vel . '';
}
}
}
?>
共条