123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161 |
- <?php
- if($areaid > 0){
- $where2 = "area_id=$areaid and parent_id=38 and topid=38 and is_del=0 and status=1";
- }else{
- $where2 = "parent_id=38 and topid=38 and is_del=0 and status=1";
- }
- ?>
- {eyou:assign name='pid' value="$route_param.tid" /}
- {eyou:sql sql="select COUNT(*) as total FROM __PREFIX__arctype where $where2" cachetime='3600' empty='没有数据' id="list"}
-
- {eyou:php}
- $total_page = ceil($list['total']/$pagesize);
- $total_page_for = $total_page + 1;
- $pro_page = $curpage - 1;
- $pev_page = $curpage + 1;
- {/eyou:php}
- <div class="bottom bottom-row">
-
-
- {eyou:if condition='($route_param.tid == 38 && $areaid === 0)'}
- <div class="page-a">
- {eyou:if condition='((int)$total_page > 1)'}
- {eyou:if condition='((int)$curpage === 1)'}
- <li><a>首页</a></li>
- <li><a>上一页</a></li>
- {eyou:else /}
- <li><a href="/zczl">首页</a></li>
- {eyou:if condition='((int)$curpage === 2)'}
- <li><a href="/zczl">上一页</a></li>
- {eyou:else /}
- <li><a href="/zczl-{$pro_page}">上一页</a></li>
- {/eyou:if}
- {/eyou:if}
- {eyou:for start='1' end="$total_page_for"}
- {eyou:if condition='((int)$i === 1)'}
- {eyou:if condition='((int)$curpage === $i)'}
- <li class="active-1"><a>{$i}</a></li>
- {eyou:else /}
- <li><a href="/zczl" data-ey_fc35fdc="html" data-tmp="1" >{$i}</a></li>
- {/eyou:if}
- {eyou:else /}
- {eyou:if condition='((int)$curpage === $i)'}
- <li class="active-1"><a>{$i}</a></li>
- {eyou:else /}
- <?php
- if($total_page > 10){
- if(((int)$curpage-2)<$i && ((int)$curpage+2)>$i || ((int)$total_page-1)<$i && ((int)$total_page+1)>$i || 0<$i && 2>$i){ ?>
-
- <li><a href="/zczl-{$i}" data-ey_fc35fdc="html" data-tmp="1">{$i}</a></li>
-
- <?php }else{ ?>
-
- <?php
- if(((int)$curpage) > 3 && ((int)$curpage-2) === $i){
- echo "<li>...</li>";
- }
- if(((int)$curpage+2) < $total_page && ((int)$curpage+2) === $i){
- echo "<li>...</li>";
- }else{
- }
- ?>
-
-
- <?php }}else{ ?>
- <li><a href="/zczl-{$i}" data-ey_fc35fdc="html" data-tmp="1">{$i}</a></li>
- <?php } ?>
-
- {/eyou:if}
- {/eyou:if}
- {/eyou:for}
- {eyou:if condition='((int)$curpage === (int)$total_page)'}
- <li><a>下一页</a></li>
- <li><a>末页</a></li>
- {eyou:else /}
- <li><a href="/zczl-{$pev_page}" data-ey_fc35fdc="html" data-tmp="1">下一页</a></li>
- <li><a href="/zczl-{$total_page}" data-ey_fc35fdc="html" data-tmp="1">末页</a></li>
- {/eyou:if}
- {/eyou:if}
- </div>
- <div class="page-b">
- 共<strong>
- {eyou:php}
- echo $total_page;
- {/eyou:php}
- </strong>页 <strong>{$list.total}</strong>条
- </div>
- {eyou:else /}
- <div class="page-a">
- {eyou:if condition='((int)$total_page > 1)'}
- {eyou:if condition='((int)$curpage === 1)'}
- <li><a>首页</a></li>
- <li><a>上一页</a></li>
- {eyou:else /}
- <li><a href="/zczl/jzzc{$number}">首页</a></li>
- {eyou:if condition='((int)$curpage === 2)'}
- <li><a href="/zczl/jzzc{$number}">上一页</a></li>
- {eyou:else /}
- <li><a href="/zczl/jzzc{$number}-{$pro_page}">上一页</a></li>
- {/eyou:if}
- {/eyou:if}
- {eyou:for start='1' end="$total_page_for"}
- {eyou:if condition='((int)$i === 1)'}
- {eyou:if condition='((int)$curpage === $i)'}
- <li class="active-1"><a >{$i}</a></li>
- {eyou:else /}
- <li><a href="/zczl/jzzc{$number}" data-ey_fc35fdc="html" data-tmp="1">{$i}</a></li>
- {/eyou:if}
- {eyou:else /}
- {eyou:if condition='((int)$curpage === $i)'}
- <li class="active-1"><a>{$i}</a></li>
- {eyou:else /}
-
- <?php
- if($total_page > 10){
- if(((int)$curpage-2)<$i && ((int)$curpage+2)>$i || ((int)$total_page-1)<$i && ((int)$total_page+1)>$i || 0<$i && 2>$i){ ?>
-
- <li><a href="/zczl/jzzc{$number}-{$i}" data-ey_fc35fdc="html" data-tmp="1">{$i}</a></li>
-
- <?php }else{ ?>
-
- <?php
- if(((int)$curpage) > 3 && ((int)$curpage-2) === $i){
- echo "<li>...</li>";
- }
- if(((int)$curpage+2) < $total_page && ((int)$curpage+2) === $i){
- echo "<li>...</li>";
- }else{
- }
- ?>
-
-
- <?php }}else{ ?>
- <li><a href="/zczl/jzzc{$number}-{$i}" data-ey_fc35fdc="html" data-tmp="1">{$i}</a></li>
- <?php } ?>
-
-
- {/eyou:if}
- {/eyou:if}
- {/eyou:for}
- {eyou:if condition='((int)$curpage === (int)$total_page)'}
- <li><a>下一页</a></li>
- <li><a>末页</a></li>
- {eyou:else /}
- <li><a href="/zczl/jzzc{$number}-{$pev_page}" data-ey_fc35fdc="html" data-tmp="1">下一页</a></li>
- <li><a href="/zczl/jzzc{$number}-{$total_page}" data-ey_fc35fdc="html" data-tmp="1">末页</a></li>
- {/eyou:if}
- {/eyou:if}
- </div>
-
-
- <div class="page-b">
- 共<strong>
- {eyou:php}
- echo $total_page;
- {/eyou:php}
- </strong>页 <strong>{$list.total}</strong>条
- </div>
- {/eyou:if}
-
- </div>
- {/eyou:sql}
|