Fixes : ps
This commit is contained in:
parent
6b2b708ff5
commit
d2747d0432
@ -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');
|
||||
$FItype_id = $this->get('fi_id');
|
||||
if($PDtype_id == 4){
|
||||
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"));
|
||||
if($FItype_id == 1){
|
||||
// $PDtype_id = $this->get('pd_type_id');
|
||||
// $FItype_id = $this->get('fi_id');
|
||||
// if($PDtype_id == 4){
|
||||
// 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"));
|
||||
// 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{
|
||||
$data['dataStatus'] = false;
|
||||
$data['status'] = REST_Controller::HTTP_NO_CONTENT;
|
||||
$data['msg'] = 'Field Investigation id is Not available';
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
}
|
||||
}
|
||||
else{
|
||||
$data['dataStatus'] = false;
|
||||
$data['status'] = REST_Controller::HTTP_NO_CONTENT;
|
||||
$data['msg'] = 'Its not a FI PD Type';
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
}
|
||||
// }
|
||||
// else{
|
||||
// $data['dataStatus'] = false;
|
||||
// $data['status'] = REST_Controller::HTTP_NO_CONTENT;
|
||||
// $data['msg'] = 'Field Investigation id is Not available';
|
||||
// $this->response($data,REST_Controller::HTTP_OK);
|
||||
// }
|
||||
// }
|
||||
// else{
|
||||
// $data['dataStatus'] = false;
|
||||
// $data['status'] = REST_Controller::HTTP_NO_CONTENT;
|
||||
// $data['msg'] = 'Its not a FI PD Type';
|
||||
// $this->response($data,REST_Controller::HTTP_OK);
|
||||
// }
|
||||
|
||||
$fields = array('form_id');
|
||||
$where_condition_array = array('fk_template_id'=>$template_id,'isactive'=>1);
|
||||
$result_array = $this->Template_Management_Model->selectCustomRecords($fields,$where_condition_array,TEMPLATEFORMS);
|
||||
//print_r($this->db->last_query());
|
||||
$temp = array();
|
||||
foreach($result_array as $r)
|
||||
{
|
||||
$formid = $r['form_id'];
|
||||
$temp = array_merge($temp,array($formid));
|
||||
}
|
||||
// $fields = array('form_id');
|
||||
// $where_condition_array = array('fk_template_id'=>$template_id,'isactive'=>1);
|
||||
// $result_array = $this->Template_Management_Model->selectCustomRecords($fields,$where_condition_array,TEMPLATEFORMS);
|
||||
// //print_r($this->db->last_query());
|
||||
// $temp = array();
|
||||
// foreach($result_array as $r)
|
||||
// {
|
||||
// $formid = $r['form_id'];
|
||||
// $temp = array_merge($temp,array($formid));
|
||||
// }
|
||||
|
||||
if(count($result_array))
|
||||
{
|
||||
$data['dataStatus'] = true;
|
||||
$data['status'] = REST_Controller::HTTP_OK;
|
||||
$data['records'] = $temp;
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['dataStatus'] = false;
|
||||
$data['status'] = REST_Controller::HTTP_NO_CONTENT;
|
||||
$data['msg'] = 'No Data Available';
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
// if(count($result_array))
|
||||
// {
|
||||
// $data['dataStatus'] = true;
|
||||
// $data['status'] = REST_Controller::HTTP_OK;
|
||||
// $data['records'] = $temp;
|
||||
// $this->response($data,REST_Controller::HTTP_OK);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// $data['dataStatus'] = false;
|
||||
// $data['status'] = REST_Controller::HTTP_NO_CONTENT;
|
||||
// $data['msg'] = 'No Data Available';
|
||||
// $this->response($data,REST_Controller::HTTP_OK);
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
// }
|
||||
}
|
||||
@ -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"/>
|
||||
<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">
|
||||
<style type="text/css">
|
||||
|
||||
.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{
|
||||
word-wrap:break-word
|
||||
word-wrap:break-word;
|
||||
width:50%;
|
||||
}
|
||||
|
||||
|
||||
@ -9,12 +9,9 @@ $loan_word = $pd_master_details[0]['lender_short_name'] != 'CFPL' ? 'Loan' : 'Fa
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<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">
|
||||
<style type="text/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; }
|
||||
@ -462,7 +459,7 @@ $loan_word = $pd_master_details[0]['lender_short_name'] != 'CFPL' ? 'Loan' : 'Fa
|
||||
}
|
||||
|
||||
#ini_table td{
|
||||
word-wrap:break-word
|
||||
word-wrap:break-word;
|
||||
width:50%;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user