| @@ 1090-1129 (lines=40) @@ | ||
| 1087 | <div class="cat_bar"> |
|
| 1088 | <h3 class="catbg">', $txt['showPermissions_general'], '</h3> |
|
| 1089 | </div>'; |
|
| 1090 | if (!empty($context['member']['permissions']['general'])) |
|
| 1091 | { |
|
| 1092 | echo ' |
|
| 1093 | <table class="table_grid"> |
|
| 1094 | <thead> |
|
| 1095 | <tr class="title_bar"> |
|
| 1096 | <th class="lefttext half_table">', $txt['showPermissions_permission'], '</th> |
|
| 1097 | <th class="lefttext half_table">', $txt['showPermissions_status'], '</th> |
|
| 1098 | </tr> |
|
| 1099 | </thead> |
|
| 1100 | <tbody>'; |
|
| 1101 | ||
| 1102 | foreach ($context['member']['permissions']['general'] as $permission) |
|
| 1103 | { |
|
| 1104 | echo ' |
|
| 1105 | <tr class="windowbg"> |
|
| 1106 | <td title="', $permission['id'], '"> |
|
| 1107 | ', $permission['is_denied'] ? '<del>' . $permission['name'] . '</del>' : $permission['name'], ' |
|
| 1108 | </td> |
|
| 1109 | <td class="smalltext">'; |
|
| 1110 | ||
| 1111 | if ($permission['is_denied']) |
|
| 1112 | echo ' |
|
| 1113 | <span class="alert">', $txt['showPermissions_denied'], ': ', implode(', ', $permission['groups']['denied']), '</span>'; |
|
| 1114 | else |
|
| 1115 | echo ' |
|
| 1116 | ', $txt['showPermissions_given'], ': ', implode(', ', $permission['groups']['allowed']); |
|
| 1117 | ||
| 1118 | echo ' |
|
| 1119 | </td> |
|
| 1120 | </tr>'; |
|
| 1121 | } |
|
| 1122 | echo ' |
|
| 1123 | </tbody> |
|
| 1124 | </table> |
|
| 1125 | </div><br>'; |
|
| 1126 | } |
|
| 1127 | else |
|
| 1128 | echo ' |
|
| 1129 | <p class="windowbg2">', $txt['showPermissions_none_general'], '</p>'; |
|
| 1130 | ||
| 1131 | // Board permission section. |
|
| 1132 | echo ' |
|
| @@ 1153-1193 (lines=41) @@ | ||
| 1150 | </h3> |
|
| 1151 | </div> |
|
| 1152 | </form>'; |
|
| 1153 | if (!empty($context['member']['permissions']['board'])) |
|
| 1154 | { |
|
| 1155 | echo ' |
|
| 1156 | <table class="table_grid"> |
|
| 1157 | <thead> |
|
| 1158 | <tr class="title_bar"> |
|
| 1159 | <th class="lefttext half_table">', $txt['showPermissions_permission'], '</th> |
|
| 1160 | <th class="lefttext half_table">', $txt['showPermissions_status'], '</th> |
|
| 1161 | </tr> |
|
| 1162 | </thead> |
|
| 1163 | <tbody>'; |
|
| 1164 | foreach ($context['member']['permissions']['board'] as $permission) |
|
| 1165 | { |
|
| 1166 | echo ' |
|
| 1167 | <tr class="windowbg"> |
|
| 1168 | <td title="', $permission['id'], '"> |
|
| 1169 | ', $permission['is_denied'] ? '<del>' . $permission['name'] . '</del>' : $permission['name'], ' |
|
| 1170 | </td> |
|
| 1171 | <td class="smalltext">'; |
|
| 1172 | ||
| 1173 | if ($permission['is_denied']) |
|
| 1174 | { |
|
| 1175 | echo ' |
|
| 1176 | <span class="alert">', $txt['showPermissions_denied'], ': ', implode(', ', $permission['groups']['denied']), '</span>'; |
|
| 1177 | } |
|
| 1178 | else |
|
| 1179 | { |
|
| 1180 | echo ' |
|
| 1181 | ', $txt['showPermissions_given'], ': ', implode(', ', $permission['groups']['allowed']); |
|
| 1182 | } |
|
| 1183 | echo ' |
|
| 1184 | </td> |
|
| 1185 | </tr>'; |
|
| 1186 | } |
|
| 1187 | echo ' |
|
| 1188 | </tbody> |
|
| 1189 | </table>'; |
|
| 1190 | } |
|
| 1191 | else |
|
| 1192 | echo ' |
|
| 1193 | <p class="windowbg2">', $txt['showPermissions_none_board'], '</p>'; |
|
| 1194 | echo ' |
|
| 1195 | </div> |
|
| 1196 | </div>'; |
|