mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
- removed group settings from roles
- added forum icon in front of forums in permissions acp - added trace permissions in permission masks (thanks naderman for writing the first code and for the idea... :)) - some bugfixes - PHP6 fix git-svn-id: file:///svn/phpbb/trunk@5824 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -70,13 +70,6 @@
|
||||
<dt><label for="role_description">{L_ROLE_DESCRIPTION}:</label><br /><span>{L_ROLE_DESCRIPTION_EXPLAIN}</span></dt>
|
||||
<dd><textarea id="role_description" name="role_description" rows="3" cols="45">{ROLE_DESCRIPTION}</textarea></dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt><label for="pre_select">{L_DISPLAY_FOR_GROUP}:</label><br /><span>{L_DISPLAY_FOR_GROUP_EXPLAIN}</span></dt>
|
||||
<dd><select name="pre_select" id="pre_select" onchange="if(this.value=='custom'){dE('custom_group',1);}else{dE('custom_group',-1);}">{S_PRESELECT_OPTIONS}</select></dd>
|
||||
<dd id="custom_group"<!-- IF not S_CUSTOM_GROUP_IDS --> style="display:none;"<!-- ENDIF -->>
|
||||
<select name="role_group_ids[]" id="role_group_id" style="width: 100%;" multiple="multiple" size="10">{S_GROUP_OPTIONS}</select>
|
||||
</dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="quick">
|
||||
@@ -180,7 +173,6 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 50%">{L_ROLE_NAME}</th>
|
||||
<th>{L_DISPLAY_FOR_GROUP}</th>
|
||||
<th colspan="2">{L_OPTIONS}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -190,18 +182,6 @@
|
||||
<td style="vertical-align: top;"><b>{roles.ROLE_NAME}</b>
|
||||
<!-- IF roles.ROLE_DESCRIPTION --><br /><span>{roles.ROLE_DESCRIPTION}</span><!-- ENDIF -->
|
||||
</td>
|
||||
<td style="vertical-align: top;">
|
||||
<!-- IF roles.S_GROUP -->
|
||||
<!-- a href="{roles.groups.U_GROUP}">{roles.groups.GROUP_NAME}</a><br / -->
|
||||
<select name="r_groups">
|
||||
<!-- BEGIN groups -->
|
||||
<option<!-- IF roles.groups.S_SPECIAL_GROUP --> class="sep"<!-- ENDIF -->>{roles.groups.GROUP_NAME}</option>
|
||||
<!-- END groups -->
|
||||
</select>
|
||||
<!-- ELSE -->
|
||||
{L_EVERY_USER_GROUP}
|
||||
<!-- ENDIF -->
|
||||
</td>
|
||||
<td style="vertical-align: top; white-space: nowrap;"><!-- IF roles.U_DISPLAY_ITEMS --><a href="{roles.U_DISPLAY_ITEMS}">{L_VIEW_ASSIGNED_ITEMS}</a><!-- ELSE -->{L_VIEW_ASSIGNED_ITEMS}<!-- ENDIF --></td>
|
||||
<td style="vertical-align: top; white-space: nowrap;">
|
||||
<!-- IF not roles.S_FIRST_ROW --><a href="{roles.U_MOVE_UP}"><img src="images/icon_up.gif" alt="{L_MOVE_UP}" title="{L_MOVE_UP}" width="16" height="16" /></a> <!-- ENDIF -->
|
||||
|
@@ -347,7 +347,7 @@
|
||||
<script type="text/javascript" src="style/tooltip.js"></script>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
window.onload = function(){enable_tooltips_select('set_permissions', 'Role Description', 'role')};
|
||||
window.onload = function(){enable_tooltips_select('set_permissions', '{L_ROLE_DESCRIPTION}', 'role')};
|
||||
//-->
|
||||
</script>
|
||||
|
||||
|
@@ -24,7 +24,7 @@ function jumpto()
|
||||
|
||||
if (page !== null && !isNaN(page) && page > 0)
|
||||
{
|
||||
document.location.href = base_url.replace('&', '&') + '&start=' + ((page - 1) * per_page);
|
||||
document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,6 +71,12 @@ function marklist(id, name, state)
|
||||
}
|
||||
}
|
||||
|
||||
function trace(link)
|
||||
{
|
||||
window.open(link, '_trace', 'height=515, resizable=yes, scrollbars=yes, width=680');
|
||||
return false;
|
||||
}
|
||||
|
||||
<!-- IF S_INCLUDE_SWATCH -->
|
||||
function swatch()
|
||||
{
|
||||
|
@@ -150,7 +150,7 @@
|
||||
<!-- IF not p_mask.S_VIEW --><input type="checkbox" name="inherit[{p_mask.f_mask.UG_ID}][{p_mask.f_mask.FORUM_ID}]" value="1" /><!-- ELSE --> <!-- ENDIF -->
|
||||
</span>
|
||||
</td>
|
||||
<td>{p_mask.f_mask.PADDING}<a href="javascript:swap_options('{p_mask.S_ROW_COUNT}', '{p_mask.f_mask.S_ROW_COUNT}', '0');">{p_mask.f_mask.NAME}</a></span></td>
|
||||
<td>{p_mask.f_mask.PADDING}<!-- IF p_mask.f_mask.FOLDER_IMAGE --> {p_mask.f_mask.FOLDER_IMAGE} <!-- ENDIF --><a href="javascript:swap_options('{p_mask.S_ROW_COUNT}', '{p_mask.f_mask.S_ROW_COUNT}', '0');">{p_mask.f_mask.NAME}</a></span></td>
|
||||
<td style="text-align: right;">
|
||||
<!-- IF p_mask.S_VIEW -->
|
||||
|
||||
@@ -219,7 +219,7 @@
|
||||
<tbody>
|
||||
<!-- BEGIN mask -->
|
||||
<!-- IF p_mask.f_mask.category.mask.S_ROW_COUNT is even --><tr class="row4"><!-- ELSE --><tr class="row3"><!-- ENDIF -->
|
||||
<th>{p_mask.f_mask.category.mask.PERMISSION}</th>
|
||||
<th><!-- IF p_mask.f_mask.category.mask.U_TRACE --><a href="#" onclick="javascript:trace('{p_mask.f_mask.category.mask.U_TRACE}')" title="{L_TRACE_SETTING}"><img src="images/icon_trace.gif" alt="{L_TRACE_SETTING}" /></a> <!-- ENDIF -->{p_mask.f_mask.category.mask.PERMISSION}</th>
|
||||
<!-- IF p_mask.S_VIEW -->
|
||||
<td<!-- IF p_mask.f_mask.category.mask.S_YES --> class="yes"<!-- ELSE --> class="unset"<!-- ENDIF -->> </td>
|
||||
<td<!-- IF p_mask.f_mask.category.mask.S_NO --> class="no"<!-- ELSE --> class="unset"<!-- ENDIF -->> </td>
|
||||
|
49
phpBB/adm/style/permission_trace.html
Normal file
49
phpBB/adm/style/permission_trace.html
Normal file
@@ -0,0 +1,49 @@
|
||||
<!-- INCLUDE simple_header.html -->
|
||||
|
||||
<div style="background-color: #fff; padding: 10px; margin-top: 10px;" class="permissions">
|
||||
|
||||
<h3>Trace for: {PERMISSION_USERNAME} / {PERMISSION}</h3>
|
||||
|
||||
<br />
|
||||
|
||||
<table cellspacing="1" class="type1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Who</th>
|
||||
<th style="width: 50px;">Setting</th>
|
||||
<th style="width: 50px;">Total</th>
|
||||
<th>Information</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<!-- BEGIN trace -->
|
||||
<!-- IF trace.S_ROW_COUNT is even --><tr class="row4"><!-- ELSE --><tr class="row3"><!-- ENDIF -->
|
||||
<td style="white-space: nowrap;"><strong>{trace.WHO}</strong></td>
|
||||
|
||||
<!-- IF trace.S_SETTING_NO -->
|
||||
<td class="no">{L_ACL_NO}</td>
|
||||
<!-- ELSEIF trace.S_SETTING_YES -->
|
||||
<td class="yes">{L_ACL_YES}</td>
|
||||
<!-- ELSE -->
|
||||
<td class="unset">{L_ACL_UNSET}</td>
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF trace.S_TOTAL_NO -->
|
||||
<td class="no">{L_ACL_NO}</td>
|
||||
<!-- ELSEIF trace.S_TOTAL_YES -->
|
||||
<td class="yes">{L_ACL_YES}</td>
|
||||
<!-- ELSE -->
|
||||
<td class="unset">{L_ACL_UNSET}</td>
|
||||
<!-- ENDIF -->
|
||||
|
||||
<td>{trace.INFORMATION}</td>
|
||||
</tr>
|
||||
<!-- END trace -->
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<!-- INCLUDE simple_footer.html -->
|
||||
|
||||
</div>
|
@@ -24,7 +24,7 @@ function jumpto()
|
||||
|
||||
if (page !== null && !isNaN(page) && page > 0)
|
||||
{
|
||||
document.location.href = base_url.replace('&', '&') + '&start=' + ((page - 1) * per_page);
|
||||
document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user