From 250ade052f1c5392e534e6fc9be3e5e7a9572141 Mon Sep 17 00:00:00 2001 From: Adam Zammit Date: Wed, 27 Feb 2013 16:16:32 +1100 Subject: [PATCH] Added email option to alternate interface --- email.php | 21 ++++++++++++++++++--- index_interface2.php | 2 +- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/email.php b/email.php index 64f27fb7..34ea8974 100644 --- a/email.php +++ b/email.php @@ -198,7 +198,14 @@ if (isset($_POST['firstname'])) $newtext = T_("Start REC"); $js = "js/window.js"; if (browser_ie()) $js = "js/window_ie6.js"; - xhtml_head(T_("Email"),true,array("css/call.css"),array($js),"onload='toggleRec(\"$newtext\",\"record.php?start=start\",\"offline\"); openParentObject(\"main-content\",\"" . get_respondentselection_url($operator_id) . "\"); parent.closePopup();'"); + if (isset($_GET['interface2'])) + { + xhtml_head(T_("Email"),true,array("css/call.css"),array($js),"onload='openParent(\"endcase=endcase\");'"); + } + else + { + xhtml_head(T_("Email"),true,array("css/call.css"),array($js),"onload='toggleRec(\"$newtext\",\"record.php?start=start\",\"offline\"); openParentObject(\"main-content\",\"" . get_respondentselection_url($operator_id) . "\"); parent.closePopup();'"); + } } else if (isset($_POST['submit'])) @@ -246,11 +253,19 @@ if ($sc == 1) print "
" . T_("Email respondent for self completion") . "
"; if (!empty($msg)) print "

$msg

"; - print "
"; + print ""; print "
"; print "
"; print "
"; - print "
"; + if (!isset($_GET['interface2'])) + { + print "
"; + } print "
"; } else diff --git a/index_interface2.php b/index_interface2.php index 4fc7a393..b40ca4fa 100644 --- a/index_interface2.php +++ b/index_interface2.php @@ -209,7 +209,7 @@ $sc = $db->GetOne($sql);