face api image on report : ps
This commit is contained in:
parent
3d8d0a7e0d
commit
3979ab9031
@ -5097,6 +5097,7 @@ public function getPDFormDetailsJSON_post()
|
|||||||
}
|
}
|
||||||
|
|
||||||
$data['pd_master_details'] = $this->PD_Model->getPDMasterDetails($pdid,$random_string);
|
$data['pd_master_details'] = $this->PD_Model->getPDMasterDetails($pdid,$random_string);
|
||||||
|
// print_r($data['pd_master_details']);die;
|
||||||
$data['pd_master_details'][0]['pd_report_generated_date'] = date('d/m/Y g:i:s A');
|
$data['pd_master_details'][0]['pd_report_generated_date'] = date('d/m/Y g:i:s A');
|
||||||
|
|
||||||
|
|
||||||
@ -5188,9 +5189,17 @@ public function getPDFormDetailsJSON_post()
|
|||||||
}
|
}
|
||||||
$t = 'DEFAULT DATA';
|
$t = 'DEFAULT DATA';
|
||||||
// if(!count($add_on_pd))
|
// if(!count($add_on_pd))
|
||||||
// {
|
// {
|
||||||
|
if($data['pd_master_details'][0]['facemark_image_generated'] == 1 && $data['pd_master_details'][0]['is_face_api_enabled'] == 1){
|
||||||
|
|
||||||
|
$bucket_name = LENDER_BUCKET_NAME_PREFIX.$data['pd_master_details'][0]['fk_lender_id'];
|
||||||
|
$destination_path = $this->external_path."/pd_reports/". $pdid ."/face_api_image.png";
|
||||||
|
// $bucket_name = LENDER_BUCKET_NAME_PREFIX."3";
|
||||||
|
// $destination_path = $this->external_path."/pd_reports/". "3184" ."/face_api_image.png";
|
||||||
|
$singed_uri = $this->aws_s3->getSingleObjectInaBucketAsSignedURI($bucket_name,$destination_path,'+10 minutes');
|
||||||
|
$data['pd_master_details'][0]['face_api_image'] = $singed_uri;
|
||||||
|
}
|
||||||
|
|
||||||
if($data['pd_master_details'][0]['fk_pd_type'] == 1) //Full PD
|
if($data['pd_master_details'][0]['fk_pd_type'] == 1) //Full PD
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -711,6 +711,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if(isset($pd_master_details[0]['face_api_image']))
|
||||||
|
{
|
||||||
|
echo '<img src="'.$pd_master_details[0]['face_api_image'].'" width="300" height="200" alt=""/>';
|
||||||
|
}
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
echo '<br>';
|
echo '<br>';
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -718,6 +718,10 @@ font-weight: bolder;;
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if(isset($pd_master_details[0]['face_api_image']))
|
||||||
|
{
|
||||||
|
echo '<img src="'.$pd_master_details[0]['face_api_image'].'" width="300" height="200" alt=""/>';
|
||||||
|
}
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
echo '<br>';
|
echo '<br>';
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -712,6 +712,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if(isset($pd_master_details[0]['face_api_image']))
|
||||||
|
{
|
||||||
|
echo '<img src="'.$pd_master_details[0]['face_api_image'].'" width="300" height="200" alt=""/>';
|
||||||
|
}
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
echo '<br>';
|
echo '<br>';
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -708,6 +708,10 @@ if ( isset($pdf) ) {
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if(isset($pd_master_details[0]['face_api_image']))
|
||||||
|
{
|
||||||
|
echo '<img src="'.$pd_master_details[0]['face_api_image'].'" width="300" height="200" alt=""/>';
|
||||||
|
}
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
echo '<br>';
|
echo '<br>';
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -691,6 +691,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if(isset($pd_master_details[0]['face_api_image']))
|
||||||
|
{
|
||||||
|
echo '<img src="'.$pd_master_details[0]['face_api_image'].'" width="300" height="200" alt=""/>';
|
||||||
|
}
|
||||||
echo "</div>";
|
echo "</div>";
|
||||||
echo '<br>';
|
echo '<br>';
|
||||||
|
|
||||||
|
|||||||
@ -712,6 +712,10 @@ if ( isset($pdf) ) {
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if(isset($pd_master_details[0]['face_api_image']))
|
||||||
|
{
|
||||||
|
echo '<img src="'.$pd_master_details[0]['face_api_image'].'" width="300" height="200" alt=""/>';
|
||||||
|
}
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
echo '<br>';
|
echo '<br>';
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -710,6 +710,10 @@ if ( isset($pdf) ) {
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if(isset($pd_master_details[0]['face_api_image']))
|
||||||
|
{
|
||||||
|
echo '<img src="'.$pd_master_details[0]['face_api_image'].'" width="300" height="200" alt=""/>';
|
||||||
|
}
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
echo '<br>';
|
echo '<br>';
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -678,6 +678,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if(isset($pd_master_details[0]['face_api_image']))
|
||||||
|
{
|
||||||
|
echo '<img src="'.$pd_master_details[0]['face_api_image'].'" width="300" height="200" alt=""/>';
|
||||||
|
}
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
echo '<br>';
|
echo '<br>';
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -678,6 +678,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if(isset($pd_master_details[0]['face_api_image']))
|
||||||
|
{
|
||||||
|
echo '<img src="'.$pd_master_details[0]['face_api_image'].'" width="300" height="200" alt=""/>';
|
||||||
|
}
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
echo '<br>';
|
echo '<br>';
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -679,6 +679,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if(isset($pd_master_details[0]['face_api_image']))
|
||||||
|
{
|
||||||
|
echo '<img src="'.$pd_master_details[0]['face_api_image'].'" width="300" height="200" alt=""/>';
|
||||||
|
}
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
echo '<br>';
|
echo '<br>';
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -682,6 +682,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
|||||||
}
|
}
|
||||||
//echo '</div>';
|
//echo '</div>';
|
||||||
}
|
}
|
||||||
|
if(isset($pd_master_details[0]['face_api_image']))
|
||||||
|
{
|
||||||
|
echo '<img src="'.$pd_master_details[0]['face_api_image'].'" width="300" height="200" alt=""/>';
|
||||||
|
}
|
||||||
echo '<br>';
|
echo '<br>';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
@ -689,6 +689,10 @@ font-weight: bolder;;
|
|||||||
}
|
}
|
||||||
//echo '</div>';
|
//echo '</div>';
|
||||||
}
|
}
|
||||||
|
if(isset($pd_master_details[0]['face_api_image']))
|
||||||
|
{
|
||||||
|
echo '<img src="'.$pd_master_details[0]['face_api_image'].'" width="300" height="200" alt=""/>';
|
||||||
|
}
|
||||||
echo '<br>';
|
echo '<br>';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
@ -680,6 +680,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
|||||||
//echo count($person_met_data) != ($pk+1)? '<hr>':'';
|
//echo count($person_met_data) != ($pk+1)? '<hr>':'';
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
if(isset($pd_master_details[0]['face_api_image']))
|
||||||
|
{
|
||||||
|
echo '<img src="'.$pd_master_details[0]['face_api_image'].'" width="300" height="200" alt=""/>';
|
||||||
}
|
}
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user