Commit a502d7e8 authored by Pierre.Vriens's avatar Pierre.Vriens Committed by David Metzler
Browse files

Updated Role detail report.

parent 457cc47b
--ACCESS=access administration pages
SELECT rid,name from {role}
where rid = :rid
\ No newline at end of file
--ACCESS=administer permissions
SELECT * FROM {role_permission} p
WHERE p.rid=:role
WHERE p.rid=:rid
--INFO
type[role]=int
\ No newline at end of file
--ACCESS=administer users
SELECT u.uid,u.name FROM {role} r JOIN {users_roles} ur ON r.rid=ur.rid
JOIN {users} u ON ur.uid=u.uid
WHERE r.rid = :role
WHERE r.rid = :rid
--INFO
type[role]=int
\ No newline at end of file
<?xml version="1.0"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE root [
<!ENTITY nbsp "&#160;">
]>
<html xmlns:frx="urn:FrxReports">
<head>
<title>Roles</title>
<title>Role Details</title>
<frx:category>Drupal Administration</frx:category>
<frx:options hidden="0"/>
<frx:options/>
<frx:parameters>
<frx:parm id="role" label="" require="0" value="" desc=""
data_source="drupal/roles" data_field="" type="select" />
<frx:parm id="rid" label="Role" data_source="drupal/roles" type="select" require="1"></frx:parm>
</frx:parameters>
<frx:docgen>
</frx:docgen>
<frx:fields>
<frx:field id="user.name" link="user/{uid}/edit" />
<frx:field id="user.name"/>
<frx:field id="user.view" link="user/{uid}" target="_blank">View Profile</frx:field>
<frx:field id="user.edit" link="user/{uid}/edit" target="_blank">Edit Profile</frx:field>
<frx:field id="user.id"/>
<frx:field id="permissions.edit" link="admin/people/permissions/{rid}" target="_blank">Edit Permissions</frx:field>
</frx:fields>
<style/><frx:menu/><frx:cache/>
</head>
<body>
<div frx:block="drupal/roles" id="forena-1">
<table frx:foreach="*" id="forena-2">
<tbody>
<tr>
<th>rid</th>
<td>{rid}</td>
</tr>
<tr>
<th>name</th>
<td>{name}</td>
</tr>
</tbody>
</table>
<div frx:renderer="FrxParameterForm" frx:title="Select a Role" frx:collapsible="1" frx:collapsed="0"
frx:submit="Show users and their permissions" id="parmeter-form">
<p>Role: {rid}</p>
<p>{submit}</p>
</div>
<div frx:block="drupal/role" frx:foreach="*" id="role">
<h2 frx:renderer="FrxTitle" >Role: {name}</h2>
</div>
<div id="forena-3" frx:block="drupal/users_in_role">
<div frx:block="drupal/users_in_role">
<table>
<thead>
<tr>
<th>Members</th>
<th>User Name</th>
<th>User Id</th>
<th colspan="2">Actions</th>
</tr>
</thead>
<tbody>
<tr id="user" frx:foreach="*">
<td>{user.name}</td>
<td><strong>{user.name}</strong></td>
<td>{user.uid}</td>
<td>{user.view}</td>
<td>{user.edit}</td>
</tr>
</tbody>
</table>
</div>
<div id="forena-5" frx:block="drupal/role_permissions">
<div frx:block="drupal/role_permissions">
<table>
<thead>
<tr>
<th>Permissions</th>
<th>Permissions granted to {role.name} </th>
</tr>
</thead>
<tbody>
<tr id="forena-6" frx:foreach="*">
<tr frx:foreach="*">
<td>{permission}</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
</html>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment