CMS
Version 3.9
questionnaire_preview.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
/*
35
*
36
* Title: questionnaire_preview.php
37
*
38
* Description: Preview of a questionnaire question set. Intended
39
* for the user who is creating the quesetionnaire to review
40
* the layout and order of the questions.
41
*
42
* author: Janice Gallant for Sonjara, Inc.
43
*
44
* date: 1/4/10
45
*
46
*/
47
48
Fakoli::using
(
"questionnaire"
);
49
50
$questionnaire_id
= checkNumeric($_GET[
"questionnaire_id"
]);
51
52
if
(!
$questionnaire_id
)
53
redirect(
"questionnaire_dashboard"
);
54
55
$questionnaire
=
new
Questionnaire
(
$questionnaire_id
);
56
57
$questionnaire
=
new
QuestionnairePreview
(
new
QuestionnaireCreateManager
(
$questionnaire
));
58
59
$tabs
=
QuestionnaireCreateManager::getTabs
(
$questionnaire_id
);
60
61
$tabs
->writeHTML();
62
?>
63
<div
style
=
"clear:left;border:solid 1px #000; padding: 4px;"
>
64
<h3><?echo
$questionnaire
->title ?></h3>
65
<br/>
66
<?
67
$questionnaire
->writeHTML();
68
?>
69
</div>
style
$helpTree style
Definition:
tree.inc:46
Fakoli\using
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition:
core.inc:116
QuestionnaireCreateManager
Definition:
questionnaire_manager.inc:60
QuestionnaireCreateManager\getTabs
static getTabs($key="")
Definition:
questionnaire_manager.inc:90
Questionnaire
Definition:
questionnaire.inc:76
QuestionnairePreview
Definition:
questionnaire_form.inc:503
$questionnaire
$questionnaire
Definition:
questionnaire_preview.inc:55
$questionnaire_id
$questionnaire_id
Definition:
questionnaire_preview.inc:50
$tabs
$tabs
Definition:
questionnaire_preview.inc:59
code
cms.sonjara.com
cms
components
questionnaire
pages
questionnaire_preview.inc
Generated on Tue Mar 23 2021 15:36:14 for CMS by
1.9.1