mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
mujma: BUGFIX: Switched divs to tables, added namespaces, solved ticket http://support.silverstripe.com/gsoc/ticket/110 (merged from gsoc branch, r42792)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42985 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
c7231c6935
commit
4d9e93460d
@ -72,3 +72,48 @@ form fieldset {
|
||||
float: right;
|
||||
}
|
||||
|
||||
/* Pagination */
|
||||
|
||||
ComplexTableField_Pagination {
|
||||
margin-top: 10px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
#ComplexTableField_Pagination a {
|
||||
font-size: 14px;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
margin: 1px;
|
||||
}
|
||||
|
||||
#ComplexTableField_Pagination span {
|
||||
display: inline;
|
||||
color: red;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
#ComplexTableField_Pagination div {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
#ComplexTableField_Pagination_Next a,#ComplexTableField_Pagination_Previous a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#ComplexTableField_Pagination_Next a div {
|
||||
position: relative;
|
||||
left: -20px;
|
||||
}
|
||||
|
||||
#ComplexTableField_Pagination_Next a img {
|
||||
position: relative;
|
||||
top: -15px;
|
||||
left: 5px;
|
||||
}
|
||||
|
||||
#ComplexTableField_Pagination_Previous a img {
|
||||
position: relative;
|
||||
top: -15px;
|
||||
left: 35px;
|
||||
}
|
||||
|
@ -1,9 +1,9 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<head>
|
||||
<% base_tag %>
|
||||
</head>
|
||||
<body>
|
||||
</head>
|
||||
<body>
|
||||
<div class="right $PopupClasses">
|
||||
$DetailForm
|
||||
<img src="cms/images/network-save.gif" class="ajaxloader" style="display: none" />
|
||||
@ -11,15 +11,17 @@
|
||||
<% if IsAddMode %>
|
||||
<% else %>
|
||||
<% if ShowPagination %>
|
||||
<div id="Pagination">
|
||||
<table id="ComplexTableField_Pagination">
|
||||
<tr>
|
||||
<% if PopupPrevLink %>
|
||||
<div id="Pagination_Previous">
|
||||
<a href="$PopupPrevLink"><img src="cms/images/pagination/previousArrow.png" /></a>
|
||||
<td id="ComplexTableField_Pagination_Previous">
|
||||
<a href="$PopupPrevLink"><img src="cms/images/pagination/record-prev.png" /></a>
|
||||
<a href="$PopupPrevLink"><div>Previous</div></a>
|
||||
</div>
|
||||
</td>
|
||||
<% end_if %>
|
||||
<% if TotalCount == 1 %>
|
||||
<% else %>
|
||||
<td>
|
||||
<% control pagination %>
|
||||
<% if active %>
|
||||
<a href="$link">$number</a>
|
||||
@ -27,19 +29,16 @@
|
||||
<span>$number</span>
|
||||
<% end_if %>
|
||||
<% end_control %>
|
||||
</td>
|
||||
<% end_if %>
|
||||
<% if PopupNextLink %>
|
||||
<div id="Pagination_Next">
|
||||
<a href="$PopupNextLink"><img src="cms/images/pagination/nextArrow.png" /></a>
|
||||
<td id="ComplexTableField_Pagination_Next">
|
||||
<a href="$PopupNextLink"><img src="cms/images/pagination/record-next.png" /></a>
|
||||
<a href="$PopupNextLink"><div>Next</div></a>
|
||||
</div>
|
||||
</td>
|
||||
<% end_if %>
|
||||
</td>
|
||||
<% end_if %>
|
||||
<% end_if %>
|
||||
<% end_if %>
|
||||
<script type="text/javascript">
|
||||
divQ = $('Pagination').getElementsByTagName('div').length;
|
||||
aQ = $('Pagination').getElementsByTagName('a').length - divQ + 1;
|
||||
$('Pagination').style.width = aQ * 15 + 130 + "px";
|
||||
</script>
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user