{% block up %}{% endblock %}
{% set res = 4|page_list(-1,['id','title','category','author','addtime','audit','recom'],'%Y-%m-%d %H:%M:%S') %}
<ul class="am-pagination tpl-pagination">
	{% if res['page']==1 %}
		<li class="am-disabled"><a href='#'>«</a></li>
	{% else %}
		<li><a href={{res['up_page']}}>«</a></li>
	{% endif %}
	{% for i in range(res['start'],res['end']+1) %}
		{% if i == res['page'] %}
			<li class="am-active"><a href="#">{{i}}</a></li>
		{% else %}
			<li><a href={{res['page_url'][i-1]}}>{{i}}</a></li>
		{% endif %}
	{% endfor %}
	{% if res['page']==res['total_page'] %}
		<li class="am-disabled"><a href='#'>»</a></li>
	{% else %}
		<li><a href={{res['down_page']}}>»</a></li>
	{% endif %}
</ul>
{% block down %}{% endblock %}