forked from olton/Metro-UI-CSS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of github.com:olton/Metro-UI-CSS into develop
- Loading branch information
Showing
9 changed files
with
176 additions
and
8 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,4 +36,5 @@ | |
@import "dialog.less"; | ||
@import "calendar.less"; | ||
@import "contextmenu.less"; | ||
@import "pagelist.less"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* Metro UI CSS | ||
* (c) 2012-2013 by Sergey Pimenov | ||
* Licensed under the MIT License and Commercial | ||
* | ||
* Pagelist.less | ||
* | ||
*/ | ||
|
||
.pagelist { | ||
padding-bottom: 10px; | ||
text-align: center; | ||
|
||
.pagePrevious, | ||
.pageNext, | ||
.pageContent, | ||
.pageJump { | ||
display: inline-block; | ||
|
||
input { | ||
width: 32px; | ||
height: 32px; | ||
top: 1px; | ||
position: relative; | ||
border: 1px #bababa solid; | ||
} | ||
|
||
#pageGo { | ||
margin: 0px; | ||
} | ||
} | ||
|
||
.pageContent a { | ||
padding-top: 4px; | ||
} | ||
|
||
.pagePrevious { | ||
text-align: right; | ||
} | ||
|
||
.pageNext { | ||
text-align: left; | ||
} | ||
|
||
a { | ||
margin: 4px; | ||
cursor: pointer; | ||
} | ||
|
||
.pageCurrent { | ||
font-weight: bold; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php include("header.php")?> | ||
<div class="page secondary"> | ||
<div class="page-header"> | ||
<div class="page-header-content"> | ||
<h1>Pagelist<small>demo</small></h1> | ||
<a href="/" class="back-button big page-back"></a> | ||
</div> | ||
</div> | ||
<div class="page-region"> | ||
<div class="page-region-content"> | ||
<div id="pageContent">This is the page of 1</div> | ||
<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(); | ||
}); | ||
</script> | ||
<h2>Component usage</h2> | ||
<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> | ||
</div> | ||
</div> | ||
</div> | ||
<?php include("footer.php")?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This is the page of <?php echo $_GET["page"] ?> |