<?php if(!class_exists('Template')) die('Access Denied'); $this->tpl->check('inc\page.html', '342721b336f636ef8e7da9b6001f1544', 1362484600); ?>
<style type="text/css">
#pagebox { }
#pagebox_first,#pagebox_prev,#pagebox_next,#pagebox_last { text-decoration:underline;cursor:pointer; }
</style>
<div id="pagebox">
<?php if($page['index'] > 1) { ?>
<span id="pagebox_first" onclick="firstPage()">首页</span>
<span id="pagebox_prev" onclick="prevPage()">上一页</span>
<?php } if(is_array($page['nums'])) foreach($page['nums'] as $v) { ?>
<span id="<?php echo $v; ?>" class="page<?php if($v==$page['index']) { ?>Cur<?php } ?>"><?php echo $v; ?></span>
<?php } if($page['index'] < $page['count']) { ?>
<span id="pagebox_next" onclick="nextPage()">下一页</span>
<span id="pagebox_last" onclick="lastPage()">尾页</span>
<?php } ?>
共<span style="color:red;font-weight:bold;"><?php echo $page['count']; ?></span>页
 跳转到 <input id="O_Page" style="width:30px;" type="text" value="<?php echo $page['index']; ?>" /> 页
<input id="O_Go" type="button" value="确定" onclick="goPage();" />
<input id="O_CurrentPage" type="hidden" value="<?php echo $page['index']; ?>" /><input id="O_PageCount" type="hidden" value="<?php echo $page['count']; ?>" />
<span id="loading" style="display:none;">加载中...</span>
</div>
