summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_usermanager_addprivs.php
diff options
context:
space:
mode:
authorMatthew Grooms <mgrooms@pfsense.org>2008-09-09 06:55:37 +0000
committerMatthew Grooms <mgrooms@pfsense.org>2008-09-09 06:55:37 +0000
commite30001cf1904c47885781f068261f895108fd00b (patch)
tree89bd1aa6fe5094a1b93f0d363e7510a79d9fb685 /usr/local/www/system_usermanager_addprivs.php
parent96c7a492be8dbc04a0d494a91522c3167c148abf (diff)
downloadpfsense-e30001cf1904c47885781f068261f895108fd00b.zip
pfsense-e30001cf1904c47885781f068261f895108fd00b.tar.gz
Cleanup the tab format of the system user/group/server management pages.
The edges were square instead of rounded like most pfSense pages. Also make sure tabs and cancel buttons are present in the add privilege and add certificate pages.
Diffstat (limited to 'usr/local/www/system_usermanager_addprivs.php')
-rw-r--r--usr/local/www/system_usermanager_addprivs.php93
1 files changed, 56 insertions, 37 deletions
diff --git a/usr/local/www/system_usermanager_addprivs.php b/usr/local/www/system_usermanager_addprivs.php
index 0214d63..8a7da15 100644
--- a/usr/local/www/system_usermanager_addprivs.php
+++ b/usr/local/www/system_usermanager_addprivs.php
@@ -139,43 +139,62 @@ function update_description() {
if ($savemsg)
print_info_box($savemsg);
?>
- <form action="system_usermanager_addprivs.php" method="post" name="iform" id="iform">
- <div id="inputerrors"></div>
- <table width="100%" border="0" cellpadding="6" cellspacing="0">
- <tr>
- <td width="22%" valign="top" class="vncellreq"><?=gettext("System Privileges");?></td>
- <td width="78%" class="vtable">
- <select name="sysprivs[]" id="sysprivs" class="formselect" onchange="update_description();" multiple>
- <?php
- foreach($priv_list as $pname => $pdata):
- if (in_array($pname, $a_user['priv']))
- continue;
- ?>
- <option value="<?=$pname;?>"><?=$pdata['name'];?></option>
- <?php endforeach; ?>
- </select>
- <br/>
- <?=gettext("Hold down CTRL (pc)/COMMAND (mac) key to select multiple items");?>
- </td>
- </tr>
- <tr height="60">
- <td width="22%" valign="top" class="vncell"><?=gettext("Description");?></td>
- <td width="78%" valign="top" class="vtable" id="pdesc">
- <em>Select a privilege from the list above for a description</em>
- </td>
- </tr>
- <tr>
- <td width="22%" valign="top">&nbsp;</td>
- <td width="78%">
- <input id="submitt" name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" />
- <input id="cancelbutton" class="formbtn" type="button" value="<?=gettext("Cancel");?>" onclick="history.back()" />
- <?php if (isset($userid)): ?>
- <input name="userid" type="hidden" value="<?=$userid;?>" />
- <?php endif; ?>
- </td>
- </tr>
- </table>
- </form>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td>
+ <?php
+ $tab_array = array();
+ $tab_array[] = array(gettext("Users"), true, "system_usermanager.php");
+ $tab_array[] = array(gettext("Groups"), false, "system_groupmanager.php");
+ $tab_array[] = array(gettext("Settings"), false, "system_usermanager_settings.php");
+ $tab_array[] = array(gettext("Servers"), false, "system_authservers.php");
+ display_top_tabs($tab_array);
+ ?>
+ </td>
+ </tr>
+ <tr>
+ <td id="mainarea">
+ <div class="tabcont">
+ <form action="system_usermanager_addprivs.php" method="post" name="iform" id="iform">
+ <table width="100%" border="0" cellpadding="6" cellspacing="0">
+ <tr>
+ <td width="22%" valign="top" class="vncellreq"><?=gettext("System Privileges");?></td>
+ <td width="78%" class="vtable">
+ <select name="sysprivs[]" id="sysprivs" class="formselect" onchange="update_description();" multiple>
+ <?php
+ foreach($priv_list as $pname => $pdata):
+ if (in_array($pname, $a_user['priv']))
+ continue;
+ ?>
+ <option value="<?=$pname;?>"><?=$pdata['name'];?></option>
+ <?php endforeach; ?>
+ </select>
+ <br/>
+ <?=gettext("Hold down CTRL (pc)/COMMAND (mac) key to select multiple items");?>
+ </td>
+ </tr>
+ <tr height="60">
+ <td width="22%" valign="top" class="vncell"><?=gettext("Description");?></td>
+ <td width="78%" valign="top" class="vtable" id="pdesc">
+ <em>Select a privilege from the list above for a description</em>
+ </td>
+ </tr>
+ <tr>
+ <td width="22%" valign="top">&nbsp;</td>
+ <td width="78%">
+ <input id="submitt" name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" />
+ <input id="cancelbutton" class="formbtn" type="button" value="<?=gettext("Cancel");?>" onclick="history.back()" />
+ <?php if (isset($userid)): ?>
+ <input name="userid" type="hidden" value="<?=$userid;?>" />
+ <?php endif; ?>
+ </td>
+ </tr>
+ </table>
+ </form>
+ </div>
+ </td>
+ </tr>
+</table>
<?php include("fend.inc"); ?>
</body>
</html>
OpenPOWER on IntegriCloud