CMS  Version 3.9
survey_confirmation.inc
Go to the documentation of this file.
1 <?php
2 Fakoli::using("questionnaire", "survey", "settings", "email", "settings");
3 Fakoli::usingFeature("auto_form");
4 
5 $survey_id = checkNumeric($_GET["survey_id"]);
6 
7 if(!$survey_id)
8 {
9  redirect("survey_dashboard");
10 }
11 
13 $page->page_title .= " for " . $survey->title;
14 
15 $survey->filter = new InclusionFilter("confirmation_message");
16 
17 $form = new AutoForm($survey);
18 $form->submitLabel = "Save Confirmation Message";
20 
22 
23 $script .= $form->writeScript();
24 
25 if ($method == "POST")
26 {
27  if ($form->save())
28  {
29  $tabs->next();
30  }
31 }
32 
33 
34 $tabs->writeHTML();
35 ?>
36 <div id="survey_tab_border">
37 <button id="next_page_button" class="button"
38  onclick="go('<?echo $tabs->getNextPage() ?>')">Next Page &raquo;</button>
39 <h3>Confirmation Message for Respondents</h3>
40 <p>If left blank, respondents will see the following message:</p>
41 <?php
42 echo "<div class='default_confirmation'>";
43 echo $mgr->formatDefaultConfirmationMessage();
44 echo "</div>";
45 
46 $form->drawForm();
47 
48 ?>
49 </div>
$page
Definition: help.inc:39
static usingFeature()
Uses the specified framework feature(s).
Definition: core.inc:388
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition: core.inc:116
Definition: page.inc:43
static surveyTabs($key="")
$method
Pull out a simple reference to the request method.
Definition: core.inc:1573
margin left
if(! $survey_id) $survey
$email message