<?php
$getid = $link->hrefquery ();

$query = $db->get_row ( 'clients', array ('id' => $getid [1] ) );

?>
<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 Account</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="">

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

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


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

												<div class="control-group">
													<label class="control-label">Address</label>
													<div class="controls">
														<textarea id="form-field-11"
															class="autosize-transition span6" name="client[address]"><?php echo $query['address']; ?></textarea>
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->

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

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


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

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



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

												<div class="control-group">
													<label class="control-label ">Priority</label>
													<div class="controls">
														<select name="client[status]" class="span6">
															<option value="" <?php if($query['status'] =='' ){?>
																selected="selected" <?php }?>>Select Priority</option>

															<option value="0" <?php if($query['status'] =='0' ){?>
																selected="selected" <?php }?>>No Priority Selected</option>
															<option value="1" <?php if($query['status'] =='1' ){?>
																selected="selected" <?php }?>>Low Priority</option>
															<option value="2" <?php if($query['status'] =='2' ){?>
																selected="selected" <?php }?>>Medium Priority</option>
															<option value="3" <?php if($query['status'] =='3' ){?>
																selected="selected" <?php }?>>High Priority</option>
														</select>
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->

												<div class="control-group">
													<label class="control-label">Notes</label>
													<div class="controls">
														<textarea id="form-field-11"
															class="autosize-transition span6" name="client[notes]"><?php echo $query['notes']; ?></textarea>
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->

												<div class="control-group">
													<label class="control-label">Select</label>
													<div class="controls">
													<?php
													$getstatus = $db->get_all ( "status" );
													?>
														<select name="client[sec_status]" class="span6">
															<option value="" <?php if($query['sec_status'] =='' ){?>
																selected="selected" <?php }?>>Please Select</option>
														<?php
														foreach ( $getstatus as $row ) {
															?>	
															<option value="<?php echo $row['name'];?>"
																<?php if($query['sec_status'] ==$row['name'] ){?>
																selected="selected" <?php }?>><?php echo $row['name'];?></option>
														<?php }?>	
														</select>
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->

												<div class="control-group">
													<div class="controls">
														<span class="span12"> <input type="hidden" name="edit"
															value="client"> <input type="hidden" name="id"
															value="<?php echo $query['id']; ?>">
															<button type="submit" name="submit"
																class="btn btn-small btn-primary">Save</button>
														</span>
													</div>
													<!-- controls -->
												</div>
												<!-- control group -->

											</form>
										</div>

									</div>



								</div>
								<!--row fluid--->
							</div>
							<!--/widget-main-->
						</div>
						<!--/widget-body-->
					</div>
					<!-- widget box -->
				</div>
				<!-- span12 -->
			</div>
			<!-- row fluid -->

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


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