<?php 
include 'dheader.php';
	$sql = $db->query("SELECT * FROM supplier_setup WHERE id = '".$_GET['view']."'");
	$row = $sql->fetchArray();
?>
	<div class="modal fade hidden-print" id="myModal" tabindex="-1" role="dialog" aria-hidden="true"></div>
	<div class="wrapper ">
		<?php include 'leftbar.php'; ?>
		<!-- left-bar -->
		<?php include 'topbar.php'; ?>
			<!-- top-bar -->
			<div class="main-content">

<div class="row" id="form">
	<div class="spinner" id="grid-loader" style="display:none">
	  <div class="rect1"></div>
	  <div class="rect2"></div>
	  <div class="rect3"></div>
	</div>
	
	<div class="col-md-12">
			
		
			<form action="" id="customer_form" class="form-horizontal" enctype="multipart/form-data" method="post" accept-charset="utf-8" novalidate="novalidate">

			<div class="panel panel-piluku">
				<div class="panel-heading">
		                <h3 class="panel-title">
		                    <i class="ion-edit"></i> 
		                    Supplier Information							<small>(Click on edit button if want to edit this info)</small>
		                </h3>
		        </div>

			<div class="panel-body">
					<?php
                    if (isset($_POST['submitf'])) {
                    ?>
                    <div class="alert alert-<?php echo ($success) ? "success" : "danger"; ?>"> 
                            <?php echo ($success) ? $success : $danger; ?>                          
                    </div>
                 <?php } ?>

				<div class="row">
	<div class="col-md-12">

		<div class="form-group">
			<label for="first_name" class="required col-sm-3 col-md-3 col-lg-2 control-label ">Supplier Name :</label>			<div class="col-sm-9 col-md-9 col-lg-10">
				<?php echo $row['supplier_name']; ?>
			</div>
		</div>

		<div class="form-group">
			<label for="email" class="col-sm-3 col-md-3 col-lg-2 control-label not_required">E-Mail :</label>			<div class="col-sm-9 col-md-9 col-lg-10">
			<?php echo $row['email']; ?>
			</div>
		</div>
		<div class="form-group">	
			<label for="phone_number" class="col-sm-3 col-md-3 col-lg-2 control-label ">Phone Number :</label>			<div class="col-sm-9 col-md-9 col-lg-10">
			<?php echo $row['phone']; ?>
			</div>
		</div>
		

<div class="form-group">	
<label for="address_1" class="col-sm-3 col-md-3 col-lg-2 control-label ">Address :</label>	<div class="col-sm-9 col-md-9 col-lg-10">
	<?php echo $row['address']; ?>
	</div>
</div>

			<div class="form-group">	
<label for="city" class="col-sm-3 col-md-3 col-lg-2 control-label ">City :</label>	<div class="col-sm-9 col-md-9 col-lg-10">
	<?php echo $row['city']; ?>
	</div>
</div>

			<div class="form-group">	
<label for="ntn" class="col-sm-3 col-md-3 col-lg-2 control-label ">NTN :</label>	<div class="col-sm-9 col-md-9 col-lg-10">
	<?php echo $row['ntn']; ?>
	</div>
</div>

			<div class="form-group">	
<label for="gst" class="col-sm-3 col-md-3 col-lg-2 control-label ">GST :</label>	<div class="col-sm-9 col-md-9 col-lg-10">
	<?php echo $row['gst']; ?>
	</div>
</div>

	<div class="form-group">	
<label for="comments" class="col-sm-3 col-md-3 col-lg-2 control-label ">Comments :</label>	<div class="col-sm-9 col-md-9 col-lg-10">
	<?php echo $row['comments']; ?>
	</div>
</div>
 
	</div><!-- /col-md-12 -->
</div><!-- /row -->				
								<div class="form-group">	
					<label for="balance" class="col-sm-3 col-md-3 col-lg-2 control-label ">Opening balance :</label>					<div class="col-sm-9 col-md-9 col-lg-10">
						<?php echo $row['open_balance']; ?>
						</div>
					</div>

				
				<div class="form-group">	
					<label for="company_name" class="col-sm-3 col-md-3 col-lg-2 control-label ">Company Name :</label>					<div class="col-sm-9 col-md-9 col-lg-10">
						<?php echo $row['company_name']; ?>
						</div>
					</div>

					<div class="form-group">	
						<label for="account_number" class="col-sm-3 col-md-3 col-lg-2 control-label ">Account # :</label>						<div class="col-sm-9 col-md-9 col-lg-10">
							<?php echo $row['account_no']; ?>
							</div>
						</div>

						<div class="form-actions pull-right">
														
							<a class=" submit_button btn btn-primary" href="editsupplier.php?edit=<?php echo $_GET['view']; ?>">Edit</a>
						</div>
					</div>
				</div>
										</form>
			</div>
		</div><!-- /row -->


	

			
<?php include 'dfooter.php'; ?>