From 91785a50adea98a74f91388c8a52e9fb96a3d2b3 Mon Sep 17 00:00:00 2001 From: mattf Date: Mon, 28 Nov 2016 02:56:54 +0000 Subject: [PATCH] fixes for alternate language issues git-svn-id: svn://192.168.202.10@2634 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/branches/agc_2.13/www/vicidial/admin_soundboard.php | 6 ++++-- agc_2-X/branches/agc_2.13/www/vicidial/help.php | 2 +- agc_2-X/trunk/www/vicidial/admin_soundboard.php | 6 ++++-- agc_2-X/trunk/www/vicidial/help.php | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/agc_2-X/branches/agc_2.13/www/vicidial/admin_soundboard.php b/agc_2-X/branches/agc_2.13/www/vicidial/admin_soundboard.php index 4bff1b7a..0ee7b6cb 100644 --- a/agc_2-X/branches/agc_2.13/www/vicidial/admin_soundboard.php +++ b/agc_2-X/branches/agc_2.13/www/vicidial/admin_soundboard.php @@ -84,7 +84,7 @@ if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];} ############################################# ##### START SYSTEM_SETTINGS LOOKUP ##### -$stmt = "SELECT use_non_latin,auto_dial_limit,user_territories_active,allow_custom_dialplan,callcard_enabled,admin_modify_refresh,nocache_admin,webroot_writable,allow_emails,active_modules,sounds_central_control_active,qc_features_active,contacts_enabled,enable_languages,active_modules,agent_soundboards FROM system_settings;"; +$stmt = "SELECT use_non_latin,auto_dial_limit,user_territories_active,allow_custom_dialplan,callcard_enabled,admin_modify_refresh,nocache_admin,webroot_writable,allow_emails,active_modules,sounds_central_control_active,qc_features_active,contacts_enabled,enable_languages,active_modules,agent_soundboards,language_method FROM system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); if ($DB) {echo "$stmt\n";} $qm_conf_ct = mysqli_num_rows($rslt); @@ -107,6 +107,7 @@ if ($qm_conf_ct > 0) $SSenable_languages = $row[13]; $SSactive_modules = $row[14]; $SSagent_soundboards = $row[15]; + $SSlanguage_method = $row[16]; } ##### END SETTINGS LOOKUP ##### ########################################### @@ -191,11 +192,12 @@ if ($auth < 1) exit; } -$rights_stmt = "SELECT modify_audiostore from vicidial_users where user='$PHP_AUTH_USER';"; +$rights_stmt = "SELECT modify_audiostore,selected_language from vicidial_users where user='$PHP_AUTH_USER';"; if ($DB) {echo "|$stmt|\n";} $rights_rslt=mysql_to_mysqli($rights_stmt, $link); $rights_row=mysqli_fetch_row($rights_rslt); $modify_audiostore = $rights_row[0]; +$VUselected_language = $rights_row[1]; # check their permissions if ( $modify_audiostore < 1 ) diff --git a/agc_2-X/branches/agc_2.13/www/vicidial/help.php b/agc_2-X/branches/agc_2.13/www/vicidial/help.php index 945deae6..b6f45a9e 100644 --- a/agc_2-X/branches/agc_2.13/www/vicidial/help.php +++ b/agc_2-X/branches/agc_2.13/www/vicidial/help.php @@ -6030,7 +6030,7 @@ if ($SSqc_features_active > 0) Call Inv One-off = Total leads currently dialable in list based on the campaign settings that are at least one dial attempt below the call count limit."); ?>
Call Inv Inactive = Total leads currently in list that belong to INCOMPLETE statuses that are NOT currently selected as dialable for the campaign."); ?>
Dial Avg = Total calls made on the list divided by the Start Inv of that list."); ?>
-Pen. % = Percentage of leads in the list that are no longer dialable (Start Inv - Call Inv Total / Start Inv."); ?>
+Pen. pct = Percentage of leads in the list that are no longer dialable, Start Inv - Call Inv Total divided-by Start Inv."); ?>

diff --git a/agc_2-X/trunk/www/vicidial/admin_soundboard.php b/agc_2-X/trunk/www/vicidial/admin_soundboard.php index 4bff1b7a..0ee7b6cb 100644 --- a/agc_2-X/trunk/www/vicidial/admin_soundboard.php +++ b/agc_2-X/trunk/www/vicidial/admin_soundboard.php @@ -84,7 +84,7 @@ if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];} ############################################# ##### START SYSTEM_SETTINGS LOOKUP ##### -$stmt = "SELECT use_non_latin,auto_dial_limit,user_territories_active,allow_custom_dialplan,callcard_enabled,admin_modify_refresh,nocache_admin,webroot_writable,allow_emails,active_modules,sounds_central_control_active,qc_features_active,contacts_enabled,enable_languages,active_modules,agent_soundboards FROM system_settings;"; +$stmt = "SELECT use_non_latin,auto_dial_limit,user_territories_active,allow_custom_dialplan,callcard_enabled,admin_modify_refresh,nocache_admin,webroot_writable,allow_emails,active_modules,sounds_central_control_active,qc_features_active,contacts_enabled,enable_languages,active_modules,agent_soundboards,language_method FROM system_settings;"; $rslt=mysql_to_mysqli($stmt, $link); if ($DB) {echo "$stmt\n";} $qm_conf_ct = mysqli_num_rows($rslt); @@ -107,6 +107,7 @@ if ($qm_conf_ct > 0) $SSenable_languages = $row[13]; $SSactive_modules = $row[14]; $SSagent_soundboards = $row[15]; + $SSlanguage_method = $row[16]; } ##### END SETTINGS LOOKUP ##### ########################################### @@ -191,11 +192,12 @@ if ($auth < 1) exit; } -$rights_stmt = "SELECT modify_audiostore from vicidial_users where user='$PHP_AUTH_USER';"; +$rights_stmt = "SELECT modify_audiostore,selected_language from vicidial_users where user='$PHP_AUTH_USER';"; if ($DB) {echo "|$stmt|\n";} $rights_rslt=mysql_to_mysqli($rights_stmt, $link); $rights_row=mysqli_fetch_row($rights_rslt); $modify_audiostore = $rights_row[0]; +$VUselected_language = $rights_row[1]; # check their permissions if ( $modify_audiostore < 1 ) diff --git a/agc_2-X/trunk/www/vicidial/help.php b/agc_2-X/trunk/www/vicidial/help.php index 945deae6..b6f45a9e 100644 --- a/agc_2-X/trunk/www/vicidial/help.php +++ b/agc_2-X/trunk/www/vicidial/help.php @@ -6030,7 +6030,7 @@ if ($SSqc_features_active > 0) Call Inv One-off = Total leads currently dialable in list based on the campaign settings that are at least one dial attempt below the call count limit."); ?>
Call Inv Inactive = Total leads currently in list that belong to INCOMPLETE statuses that are NOT currently selected as dialable for the campaign."); ?>
Dial Avg = Total calls made on the list divided by the Start Inv of that list."); ?>
-Pen. % = Percentage of leads in the list that are no longer dialable (Start Inv - Call Inv Total / Start Inv."); ?>
+Pen. pct = Percentage of leads in the list that are no longer dialable, Start Inv - Call Inv Total divided-by Start Inv."); ?>