PluginProbe
User Access Manager / 1.1
User Access Manager v1.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
user-access-manager / tpl / groupSelectionForm.php

groupSelectionForm.php in User Access Manager 1.1, at tpl/groupSelectionForm.php

45 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * groupSelectionForm.php
4 *
5 * Shows the selection form.
6 *
7 * PHP versions 5
8 *
9 * @category UserAccessManager
10 * @package UserAccessManager
11 * @author Alexander Schneider <alexanderschneider85@googlemail.com>
12 * @copyright 2008-2010 Alexander Schneider
13 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2
14 * @version SVN: $Id$
15 * @link http://wordpress.org/extend/plugins/user-access-manager/
16 */
17 ?>
18 <ul class="uam_group_selection">
19 <?php
20 foreach ($uamUserGroups as $uamUserGroup) {
21 $addition = '';
22 $attributes = '';
23
24 if (array_key_exists($uamUserGroup->getId(), $userGroupsForObject)) {
25 $attributes .= 'checked="checked" ';
26 }
27
28 if (isset($userGroupsForObject[$uamUserGroup->getId()]->setRecursive[$objectType][$objectId])) {
29 $attributes .= 'disabled="" ';
30 $addition .= ' [LR]';
31 }
32
33 ?>
34 <li>
35 <label for="uam_usergroup-<?php echo $uamUserGroup->getId(); ?>" class="selectit" style="display:inline;" >
36 <input type="checkbox" id="uam_usergroup-<?php echo $uamUserGroup->getId(); ?>" <?php echo $attributes;?> value="<?php echo $uamUserGroup->getId(); ?>" name="uam_usergroups[]" />
37 <?php echo $uamUserGroup->getGroupName().$addition; ?>
38 </label>
39 <a class="uam_group_info_link">(<?php echo TXT_INFO; ?>)</a>
40 <?php include 'groupInfo.php'; ?>
41 </li>
42 <?php
43 }
44 ?>
45 </ul>