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
user-access-manager / tpl / groupSelectionForm.php

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

46 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 <[email protected]>
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 <input type="hidden" name="uam_update_groups" value="true" />
19 <ul class="uam_group_selection">
20 <?php
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
34 ?>
35 <li>
36 <label for="uam_usergroup-<?php echo $uamUserGroup->getId(); ?>" class="selectit" style="display:inline;" >
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>
40 <a class="uam_group_info_link">(<?php echo TXT_INFO; ?>)</a>
41 <?php include 'groupInfo.php'; ?>
42 </li>
43 <?php
44 }
45 ?>
46 </ul>