Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
smradius
smradius
Commits
3e1047c5
Commit
3e1047c5
authored
Sep 29, 2014
by
shail
Browse files
Implemented some changes on 'View/RealmMembers/index.ctp' in 'permission93' branch.
parent
8d9cc5f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/app/View/RealmMembers/index.ctp
View file @
3e1047c5
...
...
@@ -2,8 +2,22 @@
body
{
padding-top
:
50px
;
}
.pagination
.current
a
{
background-color
:
#EEEEEE
;
}
</style>
<script
type=
"text/javascript"
>
function
confirmDelete
(
msg
,
link
)
{
if
(
confirm
(
msg
))
{
location
.
href
=
link
;
}
else
{
return
false
;
}
}
</script>
<div
style=
"padding: 15px 15px"
>
<div
class=
"row"
>
<?php
echo
$this
->
element
(
'left_panel'
);
?>
<div
class=
"col-md-10"
><legend>
<?php
echo
__
(
'Realm Members List'
);
?>
</legend>
...
...
@@ -31,19 +45,30 @@ body {
<td>
<?php
if
(
$this
->
Access
->
check
(
$groupName
,
'RealmMembersDelete'
))
{
echo
$this
->
Html
->
image
(
"/resources/custom/images/silk/icons/table_delete.png"
,
array
(
"alt"
=>
"Delete"
,
"url"
=>
array
(
'controller'
=>
'realm_members'
,
'action'
=>
'remove'
,
$realmMember
[
'RealmMember'
][
'ID'
],
$realmID
),
"title"
=>
"Remove member"
)
);
?>
<a
href=
"#"
onclick=
"return confirmDelete(
'Are you sure you want to delete.',
'
<?php
echo
$this
->
Html
->
url
(
array
(
'controller'
=>
'realm_members'
,
'action'
=>
'remove'
,
$realmMember
[
'RealmMember'
][
'ID'
],
$realmID
)
);
?>
'
)"
>
<?php
echo
$this
->
Html
->
image
(
"/resources/custom/images/silk/icons/table_delete.png"
,
array
(
"alt"
=>
"Delete"
,
"title"
=>
"Delete member"
)
);
?>
</a>
<?php
}
?>
</td>
...
...
@@ -60,26 +85,39 @@ body {
)
);
if
(
$total
>
1
)
{
echo
$this
->
Paginator
->
prev
(
'<<'
,
null
,
null
,
array
(
'class'
=>
'disabled'
)
);
echo
$this
->
Paginator
->
numbers
();
// Shows the next and previous links.
echo
$this
->
Paginator
->
next
(
'>>'
,
null
,
null
,
array
(
'class'
=>
'disabled'
)
);
// Prints X of Y, where X is current page and Y is number of pages.
?>
<ul
class=
"pagination"
>
<?php
if
(
$this
->
Paginator
->
first
())
{
echo
$this
->
Paginator
->
first
(
'First'
,
array
(
'tag'
=>
'li'
),
null
,
null
);
}
else
{
echo
'<li class="disabled"><a href="#">First</a></li>'
;
}
if
(
$this
->
Paginator
->
hasPrev
())
{
echo
$this
->
Paginator
->
prev
(
'«'
,
array
(
'tag'
=>
'li'
,
'escape'
=>
false
),
null
,
null
);
}
else
{
echo
'<li class="disabled"><a href="#">«</a></li>'
;
}
echo
$this
->
Paginator
->
numbers
(
array
(
'separator'
=>
false
,
'tag'
=>
'li'
,
'currentTag'
=>
'a'
));
if
(
$this
->
Paginator
->
hasNext
())
{
echo
$this
->
Paginator
->
next
(
'»'
,
array
(
'tag'
=>
'li'
,
'escape'
=>
false
),
null
,
null
);
}
else
{
echo
'<li class="disabled"><a href="#">»</a></li>'
;
}
if
(
$this
->
Paginator
->
last
())
{
echo
$this
->
Paginator
->
last
(
'Last'
,
array
(
'tag'
=>
'li'
),
null
,
null
);
}
else
{
echo
'<li class="disabled"><a href="#">Last</a></li>'
;
}
echo
"<span style='margin-left:20px;'>Page : "
.
$this
->
Paginator
->
counter
()
.
"</span>"
;
?>
</ul>
<?php
}
?>
</td>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment