PluginProbe
User Access Manager / 1.0
User Access Manager v1.0
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 / categoryEditForm.php

categoryEditForm.php in User Access Manager 1.0, at tpl/categoryEditForm.php

75 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * categoryEditForm.php
4 *
5 * Shows the setup page at the admin panel.
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 global $userAccessManager;
19 $uamUserGroups
20 = &$userAccessManager->getAccessHandler()->getUserGroups();
21
22 $objectId = null;
23
24 if (isset($_GET['tag_ID'])) {
25 $objectId = $_GET['tag_ID'];
26
27 $userGroupsForObject
28 = &$userAccessManager->getAccessHandler()->getUserGroupsForCategory($objectId);
29 } else {
30 $userGroupsForObject = array();
31 }
32
33 ?>
34 <table class="form-table">
35 <tbody>
36 <tr>
37 <th>
38 <label for="description"><?php echo TXT_SET_UP_USERGROUPS; ?></label>
39 </th>
40 <td>
41 <?php
42 if (count($uamUserGroups) > 0) {
43 include 'groupSelectionForm.php';
44 } elseif ($userAccessManager->getAccessHandler()->checkUserAccess()) {
45 ?>
46 <a href='admin.php?page=uam_usergroup'><?php echo TXT_CREATE_GROUP_FIRST; ?></a>
47 <?php
48 } else {
49 echo TXT_NO_GROUP_AVAILABLE;
50 }
51 ?>
52 </td>
53 </tr>
54 </tbody>
55 </table>
56 <?php
57 if (isset($_GET['action'])) {
58 $action = $_GET['action'];
59 } else {
60 $action = null;
61 }
62
63 if ($action != 'edit') {
64 ?>
65 <style type="text/css">
66 .submit {
67 display: none;
68 position: relative;
69 }
70 </style>
71 <p class="submit" style="display: block; position: relative;">
72 <input class="button" type="submit" value="Add New Category" name="submit" />
73 </p>
74 <?php
75 }