-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUserDetail.php
44 lines (37 loc) · 1.35 KB
/
UserDetail.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/**
* This file create instance of class
* Call functions of class
* Display Output
*
* @author Navdeep Bagga
* @authorEmail admin@navdeepbagga.com
* @category Function call
* @copyright Copyright (c) June-July Testing and Consultancy Cell
* @license General Public License
* @version $Id:UserDetail.php 2012-01-08 $
*/
//Include database and class file
require_once 'Db.php';
require_once 'QuesProcess.php';
//Create object of class
$Ques_Process_Obj = new Ques_Processor();
//Define Array
$sampleArray = array(
'gid', 'qid'
);
//Calling functions
$surveyId = $Ques_Process_Obj -> createColumn('surveyls_survey_id', $langTable, 'surveyls_title', $surveyTitle);
$mainTable = $prefixTable.'survey_'.$surveyId;
$emailId = $Ques_Process_Obj -> createColumn($sampleArray,$quesTable,'question','Email');
$emailColm = $surveyId."X".$emailId[0]."X".$emailId[1];
$questionsQid = $Ques_Process_Obj -> createColumn('qid', $quesTable, 'parent_qid', 0);
$quesInfo = $Ques_Process_Obj -> getQuestionInfo($questionsQid, $quesTable);
$columnNames = $Ques_Process_Obj -> questionColumnCreator($surveyId, $quesInfo, $quesTable);
$displayResult = $Ques_Process_Obj -> displayAnswer($columnNames, $mainTable, $emailColm);
//Display Answers
echo "<pre>";
print_r($columnNames);
print_r($displayResult);
echo "</pre>";
?>