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 "

Error, try with Firefox

"; +if (isset($_GET['page'])) + $page = $_GET['page']; + +print "
"; +xhtml_object($page,"mainobj"); +print "
"; xhtml_foot(); ?> - diff --git a/admin/operatorlist.php b/admin/operatorlist.php index 7ec3c185..c3e7c4f1 100644 --- a/admin/operatorlist.php +++ b/admin/operatorlist.php @@ -113,9 +113,9 @@ if (isset($_GET['operator_id'])) header("Pragma: public"); // HTTP/1.0 if (isset($_GET['winbat'])) - echo "voip.exe -i -u {$rs['ext']} -p {$rs['extension_password']} -h " . VOIP_SERVER; + echo "voipclient.exe -i -u {$rs['ext']} -p {$rs['extension_password']} -h " . $_SERVER['SERVER_ADDR']; else - echo "./voip -i -u {$rs['ext']} -p {$rs['extension_password']} -h " . VOIP_SERVER; + echo "./voipclient -i -u {$rs['ext']} -p {$rs['extension_password']} -h " . $_SERVER['SERVER_ADDR']; } } } @@ -132,22 +132,23 @@ if ($display) ELSE CONCAT('" . T_("Disable") . "') END - as enabledisable + as enabledisable, + username FROM operator"; $rs = $db->GetAll($sql); xhtml_head(T_("Operator list"),true,array("../css/table.css")); - $columns = array("name","enabledisable"); - $titles = array(T_("Operator"),T_("Enable/Disable")); + $columns = array("name","username","enabledisable"); + $titles = array(T_("Operator"),T_("Username"),T_("Enable/Disable")); if (VOIP_ENABLED) { 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 '

Error, try with Firefox

'; +} + +/** + * 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")); + ?>
@@ -103,61 +104,73 @@ xhtml_head(T_("queXS"), true, array("css/index.css","css/tabber.css","include/jq
-

Error, try with Firefox

+
-

Error, try with Firefox

+
-

Error, try with Firefox

+
-
+

-

Error, try with Firefox

+

-

Error, try with Firefox

+
-
+

-

Error, try with Firefox

+

-

Error, try with Firefox

+

-

Error, try with Firefox

+

-

Error, try with Firefox

+

-

Error, try with Firefox

+
diff --git a/js/tabber.js b/js/tabber.js index 4fea3145..8e229379 100644 --- a/js/tabber.js +++ b/js/tabber.js @@ -30,6 +30,19 @@ SOFTWARE. ==================================================*/ +var tabberOptions = { 'onLoad': function(argsObj) { + if (jQuery.support.boxModel == false) + { + var w = $("#tab-main").width(); + var h = $("#casefunctions").height(); + + $(".tabberdiv").css("width",w); + $(".tabberdiv").css("height",h); + } + } +}; + + function tabberObj(argsObj) { var arg; /* name of an argument to override */ diff --git a/js/window_ie6.js b/js/window_ie6.js new file mode 100644 index 00000000..04b17070 --- /dev/null +++ b/js/window_ie6.js @@ -0,0 +1,37 @@ +function LinkUp(element) +{ + var number = document.getElementById(element).selectedIndex; + location.href = document.getElementById(element).options[number].value; +} + +function openParent(get) +{ + parent.location.href = 'index.php?' + get; +} + + +function openParentNote(get) +{ + parent.location.href = 'index.php?note=' + document.getElementById('note').value + '&' + get; +} + +function openParentObject(oid,get) +{ + var a = parent.document.getElementById(oid); + if (a) + { + a.src = get; + } + +} + +function toggleRec(text,link,classes) +{ + var a = parent.document.getElementById('reclink'); + if (a) + { + a.innerHTML = text; + a.href = "javascript:poptastic('" + link + "');"; + a.className = classes; + } +}