Commit be92da6c authored by Jos Schellevis's avatar Jos Schellevis

Fixed some issue with user manager and enhanced gui parts

parent 6000388b
...@@ -474,7 +474,7 @@ function select_clicked() { ...@@ -474,7 +474,7 @@ function select_clicked() {
<td width="22%" valign="top" class="vncellreq"><?=gettext("Type");?></td> <td width="22%" valign="top" class="vncellreq"><?=gettext("Type");?></td>
<td width="78%" class="vtable"> <td width="78%" class="vtable">
<?php if (!isset($id)): ?> <?php if (!isset($id)): ?>
<select name='type' id='type' class="formselect" onchange='server_typechange()'> <select name='type' id='type' class="formselect selectpicker" data-style="btn-default" onchange='server_typechange()'>
<?php <?php
foreach ($auth_server_types as $typename => $typedesc ): foreach ($auth_server_types as $typename => $typedesc ):
$selected = ""; $selected = "";
...@@ -518,7 +518,7 @@ function select_clicked() { ...@@ -518,7 +518,7 @@ function select_clicked() {
<tr> <tr>
<td width="22%" valign="top" class="vncellreq"><?=gettext("Transport");?></td> <td width="22%" valign="top" class="vncellreq"><?=gettext("Transport");?></td>
<td width="78%" class="vtable"> <td width="78%" class="vtable">
<select name='ldap_urltype' id='ldap_urltype' class="formselect" onchange='ldap_urlchange()'> <select name='ldap_urltype' id='ldap_urltype' class="formselect selectpicker" data-style="btn-default" onchange='ldap_urlchange()'>
<?php <?php
foreach ($ldap_urltypes as $urltype => $urlport): foreach ($ldap_urltypes as $urltype => $urlport):
$selected = ""; $selected = "";
...@@ -534,7 +534,7 @@ function select_clicked() { ...@@ -534,7 +534,7 @@ function select_clicked() {
<td width="22%" valign="top" class="vncell"><?=gettext("Peer Certificate Authority"); ?></td> <td width="22%" valign="top" class="vncell"><?=gettext("Peer Certificate Authority"); ?></td>
<td width="78%" class="vtable"> <td width="78%" class="vtable">
<?php if (count($a_ca)): ?> <?php if (count($a_ca)): ?>
<select id='ldap_caref' name='ldap_caref' class="formselect"> <select id='ldap_caref' name='ldap_caref' class="formselect selectpicker" data-style="btn-default">
<?php <?php
foreach ($a_ca as $ca): foreach ($a_ca as $ca):
$selected = ""; $selected = "";
...@@ -554,7 +554,7 @@ function select_clicked() { ...@@ -554,7 +554,7 @@ function select_clicked() {
<tr> <tr>
<td width="22%" valign="top" class="vncellreq"><?=gettext("Protocol version");?></td> <td width="22%" valign="top" class="vncellreq"><?=gettext("Protocol version");?></td>
<td width="78%" class="vtable"> <td width="78%" class="vtable">
<select name='ldap_protver' id='ldap_protver' class="formselect"> <select name='ldap_protver' id='ldap_protver' class="formselect selectpicker" data-style="btn-default">
<?php <?php
foreach ($ldap_protvers as $version): foreach ($ldap_protvers as $version):
$selected = ""; $selected = "";
...@@ -571,9 +571,9 @@ function select_clicked() { ...@@ -571,9 +571,9 @@ function select_clicked() {
<td width="78%" class="vtable"> <td width="78%" class="vtable">
<table border="0" cellspacing="0" cellpadding="2" summary="search scope"> <table border="0" cellspacing="0" cellpadding="2" summary="search scope">
<tr> <tr>
<td><?=gettext("Level:");?> &nbsp;</td> <td><?=gettext("Level:");?></td>
<td> <td>
<select name='ldap_scope' id='ldap_scope' class="formselect"> <select name='ldap_scope' id='ldap_scope' class="formselect selectpicker" data-style="btn-default">
<?php <?php
foreach ($ldap_scopes as $scopename => $scopedesc): foreach ($ldap_scopes as $scopename => $scopedesc):
$selected = ""; $selected = "";
...@@ -586,7 +586,7 @@ function select_clicked() { ...@@ -586,7 +586,7 @@ function select_clicked() {
</td> </td>
</tr> </tr>
<tr> <tr>
<td><?=gettext("Base DN:");?> &nbsp;</td> <td><?=gettext("Base DN:");?></td>
<td> <td>
<input name="ldap_basedn" type="text" class="formfld unknown" id="ldap_basedn" size="40" value="<?=htmlspecialchars($pconfig['ldap_basedn']);?>"/> <input name="ldap_basedn" type="text" class="formfld unknown" id="ldap_basedn" size="40" value="<?=htmlspecialchars($pconfig['ldap_basedn']);?>"/>
</td> </td>
...@@ -672,7 +672,7 @@ function select_clicked() { ...@@ -672,7 +672,7 @@ function select_clicked() {
<tr> <tr>
<td width="22%" valign="top" class="vncell"><?=gettext("Initial Template");?></td> <td width="22%" valign="top" class="vncell"><?=gettext("Initial Template");?></td>
<td width="78%" class="vtable"> <td width="78%" class="vtable">
<select name='ldap_tmpltype' id='ldap_tmpltype' class="formselect" onchange='ldap_tmplchange()'> <select name='ldap_tmpltype' id='ldap_tmpltype' class="formselect selectpicker" data-style="btn-default" onchange='ldap_tmplchange()'>
<?php <?php
foreach ($ldap_templates as $tmplname => $tmpldata): foreach ($ldap_templates as $tmplname => $tmpldata):
$selected = ""; $selected = "";
...@@ -757,7 +757,7 @@ function select_clicked() { ...@@ -757,7 +757,7 @@ function select_clicked() {
<tr> <tr>
<td width="22%" valign="top" class="vncellreq"><?=gettext("Services offered");?></td> <td width="22%" valign="top" class="vncellreq"><?=gettext("Services offered");?></td>
<td width="78%" class="vtable"> <td width="78%" class="vtable">
<select name='radius_srvcs' id='radius_srvcs' class="formselect" onchange='radius_srvcschange()'> <select name='radius_srvcs' id='radius_srvcs' class="formselect selectpicker" data-style="btn-default" onchange='radius_srvcschange()'>
<?php <?php
foreach ($radius_srvcs as $srvcname => $srvcdesc): foreach ($radius_srvcs as $srvcname => $srvcdesc):
$selected = ""; $selected = "";
......
...@@ -166,7 +166,7 @@ include("head.inc"); ...@@ -166,7 +166,7 @@ include("head.inc");
?> ?>
<body link="#000000" vlink="#000000" alink="#000000" onload="<?= $jsevents["body"]["onload"] ?>"> <body onload="<?= $jsevents["body"]["onload"] ?>">
<?php include("fbegin.inc"); ?> <?php include("fbegin.inc"); ?>
<script type="text/javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
...@@ -360,13 +360,13 @@ function presubmit() { ...@@ -360,13 +360,13 @@ function presubmit() {
endif; endif;
if ($act != "new"): if ($act != "new"):
?> ?>
<th colspan="2" valign="top" class="vncell"><?=gettext("Assigned Privileges");?></th>
<tr> <tr>
<td width="22%" valign="top" class="vncell"><?=gettext("Assigned Privileges");?></td> <td colspan="2" class="vtable">
<td width="78%" class="vtable"> <table class="tabcont table table-striped" width="100%" border="0" cellpadding="0" cellspacing="0" summary="privileges">
<table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0" summary="privileges">
<tr> <tr>
<td width="40%" class="listhdrr"><?=gettext("Name");?></td> <td width="40%" class="listhdrr"><b><?=gettext("Name");?></b></td>
<td width="60%" class="listhdrr"><?=gettext("Description");?></td> <td width="60%" class="listhdrr"><b><?=gettext("Description");?></b></td>
<td class="list"></td> <td class="list"></td>
</tr> </tr>
<?php <?php
...@@ -388,7 +388,7 @@ function presubmit() { ...@@ -388,7 +388,7 @@ function presubmit() {
document.getElementById('groupid').value='<?=$id;?>'; document.getElementById('groupid').value='<?=$id;?>';
document.getElementById('act').value='<?php echo "delpriv";?>'; document.getElementById('act').value='<?php echo "delpriv";?>';
return confirm('<?=gettext("Do you really want to delete this privilege?");?>');" return confirm('<?=gettext("Do you really want to delete this privilege?");?>');"
title="<?=gettext("delete privilege");?>"><span class="glyphicon glyphicon-remove"></span></button> title="<?=gettext("delete privilege");?>" data-toggle="tooltip" data-placement="left" ><span class="glyphicon glyphicon-remove"></span></button>
</td> </td>
</tr> </tr>
<?php <?php
...@@ -400,7 +400,7 @@ function presubmit() { ...@@ -400,7 +400,7 @@ function presubmit() {
<td class="list" colspan="2"></td> <td class="list" colspan="2"></td>
<td class="list"> <td class="list">
<a href="system_groupmanager_addprivs.php?groupid=<?=htmlspecialchars($id)?>" class="btn btn-default btn-xs"> <a href="system_groupmanager_addprivs.php?groupid=<?=htmlspecialchars($id)?>" class="btn btn-default btn-xs">
<span class="glyphicon glyphicon-add"></span> <span class="glyphicon glyphicon-plus"></span>
</a> </a>
</td> </td>
......
...@@ -110,7 +110,7 @@ if(isAjax()) ...@@ -110,7 +110,7 @@ if(isAjax())
include("head.inc"); include("head.inc");
?> ?>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC" onload="<?= $jsevents["body"]["onload"] ?>"> <body onload="<?= $jsevents["body"]["onload"] ?>">
<?php include("fbegin.inc"); ?> <?php include("fbegin.inc"); ?>
<script type="text/javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
...@@ -141,15 +141,18 @@ function update_description() { ...@@ -141,15 +141,18 @@ function update_description() {
//]]> //]]>
</script> </script>
<?php
<section class="page-content-main">
<div class="container-fluid">
<div class="row">
<?php
if ($input_errors) if ($input_errors)
print_input_errors($input_errors); print_input_errors($input_errors);
if ($savemsg) if ($savemsg)
print_info_box($savemsg); print_info_box($savemsg);
?> ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="group manager add priveleges"> <section class="col-xs-12">
<tr>
<td>
<?php <?php
$tab_array = array(); $tab_array = array();
$tab_array[] = array(gettext("Users"), false, "system_usermanager.php"); $tab_array[] = array(gettext("Users"), false, "system_usermanager.php");
...@@ -158,18 +161,13 @@ function update_description() { ...@@ -158,18 +161,13 @@ function update_description() {
$tab_array[] = array(gettext("Servers"), false, "system_authservers.php"); $tab_array[] = array(gettext("Servers"), false, "system_authservers.php");
display_top_tabs($tab_array); display_top_tabs($tab_array);
?> ?>
</td> <div class="tab-content content-box col-xs-12">
</tr>
<tr>
<td id="mainarea">
<div class="tabcont">
<form action="system_groupmanager_addprivs.php" method="post" name="iform" id="iform"> <form action="system_groupmanager_addprivs.php" method="post" name="iform" id="iform">
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area"> <table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
<tr> <tr>
<td width="22%" valign="top" class="vncellreq"><?=gettext("System Privileges");?></td> <td width="22%" valign="top" class="vncellreq"><?=gettext("System Privileges");?><br /><a href='#' onClick="selectAll();">Select all</a></td>
<td width="78%" class="vtable"> <td width="78%" class="vtable">
<table>
<tr><td>
<select name="sysprivs[]" id="sysprivs" class="formselect" onchange="update_description();" multiple="multiple" size="35"> <select name="sysprivs[]" id="sysprivs" class="formselect" onchange="update_description();" multiple="multiple" size="35">
<?php <?php
foreach($priv_list as $pname => $pdata): foreach($priv_list as $pname => $pdata):
...@@ -181,8 +179,8 @@ function update_description() { ...@@ -181,8 +179,8 @@ function update_description() {
</select> </select>
<br /> <br />
<?=gettext("Hold down CTRL (pc)/COMMAND (mac) key to select multiple items");?> <?=gettext("Hold down CTRL (pc)/COMMAND (mac) key to select multiple items");?>
</td><td> </td>
<a href='#'onClick="selectAll();">Select all</a>
<script type="text/javascript"> <script type="text/javascript">
//<![CDATA[ //<![CDATA[
function selectAll() { function selectAll() {
...@@ -192,14 +190,9 @@ function update_description() { ...@@ -192,14 +190,9 @@ function update_description() {
options[i].selected = true; options[i].selected = true;
} }
} }
selectAll(); //selectAll();
//]]> //]]>
</script> </script>
<br />
</td>
</tr>
</table>
</td>
</tr> </tr>
<tr height="60"> <tr height="60">
<td width="22%" valign="top" class="vncell"><?=gettext("Description");?></td> <td width="22%" valign="top" class="vncell"><?=gettext("Description");?></td>
...@@ -210,8 +203,8 @@ function update_description() { ...@@ -210,8 +203,8 @@ function update_description() {
<tr> <tr>
<td width="22%" valign="top">&nbsp;</td> <td width="22%" valign="top">&nbsp;</td>
<td width="78%"> <td width="78%">
<input id="submitt" name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" /> <input id="submitt" name="Submit" type="submit" class="formbtn btn btn-primary" value="<?=gettext("Save");?>" />
<input id="cancelbutton" class="formbtn" type="button" value="<?=gettext("Cancel");?>" onclick="history.back()" /> <input id="cancelbutton" class="formbtn btn btn-default" type="button" value="<?=gettext("Cancel");?>" onclick="history.back()" />
<?php if (isset($groupid)): ?> <?php if (isset($groupid)): ?>
<input name="groupid" type="hidden" value="<?=htmlspecialchars($groupid);?>" /> <input name="groupid" type="hidden" value="<?=htmlspecialchars($groupid);?>" />
<?php endif; ?> <?php endif; ?>
...@@ -220,9 +213,11 @@ function update_description() { ...@@ -220,9 +213,11 @@ function update_description() {
</table> </table>
</form> </form>
</div> </div>
</td> </section>
</tr> </div>
</table> </div>
</section>
<?php include("fend.inc"); ?> <?php include("fend.inc"); ?>
</body> </body>
</html> </html>
...@@ -558,11 +558,11 @@ function sshkeyClicked(obj) { ...@@ -558,11 +558,11 @@ function sshkeyClicked(obj) {
</td> </td>
<td align="center" width="12%"> <td align="center" width="12%">
<br /> <br />
<a href="javascript:move_selected('notgroups','groups')" class="btn btn-default btn-xs" title="<?=gettext("Add Groups"); ?>"> <a href="javascript:move_selected('notgroups','groups')" class="btn btn-default btn-xs" data-toggle="tooltip" data-placement="left" title="<?=gettext("Add Groups"); ?>">
<span class="glyphicon glyphicon-arrow-right"></span> <span class="glyphicon glyphicon-arrow-right"></span>
</a> </a>
<br /><br /> <br /><br />
<a href="javascript:move_selected('groups','notgroups')" class="btn btn-default btn-xs" title="<?=gettext("Remove Groups"); ?>"> <a href="javascript:move_selected('groups','notgroups')" class="btn btn-default btn-xs" data-toggle="tooltip" data-placement="left" title="<?=gettext("Remove Groups"); ?>">
<span class="glyphicon glyphicon-arrow-left"></span> <span class="glyphicon glyphicon-arrow-left"></span>
</a> </a>
</td> </td>
...@@ -600,13 +600,17 @@ function sshkeyClicked(obj) { ...@@ -600,13 +600,17 @@ function sshkeyClicked(obj) {
if (isset($pconfig['uid'])): if (isset($pconfig['uid'])):
?> ?>
<tr> <tr>
<td width="22%" valign="top" class="vncell"><?=gettext("Effective Privileges");?></td> <th colspan="2">
<td width="78%" class="vtable"> <?=gettext("Effective Privileges");?>
<table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0" summary="privileges"> </th>
</tr>
<tr> <tr>
<td width="20%" class="listhdrr"><?=gettext("Inherited From");?></td> <td colspan="2" class="vtable">
<td width="30%" class="listhdrr"><?=gettext("Name");?></td> <table class="table table-striped" width="100%" border="0" cellpadding="0" cellspacing="0" summary="privileges">
<td width="40%" class="listhdrr"><?=gettext("Description");?></td> <tr>
<td width="20%" class="listhdrr"><b><?=gettext("Inherited From");?></b></td>
<td width="30%" class="listhdrr"><b><?=gettext("Name");?></b></td>
<td width="40%" class="listhdrr"><b><?=gettext("Description");?></b></td>
<td class="list"></td> <td class="list"></td>
</tr> </tr>
<?php <?php
...@@ -630,13 +634,13 @@ function sshkeyClicked(obj) { ...@@ -630,13 +634,13 @@ function sshkeyClicked(obj) {
<?php <?php
if (!$group): if (!$group):
?> ?>
<input type="image" name="delpriv[]" width="17" height="17" border="0" <button class="btn btn-default btn-xs" name="delpriv[]_x" width="17" height="17" border="0"
src="/themes/<?=$g['theme'];?>/images/icons/icon_x.gif" src="/themes/<?=$g['theme'];?>/images/icons/icon_x.gif"
onclick="document.getElementById('privid').value='<?=$i;?>'; onclick="document.getElementById('privid').value='<?=$i;?>';
document.getElementById('userid').value='<?=$id;?>'; document.getElementById('userid').value='<?=$id;?>';
document.getElementById('act').value='<?php echo "delpriv";?>'; document.getElementById('act').value='<?php echo "delpriv";?>';
return confirm('<?=gettext("Do you really want to delete this privilege?");?>');" return confirm('<?=gettext("Do you really want to delete this privilege?");?>');"
title="<?=gettext("delete privilege");?>" /> title="<?=gettext("delete privilege");?>" data-toggle="tooltip" data-placement="left"><span class="glyphicon glyphicon-remove"></span>
<?php <?php
endif; endif;
?> ?>
...@@ -652,8 +656,8 @@ function sshkeyClicked(obj) { ...@@ -652,8 +656,8 @@ function sshkeyClicked(obj) {
<tr> <tr>
<td class="list" colspan="3"></td> <td class="list" colspan="3"></td>
<td class="list"> <td class="list">
<a href="system_usermanager_addprivs.php?userid=<?=$id?>" class="btn btn-default"> <a href="system_usermanager_addprivs.php?userid=<?=$id?>" class="btn btn-xs btn-default">
<span class="glyphicon glyphicon-add"></span> <span class="glyphicon glyphicon-plus"></span>
</a> </a>
</td> </td>
</tr> </tr>
...@@ -697,20 +701,20 @@ function sshkeyClicked(obj) { ...@@ -697,20 +701,20 @@ function sshkeyClicked(obj) {
onclick="document.getElementById('certid').value='<?=$i;?>'; onclick="document.getElementById('certid').value='<?=$i;?>';
document.getElementById('userid').value='<?=$id;?>'; document.getElementById('userid').value='<?=$id;?>';
document.getElementById('act').value='<?php echo "expckey";?>';" document.getElementById('act').value='<?php echo "expckey";?>';"
title="<?=gettext("export private key");?>"><span class="glyphicon glyphicon-arrow-down"></span></button> title="<?=gettext("export private key");?>" data-toggle="tooltip" data-placement="left" ><span class="glyphicon glyphicon-arrow-down"></span></button>
<button type="submit" name="expcert[]" <button type="submit" name="expcert[]"
class="btn btn-default btn-xs" class="btn btn-default btn-xs"
onclick="document.getElementById('certid').value='<?=$i;?>'; onclick="document.getElementById('certid').value='<?=$i;?>';
document.getElementById('userid').value='<?=$id;?>'; document.getElementById('userid').value='<?=$id;?>';
document.getElementById('act').value='<?php echo "expcert";?>';" document.getElementById('act').value='<?php echo "expcert";?>';"
title="<?=gettext("export cert");?>"><span class="glyphicon glyphicon-arrow-down"></span></button> title="<?=gettext("export cert");?>" data-toggle="tooltip" data-placement="left" ><span class="glyphicon glyphicon-arrow-down"></span></button>
<button type="submit" name="delcert[]" <button type="submit" name="delcert[]"
class="btn btn-default btn-xs" class="btn btn-default btn-xs"
onclick="document.getElementById('certid').value='<?=$i;?>'; onclick="document.getElementById('certid').value='<?=$i;?>';
document.getElementById('userid').value='<?=$id;?>'; document.getElementById('userid').value='<?=$id;?>';
document.getElementById('act').value='<?php echo "delcert";?>'; document.getElementById('act').value='<?php echo "delcert";?>';
return confirm('<?=gettext("Do you really want to remove this certificate association?") .'\n'. gettext("(Certificate will not be deleted)");?>')" return confirm('<?=gettext("Do you really want to remove this certificate association?") .'\n'. gettext("(Certificate will not be deleted)");?>')"
title="<?=gettext("delete cert");?>"><span class="glyphicon glyphicon-remove"></span></button> title="<?=gettext("delete cert");?>" data-toggle="tooltip" data-placement="left" ><span class="glyphicon glyphicon-remove"></span></button>
</td> </td>
</tr> </tr>
<?php <?php
...@@ -880,7 +884,7 @@ function sshkeyClicked(obj) { ...@@ -880,7 +884,7 @@ function sshkeyClicked(obj) {
<button type="submit" name="addcert" <button type="submit" name="addcert"
class="btn btn-default btn-xs" class="btn btn-default btn-xs"
onclick="document.getElementById('act').value='<?php echo "new";?>';" onclick="document.getElementById('act').value='<?php echo "new";?>';"
title="<?=gettext("add user");?>"><span class="glyphicon glyphicon-plus"></span> title="<?=gettext("add user");?>" data-toggle="tooltip" data-placement="left" ><span class="glyphicon glyphicon-plus"></span>
</button> </button>
</td> </td>
</tr> </tr>
...@@ -936,7 +940,7 @@ function sshkeyClicked(obj) { ...@@ -936,7 +940,7 @@ function sshkeyClicked(obj) {
<button type="submit" name="edituser[]" class="btn btn-default btn-xs" <button type="submit" name="edituser[]" class="btn btn-default btn-xs"
onclick="document.getElementById('userid').value='<?=$i;?>'; onclick="document.getElementById('userid').value='<?=$i;?>';
document.getElementById('act').value='<?php echo "edit";?>';" document.getElementById('act').value='<?php echo "edit";?>';"
title="<?=gettext("edit user");?>" ><span class="glyphicon glyphicon-pencil"></span></button> title="<?=gettext("edit user");?>" data-toggle="tooltip" data-placement="left" ><span class="glyphicon glyphicon-pencil"></span></button>
<?php <?php
if($userent['scope'] != "system"): if($userent['scope'] != "system"):
?> ?>
...@@ -947,7 +951,7 @@ function sshkeyClicked(obj) { ...@@ -947,7 +951,7 @@ function sshkeyClicked(obj) {
document.getElementById('username').value='<?=$userent['name'];?>'; document.getElementById('username').value='<?=$userent['name'];?>';
document.getElementById('act').value='<?php echo "deluser";?>'; document.getElementById('act').value='<?php echo "deluser";?>';
return confirm('<?=gettext("Do you really want to delete this user?");?>');" return confirm('<?=gettext("Do you really want to delete this user?");?>');"
title="<?=gettext("delete user");?>"><span class="glyphicon glyphicon-remove"></span></button> title="<?=gettext("delete user");?>" data-toggle="tooltip" data-placement="left" ><span class="glyphicon glyphicon-remove"></span></button>
<?php <?php
endif; endif;
?> ?>
......
...@@ -128,15 +128,17 @@ function update_description() { ...@@ -128,15 +128,17 @@ function update_description() {
//]]> //]]>
</script> </script>
<?php
<section class="page-content-main">
<div class="container-fluid">
<div class="row">
<?php
if ($input_errors) if ($input_errors)
print_input_errors($input_errors); print_input_errors($input_errors);
if ($savemsg) if ($savemsg)
print_info_box($savemsg); print_info_box($savemsg);
?> ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="user manager add priveleges"> <section class="col-xs-12">
<tr>
<td>
<?php <?php
$tab_array = array(); $tab_array = array();
$tab_array[] = array(gettext("Users"), true, "system_usermanager.php"); $tab_array[] = array(gettext("Users"), true, "system_usermanager.php");
...@@ -145,13 +147,10 @@ function update_description() { ...@@ -145,13 +147,10 @@ function update_description() {
$tab_array[] = array(gettext("Servers"), false, "system_authservers.php"); $tab_array[] = array(gettext("Servers"), false, "system_authservers.php");
display_top_tabs($tab_array); display_top_tabs($tab_array);
?> ?>
</td>
</tr> <div class="tab-content content-box col-xs-12">
<tr>
<td id="mainarea">
<div class="tabcont">
<form action="system_usermanager_addprivs.php" method="post" name="iform" id="iform"> <form action="system_usermanager_addprivs.php" method="post" name="iform" id="iform">
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area"> <table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
<tr> <tr>
<td width="22%" valign="top" class="vncellreq"><?=gettext("System Privileges");?></td> <td width="22%" valign="top" class="vncellreq"><?=gettext("System Privileges");?></td>
<td width="78%" class="vtable"> <td width="78%" class="vtable">
...@@ -177,8 +176,8 @@ function update_description() { ...@@ -177,8 +176,8 @@ function update_description() {
<tr> <tr>
<td width="22%" valign="top">&nbsp;</td> <td width="22%" valign="top">&nbsp;</td>
<td width="78%"> <td width="78%">
<input id="submitt" name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" /> <input id="submitt" name="Submit" type="submit" class="formbtn btn btn-primary" value="<?=gettext("Save");?>" />
<input id="cancelbutton" class="formbtn" type="button" value="<?=gettext("Cancel");?>" onclick="history.back()" /> <input id="cancelbutton" class="formbtn btn btn-default" type="button" value="<?=gettext("Cancel");?>" onclick="history.back()" />
<?php if (isset($userid)): ?> <?php if (isset($userid)): ?>
<input name="userid" type="hidden" value="<?=htmlspecialchars($userid);?>" /> <input name="userid" type="hidden" value="<?=htmlspecialchars($userid);?>" />
<?php endif; ?> <?php endif; ?>
...@@ -187,9 +186,12 @@ function update_description() { ...@@ -187,9 +186,12 @@ function update_description() {
</table> </table>
</form> </form>
</div> </div>
</td> </section>
</tr> </div>
</table> </div>
</section>
<?php include("fend.inc"); ?> <?php include("fend.inc"); ?>
</body> </body>
</html> </html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment