Fork me on github

phpcms分页使用

 #pages {
  padding: 14px 0 10px;
  font-family: 宋体;
}
.text-c {
  text-align: center;
} 
 #pages span {
  display: inline-block;
  height: 22px;
  line-height: 22px;
  background: #5a85b2;
  border: 1px solid #5a85b2;
  color: #fff;
  text-align: center;
  padding: 0 10px;
}
#pages a.a1 {
  width: 56px;
  padding: 0;
}
#pages a {
  display: inline-block;
  height: 22px;
  line-height: 22px;
  background: #fff;
  border: 1px solid #d8d8d8;
  text-align: center;
  color: #333;
  padding: 0 10px;
  background-color: #fff;
}


//调用数据分页 {pc:content action
="lists" catid="$catid" num="10" order="listorder DESC" page="$_GET[page]"} //每页10条信息   {loop $data $r}     <li><a href="{$r[url]}" title="{$r[title]}" target="_blank" >{str_cut($r[title],120,'')}</a> <span class="time">{date('Y-m-d',$r[inputtime])}</span></li>   {/loop} {/pc}


//分页的html代码
<div id="pages" class="text-c">{$pages}</div>

 

posted @ 2015-06-26 15:50  Champion-水龙果  阅读(507)  评论(0编辑  收藏  举报
Champion-水龙果