CMS
Version 3.9
survey_data_table.inc
Go to the documentation of this file.
1
<?php
2
/**************************************************************
3
4
Copyright (c) 2007,2008 Sonjara, Inc
5
6
Permission is hereby granted, free of charge, to any person
7
obtaining a copy of this software and associated documentation
8
files (the "Software"), to deal in the Software without
9
restriction, including without limitation the rights to use,
10
copy, modify, merge, publish, distribute, sublicense, and/or sell
11
copies of the Software, and to permit persons to whom the
12
Software is furnished to do so, subject to the following
13
conditions:
14
15
The above copyright notice and this permission notice shall be
16
included in all copies or substantial portions of the Software.
17
18
Except as contained in this notice, the name(s) of the above
19
copyright holders shall not be used in advertising or otherwise
20
to promote the sale, use or other dealings in this Software
21
without prior written authorization.
22
23
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
25
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
27
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
28
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
29
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
30
OTHER DEALINGS IN THE SOFTWARE.
31
32
*****************************************************************/
33
34
/* survey_data.inc
35
*
36
* Description: Displays aggregate results of a survey.
37
*
38
* author: Janice Gallant for Sonjara, Inc.
39
*
40
* date: 5/13/10
41
*/
42
43
Fakoli::using
(
"questionnaire"
,
"survey"
);
44
Fakoli::usingFeature
(
"data_view"
);
45
46
$survey_id
= checkNumeric($_GET[
"survey_id"
]);
47
48
if
(!
$survey_id
)
49
redirect(
"index"
);
50
51
$survey
=
new
Survey
(
$survey_id
);
52
$page
->page_title =
"Tabular View of {$survey->title}"
;
53
54
$view
=
new
QuestionnaireDataView
(
new
SurveyResultsManager
(
$survey
));
55
56
$tabs
=
SurveyManager::surveyTabs
(
$survey_id
);
57
58
$script
.=
$view
->writeScript();
59
$tabs
->writeHTML();
60
?>
61
<div
id
=
"survey_tab_border"
>
62
<h3>Aggregated
Survey
Results
for
<?echo
$survey
->title?></h3>
63
<?
64
$view
->drawView();
65
?></div>
66
<?
67
?>
$page
$page
Definition:
help.inc:39
Fakoli\usingFeature
static usingFeature()
Uses the specified framework feature(s).
Definition:
core.inc:388
Fakoli\using
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition:
core.inc:116
QuestionnaireDataView
Definition:
questionnaire_data_view.inc:38
Survey
Definition:
survey.inc:53
SurveyManager\surveyTabs
static surveyTabs($key="")
Definition:
survey_manager.inc:51
SurveyResultsManager
Definition:
survey_manager.inc:386
$survey
$survey
Definition:
survey_data_table.inc:51
$survey_id
$survey_id
Definition:
survey_data_table.inc:46
$tabs
$tabs
Definition:
survey_data_table.inc:56
$view
$view
Definition:
survey_data_table.inc:54
$script
$script
Definition:
survey_data_table.inc:58
code
cms.sonjara.com
cms
components
survey
pages
survey_data_table.inc
Generated on Tue Mar 23 2021 15:36:14 for CMS by
1.9.1