diff --git a/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.8.txt b/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.8.txt index 8f9d99ca..1031bd72 100644 --- a/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.8.txt +++ b/agc_2-X/trunk/translations/raw_translation_files/TO_BE_TRANSLATED_2.8.txt @@ -266,6 +266,7 @@ VMAIL Dump Exten NI|| This is the dial plan prefix used to send calls directly to a user's voicemail from a live call in the astGUIclient app. This is the No Instructions setting|| Voicemail Instructions|| This setting allows you to define if the voicemail instructions will play after the voicemail greeting when a call rings on the agent extension and times out to voicemail. Default is Y|| +optional, possibly slow|| ########################## CHANGES TO EXISTING PHRASES IN ADMIN TRANSLATION diff --git a/agc_2-X/trunk/www/vicidial/AST_VDADstats.php b/agc_2-X/trunk/www/vicidial/AST_VDADstats.php index 5239ee08..54cab5cc 100644 --- a/agc_2-X/trunk/www/vicidial/AST_VDADstats.php +++ b/agc_2-X/trunk/www/vicidial/AST_VDADstats.php @@ -38,6 +38,7 @@ # 130704-0941 - Fixed issue #675 # 130901-0818 - Changed to mysqli PHP functions # 140108-0730 - Added webserver and hostname to report logging +# 140208-2033 - Added List select option # $startMS = microtime(); @@ -66,6 +67,8 @@ if (isset($_GET["agent_hours"])) {$agent_hours=$_GET["agent_hours"];} elseif (isset($_POST["agent_hours"])) {$agent_hours=$_POST["agent_hours"];} if (isset($_GET["group"])) {$group=$_GET["group"];} elseif (isset($_POST["group"])) {$group=$_POST["group"];} +if (isset($_GET["list_ids"])) {$list_ids=$_GET["list_ids"];} + elseif (isset($_POST["list_ids"])) {$list_ids=$_POST["list_ids"];} if (isset($_GET["query_date"])) {$query_date=$_GET["query_date"];} elseif (isset($_POST["query_date"])) {$query_date=$_POST["query_date"];} if (isset($_GET["end_date"])) {$end_date=$_GET["end_date"];} @@ -345,6 +348,33 @@ else $group_drop_SQL = "where campaign_id IN($group_drop_SQL)"; } +$i=0; +$list_id_string='|'; +$list_id_ct = count($list_ids); +while($i < $list_id_ct) + { + $list_id_string .= "$list_ids[$i]|"; + $list_id_SQL .= "'$list_ids[$i]',"; + $list_idQS .= "&list_ids[]=$list_ids[$i]"; + $VL_INC=",vicidial_list"; + + $i++; + } +if ( (preg_match('/\-\-ALL\-\-/',$list_id_string) ) or ($list_id_ct < 1) or (strlen($list_id_string) < 2) ) + { + $list_id_SQL = ""; + $list_id_drop_SQL = ""; + } +else + { + $list_id_SQL = preg_replace('/,$/i', '',$list_id_SQL); + $list_id_SQLand = "and list_id IN($list_id_SQL)"; + $list_id_SQLandVALJOIN = "and vicidial_agent_log.lead_id=vicidial_list.lead_id and vicidial_list.list_id IN($list_id_SQL)"; + $list_id_SQLandUCLJOIN = "and user_call_log.lead_id=vicidial_list.lead_id and vicidial_list.list_id IN($list_id_SQL)"; + $list_id_SQL = "where list_id IN($list_id_SQL)"; + } + + $stmt="select vsc_id,vsc_name from vicidial_status_categories;"; $rslt=mysql_to_mysqli($stmt, $link); if ($DB) {echo "$stmt\n";} @@ -389,7 +419,7 @@ else ?> - +