52 redirect(
"survey_dashboard");
55 $page->page_title .=
" for {$survey->title}";
57 $survey->filter =
new InclusionFilter(
"survey_id");
64 $table->column(
"Question",
"<a href='survey_question_form?survey_id={survey_id}&survey_question_id={survey_question_id}'>{Question.question}</a>")
70 $table->emptyMessage =
"There are no questions defined.";
71 $table->enableDragReorder(
"/action/survey/reorder_questions?survey_id=$survey_id");
72 $table->dragText =
"<span style='font-size: 10px'>Click and drag to change the order of the survey questions</span>";
78 $form->readOnlyForm =
true;
88 redirect(
"survey_questions?survey_id=$survey_id");
98 <div
id=
"survey_tab_border">
99 <button
id=
"next_page_button" class=
"button"
100 onclick=
"go('<?echo $tabs->getNextPage() ?>')">Next
Page »</button>
101 <h3><?php echo
$survey->title ?></h3>
102 <div
id=
"inner_border"><?
106 <a
class=
'button' href=
'survey_question_form?survey_id=<?php echo $survey_id ?>'>Create a New
Question</a>&
nbsp;&
nbsp;
111 <a
class=
'button' href=
"survey_question_select?survey_id=<?php echo $survey_id ?>">Select
from Existing Questions</a>
static usingFeature()
Uses the specified framework feature(s).
static using()
Import the datamodels, views and manifest for the specified component(s).
static surveyTabs($key="")
$method
Pull out a simple reference to the request method.
if($method=="POST") $script