"><?php echo $prob_title; ?> </a></td> <td> <a href="<?php echo $prob_edit; ?> ">编辑题目</a> <a href="<?php echo $prob_data; ?> ">数据设置</a> <a href="<?php echo $prob_rejudge; ?> ">重新评测</a> </td> </tr> <?php } ?> </table> <div style="padding-top: 1em"> <?php echo list_navigation::show($this->list->getPageCount(), $this->list->getCurrentPage()); ?> </div> <?php $this->display('footer.php');
} $right_size = $size - $left_size - 1; if ($current + $right_size > $total) { $right_size = $total - $current; $left_size = $size - $right_size - 1; } $bound = $current - $left_size; if ($bound != 1) { $html .= '<span class="extend">...</span>' . "\n"; } for ($i = $bound; $i < $current; ++$i) { $html .= self::list_navigation_make_url($i, $i) . "\n"; } $html .= '<span class="current">' . $current . '</span>' . "\n"; $bound = $current + $right_size; for ($i = $current + 1; $i <= $bound; ++$i) { $html .= self::list_navigation_make_url($i, $i) . "\n"; } if ($bound != $total) { $html .= '<span class="extend">...</span>' . "\n"; } if ($current != $total) { $html .= self::list_navigation_make_url($current + 1, '»') . "\n"; $html .= self::list_navigation_make_url($total, 'Last') . "\n"; } $html .= '</div>' . "\n"; return $html; } } list_navigation::initialize();