Location: PHPKode > projects > Php4dvd - movie database > php4dvd/tpl/default/users/user.html
<div>
	<div style="float: right">
		[<a href="./?go=users">Back</a>]
	</div>
	
	<h2>Edit {$theuser->username}</h2>
	
	<form name="profileform" method="POST" onsubmit="if(verify(this)) return true; else alert('Some fields are not filled in correctly!'); return false;">
	<table>
		<tr id="tr_username">
			<td nowrap>			
				User name:
			</td>
			<td>
				<input type="text" name="username" id="text_username_1" value="{$theuser->username|replace:"\"":"&quot;"}" class="textfield" disabled style="width: 100px;">
			</td>
		</tr>
		<tr id="tr_password">
			<td nowrap>			
				Password:
			</td>
			<td>
				<input type="password" name="password" id="text_password_0" value="" class="textfield" style="width: 100px;">
			</td>
		</tr>
		<tr id="tr_password2">
			<td nowrap>			
				Password (again):
			</td>
			<td>
				<input type="password" name="password2" id="text_password2_0" value="" class="textfield" style="width: 100px;">
			</td>
		</tr>
		<tr id="tr_email">
			<td nowrap>			
				E-mail:
			</td>
			<td>
				<input type="text" name="email" id="email_email_1" value="{$theuser->email|replace:"\"":"&quot;"}" class="textfield" style="width: 200px;">
				{if $theuser->username == "admin"}
				<input type="hidden" name="update" value="0">
				<input type="submit" name="submit" value="update" class="button">
				{/if}
			</td>
		</tr>
		{if $theuser->username != "admin"}
		<tr id="tr_permission">
			<td nowrap>			
				Permissions:
			</td>
			<td>
				<select class="select" name="permission">
					<option value="0"{if $theuser->permission == 0} selected{/if}>Guest (view only)</option>
					<option value="1"{if $theuser->permission == 1} selected{/if}>Editor</option>
					<option value="2"{if $theuser->permission == 2} selected{/if}>Admin</option>
				</select>
				
				<input type="hidden" name="update" value="0">
				<input type="submit" name="submit" value="update" class="button">
			</td>
		</tr>
		{/if}
	</table>
	</form>
</div>
Return current item: Php4dvd - movie database