Location: PHPKode > projects > simpleMVC > myGifts/skins/default/editUserForm.tpl
{mvc_form handler="saveUser" method="action" id=$object->id}
<table border="0">
<tr><td align="right">{$strings.LANG_NAME} : </td><td><input type="text" size="32" maxlength="32" name="name" value="{$object->name}" /></td></tr>
<tr><td align="right">{$strings.LANG_EMAIL} : </td><td><input type="text" size="32" maxlength="255" name="email" value="{$object->email}" /></td></tr>
{if $object->id == ""}
<tr><td align="right">{$strings.LANG_PASSWORD} : </td><td><input type="password" size="32 maxlength="32" name="password" /></td></tr>
{/if}
{if $user->accessLevel == 2}
<tr><td align="right">{$strings.LANG_ACCESS_LEVEL} : </td><td><select name="accessLevel"><option value="1">{$strings.LANG_ACCESS_LOGIN}</option><option value="2" {if $object->accessLevel == 2}selected="selected"{/if}>{$strings.LANG_ACCESS_ADMIN}</option></select></td></tr>
{/if}
<tr><td colspan="2" align="center"><input type="submit" value="{if $object->id != ""}{$strings.LANG_SAVE}{else}{$strings.LANG_ADD}{/if}" /></td></tr>
</table>
{/mvc_form}
Return current item: simpleMVC