45 Fakoli::using(
"questionnaire",
"survey",
"settings",
"email");
49 $error = checkNumeric($_GET[
"error"]);
52 redirect(
"survey_dashboard");
55 $page->page_title .=
" for {$survey->title}";
57 $survey->filter =
new InclusionFilter(
"sender_email",
"recipients",
"cc_recipients",
"additional_recipients",
"message");
66 $form->annotate(
"recipients",
"(separate email addresses with a comma ',')");
67 $form->required(
"sender_email");
69 if(!
$survey->allow_anonymous_responses)
71 $form->required(
"recipients",
"message");
78 $form->getRenderer(
"message")->rows = 10;
79 $form->submitLabel =
"Save Survey Email";
80 $form->regexp(
"sender_email",
"\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b",
"Please supply a valid email address containing a domain name.");
81 $form->getRenderer(
"message")->columns = 80;
84 $sendMgr->setOneRecipientField(
$form,
"cc_recipients",
"CC Recipients");
85 $sendMgr->setOneRecipientField(
$form,
"additional_recipients");
86 $form->annotate(
"cc_recipients",
$sendMgr->getCCRecipientsAnnotation());
87 $form->annotate(
"additional_recipients",
"Send additional survey request emails (separate email addresses with a comma ',').");
94 $survey->recipients = implode(
", ", explode(
",",
$survey->recipients));
95 $form->readOnly(
"recipients");
100 $form->readOnlyForm =
true;
101 $form->hide(
"additional_recipients");
107 $form->hide(
"additional_recipients");
126 <div
id=
"survey_tab_border">
127 <button
id=
"next_page_button" class=
"button"
128 onclick=
"go('<?echo $tabs->getNextPage() ?>')">Next
Page »</button>
130 <div
id=
"inner_border">
132 echo
$sendMgr->getEmailPageHeading();
static usingFeature()
Uses the specified framework feature(s).
static using()
Import the datamodels, views and manifest for the specified component(s).
If a survey allows anonymous responses, then email message is only required if the user enters a reci...
static surveyTabs($key="")
$method
Pull out a simple reference to the request method.
if(! $survey->isAuthor()||! $survey->isSent()) $tabs