diff --git a/admin/index.php b/admin/index.php index e87ad6d0..8e002ef1 100644 --- a/admin/index.php +++ b/admin/index.php @@ -44,64 +44,69 @@ include ("../config.inc.php"); */ include ("../functions/functions.xhtml.php"); -xhtml_head(T_("Administrative Tools"),true,array("../css/table.css","../css/admin.css"),array("../js/link.js")); +xhtml_head(T_("Administrative Tools"),true,array("../css/table.css","../css/admin.css")); print "
"; +$page = "new.php"; -print ""; +if (isset($_GET['page'])) + $page = $_GET['page']; + +print "" . T_("Download the file for each user and save in the same folder as the voip.exe executable. When the file is executed, it will run the voip.exe program with the correct connection details to connect the operator to the VoIP server") . "
"; - print "" . T_("Download Windows VoIP Executable") . "
"; - print "" . T_("Download Linux VoIP Executable") . "
"; + print "" . T_("Download Windows VoIP Executable") . "
"; + print "" . T_("Download Linux VoIP Executable") . "
"; $columns[] = "winbat"; $columns[] = "sh"; diff --git a/call.php b/call.php index ddfba7dc..dbe6cdcf 100644 --- a/call.php +++ b/call.php @@ -172,7 +172,10 @@ if (isset($_POST['submit'])) $btext = "onload='openParentObject(\"main-content\",\"" . get_respondentselection_url($operator_id) . "\"); parent.closePopup();'"; else $btext = "onload='parent.closePopup();'"; - xhtml_head(T_("Call"),true,array("css/call.css"),array("js/window.js"),$btext); + + $js = "js/window.js"; + if (browser_ie()) $js = "js/window_ie6.js"; + xhtml_head(T_("Call"),true,array("css/call.css"),array($js),$btext); } } else if (isset($_POST['outcome'])) @@ -188,7 +191,11 @@ if (isset($_POST['submit'])) } //disable recording $newtext = T_("Start REC"); - xhtml_head(T_("Call"),true,array("css/call.css"),array("js/window.js"),"onload='toggleRec(\"$newtext\",\"record.php?start=start\",\"offline\"); openParentObject(\"main-content\",\"" . get_respondentselection_url($operator_id) . "\"); parent.closePopup();'"); + + $js = "js/window.js"; + if (browser_ie()) $js = "js/window_ie6.js"; + + xhtml_head(T_("Call"),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 { @@ -202,7 +209,9 @@ if (isset($_POST['submit'])) } //disable recording $newtext = T_("Start REC"); - xhtml_head(T_("Call"),true,array("css/call.css"),array("js/window.js"),"onload='toggleRec(\"$newtext\",\"record.php?start=start\",\"offline\"); openParentObject(\"main-content\",\"" . get_respondentselection_url($operator_id) . "\"); parent.closePopup();'"); + $js = "js/window.js"; + if (browser_ie()) $js = "js/window_ie6.js"; + xhtml_head(T_("Call"),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();'"); } @@ -230,8 +239,10 @@ if (isset($_GET['newstate'])) $db->Execute($sql); } +$js = "js/window.js"; +if (browser_ie()) $js = "js/window_ie6.js"; -xhtml_head(T_("Call"),true,array("css/call.css"),array("js/window.js","include/jquery-ui/js/jquery-1.4.2.min.js")); +xhtml_head(T_("Call"),true,array("css/call.css"),array($js,"include/jquery-ui/js/jquery-1.4.2.min.js")); $state = is_on_call($operator_id); switch($state) diff --git a/css/admin.css b/css/admin.css index 0c68ba43..d8be7d7a 100644 --- a/css/admin.css +++ b/css/admin.css @@ -15,7 +15,7 @@ } #menu { - position : fixed; + position : absolute; width : 20%; height : 100%; top : 0; @@ -27,7 +27,7 @@ /*border-bottom: 1px solid #aaa;*/ } #main { - position : fixed; + position : absolute; top : 0; left : 20%; bottom : auto; diff --git a/css/index.css b/css/index.css index 8cf8e315..6597b1e8 100644 --- a/css/index.css +++ b/css/index.css @@ -20,7 +20,7 @@ a:active { } #respondent { - position : fixed; + position : absolute; width : 20%; height : 30%; top : 0; @@ -30,7 +30,7 @@ a:active { } #header { - position : fixed; + position : absolute; width : 20%; height : 30%; top : 0; @@ -40,7 +40,7 @@ a:active { /*border-bottom: 1px solid #aaa;*/ } #calllist { - position : fixed; + position : absolute; width : 60%; height : 30%; top : 0; @@ -48,7 +48,7 @@ a:active { bottom : auto; } #qstatus { - position : fixed; + position : absolute; width : 10%; height : 30%; top : 0; @@ -58,7 +58,7 @@ a:active { /*border: 1px solid #aaa;*/ } #casefunctions { - position : fixed; + position : absolute; width : 10%; height : 30%; top : 0; @@ -67,7 +67,7 @@ a:active { bottom : auto; } #content { - position : fixed; + position : absolute; top : 30%; left : 0; bottom : auto; diff --git a/functions/functions.xhtml.php b/functions/functions.xhtml.php index b73a93f9..4651887f 100644 --- a/functions/functions.xhtml.php +++ b/functions/functions.xhtml.php @@ -199,6 +199,26 @@ function display_chooser($elements, $selectid, $var, $useblank = true, $pass = f if ($indiv) print ""; } +function xhtml_object($data, $id, $class="embeddedobject") +{ + if (browser_ie()) + print ''; + else + print ''; +} + +/** + * Detect if the user is running on internet explorer + * + * @return bool True if MSIE is detected otherwise false + */ +function browser_ie() +{ + if (isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false)) + return true; + else + return false; +} ?> diff --git a/index.php b/index.php index 5c19c038..dcdb44ad 100644 --- a/index.php +++ b/index.php @@ -92,6 +92,7 @@ if (isset($_GET['endcase'])) } xhtml_head(T_("queXS"), true, array("css/index.css","css/tabber.css","include/jquery-ui/css/smoothness/jquery-ui-1.8.2.custom.css") , array("js/popup.js","js/tabber.js","include/jquery-ui/js/jquery-1.4.2.min.js","include/jquery-ui/js/jquery-ui-1.8.2.custom.min.js")); + ?>