From b9e0c22091d0db0fc744fce148a2afe870f6eb2c Mon Sep 17 00:00:00 2001 From: mattf Date: Thu, 7 Jan 2010 12:29:04 +0000 Subject: [PATCH] Added variable sizing on the vicidial.php screen git-svn-id: svn://192.168.202.10@1293 3d104415-ff17-0410-8863-d5cf3c621b8a --- agi/agi-VDAD_ALL_inbound.agi | 1 + docs/AGENT_API.txt | 2 +- extras/test_VICIDIAL_lead_file.txt | 2 +- www/agc/vdc_db_query.php | 49 +++++- www/agc/vicidial.php | 273 +++++++++++++++++++---------- www/vicidial/admin.php | 10 +- 6 files changed, 231 insertions(+), 106 deletions(-) diff --git a/agi/agi-VDAD_ALL_inbound.agi b/agi/agi-VDAD_ALL_inbound.agi index 8d82c6f1..f942a6e3 100644 --- a/agi/agi-VDAD_ALL_inbound.agi +++ b/agi/agi-VDAD_ALL_inbound.agi @@ -363,6 +363,7 @@ if ($call_handle_method =~ /^CLOSER/) $agent_only = $EXT_vars[7]; # optional AGENTDIRECT user to queue call for } $CIDlead_id = $parked_by; + $fronter_call_seconds = $EXT_vars[8]; # not currently used $PADlead_id = sprintf("%09s", $parked_by); while (length($PADlead_id) > 9) {chop($PADlead_id);} # JmmddhhmmssLLLLLLLLL diff --git a/docs/AGENT_API.txt b/docs/AGENT_API.txt index 96988779..03e26a29 100644 --- a/docs/AGENT_API.txt +++ b/docs/AGENT_API.txt @@ -280,7 +280,7 @@ VALUES: agent_user - REQUIRED, alphanumeric string for agent user value - - REQUIRED, one of these choices: 'NONE','WEBFORM','WEBFORM2','D1_DIAL','D2_DIAL','MESSAGE_ONLY','BALANCE_CHECK' + REQUIRED, one of these choices: 'NONE','WEBFORM','WEBFORM2','D1_DIAL','D2_DIAL','D3_DIAL','D4_DIAL','D5_DIAL','MESSAGE_ONLY' notes - Optional, the message to be displayed with the timer action rank - diff --git a/extras/test_VICIDIAL_lead_file.txt b/extras/test_VICIDIAL_lead_file.txt index 04ecc30f..ab1fcd4d 100644 --- a/extras/test_VICIDIAL_lead_file.txt +++ b/extras/test_VICIDIAL_lead_file.txt @@ -1,4 +1,4 @@ -100001|10001|107|1|7275551213|MR|I|Q|SMITH01|249 MUNDON ROAD|||MALDON|FL||33709|USA|M|1970-01-01|7275551212|test@test.com|nothing|COMMENTS|||| +100001|10001|107|1|7275551213|MR|I|Q|SMITH01|249 MUNDON ROAD|||MALDON|FL||33709|USA|M|1970-01-01|7275551212|test@test.com|nothing|COMMENTS|1|Southeast|| 100002|10002|107|1|7275551213|MR|I|Q|SMITH02|249 MUNDON ROAD|||MALDON|FL||33709|USA|M|1970-01-01|7275551212|test@test.com|nothing|COMMENTS||||7275551212_1_work!7275551213_61_sister house!7275551214_44_neighbor 100003|10003|107|1|7275551213|MR|I|Q|SMITH03|249 MUNDON ROAD|||MALDON|FL||33709|USA|M|1970-01-01|7275551212|test@test.com|nothing|COMMENTS||||7275551212_1_work 100004|10004|107|1|7275551213|MR|I|Q|SMITH04|249 MUNDON ROAD|||MALDON|FL||33709|USA|M|1970-01-01|7275551212|test@test.com|nothing|COMMENTS||||7275551212_1_work!7275551213_61_sister house diff --git a/www/agc/vdc_db_query.php b/www/agc/vdc_db_query.php index 12ae4fa4..429126b2 100644 --- a/www/agc/vdc_db_query.php +++ b/www/agc/vdc_db_query.php @@ -4269,7 +4269,7 @@ if ($ACTION == 'VDADcheckINCOMING') $VDCL_start_call_url = preg_replace('/^VAR/','',$VDCL_start_call_url); $VDCL_start_call_url = eregi_replace('--A--lead_id--B--',"$lead_id",$VDCL_start_call_url); $VDCL_start_call_url = eregi_replace('--A--vendor_id--B--',"$vendor_id",$VDCL_start_call_url); - $VDCL_start_call_url = eregi_replace('--A--vendor_lead_code--B--',"$vendor_lead_code",$VDCL_start_call_url); + $VDCL_start_call_url = eregi_replace('--A--vendor_lead_code--B--',"$vendor_id",$VDCL_start_call_url); $VDCL_start_call_url = eregi_replace('--A--list_id--B--',"$list_id",$VDCL_start_call_url); $VDCL_start_call_url = eregi_replace('--A--gmt_offset_now--B--',"$gmt_offset_now",$VDCL_start_call_url); $VDCL_start_call_url = eregi_replace('--A--phone_code--B--',"$phone_code",$VDCL_start_call_url); @@ -4331,15 +4331,42 @@ if ($ACTION == 'VDADcheckINCOMING') if ($DB > 0) {echo "$VDCL_start_call_url
\n";} $SCUfile = file("$VDCL_start_call_url"); if ($DB > 0) {echo "$SCUfile[0]
\n";} - if ( (ereg('mode=callxfer',$dispo_call_url)) and (ereg('contactwsid',$dispo_call_url)) ) + + ##### BEGIN special filtering and response for Vtiger account balance function ##### + $stmt = "SELECT enable_vtiger_integration FROM system_settings;"; + $rslt=mysql_query($stmt, $link); + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);} + $ss_conf_ct = mysql_num_rows($rslt); + if ($ss_conf_ct > 0) + { + $row=mysql_fetch_row($rslt); + $enable_vtiger_integration = $row[0]; + } + if ( ($enable_vtiger_integration > 0) and (ereg('callxfer',$VDCL_start_call_url)) and (ereg('contactwsid',$VDCL_start_call_url)) ) { $SCUoutput=''; foreach ($SCUfile as $SCUline) {$SCUoutput .= "$SCUline";} - $fp = fopen ("./call_url_log.txt", "a"); - fwrite ($fp, "$dispo_call_url\n$SCUoutput\n"); - fclose($fp); + # {"result":true,"durationLimit":3071} + if (strlen($SCUoutput) > 4) + { + $SCUresponse = explode('durationLimit',$SCUoutput); + $durationLimit = preg_replace('/\D/','',$SCUresponse[1]); + $durationLimitSEC = ( ( ($durationLimit + 0) - 3) * 60); # minutes - 3 for 3-minute-warning + if ($durationLimitSEC < 5) {$durationLimitSEC = 5;} + + $stmt="UPDATE vicidial_live_agents set external_timer_action='D1_DIAL',external_timer_action_message='3 minute warning for customer',external_timer_action_seconds='$durationLimitSEC' where user='$user';"; + if ($DB) {echo "$stmt\n";} + $rslt=mysql_query($stmt, $link); + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);} + $vla_update_timer = mysql_affected_rows($link); + + $fp = fopen ("./call_url_log.txt", "a"); + fwrite ($fp, "$VDCL_start_call_url\n$SCUoutput\n$durationLimit|$durationLimitSEC|$vla_update_timer\n"); + fclose($fp); + } } + ##### END special filtering and response for Vtiger account balance function ##### } } else @@ -5586,7 +5613,17 @@ if ($ACTION == 'updateDISPO') if ($DB > 0) {echo "$dispo_call_url
\n";} $SCUfile = file("$dispo_call_url"); if ($DB > 0) {echo "$SCUfile[0]
\n";} - if ( (ereg('mode=callend',$dispo_call_url)) and (ereg('contactwsid',$dispo_call_url)) ) + + $stmt = "SELECT enable_vtiger_integration FROM system_settings;"; + $rslt=mysql_query($stmt, $link); + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);} + $ss_conf_ct = mysql_num_rows($rslt); + if ($ss_conf_ct > 0) + { + $row=mysql_fetch_row($rslt); + $enable_vtiger_integration = $row[0]; + } + if ( ($enable_vtiger_integration > 0) and (ereg('mode=callend',$dispo_call_url)) and (ereg('contactwsid',$dispo_call_url)) ) { $SCUoutput=''; foreach ($SCUfile as $SCUline) diff --git a/www/agc/vicidial.php b/www/agc/vicidial.php index 249e5c44..7df5e5ba 100644 --- a/www/agc/vicidial.php +++ b/www/agc/vicidial.php @@ -268,10 +268,11 @@ # 91219-0657 - Set pause code automatically on ReQueue and INBOUND_MAN Dial-Next-Number # 91228-1339 - Added API "fields update" functions and "timer action" functions # 100103-1250 - Added 3 more conf-presets, list ID override presets and call start/dispo URLs +# 100107-0108 - Added dynamic screen size based on login screen browser dimensions # -$version = '2.2.0-246'; -$build = '100103-1250'; +$version = '2.2.0-247'; +$build = '100107-0108'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=64; $one_mysql_log=0; @@ -280,6 +281,10 @@ require("dbconnect.php"); if (isset($_GET["DB"])) {$DB=$_GET["DB"];} elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];} +if (isset($_GET["JS_browser_width"])) {$JS_browser_width=$_GET["JS_browser_width"];} + elseif (isset($_POST["JS_browser_width"])) {$JS_browser_width=$_POST["JS_browser_width"];} +if (isset($_GET["JS_browser_height"])) {$JS_browser_height=$_GET["JS_browser_height"];} + elseif (isset($_POST["JS_browser_height"])) {$JS_browser_height=$_POST["JS_browser_height"];} if (isset($_GET["phone_login"])) {$phone_login=$_GET["phone_login"];} elseif (isset($_POST["phone_login"])) {$phone_login=$_POST["phone_login"];} if (isset($_GET["phone_pass"])) {$phone_pass=$_GET["phone_pass"];} @@ -405,6 +410,7 @@ $disable_blended_checkbox='0'; # set to 1 to disable the BLENDED checkbox from t $TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen +$stretch_dimensions = '1'; # sets the vicidial screen to the size of the browser window $BROWSER_HEIGHT = 500; # set to the minimum browser height, default=500 $BROWSER_WIDTH = 770; # set to the minimum browser width, default=770 $MAIN_COLOR = '#CCCCCC'; # old default is E0C2D6 @@ -417,38 +423,6 @@ $SIDEBAR_COLOR = '#F6F6F6'; # $agentonly_callbacks = '1'; # set to 1 to allow agent to choose agent-only scheduled callbacks #$agentcall_manual = '1'; # set to 1 to allow agent to make manual calls during autodial session -### SCREEN WIDTH AND HEIGHT CALCULATIONS ### -### DO NOT EDIT! ### -$MASTERwidth=($BROWSER_WIDTH - 340); -$MASTERheight=($BROWSER_HEIGHT - 200); -if ($MASTERwidth < 430) {$MASTERwidth = '430';} -if ($MASTERheight < 300) {$MASTERheight = '300';} - -$CAwidth = ($MASTERwidth + 340); # 770 - cover all (none-in-session, customer hunngup, etc...) -$SBwidth = ($MASTERwidth + 331); # 761 - SideBar starting point -$MNwidth = ($MASTERwidth + 330); # 760 - main frame -$XFwidth = ($MASTERwidth + 320); # 750 - transfer/conference -$HCwidth = ($MASTERwidth + 310); # 740 - hotkeys and callbacks -$CQwidth = ($MASTERwidth + 300); # 730 - calls in queue listings -$AMwidth = ($MASTERwidth + 270); # 700 - preset-dial links -$SCwidth = ($MASTERwidth + 230); # 670 - live call seconds counter, sidebar link -$MUwidth = ($MASTERwidth + 180); # 610 - agent mute -$SSwidth = ($MASTERwidth + 176); # 606 - scroll script -$SDwidth = ($MASTERwidth + 170); # 600 - scroll script, customer data and calls-in-session -$HKwidth = ($MASTERwidth + 20); # 450 - Hotkeys button -$HSwidth = ($MASTERwidth + 1); # 431 - Header spacer -$CLwidth = ($MASTERwidth - 160); # 270 - Calls in queue link - -$CQheight = ($MASTERheight + 140); # 440 - Calls in queue section -$SLheight = ($MASTERheight + 122); # 422 - SideBar link, Calls in queue link -$HKheight = ($MASTERheight + 105); # 405 - HotKey active Button -$AMheight = ($MASTERheight + 100); # 400 - Agent mute and preset dial links -$MBheight = ($MASTERheight + 65); # 365 - Manual Dial Buttons -$CBheight = ($MASTERheight + 50); # 350 - Agent Callback, pause code, volume control Buttons and agent status -$SSheight = ($MASTERheight + 31); # 331 - script content -$HTheight = ($MASTERheight + 10); # 310 - transfer frame, callback comments and hotkey -$BPheight = ($MASTERheight - 250); # 50 - bottom buffer, Agent Xfer Span - $US='_'; $CL=':'; @@ -467,12 +441,14 @@ else {$server_port = "$CL$server_port";} $agcPAGE = "$HTTPprotocol$server_name$server_port$script_name"; $agcDIR = eregi_replace('vicidial.php','',$agcPAGE); + header ("Content-type: text/html; charset=utf-8"); header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header ("Pragma: no-cache"); // HTTP/1.0 echo "\n"; echo "\n"; echo "\n"; +echo "\n"; if ($campaign_login_list > 0) { @@ -576,73 +552,119 @@ else if ($LogiNAJAX > 0) -{ -?> + { + ?> - + function browser_dimensions() + { + getInsideBrowse(); -= 5) + // JScript gives us Conditional compilation, we can cope with old IE versions. + // and security blocked creation of the objects. + try { + xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); + } catch (e) { + try { + xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); + } catch (E) { + xmlhttp = false; + } + } + @end @*/ + if (!xmlhttp && typeof XMLHttpRequest!='undefined') + { + xmlhttp = new XMLHttpRequest(); + } + if (xmlhttp) + { + logincampaign_query = "&user=" + document.vicidial_form.VD_login.value + "&pass=" + document.vicidial_form.VD_pass.value + "&ACTION=LogiNCamPaigns&format=html"; + xmlhttp.open('POST', 'vdc_db_query.php'); + xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); + xmlhttp.send(logincampaign_query); + xmlhttp.onreadystatechange = function() + { + if (xmlhttp.readyState == 4 && xmlhttp.status == 200) + { + Nactiveext = null; + Nactiveext = xmlhttp.responseText; + // alert(logincampaign_query); + // alert(xmlhttp.responseText); + document.getElementById("LogiNCamPaigns").innerHTML = Nactiveext; + document.getElementById("LogiNReseT").innerHTML = ""; + document.getElementById("VD_campaign").focus(); + } + } + delete xmlhttp; + } + } + // --> + + + + + + + Agent web client: Re-Login\n"; echo "\n"; -echo "\n"; +echo "\n"; echo " Timeclock
\n"; echo "\n"; echo "\n"; echo "
\n"; echo "
\n"; echo "\n"; +echo "\n"; +echo "\n"; echo "


"; echo ""; echo ""; @@ -674,13 +696,15 @@ if ($user_login_first == 1) { echo "Agent web client: Campaign Login\n"; echo "\n"; - echo "\n"; + echo "\n"; echo " Timeclock
\n"; echo "
Re-Login
\n"; echo "\n"; echo "
\n"; echo "\n"; echo "\n"; + echo "\n"; + echo "\n"; #echo "\n"; #echo "\n"; echo "

User Login

"; @@ -718,13 +742,15 @@ if ($user_login_first == 1) echo "Agent web client: Login\n"; echo "\n"; - echo "\n"; + echo "\n"; echo " Timeclock
\n"; echo "\n"; echo "\n"; echo "
\n"; echo "\n"; echo "\n"; + echo "\n"; + echo "\n"; echo "


"; echo ""; echo ""; @@ -757,13 +783,15 @@ if ( (strlen($phone_login)<2) or (strlen($phone_pass)<2) ) { echo "Agent web client: Phone Login\n"; echo "\n"; -echo "\n"; +echo "\n"; echo " Timeclock
\n"; echo "
Login
\n"; echo "\n"; echo "
\n"; echo "\n"; echo "\n"; +echo "\n"; +echo "\n"; echo "


"; echo ""; echo ""; @@ -996,7 +1024,7 @@ $VDloginDISPLAY=0; { echo "Agent web client: Campaign Login\n"; echo "\n"; - echo "\n"; + echo "\n"; echo " Timeclock
\n"; echo "
Phone Login
\n"; echo "\n"; @@ -1004,6 +1032,8 @@ $VDloginDISPLAY=0; echo "Sorry, you are not allowed to login to this campaign: $VD_campaign\n"; echo "\n"; echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "Login: \n
"; @@ -1435,13 +1465,15 @@ $VDloginDISPLAY=0; { echo "Agent web client: Campaign Login\n"; echo "\n"; - echo "\n"; + echo "\n"; echo " Timeclock
\n"; echo "
\n"; echo "\n"; echo "
\n"; echo "\n"; echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "

$VDdisplayMESSAGE

"; @@ -1526,13 +1558,15 @@ if (!$authphone) { echo "Agent web client: Phone Login Error\n"; echo "\n"; - echo "\n"; + echo "\n"; echo " Timeclock
\n"; echo "\n"; echo "\n"; echo "
\n"; echo "\n"; echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -2021,7 +2055,7 @@ else { echo "Agent web client: Campaign Login\n"; echo "\n"; - echo "\n"; + echo "\n"; echo " Timeclock
\n"; echo "\n"; echo "\n"; @@ -2029,6 +2063,8 @@ else echo "Sorry, there are no leads in the hopper for this campaign\n"; echo "\n"; echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "Login: \n
"; @@ -2045,7 +2081,7 @@ else { echo "Agent web client: Campaign Login\n"; echo "\n"; - echo "\n"; + echo "\n"; echo " Timeclock
\n"; echo "
\n"; echo "\n"; @@ -2053,6 +2089,8 @@ else echo "Sorry, there are no available sessions\n"; echo "\n"; echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "Login: \n
"; @@ -2158,6 +2196,55 @@ else } } + +### SCREEN WIDTH AND HEIGHT CALCULATIONS ### +### DO NOT EDIT! ### +if ($stretch_dimensions > 0) + { + if ($agent_status_view < 1) + { + if ($JS_browser_width >= 510) + {$BROWSER_WIDTH = ($JS_browser_width - 80);} + } + else + { + if ($JS_browser_width >= 730) + {$BROWSER_WIDTH = ($JS_browser_width - 300);} + } + if ($JS_browser_height >= 340) + {$BROWSER_HEIGHT = ($JS_browser_height - 40);} + } +$MASTERwidth=($BROWSER_WIDTH - 340); +$MASTERheight=($BROWSER_HEIGHT - 200); +if ($MASTERwidth < 430) {$MASTERwidth = '430';} +if ($MASTERheight < 300) {$MASTERheight = '300';} + +$CAwidth = ($MASTERwidth + 340); # 770 - cover all (none-in-session, customer hunngup, etc...) +$SBwidth = ($MASTERwidth + 331); # 761 - SideBar starting point +$MNwidth = ($MASTERwidth + 330); # 760 - main frame +$XFwidth = ($MASTERwidth + 320); # 750 - transfer/conference +$HCwidth = ($MASTERwidth + 310); # 740 - hotkeys and callbacks +$CQwidth = ($MASTERwidth + 300); # 730 - calls in queue listings +$AMwidth = ($MASTERwidth + 270); # 700 - preset-dial links +$SCwidth = ($MASTERwidth + 230); # 670 - live call seconds counter, sidebar link +$MUwidth = ($MASTERwidth + 180); # 610 - agent mute +$SSwidth = ($MASTERwidth + 176); # 606 - scroll script +$SDwidth = ($MASTERwidth + 170); # 600 - scroll script, customer data and calls-in-session +$HKwidth = ($MASTERwidth + 20); # 450 - Hotkeys button +$HSwidth = ($MASTERwidth + 1); # 431 - Header spacer +$CLwidth = ($MASTERwidth - 160); # 270 - Calls in queue link + +$CQheight = ($MASTERheight + 140); # 440 - Calls in queue section +$SLheight = ($MASTERheight + 122); # 422 - SideBar link, Calls in queue link +$HKheight = ($MASTERheight + 105); # 405 - HotKey active Button +$AMheight = ($MASTERheight + 100); # 400 - Agent mute and preset dial links +$MBheight = ($MASTERheight + 65); # 365 - Manual Dial Buttons +$CBheight = ($MASTERheight + 50); # 350 - Agent Callback, pause code, volume control Buttons and agent status +$SSheight = ($MASTERheight + 31); # 331 - script content +$HTheight = ($MASTERheight + 10); # 310 - transfer frame, callback comments and hotkey +$BPheight = ($MASTERheight - 250); # 50 - bottom buffer, Agent Xfer Span + + ################################################################ ### BEGIN - build the callback calendar (12 months) ### ################################################################ @@ -2999,7 +3086,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var agentdirect = tasknum_string; } var XfeRSelecT = document.getElementById("XfeRGrouP"); - tasknum = Ctasknum + "*" + XfeRSelecT.value + '*CXFER*' + document.vicidial_form.lead_id.value + '**' + dialed_number + '*' + user + '*' + agentdirect + '*'; + tasknum = Ctasknum + "*" + XfeRSelecT.value + '*CXFER*' + document.vicidial_form.lead_id.value + '**' + dialed_number + '*' + user + '*' + agentdirect + '*' + VD_live_call_secondS + '*'; CustomerData_update(); } @@ -3012,7 +3099,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var closerxfercamptail = '_L'; if (closerxfercamptail.length < 3) {closerxfercamptail = 'IVR';} - tasknum = Ctasknum + '*' + document.vicidial_form.phone_number.value + '*' + document.vicidial_form.lead_id.value + '*' + campaign + '*' + closerxfercamptail + '*' + user + '*'; + tasknum = Ctasknum + '*' + document.vicidial_form.phone_number.value + '*' + document.vicidial_form.lead_id.value + '*' + campaign + '*' + closerxfercamptail + '*' + user + '**' + VD_live_call_secondS + '*'; CustomerData_update(); @@ -3766,7 +3853,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var closerxfercamptail = '_L'; if (closerxfercamptail.length < 3) {closerxfercamptail = 'IVR';} - blindxferdialstring = Ctasknum + '*' + document.vicidial_form.phone_number.value + '*' + document.vicidial_form.lead_id.value + '*' + campaign + '*' + closerxfercamptail + '*' + user + '*'; + blindxferdialstring = Ctasknum + '*' + document.vicidial_form.phone_number.value + '*' + document.vicidial_form.lead_id.value + '*' + campaign + '*' + closerxfercamptail + '*' + user + '**' + VD_live_call_secondS + '*'; } } else @@ -9617,7 +9704,7 @@ else } if ( (VtigeRLogiNScripT == 'Y') && (VtigeREnableD > 0) ) { - document.getElementById("ScriptContents").innerHTML = " "; + document.getElementById("ScriptContents").innerHTML = " "; } if ( (VtigeRLogiNScripT == 'NEW_WINDOW') && (VtigeREnableD > 0) ) { diff --git a/www/vicidial/admin.php b/www/vicidial/admin.php index 0bcd62d1..08a33476 100644 --- a/www/vicidial/admin.php +++ b/www/vicidial/admin.php @@ -2865,7 +2865,7 @@ if ( ($ADD==211111) or ($ADD==311111) or ($ADD==411111) or ($ADD==511111) or ($A $qc_groups_value=''; $qc_groups_list=' 1) ) { @@ -2934,7 +2934,7 @@ if ( ($ADD==211111) or ($ADD==311111) or ($ADD==411111) or ($ADD==511111) or ($A $group_name_value = $rowx[1]; $qc_groups_list .= " 1) ) { @@ -20422,7 +20422,7 @@ if ($ADD==311111) $shift_name_value = $rowx[1]; echo "