QUES MAS CHANGED
This commit is contained in:
parent
501b98dc36
commit
bfe6580a60
@ -172,9 +172,9 @@ class PD_Controller extends REST_Controller {
|
|||||||
/********For Save New PD while Trigger****/
|
/********For Save New PD while Trigger****/
|
||||||
public function triggerNewPD_post()
|
public function triggerNewPD_post()
|
||||||
{
|
{
|
||||||
echo "TRIGGER";
|
// echo "TRIGGER";
|
||||||
//$this->aws_ses->verifyEmailAddress('velmurugan.s@venbainfotech.com');
|
// //$this->aws_ses->verifyEmailAddress('velmurugan.s@venbainfotech.com');
|
||||||
die();
|
// die();
|
||||||
$pd_details = json_decode($this->post('pd_details'),true);
|
$pd_details = json_decode($this->post('pd_details'),true);
|
||||||
$pd_applicant_details = json_decode($this->post('pd_applicant_details'),true);
|
$pd_applicant_details = json_decode($this->post('pd_applicant_details'),true);
|
||||||
$pd_document_titles = json_decode($this->post('pd_document_titles'),true);
|
$pd_document_titles = json_decode($this->post('pd_document_titles'),true);
|
||||||
|
|||||||
@ -65,7 +65,7 @@ class Question_Management_Controller extends REST_Controller {
|
|||||||
//$count++;
|
//$count++;
|
||||||
foreach($answers as $answer)
|
foreach($answers as $answer)
|
||||||
{
|
{
|
||||||
$temp_answers = array('fk_question_id' => $question_id, 'answer' =>$answer , 'createdon' =>$records['createdon'] , 'fk_createdby' =>$records['fk_createdby']);
|
$temp_answers = array('fk_question_id' => $question_id, 'answer' =>$answer['answer'] , 'createdon' =>$records['createdon'] , 'fk_createdby' =>$records['fk_createdby']);
|
||||||
$child_id = $this->db->saveRecords($temp_answers,QUESTIONANSWERS);
|
$child_id = $this->db->saveRecords($temp_answers,QUESTIONANSWERS);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -14,7 +14,7 @@ class Question_Management_Model extends SPARQ_Model {
|
|||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
$this->db->SELECT('QUESTIONS.question_id, QUESTIONS.question, QUESTIONS.description, QUESTIONS.fk_question_catagory,QUESTIONCATEGORY.category_name, QUESTIONS.fk_question_answertype,QUESTIONANSWERTYPE.answer_type_name,QUESTIONS.isactive, QUESTIONS.createdon, QUESTIONS.fk_createdby, QUESTIONS.updatedon, QUESTIONS.fk_updatedby,concat(USERPROFILE.first_name,' ',USERPROFILE.last_name) as createdby,concat(USERPROFILE1.first_name,' ',USERPROFILE1.last_name) as updatedby');
|
$this->db->SELECT('QUESTIONS.question_id, QUESTIONS.question, QUESTIONS.description, QUESTIONS.fk_question_catagory,QUESTIONCATEGORY.category_name, QUESTIONS.fk_question_answertype,QUESTIONANSWERTYPE.answer_type_name,QUESTIONS.isactive, QUESTIONS.createdon, QUESTIONS.fk_createdby, QUESTIONS.updatedon, QUESTIONS.fk_updatedby,concat(USERPROFILE.first_name," " ,USERPROFILE.last_name) as createdby,concat(USERPROFILE1.first_name," ",USERPROFILE1.last_name) as updatedby');
|
||||||
$this->db->FROM(QUESTIONS.' as QUESTIONS');
|
$this->db->FROM(QUESTIONS.' as QUESTIONS');
|
||||||
$this->db->JOIN(QUESTIONANSWERTYPE.' as QUESTIONANSWERTYPE','QUESTIONS.fk_question_answertype = QUESTIONANSWERTYPE.question_answer_type_id AND QUESTIONANSWERTYPE.isactive = 1');
|
$this->db->JOIN(QUESTIONANSWERTYPE.' as QUESTIONANSWERTYPE','QUESTIONS.fk_question_answertype = QUESTIONANSWERTYPE.question_answer_type_id AND QUESTIONANSWERTYPE.isactive = 1');
|
||||||
$this->db->JOIN(QUESTIONCATEGORY.' as QUESTIONCATEGORY','QUESTIONS.fk_question_catagory = QUESTIONCATEGORY.question_categroy_id AND QUESTIONCATEGORY.isactive = 1');
|
$this->db->JOIN(QUESTIONCATEGORY.' as QUESTIONCATEGORY','QUESTIONS.fk_question_catagory = QUESTIONCATEGORY.question_categroy_id AND QUESTIONCATEGORY.isactive = 1');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user