| @@ 1173-1212 (lines=40) @@ | ||
| 1170 | <div class="cat_bar"> |
|
| 1171 | <h3 class="catbg">', $txt['showPermissions_general'], '</h3> |
|
| 1172 | </div>'; |
|
| 1173 | if (!empty($context['member']['permissions']['general'])) |
|
| 1174 | { |
|
| 1175 | echo ' |
|
| 1176 | <table class="table_grid"> |
|
| 1177 | <thead> |
|
| 1178 | <tr class="title_bar"> |
|
| 1179 | <th class="lefttext half_table">', $txt['showPermissions_permission'], '</th> |
|
| 1180 | <th class="lefttext half_table">', $txt['showPermissions_status'], '</th> |
|
| 1181 | </tr> |
|
| 1182 | </thead> |
|
| 1183 | <tbody>'; |
|
| 1184 | ||
| 1185 | foreach ($context['member']['permissions']['general'] as $permission) |
|
| 1186 | { |
|
| 1187 | echo ' |
|
| 1188 | <tr class="windowbg"> |
|
| 1189 | <td title="', $permission['id'], '"> |
|
| 1190 | ', $permission['is_denied'] ? '<del>' . $permission['name'] . '</del>' : $permission['name'], ' |
|
| 1191 | </td> |
|
| 1192 | <td class="smalltext">'; |
|
| 1193 | ||
| 1194 | if ($permission['is_denied']) |
|
| 1195 | echo ' |
|
| 1196 | <span class="alert">', $txt['showPermissions_denied'], ': ', implode(', ', $permission['groups']['denied']), '</span>'; |
|
| 1197 | else |
|
| 1198 | echo ' |
|
| 1199 | ', $txt['showPermissions_given'], ': ', implode(', ', $permission['groups']['allowed']); |
|
| 1200 | ||
| 1201 | echo ' |
|
| 1202 | </td> |
|
| 1203 | </tr>'; |
|
| 1204 | } |
|
| 1205 | echo ' |
|
| 1206 | </tbody> |
|
| 1207 | </table> |
|
| 1208 | </div><!-- .tborder --> |
|
| 1209 | <br>'; |
|
| 1210 | } |
|
| 1211 | else |
|
| 1212 | echo ' |
|
| 1213 | <p class="windowbg">', $txt['showPermissions_none_general'], '</p>'; |
|
| 1214 | ||
| 1215 | // Board permission section. |
|
| @@ 1239-1279 (lines=41) @@ | ||
| 1236 | </div><!-- .cat_bar --> |
|
| 1237 | </form>'; |
|
| 1238 | ||
| 1239 | if (!empty($context['member']['permissions']['board'])) |
|
| 1240 | { |
|
| 1241 | echo ' |
|
| 1242 | <table class="table_grid"> |
|
| 1243 | <thead> |
|
| 1244 | <tr class="title_bar"> |
|
| 1245 | <th class="lefttext half_table">', $txt['showPermissions_permission'], '</th> |
|
| 1246 | <th class="lefttext half_table">', $txt['showPermissions_status'], '</th> |
|
| 1247 | </tr> |
|
| 1248 | </thead> |
|
| 1249 | <tbody>'; |
|
| 1250 | ||
| 1251 | foreach ($context['member']['permissions']['board'] as $permission) |
|
| 1252 | { |
|
| 1253 | echo ' |
|
| 1254 | <tr class="windowbg"> |
|
| 1255 | <td title="', $permission['id'], '"> |
|
| 1256 | ', $permission['is_denied'] ? '<del>' . $permission['name'] . '</del>' : $permission['name'], ' |
|
| 1257 | </td> |
|
| 1258 | <td class="smalltext">'; |
|
| 1259 | ||
| 1260 | if ($permission['is_denied']) |
|
| 1261 | echo ' |
|
| 1262 | <span class="alert">', $txt['showPermissions_denied'], ': ', implode(', ', $permission['groups']['denied']), '</span>'; |
|
| 1263 | ||
| 1264 | else |
|
| 1265 | echo ' |
|
| 1266 | ', $txt['showPermissions_given'], ': ', implode(', ', $permission['groups']['allowed']); |
|
| 1267 | ||
| 1268 | echo ' |
|
| 1269 | </td> |
|
| 1270 | </tr>'; |
|
| 1271 | } |
|
| 1272 | echo ' |
|
| 1273 | </tbody> |
|
| 1274 | </table>'; |
|
| 1275 | } |
|
| 1276 | else |
|
| 1277 | echo ' |
|
| 1278 | <p class="windowbg">', $txt['showPermissions_none_board'], '</p>'; |
|
| 1279 | echo ' |
|
| 1280 | </div><!-- #permissions -->'; |
|
| 1281 | } |
|
| 1282 | } |
|