SMC photo pdf and Zip : ps
This commit is contained in:
parent
3f17bd53fe
commit
58019d0122
@ -393,3 +393,6 @@ $route['filterFlyPDList']='Flyhi_Controller/filterFlyPDList';
|
||||
$route['getDigiLockerDocs']='Flyhi_Controller/getDigiLockerDocs';
|
||||
// $route['getDigiLockerDocs2']='Flyhi_Controller/getDigiLockerDos';
|
||||
$route['downloadDigiLockerDocs']='Flyhi_Controller/downloadDigiLockerDocs';
|
||||
|
||||
$route['archivePDSMCImages'] = 'SMC_Credit_PD_Controller/archivePDImages';
|
||||
$route['smcPhotoPDFDownload'] = 'SMC_Credit_PD_Controller/imgPDFDownload';
|
||||
|
||||
@ -2233,8 +2233,8 @@ class Flyhi_Controller extends REST_Controller {
|
||||
log_message('ERROR','### 5.1th User Choosen Files form data '.json_encode($form_data));
|
||||
log_message('ERROR','### 5.2th User Choosen Files reindexed_array '.json_encode($reindexed_array));
|
||||
log_message('ERROR','### 5.3th User Choosen Files reindexed_array count '.count($reindexed_array));
|
||||
log_message('ERROR','### 5.4th User Choosen Files digilocker_doc_name count '.count($digilocker_doc_name));
|
||||
log_message('ERROR','### 5.5th User Choosen Files digilocker_doc_name '.json_encode($digilocker_doc_name));
|
||||
log_message('ERROR','### 5.4th User Choosen Files digilocker_doc_name '.json_encode($digilocker_doc_name));
|
||||
log_message('ERROR','### 5.5th User Choosen Files digilocker_doc_name count '.count($digilocker_doc_name));
|
||||
if(count($form_data)>0){
|
||||
for($i=0;$i<count($reindexed_array);$i++){
|
||||
log_message('ERROR','### 5.6th User Choosen Files inx '.$i);
|
||||
@ -2258,7 +2258,7 @@ class Flyhi_Controller extends REST_Controller {
|
||||
|
||||
if(is_object($s3result) && $s3result['ObjectURL'] != '' && $s3result['@metadata']['statusCode'] == 200)
|
||||
{
|
||||
$record_data = array('fk_pd_id' => $pd_id,'img_type' => 2,'pd_document_title'=>$tempdocname,'pd_document_name'=>$digilocker_doc_name);
|
||||
$record_data = array('fk_pd_id' => $pd_id,'img_type' => 2,'pd_document_title'=>$tempdocname,'pd_document_name'=>$digilocker_doc_name[$i]);
|
||||
$this->Flyhi_Model->saveRecords($record_data,PDDOCUMENTS);
|
||||
}
|
||||
log_message('ERROR',"### 8 : Choosen Files reponse :".json_encode($reponse));
|
||||
|
||||
@ -1948,6 +1948,44 @@ public function filterSalesPDList_post() {
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
}
|
||||
|
||||
public function archivePDImages_post()
|
||||
{
|
||||
$records = $this->post('records');
|
||||
$pdid = $records['pd_id'];
|
||||
$random_string = $records['random_string'];
|
||||
$regenerate = isset($records['regenerate']) ? $records['regenerate'] : 0;
|
||||
|
||||
$this->load->helper('smc_creditpd');
|
||||
$res_data = smc_creditpd::covertSMCImgs2ZIP($pdid,$random_string,array(),$regenerate);
|
||||
|
||||
$response_data['dataStatus'] = true;
|
||||
$response_data['status'] = REST_Controller::HTTP_OK;
|
||||
$response_data['records'] = $res_data;
|
||||
$this->response($response_data,REST_Controller::HTTP_OK);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function imgPDFDownload_post()
|
||||
{
|
||||
$records = $this->post('records');
|
||||
$this->load->helper('smc_creditpd');
|
||||
|
||||
$pdid = $records['pd_id'];
|
||||
$random_string = $records['random_string'];
|
||||
$regenerate = isset($records['regenerate']) ? $records['regenerate'] : 0;
|
||||
|
||||
$res_data = smc_creditpd::covertSMCImgs2PDF($pdid,$random_string,array(),$regenerate);
|
||||
|
||||
|
||||
$response_data['dataStatus'] = true;
|
||||
$response_data['status'] = REST_Controller::HTTP_OK;
|
||||
$response_data['records'] = $res_data;
|
||||
$this->response($response_data,REST_Controller::HTTP_OK);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -583,6 +583,137 @@ class smc_creditpd
|
||||
// print_r($json);
|
||||
return $json;
|
||||
}
|
||||
public static function covertSMCImgs2ZIP($pdid,$random_string,$pd_master_details = array(),$regenerate = 0)
|
||||
{
|
||||
$CI =&get_instance();
|
||||
$CI->load->model('PD_Model');
|
||||
|
||||
if(!count($pd_master_details))
|
||||
{
|
||||
$pd_master_details = $CI->PD_Model->getPDMasterDetails($pdid,$random_string,$pd_master_details);
|
||||
}
|
||||
if(!file_exists($CI->external_path.'/pd_reports/'.$pdid))
|
||||
{
|
||||
mkdir($CI->external_path.'/pd_reports/'.$pdid,0777);
|
||||
}
|
||||
|
||||
$bucketname = LENDER_BUCKET_NAME_PREFIX.$pd_master_details[0]['fk_lender_id'];
|
||||
$main_applicant_name = $pd_master_details[0]['main_applicant'];
|
||||
//get zip url from s3 if any
|
||||
|
||||
$key = 'pd'.$pdid.'/'.$main_applicant_name.'_'.$pdid.'_'.'pd_images.zip';
|
||||
|
||||
//$singed_uri = $CI->aws_s3->getSingleObjectInaBucketAsSignedURI($bucketname,$key,'+30 minutes');
|
||||
if($pd_master_details[0]['is_zip_created'] && ($regenerate == 0))
|
||||
{
|
||||
return $singed_uri = $CI->aws_s3->getSingleObjectInaBucketAsSignedURI($bucketname,$key,'+30 minutes');
|
||||
|
||||
// $response_data['dataStatus'] = true;
|
||||
// $response_data['status'] = REST_Controller::HTTP_OK;
|
||||
// $response_data['records'] = $singed_uri;
|
||||
// $CI->response($response_data,REST_Controller::HTTP_OK); 9344876517
|
||||
} else
|
||||
{
|
||||
|
||||
$all_pd_images = $CI->PD_Model->selectCustomRecords(array('doc_id', 'fk_smc_credit_pd_id','img','img_name','isactive'),array('fk_smc_credit_pd_id' => $pdid,'isactive' => 1 , 'img_name !=' => 'satellite'),SMC_CREDIT_PD_DOCS);
|
||||
|
||||
// $all_form_names = array('pd_form_id'=>19,'pd_form_name'=>"photograph");
|
||||
// $form_name[19] = "photograph";
|
||||
|
||||
//Generate zip file
|
||||
|
||||
$CI->load->library('zip');
|
||||
|
||||
$CI->zip->add_dir('pdimages');
|
||||
|
||||
foreach($all_pd_images as $image)
|
||||
{
|
||||
|
||||
$temp_dir_name = 'Common';
|
||||
$doc_name = str_replace(':', '-', $image['img_name']);
|
||||
$src_local_file = XLPATH.'/tmp/'.$doc_name.'.png';
|
||||
$ifp = fopen( $src_local_file, 'wb' );
|
||||
$img = explode( ',', $image['img'] );
|
||||
fwrite( $ifp, base64_decode( $img[ 1 ] ) );
|
||||
fclose( $ifp );
|
||||
$MyFile = file_get_contents($src_local_file);
|
||||
$CI->zip->add_data('pdimages/'.$doc_name.'.png',$MyFile);
|
||||
unlink($src_local_file);
|
||||
}
|
||||
|
||||
$temp_path = $main_applicant_name.'_'.$pdid.'_'.'pd_images.zip';
|
||||
|
||||
$CI->zip->archive($CI->external_path.'/pd_reports/'.$pdid.'/'.$temp_path);
|
||||
|
||||
$bucket_data = array('bucket_name'=>$bucketname,'key'=>$key,'sourcefile'=>($CI->external_path.'/pd_reports/'.$pdid.'/'.$temp_path));
|
||||
|
||||
$s3result= $CI->aws_s3->uploadFileToS3Bucket($bucket_data);
|
||||
//print_r($s3result);
|
||||
if(is_object($s3result) && $s3result['ObjectURL'] != '' && $s3result['@metadata']['statusCode'] == 200)
|
||||
{
|
||||
//$result_array[0]['content']
|
||||
$where_condition_array = array("pd_id" => $pdid);
|
||||
$temp_array['is_zip_created'] = 1;
|
||||
$id = $CI->PD_Model->updateRecords($temp_array,PDTRIGGER,$where_condition_array);
|
||||
unlink($CI->external_path.'/pd_reports/'.$pdid.'/'.$temp_path);
|
||||
}
|
||||
return $singed_uri = $CI->aws_s3->getSingleObjectInaBucketAsSignedURI($bucketname,$key,'+30 minutes');
|
||||
}
|
||||
|
||||
}
|
||||
public static function covertSMCImgs2PDF($pdid,$random_string,$pd_master_details = array(),$regenerate = 0)
|
||||
{
|
||||
//echo 'this is from daiu';
|
||||
$CI =&get_instance();
|
||||
$CI->load->model('PD_Model');
|
||||
$CI->load->library('pdfgenerator');
|
||||
|
||||
if(!count($pd_master_details))
|
||||
{
|
||||
$pd_master_details = $CI->PD_Model->getPDMasterDetails($pdid,$random_string);
|
||||
}
|
||||
set_time_limit(60);
|
||||
$bucketname = LENDER_BUCKET_NAME_PREFIX.$pd_master_details[0]['fk_lender_id'];
|
||||
$main_applicant_name = $pd_master_details[0]['main_applicant'];
|
||||
|
||||
//get zip url from s3 if any
|
||||
|
||||
$key = 'pd'.$pdid.'/'.$main_applicant_name.'_'.$pdid.'_'.'pd_images.pdf';
|
||||
|
||||
//$singed_uri = $CI->aws_s3->getSingleObjectInaBucketAsSignedURI($bucketname,$key,'+30 minutes');
|
||||
if($pd_master_details[0]['is_img_pdf_created'] && ($regenerate == 0))
|
||||
{
|
||||
return $singed_uri = $CI->aws_s3->getSingleObjectInaBucketAsSignedURI($bucketname,$key,'+7 days');
|
||||
}
|
||||
else
|
||||
{
|
||||
$all_pd_images = $CI->SMC_Credit_PD_Model->selectCustomRecords(array('doc_id', 'fk_smc_credit_pd_id','img','img_name','isactive'),array('fk_smc_credit_pd_id' => $pdid,'isactive' => 1,'img_name!=' => 'satellite'),SMC_CREDIT_PD_DOCS);
|
||||
// $all_pd_images = $CI->SMC_Credit_PD_Model->selectCustomRecords(array('doc_id', 'fk_smc_credit_pd_id','img','img_name','isactive'),array('fk_smc_credit_pd_id' => $pdid,'isactive' => 1),SMC_CREDIT_PD_DOCS);
|
||||
|
||||
$data_to_view['all_pd_images'] = $all_pd_images;
|
||||
$img_pdf_data = $CI->load->view('report_templates/PDSMCIMG_PDF',$data_to_view,true);
|
||||
//print_r($img_pdf_data);die();
|
||||
$pdf_doc = $CI->pdfgenerator->generate($img_pdf_data, $filename='version', $stream=false, $paper = 'A4', $orientation = "portrait");
|
||||
//End of PDF Gen using DOM PDF
|
||||
$output_file2 = $CI->external_path ."/pd_reports/" . $pdid . "/pd_images_pdf.pdf";
|
||||
$ti = file_put_contents($output_file2, $pdf_doc);
|
||||
//echo $ti;die();
|
||||
|
||||
$bucket_data = array('bucket_name'=>$bucketname,'key'=>$key,'sourcefile'=>($output_file2));
|
||||
|
||||
$s3result= $CI->aws_s3->uploadFileToS3Bucket($bucket_data);
|
||||
//print_r($s3result);
|
||||
if(is_object($s3result) && $s3result['ObjectURL'] != '' && $s3result['@metadata']['statusCode'] == 200)
|
||||
{
|
||||
//$result_array[0]['content']
|
||||
$where_condition_array = array("pd_id" => $pdid);
|
||||
$temp_array['is_img_pdf_created'] = 1;
|
||||
$id = $CI->PD_Model->updateRecords($temp_array,PDTRIGGER,$where_condition_array);
|
||||
unlink($output_file2);
|
||||
}
|
||||
|
||||
return $singed_uri = $CI->aws_s3->getSingleObjectInaBucketAsSignedURI($bucketname,$key,'+7 days');
|
||||
|
||||
}}
|
||||
}
|
||||
?>
|
||||
550
api/application/views/report_templates/PDSMCIMG_PDF.php
Normal file
550
api/application/views/report_templates/PDSMCIMG_PDF.php
Normal file
@ -0,0 +1,550 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en" id="mydoc" onkeyup="saveEdits(event)">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title></title>
|
||||
<link href="https://fonts.googleapis.com/css?family=Merriweather" rel="stylesheet">
|
||||
<style type="text/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 { width: 100%; height: 95%; }*/
|
||||
@page {
|
||||
margin: 100px 50px;
|
||||
/*font-family:Helvetica,Arial;*/
|
||||
font-family:Merriweather;
|
||||
}
|
||||
header {
|
||||
position: fixed;
|
||||
top: -70px;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
height: 20px;
|
||||
|
||||
/** Extra personal styles **/
|
||||
/*background-color: #03a9f4;
|
||||
color: white;*/
|
||||
text-align: right;
|
||||
/*line-height: 35px;*/
|
||||
}
|
||||
footer {
|
||||
position: fixed;
|
||||
bottom: 5px;
|
||||
left: 0px;
|
||||
right: 0px;
|
||||
height: 20px;
|
||||
font-size: 10px;
|
||||
|
||||
/** Extra personal styles **/
|
||||
/*background-color: #03a9f4;
|
||||
color: white;*/
|
||||
text-align: left;
|
||||
/*line-height: 35px;*/
|
||||
}
|
||||
|
||||
.non-editable{ background-color:#99ff99; }
|
||||
|
||||
.table2 {
|
||||
border: 1px solid black;
|
||||
width: 100%;
|
||||
}
|
||||
.table2 td {
|
||||
border: 1px solid black;
|
||||
height: 50px;
|
||||
text-align: center;
|
||||
}
|
||||
.table2 th {
|
||||
border: 1px solid black;
|
||||
height: 50px;
|
||||
text-align: center;
|
||||
}
|
||||
.table2 {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
tfoot{
|
||||
color:#e00201;
|
||||
}
|
||||
|
||||
.simpletable, .simpletable th, .simpletable td {
|
||||
border: 1px solid black;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
/* ######### Mini Score Card Table Styles######### */
|
||||
|
||||
.mini_scorecard_table {
|
||||
width: 100%;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
.mini_scorecard_table td, .mini_scorecard_table th {
|
||||
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
.mini_scorecard_table th {
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
text-align: center;
|
||||
background-color: #0191ed;
|
||||
color: white;page-break-inside: avoid;
|
||||
|
||||
}
|
||||
/* #########End of Mini Score Card Table Styles######### */
|
||||
|
||||
|
||||
/* #########End of Mini Score Card Div Styles######### */
|
||||
#rcorners_green {
|
||||
|
||||
background: #33cc33;
|
||||
padding: 3px;
|
||||
width: 75px;
|
||||
height: 5px;
|
||||
}
|
||||
#rcorners_red {
|
||||
|
||||
background: red;
|
||||
padding: 3px;
|
||||
width: 75px;
|
||||
height: 5px;
|
||||
}
|
||||
#rcorners_light_green {
|
||||
|
||||
background: #99ff66;
|
||||
padding: 3px;
|
||||
width: 75px;
|
||||
height: 5px;
|
||||
}
|
||||
#rcorners_amber{
|
||||
|
||||
background: #ff9900;
|
||||
padding: 3px;
|
||||
width: 75px;
|
||||
height: 5px;
|
||||
}
|
||||
|
||||
/* #########End of Mini Score Card DIv Styles######### */
|
||||
|
||||
|
||||
|
||||
|
||||
/* #########Score Card Table Styles######### */
|
||||
|
||||
.scorecard_table {
|
||||
/* font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;*/
|
||||
/*font-family: Merriweather;*/
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
.scorecard_table td, .scorecard_table th {
|
||||
border: 1px solid #000;
|
||||
padding: 8px;
|
||||
page-break-inside: avoid;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.scorecard_table tr:nth-child(even){background-color: #f2f2f2;page-break-inside: avoid; }
|
||||
|
||||
.scorecard_table tr:hover {background-color: #ddd;}
|
||||
|
||||
.scorecard_table th {
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
text-align: center;
|
||||
background-color: #0191ed;
|
||||
color: white;page-break-inside: avoid;
|
||||
|
||||
}
|
||||
/* #########End of Score Card Table Styles######### */
|
||||
|
||||
/* #########Score Card for personal assest section table getting overlapped ######### */
|
||||
|
||||
.scorecard_table_resonal_assest {
|
||||
/* font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;*/
|
||||
/*font-family: Merriweather;*/
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
|
||||
.scorecard_table_resonal_assest td, .scorecard_table_resonal_assest th {
|
||||
border: 1px solid #000;
|
||||
padding: 8px;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
.scorecard_table_resonal_assest tr:nth-child(even){background-color: #f2f2f2; }
|
||||
|
||||
.scorecard_table_resonal_assest tr:hover {background-color: #ddd;}
|
||||
|
||||
.scorecard_table_resonal_assest th {
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
text-align: center;
|
||||
background-color: #0191ed;
|
||||
color: white;
|
||||
|
||||
}
|
||||
/* #########End of Score Card Table Styles######### */
|
||||
|
||||
/* #########Score Card2 Table Styles######### */
|
||||
|
||||
.scorecard_table2 {
|
||||
/* font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;*/
|
||||
/*font-family: Merriweather;*/
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
|
||||
.scorecard_table2 td, .scorecard_table2 th {
|
||||
border: 1px solid #000;
|
||||
padding: 8px;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.scorecard_table2 tr:nth-child(even){background-color: #f2f2f2;}
|
||||
|
||||
.scorecard_table2 tr:hover {background-color: #ddd;}
|
||||
|
||||
.scorecard_table2 th {
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
text-align: center;
|
||||
background-color: #0191ed;
|
||||
color: white;
|
||||
|
||||
}
|
||||
/* #########End of Score Card2 Table Styles######### */
|
||||
|
||||
|
||||
.customth { width: 10%; }
|
||||
|
||||
/* #########billwise Table Styles######### */
|
||||
.customtd { text-align:center; }
|
||||
.customtd_leftalign { text-align:left; }
|
||||
.customtd_rightalign { text-align:right; }
|
||||
|
||||
.billwise_table {
|
||||
/* font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;*/
|
||||
/*font-family: Merriweather;*/
|
||||
border-collapse: collapse;
|
||||
width: auto;
|
||||
|
||||
}
|
||||
|
||||
.billwise_table td, .billwise_table th {
|
||||
border: 1px solid #000;
|
||||
padding: 4px;
|
||||
|
||||
}
|
||||
|
||||
.billwise_table tr:nth-child(even){background-color: #f2f2f2;}
|
||||
|
||||
.billwise_table tr:hover {background-color: #ddd;}
|
||||
|
||||
.billwise_table th {
|
||||
padding-top: 4px;
|
||||
padding-bottom: 4px;
|
||||
text-align: center;
|
||||
background-color: #0191ed;
|
||||
color: white;
|
||||
}
|
||||
/* #########billwise Table Styles######### */
|
||||
|
||||
|
||||
/* #########Annexure table ######### */
|
||||
|
||||
.annexure_table {
|
||||
/* font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;*/
|
||||
/*font-family: Merriweather;*/
|
||||
border-collapse: collapse;
|
||||
width: auto;
|
||||
|
||||
}
|
||||
|
||||
.annexure_table td, .annexure_table th {
|
||||
border: 1px solid #000;
|
||||
|
||||
}
|
||||
|
||||
.annexure_table tr:nth-child(even){background-color: #f2f2f2;}
|
||||
|
||||
.annexure_table tr:hover {background-color: #ddd;}
|
||||
|
||||
.annexure_table th {
|
||||
/*padding-top: 4px;*/
|
||||
/*padding-bottom: 4px;*/
|
||||
text-align: center;
|
||||
background-color: #0191ed;
|
||||
color: white;
|
||||
}
|
||||
/* #########Annexure######### */
|
||||
|
||||
|
||||
.customtd { text-align:center; }
|
||||
.customtd_leftalign { text-align:left; }
|
||||
.customtd_rightalign { text-align:right; }
|
||||
|
||||
|
||||
#boxstyle1 {
|
||||
box-sizing: border-box;
|
||||
width: 60px;
|
||||
height: 20px;
|
||||
padding: 5px;
|
||||
border: 2px outset black;
|
||||
}
|
||||
#boxstyle2 {
|
||||
box-sizing: border-box;
|
||||
width: 200px;
|
||||
height: 20px;
|
||||
padding: 5px;
|
||||
border: 2px outset black;
|
||||
text-align:center;
|
||||
}
|
||||
#boxstyle3 {
|
||||
box-sizing: border-box;
|
||||
width: 120px;
|
||||
height: 20px;
|
||||
padding: 5px;
|
||||
border: 2px outset black;
|
||||
}
|
||||
|
||||
#billwise {
|
||||
box-sizing: content-box;
|
||||
/*disply:inline;*/
|
||||
width: 100%;
|
||||
height: auto;
|
||||
padding: 10px;
|
||||
border: 1px solid #0191ed;
|
||||
}
|
||||
|
||||
#first_div {
|
||||
width: 150px;
|
||||
height: 25px;
|
||||
border: 2px outset #000;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
border-color:red;
|
||||
color:red;
|
||||
/*padding-left: 20px;*/
|
||||
|
||||
}
|
||||
#tick_div {
|
||||
position: relative;
|
||||
width: 40px;
|
||||
height: 25px;
|
||||
margin-left: 100%;
|
||||
margin-top: -29px;
|
||||
border: 2px outset #000;
|
||||
text-align: center;
|
||||
border-color:red;
|
||||
color:red;
|
||||
}
|
||||
#tick_div_other {
|
||||
position: relative;
|
||||
width: 40px;
|
||||
height: 25px;
|
||||
margin-left: 93%;
|
||||
margin-top: -29px;
|
||||
border: 2px outset #000;
|
||||
text-align: center;
|
||||
border-color:red;
|
||||
color:red;
|
||||
}
|
||||
|
||||
|
||||
/* #########Person met card css######### */
|
||||
.chip {
|
||||
|
||||
padding: 0 25px;
|
||||
height: 100px;
|
||||
width: 600px;
|
||||
font-size: 14px;
|
||||
|
||||
border-radius: 50px;
|
||||
background-color: #f1f1f1;
|
||||
}
|
||||
|
||||
.chip #img1 {
|
||||
float: left;
|
||||
margin: 0 10px 0 -25px;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.chip #img2 {
|
||||
float: right;
|
||||
margin: 0 -25px 0px -125px;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* #########Person met card css######### */
|
||||
|
||||
|
||||
/* #########Doc sighted gallary css######### ;*/
|
||||
|
||||
.gallery {
|
||||
margin: 5px;
|
||||
border: 1px solid #ccc;
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
|
||||
.gallery:hover {
|
||||
border: 1px solid #777;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.desc {
|
||||
padding: 8px;
|
||||
text-align: center;
|
||||
color:green
|
||||
}
|
||||
|
||||
/* #########Doc sighted gallary css######### */
|
||||
|
||||
/* ######### TOOLTIP CSS START ######### */
|
||||
|
||||
.tooltip {
|
||||
position: relative;
|
||||
display: inline;
|
||||
border-bottom: 1px dotted black;
|
||||
}
|
||||
|
||||
.tooltip .tooltiptext {
|
||||
visibility: hidden;
|
||||
width: 120px;
|
||||
background-color: black;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
border-radius: 6px;
|
||||
padding: 5px 0;
|
||||
|
||||
/* Position the tooltip */
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.tooltip:hover .tooltiptext {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
#ini_table{
|
||||
table-layout: fixed;
|
||||
width:80%;
|
||||
|
||||
|
||||
}
|
||||
|
||||
#ini_table td{
|
||||
word-wrap:break-word
|
||||
width:50%;
|
||||
}
|
||||
|
||||
.intelligence{
|
||||
/*background-color: lightgrey;*/
|
||||
width: auto;
|
||||
border: 5px solid #0191ed;
|
||||
padding: 5px;
|
||||
/*margin: 10px;*/
|
||||
}
|
||||
|
||||
/* ######### TOOLTIP CSS END ######### */
|
||||
|
||||
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
function saveEdits(e)
|
||||
{
|
||||
|
||||
var editElem = document.getElementById("mydoc");
|
||||
var userVersion = editElem.innerHTML;
|
||||
//localStorage.removeItem('userEdits')
|
||||
//save the content to local storage
|
||||
localStorage.userEdits = userVersion;
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
</head>
|
||||
<body style="font-family:Merriweather;font-size:12px;margin:15px 30px">
|
||||
|
||||
|
||||
<footer>
|
||||
<hr>
|
||||
Powered by PDGenie
|
||||
</footer>
|
||||
<header>
|
||||
|
||||
<div><img style="width:50px;height:50px;opacity: 0.5;" src='https://pdgenie.com/logo/sineedge_red.png'/></div>
|
||||
<hr>
|
||||
</header>
|
||||
|
||||
<?php
|
||||
//$all_pd_images_count = count($all_pd_images);
|
||||
|
||||
$img_row_count = ceil(count($all_pd_images) / 3);
|
||||
if(count($all_pd_images)){
|
||||
echo '<br>';
|
||||
echo '<p>PD Photograph`s :</p>';
|
||||
echo '<br>';
|
||||
echo '<table border="1" height="100%" width="50%">';
|
||||
$add_factor = 0;
|
||||
for($img_row = 0; $img_row < $img_row_count; $img_row++)
|
||||
{
|
||||
//if($img_row > 0) { break; }
|
||||
echo '<tr>';
|
||||
$from = $img_row == 0 ? $img_row : ($img_row+$add_factor);
|
||||
$to = ($from + 2);
|
||||
$add_factor = $add_factor + 2;
|
||||
for($photo_iter = $from; $photo_iter <= $to;$photo_iter++)
|
||||
{
|
||||
|
||||
if(isset($all_pd_images[$photo_iter]))
|
||||
{
|
||||
echo '<td>';
|
||||
echo '<div class="gallery">';
|
||||
echo '<img src="'.$all_pd_images[$photo_iter]['img'].'" alt="" width="200" height="200">';
|
||||
echo '<div class="desc">'.$all_pd_images[$photo_iter]['img_name'] .'</div>';
|
||||
echo '</div>';
|
||||
echo '</td>';
|
||||
// unset($all_pd_images[$photo_iter]);
|
||||
}
|
||||
|
||||
}
|
||||
//echo "<br><br><hr>";
|
||||
echo '</tr>';
|
||||
}
|
||||
//echo '</tbody>';
|
||||
echo '</table>';
|
||||
}
|
||||
//
|
||||
?>
|
||||
|
||||
|
||||
<?php
|
||||
//
|
||||
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user