2006-06-16 snapshot
git-svn-id: svn://192.168.202.10@9 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -96,6 +96,7 @@ if (isset($_GET["CBuser"])) {$CBuser=$_GET["CBuser"];}
|
||||
#
|
||||
# 60419-1705 - Added ability to change lead callback record from USERONLY to ANYONE or USERONLY-user
|
||||
# 60421-1459 - check GET/POST vars lines with isset to not trigger PHP NOTICES
|
||||
# 60609-1112 - Added DNC list addition if status changed to DNC
|
||||
#
|
||||
|
||||
$STARTtime = date("U");
|
||||
@@ -200,6 +201,16 @@ $call_length = ($STARTtime - $call_began);
|
||||
echo "<BR>vicidial_callback record inactivated: $lead_id<BR>\n";
|
||||
}
|
||||
|
||||
if ( ($dispo != $status) and ($status == 'DNC') )
|
||||
{
|
||||
### add lead to the internal DNC list
|
||||
$stmt="INSERT INTO vicidial_dnc (phone_number) values('$phone_number');";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
echo "<BR>Lead added to DNC List: $lead_id - $phone_number<BR>\n";
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -309,15 +320,15 @@ else
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Disposition: </td><td align=left><select size=1 name=status>\n";
|
||||
|
||||
$stmt="SELECT * from vicidial_statuses where selectable='Y' order by status";
|
||||
$rsltx=mysql_query($stmt, $link);
|
||||
$statuses_to_print = mysql_num_rows($rsltx);
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$statuses_to_print = mysql_num_rows($rslt);
|
||||
$statuses_list='';
|
||||
|
||||
$o=0;
|
||||
$DS=0;
|
||||
while ($statuses_to_print > $o)
|
||||
{
|
||||
$rowx=mysql_fetch_row($rsltx);
|
||||
$rowx=mysql_fetch_row($rslt);
|
||||
if ($dispo == "$rowx[0]")
|
||||
{$statuses_list .= "<option SELECTED value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n"; $DS++;}
|
||||
else
|
||||
@@ -338,9 +349,9 @@ else
|
||||
### find any vicidial_callback records for this lead
|
||||
$stmt="select * from vicidial_callbacks where lead_id='$lead_id' and status IN('ACTIVE','LIVE') order by callback_id desc LIMIT 1;";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rsltx=mysql_query($stmt, $link);
|
||||
$CB_to_print = mysql_num_rows($rsltx);
|
||||
$rowx=mysql_fetch_row($rsltx);
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$CB_to_print = mysql_num_rows($rslt);
|
||||
$rowx=mysql_fetch_row($rslt);
|
||||
|
||||
if ($CB_to_print>0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user