Quick fix for rare hopper loading issue

Added outbound drop group exclusion option from inbound summary hourly report

git-svn-id: svn://192.168.202.10@1200 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2009-08-09 07:50:10 +00:00
parent 8ab2246ece
commit f94f061f8a
4 changed files with 29 additions and 15 deletions
@@ -1108,7 +1108,7 @@ foreach(@campaign_id)
$rec_countLISTS++;
}
$sthA->finish();
if (length($camp_lists[$i])<3) {$camp_lists[$i]="''";}
if (length($camp_lists[$i])<3) {$camp_lists[$i]="'999876543210'";}
else {chop($camp_lists[$i]);}
if ($DB) {print " campaign lists count: $rec_countLISTS | $camp_lists[$i]\n";}
@@ -1114,7 +1114,7 @@ foreach(@campaign_id)
$rec_countLISTS++;
}
$sthA->finish();
if (length($camp_lists[$i])<3) {$camp_lists[$i]="''";}
if (length($camp_lists[$i])<3) {$camp_lists[$i]="'999876543210'";}
else {chop($camp_lists[$i]);}
if ($DB) {print " campaign lists count: $rec_countLISTS | $camp_lists[$i]\n";}
+3 -2
View File
@@ -56,6 +56,7 @@
# 90603-1157 - Fixed rare bug in list mix where statuses field do not end with -
# 90608-1201 - Added Drop Lockout Time Campaign setting option
# 90723-0842 - Added no hopper dial option to clear hopper leads
# 90809-0347 - Quick fix for null list_id loading when no active campaign lists
#
# constants
@@ -1164,7 +1165,7 @@ foreach(@campaign_id)
$rec_countLISTS++;
}
$sthA->finish();
if (length($camp_lists[$i])<3) {$camp_lists[$i]="''";}
if (length($camp_lists[$i])<3) {$camp_lists[$i]="'999876543210'";}
else {chop($camp_lists[$i]);}
if ($DB) {print " campaign lists count: $rec_countLISTS | $camp_lists[$i]\n";}
@@ -1337,7 +1338,7 @@ foreach(@campaign_id)
$rec_countLISTS++;
}
$sthA->finish();
$lead_id_lists .= "'0'";
$lead_id_lists .= "'0'";
$order_stmt='';
$NEW_count = 0;
$NEW_level = 0;
@@ -6,6 +6,7 @@
# CHANGES
#
# 90801-0910 - First build
# 90809-0216 - Added Exclude Outbound Drop Group option
#
require("dbconnect.php");
@@ -15,6 +16,8 @@ $PHP_AUTH_USER=$_SERVER['PHP_AUTH_USER'];
$PHP_AUTH_PW=$_SERVER['PHP_AUTH_PW'];
$PHP_SELF=$_SERVER['PHP_SELF'];
if (isset($_GET["exclude_rollover"])) {$exclude_rollover=$_GET["exclude_rollover"];}
elseif (isset($_POST["exclude_rollover"])) {$exclude_rollover=$_POST["exclude_rollover"];}
if (isset($_GET["inbound_rate"])) {$inbound_rate=$_GET["inbound_rate"];}
elseif (isset($_POST["inbound_rate"])) {$inbound_rate=$_POST["inbound_rate"];}
if (isset($_GET["outbound_rate"])) {$outbound_rate=$_GET["outbound_rate"];}
@@ -43,6 +46,7 @@ $PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW);
$MT[0]='0';
if (strlen($shift)<2) {$shift='ALL';}
if (strlen($exclude_rollover)<2) {$exclude_rollover='NO';}
#############################################
##### START SYSTEM_SETTINGS LOOKUP #####
@@ -94,14 +98,17 @@ if (!isset($group)) {$group = '';}
if (!isset($query_date)) {$query_date = $NOW_DATE;}
if (!isset($end_date)) {$end_date = $NOW_DATE;}
$stmt="select group_id,group_name from vicidial_inbound_groups;";
$exclude_rolloverSQL='';
if (eregi("YES",$exclude_rollover))
{$exclude_rolloverSQL = " where group_id NOT IN(SELECT drop_inbound_group from vicidial_campaigns)";}
$stmt="select group_id,group_name from vicidial_inbound_groups $exclude_rolloverSQL;";
$rslt=mysql_query($stmt, $link);
if ($DB) {echo "$stmt\n";}
$groups_to_print = mysql_num_rows($rslt);
$i=0;
$LISTgroups[$i]='---NONE---';
$i++;
$groups_to_print++;
#$LISTgroups[$i]='---NONE---';
#$i++;
#$groups_to_print++;
while ($i < $groups_to_print)
{
$row=mysql_fetch_row($rslt);
@@ -202,9 +209,9 @@ if ($bareformat < 1)
echo "Date Range:<BR>\n";
echo "<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">\n";
echo " to <INPUT TYPE=TEXT NAME=end_date SIZE=10 MAXLENGTH=10 VALUE=\"$end_date\">\n";
echo "</TD><TD VALIGN=TOP>\n";
echo "Inbound Groups: \n";
echo "</TD><TD VALIGN=TOP> &nbsp; \n";
echo "</TD><TD ROWSPAN=2 VALIGN=TOP>\n";
echo "Inbound Groups: <BR>\n";
echo "<SELECT SIZE=5 NAME=group[] multiple>\n";
$o=0;
while ($groups_to_print > $o)
@@ -219,14 +226,21 @@ if ($bareformat < 1)
echo "</TD><TD ROWSPAN=2 VALIGN=TOP>\n";
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ";
echo "<a href=\"./admin.php?ADD=3111&group_id=$group[0]\">MODIFY</a> | ";
echo "<a href=\"./admin.php?ADD=999999\">REPORTS</a> | ";
echo "<a href=\"./AST_IVRstats.php?query_date=$query_date&end_date=$end_date&shift=$shift$groupQS\">IVR REPORT</a> \n";
echo "</FONT>\n";
echo "<a href=\"./admin.php?ADD=999999\">REPORTS</a>";
echo "</FONT><BR><BR>\n";
echo " &nbsp; Exclude Outbound Drop Groups: <BR>";
echo " &nbsp; <SELECT SIZE=1 NAME=exclude_rollover>\n";
echo "<option selected value=\"$exclude_rollover\">$exclude_rollover</option>\n";
echo "<option value=\"YES\">YES</option>\n";
echo "<option value=\"NO\">NO</option>\n";
echo "</SELECT>\n";
echo "<BR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ";
echo "<INPUT TYPE=submit NAME=SUBMIT VALUE=SUBMIT>\n";
echo "</TD></TR>\n";
echo "<TR><TD>\n";
echo "Call Time:\n";
echo "Call Time:<BR>\n";
echo "<SELECT SIZE=1 NAME=shift>\n";
$o=0;
while ($times_to_print > $o)
@@ -237,7 +251,6 @@ if ($bareformat < 1)
}
echo "</SELECT>\n";
echo "</TD><TD>\n";
echo " &nbsp; <INPUT TYPE=submit NAME=SUBMIT VALUE=SUBMIT>\n";
echo "</TD></TR></TABLE>\n";
echo "</FORM>\n\n";