<?php 
require_once("header.php");
require_once("session_check.php");

//FETCH DATA FROM DATABASE
$fetch_record = mysqli_fetch_array(mysqli_query($connection,"SELECT * FROM `sc_quotations` WHERE `quotation_id` = '".$_REQUEST['quotation_id']."'"));

$fetch_record1 = mysqli_fetch_array(mysqli_query($connection,"SELECT * FROM `sc_users` WHERE `user_id` = '".$fetch_record['user_id']."'"));
?>

<?php require_once("left_panel.php");?>
<div class="content">
	<div class="workplace">
		<div class="row-fluid">
			<div class="span12">
				<form action="" method="post" enctype="multipart/form-data" onsubmit="return frm_validation();">
				<div class="head clearfix">
					<div class="isw-documents"></div>
					<h1>Quotation Details</h1>
				</div>
				<div class="block-fluid">
					<div class="row-form clearfix">
						<div class="span3">Name</div>
						<div class="span9"><?php echo stripslashes($fetch_record1['full_name']);?></div>
					</div> 
					<div class="row-form clearfix">
						<div class="span3">Phone No.</div>
						<div class="span9"><?php echo stripslashes($fetch_record['phone']);?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Email Address</div>
						<div class="span9"><?php echo stripslashes($fetch_record['email']);?></div>
					</div>
                    <div class="row-form clearfix">
						<div class="span3">Address</div>
						<div class="span9"><?php echo nl2br(stripslashes($fetch_record['address']));?></div>
					</div>
					<div class="row-form clearfix">
						<div class="span3">Landmark</div>
						<div class="span9"><?php echo stripslashes($fetch_record['landmark']);?></div>
					</div>
                    <div class="row-form clearfix">
						<div class="span3">City</div>
						<div class="span9"><?php echo stripslashes($fetch_record['city']);?></div>
					</div>
                    <div class="row-form clearfix">
						<div class="span3">State</div>
						<div class="span9"><?php echo stripslashes($fetch_record['state']);?></div>
					</div>
                    <div class="row-form clearfix">
						<div class="span3">Pincode</div>
						<div class="span9"><?php echo stripslashes($fetch_record['zip']);?></div>
					</div>
                    <div class="row-form clearfix">
						<div class="span3">&nbsp;</div>
						<div class="span9"><button class="btn" type="button" name="back" onclick="window.location.href='quotation_list.php'">Back To Quotations List</button></div>
					</div>
				</div>
				</form>
			</div>
		</div>
	</div>
</div>   

<?php require_once("footer.php"); ?>