126 lines
4.4 KiB
PHP
126 lines
4.4 KiB
PHP
<?php
|
|
/* Smarty version 3.1.30, created on 2021-07-22 14:26:32
|
|
from "/home/www/_rejestracja/Admin/template/partial/User/Edit.tpl" */
|
|
|
|
/* @var Smarty_Internal_Template $_smarty_tpl */
|
|
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
|
'version' => '3.1.30',
|
|
'unifunc' => 'content_60f963f87b89c1_65016615',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'1df616c1b07927c2103b314b1ece881ba62c166a' =>
|
|
array (
|
|
0 => '/home/www/_rejestracja/Admin/template/partial/User/Edit.tpl',
|
|
1 => 1331764780,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
),
|
|
),false)) {
|
|
function content_60f963f87b89c1_65016615 (Smarty_Internal_Template $_smarty_tpl) {
|
|
if (!is_callable('smarty_function_url')) require_once '/home/www/_rejestracja/core/plugins/Smarty/function.url.php';
|
|
?>
|
|
<div class="panelRightTop"></div>
|
|
<div class="panelRightBody">
|
|
<div class="paddedContent">
|
|
<div class="panelContentTop"><h2><a href="#" class="long">Edycja użytkownika: <?php echo $_smarty_tpl->tpl_vars['userData']->value->GetLogin();?>
|
|
</a></h2></div>
|
|
<div class="panelContentBody">
|
|
|
|
|
|
|
|
|
|
<form action="<?php echo smarty_function_url(array('User'=>'Edit','id'=>$_smarty_tpl->tpl_vars['userData']->value->GetId()),$_smarty_tpl);?>
|
|
" method="post">
|
|
|
|
<input class="input" type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['userData']->value->GetId();?>
|
|
"/>
|
|
<input class="input" type="hidden" name="login" value="<?php echo $_smarty_tpl->tpl_vars['userData']->value->GetLogin();?>
|
|
" />
|
|
<br />
|
|
<table class="maintable" cellpadding="0" cellspacing="0" >
|
|
|
|
<tr><td class="header" colspan="2">Logowanie</td></tr>
|
|
<tr>
|
|
<td width="120">Login*: </td>
|
|
<td> <?php echo $_smarty_tpl->tpl_vars['userData']->value->GetLogin();?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Hasło*: </td>
|
|
<td><input class="input" type="password" name="password" />
|
|
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['password'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['password'];?>
|
|
</div><?php }?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Powtórz hasło*: </td><td><input class="input" type="password" name="passwordconf" />
|
|
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['passwordconf'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['passwordconf'];?>
|
|
</div><?php }?>
|
|
<?php if (isset($_smarty_tpl->tpl_vars['error']->value['passwordconfDif'])) {?><div style="color: red;" id="actionError"><?php echo $_smarty_tpl->tpl_vars['error']->value['passwordconfDif'];?>
|
|
</div><?php }?>
|
|
</td>
|
|
</tr>
|
|
<tr><td class="header" colspan="2">Dane osobowe</td></tr>
|
|
<tr>
|
|
<td>Imię*</td><td><input class="input" type="text" name="firstName" value="<?php echo $_smarty_tpl->tpl_vars['userData']->value->GetFirstName();?>
|
|
" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Nazwisko*</td><td><input class="input" type="text" name="lastName" value="<?php echo $_smarty_tpl->tpl_vars['userData']->value->GetLastName();?>
|
|
" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Email*: </td><td><input class="input" type="text" name="email" value="<?php echo $_smarty_tpl->tpl_vars['userData']->value->GetEmail();?>
|
|
" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Opis: </td><td><textarea class="input" name="description" ><?php echo $_smarty_tpl->tpl_vars['userData']->value->GetDescription();?>
|
|
</textarea></td>
|
|
</tr>
|
|
<tr><td class="header" colspan="2">Uprawnienia</td></tr>
|
|
<tr>
|
|
<td>Rola: </td><td>
|
|
<select class="input" style="width: 100px;" name="role">
|
|
<?php
|
|
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['userRole']->value, 'role');
|
|
if ($_from !== null) {
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['role']->value) {
|
|
?>
|
|
<option value="<?php echo $_smarty_tpl->tpl_vars['role']->value['role'];?>
|
|
" <?php if ($_smarty_tpl->tpl_vars['role']->value['role'] == $_smarty_tpl->tpl_vars['userData']->value->GetRole()) {?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['role']->value['role'];?>
|
|
</option>
|
|
<?php
|
|
}
|
|
}
|
|
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
|
|
?>
|
|
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td></td><td><input type="submit" name="userEdit" value="Zapisz" /></td>
|
|
</tr>
|
|
</table>
|
|
<div id="messages"></div>
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|
|
<div class="panelContentBottom"></div>
|
|
</div>
|
|
</div>
|
|
<div class="panelRightBottom">
|
|
<div class="panelButtons">
|
|
|
|
</div>
|
|
|
|
</div><?php }
|
|
}
|