Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
smradius
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smradius
smradius
Commits
9d898e13
Commit
9d898e13
authored
Oct 01, 2014
by
Nigel Kukard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'permission93' into 'master-cakephp'
Permission93 Please accept permission93 See merge request
!375
parents
42d8c58b
3e1047c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
70 additions
and
32 deletions
+70
-32
htdocs/app/View/RealmMembers/index.ctp
htdocs/app/View/RealmMembers/index.ctp
+70
-32
No files found.
htdocs/app/View/RealmMembers/index.ctp
View file @
9d898e13
...
...
@@ -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
Markdown
is supported
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