diff --git a/api/application/views/report_templates/JSONTOREPORT_CLIX.php b/api/application/views/report_templates/JSONTOREPORT_CLIX.php
index f780fa32..9b3b1952 100644
--- a/api/application/views/report_templates/JSONTOREPORT_CLIX.php
+++ b/api/application/views/report_templates/JSONTOREPORT_CLIX.php
@@ -715,15 +715,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
}
$faceimage_url = array();
- if(isset($pd_images['common_images']) && count($pd_images['common_images']) && $pd_master_details[0]['is_face_api_enabled'] == 1)
- {
- foreach($pd_images['common_images'] as $com_key => $com_value)
- {
- if($com_value['pd_document_title'] == 'face_api_result_image')
- {
- // $faceimage_url = $com_value['doc_url'];break;
- array_push($faceimage_url,$com_value['doc_url']);
- }
+ for ($i = 0; $i < count($all_applicant_details); $i++) {
+ if($all_applicant_details[$j]['facemark_image_generated'] == 1){
+ $faceimage_url = $com_value['doc_url'];
+ break;
}
}
if(!empty($faceimage_url)){
@@ -749,8 +744,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$notequal_mark ='≠';
$equal_mark ='=';
for ($i = 0; $i < count($ci); $i++) {
- $symbol = ($similarity > 50) ? '
'.$equal_mark.'
': ''.$notequal_mark.'
';
$similarity = round($ci[$i]["Similarity"]);
+ $symbol = ($similarity > 50) ? ''.$equal_mark.'
': ''.$notequal_mark.'
';
if ($similarity > 80) { // above 81 green
$progress_bar_class = 'rcorners_green';
} else if ($similarity <= 80 && $similarity > 60) { // in between 61 to 80 orange
@@ -768,10 +763,12 @@ defined('BASEPATH') OR exit('No direct script access allowed');
';
- echo 'Similarity
- '.$similarity.' %
-
';
- echo '';
+ echo'
+
Similarity
+
'.$similarity.' %
+
+
';
+ echo '
';
}
// ########################### End of Percentage Bar Section #########################################
@@ -1140,6 +1137,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
{
foreach($pd_images['common_images'] as $com_key => $com_value)
{
+ // if($com_value['image_key'] == 'face_mark'){ array_push($faceimage_url,$com_value['doc_url']);}
if($com_value['pd_document_title'] == 'satellite')
{
$satellite_url = $com_value['doc_url'];break;
diff --git a/api/application/views/report_templates/JSONTOREPORT_CLIX_SMARTPD.php b/api/application/views/report_templates/JSONTOREPORT_CLIX_SMARTPD.php
index 57218b20..029a7781 100644
--- a/api/application/views/report_templates/JSONTOREPORT_CLIX_SMARTPD.php
+++ b/api/application/views/report_templates/JSONTOREPORT_CLIX_SMARTPD.php
@@ -722,15 +722,10 @@ font-weight: bolder;;
}
$faceimage_url = array();
- if(isset($pd_images['common_images']) && count($pd_images['common_images']) && $pd_master_details[0]['is_face_api_enabled'] == 1)
- {
- foreach($pd_images['common_images'] as $com_key => $com_value)
- {
- if($com_value['pd_document_title'] == 'face_api_result_image')
- {
- // $faceimage_url = $com_value['doc_url'];break;
- array_push($faceimage_url,$com_value['doc_url']);
- }
+ for ($i = 0; $i < count($all_applicant_details); $i++) {
+ if($all_applicant_details[$j]['facemark_image_generated'] == 1){
+ $faceimage_url = $com_value['doc_url'];
+ break;
}
}
if(!empty($faceimage_url)){
@@ -756,8 +751,8 @@ font-weight: bolder;;
$notequal_mark ='≠';
$equal_mark ='=';
for ($i = 0; $i < count($ci); $i++) {
- $symbol = ($similarity > 50) ? ''.$equal_mark.'
': ''.$notequal_mark.'
';
$similarity = round($ci[$i]["Similarity"]);
+ $symbol = ($similarity > 50) ? ''.$equal_mark.'
': ''.$notequal_mark.'
';
if ($similarity > 80) { // above 81 green
$progress_bar_class = 'rcorners_green';
} else if ($similarity <= 80 && $similarity > 60) { // in between 61 to 80 orange
@@ -775,10 +770,12 @@ font-weight: bolder;;
';
- echo 'Similarity
- '.$similarity.' %
-
';
- echo '';
+ echo'
+
Similarity
+
'.$similarity.' %
+
+
';
+ echo '
';
}
// ########################### End of Percentage Bar Section #########################################
diff --git a/api/application/views/report_templates/JSONTOREPORT_CLIX_TELE_PD.php b/api/application/views/report_templates/JSONTOREPORT_CLIX_TELE_PD.php
index d24ba836..1b3e70f7 100644
--- a/api/application/views/report_templates/JSONTOREPORT_CLIX_TELE_PD.php
+++ b/api/application/views/report_templates/JSONTOREPORT_CLIX_TELE_PD.php
@@ -716,16 +716,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
}
$faceimage_url = array();
-
- if(isset($pd_images['common_images']) && count($pd_images['common_images']) && $pd_master_details[0]['is_face_api_enabled'] == 1)
- {
- foreach($pd_images['common_images'] as $com_key => $com_value)
- {
- if($com_value['pd_document_title'] == 'face_api_result_image')
- {
- // $faceimage_url = $com_value['doc_url'];break;
- array_push($faceimage_url,$com_value['doc_url']);
- }
+ for ($i = 0; $i < count($all_applicant_details); $i++) {
+ if($all_applicant_details[$j]['facemark_image_generated'] == 1){
+ $faceimage_url = $com_value['doc_url'];
+ break;
}
}
if(!empty($faceimage_url)){
@@ -752,8 +746,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
$notequal_mark ='≠';
$equal_mark ='=';
for ($i = 0; $i < count($ci); $i++) {
- $symbol = ($similarity > 50) ? ''.$equal_mark.'
': ''.$notequal_mark.'
';
$similarity = round($ci[$i]["Similarity"]);
+ $symbol = ($similarity > 50) ? ''.$equal_mark.'
': ''.$notequal_mark.'
';
if ($similarity > 80) { // above 81 green
$progress_bar_class = 'rcorners_green';
} else if ($similarity <= 80 && $similarity > 60) { // in between 61 to 80 orange
@@ -771,10 +765,12 @@ defined('BASEPATH') OR exit('No direct script access allowed');
';
- echo 'Similarity
- '.$similarity.' %
-
';
- echo '';
+ echo'
+
Similarity
+
'.$similarity.' %
+
+
';
+ echo '
';
}
// ########################### End of Percentage Bar Section #########################################
@@ -1141,6 +1137,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
{
foreach($pd_images['common_images'] as $com_key => $com_value)
{
+ // if($com_value['image_key'] == 'face_mark'){ array_push($faceimage_url,$com_value['doc_url']);}
if($com_value['pd_document_title'] == 'satellite')
{
$satellite_url = $com_value['doc_url'];break;
diff --git a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php
index a13ddc25..5a92f771 100644
--- a/api/application/views/report_templates/JSONTOREPORT_DI_AI.php
+++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI.php
@@ -718,9 +718,15 @@ if ( isset($pdf) ) {
}
- // $faceimage_url = '';
$faceimage_url = array();
- // $all_applicant_details
+ for ($i = 0; $i < count($all_applicant_details); $i++) {
+ if($all_applicant_details[$j]['facemark_image_generated'] == 1){
+ $faceimage_url = $com_value['doc_url'];
+ break;
+ }
+ }
+ // $faceimage_url = '';
+ // $faceimage_url = array();
// for ($i = 0; $i < count($all_applicant_details); $i++) {
// if($all_applicant_details[$j]['facemark_image_generated'] == 1){
// $faceimage_url = $com_value['doc_url'];
@@ -730,17 +736,17 @@ if ( isset($pdf) ) {
// if(isset($pd_images['common_images']) && count($pd_images['common_images']))
// if(isset($pd_images['common_images']) && count($pd_images['common_images']) && $pd_master_details[0]['facemark_image_generated'] == 1 && $pd_master_details[0]['is_face_api_enabled'] == 1)
// print_r($pd_images['common_images']);die();
- if(isset($pd_images['common_images']) && count($pd_images['common_images']) && $pd_master_details[0]['is_face_api_enabled'] == 1)
- {
- foreach($pd_images['common_images'] as $com_key => $com_value)
- {
- if($com_value['pd_document_title'] == 'face_api_result_image')
- {
- // $faceimage_url = $com_value['doc_url'];break;
- array_push($faceimage_url,$com_value['doc_url']);
- }
- }
- }
+ // if(isset($pd_images['common_images']) && count($pd_images['common_images']) && $pd_master_details[0]['is_face_api_enabled'] == 1)
+ // {
+ // foreach($pd_images['common_images'] as $com_key => $com_value)
+ // {
+ // if($com_value['pd_document_title'] == 'face_api_result_image')
+ // {
+ // // $faceimage_url = $com_value['doc_url'];break;
+ // array_push($faceimage_url,$com_value['doc_url']);
+ // }
+ // }
+ // }
// print_r($faceimage_url);die();
if(!empty($faceimage_url)){
for ($i = 0; $i < count($faceimage_url); $i++) {
@@ -765,8 +771,8 @@ if ( isset($pdf) ) {
$notequal_mark ='≠';
$equal_mark ='=';
for ($i = 0; $i < count($ci); $i++) {
- $symbol = ($similarity > 50) ? ''.$equal_mark.'
': ''.$notequal_mark.'
';
$similarity = round($ci[$i]["Similarity"]);
+ $symbol = ($similarity > 50) ? ''.$equal_mark.'
': ''.$notequal_mark.'
';
if ($similarity > 80) { // above 81 green
$progress_bar_class = 'rcorners_green';
} else if ($similarity <= 80 && $similarity > 60) { // in between 61 to 80 orange
@@ -784,10 +790,12 @@ if ( isset($pdf) ) {
';
- echo 'Similarity
- '.$similarity.' %
-
';
- echo '';
+ echo'
+
Similarity
+
'.$similarity.' %
+
+
';
+ echo '
';
}
// ########################### End of Percentage Bar Section #########################################
@@ -1170,11 +1178,12 @@ if ( isset($pdf) ) {
echo '
';
?>
$com_value)
{
+ // if($com_value['image_key'] == 'face_mark'){ array_push($faceimage_url,$com_value['doc_url']);}
if($com_value['pd_document_title'] == 'satellite')
{
$satellite_url = $com_value['doc_url'];break;
diff --git a/api/application/views/report_templates/JSONTOREPORT_DI_AI_ADDON.php b/api/application/views/report_templates/JSONTOREPORT_DI_AI_ADDON.php
index aa4418b8..bf6d91c4 100644
--- a/api/application/views/report_templates/JSONTOREPORT_DI_AI_ADDON.php
+++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI_ADDON.php
@@ -695,15 +695,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
}
$faceimage_url = array();
- if(isset($pd_images['common_images']) && count($pd_images['common_images']) && $pd_master_details[0]['is_face_api_enabled'] == 1)
- {
- foreach($pd_images['common_images'] as $com_key => $com_value)
- {
- if($com_value['pd_document_title'] == 'face_api_result_image')
- {
- // $faceimage_url = $com_value['doc_url'];break;
- array_push($faceimage_url,$com_value['doc_url']);
- }
+ for ($i = 0; $i < count($all_applicant_details); $i++) {
+ if($all_applicant_details[$j]['facemark_image_generated'] == 1){
+ $faceimage_url = $com_value['doc_url'];
+ break;
}
}
if(!empty($faceimage_url)){
@@ -1370,6 +1365,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
{
foreach($pd_images['common_images'] as $com_key => $com_value)
{
+ // if($com_value['image_key'] == 'face_mark'){ array_push($faceimage_url,$com_value['doc_url']);}
if($com_value['pd_document_title'] == 'satellite')
{
$satellite_url = $com_value['doc_url'];break;
diff --git a/api/application/views/report_templates/JSONTOREPORT_DI_AI_SMARTPD.php b/api/application/views/report_templates/JSONTOREPORT_DI_AI_SMARTPD.php
index 69d0e059..cd5a2e50 100644
--- a/api/application/views/report_templates/JSONTOREPORT_DI_AI_SMARTPD.php
+++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI_SMARTPD.php
@@ -716,15 +716,10 @@ if ( isset($pdf) ) {
}
$faceimage_url = array();
- if(isset($pd_images['common_images']) && count($pd_images['common_images']) && $pd_master_details[0]['is_face_api_enabled'] == 1)
- {
- foreach($pd_images['common_images'] as $com_key => $com_value)
- {
- if($com_value['pd_document_title'] == 'face_api_result_image')
- {
- // $faceimage_url = $com_value['doc_url'];break;
- array_push($faceimage_url,$com_value['doc_url']);
- }
+ for ($i = 0; $i < count($all_applicant_details); $i++) {
+ if($all_applicant_details[$j]['facemark_image_generated'] == 1){
+ $faceimage_url = $com_value['doc_url'];
+ break;
}
}
if(!empty($faceimage_url)){
@@ -750,8 +745,8 @@ if ( isset($pdf) ) {
$notequal_mark ='≠';
$equal_mark ='=';
for ($i = 0; $i < count($ci); $i++) {
- $symbol = ($similarity > 50) ? ''.$equal_mark.'
': ''.$notequal_mark.'
';
$similarity = round($ci[$i]["Similarity"]);
+ $symbol = ($similarity > 50) ? ''.$equal_mark.'
': ''.$notequal_mark.'
';
if ($similarity > 80) { // above 81 green
$progress_bar_class = 'rcorners_green';
} else if ($similarity <= 80 && $similarity > 60) { // in between 61 to 80 orange
@@ -769,10 +764,12 @@ if ( isset($pdf) ) {
';
- echo 'Similarity
- '.$similarity.' %
-
';
- echo '';
+ echo'
+
Similarity
+
'.$similarity.' %
+
+
';
+ echo '
';
}
// ########################### End of Percentage Bar Section #########################################
@@ -1149,6 +1146,7 @@ if ( isset($pdf) ) {
{
foreach($pd_images['common_images'] as $com_key => $com_value)
{
+ // if($com_value['image_key'] == 'face_mark'){ array_push($faceimage_url,$com_value['doc_url']);}
if($com_value['pd_document_title'] == 'satellite')
{
$satellite_url = $com_value['doc_url'];break;
diff --git a/api/application/views/report_templates/JSONTOREPORT_DI_AI_TELE_PD.php b/api/application/views/report_templates/JSONTOREPORT_DI_AI_TELE_PD.php
index 52bacdb6..ebb5eae9 100644
--- a/api/application/views/report_templates/JSONTOREPORT_DI_AI_TELE_PD.php
+++ b/api/application/views/report_templates/JSONTOREPORT_DI_AI_TELE_PD.php
@@ -10,8 +10,8 @@ $loan_word = $pd_master_details[0]['lender_short_name'] != 'CFPL' ? 'Loan' : 'Fa
-