pdf meger removed and fi changes : ps

This commit is contained in:
VE10-Sanjeev 2023-01-04 15:45:55 +05:30
parent de9907a496
commit 3174ff076c
9 changed files with 2009 additions and 216 deletions

View File

@ -26,8 +26,7 @@
"twilio/sdk": "^6.10",
"phpoffice/phpspreadsheet": "^1.15",
"johnathanmiller/secure-env-php": "^2.0",
"google/apiclient": "^2.0",
"jurosh/pdf-merge": "^2.1"
"google/apiclient": "^2.0"
},
"suggest": {

View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "8fc0a51600d01d7c91e51c6a63b2b3f2",
"content-hash": "ecfa4a8917d77187eb7582e019969b78",
"packages": [
{
"name": "amphp/amp",
@ -928,55 +928,6 @@
},
"time": "2019-01-07T06:56:58+00:00"
},
{
"name": "jurosh/pdf-merge",
"version": "2.1.0",
"source": {
"type": "git",
"url": "https://github.com/jurosh/php-pdf-merge.git",
"reference": "89ba3446c9f38c573e3b8bf577d2f22993494130"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/jurosh/php-pdf-merge/zipball/89ba3446c9f38c573e3b8bf577d2f22993494130",
"reference": "89ba3446c9f38c573e3b8bf577d2f22993494130",
"shasum": ""
},
"require": {
"php": ">=5.6.20",
"setasign/fpdf": "^1.8",
"setasign/fpdi": "^2.3"
},
"type": "library",
"autoload": {
"classmap": [
"src/Jurosh/PDFMerge/PDFMerger.php",
"src/Jurosh/PDFMerge/PDFObject.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Juraj Husar",
"email": "jurosh@jurosh.com",
"homepage": "http://jurosh.com"
}
],
"description": "PHP PDF Merger",
"homepage": "https://github.com/jurosh/php-pdf-merge",
"keywords": [
"merge",
"pdf"
],
"support": {
"issues": "https://github.com/jurosh/php-pdf-merge/issues",
"source": "https://github.com/jurosh/php-pdf-merge/tree/remove"
},
"time": "2021-03-28T19:57:14+00:00"
},
{
"name": "maennchen/zipstream-php",
"version": "2.1.0",
@ -2337,124 +2288,6 @@
},
"time": "2021-12-11T13:40:54+00:00"
},
{
"name": "setasign/fpdf",
"version": "1.8.5",
"source": {
"type": "git",
"url": "https://github.com/Setasign/FPDF.git",
"reference": "f4104a04c9a3f95c4c26a0a0531abebcc980987a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Setasign/FPDF/zipball/f4104a04c9a3f95c4c26a0a0531abebcc980987a",
"reference": "f4104a04c9a3f95c4c26a0a0531abebcc980987a",
"shasum": ""
},
"require": {
"ext-gd": "*",
"ext-zlib": "*"
},
"type": "library",
"autoload": {
"classmap": [
"fpdf.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Olivier Plathey",
"email": "oliver@fpdf.org",
"homepage": "http://fpdf.org/"
}
],
"description": "FPDF is a PHP class which allows to generate PDF files with pure PHP. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs.",
"homepage": "http://www.fpdf.org",
"keywords": [
"fpdf",
"pdf"
],
"support": {
"source": "https://github.com/Setasign/FPDF/tree/1.8.5"
},
"time": "2022-11-18T07:02:00+00:00"
},
{
"name": "setasign/fpdi",
"version": "v2.3.6",
"source": {
"type": "git",
"url": "https://github.com/Setasign/FPDI.git",
"reference": "6231e315f73e4f62d72b73f3d6d78ff0eed93c31"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Setasign/FPDI/zipball/6231e315f73e4f62d72b73f3d6d78ff0eed93c31",
"reference": "6231e315f73e4f62d72b73f3d6d78ff0eed93c31",
"shasum": ""
},
"require": {
"ext-zlib": "*",
"php": "^5.6 || ^7.0 || ^8.0"
},
"conflict": {
"setasign/tfpdf": "<1.31"
},
"require-dev": {
"phpunit/phpunit": "~5.7",
"setasign/fpdf": "~1.8",
"setasign/tfpdf": "1.31",
"squizlabs/php_codesniffer": "^3.5",
"tecnickcom/tcpdf": "~6.2"
},
"suggest": {
"setasign/fpdf": "FPDI will extend this class but as it is also possible to use TCPDF or tFPDF as an alternative. There's no fixed dependency configured."
},
"type": "library",
"autoload": {
"psr-4": {
"setasign\\Fpdi\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Jan Slabon",
"email": "jan.slabon@setasign.com",
"homepage": "https://www.setasign.com"
},
{
"name": "Maximilian Kresse",
"email": "maximilian.kresse@setasign.com",
"homepage": "https://www.setasign.com"
}
],
"description": "FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF documents and use them as templates in FPDF. Because it is also possible to use FPDI with TCPDF, there are no fixed dependencies defined. Please see suggestions for packages which evaluates the dependencies automatically.",
"homepage": "https://www.setasign.com/fpdi",
"keywords": [
"fpdf",
"fpdi",
"pdf"
],
"support": {
"issues": "https://github.com/Setasign/FPDI/issues",
"source": "https://github.com/Setasign/FPDI/tree/v2.3.6"
},
"funding": [
{
"url": "https://tidelift.com/funding/github/packagist/setasign/fpdi",
"type": "tidelift"
}
],
"time": "2021-02-11T11:37:01+00:00"
},
{
"name": "smalot/pdfparser",
"version": "v0.13.3",

View File

@ -370,6 +370,9 @@ $route['getListPDOfficersForNotification'] = 'PD_Controller/getListPDOfficersFor
$route['sendNotificationToOfficers'] = 'PD_Controller/sendNotificationToOfficers';
$route['saveDatadumpRequest'] = 'Request_DataDump_Controller/saveDatadumpRequest';
$route['getDatadumpRequestList'] = 'Request_DataDump_Controller/getDatadumpRequestList';
$route['downloadDatadumpRequest'] = 'Request_DataDump_Controller/downloadDatadumpRequest';
$route['CSVfile'] = 'Request_DataDump_Controller/CSVfile';
$route['addgoogleCalenderEvent'] = 'GC_Event_Controller/addGoogleCalenterEvent';//dummy checking purpose
$route['getEventList'] = 'GC_Event_Controller/getGoogleCalenderEventList';//dummy checking purpose
@ -411,6 +414,7 @@ $route['smcPhotoPDFDownload'] = 'SMC_Credit_PD_Controller/imgPDFDownload';
$route['myFunction']='Flyhi_Controller/myFunction';
$route['previewDigiLockerDocs']='Flyhi_Controller/previewDigiLockerDocs';
$route['applicantWiseDigiLockerDocs']='Flyhi_Controller/DigiLockerDocs';
$route['DigiLockerPDFMerge']='Flyhi_Controller/DigiLockerPDFMerge';
$route['purge_pddata']='Data_Dump_Controller/renamingExistingPDinfo';
$route['checkjsonPD']='Data_Dump_Controller/checkjsonPD';

View File

@ -4513,19 +4513,19 @@ class PD_Controller extends REST_Controller
// die();
//PDF Gen using DOM PDF
$pdf_doc = $this->pdfgenerator->generate($temp, $filename = 'version', $stream = false, $paper = 'A4', $orientation = "portrait");
$details = $this->PD_Model->getDocsDetails($pdid);
if(!empty($details)){
for($i=0;$i<count($details);$i++){
$dockey = 'pd' . $pdid . '/' . $details[$i]['pd_document_name'];
$doc_singed_uri = $this->aws_s3->getSingleObjectInaBucketAsSignedURI($bucketname, $dockey, '+30 minutes');
$src_local_file = XLPATH.'/tmp/'.$details[$i]['pd_document_name'];
$ifp = fopen( $src_local_file, 'wb' );
fwrite( $ifp, $doc_singed_uri );
fclose( $ifp );
chmod($src_local_file, 0777);
$docsdetails[] = $details[$i]['pd_document_name'];
}
}
// $details = $this->PD_Model->getDocsDetails($pdid);
// if(!empty($details)){
// for($i=0;$i<count($details);$i++){
// $dockey = 'pd' . $pdid . '/' . $details[$i]['pd_document_name'];
// $doc_singed_uri = $this->aws_s3->getSingleObjectInaBucketAsSignedURI($bucketname, $dockey, '+30 minutes');
// $src_local_file = XLPATH.'/tmp/'.$details[$i]['pd_document_name'];
// $ifp = fopen( $src_local_file, 'wb' );
// fwrite( $ifp, $doc_singed_uri );
// fclose( $ifp );
// chmod($src_local_file, 0777);
// $docsdetails[] = $details[$i]['pd_document_name'];
// }
// }
// ALTER TABLE `sineedgedemo`.`t_pd_documents`
// ADD COLUMN `docs_merge` TINYINT(4) NULL DEFAULT '0' AFTER `content_type`;
//End of PDF Gen using DOM PDF
@ -4534,16 +4534,16 @@ class PD_Controller extends REST_Controller
// echo $output_file2;
// die();
if (file_put_contents($output_file2, $pdf_doc)) {
if(!empty($docsdetails)){
$pdf = new \Jurosh\PDFMerge\PDFMerger;
// $pdf = new PDFMerger;
$pdf->addPDF($output_file2, 'all');
foreach($docsdetails as $doc)
{
$pdf->addPDF(XLPATH.'/tmp/'.$doc, 'all');
}
$pdf->merge('file', $output_file2);
}
// if(!empty($docsdetails)){
// $pdf = new \Jurosh\PDFMerge\PDFMerger;
// // $pdf = new PDFMerger;
// $pdf->addPDF($output_file2, 'all');
// foreach($docsdetails as $doc)
// {
// $pdf->addPDF(XLPATH.'/tmp/'.$doc, 'all');
// }
// $pdf->merge('file', $output_file2);
// }
$sourcefile = $output_file2;
// print_r($sourcefile);die();
$bucket_data = array('bucket_name' => $bucketname, 'key' => $newkey, 'sourcefile' => $sourcefile);
@ -5976,7 +5976,7 @@ class PD_Controller extends REST_Controller
// echo $data['pd_master_details'][0]['fk_pd_type'];
echo $t;
die();
// die();
$total_replaces = substr_count($t, '<span class="tooltip">');
for ($i = 0; $i < $total_replaces; $i++) {

File diff suppressed because it is too large Load Diff

View File

@ -136,4 +136,51 @@ class Data_Dump_Model extends SPARQ_Model {
}
### CSV-XLsheet Queries Ends Here
function getRequestForDataDump($arr){
print_r($arr);
$fromd = isset($arr[0]['from_date'])?$arr[0]['from_date']:null;
$tod= isset($arr[0]['to_date'])?$arr[0]['to_date']:null;
$type = isset($arr[0]['fk_pd_type_id'])?$arr[0]['fk_pd_type_id']:null;
$prod = isset($arr[0]['fk_product_id'])?$arr[0]['fk_product_id']:null;
$lender = isset($arr[0]['fk_lender_id'])?$arr[0]['fk_lender_id']:null;
$cseg = isset($arr[0]['fk_customer_segment_id'])?$arr[0]['fk_customer_segment_id']:null;
$city = isset($arr[0]['fk_city_id'])?$arr[0]['fk_city_id']:null;
### 2 tables t_pd_form_details_json and t_pd_triggered
$this->db->select('PDFORMDETAILSJSON.pd_form_detail_json_id, PDFORMDETAILSJSON.fk_pd_id, PDFORMDETAILSJSON.fk_form_id, PDFORMDETAILSJSON.isactive, PDFORMDETAILSJSON.json, DATE_FORMAT(PDFORMDETAILSJSON.createdon,"%d/%m/%Y %H:%i:%s") as createdon, PDFORMDETAILSJSON.processed_json, PDFORMDETAILSJSON.updatedon,DATE_FORMAT(PDTRIGGER.completed_on,"%d/%m/%Y %H:%i:%s") as completed_on,PDTRIGGER.fk_product_id, PDTRIGGER.fk_customer_segment,PDTRIGGER.fk_pd_type,PDTRIGGER.pd_status,PDTRIGGER.createdon');
$this->db->from(PDFORMDETAILSJSON.' as PDFORMDETAILSJSON');
$this->db->join(PDTRIGGER.' as PDTRIGGER','PDTRIGGER.pd_id = PDFORMDETAILSJSON.fk_pd_id ','LEFT');
if(($fromd != "" || $fromd != null) && ($tod != "" || $tod != null)) {
$this->db->where('PDTRIGGER.completed_on BETWEEN '. "'$fromd'". ' AND '. "'$tod'" );
}
else if($fromd != "" && $fromd != null) {
$this->db->where("DATE_FORMAT(PDTRIGGER.completed_on,'%Y-%m-%d')",$fromd);
}
else if($tod != "" && $tod != null) {
$this->db->where("DATE_FORMAT(PDTRIGGER.completed_on,'%Y-%m-%d')",$tod);
}
if($prod != ""){
$this->db->where('PDTRIGGER.fk_product_id',$prod);
}
if($type != ""){
$this->db->where('PDTRIGGER.fk_pd_type',$type);
}
if($cseg != ""){
$this->db->where('PDTRIGGER.fk_customer_segment',$cseg);
}
if($city != ""){
$this->db->where('PDTRIGGER.fk_city',$city);
}
if($lender != ""){
$this->db->where('PDTRIGGER.fk_lender_id',$lender);
}
$this->db->WHERE('PDFORMDETAILSJSON.isactive',1);
$this->db->order_by('PDFORMDETAILSJSON.pd_form_detail_json_id','desc');
// $this->db->limit(5);
$result = $this->db->get()->result_array();
// echo count($result);print_r($result);print_r($this->db->last_query());die();
return $result;
}
}

View File

@ -339,7 +339,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
echo '<p>' . 'The Field Visit was done at <b>' . $address_value['address_type_master'] . '</b> of the loan applicants. The <b>' . $address_value['address_type_master'] . '</b> is located in a <b>' . $address_value['locality_master'] . '</b> and the estimated area of the <b>' . $address_value['address_type_master'] . '</b> is <b>' .$address_value['estimated_area'].' '. $address_value['uom_master'] . '</b>. The location was <b>' . $address_value['pd_location_master'] . '</b>. As Per Officer, the <b>' . $address_value['address_type_master'] . '</b> is situated in a <b>' . $address_value['comment_locality_master'] . '</b> Locality. ' . '</p>';
}
?>
<div id="page_break"></div>
<!-- <div id="page_break"></div> -->
<!-- ####################### address details ends ############################-->
<!-- ####################### office visit DI ############################-->
@ -348,26 +348,37 @@ defined('BASEPATH') or exit('No direct script access allowed');
echo '<h3 contenteditable="true"><u>VISIT DETAILS</u>: </h3>';
$Office_visit_data = json_decode($pd_processed_forms[29][0]['processed_json'], true);
$ov_value = $Office_visit_data['json'];
$business_activities_during_visit = implode(', ', $ov_value['Was_any_business_activities_observed_during_visit']);
$business_activities_during_visit = preg_replace("/_/i", ' ', $business_activities_during_visit);
$business_activities_during_visit = ucwords($business_activities_during_visit);
$business_activities_during_visit = "";
if(strtoupper($ov_value['Was_any_business_activities_observed']) == 'YES'){
$business_activities_during_visit = implode(', ', $ov_value['Was_any_business_activities_observed_during_visit']);
$business_activities_during_visit = preg_replace("/_/i", ' ', $business_activities_during_visit);
$business_activities_during_visit = ucwords($business_activities_during_visit);
if(isset($ov_value['specify_others']) && $ov_value['specify_others'] != "" && $ov_value['specify_others'] != null){
$business_activities_during_visit = str_replace("Others",$ov_value['specify_others'],$business_activities_during_visit);
}
}
$company_name_sighted = strtoupper($ov_value['was_the_company_name_board_sighted']) == 'YES' ? 'seen' : 'not seen';
echo '<ul><li style="margin: 15px 0;"><b>Brief of the Business / Service Model:</b> ' . $ov_value['business_brief'] . '.</li>
<li style="margin: 15px 0;">Visited address is of a <b>' . $ov_value['visited_address_is'] . '</b>.</li>
<li style="margin: 15px 0;">At the time of visit, the officer sighted <b>' . $ov_value['no_of_employees_sighted_by_PD_officer_during_visit'] . '</b> employees at the business premises.</li>
<li style="margin: 15px 0;">The Business Name board was <b>' . $company_name_sighted . '</b> at the visited address.</li>';
if (strtoupper($ov_value['do_you_want_to_add_other_documents']) == 'YES') {
echo '<li style="margin: 15px 0;"> <b>' . $ov_value['remarks_others'] . '</b> was sighted during visit and pictures are enclosed with the Report.</li>';
}
$name_of_business_documents = array();
if (strtoupper($ov_value['gst_documents_sighted']) == 'YES') { array_push($name_of_business_documents,"GST");}
if (strtoupper($ov_value['rent_agreement_documents_sighted']) == 'YES') {array_push($name_of_business_documents,"rent agreement");}
if (strtoupper($ov_value['do_you_want_to_add_other_documents']) == 'YES') {array_push($name_of_business_documents,$ov_value['remarks_others']);}
echo '<li style="margin: 15px 0;"> <b>' . implode(', ', $name_of_business_documents) . '</b> was sighted during visit and pictures are enclosed with the Report.</li>';
if ($ov_value['Visited_address_is_rented'] != 'not disclosed ') {
echo '<li style="margin: 15px 0;">The <b>' . $ov_value['visited_address_is'] . '</b> is <b>' . $ov_value['Visited_address_is_rented'] . '</b>.</li>';
}
if ($ov_value['Visited_address_is_rented'] == 'not disclosed ') {
echo '<li style="margin: 15px 0;">The <b>' . $ov_value['visited_address_is'] . '</b> is Rented or Owned is Not Disclosed by the person met.</li>';
}
echo '<li style="margin: 15px 0;">Business Activity was <b>' . $company_name_sighted . '</b> and <b>' . $business_activities_during_visit . '</b> </li>';
if($business_activities_during_visit != ""){
echo '<li style="margin: 15px 0;">Business Activity was <b>' . $company_name_sighted . '</b> and <b>' . $business_activities_during_visit . '</b> </li>';
}
if (strtoupper($ov_value['stock_photograph']) == 'YES') {
echo '<li style="margin: 15px 0;">Stock was seen during visit and pictures are enclosed with the Report.</li>';
}
@ -376,7 +387,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
}
echo '</ul>';
?>
<div id="page_break"></div>
<!-- <div id="page_break"></div> -->
<!-- ####################### office visit DI ends ############################-->
<!-- ################# neighbourhood/reference check #################-->
@ -553,7 +564,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
<!-- ################# credit manager specific query ends#################-->
<!-- ################# final remarks #################-->
<div class="page_break"></div>
<!-- <div class="page_break"></div> -->
<br>
<h3 contenteditable="true"><u>VISITING OFFICER`S REMARKS</u></h3>
<?php
@ -632,7 +643,8 @@ defined('BASEPATH') or exit('No direct script access allowed');
</div>
<!-- ################# final remarks ends #################-->
<!-- ################# satellite #################-->
<?php
<?php
echo '<div id="page_break"></div>';
if (!empty($distances['distance'])) {
echo '<br><br><b> Distance to PD location : </b>' . $distances['distance'];
}
@ -666,7 +678,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
if (count($pd_images['34'])) {
$pd_images['common_images'] = array_values($pd_images['34']);
$tot_rows = ceil(count($pd_images['common_images']) / 3);
echo '<div id="page_break"></div>';
// echo '<div id="page_break"></div>';
echo '<h3 contenteditable="true"><u>VISIT PICTURES</u></h3>';
echo '<table class="scorecard_table"><tr><th class="thlargefont" colspan="10">Photograph`s</th></tr></table><br><table ><tbody>';

View File

@ -310,6 +310,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
echo '<p>' . 'Applicant <b>('.$person.')</b> was met at the visited address.' . '</p>';
} else if (strtoupper($value['is_person_met']) == 'NO') {
$designation = str_replace(' of', '', $value['designation_person_met_master']);
if($value['Others_specify']){ $designation = $value['Others_specify']; }
echo '<p>' . 'During PD (' . $value['Name_of_the_Person'] . ') (' . $designation . ') was met at the visited address during visit.' . '</p>';
}
if (isset($general_form['general_remark']) && $general_form['general_remark'] != "") {
@ -339,7 +340,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
echo '<p>' . 'The Field Visit was done at <b>' . $address_value['address_type_master'] . '</b> of the loan applicants. </p>';
}
?>
<div id="page_break"></div>
<!-- <div id="page_break"></div> -->
<!-- ####################### address details ends ############################-->
<!-- ####################### office visit DI ############################-->
@ -502,7 +503,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
<!-- ################# credit manager specific query ends#################-->
<!-- ################# final remarks #################-->
<div class="page_break"></div>
<!-- <div class="page_break"></div> -->
<br>
<h3 contenteditable="true"><u>VISITING OFFICER`S REMARKS</u></h3>
<?php
@ -584,6 +585,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
<!-- ################# final remarks ends #################-->
<!-- ################# satellite #################-->
<?php
echo '<div id="page_break"></div>';
if (!empty($distances['distance'])) {
echo '<br><br><b> Distance to PD location : </b>' . $distances['distance'];
}
@ -618,7 +620,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
if (count($pd_images['34'])) {
$pd_images['common_images'] = array_values($pd_images['34']);
$tot_rows = ceil(count($pd_images['common_images']) / 3);
echo '<div id="page_break"></div>';
// echo '<div id="page_break"></div>';
echo '<h3 contenteditable="true"><u>VISIT PICTURES</u></h3>';
echo '<table class="scorecard_table"><tr><th class="thlargefont" colspan="10">Photograph`s</th></tr></table><br><table ><tbody>';

View File

@ -310,8 +310,8 @@ defined('BASEPATH') or exit('No direct script access allowed');
$person = isset($value['Name_of_the_Person_met_master']) ? $value['Name_of_the_Person_met_master'] : $value['Name_of_the_Person_met'];
echo '<p>' . 'Applicant <b>('.$person.')</b> was met at the visited address.' . '</p>';
} else if (strtoupper($value['is_person_met']) == 'NO') {
$designation = str_replace(' of', '', $value['designation_person_met_master']);
echo '<p>' . '(' . $value['Name_of_the_Person'] . ') (' . $designation . ') was met at the visited address during visit.' . '</p>';
$designation = isset($value['designation_person_met_master']) ? str_replace(' of', '', "(".$value['designation_person_met_master'].")") : "";
echo '<p>' . '(' . $value['Name_of_the_Person'] . ') ' . $designation . ' was met at the visited address during visit.' . '</p>';
}
if (isset($general_form['general_remark']) && $general_form['general_remark'] != "") {
echo '<p>' . $general_form['general_remark'] . '</p>';
@ -340,7 +340,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
echo '<p>' . 'The Field Visit was done at <b>' . $address_value['address_type_master'] . '</b> of the loan applicants. The <b>' . $address_value['address_type_master'] . '</b> is located in a <b>' . $address_value['locality_master'] . '</b> and the estimated area of the <b>' . $address_value['address_type_master'] . '</b> is <b>' .$address_value['estimated_area'].' '. $address_value['uom_master'] . '</b>. The location was <b>' . $address_value['pd_location_master'] . '</b>. As Per Officer, the <b>' . $address_value['address_type_master'] . '</b> is situated in a <b>' . $address_value['comment_locality_master'] . '</b> Locality. ' . '</p>';
}
?>
<div id="page_break"></div>
<!-- <div id="page_break"></div> -->
<!-- ####################### address details ends ############################-->
<!-- ####################### office visit DI ############################-->
@ -375,7 +375,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
// }
echo '</ul>';
?>
<div id="page_break"></div>
<!-- <div id="page_break"></div> -->
<!-- ####################### office visit DI ends ############################-->
<!-- ################# neighbourhood/reference check #################-->
@ -637,6 +637,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
<!-- ################# final remarks ends #################-->
<!-- ################# satellite #################-->
<?php
echo '<div id="page_break"></div>';
if (!empty($distances['distance'])) {
echo '<br><br><b> Distance to PD location : </b>' . $distances['distance'];
}
@ -669,7 +670,7 @@ defined('BASEPATH') or exit('No direct script access allowed');
if (count($pd_images['34'])) {
$pd_images['common_images'] = array_values($pd_images['34']);
$tot_rows = ceil(count($pd_images['common_images']) / 3);
echo '<div id="page_break"></div>';
// echo '<div id="page_break"></div>';
echo '<h3 contenteditable="true"><u>VISIT PICTURES</u></h3>';
echo '<table class="scorecard_table"><tr><th class="thlargefont" colspan="10">Photograph`s</th></tr></table><br><table ><tbody>';