END DICLAIMER AND LIVE ISSUE SAL REPORT ADDED
This commit is contained in:
parent
1100eb23fd
commit
12d658a4f6
@ -595,6 +595,8 @@ defined('ENTITYPREFERENCEID') OR define('ENTITYPREFERENCEID','entity_preference_
|
||||
defined('APP_VERSION_INFO') OR define('APP_VERSION_INFO','m_app_version_info');
|
||||
defined('APP_VERSION_INFOID') OR define('APP_VERSION_INFOID','version_info_id');
|
||||
|
||||
defined('XTRA_CHECK') OR define('XTRA_CHECK','t_xtra_check');
|
||||
|
||||
defined('D_GEN_RELATIONSHIP') OR define('D_GEN_RELATIONSHIP','d_gen_relationship');
|
||||
defined('D_GENERAL_IND') OR define('D_GENERAL_IND','d_general_ind');
|
||||
|
||||
|
||||
@ -220,7 +220,9 @@ $route['getPDScore'] = 'PD_Controller/getPDScoreForDisplay';
|
||||
$route['savePDRemark'] = 'PD_Controller/savePDRemark';
|
||||
$route['savePDDocsToBeCollected'] = 'PD_Controller/savePDDocsToBeCollected';
|
||||
$route['getLenderContactPersons'] = 'PD_Controller/getLenderContactPersons';
|
||||
$route['getLenderContactPersons'] = 'PD_Controller/getLenderContactPersons';
|
||||
$route['saveApplicantFromGeneralForm'] = 'PD_Controller/saveApplicantFromGeneralForm';
|
||||
$route['putSalCheck'] = 'PD_Controller/putSalCheck';
|
||||
// $route['getPDFormDetailsJSON'] = 'PD_Controller/getPDFormDetailsJSON';
|
||||
|
||||
$route['smartyTestFunction'] = 'PD_Controller/smartyTestFunction';
|
||||
@ -238,7 +240,7 @@ $route['getCompaniesListsForBusiness'] = 'PD_Controller/getCompaniesListsFromGen
|
||||
$route['getPDImages'] = 'PD_Controller/getPDImages';
|
||||
$route['deactiveFormData'] = 'PD_Controller/deactiveFormData';
|
||||
$route['getNextRentalCount'] = 'PD_Controller/getNextRentalCount';
|
||||
$route['imgPDFDownload'] = 'PD_Controller/imgPDFDownload';
|
||||
$route['photoPDFDownload'] = 'PD_Controller/imgPDFDownload';
|
||||
//$route['getTypeOfActivetyFromBusinessJSON'] = 'PD_Controller/getTypeOfActivetyFromBusinessJSON';
|
||||
|
||||
//Dashboard and Reports Related routes
|
||||
|
||||
@ -864,7 +864,7 @@ class Entity_Management_Controller extends REST_Controller {
|
||||
{
|
||||
$entity_id = $this->get('eid');
|
||||
|
||||
$res = $this->Entity_Management_Model->selectRecords(ENTITYDISCLAIMER,array('fk_entity_id' => $entity_id));
|
||||
$res = $this->Entity_Management_Model->selectCUstomRecords(array('*'),ENTITYDISCLAIMER,array('fk_entity_id' => $entity_id,'type' => 1));
|
||||
if(count($res))
|
||||
{
|
||||
$data['dataStatus'] = true;
|
||||
|
||||
@ -385,7 +385,7 @@ class PD_Controller extends REST_Controller {
|
||||
$customer_segment_abbr = $customer_segment_abbr[0]['abbr'];
|
||||
//echo $customer_segment_abbr;
|
||||
|
||||
if( !strcasecmp($customer_segment_abbr,'SAL-CASH') || !strcasecmp($customer_segment_abbr,'SAL-CHQ'))
|
||||
if( !strcasecmp($customer_segment_abbr,'SAL'))// || !strcasecmp($customer_segment_abbr,'SAL-CHQ'))
|
||||
{
|
||||
//SAL - (CASH/CHQ)
|
||||
$pd_details['fk_pd_template_id'] = 1;
|
||||
@ -1138,7 +1138,7 @@ public function assignPDTempalate($data)
|
||||
{
|
||||
//echo "CHOOSE GENERIC ";
|
||||
|
||||
if( !strcasecmp($customer_segment_abbr,'SAL-CASH') || !strcasecmp($customer_segment_abbr,'SAL-CHQ'))
|
||||
if( !strcasecmp($customer_segment_abbr,'SAL') ) // || !strcasecmp($customer_segment_abbr,'SAL-CHQ'))
|
||||
{
|
||||
//SAL - (CASH/CHQ)
|
||||
$templateid = 1;
|
||||
@ -2093,15 +2093,17 @@ public function assignPDTempalate($data)
|
||||
$pd_id = "";
|
||||
$client = "";
|
||||
$random_string = "";
|
||||
$api = "";
|
||||
|
||||
if($this->get('pd_id')) { $pd_id = $this->get('pd_id'); }
|
||||
if($this->get('client')) { $client = $this->get('client'); }
|
||||
if($this->get('random_string')) { $random_string = $this->get('random_string'); }
|
||||
if($this->get('api')) { $api = $this->get('api'); }
|
||||
|
||||
if($pd_id != "" || $pd_id != null)
|
||||
{
|
||||
|
||||
$template_details = $this->PD_Model->getTemplateForPD($pd_id,$client,$random_string);
|
||||
$template_details = $this->PD_Model->getTemplateForPD($pd_id,$client,$random_string,$api);
|
||||
if(count($template_details))
|
||||
{
|
||||
$data['dataStatus'] = true;
|
||||
@ -4636,7 +4638,7 @@ public function getPDFormDetailsJSON_post()
|
||||
//$data['dsc_cards'] = $this->getDetailedScoreCardChart( $data['pd_score'] );
|
||||
$data['assessed_income_details'] = $this->getAssessedIncomeForPDReport($pdid);
|
||||
|
||||
if($data['pd_master_details'][0]['is_score_card_enabled'] != 0)
|
||||
if($data['pd_master_details'][0]['is_score_card_enabled'] != 0 && ($data['pd_master_details'][0]['customer_segment_abbr'] != "SAL"))
|
||||
{
|
||||
$data['pd_score'] = $this->calculateScore($pdid);
|
||||
$score_for_chart = $data['pd_score']['score_summary']['overall_score']['final_score'] ? round($data['pd_score']['score_summary']['overall_score']['final_score'],1) : 0;
|
||||
@ -4689,18 +4691,29 @@ public function getPDFormDetailsJSON_post()
|
||||
//Get Common Images
|
||||
$data['pd_images']['common_images'] = $this->PD_Model->getSignedPDDocsURL($pdid,null,null,'common',null,'report');
|
||||
$temp = 'DEFAULT DATA';
|
||||
if($data['pd_master_details'][0]['lender_short_name'] == 'CLIX' || ($data['pd_master_details'][0]['lender_short_name'] == 'MWISE'))// && $data['pd_master_details'][0]['product_abbr'] == 'BL'))
|
||||
{
|
||||
$temp = $this->load->view('report_templates/JSONTOREPORT_CLIX',$data,true);
|
||||
}
|
||||
else if($data['pd_master_details'][0]['customer_segment_abbr'] == 'SE-RI')
|
||||
{
|
||||
$temp = $this->load->view('report_templates/JSONTOREPORT_RI',$data,true);
|
||||
}
|
||||
else if($data['pd_master_details'][0]['customer_segment_abbr'] == 'SE-DI' || $data['pd_master_details'][0]['customer_segment_abbr'] == 'SE-AI' || $data['pd_master_details'][0]['customer_segment_abbr'] == 'SEP_INDV')
|
||||
{
|
||||
$temp = $this->load->view('report_templates/JSONTOREPORT_DI_AI',$data,true);
|
||||
}
|
||||
// if(!count($add_on_pd))
|
||||
// {
|
||||
if($data['pd_master_details'][0]['lender_short_name'] == 'CLIX' || ($data['pd_master_details'][0]['lender_short_name'] == 'MWISE'))// && $data['pd_master_details'][0]['product_abbr'] == 'BL'))
|
||||
{
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT_CLIX',$data,true);
|
||||
}
|
||||
else if($data['pd_master_details'][0]['customer_segment_abbr'] == 'SE-RI')
|
||||
{
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT_RI',$data,true);
|
||||
}
|
||||
else if($data['pd_master_details'][0]['customer_segment_abbr'] == 'SE-DI' || $data['pd_master_details'][0]['customer_segment_abbr'] == 'SE-AI' || $data['pd_master_details'][0]['customer_segment_abbr'] == 'SEP_INDV')
|
||||
{
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT_DI_AI',$data,true);
|
||||
}
|
||||
else if($data['pd_master_details'][0]['customer_segment_abbr'] == 'SAL')
|
||||
{
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT_SAL',$data,true);
|
||||
}
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// $t = $this->load->view('report_templates/JSONTOREPORT_DI_AI_ADDON',$data,true);
|
||||
// }
|
||||
|
||||
|
||||
$pd_report_time = date('Y-m-d-H-i-s');
|
||||
@ -4821,6 +4834,78 @@ public function getPDFormDetailsJSON_post()
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function imgPDFDownload_post()
|
||||
{
|
||||
$records = $this->post('records');
|
||||
$pdid = $records['pd_id'];
|
||||
$random_string = $records['random_string'];
|
||||
$pd_master_details = $this->PD_Model->getPDMasterDetails($pdid,$random_string);
|
||||
|
||||
if(!file_exists($this->external_path.'/pd_reports/'.$pdid))
|
||||
{
|
||||
mkdir($this->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.pdf';
|
||||
|
||||
//$singed_uri = $this->aws_s3->getSingleObjectInaBucketAsSignedURI($bucketname,$key,'+30 minutes');
|
||||
if($pd_master_details[0]['is_img_pdf_created'])
|
||||
{
|
||||
$singed_uri = $this->aws_s3->getSingleObjectInaBucketAsSignedURI($bucketname,$key,'+30 minutes');
|
||||
|
||||
$response_data['dataStatus'] = true;
|
||||
$response_data['status'] = REST_Controller::HTTP_OK;
|
||||
$response_data['records'] = $singed_uri;
|
||||
$this->response($response_data,REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
$all_pd_images = $this->PD_Model->getSignedPDDocsURL($pdid,null,null,null,null,'report');
|
||||
//print_r($all_pd_images);die();
|
||||
// $all_form_names = $this->PD_Model->selectCustomRecords(array('pd_form_id','pd_form_name'),array(),PDFORMS);
|
||||
// $form_name = array();
|
||||
// foreach($all_form_names as $form)
|
||||
// {
|
||||
// $form_name[ $form['pd_form_id'] ] = $form['pd_form_name'];
|
||||
// }
|
||||
$data_to_view['all_pd_images'] = $all_pd_images;
|
||||
$img_pdf_data = $this->load->view('report_templates/PDIMG_PDF',$data_to_view,true);
|
||||
print_r($img_pdf_data);die();
|
||||
$bucket_data = array('bucket_name'=>$bucketname,'key'=>$key,'sourcefile'=>($this->external_path.'/pd_reports/'.$pdid.'/'.$temp_path));
|
||||
|
||||
$s3result= $this->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 = $this->PD_Model->updateRecords($temp_array,PDTRIGGER,$where_condition_array);
|
||||
- unlink($this->external_path.'/pd_reports/'.$pdid.'/'.$temp_path);
|
||||
}
|
||||
|
||||
|
||||
|
||||
$singed_uri = $this->aws_s3->getSingleObjectInaBucketAsSignedURI($bucketname,$key,'+30 minutes');
|
||||
|
||||
$response_data['dataStatus'] = true;
|
||||
$response_data['status'] = REST_Controller::HTTP_OK;
|
||||
$response_data['records'] = $singed_uri;
|
||||
$this->response($response_data,REST_Controller::HTTP_OK);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@ -5700,7 +5785,7 @@ public function getPDFormDetailsJSON_post()
|
||||
//satellite_image::getSatelliteImage(886);die();
|
||||
//echo $this->assignPDTempalate(1325);die();
|
||||
//$this->getSatelliteImage(342);die();//velmurugan.s@venbainfotech.com
|
||||
//PDALERTS::sendSalesPDMail($this,'vitvelz@gmail.com','PDGENIE TEST');die();
|
||||
//PDALERTS::pdnotification(1483);die();
|
||||
//$this->load->helper('applicantname_grabber');
|
||||
// print_r(APPLICANTNAME_GRABBER::getLatestApplicantsName(1390));die();
|
||||
//satellite_image::getSatelliteImage(1442);die();
|
||||
@ -5809,6 +5894,8 @@ public function getPDFormDetailsJSON_post()
|
||||
//print_r($data['pd_master_details']);die();
|
||||
//$data['satellite_path'] = $this->external_path.'/pd_reports/'. $pdid .'/satellite.png';
|
||||
$data['lender_disclaimer'] = $this->PD_Model->selectRecords(ENTITYDISCLAIMER,array('fk_entity_id' => $data['pd_master_details'][0]['fk_lender_id']));
|
||||
//print_r($data['lender_disclaimer']);die();
|
||||
//$GLOBALS['footer_lender_disclaimer'] = $data['lender_disclaimer'][0]['type'] == 2 ? $data['lender_disclaimer'][0]['disclaimer'] : (isset($data['lender_disclaimer'][1]) && $$data['lender_disclaimer'][1]['type'] == 2 ? $$data['lender_disclaimer'][1]['disclaimer'] : '');
|
||||
|
||||
$data['pd_additional_requirements'] = $this->PD_Model->getPDAdditionalRequirements($pdid);
|
||||
$data['score_questions_display'] = $this->PD_Model->getScoreableQuestionToDispaly();
|
||||
@ -5820,7 +5907,7 @@ public function getPDFormDetailsJSON_post()
|
||||
//print_r($data['pd_master_details'][0]['is_score_card_enabled']);die();
|
||||
// echo "**************************";
|
||||
//$data['dsc_cards'] = $this->getDetailedScoreCardChart( $data['pd_score'] );
|
||||
if($data['pd_master_details'][0]['is_score_card_enabled'] == 1 && ($data['pd_master_details'][0]['customer_segment_abbr'] != "SAL-CASH" && $data['pd_master_details'][0]['customer_segment_abbr'] != "SAL-CHQ")) //&& ($data['pd_master_details'][0]['customer_segment_abbr'] != ''))
|
||||
if($data['pd_master_details'][0]['is_score_card_enabled'] == 1 && ($data['pd_master_details'][0]['customer_segment_abbr'] != "SAL"))// && $data['pd_master_details'][0]['customer_segment_abbr'] != "SAL-CHQ")) //&& ($data['pd_master_details'][0]['customer_segment_abbr'] != ''))
|
||||
{
|
||||
//echo $data['pd_master_details'][0]['is_score_card_enabled'].'-'.$data['pd_master_details'][0]['customer_segment_abbr'];die();
|
||||
$data['pd_score'] = $this->calculateScore($pdid);
|
||||
@ -5876,7 +5963,7 @@ public function getPDFormDetailsJSON_post()
|
||||
}
|
||||
//print_r(json_decode($data['pd_processed_forms'][18][0]['processed_json']));die();
|
||||
$data['pd_images']['common_images'] = $this->PD_Model->getSignedPDDocsURL($pdid,null,null,'common',null,'report');
|
||||
//print_r($data['pd_processed_forms'][12]);//die();
|
||||
//print_r($data['pd_images']);die();
|
||||
|
||||
// $it = array_filter($data['pd_images'][11],function($d){ if($d['company_id'] == 2){ echo $d['company_id'].'TRUE';return 1;}else {echo $d['company_id'].'FALSE'; return 0;} });
|
||||
// print_r($it);
|
||||
@ -5913,6 +6000,7 @@ public function getPDFormDetailsJSON_post()
|
||||
|
||||
// print_r($data['add_on_pd_images']);
|
||||
// die();
|
||||
|
||||
$t = "";
|
||||
if(!count($add_on_pd))
|
||||
{
|
||||
@ -5928,7 +6016,7 @@ public function getPDFormDetailsJSON_post()
|
||||
{
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT_DI_AI',$data,true);
|
||||
}
|
||||
else if($data['pd_master_details'][0]['customer_segment_abbr'] == 'SAL-CASH' || $data['pd_master_details'][0]['customer_segment_abbr'] == 'SAL-CHQ' )
|
||||
else if($data['pd_master_details'][0]['customer_segment_abbr'] == 'SAL')
|
||||
{
|
||||
$t = $this->load->view('report_templates/JSONTOREPORT_SAL',$data,true);
|
||||
}
|
||||
@ -5939,8 +6027,8 @@ public function getPDFormDetailsJSON_post()
|
||||
}
|
||||
//$t = $this->load->view('temp_html.html',null,true);
|
||||
echo $t;
|
||||
//
|
||||
//die();
|
||||
|
||||
die();
|
||||
|
||||
$total_replaces = substr_count($t,'<span class="tooltip">');
|
||||
for($i = 0 ;$i < $total_replaces;$i++)
|
||||
@ -8022,10 +8110,18 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(!$person_met_is_applicant_count){ $incomplete_details[] = 'General Section - Person met is not an applicant'; }
|
||||
if(!$person_met_selfie_count){ $incomplete_details[] = 'General Section - Person met selfie image with PD officer not captured'; }
|
||||
if(!$person_met_id_proof_count){ $incomplete_details[] = 'General Section - Person met ID proof image not captured'; }
|
||||
|
||||
//get salary case details specifically
|
||||
$sal_check = null;
|
||||
if($pd_master_details[0]['customer_segment_abbr'] == 'SAL')
|
||||
{
|
||||
$sal_check = $this->PD_Model->selectCustomRecords(array('*'),array('fk_pd_id' => $pdid),XTRA_CHECK);
|
||||
$sal_check = count($sal_check) ? $sal_check[0]['flag'] : null;
|
||||
}
|
||||
|
||||
if(!$person_met_is_applicant_count && $sal_check == null){ $incomplete_details[] = 'General Section - Person met is not an applicant'; }
|
||||
if(!$person_met_selfie_count && $sal_check == null){ $incomplete_details[] = 'General Section - Person met selfie image with PD officer not captured'; }
|
||||
if(!$person_met_id_proof_count && $sal_check == null ){ $incomplete_details[] = 'General Section - Person met ID proof image not captured'; }
|
||||
#####End of General Form Questions########
|
||||
|
||||
|
||||
@ -8664,7 +8760,7 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
|
||||
|
||||
}
|
||||
}// end of CS - SE
|
||||
else if($pd_master_details[0]['customer_segment_abbr'] == 'SAL-CASH' || $pd_master_details[0]['customer_segment_abbr'] == 'SAL-CHQ')
|
||||
else if($pd_master_details[0]['customer_segment_abbr'] == 'SAL')// || $pd_master_details[0]['customer_segment_abbr'] == 'SAL-CHQ')
|
||||
{
|
||||
//have to check salary information form
|
||||
}
|
||||
@ -9195,6 +9291,38 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function putSalCheck_post()
|
||||
{
|
||||
$records = $this->post('records');
|
||||
$id = null;
|
||||
|
||||
if($records['id'])
|
||||
{
|
||||
$id = $this->PD_Model->updateRecords($records,XTRA_CHECK,array('id' => $records['id']));
|
||||
}
|
||||
else
|
||||
{
|
||||
$id = $this->PD_Model->saveRecords($records,XTRA_CHECK);
|
||||
}
|
||||
|
||||
|
||||
if($id)
|
||||
{
|
||||
$data['dataStatus'] = true;
|
||||
$data['status'] = REST_Controller::HTTP_OK;
|
||||
$data['records'] = $id;
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['dataStatus'] = false;
|
||||
$data['status'] = REST_Controller::HTTP_NOT_MODIFIED;
|
||||
$data['msg'] = 'Something went wrong..! Try Later...!';
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -219,13 +219,13 @@ public static function getOthersAssetsDetails($values,$pdid){
|
||||
$sec_row .= $fetchVal['business_purchase_year'] != '' || $fetchVal['business_purchase_year'] != null ? ' purchased in '.$fetchVal['business_purchase_year'] .'</td>' : '</td>';
|
||||
$third_row .= '<td class="customtd">'. ucfirst($ownership_type) .'</td>';
|
||||
$fourth_row .= '<td class="customtd">'.$owners_list.'</td>';
|
||||
$fifth_row .= '<td class="customtd">'.($fetchVal['business_approximate_market_value'] != "" && $fetchVal['business_approximate_market_value'] != null ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($fetchVal['business_approximate_market_value']) : 'NA').'</td>';
|
||||
$fifth_row .= '<td class="customtd">'.($fetchVal['business_approximate_market_value'] != "" && $fetchVal['business_approximate_market_value'] != null ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($fetchVal['business_approximate_market_value']) : 'Not Provided').'</td>';
|
||||
$sixth_row .= '<td class="customtd">'.(($fetchVal['business_monthly_rented_amt'] != "") ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($fetchVal['business_monthly_rented_amt']) : 'NA').'</td>';
|
||||
$seventh_row .= '<td class="customtd">';
|
||||
|
||||
$seventh_row .= ($fetchVal['business_vintage'] != "" ? $fetchVal['business_vintage'].' Yrs ' : '' );
|
||||
|
||||
$seventh_row .= isset($fetchVal['asset_months']) && $fetchVal['asset_months'] != '' ? $fetchVal['asset_months'].' Mns' : ($fetchVal['business_vintage'] == "" ? 'NA' : '');
|
||||
$seventh_row .= isset($fetchVal['asset_months']) && $fetchVal['asset_months'] != '' && $fetchVal['asset_months'] != 0 ? $fetchVal['asset_months'].' Mns' : ($fetchVal['business_vintage'] == "" ? 'NA' : '');
|
||||
|
||||
$seventh_row .= '</td>';
|
||||
$eighth_row .= '<td class="customtd">'.($fetchVal['business_emi'] != "" ? ucfirst($fetchVal['business_emi']) : 'NA').'</td>';
|
||||
@ -240,13 +240,13 @@ public static function getOthersAssetsDetails($values,$pdid){
|
||||
$sec_row .= $fetchVal['business_purchase_year'] != '' || $fetchVal['business_purchase_year'] != null ? ' purchased in '.$fetchVal['business_purchase_year'].'</td>' : '</td>';
|
||||
$third_row .= '<td class="customtd">'. ucfirst($ownership_type) .'</td>';
|
||||
$fourth_row .= '<td class="customtd">'.$owners_list.'</td>';
|
||||
$fifth_row .= '<td class="customtd">'.($fetchVal['business_approximate_market_value'] != "" && $fetchVal['business_approximate_market_value'] != null ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($fetchVal['business_approximate_market_value']) : 'NA').'</td>';
|
||||
$fifth_row .= '<td class="customtd">'.($fetchVal['business_approximate_market_value'] != "" && $fetchVal['business_approximate_market_value'] != null ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($fetchVal['business_approximate_market_value']) : 'Not Provided').'</td>';
|
||||
$sixth_row .= '<td class="customtd">'.(($fetchVal['business_monthly_rented_amt'] != "") ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($fetchVal['business_monthly_rented_amt']) : 'NA').'</td>';
|
||||
$seventh_row .= '<td class="customtd">';
|
||||
|
||||
$seventh_row .= ($fetchVal['business_vintage'] != "" ? $fetchVal['business_vintage'].' Yrs ' : '' );
|
||||
|
||||
$seventh_row .= isset($fetchVal['asset_months']) && $fetchVal['asset_months'] != '' ? $fetchVal['asset_months'].' Mns' : ($fetchVal['business_vintage'] == "" ? 'NA' : '');
|
||||
$seventh_row .= isset($fetchVal['asset_months']) && $fetchVal['asset_months'] != '' && $fetchVal['asset_months'] != 0 ? $fetchVal['asset_months'].' Mns' : ($fetchVal['business_vintage'] == "" ? 'NA' : '');
|
||||
$eighth_row .= '<td class="customtd">'.($fetchVal['business_emi'] != "" ? ucfirst($fetchVal['business_emi']) : 'NA').'</td>';
|
||||
}
|
||||
|
||||
@ -259,13 +259,13 @@ public static function getOthersAssetsDetails($values,$pdid){
|
||||
$sec_row .= '<td class="customtd">'.($fetchVal['business_details'][0]['property_type']==1 ? $fetchVal['business_details'][0]['other_property_type']:$fetchVal['business_details'][0]['property_type_master']).'</td>';
|
||||
$third_row .= '<td class="customtd">'. ucfirst($ownership_type) .'</td>';
|
||||
$fourth_row .= '<td class="customtd">'.$owners_list.'</td>';
|
||||
$fifth_row .= '<td class="customtd">'.($fetchVal['business_approximate_market_value'] != "" && $fetchVal['business_approximate_market_value'] != null ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($fetchVal['business_approximate_market_value']) : 'NA').'</td>';
|
||||
$fifth_row .= '<td class="customtd">'.($fetchVal['business_approximate_market_value'] != "" && $fetchVal['business_approximate_market_value'] != null ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($fetchVal['business_approximate_market_value']) : 'Not Provided').'</td>';
|
||||
$sixth_row .= '<td class="customtd">'.(($fetchVal['business_monthly_rented_amt'] != "") ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($fetchVal['business_monthly_rented_amt']) : 'NA').'</td>';
|
||||
$seventh_row .= '<td class="customtd">';
|
||||
|
||||
$seventh_row .= ($fetchVal['business_vintage'] != "" ? $fetchVal['business_vintage'].' Yrs ' : '' );
|
||||
|
||||
$seventh_row .= isset($fetchVal['asset_months']) && $fetchVal['asset_months'] != '' ? $fetchVal['asset_months'].' Mns' : ($fetchVal['business_vintage'] == "" ? 'NA' : '');
|
||||
$seventh_row .= isset($fetchVal['asset_months']) && $fetchVal['asset_months'] != '' && $fetchVal['asset_months'] != 0? $fetchVal['asset_months'].' Mns' : ($fetchVal['business_vintage'] == "" ? 'NA' : '');
|
||||
$eighth_row .= '<td class="customtd">'.($fetchVal['business_emi'] != "" ? ucfirst($fetchVal['business_emi']) : 'NA').'</td>';
|
||||
}
|
||||
//this is for other
|
||||
@ -275,13 +275,13 @@ public static function getOthersAssetsDetails($values,$pdid){
|
||||
$sec_row .= '<td class="customtd">'.$fetchVal['business_details'][0]['any_other_assets'].'</td>';
|
||||
$third_row .= '<td class="customtd">'. ucfirst($ownership_type) .'</td>';
|
||||
$fourth_row .= '<td class="customtd">'.$owners_list.'</td>';
|
||||
$fifth_row .= '<td class="customtd">'.($fetchVal['business_approximate_market_value'] != "" && $fetchVal['business_approximate_market_value'] != null ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($fetchVal['business_approximate_market_value']) : 'NA').'</td>';
|
||||
$fifth_row .= '<td class="customtd">'.($fetchVal['business_approximate_market_value'] != "" && $fetchVal['business_approximate_market_value'] != null ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($fetchVal['business_approximate_market_value']) : 'Not Provided').'</td>';
|
||||
$sixth_row .= '<td class="customtd">'.(($fetchVal['business_monthly_rented_amt'] != "") ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($fetchVal['business_monthly_rented_amt']) : 'NA').'</td>';
|
||||
$seventh_row .= '<td class="customtd">';
|
||||
|
||||
$seventh_row .= ($fetchVal['business_vintage'] != "" ? $fetchVal['business_vintage'].' Yrs ' : '' );
|
||||
|
||||
$seventh_row .= isset($fetchVal['asset_months']) && $fetchVal['asset_months'] != '' ? $fetchVal['asset_months'].' Mns' : ($fetchVal['business_vintage'] == "" ? 'NA' : '');
|
||||
$seventh_row .= isset($fetchVal['asset_months']) && $fetchVal['asset_months'] != '' && $fetchVal['asset_months'] != 0 ? $fetchVal['asset_months'].' Mns' : ($fetchVal['business_vintage'] == "" ? 'NA' : '');
|
||||
$eighth_row .= '<td class="customtd">'.($fetchVal['business_emi'] != "" ? ucfirst($fetchVal['business_emi']) : 'NA').'</td>';
|
||||
}
|
||||
|
||||
|
||||
@ -184,7 +184,24 @@ class MYUTIL
|
||||
$final_name = null;
|
||||
foreach($name as $n){ $final_name.= ' '.ucfirst(strtolower($n)); }
|
||||
return $final_name;
|
||||
}
|
||||
}
|
||||
|
||||
public static function addOrdinalNumberSuffix($num)
|
||||
{
|
||||
if (!in_array(($num % 100),array(11,12,13)))
|
||||
{
|
||||
switch ($num % 10)
|
||||
{
|
||||
// Handle 1st, 2nd, 3rd
|
||||
case 1: return $num.'st';
|
||||
case 2: return $num.'nd';
|
||||
case 3: return $num.'rd';
|
||||
}
|
||||
}
|
||||
return $num.'th';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@ -74,7 +74,8 @@ class AWS_S3
|
||||
|
||||
} catch (AwsException $e)
|
||||
{
|
||||
$result = false;;
|
||||
$result = false;
|
||||
log_message('ERRROR',$e);
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
||||
@ -25,12 +25,24 @@ class Pdfgenerator
|
||||
$dompdf->load_html($html);
|
||||
//$dompdf->setEncryption('test1234');
|
||||
$dompdf->set_paper($paper, $orientation);
|
||||
$dompdf->set_option("isPhpEnabled", true);
|
||||
$dompdf->render();
|
||||
|
||||
$canvas = $dompdf->get_canvas();
|
||||
$total = $dompdf->get_canvas()->get_page_count();
|
||||
//echo $total.'TOT';
|
||||
//$font = Font_Metrics::get_font("helvetica", "bold");
|
||||
|
||||
$font = null;
|
||||
// echo "{PAGE_NUM}";
|
||||
$canvas->page_text(515,760, "Page {PAGE_NUM} of {PAGE_COUNT}", $font,8, array(0,0,0));
|
||||
//echo "{PAGE_NUM}";
|
||||
// if($total == "{PAGE_NUM}")
|
||||
// {
|
||||
// echo "{PAGE_NUM}";
|
||||
// echo $total.'TOT';
|
||||
// $canvas->page_text(515,700, "Page {PAGE_COUNT} of {PAGE_COUNT}", $font,8, array(0,0,0));
|
||||
// }
|
||||
//$canvas->get_cpdf()->setEncryption('userpass', 'ownerpass', array('print', 'copy'));
|
||||
//$canvas->get_cpdf()->setEncryption('userpass');
|
||||
|
||||
|
||||
@ -992,7 +992,7 @@ class PD_Model extends SPARQ_Model {
|
||||
return $this->db->GET()->result_array();
|
||||
}
|
||||
|
||||
public function getTemplateForPD($pdid,$client,$random_string)
|
||||
public function getTemplateForPD($pdid,$client,$random_string,$api = 'WEB')
|
||||
{
|
||||
|
||||
|
||||
@ -1189,6 +1189,27 @@ class PD_Model extends SPARQ_Model {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
//this one get sal case custom check - remove all forms except gen,add, employee
|
||||
$sal_check = $this->selectCustomRecords(array('*'),array('fk_pd_id' => $pdid),XTRA_CHECK);
|
||||
$result_data['salary_check'] = count($sal_check) ? $sal_check[0] : 1;
|
||||
$sal_flag = is_array($result_data['salary_check']) ? $result_data['salary_check']['flag'] : $result_data['salary_check'];
|
||||
//echo $pd_master_detials[0]['customer_segment_abbr'].$api.$sal_flag;die();
|
||||
if($pd_master_detials[0]['customer_segment_abbr'] == 'SAL' && $api == 'MOB' && $sal_flag == 1)
|
||||
{
|
||||
foreach($template_forms as $key => $form)
|
||||
{
|
||||
if($form['form_id'] != 18 && $form['form_id'] != 5 && $form['form_id'] != 12)
|
||||
{
|
||||
unset($template_forms[$key]) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
$template_forms[$key]['isAnswerable'] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -1201,6 +1222,9 @@ class PD_Model extends SPARQ_Model {
|
||||
}
|
||||
$result_data['pdapplicants_detials'] = $pd_applicants_detials;
|
||||
$result_data['template_forms'] = $template_forms;
|
||||
|
||||
|
||||
|
||||
return $result_data;
|
||||
}
|
||||
|
||||
|
||||
@ -3841,7 +3841,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<td class="customtd"><?php echo $paRow['assets_mode']; ?></td>
|
||||
<td class="customtd"><?php echo $paRow['about_assets']; ?></td>
|
||||
<td class="customtd"><?php echo $paRow['name_of_the_owner']; ?></td>
|
||||
<td class="customtd"><?php echo isset($paRow['is_sum_assured']) ? 'Sum Assured -<br> '. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']) : $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']); ?></td>
|
||||
<td class="customtd"><?php echo isset($paRow['is_sum_assured']) ? 'Sum Assured -<br> '. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']) : ( ($paRow['approximate_market_value'] != '' && $paRow['approximate_market_value'] != 0 ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']): 'Not Provided' )); ?></td>
|
||||
<?php
|
||||
if($pd_master_details[0]['product_abbr'] != 'BL' && $pd_master_details[0]['product_abbr'] != 'LAEP')
|
||||
{
|
||||
|
||||
@ -1,7 +1,9 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
?><!DOCTYPE html>
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" id="mydoc" onkeyup="saveEdits(event)">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
@ -45,6 +47,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
text-align: left;
|
||||
/*line-height: 35px;*/
|
||||
}
|
||||
|
||||
|
||||
.non-editable{ background-color:#99ff99; }
|
||||
|
||||
@ -482,18 +485,45 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
localStorage.userEdits = userVersion;
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
<body style="font-family:Merriweather;font-size:12px;margin:15px 30px">
|
||||
|
||||
<?php
|
||||
// ########################### End disclaimer start #########################################
|
||||
|
||||
$footer_lender_disclaimer = $lender_disclaimer[0]['type'] == 2 ? $lender_disclaimer[0]['disclaimer'] : (isset($lender_disclaimer[1]) && $lender_disclaimer[1]['type'] == 2 ? $lender_disclaimer[1]['disclaimer'] : '');
|
||||
// if(isset($footer_lender_disclaimer['disclaimer']) && $footer_lender_disclaimer['disclaimer'] != '' && $footer_lender_disclaimer['type'] == 2)
|
||||
// {
|
||||
// //echo '<br><br><br><br><br><br><p align="center"><i>'. $footer_lender_disclaimer['disclaimer'] .'</i></p>';
|
||||
|
||||
// }
|
||||
// ########################### End disclaimer end #########################################
|
||||
?>
|
||||
|
||||
<!-- <script type="text/php">
|
||||
if ( isset($pdf) ) {
|
||||
$pdf->page_script('
|
||||
if ($PAGE_NUM >= $PAGE_COUNT) {
|
||||
$font = $fontMetrics->get_font("Arial, Helvetica, sans-serif", "normal");
|
||||
$size = 12;
|
||||
$pageText = "";
|
||||
$y = 700 ;
|
||||
$x = 250;
|
||||
$pdf->text($x, $y, $pageText, $font, $size);
|
||||
}
|
||||
');
|
||||
}
|
||||
</script> -->
|
||||
|
||||
|
||||
<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>
|
||||
@ -543,9 +573,10 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
echo "<br><br>";
|
||||
echo "<p></p>";
|
||||
|
||||
if(isset($lender_disclaimer[0]['disclaimer']) && $lender_disclaimer[0]['disclaimer'] != '')
|
||||
$header_lender_disclaimer = $lender_disclaimer[0]['type'] == 1 ? $lender_disclaimer[0] : (isset($lender_disclaimer[1]) && $lender_disclaimer[1]['type'] == 1 ? $lender_disclaimer[1] : '');
|
||||
if(isset($header_lender_disclaimer['disclaimer']) && $header_lender_disclaimer['disclaimer'] != '' && $header_lender_disclaimer['type'] == 1)
|
||||
{
|
||||
echo '<p align="justify"><i><strong>Disclaimer: </strong>'. $lender_disclaimer[0]['disclaimer'] .'</i></p>';
|
||||
echo '<p align="justify"><i><strong>Disclaimer: </strong>'. $header_lender_disclaimer['disclaimer'] .'</i></p>';
|
||||
|
||||
}
|
||||
|
||||
@ -3814,7 +3845,7 @@ if($total_no_of_business > 0) {
|
||||
<td class="customtd"><?php echo $paRow['assets_mode']; ?></td>
|
||||
<td class="customtd"><?php echo $paRow['about_assets']; ?></td>
|
||||
<td class="customtd"><?php echo $paRow['name_of_the_owner']; ?></td>
|
||||
<td class="customtd"><?php echo isset($paRow['is_sum_assured']) ? 'Sum Assured -<br> '. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']) : $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']); ?></td>
|
||||
<td class="customtd"><?php echo isset($paRow['is_sum_assured']) ? 'Sum Assured -<br> '. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']) : ( ($paRow['approximate_market_value'] != '' && $paRow['approximate_market_value'] != 0 ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']): 'Not Provided' )); ?></td>
|
||||
<td class="customtd"><?php echo $paRow['purchase_year'] ? $paRow['purchase_year'] : 'NA'; ?></td>
|
||||
<td class="customtd"><?php echo ($paRow['emi']) ? 'Yes' : 'No'; ?></td>
|
||||
</tr>
|
||||
@ -4630,7 +4661,8 @@ if($total_no_of_business > 0) {
|
||||
|
||||
<!-- #################END of Annexure B(RI) section start#################-->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
@ -4762,6 +4794,12 @@ if($total_no_of_business > 0) {
|
||||
echo "</table>";
|
||||
}
|
||||
// ########################### End Of Score Card Section #########################################
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
</body>
|
||||
|
||||
@ -4043,7 +4043,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<td class="customtd"><?php echo $paRow['assets_mode']; ?></td>
|
||||
<td class="customtd"><?php echo $paRow['about_assets']; ?></td>
|
||||
<td class="customtd"><?php echo $paRow['name_of_the_owner']; ?></td>
|
||||
<td class="customtd"><?php echo isset($paRow['is_sum_assured']) ? 'Sum Assured -<br> '. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']) : $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']); ?></td>
|
||||
<td class="customtd"><?php echo isset($paRow['is_sum_assured']) ? 'Sum Assured -<br> '. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']) : ( ($paRow['approximate_market_value'] != '' && $paRow['approximate_market_value'] != 0 ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']): 'Not Provided' )); ?></td>
|
||||
<td class="customtd"><?php echo $paRow['purchase_year'] ? $paRow['purchase_year'] : 'NA'; ?></td>
|
||||
<td class="customtd"><?php echo ($paRow['emi']) ? 'Yes' : 'No'; ?></td>
|
||||
</tr>
|
||||
|
||||
@ -1268,7 +1268,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
<td class="customtd"><?php echo $paRow['assets_mode']; ?></td>
|
||||
<td class="customtd"><?php echo $paRow['about_assets']; ?></td>
|
||||
<td class="customtd"><?php echo $paRow['name_of_the_owner']; ?></td>
|
||||
<td class="customtd"><?php echo isset($paRow['is_sum_assured']) ? 'Sum Assured -<br> '. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']) : $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']); ?></td>
|
||||
<td class="customtd"><?php echo isset($paRow['is_sum_assured']) ? 'Sum Assured -<br> '. $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']) : ( ($paRow['approximate_market_value'] != '' && $paRow['approximate_market_value'] != 0 ? $rupee_symbol.' '.MYUTIL::customIndianNumberFormat($paRow['approximate_market_value']): 'Not Provided' )); ?></td>
|
||||
<td class="customtd"><?php echo $paRow['purchase_year'] ? $paRow['purchase_year'] : 'NA'; ?></td>
|
||||
<td class="customtd"><?php echo ($paRow['emi']) ? 'Yes' : 'No'; ?></td>
|
||||
</tr>
|
||||
|
||||
1958
api/application/views/report_templates/JSONTOREPORT_SAL.php
Normal file
1958
api/application/views/report_templates/JSONTOREPORT_SAL.php
Normal file
File diff suppressed because it is too large
Load Diff
550
api/application/views/report_templates/PDIMG_PDF.php
Normal file
550
api/application/views/report_templates/PDIMG_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%">';
|
||||
|
||||
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+2);
|
||||
$to = ($from + 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]['doc_url'].'" alt="" width="200" height="200">';
|
||||
echo '<div class="desc">'.$all_pd_images[$photo_iter]['pd_document_title'] .'</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