


<?php
session_start();
$error = "";

require 'config.php';





$app_name = $_SESSION['app_name'];
//echo "<br>";
 $branch_key = $_SESSION['branch_key'];





$db_handle = mysqli_connect(DB_SERVER, DB_USER, DB_PASS);
$database = $_SESSION['database'];

//$database = "lawpedc3_lbs_users";

$db_found = mysqli_select_db($db_handle, $database);


$q = $_GET['q'];
 
	
	  $SQL = "SELECT  * FROM customers_table   where     id = '$q'  ";
									
									$esult = mysqli_query($db_handle, $SQL);
								
								 $db_f = mysqli_fetch_assoc($esult);
	
	


?>



<script> 

	


</script>


	<html>
		
			<title>Business Manager</title>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
<!--===============================================================================================-->	
		 <link href="css/bootstrap-4.4.1.css" rel="stylesheet">
		 <link href="css/popup.css" rel="stylesheet">
		
		
		
	<head>



	</head>
		
	
		<style>
			.loader {
  border: 16px solid #f3f3f3;
  border-radius: 30%;
  border-top: 5px solid blue;
  border-right: 5px solid green;
  border-bottom: 5px solid red;
  border-left: 5px solid yellow;
  width: 40px;
  height: 40px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 1s linear infinite;
}

		
		
@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

			
			
			
		
		body, html {
background-color: #E1E1DF;
		//	background: image();
			}
		</style>
	
		<body onLoad="<?php echo "customAlert.alert('$error','BM App Builder')"; ?>, spinner()">


			

	
			<div class="jumbotron-fluid" style="text-align: center">
		
		
		
		 		
				
				
				
						
						<input type="hidden" value="LBS" name="app_name">
						<input type="hidden" value="admin" name="privilage">
						<input type="hidden" value="active125" name="status">
						<input type="hidden" value="1000" name="db_size">
						
							<input type="hidden" value="Product Key" name="product_key">
						
						
										
										
										
										
										
										<div class="input-group mb-3" style="margin-top: 40px">
  						
											
											
											

												<input type="text"    style="background-color:#EEF88D;"       class="form-control" placeholder="Full Name  " aria-label="Username" aria-describedby="basic-addon1" name="name" value="<?php  echo   $db_f['name'];  ?>">
											
											
											<input type="email" class="form-control"    style="background-color:#EEF88D;"   placeholder="Email" aria-label="Username" aria-describedby="basic-addon1" value= "<?php  echo  $db_f['email'];  ?>" name = "email">
											
										</div>
										
										
										
			
	
										
										
										
										
										
										
										
										
										
									
										
										<div class="input-group mb-3">
											
									
										
										
											
											
											<input type = "number" class = "form-control"   style="background-color:#EEF88D;"   placeholder= "Phone No" aria-label="Username" aria-describedby="basic-addon1" value="<?php echo $db_f['phone'];  ?>" name="phone">
				
											
												<textarea cols="50" rows = "3"  style="background-color:#EEF88D;width:100%"  placeholder="Customers Address" class="form-control" aria-label="Amount (to the nearest dollar)" name="address"><?php echo $db_f['address'];?></textarea>
				
											
										</div>
										
										
										
										
										
										
	
								
										
										
								
						
						
						
							<div class="input-group mb-3">
											
									
										
										
											<input type="number" class="form-control" placeholder="Total Quantity" aria-label="Username" aria-describedby="basic-addon1" value= "" name = "qty">
											
											<input type = "number" class = "form-control" placeholder= "Unit amount" aria-label="Username" aria-describedby="basic-addon1" value="" name="u_amount">
				
										</div>
										
						
						
								<div class="input-group mb-3">
											
									
										
										
											<input type="number" class="form-control" placeholder="Amount Paid" aria-label="Username" aria-describedby="basic-addon1" value= "" name = "a_p">
											
											<input type = "number" class = "form-control" placeholder= "Balance" aria-label="Username" aria-describedby="basic-addon1" value="" name="bal">
									
									
									
									<select class="custom-select"  style="background-color: "   name="p_m" id="sss"  >
										
											
											
											<option value="Cash" selected>Cash</option>
										<option value="Transfer" >Transfer</option>
										
										<option value="Others" >Others</option>
		
										
											
											</select> 
				
										</div>
										
						
						
						
						
						
							<div class="input-group mb-3">
											
									
										
										
											<input type="text" class="form-control" placeholder="Title" aria-label="Username" aria-describedby="basic-addon1" value= "" name = "title">
											
											<textarea cols="50" rows = "3" style="width:100%" placeholder="Description" class="form-control" aria-label="Amount (to the nearest dollar)" name="desc"></textarea>
				
										</div>
										
									
									
										
							
				<div>
					
					
					
					
					
					
					
					
					
					
					
											
							
					
		        
					
					
				
				
				
				
	
						</div>
	
			
			
			
		
			

	
		</body>
	
		</html>
<script>


		function spinner() {
  
			var x = document.getElementById("load");
	
	
	
  if (x.style.display === "none") {
    x.style.display = "block ";
	  
	  
  }
	else {
    x.style.display = "none";
  }
	
	
}
	
		
		
		


</script>



<script>
	
	//pop scripts
	
	
function CustomAlert(){
  this.alert = function(message,title){
    document.body.innerHTML = document.body.innerHTML + '<div id="dialogoverlay"></div><div id="dialogbox" class="slit-in-vertical"><div><div id="dialogboxhead"></div><div id="dialogboxbody"></div><div id="dialogboxfoot"></div></div></div>';

    let dialogoverlay = document.getElementById('dialogoverlay');
    let dialogbox = document.getElementById('dialogbox');
    
    let winH = window.innerHeight;
    dialogoverlay.style.height = winH+"px";
    
    dialogbox.style.top = "100px";

    dialogoverlay.style.display = "block";
    dialogbox.style.display = "block";
    
    document.getElementById('dialogboxhead').style.display = 'block';

    if(typeof title === 'undefined') {
      document.getElementById('dialogboxhead').style.display = 'none';
    } else {
      document.getElementById('dialogboxhead').innerHTML = '<i class="fa fa-exclamation-circle" aria-hidden="true"></i> '+ title;
    }
    document.getElementById('dialogboxbody').innerHTML = message;
    document.getElementById('dialogboxfoot').innerHTML = '<button class="pure-material-button-contained active" onclick="customAlert.ok()">OK</button>';
  }
  
  this.ok = function(){
    document.getElementById('dialogbox').style.display = "none";
    document.getElementById('dialogoverlay').style.display = "none";
  }
}

let customAlert = new CustomAlert();
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	</script>