CREIDT MGR QURIES CHGS & TM LOGO IN ALL TEMPLATE

This commit is contained in:
Velz2020 2020-07-23 22:49:17 +05:30
parent 745a76512b
commit 30800f6451
9 changed files with 133 additions and 20 deletions

View File

@ -6300,7 +6300,7 @@ public function getPDFormDetailsJSON_post()
$t = substr_replace($t,'',strpos($t,'<span class="tooltip">'),(strlen('<span class="tooltip">')));
}
echo $t;die();
//echo $t;die();
//$t = file_get_contents($this->external_path ."/pd_reports/" . $pdid . "/sample.html");
// $start_pos = strpos($t,'</script>');
@ -6315,6 +6315,7 @@ public function getPDFormDetailsJSON_post()
//End of PDF Gen using DOM PDF
$output_file2 = $this->external_path ."/pd_reports/" . $pdid . "/sample.pdf";
$ti = file_put_contents($output_file2, $pdf_doc);
echo $output_file2;
echo $ti;die();
$dat['dataStatus'] = true;
$dat['status'] = REST_Controller::HTTP_OK;
@ -9648,7 +9649,7 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
$applicants_ids_array = array();
$docs_to_be_uploads_ids_array = array();
$add_req_ids_array = array();
$form_ids_to_replace_new_co_applicants_id = array(18,4,6,7,8,9,10,13,19,21,22);
$form_ids_to_replace_new_co_applicants_id = array(18,4,6,7,8,9,10,13,17,19,21,22);
$logger = MYLOG::logFunction(null,$pdid);
$logger->info("duplicatePD_post called: ".$pdid,array('ENV'=>ENVIRONMENT,'DATA' => $lender_applicant_id));

View File

@ -1104,10 +1104,10 @@ class PD_Model extends SPARQ_Model {
$this->db->JOIN(PDFORMS.' as PDFORMS','TEMPLATEFORMS.form_id = PDFORMS.pd_form_id');
$this->db->WHERE('TEMPLATEFORMS.fk_template_id',$template_id);
$this->db->WHERE('TEMPLATEFORMS.isactive',1);
if( !(count($docs_to_be_collected) || count($pd_additional_requirements)) )
{
$this->db->WHERE('TEMPLATEFORMS.form_id != ',24); //credit managers specific queries form
}
// if( !(count($docs_to_be_collected) || count($pd_additional_requirements)) )
// {
// $this->db->WHERE('TEMPLATEFORMS.form_id != ',24); //credit managers specific queries form
// }
if($pd_master_detials[0]['fk_pd_type'] == 3)
{
$this->db->WHERE('TEMPLATEFORMS.form_id != ',19);

View File

@ -1 +1 @@
var page = require('webpage').create();page.viewportSize = { width: 600, height: 350 };page.clipRect = { top: 0, left: 0, width: 600, height: 350 };var score = 44.5;var url = 'http://localhost/AWSEC2/sparqapi/api?'+score;var image_url = 'C:/xampp/htdocs/ssa_external_data/production/pd_reports/1/chart.png' ;page.open(url,function() {setTimeout(function() {page.render(image_url);phantom.exit();}, 500);});
var page = require('webpage').create();page.onInitialized = function(){page.evaluate(function(){Math.log10 = Math.log10 || function(x) {return Math.log(x) / Math.LN10;};});};page.viewportSize = { width: 600, height: 350 };page.clipRect = { top: 0, left: 0, width: 600, height: 350 };var score = 69.2;var url = 'http://localhost/AWSEC2/sparqapi/api?'+score;var image_url = 'C:/xampp/htdocs/ssa_external_data/testing/pd_reports/1792/chart.png' ;page.open(url,function() {setTimeout(function() {page.render(image_url);phantom.exit();}, 500);});

View File

@ -492,11 +492,11 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<footer>
<hr>
Powered by PDGenie
Powered by PDGenie&trade;
</footer>
<header>
<div><img style="width:50px;height:50px;opacity: 0.5;" src='https://pdgenie.com/logo/sineedge_red.png'/></div>
<div><img style="width:100px;height:50px;opacity: 0.5;" src='https://pdgenie.com/logo/sineedge_red.png'/></div>
<hr>
</header>
@ -4281,7 +4281,29 @@ defined('BASEPATH') OR exit('No direct script access allowed');
else
{
echo 'There are no specific documents to be collect.';
}
}
if(isset($credit_officier_specific_queries['covid_section']) && isset($credit_officier_specific_queries['covid_section']['question_info']) && count($credit_officier_specific_queries['covid_section']['question_info']))
{
echo '<br>';
echo '<h3 contenteditable="true">COVID-19 Section: </h3>';
foreach ($credit_officier_specific_queries['covid_section']['question_info'] as $covid_key => $covid_value)
{
if(strcasecmp($covid_value['question'],'choose any'))
{
echo 'Question : ' . $covid_value['question'].'<br>';
echo 'Answer : ' . $credit_officier_specific_queries['covid_section'][ $covid_value['question_key'] ].'<br>';
$sub_field_key = $covid_value['question_key'] . '_'.$credit_officier_specific_queries['covid_section'][ $covid_value['question_key'] ];
if(isset( $credit_officier_specific_queries['covid_section'][$sub_field_key] ) )
{
echo 'Reason/Description : ' . $credit_officier_specific_queries['covid_section'][$sub_field_key].'<br>';
}
echo '<br>';
}
}
}
//}

View File

@ -512,11 +512,11 @@ if ( isset($pdf) ) {
<footer>
<hr>
Powered by PD Genie
Powered by PD Genie&trade;
</footer>
<header>
<div><img style="width:50px;height:50px;opacity: 0.5;" src='https://pdgenie.com/logo/sineedge_red.png'/></div>
<div><img style="width:100px;height:50px;opacity: 0.5;" src='https://pdgenie.com/logo/sineedge_red.png'/></div>
<hr>
</header>
@ -4338,6 +4338,30 @@ if($total_no_of_business > 0) {
echo 'There are no specific documents to be collect.';
}
if(isset($credit_officier_specific_queries['covid_section']) && isset($credit_officier_specific_queries['covid_section']['question_info']) && count($credit_officier_specific_queries['covid_section']['question_info']))
{
echo '<br>';
echo '<h3 contenteditable="true">COVID-19 Section: </h3>';
foreach ($credit_officier_specific_queries['covid_section']['question_info'] as $covid_key => $covid_value)
{
if(strcasecmp($covid_value['question'],'choose any'))
{
echo 'Question : ' . $covid_value['question'].'<br>';
echo 'Answer : ' . $credit_officier_specific_queries['covid_section'][ $covid_value['question_key'] ].'<br>';
$sub_field_key = $covid_value['question_key'] . '_'.$credit_officier_specific_queries['covid_section'][ $covid_value['question_key'] ];
if(isset( $credit_officier_specific_queries['covid_section'][$sub_field_key] ) )
{
echo 'Reason/Description : ' . $credit_officier_specific_queries['covid_section'][$sub_field_key].'<br>';
}
echo '<br>';
}
}
}
//}
?>

View File

@ -491,11 +491,11 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<footer>
<hr>
Powered by PDGenie
Powered by PDGenie&trade;
</footer>
<header>
<div><img style="width:50px;height:50px;opacity: 0.5;" src='https://pdgenie.com/logo/sineedge_red.png'/></div>
<div><img style="width:100px;height:50px;opacity: 0.5;" src='https://pdgenie.com/logo/sineedge_red.png'/></div>
<hr>
</header>
@ -4449,6 +4449,28 @@ defined('BASEPATH') OR exit('No direct script access allowed');
echo 'There are no specific documents to be collect.';
}
if(isset($credit_officier_specific_queries['covid_section']) && isset($credit_officier_specific_queries['covid_section']['question_info']) && count($credit_officier_specific_queries['covid_section']['question_info']))
{
echo '<br>';
echo '<h3 contenteditable="true">COVID-19 Section: </h3>';
foreach ($credit_officier_specific_queries['covid_section']['question_info'] as $covid_key => $covid_value)
{
if(strcasecmp($covid_value['question'],'choose any'))
{
echo 'Question : ' . $covid_value['question'].'<br>';
echo 'Answer : ' . $credit_officier_specific_queries['covid_section'][ $covid_value['question_key'] ].'<br>';
$sub_field_key = $covid_value['question_key'] . '_'.$credit_officier_specific_queries['covid_section'][ $covid_value['question_key'] ];
if(isset( $credit_officier_specific_queries['covid_section'][$sub_field_key] ) )
{
echo 'Reason/Description : ' . $credit_officier_specific_queries['covid_section'][$sub_field_key].'<br>';
}
echo '<br>';
}
}
}
//}
?>

View File

@ -512,11 +512,11 @@ if ( isset($pdf) ) {
<footer>
<hr>
Powered by PD Genie
Powered by PD Genie&trade;
</footer>
<header>
<div><img style="width:50px;height:50px;opacity: 0.5;" src='https://pdgenie.com/logo/sineedge_red.png'/></div>
<div><img style="width:100px;height:50px;opacity: 0.5;" src='https://pdgenie.com/logo/sineedge_red.png'/></div>
<hr>
</header>
@ -4274,6 +4274,28 @@ if($total_no_of_business > 0) {
echo 'There are no specific documents to be collect.';
}
if(isset($credit_officier_specific_queries['covid_section']) && isset($credit_officier_specific_queries['covid_section']['question_info']) && count($credit_officier_specific_queries['covid_section']['question_info']))
{
echo '<br>';
echo '<h3 contenteditable="true">COVID-19 Section: </h3>';
foreach ($credit_officier_specific_queries['covid_section']['question_info'] as $covid_key => $covid_value)
{
if(strcasecmp($covid_value['question'],'choose any'))
{
echo 'Question : ' . $covid_value['question'].'<br>';
echo 'Answer : ' . $credit_officier_specific_queries['covid_section'][ $covid_value['question_key'] ].'<br>';
$sub_field_key = $covid_value['question_key'] . '_'.$credit_officier_specific_queries['covid_section'][ $covid_value['question_key'] ];
if(isset( $credit_officier_specific_queries['covid_section'][$sub_field_key] ) )
{
echo 'Reason/Description : ' . $credit_officier_specific_queries['covid_section'][$sub_field_key].'<br>';
}
echo '<br>';
}
}
}
//}
?>

View File

@ -490,11 +490,11 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<footer>
<hr>
Powered by PDGenie
Powered by PDGenie&trade;
</footer>
<header>
<div><img style="width:50px;height:50px;opacity: 0.5;" src='https://pdgenie.com/logo/sineedge_red.png'/></div>
<div><img style="width:100px;height:50px;opacity: 0.5;" src='https://pdgenie.com/logo/sineedge_red.png'/></div>
<hr>
</header>
@ -1676,6 +1676,28 @@ defined('BASEPATH') OR exit('No direct script access allowed');
echo 'There are no specific documents to be collect.';
}
if(isset($credit_officier_specific_queries['covid_section']) && isset($credit_officier_specific_queries['covid_section']['question_info']) && count($credit_officier_specific_queries['covid_section']['question_info']))
{
echo '<br>';
echo '<h3 contenteditable="true">COVID-19 Section: </h3>';
foreach ($credit_officier_specific_queries['covid_section']['question_info'] as $covid_key => $covid_value)
{
if(strcasecmp($covid_value['question'],'choose any'))
{
echo 'Question : ' . $covid_value['question'].'<br>';
echo 'Answer : ' . $credit_officier_specific_queries['covid_section'][ $covid_value['question_key'] ].'<br>';
$sub_field_key = $covid_value['question_key'] . '_'.$credit_officier_specific_queries['covid_section'][ $covid_value['question_key'] ];
if(isset( $credit_officier_specific_queries['covid_section'][$sub_field_key] ) )
{
echo 'Reason/Description : ' . $credit_officier_specific_queries['covid_section'][$sub_field_key].'<br>';
}
echo '<br>';
}
}
}
//}
?>

View File

@ -489,11 +489,11 @@ defined('BASEPATH') OR exit('No direct script access allowed');
<footer>
<hr>
Powered by PDGenie
Powered by PDGenie&trade;
</footer>
<header>
<div><img style="width:50px;height:50px;opacity: 0.5;" src='https://pdgenie.com/logo/sineedge_red.png'/></div>
<div><img style="width:100px;height:50px;opacity: 0.5;" src='https://pdgenie.com/logo/sineedge_red.png'/></div>
<hr>
</header>