<?php 
// EMAIL ADDRESS *************************************************
echo form_label('Email Address', 'email', array('class' => 'form_label'));
echo input_requirement('*');
$input_data = array('name' => 'email', 'id' => 'email', 'class' => 'form_input max_chars', 'maxlength' => 255, 'value' => set_value('email'));
echo form_input($input_data);
?>

			</div>
			<div class="form-row">

				<?php 
// MESSAGE LABEL AND INPUT **************************
echo form_label('Your Message', 'message', array('class' => 'textarea_label'));
echo input_requirement('*');
$textarea_data = array('name' => 'message', 'id' => 'message', 'class' => 'form_textarea max_chars', 'value' => set_value('message'), 'rows' => '8', 'cols' => '14');
echo form_textarea($textarea_data);
?>

			</div>
		</fieldset>
		<div class="form-row">
			<div id="submit_box">

				<?php 
// SUBMIT BUTTON ***********************
$input_data = array('name' => 'submit', 'id' => 'submit_button', 'value' => 'Submit');
echo form_submit($input_data);
?>
			<?php 
// CONFIRM PASSWORD LABEL AND INPUT ******************************
echo form_label('Confirm New Password', 'user_pass_confirm', array('class' => 'form_label'));
echo input_requirement();
$input_data = array('name' => 'user_pass_confirm', 'id' => 'user_pass_confirm', 'class' => 'form_input password', 'max_length' => MAX_CHARS_4_PASSWORD);
echo form_password($input_data);
?>

		</div>
		<div class="form-row">

			<?php 
// SHOW PASSWORD CHECKBOX
echo form_label('Show Passwords', 'show-password', array('class' => 'form_label'));
echo input_requirement();
$checkbox_data = array('id' => 'show-password');
echo form_checkbox($checkbox_data);
?>

		</div>
	</fieldset>
	<fieldset>
		<legend>Profile Image</legend>
		<div class="profile_image">
			<?php 
// PROFILE IMAGE
echo img(!empty($user_data->profile_image) ? $user_data->profile_image : 'img/default-profile-image.jpg', FALSE, $upload_destination == 'database' && !empty($user_data->profile_image) ? TRUE : FALSE);
// DELETE PROFILE IMAGE LINK
$attrs['id'] = 'delete-profile-image';
// If there is no profile image uploaded, hide the delete link