diff --git a/webtools/firefox_survey/controllers/users_controller.php b/webtools/firefox_survey/controllers/users_controller.php index 5d61e68beb7a..a945f3f9c594 100644 --- a/webtools/firefox_survey/controllers/users_controller.php +++ b/webtools/firefox_survey/controllers/users_controller.php @@ -23,6 +23,7 @@ class UsersController extends AppController { { if (empty($this->params['data'])) { + $this->set('tracking_image','userpanel1-form.gif'); $this->render(); } else @@ -93,20 +94,19 @@ use in marketing or solicitation.

$mail->send(); - // rather than just flash a screen, we want to show a page with - // some content. We do a little trickery here, but it gets the - // job done. content is in /views/layouts/flash.thtml - $this->Session->setFlash(' -

You are already signed up for the Firefox User Panel!

+ $this->layout = 'submit'; + $this->set('content',' +

You are already signed up for the Firefox User Panel!

-

If you don\'t receive an email with a link to the survey within 24 hours, please check - your junk mail. If you still haven\'t received an email with a link to the survey - please let us know - and we\'ll send another copy.

+

If you don\'t receive an email with a link to the survey within 24 hours, please check + your junk mail. If you still haven\'t received an email with a link to the survey + please let us know + and we\'ll send another copy.

-

Continue to Firefox Central.

+

Continue to Firefox Central.

'); - $this->flash(null,null,0); + $this->set('tracking_image','userpanel3-alreadysignedup.gif'); + $this->render(); return; } @@ -143,20 +143,19 @@ use in marketing or solicitation.

$mail->send(); - // rather than just flash a screen, we want to show a page with - // some content. We do a little trickery here, but it gets the - // job done. content is in /views/layouts/flash.thtml - $this->Session->setFlash(' -

Thanks for helping to make a better browsing experience!

+ $this->layout = 'submit'; + $this->set('content',' +

Thanks for helping us make a better browser!

-

Be sure to check your email for a link to the first survey.
- Continue to Firefox Central.

+

Be sure to check your email for a link to the first survey.
+ Continue to Firefox Central.

-

If you don\'t receive an email with a link to - the survey within 24 hours, please check your junk mail or let us - know and we\'ll send another copy.

+

If you don\'t receive an email with a link to + the survey within 24 hours, please check your junk mail or let us + know and we\'ll send another copy.

'); - $this->flash(null,null,0); + $this->set('tracking_image','userpanel2-response.gif'); + $this->render(); } } diff --git a/webtools/firefox_survey/views/elements/header.thtml b/webtools/firefox_survey/views/elements/header.thtml index 67e0fc298469..3deeb85029ea 100644 --- a/webtools/firefox_survey/views/elements/header.thtml +++ b/webtools/firefox_survey/views/elements/header.thtml @@ -28,6 +28,12 @@ + image($tracking_image, array('alt'=>'', 'width'=>1, 'height'=>1)); + } + ?>