Fixes : ps

This commit is contained in:
VE10-Sanjeev 2022-09-21 13:01:39 +05:30
parent 6b2b708ff5
commit d2747d0432
3 changed files with 54 additions and 57 deletions

View File

@ -1690,64 +1690,64 @@ class Template_Management_Controller extends REST_Controller {
} }
} }
public function getFIPDForms_get() // public function getFIPDForms_get()
{ // {
$PDtype_id = $this->get('pd_type_id'); // $PDtype_id = $this->get('pd_type_id');
$FItype_id = $this->get('fi_id'); // $FItype_id = $this->get('fi_id');
if($PDtype_id == 4){ // if($PDtype_id == 4){
if(!empty($FItype_id)){ // if(!empty($FItype_id)){
// $field_investigation = array(array("field_investigation_id"=> 1,"field_investigation"=> "Office Visit (DI)"),array("field_investigation_id"=> 2,"field_investigation"=> "Office Visit (Sal)"),array("field_investigation_id"=> 3,"field_investigation"=> "Residence Visit")); // // $field_investigation = array(array("field_investigation_id"=> 1,"field_investigation"=> "Office Visit (DI)"),array("field_investigation_id"=> 2,"field_investigation"=> "Office Visit (Sal)"),array("field_investigation_id"=> 3,"field_investigation"=> "Residence Visit"));
if($FItype_id == 1){ // if($FItype_id == 1){
}else if($FItype_id == 2){ // }else if($FItype_id == 2){
}else if($FItype_id == 3){ // }else if($FItype_id == 3){
} // }
} // }
else{ // else{
$data['dataStatus'] = false; // $data['dataStatus'] = false;
$data['status'] = REST_Controller::HTTP_NO_CONTENT; // $data['status'] = REST_Controller::HTTP_NO_CONTENT;
$data['msg'] = 'Field Investigation id is Not available'; // $data['msg'] = 'Field Investigation id is Not available';
$this->response($data,REST_Controller::HTTP_OK); // $this->response($data,REST_Controller::HTTP_OK);
} // }
} // }
else{ // else{
$data['dataStatus'] = false; // $data['dataStatus'] = false;
$data['status'] = REST_Controller::HTTP_NO_CONTENT; // $data['status'] = REST_Controller::HTTP_NO_CONTENT;
$data['msg'] = 'Its not a FI PD Type'; // $data['msg'] = 'Its not a FI PD Type';
$this->response($data,REST_Controller::HTTP_OK); // $this->response($data,REST_Controller::HTTP_OK);
} // }
$fields = array('form_id'); // $fields = array('form_id');
$where_condition_array = array('fk_template_id'=>$template_id,'isactive'=>1); // $where_condition_array = array('fk_template_id'=>$template_id,'isactive'=>1);
$result_array = $this->Template_Management_Model->selectCustomRecords($fields,$where_condition_array,TEMPLATEFORMS); // $result_array = $this->Template_Management_Model->selectCustomRecords($fields,$where_condition_array,TEMPLATEFORMS);
//print_r($this->db->last_query()); // //print_r($this->db->last_query());
$temp = array(); // $temp = array();
foreach($result_array as $r) // foreach($result_array as $r)
{ // {
$formid = $r['form_id']; // $formid = $r['form_id'];
$temp = array_merge($temp,array($formid)); // $temp = array_merge($temp,array($formid));
} // }
if(count($result_array)) // if(count($result_array))
{ // {
$data['dataStatus'] = true; // $data['dataStatus'] = true;
$data['status'] = REST_Controller::HTTP_OK; // $data['status'] = REST_Controller::HTTP_OK;
$data['records'] = $temp; // $data['records'] = $temp;
$this->response($data,REST_Controller::HTTP_OK); // $this->response($data,REST_Controller::HTTP_OK);
} // }
else // else
{ // {
$data['dataStatus'] = false; // $data['dataStatus'] = false;
$data['status'] = REST_Controller::HTTP_NO_CONTENT; // $data['status'] = REST_Controller::HTTP_NO_CONTENT;
$data['msg'] = 'No Data Available'; // $data['msg'] = 'No Data Available';
$this->response($data,REST_Controller::HTTP_OK); // $this->response($data,REST_Controller::HTTP_OK);
} // }
} // }
} }

View File

@ -9,8 +9,8 @@ $loan_word = $pd_master_details[0]['lender_short_name'] != 'CFPL' ? 'Loan' : 'Fa
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title> <title></title>
<link href="https://fonts.googleapis.com/css?family=Merriweather" rel="stylesheet"> <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"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style type="text/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; }
@ -458,7 +458,7 @@ $loan_word = $pd_master_details[0]['lender_short_name'] != 'CFPL' ? 'Loan' : 'Fa
} }
#ini_table td{ #ini_table td{
word-wrap:break-word word-wrap:break-word;
width:50%; width:50%;
} }

View File

@ -9,12 +9,9 @@ $loan_word = $pd_master_details[0]['lender_short_name'] != 'CFPL' ? 'Loan' : 'Fa
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title> <title></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<link href="https://fonts.googleapis.com/css?family=Merriweather" rel="stylesheet"> <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"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style type="text/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; }
@ -462,7 +459,7 @@ $loan_word = $pd_master_details[0]['lender_short_name'] != 'CFPL' ? 'Loan' : 'Fa
} }
#ini_table td{ #ini_table td{
word-wrap:break-word word-wrap:break-word;
width:50%; width:50%;
} }