EVOLUTION-NINJA
Edit File: client_details.php
<?php echo view('includes/header');?> <section class="content-header"> <h1> Client details </h1> </section> <!--- section 1 ----> <section class="content"> <div class="col-sm-12 col-md-11"> <form id="land_owner" class="form-inline booking_form"> <div class="row land_owner_a"> <!-- <div class="col-sm-12 col-md-6"> --> <!-- <label class="col-sm-4">Booking type : </label> --> <?php //echo $site_result[0]['booking_type'];?> <!-- </div> --> <div class="col-sm-12 col-md-6"> <label class="col-sm-4">Booking status :</label> <?php echo $site_result[0]['booking_status'];?> </div> </div> <div class="row land_owner_a"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4">Customer Name :</label> <?php echo $site_result[0]['customer_name'];?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4">Relation :</label> <?php echo $site_result[0]['relation'].' '.$site_result[0]['father_or_husband'];?> </div> </div> <!-- row 1----> <div class="row land_owner_a"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4 ">Mail Id :</label> <?php echo $site_result[0]['email'];?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4 ">Alternate E-Mail :</label> <?php echo $site_result[0]['alternative_email'];?> </div> </div> <!-- row 2----> <div class="row land_owner_a"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4 col-xs-5">Mobile No :</label> <?php echo $site_result[0]['mobile'];?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4">Office No :</label> <?php echo $site_result[0]['office_number'];?> </div> </div> <!-- row 3----> <div class="row land_owner_a"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4">Date of Birth :</label> <?php if($site_result[0]['dob'] == "" || $site_result[0]['dob'] == "0000-00-00"){echo"";}else{echo date("d-m-Y", strtotime($site_result[0]['dob']));}?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4">DOA :</label> <?php if($site_result[0]['doa'] == "" || $site_result[0]['doa'] == "0000-00-00"){echo "";}else{echo date("d-m-Y", strtotime($site_result[0]['doa']));}?> </div> </div> <!-- row 4----> <div class="row land_owner_a"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4">Address :</label> <div class="col-sm-8" style="padding-left:0px !important"> <?php echo $site_result[0]['address'];?> </div> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4 col-xs-4">ID proof name :</label> <?php echo $site_result[0]['idproof_name'];?> </div> </div> <!-- row 5----> <div class="row land_owner_a"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4">Nominee : </label> <?php echo $site_result[0]['nominee_name'];?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4 col-md-4">ID proof number :</label> <?php echo $site_result[0]['idproof_number'];?> </div> <!-- <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4 col-md-4">ID Scan</label> <input type="file" class="col-sm-8 text-center center-block well well-sm" name="id_scan" required="required"> </div> --> </div> <!-- row 6----> <div class="row land_owner_a"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4">Nom-Contact No :</label> <?php echo $site_result[0]['nominee_contact'];?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4 col-md-4">Reference :</label> <?php echo $site_result[0]['reference'];?> </div> </div> <!-- row 7----> <div class="row land_owner_a"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4 col-md-4">Web portal :</label> <?php echo $site_result[0]['webportal'];?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4 col-md-4">Logistics :</label> <?php echo $site_result[0]['logistics'];?> </div> </div> <!-- row 8----> <div class="row land_owner_a"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4 col-md-4">Associate :</label> <?php echo $site_result[0]['associate'];?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4 col-md-4">Source :</label> <?php echo $site_result[0]['source_type'];?> </div> </div> <!-- row 9----> <div class="row land_owner_a"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4 col-md-4">Sub Associate :</label> <?php echo $site_result[0]['subassociate'];?> </div> <?php if($site_result[0]['source_type'] == 'LOAN'){?> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4 col-md-4">Bank Name:</label> <?php echo $site_result[0]['source_bank_name'];?> </div> <?php }?> </div> <!-- row 9----> <!--------------------------------------------------------------------------- ----> <h3 class="bok-details"> Payment Details </h3> <div class="row land_owner_a"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4 col-md-5">Project :</label> <?php echo $site_result[0]['project_name'];?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4 col-xs-4">Site no :</label> <?php echo $site_result[0]['site_number'].' , '.$site_result[0]['dimension'].' Sqft';?> </div> </div> <!-- row 1----> <div class="row land_owner_a"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5"><h4><b>TSV :</b></h4></label> <?php $num=$site_result[0]['tsv'];$explrestunits = "" ; if(strlen($num)>3) { $lastthree = substr($num, strlen($num)-3, strlen($num)); $restunits = substr($num, 0, strlen($num)-3); // extracts the last three digits $restunits = (strlen($restunits)%2 == 1)?"0".$restunits:$restunits; // explodes the remaining digits in 2's formats, adds a zero in the beginning to maintain the 2's grouping. $expunit = str_split($restunits, 2); for($i=0; $i<sizeof($expunit); $i++) { // creates each of the 2's group and adds a comma to the end if($i==0) { $explrestunits .= (int)$expunit[$i].","; // if is first value , convert into integer } else { $explrestunits .= $expunit[$i].","; } } $thecash = $explrestunits.$lastthree; } else { $thecash = $num; } echo '<h4><b>Rs. '.$thecash.'/-</b></h4>'; ?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">(or) Per Sqf. :</label> <?php echo $site_result[0]['tsv_per_sft_rs'];?> </div> </div> <!-- ro 3 -- --> <hr/> <div class="row land_owner_a"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">Booking Date1 :</label> <?php if($site_result[0]['booking_date1'] == "" || $site_result[0]['booking_date1'] == "0000-00-00"){echo "";}else {echo date("d-m-Y", strtotime($site_result[0]['booking_date1']));}?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">Booking Amount1 :</label> <?php $num=$site_result[0]['booking_amount1'];$explrestunits = "" ; if(strlen($num)>3) { $lastthree = substr($num, strlen($num)-3, strlen($num)); $restunits = substr($num, 0, strlen($num)-3); // extracts the last three digits $restunits = (strlen($restunits)%2 == 1)?"0".$restunits:$restunits; // explodes the remaining digits in 2's formats, adds a zero in the beginning to maintain the 2's grouping. $expunit = str_split($restunits, 2); for($i=0; $i<sizeof($expunit); $i++) { // creates each of the 2's group and adds a comma to the end if($i==0) { $explrestunits .= (int)$expunit[$i].","; // if is first value , convert into integer } else { $explrestunits .= $expunit[$i].","; } } $thecash = $explrestunits.$lastthree; } else { $thecash = $num; } echo 'Rs. '.$thecash.'/-'; ?> </div> </div> <!-- row 2----> <?php if($site_result[0]['booking_payment_type'] == "Cheque") { ?> <div class="row land_owner_a" id="check_div"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">Cheque No :</label> <?php echo $site_result[0]['check_no'];?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">Cheque Date :</label> <?php if($site_result[0]['check_date'] == "" || $site_result[0]['check_date'] == "0000-00-00"){echo "";} else {echo date("d-m-Y", strtotime($site_result[0]['check_date']));}?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">Bank Name :</label> <?php echo $site_result[0]['bank_name'];?> </div> </div> <!-- Check -- --> <?php } ?> <?php if($site_result[0]['booking_payment_type'] == "DD") { ?> <div class="row land_owner_a" id="check_div"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">DD No :</label> <?php echo $site_result[0]['dd_no'];?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">DD Date :</label> <?php if($site_result[0]['dd_date'] == "" || $site_result[0]['dd_date'] == "0000-00-00"){echo "";} else {echo date("d-m-Y", strtotime($site_result[0]['dd_date']));}?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">Bank Name :</label> <?php echo $site_result[0]['dd_bank'];?> </div> </div> <!-- Check -- --> <?php } ?> <?php if($site_result[0]['booking_payment_type'] == "Online Payment") { ?> <div class="row land_owner_a" id="onlinepayment_div"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">UTR No :</label> <?php echo $site_result[0]['vtr_no'];?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">Online Date :</label> <?php if($site_result[0]['online_date'] == "" || $site_result[0]['online_date'] == "0000-00-00"){echo "";} else {echo date("d-m-Y", strtotime($site_result[0]['online_date']));}?> </div> </div> <!-- Online Payment -- --> <?php } ?> <div class="row land_owner_a"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">Payment type :</label> <?php echo $site_result[0]['booking_payment_type'];?> </div> </div> <hr/> <div class="row land_owner_a"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">Booking Date2 :</label> <?php if($site_result[0]['booking_date2'] == "" || $site_result[0]['booking_date2'] == "0000-00-00"){echo "";}else {echo date("d-m-Y", strtotime($site_result[0]['booking_date2']));}?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">Booking Amount2 :</label> <?php $num=$site_result[0]['booking_amount2'];$explrestunits = "" ; if(strlen($num)>3) { $lastthree = substr($num, strlen($num)-3, strlen($num)); $restunits = substr($num, 0, strlen($num)-3); // extracts the last three digits $restunits = (strlen($restunits)%2 == 1)?"0".$restunits:$restunits; // explodes the remaining digits in 2's formats, adds a zero in the beginning to maintain the 2's grouping. $expunit = str_split($restunits, 2); for($i=0; $i<sizeof($expunit); $i++) { // creates each of the 2's group and adds a comma to the end if($i==0) { $explrestunits .= (int)$expunit[$i].","; // if is first value , convert into integer } else { $explrestunits .= $expunit[$i].","; } } $thecash = $explrestunits.$lastthree; } else { $thecash = $num; } echo 'Rs. '.$thecash.'/-'; ?> </div> </div> <!-- row 2----> <div class="row land_owner_a"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">Payment type :</label> <?php if($site_result[0]['booking_payment_type2'] == '0'){echo "";}else{echo $site_result[0]['booking_payment_type2'];}?> </div> </div> <?php if($site_result[0]['booking_payment_type2'] == "Cheque") { ?> <div class="row land_owner_a" id="check_div"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">Cheque No :</label> <?php echo $site_result[0]['check_no2'];?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">Cheque Date :</label> <?php if($site_result[0]['check_date2'] == "" || $site_result[0]['check_date2'] == "0000-00-00"){echo "";} else {echo date("d-m-Y", strtotime($site_result[0]['check_date2']));}?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">Bank Name :</label> <?php echo $site_result[0]['bank_name2'];?> </div> </div> <!-- Check -- --> <?php } ?> <?php if($site_result[0]['booking_payment_type2'] == "DD") { ?> <div class="row land_owner_a" id="check_div"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">DD No :</label> <?php echo $site_result[0]['dd_no2'];?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">DD Date :</label> <?php if($site_result[0]['dd_date2'] == "" || $site_result[0]['dd_date2'] == "0000-00-00"){echo "";} else {echo date("d-m-Y", strtotime($site_result[0]['dd_date2']));}?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">Bank Name :</label> <?php echo $site_result[0]['dd_bank2'];?> </div> </div> <!-- Check -- --> <?php } ?> <?php if($site_result[0]['booking_payment_type2'] == "Online Payment") { ?> <div class="row land_owner_a" id="onlinepayment_div"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">UTR No :</label> <?php echo $site_result[0]['vtr_no2'];?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">Online Date :</label> <?php if($site_result[0]['online_date2'] == "" || $site_result[0]['online_date2'] == "0000-00-00"){echo "";} else {echo date("d-m-Y", strtotime($site_result[0]['online_date2']));}?> </div> </div> <!-- Online Payment -- --> <?php } ?> <hr/> <!-- <div class="row land_owner_a"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4">Instalment Due Date</label> <input type="text" class="form-control col-sm-8 date_picker" name="instal_due_date" max=""> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4">Amount</label> <input type="text" class="form-control col-sm-8" name="instal_due_amount" placeholder="Instalment Amount Rs."> </div> </div> --> <!-- row 3----> <!-- <div class="row land_owner_a"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4">Due Date</label> <input type="date" class="form-control col-sm-8" name="booking_date" max="2050-12-31"> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4">Amount</label> <input type="text" class="form-control col-sm-8" name="amount" placeholder="Due Amount Rs."> </div> </div> --> <!-- row 3----> <div class="row land_owner_a"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">Sale Agreement Due Date:</label> <?php if($site_result[0]['sales_agreement_due_date'] == "" || $site_result[0]['sales_agreement_due_date'] == "0000-00-00"){echo "";} else {echo date("d-m-Y", strtotime($site_result[0]['sales_agreement_due_date']));}?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">Agr Due Amount:</label> <?php $num=$site_result[0]['sales_agreement_due_amount'];$explrestunits = "" ; if(strlen($num)>3) { $lastthree = substr($num, strlen($num)-3, strlen($num)); $restunits = substr($num, 0, strlen($num)-3); // extracts the last three digits $restunits = (strlen($restunits)%2 == 1)?"0".$restunits:$restunits; // explodes the remaining digits in 2's formats, adds a zero in the beginning to maintain the 2's grouping. $expunit = str_split($restunits, 2); for($i=0; $i<sizeof($expunit); $i++) { // creates each of the 2's group and adds a comma to the end if($i==0) { $explrestunits .= (int)$expunit[$i].","; // if is first value , convert into integer } else { $explrestunits .= $expunit[$i].","; } } $thecash = $explrestunits.$lastthree; } else { $thecash = $num; } echo 'Rs. '.$thecash.'/-'; ?> </div> </div> <!-- row 3----> <div class="row land_owner_a"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">Installment Due Date:</label> <?php if($instal_result->installment_due_date == "" || $instal_result->installment_due_date == "0000-00-00"){echo "";} else {echo date("d-m-Y", strtotime($instal_result->installment_due_date));}?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">Instl Due Amount:</label> <?php $instal_result->installment_due_amount;?> <?php $num=$instal_result->installment_due_amount;$explrestunits = "" ; if(strlen($num)>3) { $lastthree = substr($num, strlen($num)-3, strlen($num)); $restunits = substr($num, 0, strlen($num)-3); // extracts the last three digits $restunits = (strlen($restunits)%2 == 1)?"0".$restunits:$restunits; // explodes the remaining digits in 2's formats, adds a zero in the beginning to maintain the 2's grouping. $expunit = str_split($restunits, 2); for($i=0; $i<sizeof($expunit); $i++) { // creates each of the 2's group and adds a comma to the end if($i==0) { $explrestunits .= (int)$expunit[$i].","; // if is first value , convert into integer } else { $explrestunits .= $expunit[$i].","; } } $thecash = $explrestunits.$lastthree; } else { $thecash = $num; } echo 'Rs. '.$thecash.'/-'; ?> </div> </div> <div class="row land_owner_a"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">Registration Due Date :</label> <?php if($site_result[0]['registration_due_date'] == "" || $site_result[0]['registration_due_date'] == "0000-00-00"){echo "";}else {echo date("d-m-Y", strtotime($site_result[0]['registration_due_date']));}?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-5">Regr Due Amount :</label> <?php $num=$site_result[0]['registration_due_amount'];$explrestunits = "" ; if(strlen($num)>3) { $lastthree = substr($num, strlen($num)-3, strlen($num)); $restunits = substr($num, 0, strlen($num)-3); // extracts the last three digits $restunits = (strlen($restunits)%2 == 1)?"0".$restunits:$restunits; // explodes the remaining digits in 2's formats, adds a zero in the beginning to maintain the 2's grouping. $expunit = str_split($restunits, 2); for($i=0; $i<sizeof($expunit); $i++) { // creates each of the 2's group and adds a comma to the end if($i==0) { $explrestunits .= (int)$expunit[$i].","; // if is first value , convert into integer } else { $explrestunits .= $expunit[$i].","; } } $thecash = $explrestunits.$lastthree; } else { $thecash = $num; } echo 'Rs. '.$thecash.'/-'; ?> </div> </div> <!-- row 3----> <div class="row land_owner_a"> <!-- <div class="form-group col-sm-12 col-md-6"> --> <!-- <label class="col-sm-5">Balance amount :</label> --> <?php // $amount = ''; // if($instal_result->installment_due_date != "0000-00-00") // { // $amount = $amount + $instal_result->installment_due_amount; // } // $amt = $amount + $site_result[0]['booking_amount1']; // $total = $site_result[0]['tsv'] - $amt; // $num=$total;$explrestunits = "" ; // if(strlen($num)>3) { // $lastthree = substr($num, strlen($num)-3, strlen($num)); // $restunits = substr($num, 0, strlen($num)-3); // extracts the last three digits // $restunits = (strlen($restunits)%2 == 1)?"0".$restunits:$restunits; // explodes the remaining digits in 2's formats, adds a zero in the beginning to maintain the 2's grouping. // $expunit = str_split($restunits, 2); // for($i=0; $i<sizeof($expunit); $i++) { // // creates each of the 2's group and adds a comma to the end // if($i==0) { // $explrestunits .= (int)$expunit[$i].","; // if is first value , convert into integer // } else { // $explrestunits .= $expunit[$i].","; // } // } // $thecash = $explrestunits.$lastthree; // } else { // $thecash = $num; // } echo 'Rs. '.$thecash.'/-'; // ?> <!-- </div> --> </div> <!-- row 3----> <hr/> <div class="row land_owner_a"> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4 col-md-4">Id Scan:</label><br/> <?php $ext = pathinfo($site_result[0]['idproof_image'], PATHINFO_EXTENSION); if($ext == 'JPG' || $ext == 'jpg' || $ext == 'JPEG' || $ext == 'jpeg' || $ext == 'png' || $ext == 'PNG') { ?> <img style="height:400px;width:300px;"src="<?php echo base_url('booking_uploads');?>/<?php echo $site_result[0]['idproof_image'];?>"/> <?php } else if($ext == 'pdf' || $ext == 'PDF') { ?> <embed src="<?php echo base_url('booking_uploads');?>/<?php echo $site_result[0]['idproof_image'];?>" style="height:500px;width:400px;"/> <?php } ?> </div> <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4 col-md-4">Application Scan:</label><br/> <?php $ext = pathinfo($site_result[0]['application_scan'], PATHINFO_EXTENSION); if($ext == 'JPG' || $ext == 'jpg' || $ext == 'JPEG' || $ext == 'jpeg' || $ext == 'png' || $ext == 'PNG') { ?> <img style="height:400px;width:300px;"src="<?php echo base_url('booking_uploads');?>/<?php echo $site_result[0]['application_scan'];?>"/> <?php } else if($ext == 'pdf' || $ext == 'PDF') { ?> <embed src="<?php echo base_url('booking_uploads');?>/<?php echo $site_result[0]['application_scan'];?>" style="height:500px;width:400px;"/> <?php } ?> </div> <!-- <div class="form-group col-sm-12 col-md-6"> <label class="col-sm-4 col-md-4">Application Scan</label> <input type="file" class="col-sm-8 text-center center-block well well-sm" name="application_scan" required="required"> </div> --> </div> <!-- row 4----> </form> <!---- form End ----------------------------------------------------------------------------------------------> </div> <!--- col-sm-8 ----> </section> <!--- section 2 ----> <style type="text/css"> .content-wrapper, .right-side { min-height: 2000px !important; } .bok-details{ background: gainsboro; text-align: center; padding-top: 7px; padding-bottom: 7px; margin-bottom: 30px; margin-top: 33px; } a { color: inherit; } } </style> <?php echo view('includes/footer');?>