Files
sysPass/inc/tpl/groups.php

65 lines
2.6 KiB
PHP

<?php
/**
* sysPass
*
* @author nuxsmin
* @link http://syspass.org
* @copyright 2012 Rubén Domínguez nuxsmin@syspass.org
*
* This file is part of sysPass.
*
* sysPass is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* sysPass is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with sysPass. If not, see <http://www.gnu.org/licenses/>.
*
*/
defined('APP_ROOT') || die(_('No es posible acceder directamente a este archivo'));
$group = SP_Users::getGroupData($data['itemid']);
$activeTab = $data['active'];
?>
<div id="fancyContainer" align="center">
<h2 class="midround"><?php echo $data['header']; ?></H2>
<form method="post" name="frmGroups" id="frmGroups">
<table class="fancydata">
<tbody>
<tr>
<td class="descField"><? echo _('Nombre'); ?></td>
<td class="valField">
<input type="text" id="grpname" name="name" title="<? echo _('Nombre del grupo'); ?>" value="<? echo $group["usergroup_name"] ?>" />
</td>
</tr>
<tr>
<td class="descField"><? echo _('Descripción'); ?></td>
<td class="valField"><input type="text" id="grpdesc" name="description" title="<? echo _('Descripción del grupo'); ?>" value="<? echo $group["usergroup_description"]; ?>" />
</td>
</tr>
</tbody>
</table>
<input type="hidden" name="active" value="<? echo $activeTab ?>" />
<input type="hidden" name="id" value="<? echo $group["usergroup_id"]; ?>" />
<input type="hidden" name="action" value="<? echo $group["action"] ?>" />
<input type="hidden" name="type" value="<?php echo $data['itemtype']; ?>" />
<input type="hidden" name="sk" value="<? echo SP_Common::getSessionKey(TRUE) ?>">
<input type="hidden" name="is_ajax" value="1">
</form>
<div id="resCheck"><span id="resFancyAccion"></span></div>
<div class="action-in-box">
<ul>
<li><img src="imgs/check.png" title="<?php echo _('Guardar'); ?>" class="inputImg" OnClick="usersMgmt('frmGroups');" /></li>
</ul>
</div>
</div>