<?php
session_start();
$where 					= " WHERE 1=1 ";
$next_page_condition 	= "";
$paging ="";
$source = $gsi->getEnqQuoteJobStatusById($_REQUEST['id']);
################################################## SEND INVOICE ######################################################
if(isset($_REQUEST['action']) && $_REQUEST['action'] == 'send_invoice'){
	$id= $_REQUEST['id'];
	$from= $_REQUEST['from'];
	$job_id= $_REQUEST['job_id'];
	$admin_id = utility::getTableFieldById("job_admin_mapping","admin_id","job_id",$job_id);
	$mail_format_subject = utility::getTableFieldById("mail_format","mail_format_subject","mail_format_name","send_invoice");
	$mail_format_body = strip_tags(utility::getTableFieldById("mail_format","mail_format_body","mail_format_name","send_invoice"));
	
	$first_name = utility::getTableFieldById("job","first_name","id",$job_id);
	$last_name = utility::getTableFieldById("job","last_name","id",$job_id);
	//$first_name2 = utility::getTableFieldById("job","first_name2","id",$job_id);
	//$last_name2 = utility::getTableFieldById("job","last_name2","id",$job_id);
	if(isset($first_name) &&  $first_name !=""){
		$name = ucfirst($first_name)." ".ucfirst($last_name);
	}
	/* if(isset($first_name) &&  $first_name !=""){
		$name = ucfirst($first_name)." ".ucfirst($last_name);
	}else{
		$name = ucfirst($first_name2)." ".ucfirst($last_name2);
	} */
	
	$email_id = utility::getTableFieldById("job","invoice_email","id",$job_id);
	$email_id_decript = utility::app_crypt($email_id,'d');
	if(!(isset($email_id_decript) && $email_id_decript !="")){
		$email_id = utility::getTableFieldById("job","email","id",$job_id);
		$email_id_decript = utility::app_crypt($email_id,'d');
	}
	$email_id_test = "shoebahmad999@gmail.com";
	
	//$email_id = utility::getTableFieldById("job","email","id",$job_id);
	//$email_id_test = "shoebahmad999@gmail.com";
	
	$find_array = array("[user_name]");
	$replace_array = array($name);
	$mail_format_body = str_replace($find_array,$replace_array,$mail_format_body);
	$email_date = date("Y-m-d");
	
	$file_path 		= array();
	///////////////////// Curl to genrate invoice ////////////////////////////
	$ch = curl_init();
    curl_setopt($ch, CURLOPT_URL,$config->frontEndURL."/invoice/invoice.php");
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS,"signature_block=$signature_block&pdf_genrate=1&id=".base64_encode(base64_encode(base64_encode(base64_encode(base64_encode(base64_encode($id)))))));
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 
    $server_output = curl_exec ($ch);
    curl_close ($ch);
	
	$my_path = $_SERVER['DOCUMENT_ROOT']."/beb/payment_invoice/";
	$doc_name = "invoice_".$id.".pdf";
	array_push($file_path,$my_path.$doc_name);
	//print_r($file_path);
	//die;
	////////////////////////////// End Curl to genrate invoice /////////////////////////
	//////////////////////// send mail ////////////////////
	//$file_path 		= array();
	$site_email = $config->siteEmail;
	if(utility::mailSMTP($email_id, $mail_format_subject, $functions->HTMLemailWithoutSignatureBlock($mail_format_body,$admin_id), $file_path,$site_email,$site_email,"","","",$admin_id)){
		utility::mailSMTP($email_id_test, $mail_format_subject, $functions->HTMLemailWithoutSignatureBlock($mail_format_body,$admin_id), $file_path,$site_email,$site_email,"","","",$admin_id);
		$sql = "INSERT INTO email_track(job_id,invoice_id,email_subject,email_body,email_id,email_date) VALUES('$job_id','$id','$mail_format_subject','$mail_format_body','$email_id','$email_date')";
		mysqli_query($conn,$sql);
		mysqli_query($conn,"UPDATE invoice SET is_send = 1 WHERE id = $id");
		$_SESSION['info_message'] = ucfirst("invoice send sucessfully");
	}else{
		$_SESSION['info_message']	= ucfirst("There is some error");
		///////////////// To run on local //////////////////////////////////////
		//$sql = "INSERT INTO email_track(job_id,invoice_id,email_subject,email_body,email_id,email_date) VALUES('$job_id','$id','$mail_format_subject','$mail_format_body','$email_id','$email_date')";
		//mysqli_query($conn,$sql);
		//mysqli_query($conn,"UPDATE invoice SET is_send = 1 WHERE id = $id");
	}
	
	
	$redirect = "index?page=view_enquiry_progress&from=$from&id=$job_id";
	header("Location: $redirect");
	exit();
	///////////////// End send mail  //////////////////////
}
################################################## END SEND INVOICE ##################################################
if(isset($_REQUEST['action']) && $_REQUEST['action'] == 'move_to_quote'){
	$id						= $_REQUEST['id'];
	$is_celebrant			= 1;
	$celebrant_date			= date("Y-m-d");
	$company_name			= utility::getTableFieldById("job","company_name","id",$id);
	//$quotation_no			= $gsi->getInitialOfCompanyName($company_name).date("dmy");
	$celebrant_by			= $_SESSION['user_id'];
	$updated_by				= $_SESSION['user_id'];
	
	$query_string = (isset($_REQUEST['query_string']) && !empty($_REQUEST['query_string'])) ? $_REQUEST['query_string'] : $_SERVER['QUERY_STRING'];
	$query_string = str_ireplace("action=move_to_quote&", "", $query_string);
	
	$is_celebrant_exist = utility::getTableFieldById("job","is_celebrant","id",$id);
	if($is_celebrant_exist == 0){
		$sql = "UPDATE job SET is_celebrant = '$is_celebrant', celebrant_date = '$celebrant_date', celebrant_by = '$celebrant_by', updated_by = '$updated_by' WHERE id = $id";
		mysqli_query($conn,$sql);
		$_SESSION['info_message'] = "Enquiry move to quotation sucessfully.";
	}else{
		$_SESSION['info_message'] = "Enquiry already moved to quotation.";
	}
	
	header("location: index?$query_string");
	exit();
}else if(isset($_REQUEST['action']) && $_REQUEST['action'] == 'move_to_job'){
	$id						= $_REQUEST['id'];
	$is_funeral					= 1;
	$funeral_date				= date("Y-m-d");
	$company_name			= utility::getTableFieldById("job","company_name","id",$id);
	//$job_no					= $gsi->getInitialOfCompanyName($company_name).date("dmy");
	$funeral_by					= $_SESSION['user_id'];
	$updated_by				= $_SESSION['user_id'];
	
	$query_string = (isset($_REQUEST['query_string']) && !empty($_REQUEST['query_string'])) ? $_REQUEST['query_string'] : $_SERVER['QUERY_STRING'];
	$query_string = str_ireplace("action=move_to_job&", "", $query_string);
	
	$is_funeral_exist = utility::getTableFieldById("job","is_funeral","id",$id);
	if($is_funeral_exist == 1){
		$_SESSION['info_message'] = "Quotation already moved to client.";
	}else{
		$sql = "UPDATE job SET is_funeral = '$is_funeral',funeral_date = '$funeral_date', funeral_by = '$funeral_by', updated_by = '$updated_by' WHERE id = $id";
		mysqli_query($conn,$sql);
		$_SESSION['info_message'] = "Quotation move to Job sucessfully.";
	}
	
	header("location: index?$query_string");
	exit();
}
if($_REQUEST['start']){
	$paging .="&start=".$_REQUEST['start'];
}
if(isset($_REQUEST["from"]) && $_REQUEST["from"] !=""){
	$_SESSION["from"] = $_REQUEST["from"];
}
if(isset($_REQUEST['id']) && $_REQUEST['id'] !=""){
	$job_id = $_REQUEST['id'];
	$where .= " AND id = ".$_REQUEST['id']." ";
}

$j_id = utility::app_crypt($_REQUEST['j_id'],'d');
if($_REQUEST['id'] != $j_id){
	die("Invaild URL");
}
###########################################  PAGING WITH PER PAGE  #####################################
$file_name		= "index"; // this is file name which is used during paging  , included at the bottom of the page
$table_name		= "job";
$paging_table_name	= $table_name;
$paging_query		= $where;
$join_query_for_paging = "SELECT * FROM $table_name  $where ";
include("paging/paging_query.inc.php");
############################################ END PAGING WITH PER PAGE  #######################################
$query = "SELECT * FROM $table_name $where ";
$rs = mysqli_query($conn,$query);
$enq_row = mysqli_fetch_assoc($rs);
$enq_row = utility::validate_crypt_data($enq_row);
?>
<style>
.form-group .control-label{
	padding-top:0px;
}
.content{
	min-height: 0px;
}
.content-header h1{
	float:left;
	padding-bottom: 10px;
}
.card-primary{
	color:#dc4d01;
}
</style>
<section class="content-header">
  <div class="container-fluid">
  <div class="row">
  <?
		$query_string 	=  (isset($_POST['query_string'])) ? $_POST['query_string'] : $_SERVER['QUERY_STRING'];
		if(isset($_REQUEST["from"]) && $_REQUEST["from"] == "view_enquiry"){ 
			$query_string = str_ireplace("page=view_enquiry_progress", "page=view", $query_string);
			$page_header = "Enquiry Details";
		}else if(isset($_REQUEST["from"]) && $_REQUEST["from"] == "view_celebrant"){ 
			$query_string = str_ireplace("page=view_enquiry_progress", "page=view_celebrant", $query_string);
			$page_header = "Quotation Details";
		}else if(isset($_REQUEST["from"]) && $_REQUEST["from"] == "view_funeral"){ 
			$query_string = str_ireplace("page=view_enquiry_progress", "page=view_funeral", $query_string);
			$page_header = "Client Details";
		}else if(isset($_REQUEST["from"]) && $_REQUEST["from"] == "view_jobs_by_search"){ 
			$query_string = str_ireplace("page=view_enquiry_progress", "page=view_jobs_by_search", $query_string);
			$page_header = "Enquiry / Quotation / Client Details";
		}
  ?>
	<div class="col-sm-6">
	  <h1 style="float:left;clear:right;margin-top:0px;padding-bottom: 0;">
		Company Name - <span style="color:#dc4d01;"><? echo ucfirst($enq_row["company_name"]); ?></span>
	  </h1>
	</div>
  <div class="col-sm-6">
  <? if(isset($_REQUEST["from"]) && $_REQUEST["from"] == "payment"){  ?>
	<button type="button" id="back" name="back" value="back"  style="float:right;" class="btn btn-primary" onclick="window.location.href = '<?=$config->siteURL;?>/payment_management/index?<?=$query_string;?>'">Back</button>
  <? }else{ ?>
	<button type="button" id="back" name="back" value="back"  style="float:right;" class="btn btn-primary" onclick="window.location.href = 'index?<?=$query_string;?>'">Back</button>
  <? } ?>
  
  
  <? if(isset($_REQUEST["from"]) && $_REQUEST["from"] == "view_funeral"){ ?>
  <a href="index?page=add_funeral&from=view_enquiry_progress&action=edit&j_id=<?=urlencode(utility::app_crypt($_REQUEST['id'],'e'));?>&id=<?=$_REQUEST['id'];?>" style="float:right;margin-right:5px;" class="btn btn-danger">Edit</a>
  <? }else if(isset($_REQUEST["from"]) && $_REQUEST["from"] == "view_celebrant"){ ?>
  <a href="index?page=add_celebrant&from=view_enquiry_progress&action=edit&j_id=<?=urlencode(utility::app_crypt($_REQUEST['id'],'e'));?>&id=<?=$_REQUEST['id'];?>" style="float:right;margin-right:5px;" class="btn btn-danger">Edit</a>
  <? }else if(isset($_REQUEST["from"]) && $_REQUEST["from"] == "view_enquiry"){ ?>
   <a href="index?page=add&from=view_enquiry_progress&action=edit&j_id=<?=urlencode(utility::app_crypt($_REQUEST['id'],'e'));?>&id=<?=$_REQUEST['id'];?>" style="float:right;margin-right:5px;" class="btn btn-success">Edit</a>
  <? 
	}else if(isset($_REQUEST["from"]) && $_REQUEST["from"] == "view_jobs_by_search"){ 
		$is_enquiry = utility::getTableFieldById("job","is_enquiry","id",$_REQUEST['id']);
		$is_celebrant = utility::getTableFieldById("job","is_celebrant","id",$_REQUEST['id']);
		$is_funeral = utility::getTableFieldById("job","is_funeral","id",$_REQUEST['id']);
		if($is_funeral == 1){
  ?>
	<a href="index?page=add_funeral&action=edit&id=<?=$_REQUEST['id'];?>" style="float:right;margin-right:5px;" class="btn btn-danger">Edit</a>
  <? }else if($is_celebrant == 1 && $is_funeral == 0){  ?>
	<a href="index?page=add_celebrant&action=edit&id=<?=$_REQUEST['id'];?>" style="float:right;margin-right:5px;" class="btn btn-danger">Edit</a>
  <? }else if($is_enquiry == 1 && $is_celebrant == 0 && $is_funeral == 0){ ?>
	<a href="index?page=add&action=edit&id=<?=$_REQUEST['id'];?>" style="float:right;margin-right:5px;" class="btn btn-danger">Edit</a>
  <? } ?>
  <? } ?>
  
  <?
	if(isset($_REQUEST["from"]) && $_REQUEST["from"] == "view_enquiry"){ 
		$query_string = str_ireplace("page=view", "page=view_enquiry_progress", $query_string);
		$is_celebrant_exist = utility::getTableFieldById("job","is_celebrant","id",$_REQUEST['id']);
		if($is_celebrant_exist == 0){
  ?>
	<button type="button" id="add_placement" name="add_placement" style="float:right;margin-right:5px;margin-bottom:5px;" class="hide btn btn-warning" onclick="window.location.href = 'index?action=move_to_quote&<?=$query_string;?>'">Move to Quote</button>
  <? 
	}
	}else if(isset($_REQUEST["from"]) && $_REQUEST["from"] == "view_celebrant"){ 
		$query_string = str_ireplace("page=view_celebrant", "page=view_enquiry_progress", $query_string);
  ?>
	<button type="button" id="add_placement" name="add_placement" style="float:right;margin-right:5px;margin-bottom:5px;" class="btn btn-warning" onclick="window.location.href = 'index?action=move_to_job&<?=$query_string;?>'">Move to Client</button>
  <? 
	}else if(isset($_REQUEST["from"]) && $_REQUEST["from"] == "view_jobs_by_search"){ 
		$query_string = str_ireplace("page=view_jobs_by_search", "page=view_enquiry_progress", $query_string);
		$is_celebrant_exist = utility::getTableFieldById("job","is_celebrant","id",$_REQUEST['id']);
		$is_funeral_exist = utility::getTableFieldById("job","is_funeral","id",$_REQUEST['id']);
		if($is_celebrant_exist == 0){
  ?>
		<button type="button" id="add_placement" name="add_placement" style="float:right;margin-right:5px;margin-bottom:5px;" class="btn btn-warning" onclick="window.location.href = 'index?action=move_to_quote&<?=$query_string;?>'">Move to Quote</button>
  <? 
		}else if($is_funeral_exist == 0){
  ?>
		<button type="button" id="add_placement" name="add_placement" style="float:right;margin-right:5px;margin-bottom:5px;" class="btn btn-warning" onclick="window.location.href = 'index?action=move_to_job&<?=$query_string;?>'">Move to Client</button>
  <? } } ?>
  </div>
  </div>
  </div>
</section>
<?
	
	$query1 = "SELECT * FROM  job_enquiry_mapping WHERE job_id ='".$_REQUEST['id']."' ";
	$rs1 = mysqli_query($conn,$query1);
	$enq_row1 = mysqli_fetch_assoc($rs1);
	$enq_row_mapp = utility::validate_crypt_data($enq_row1);
?>
<section class="content">
	<div class="container-fluid">
	<div class="row">
		<div class="col-lg-12 no-padding">
		<div class="row">
			<!----------------------- Message ------------------------------->
			      <?php if(isset($_SESSION['info_message'])) { ?>
						<script>
							$(document).ready(function(){
								Toastify({
									text: "<?php echo $_SESSION['info_message']; ?>",duration: 4000,close: true,gravity: "top",position: 'right',backgroundColor: "#28a745",style: {borderBottom: "3px solid white",},
								}).showToast();
								<?php unset($_SESSION['info_message']); ?>
							});
						</script>
					<?}?>
			<!----------------------- End Message ------------------------------->
			<!-- general form elements -->
			<? 
				$col_width = 12;
			?>
			<div class="col-lg-6 col-md-6 col-sm-12" style="/* min-height:700px; */">
              <div class="scrollbar-default box box-warning card" style="height: 610px;overflow: hidden;overflow-y: scroll;">
                <form class="form-horizontal" method="post" name="form1" id="form1" action="index?page=add_placement&action=<? echo $form_action; ?>" onsubmit="return validateForm(this)" enctype="multipart/form-data">
                  <div class="box-body">
					<? //if($enq_row["is_funeral"] != 1){ ?>
					<div class="form-group">
                      <label for="Company Name" class="col-sm-4 control-label">Company Name</label>
                      <div class="col-sm-8">
						<? echo $enq_row["company_name"]; ?>
                      </div>
                    </div>
					<div class="form-group">
                      <label for="Company Name" class="col-sm-4 control-label">Source</label>
                      <div class="col-sm-8">
						<?php echo ucfirst(Keycode::getkeycodeById($enq_row["source"]));?>
                      </div>
                    </div>
					<? //} ?>
					<div class="form-group">
					  <label for="Name" class="col-sm-4 control-label">
						<? echo ($enq_row["is_funeral"] == 1) ? "" : ""; ?> Name
					  </label>
					  <div class="col-sm-8">
						<?php echo ucfirst(Keycode::getkeycodeById($enq_row_mapp["title"]))." ".ucfirst($enq_row_mapp["first_name"])." ".ucfirst($enq_row_mapp["surname"]); ?>
					  </div>
					</div>
					<div class="form-group">
					  <label for="Address" class="col-sm-4 control-label">Address</label>
					  <div class="col-sm-8">
						<?php 
							if(isset($enq_row["address1"]) && $enq_row["address1"] !=""){
								echo $enq_row["address1"]; 
							}
							if(isset($enq_row["address2"]) && $enq_row["address2"] !=""){
								echo " ".$enq_row["address2"]; 
							}
							if(isset($enq_row["address3"]) && $enq_row["address3"] !=""){
								echo " ".$enq_row["address3"]; 
							}
							if(isset($enq_row["city"]) && $enq_row["city"] !=""){
								echo " ".$enq_row["city"]; 
							}
							if(isset($enq_row["county"]) && $enq_row["county"] !=""){
								echo " ".$gsi->getCountyById($enq_row['county']);  
							}
							if(isset($enq_row["postcode"]) && $enq_row["postcode"] !=""){
								echo " ".$enq_row["postcode"]; 
							}
						?>
					  </div>
					</div>
					<div class="form-group">
                      <label for="Profession" class="col-sm-4 control-label">Country</label>
                      <div class="col-sm-8">
						<? echo $gsi->getCountryById($enq_row["country"]); ?>
                      </div>
                    </div>
					<div class="form-group">
					  <label for="Phone No.1" class="col-sm-4 control-label">Telephone</label>
					  <div class="col-sm-8">
						<?php 
							if(isset($enq_row_mapp["phone_no"]) && $enq_row_mapp["phone_no"] !=""){
								echo $enq_row_mapp["phone_no"]; 
							}
						?>
					  </div>
					</div>
					<div class="form-group">
					  <label for="Email" class="col-sm-4 control-label">Email</label>
					  <div class="col-sm-8">
						<?php echo $enq_row_mapp["email"]; ?>
					  </div>
					</div>
					<div class="form-group">
                      <label for="" class="col-sm-4 control-label">Status</label>
                      <div class="col-sm-8">
						<? echo $gsi->getStatusListById($enq_row["status"]); ?>
                      </div>
                    </div>
                  </div><!-- /.box-body -->
                </form>
              </div><!-- /.box -->
            </div><!-- /.box -->
			
			<div class="col-lg-6 col-md-6 col-sm-12" style="/* min-height:700px; */">
              <div class=" scrollbar-default box box-success card" style="height: 610px;overflow: hidden;overflow-y: scroll;">
                <form class="form-horizontal" method="post" name="form1" id="form1" action="index?page=add_placement&action=<? echo $form_action; ?>" onsubmit="return validateForm(this)" enctype="multipart/form-data">
                  <div class="box-body">
					<div class="form-group">
                      <label for="" class="col-sm-4 control-label">First Contact</label>
                      <div class="col-sm-8">
						<? echo utility::getFormatedDateReturn($enq_row["first_contact"]); ?>
                      </div>
                    </div>
					<div class="form-group">
                      <label for="" class="col-sm-4 control-label">Last Contact</label>
                      <div class="col-sm-8">
						<? echo utility::getFormatedDateReturn($enq_row["last_contact"]); ?>
                      </div>
                    </div>
					<div class="form-group">
                      <label for="" class="col-sm-4 control-label">Follow up date</label>
                      <div class="col-sm-8">
						<? echo utility::getFormatedDateReturn($enq_row["follow_update"]); ?>
                      </div>
                    </div>
					<div class="form-group">
					  <label for="Follow up by" class="col-sm-4 control-label">Follow up by</label>
					  <div class="col-sm-8">
						<?php echo $enq_row["follow_upby"]; ?>
					  </div>
					</div>
					<div class="form-group">
					  <label for="" class="col-sm-4 control-label">Enquiry Value</label>
					  <div class="col-sm-8">
						<?php echo $enq_row["enquiry_value"]; ?>
					  </div>
					</div>
					<div class="form-group">
					  <label for="" class="col-sm-4 control-label">Notes</label>
					  <div class="col-sm-8">
						<?php echo $enq_row["notes"]; ?>
					  </div>
					</div>
					<div class="col-lg-12">
					   <div class="row">  
						  <div class="col-lg-4">
							  <label for="" class=" control-label">Return customer :</label>
								<?php echo ($enq_row["return_customer"]==1) ? "Yes" : "No"; ?>
						  </div>
						  <div class="col-lg-4">
							  <label for="" class=" control-label">Site vist request :</label>
								<?php echo ($enq_row["site_vist_request"]==2) ? "Yes" : "No"; ?>
						  </div>
						 <div class="col-lg-4">
							  <label for="" class=" control-label">Want 2nd Hand :</label>
								<?php echo ($enq_row["want_hand"]==3) ? "Yes" : "No"; ?>
						  </div>
						 <div class="col-lg-4">
							  <label for="" class=" control-label">Selling used GE :</label>
								<?php echo ($enq_row["selling_used"]==4) ? "Yes" : "No"; ?>
						  </div>
						 <div class="col-lg-4">
							  <label for="" class=" control-label">Development :</label>
								<?php echo ($enq_row["development"]==5) ? "Yes" : "No"; ?>
						  </div>
						 <div class="col-lg-4">
							  <label for="" class=" control-label">Case Study :</label>
								<?php echo ($enq_row["case_study"]==6) ? "Yes" : "No"; ?>
						  </div>
						 <div class="col-lg-4">
							  <label for="" class=" control-label">Distributor :</label>
								<?php echo ($enq_row["distributor"]==7) ? "Yes" : "No"; ?>
						  </div>
						 <div class="col-lg-4">
							  <label for="" class=" control-label">OEM :</label>
								<?php echo ($enq_row["oem"]==8) ? "Yes" : "No"; ?>
						  </div>
						 <div class="col-lg-4">
							  <label for="" class=" control-label">Highlight :</label>
								<?php echo ($enq_row["highlight"]==9) ? "Yes" : "No"; ?>
						  </div>
						 <div class="col-lg-4">
							  <label for="" class=" control-label">Hire Enquiry :</label>
								<?php echo ($enq_row["hire_enquiry"]==10) ? "Yes" : "No"; ?>
						  </div>
						 <div class="col-lg-4">
							  <label for="" class=" control-label">On Hire :</label>
								<?php echo ($enq_row["on_hire"]==11) ? "Yes" : "No"; ?>
						  </div>
						 <div class="col-lg-4">
							  <label for="" class=" control-label">Hire next Season :</label>
								<?php echo ($enq_row["hire_season"]==12) ? "Yes" : "No"; ?>
						  </div>
						 
					    </div>
					 </div>
                  </div><!-- /.box-body -->
                </form>
              </div><!-- /.box -->
            </div><!-- /.box -->
		</div>
		</div>
	</div>
	</div>
	
 <div>
	<?$frontEndURL = $config->frontEndURL; include("add_product_with_ajax.inc.php");?>
 </div>
 <div>
	<? include("add_job_nots_with_ajax.inc.php");?>
 </div>

</section>
<style>
	#overflow_div::-webkit-scrollbar
    {
      width: 5px;  /* for vertical scrollbars */
      height: 5px; /* for horizontal scrollbars */
    }
 
    #overflow_div::-webkit-scrollbar-track
    {
      background:#E7E8E9;
    }
 
    #overflow_div::-webkit-scrollbar-thumb
    {
      background: #3c8dbc;
    }
	#overflow_div{
		height:150px;
		overflow-y: auto;
	}
</style>
<script type="text/javascript">
$(function () {
	
});
</script>