PluginProbe
User Access Manager / 1.1.1
User Access Manager v1.1.1
2.3.20 2.3.19 2.3.18 2.3.17 2.3.16 2.3.15 2.3.14 2.3.13 trunk 0.6 0.6.1 0.6.2 0.7 0.7 Beta 0.7.0.1 0.8 0.8.0.1 0.8.0.2 0.9 0.9.1 0.9.1.1 0.9.1.2 0.9.1.3 0.9.1.4 1.0 All 136 releases
← All changes | tpl/groupSelectionForm.php +17 -18 1.0 → 1.1.1 View file →
@@ -14,31 +14,30 @@
14 14 * @version SVN: $Id$
15 15 * @link http://wordpress.org/extend/plugins/user-access-manager/
16 16 */
17 17 ?>
18 +<input type="hidden" name="uam_update_groups" value="true" />
18 19 <ul class="uam_group_selection">
19 -<?php
20 +<?php
20 21 foreach ($uamUserGroups as $uamUserGroup) {
22 + $addition = '';
23 + $attributes = '';
24 +
25 + if (array_key_exists($uamUserGroup->getId(), $userGroupsForObject)) {
26 + $attributes .= 'checked="checked" ';
27 + }
28 +
29 + if (isset($userGroupsForObject[$uamUserGroup->getId()]->setRecursive[$objectType][$objectId])) {
30 + $attributes .= 'disabled="" ';
31 + $addition .= ' [LR]';
32 + }
33 +
21 34 ?>
22 35 <li>
23 36 <label for="uam_usergroup-<?php echo $uamUserGroup->getId(); ?>" class="selectit" style="display:inline;" >
24 - <input type="checkbox" id="uam_usergroup-<?php echo $uamUserGroup->getId(); ?>"
25 - <?php
26 - if (array_key_exists($uamUserGroup->getId(), $userGroupsForObject)) {
27 - echo 'checked="checked"';
28 - }
29 -
30 - if (isset($userGroupsForObject[$uamUserGroup->getId()]->setRecursive[$objectId])) {
31 - echo 'disabled=""';
32 - }
33 - ?>
34 - value="<?php echo $uamUserGroup->getId(); ?>" name="usergroups[]" /><?php
35 - echo $uamUserGroup->getGroupName();
36 -
37 - if (isset($userGroupsForObject[$uamUserGroup->getId()]->setRecursive[$objectId])) {
38 - echo ' [LR]';
39 - }
40 - ?></label>
37 + <input type="checkbox" id="uam_usergroup-<?php echo $uamUserGroup->getId(); ?>" <?php echo $attributes;?> value="<?php echo $uamUserGroup->getId(); ?>" name="uam_usergroups[]" />
38 + <?php echo $uamUserGroup->getGroupName().$addition; ?>
39 + </label>
41 40 <a class="uam_group_info_link">(<?php echo TXT_INFO; ?>)</a>
42 41 <?php include 'groupInfo.php'; ?>
43 42 </li>
44 43 <?php