<?php
$query = $db->get_row ( 'users', array ('email' => $uemail ) );
?>
<div class="page-content">
	<div class="page-header position-relative"></div>
	<!--/.page-header-->

	<div class="row-fluid">
		<div class="span12">
			<!--PAGE CONTENT BEGINS-->





			<div class="row-fluid">
				<div class="span12">
					<div class="widget-box">
						<div class="widget-header widget-header-blue widget-header-flat">
							<h4 class="lighter">Your Profile</h4>


						</div>

						<div class="widget-body">
							<div class="widget-main">
								<div class="row-fluid">


									<div class="step-content row-fluid position-relative"
										id="step-container">
										<div class="step-pane active">

											<form class="form-horizontal" method="post" action=""
												enctype="multipart/form-data">

												<div class="control-group">
													<label class="control-label" for="username">Username</label>
													<div class="controls">
														<input type="text" class="span6 disabled" id="username"
															value="<?php echo $uemail;?>" disabled>
														<p class="help-block">Your username is for logging in and
															cannot be changed.</p>
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->


												<div class="control-group">
													<label class="control-label" for="name">Name</label>
													<div class="controls">
														<input type="text" class="span6" id="name"
															name="admin[name]" value="<?php echo $query['name']; ?>">
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->


												<div class="control-group">
													<label class="control-label" for="contact">Contact</label>
													<div class="controls">
														<input type="text" class="span6" id="contact"
															name="admin[contact]"
															value="<?php echo $query['contact']; ?>">
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->


												<div class="control-group">
													<label class="control-label" for="address">Address</label>
													<div class="controls">
														<input type="text" class="span4" id="address"
															name="admin[address]"
															value="<?php echo $query['address'];?>">
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->

												<div class="control-group">
													<label class="control-label" for="pic">Profile Pic</label>
													<div class="controls">
														<div class="row-fluid">
															<div class="span8">
																<input type="file" class="span4" id="pic" name="photo">
															</div>
															<!-- span4 -->
															<div class="span4">
																<a
																	href="<?php echo $link->link('downloads', Admin, '?filename='.$query['photo'].'&path='.'uploads/users/');?>">
																				<?php
																				echo $query ['photo'];
																				?>
																				</a>
															</div>
														</div>
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->

												<div class="control-group">
													<div class="controls">
														<span class="span12"> <input type="hidden" name="check"
															value="admin"> <input type="hidden" name="email"
															value="<?php echo $uemail; ?>">
															<button type="submit" name="submit"
																class="btn btn-small btn-primary">Save</button>
														</span>
													</div>
													<!-- controls -->
												</div>
												<!-- control-group -->

											</form>
										</div>
									</div>



								</div>
							</div>
							<!--/widget-main-->
						</div>
						<!--/widget-body-->
					</div>
				</div>
			</div>

			<!--PAGE CONTENT ENDS-->
		</div>
		<!--/.span-->
	</div>
	<!--/.row-fluid-->
</div>
<!--/.page-content-->


</div>
<!--/.main-content-->