| @@ 1139-1178 (lines=40) @@ | ||
| 1136 | <div class="cat_bar"> |
|
| 1137 | <h3 class="catbg">', $txt['showPermissions_general'], '</h3> |
|
| 1138 | </div>'; |
|
| 1139 | if (!empty($context['member']['permissions']['general'])) |
|
| 1140 | { |
|
| 1141 | echo ' |
|
| 1142 | <table class="table_grid"> |
|
| 1143 | <thead> |
|
| 1144 | <tr class="title_bar"> |
|
| 1145 | <th class="lefttext half_table">', $txt['showPermissions_permission'], '</th> |
|
| 1146 | <th class="lefttext half_table">', $txt['showPermissions_status'], '</th> |
|
| 1147 | </tr> |
|
| 1148 | </thead> |
|
| 1149 | <tbody>'; |
|
| 1150 | ||
| 1151 | foreach ($context['member']['permissions']['general'] as $permission) |
|
| 1152 | { |
|
| 1153 | echo ' |
|
| 1154 | <tr class="windowbg"> |
|
| 1155 | <td title="', $permission['id'], '"> |
|
| 1156 | ', $permission['is_denied'] ? '<del>' . $permission['name'] . '</del>' : $permission['name'], ' |
|
| 1157 | </td> |
|
| 1158 | <td class="smalltext">'; |
|
| 1159 | ||
| 1160 | if ($permission['is_denied']) |
|
| 1161 | echo ' |
|
| 1162 | <span class="alert">', $txt['showPermissions_denied'], ': ', implode(', ', $permission['groups']['denied']), '</span>'; |
|
| 1163 | else |
|
| 1164 | echo ' |
|
| 1165 | ', $txt['showPermissions_given'], ': ', implode(', ', $permission['groups']['allowed']); |
|
| 1166 | ||
| 1167 | echo ' |
|
| 1168 | </td> |
|
| 1169 | </tr>'; |
|
| 1170 | } |
|
| 1171 | echo ' |
|
| 1172 | </tbody> |
|
| 1173 | </table> |
|
| 1174 | </div><!-- .tborder --> |
|
| 1175 | <br>'; |
|
| 1176 | } |
|
| 1177 | else |
|
| 1178 | echo ' |
|
| 1179 | <p class="windowbg2">', $txt['showPermissions_none_general'], '</p>'; |
|
| 1180 | ||
| 1181 | // Board permission section. |
|
| @@ 1203-1243 (lines=41) @@ | ||
| 1200 | </h3> |
|
| 1201 | </div><!-- .cat_bar --> |
|
| 1202 | </form>'; |
|
| 1203 | if (!empty($context['member']['permissions']['board'])) |
|
| 1204 | { |
|
| 1205 | echo ' |
|
| 1206 | <table class="table_grid"> |
|
| 1207 | <thead> |
|
| 1208 | <tr class="title_bar"> |
|
| 1209 | <th class="lefttext half_table">', $txt['showPermissions_permission'], '</th> |
|
| 1210 | <th class="lefttext half_table">', $txt['showPermissions_status'], '</th> |
|
| 1211 | </tr> |
|
| 1212 | </thead> |
|
| 1213 | <tbody>'; |
|
| 1214 | foreach ($context['member']['permissions']['board'] as $permission) |
|
| 1215 | { |
|
| 1216 | echo ' |
|
| 1217 | <tr class="windowbg"> |
|
| 1218 | <td title="', $permission['id'], '"> |
|
| 1219 | ', $permission['is_denied'] ? '<del>' . $permission['name'] . '</del>' : $permission['name'], ' |
|
| 1220 | </td> |
|
| 1221 | <td class="smalltext">'; |
|
| 1222 | ||
| 1223 | if ($permission['is_denied']) |
|
| 1224 | { |
|
| 1225 | echo ' |
|
| 1226 | <span class="alert">', $txt['showPermissions_denied'], ': ', implode(', ', $permission['groups']['denied']), '</span>'; |
|
| 1227 | } |
|
| 1228 | else |
|
| 1229 | { |
|
| 1230 | echo ' |
|
| 1231 | ', $txt['showPermissions_given'], ': ', implode(', ', $permission['groups']['allowed']); |
|
| 1232 | } |
|
| 1233 | echo ' |
|
| 1234 | </td> |
|
| 1235 | </tr>'; |
|
| 1236 | } |
|
| 1237 | echo ' |
|
| 1238 | </tbody> |
|
| 1239 | </table>'; |
|
| 1240 | } |
|
| 1241 | else |
|
| 1242 | echo ' |
|
| 1243 | <p class="windowbg2">', $txt['showPermissions_none_board'], '</p>'; |
|
| 1244 | echo ' |
|
| 1245 | </div><!-- #permissions -->'; |
|
| 1246 | } |
|