just add to script and change style and config

<style type='text/css'>
.pagenumber li{
float:right;
display:inline-block;
margin:2px 1px 1px 2px;
background:white;
border:1px solid #D8CAAF
}
.pagenumber li:hover{
background:#FFE0A8;
}
.pagenumber a{
display:inline-block;
padding-top:2px;
padding-bottom:2px;
padding-right:6px;
padding-left:6px;
font-family:tahoma;
text-decoration:none;
font-size:8pt;
}

li.inpage{
background:#E6DCCA;
}

.pagenumber .dotedli{
border:none;
background:white
}
.pagenumber .dotedli:hover{
border:none;
background:white
}

</style>
<meta http-equiv='Content-type' content='text/html;charset=utf-8' />
<?php
$pageconf = array(
'all'=>200 , // select count(*) from post where
'range'=>10 , // select * from post limit (inpage-1)*range,range
'inpage'=>$GET'page', // current page. example $GET[]
'limit'=>3 , // use number of li for minimize
'url'=>'http://rezaworkshop.ir/pagination.php?page=' // url of page. the number showed in end of url
);

$pagenumber = new pagination($pageconf);

echo $pagenumber->pagenumber();
?>


http://rezaonline.net

Last edited Dec 5, 2012 at 4:28 PM by reza19sh, version 1

Comments

No comments yet.