Location: PHPKode > projects > Community Learning Network > cln/lib/CLN/interfaces/User/myProfile.html
<?php

// set title
// should support multiple languages
$GLOBALS['CLN_PAGE_TITLE'] = "My Profile";

?>
<script type="text/javascript" language="JavaScript">
//<![CDATA[
function confirmPassword(userEditForm) {
	if(userEditForm.password.value) {
		if(userEditForm.password.value != userEditForm.passwordConfirm.value) {
			alert("Your passwords are not the same.  Please re-enter them.");
			return false;
		}
		else if(userEditForm.password.value.length < <?php echo CLN_PASSWORD_LENGTH; ?>) {
			alert("Your password must be at least <?php echo CLN_PASSWORD_LENGTH; ?> characters long");
			return false;
		}
	}
}  
//]]>
</script>
<form name="userEdit" action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post" onSubmit="return confirmPassword(this)">

<p>Edit your profile info below:</p>

<div class="grRow">
	<span class="grFormLabel"><label for="userFirstName">First Name:</label></span>
	<span class="grFormElement"><input type="text" id="userFirstName" name="userFirstName" size="30" maxlength="50" value="<?php echo $_SESSION['User']->firstName; ?>" /></span>
</div>

<div class="grRow">
	<span class="grFormLabel"><label for="userLastName">Last Name:</label></span>
	<span class="grFormElement"><input type="text" id="userLastName" name="userLastName" size="30" maxlength="50" value="<?php echo $_SESSION['User']->lastName; ?>" /></span>
</div>

<div class="grRow">
	<span class="grFormLabel"><label for="userMemberName">Member Name:</label></span>
	<span class="grFormElement"><input type="text" id="userMemberName" name="userMemberName" size="30" maxlength="50" value="<?php echo $_SESSION['User']->memberName; ?>" /></span>
</div>

<div class="grRow">
	<span class="grFormLabel"><label for="userEmail">Email Address:</label></span>
	<span class="grFormElement"><input type="text" id="userEmail" name="userEmail" size="30" maxlength="50" value="<?php echo $_SESSION['User']->email; ?>" /></span>
</div>

<div class="grRow">
	<span class="grFormLabel"><label for="userCompany">Company Name:</label></span>
	<span class="grFormElement"><input type="text" id="userCompany" name="userCompany" size="30" maxlength="50" value="<?php echo $_SESSION['User']->company; ?>" /></span>
</div>

<div class="grRow">
	<span class="grFormLabel"><label for="password">Password:</label></span>
	<span class="grFormElement"><input type="password" id="password" name="password" value="" /></span>
</div>

<div class="grRow">
	<span class="grFormLabel"><label for="passwordConfirm">Re-type Password:</label></span>
	<span class="grFormElement"><input type="password" id="passwordConfirm" name="passwordConfirm" value="" /></span>
</div>


<div class="grRow">
	<span class="grFormLabel"><label for="editProfile"></label></span>
	<span class="grFormElement"><input id="editProfile" type="submit" name="editProfile" value="Update Profile" /></span>
</div>

</form>

Return current item: Community Learning Network