<?php
if (isset ( $_POST ['submit'] ) && $_POST ['edit'] == 'client') {
	$client = $_POST ['client'];
	$full_name = $client ['full_name'];
	$email = $client ['email'];
	$c_name = $client ['c_name'];
	$address = $client ['address'];
	$country = $client ['country'];
	$telephone = $client ['telephone'];
	$mobile = $client ['mobile'];
	$skype = $client ['skype'];
	$gtalk = $client ['gtalk'];
	$status = $client ['status'];
	$notes = $client ['notes'];
	$sec_status = $client ['sec_status'];
	$query = $db->update ( 'clients', array ('full_name' => $full_name, 'email' => $email, 'c_name' => $c_name, 'address' => $address, 'country' => $country, 'telephone' => $telephone, 'mobile' => $mobile, 'skype' => $skype, 'gtalk' => $gtalk, 'status' => $status, 'notes' => $notes, 'sec_status' => $sec_status ), array ('id' => $_POST ['id'] ) );
	
	if ($query) {
		?>
<div id="hide">
	<div id="gritter-notice-wrapper">
		<div id="gritter-item-1" class="gritter-item-wrapper gritter-success"
			style="">
			<div class="gritter-top"></div>
			<div class="gritter-item">

				<div class="gritter-without-image">
					<span class="gritter-title">Cheers..
						<div class="gritter-close" id="gritterremove"
							style="display: inline;"></div>
					</span>
					<p>Your Record Is Inserted...</p>
				</div>
				<div style="clear: both"></div>
			</div>
			<div class="gritter-bottom"></div>
		</div>
	</div>
</div>
<?php
	
	} else {
		?>
<div class="hide1">
	<div id="gritter-notice-wrapper">
		<div id="gritter-item-2" class="gritter-item-wrapper gritter-warning"
			style="">
			<div class="gritter-top"></div>
			<div class="gritter-item">
				<div class="gritter-close" id="gritterremove"
					style="display: inline;"></div>
				<h5>Oops! There Are Some Problem In Inserted...</h5>
				<div style="clear: both"></div>
			</div>
			<div class="gritter-bottom"></div>
		</div>
	</div>
</div>
<?php
	
	}
}
?>