Location: PHPKode > projects > TVEz - Media Library > tvez-0.2.1/html/user/user_form.php
<?php

function user_form($user) {
	global $accessLevels;
echo '
<form action="'.$_SERVER['PHP_SELF'].'" method="POST" name="userform">
<input type="hidden" name="content" value="user">
<input type="hidden" name="page" value="profile">
<input type="hidden" name="action" value="edit">
<input type="hidden" name="id" value="'.$user['id'].'">

<table cellpadding="5" cellspacing="0" align="center" class="user">
<tr class="usertitle"><td colspan="4" align="center">
'.localize_string("Edit your Profile").'
</td></tr>
<tr>
	<td align="right">'.localize_string("Username").':</td>
	<td>
		<input type="hidden" name="username" value="'.$user['username'].'">
		'.$user['username'].'
	</td>
	<td align="right">'.localize_string("Access Level").':</td>
	<td>
		<input type="hidden" name="access" value="'.$user['access'].'">
		'.$accessLevels[$user['access']].'
	</td>
</tr>
<tr>
	<td align="right">'.localize_string("First Name").':</td>
	<td><input type="text" name="firstname" size="15" maxlength="49" value="'.$user['firstname'].'"></td>
	<td align="right">'.localize_string("Last Name").':</td><td><input type="text" name="lastname" size="15" maxlength="49" value="'.$user['lastname'].'"></td>
</tr>
<tr>
	<td align="right">'.localize_string("Email Address").':</td>
	<td colspan="3"><input type="text" name="email" size="50" maxlength="244" value="'.$user['email'].'"></td>
</tr>
<tr>
	<td align="right">'.localize_string("New Password").':</td>
	<td><input type="password" name="passwd1" size="15"></td>
	<td align="right">'.localize_string("Confirm Password").':</td>
	<td><input type="password" name="passwd2" size="15"></td>
</tr>
	<tr>
		<td align="right">'.localize_string("Old Password").':</td>
		<td colspn="3"><input type="password" name="oldpasswd" size="15"></td>
	</tr>
<tr>
	<td colspan="4" align="right">
	<input type="reset" value="'.localize_string("Reset").'"><input type="submit" value="'.localize_string("Submit").'" onclick="javascript:return check_user_form(this.form);">
	</td>
</tr>
</table>
</form>
';
}

?>
Return current item: TVEz - Media Library