ADDRESS IMAGES HANDLED
This commit is contained in:
parent
8f7f5f545b
commit
7025d9ad9c
@ -4936,6 +4936,8 @@ class PD_Controller extends REST_Controller {
|
|||||||
|
|
||||||
$records = $this->post('records');
|
$records = $this->post('records');
|
||||||
$pdid = $records['pd_id'];
|
$pdid = $records['pd_id'];
|
||||||
|
|
||||||
|
echo $pdid;die();
|
||||||
//PDALERTS::pdnotification($pdid);die();
|
//PDALERTS::pdnotification($pdid);die();
|
||||||
$is_regenerate = 0;
|
$is_regenerate = 0;
|
||||||
if(isset($records['regenerate']))
|
if(isset($records['regenerate']))
|
||||||
@ -5996,11 +5998,13 @@ class PD_Controller extends REST_Controller {
|
|||||||
$result = array();
|
$result = array();
|
||||||
$pd_details = $this->PD_Model->getPDMasterDetails($pd_id);
|
$pd_details = $this->PD_Model->getPDMasterDetails($pd_id);
|
||||||
//print_r($data);die();
|
//print_r($data);die();
|
||||||
|
//log_message('error','MANUAL');
|
||||||
|
//log_message('error',$data);
|
||||||
foreach($data as $iter => $doc)
|
foreach($data as $iter => $doc)
|
||||||
{
|
{
|
||||||
$temp_base64_string = $doc['image'];
|
$temp_base64_string = $doc['image'];
|
||||||
$title = $doc['Name'];
|
$title = $doc['Name'];
|
||||||
|
$is_show_report = isset($doc['is_show_report']) ? $doc['is_show_report'] : null;
|
||||||
$output_file = APPPATH."/docs/temp_base64_image.png";
|
$output_file = APPPATH."/docs/temp_base64_image.png";
|
||||||
|
|
||||||
//Generate Random File Name
|
//Generate Random File Name
|
||||||
@ -6032,7 +6036,7 @@ class PD_Controller extends REST_Controller {
|
|||||||
|
|
||||||
if(is_object($s3result) && $s3result['ObjectURL'] != '' && $s3result['@metadata']['statusCode'] == 200)
|
if(is_object($s3result) && $s3result['ObjectURL'] != '' && $s3result['@metadata']['statusCode'] == 200)
|
||||||
{
|
{
|
||||||
$record_data = array('fk_pd_id' => $pd_id,'pd_document_title'=>$title,'pd_document_name'=>$tempdocname,'fk_form_id'=>$form_id);
|
$record_data = array('fk_pd_id' => $pd_id,'pd_document_title'=>$title,'pd_document_name'=>$tempdocname,'fk_form_id'=>$form_id,'is_show_report' =>$is_show_report);
|
||||||
$record_data['company_id'] = $company_id ? $company_id : null;
|
$record_data['company_id'] = $company_id ? $company_id : null;
|
||||||
$id = $this->PD_Model->saveRecords($record_data,PDDOCUMENTS);
|
$id = $this->PD_Model->saveRecords($record_data,PDDOCUMENTS);
|
||||||
if($id != null || $id != "") { $count++;}
|
if($id != null || $id != "") { $count++;}
|
||||||
|
|||||||
@ -10,8 +10,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
|||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||||
|
|
||||||
.page_break { page-break-before: always; }
|
/*.page_break { page-break-before: always; }
|
||||||
#page_break { page-break-before: always; }
|
#page_break { page-break-before: always; } */
|
||||||
/*.page { width: 100%; height: 95%; }*/
|
/*.page { width: 100%; height: 95%; }*/
|
||||||
@page {
|
@page {
|
||||||
margin: 100px 50px;
|
margin: 100px 50px;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user