#13 paginate 처리

This commit is contained in:
whitedot
2013-01-21 11:42:56 +09:00
parent 8e58ea138f
commit 9be7e1be4d

View File

@ -34,9 +34,9 @@ function get_paging($write_pages, $cur_page, $total_page, $url, $add="")
if ($total_page > 1) {
for ($k=$start_page;$k<=$end_page;$k++) {
if ($cur_page != $k)
$str .= '<a href="'.$url.$k.$add.'" class="pg_page">'.$k.'</a>'.PHP_EOL;
$str .= '<a href="'.$url.$k.$add.'" class="pg_page">'.$k.'<span class="sound_only">페이지</span></a>'.PHP_EOL;
else
$str .= '<strong class="pg_current">'.$k.'</strong>'.PHP_EOL;
$str .= '<strong class="pg_current"><span class="sound_only">선택된</span>'.$k.'<span class="sound_only">페이지</span></strong>'.PHP_EOL;
}
}