Skip to content

Commit

Permalink
Update pagelist.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Kation committed May 31, 2013
1 parent 28a926e commit 7479297
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions public/pagelist.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,32 @@
<div id="pageDiv"></div>
<script type="text/javascript" src="js/modern/pagelist.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var page = $("#pageDiv").pagelist();
page.total = 10;
page.current = 1;
page.url = "pagelistresult.php?page={page}";
page.ajax = "#pageContent";
page.create();
});
$(document).ready(function(){
var page = $("#pageDiv").pagelist();
page.total = 10;
page.current = 1;
page.url = "pagelistresult.php?page={page}";
page.ajax = "#pageContent";
page.create();
});
</script>
<h2>Component usage</h2>
<pre class="prettyprint linenums span10">
<pre class="prettyprint linenums span10">
var page = $("#page").pagelist();
page.total = 10; //Total pages
page.current = 1; //Current page
page.showcount = 2; //Default is 2
page.url = "pagelistresult.php?page={page}"; //Jump url
page.ajax = "#contnet"; //if you want to use ajax, set value to target element, defaul is null
//If you want to use your own template
//page.pageTemplate = '...';
//page.pageSideTemplate = '...';
//page.pageItemTemplate = '...';
//page.pageCurrentTemplate = '...';
//page.pageMoreTemplate = '...';
//page.pageJumpTemplate = '...';
page.create(); //Create page list
</pre>
page.total = 10; //Total pages
page.current = 1; //Current page
page.showcount = 2; //Default is 2
page.url = "pagelistresult.php?page={page}"; //Jump url
page.ajax = "#contnet"; //if you want to use ajax, set value to target element, defaul is null
//If you want to use your own template
//page.pageTemplate = '...';
//page.pageSideTemplate = '...';
//page.pageItemTemplate = '...';
//page.pageCurrentTemplate = '...';
//page.pageMoreTemplate = '...';
//page.pageJumpTemplate = '...';
page.create(); //Create page list
</pre>
</div>
</div>
</div>
Expand Down

0 comments on commit 7479297

Please sign in to comment.