diff --git a/referral.php b/referral.php index 92011a57..d316115c 100644 --- a/referral.php +++ b/referral.php @@ -198,26 +198,26 @@ if (isset($_POST['submit'])) if ($db->CompleteTrans()) { - $msg = T_("Created referral case - you may now close this window"); + $msg = "

" . T_("Created referral case - you may now close this window") . "

"; } else { - $msg = T_("Failed to create referral case - please check your input and try again"); + $msg = "

" . T_("Failed to create referral case - please check your input and try again") . "

"; } } else { - $msg = T_("You must supply a primary phone number"); + $msg = "

" . T_("You must supply a primary phone number") . "

"; } } $case_id = get_case_id($operator_id); -$js = "js/window.js"; -if (browser_ie()) $js = "js/window_ie6.js"; +if (isset($_GET['interface2'])) { if (browser_ie()) $js = "js/window_ie6_interface2.js"; else $js = "js/window_interface2.js"; } +else { if (browser_ie()) $js = "js/window_ie6.js"; else $js = "js/window.js"; } -xhtml_head(T_("Referral"),true,array("css/call.css"),array($js)); +xhtml_head(T_("Referral"),false,array("include/bootstrap/css/bootstrap.min.css"),array($js)); $sql = "SELECT q.referral FROM questionnaire as q, `case` as c @@ -228,13 +228,13 @@ $sc = $db->GetOne($sql); if ($sc == 1) { - print "
" . T_("Create referral") . "
"; - if (!empty($msg)) print "

$msg

"; - print "
"; + print "

" . T_("Create referral") . "

"; + if (!empty($msg)) print $msg; + print ""; //Create a list of sample records matching this current case - $sql = "SELECT sivr.var,t.description,sivr.type + $sql = "SELECT sivr.var,t.description,sivr.type, sv.val FROM `sample_import_var_restrict` as sivr,`sample_var` as sv, `case` as c, `sample_var_type` as t WHERE c.case_id = '$case_id' AND sv.sample_id = c.sample_id @@ -246,25 +246,29 @@ if ($sc == 1) foreach ($rs as $r) { $var = $r['var']; - print "
"; } else {