admin.php hard-coded block onf CBHOLD as dial status
minor bug fix in VDAD and CLOSER stats pages(length_in_sec >4 changed to 0) git-svn-id: svn://192.168.202.10@780 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -329,7 +329,7 @@ echo "+--------------------------+------------+----------+--------+\n";
|
||||
echo "| AGENT | CALLS | TIME M | AVRG M |\n";
|
||||
echo "+--------------------------+------------+----------+--------+\n";
|
||||
|
||||
$stmt="select vicidial_closer_log.user,full_name,count(*),sum(length_in_sec),avg(length_in_sec) from vicidial_closer_log,vicidial_users where call_date >= '$query_date_BEGIN' and call_date <= '$query_date_END' and campaign_id='" . mysql_real_escape_string($group) . "' and vicidial_closer_log.user is not null and length_in_sec is not null and length_in_sec > 4 and vicidial_closer_log.user=vicidial_users.user group by vicidial_closer_log.user;";
|
||||
$stmt="select vicidial_closer_log.user,full_name,count(*),sum(length_in_sec),avg(length_in_sec) from vicidial_closer_log,vicidial_users where call_date >= '$query_date_BEGIN' and call_date <= '$query_date_END' and campaign_id='" . mysql_real_escape_string($group) . "' and vicidial_closer_log.user is not null and length_in_sec is not null and length_in_sec > 0 and vicidial_closer_log.user=vicidial_users.user group by vicidial_closer_log.user;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$users_to_print = mysql_num_rows($rslt);
|
||||
|
||||
@@ -332,7 +332,7 @@ echo "+--------------------------+------------+----------+--------+\n";
|
||||
echo "| AGENT | CALLS | TIME M | AVRG M |\n";
|
||||
echo "+--------------------------+------------+----------+--------+\n";
|
||||
|
||||
$stmt="select vicidial_log.user,full_name,count(*),sum(length_in_sec),avg(length_in_sec) from vicidial_log,vicidial_users where call_date >= '$query_date_BEGIN' and call_date <= '$query_date_END' and campaign_id='" . mysql_real_escape_string($group) . "' and vicidial_log.user is not null and length_in_sec is not null and length_in_sec > 4 and vicidial_log.user=vicidial_users.user group by vicidial_log.user;";
|
||||
$stmt="select vicidial_log.user,full_name,count(*),sum(length_in_sec),avg(length_in_sec) from vicidial_log,vicidial_users where call_date >= '$query_date_BEGIN' and call_date <= '$query_date_END' and campaign_id='" . mysql_real_escape_string($group) . "' and vicidial_log.user is not null and length_in_sec is not null and length_in_sec > 0 and vicidial_log.user=vicidial_users.user group by vicidial_log.user;";
|
||||
if ($non_latin > 0) {$rslt=mysql_query("SET NAMES 'UTF8'");}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
|
||||
+10
-5
@@ -9065,12 +9065,14 @@ if ($ADD==31)
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$statuses_to_print = mysql_num_rows($rslt);
|
||||
$statuses_list='';
|
||||
$dial_statuses_list='';
|
||||
|
||||
$o=0;
|
||||
while ($statuses_to_print > $o)
|
||||
{
|
||||
$rowx=mysql_fetch_row($rslt);
|
||||
$statuses_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
||||
if ($rowx[0] != 'CBHOLD') {$dial_statuses_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";}
|
||||
$statname_list["$rowx[0]"] = "$rowx[1]";
|
||||
$LRstatuses_list .= "<option value=\"$rowx[0]-----$rowx[1]\">$rowx[0] - $rowx[1]</option>\n";
|
||||
if (eregi("Y",$rowx[2]))
|
||||
@@ -9087,6 +9089,7 @@ if ($ADD==31)
|
||||
{
|
||||
$rowx=mysql_fetch_row($rslt);
|
||||
$statuses_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
||||
if ($rowx[0] != 'CBHOLD') {$dial_statuses_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";}
|
||||
$statname_list["$rowx[0]"] = "$rowx[1]";
|
||||
$LRstatuses_list .= "<option value=\"$rowx[0]-----$rowx[1]\">$rowx[0] - $rowx[1]</option>\n";
|
||||
if (eregi("Y",$rowx[2]))
|
||||
@@ -9195,7 +9198,7 @@ if ($ADD==31)
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Add A Dial Status: </td><td align=left><select size=1 name=dial_status $DEFlistDISABLE>\n";
|
||||
echo "<option value=\"\"> - NONE - </option>\n";
|
||||
|
||||
echo "$statuses_list";
|
||||
echo "$dial_statuses_list";
|
||||
echo "</select> \n";
|
||||
echo "<input type=submit name=submit value=ADD> $NWB#vicidial_campaigns-dial_status$NWE</td></tr>\n";
|
||||
|
||||
@@ -9784,12 +9787,13 @@ if ($ADD==34)
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$statuses_to_print = mysql_num_rows($rslt);
|
||||
$statuses_list='';
|
||||
|
||||
$dial_statuses_list='';
|
||||
$o=0;
|
||||
while ($statuses_to_print > $o)
|
||||
{
|
||||
$rowx=mysql_fetch_row($rslt);
|
||||
$statuses_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
||||
if ($rowx[0] != 'CBHOLD') {$dial_statuses_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";}
|
||||
$statname_list["$rowx[0]"] = "$rowx[1]";
|
||||
$LRstatuses_list .= "<option value=\"$rowx[0]-----$rowx[1]\">$rowx[0] - $rowx[1]</option>\n";
|
||||
if (eregi("Y",$rowx[2]))
|
||||
@@ -9806,6 +9810,7 @@ if ($ADD==34)
|
||||
{
|
||||
$rowx=mysql_fetch_row($rslt);
|
||||
$statuses_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
||||
if ($rowx[0] != 'CBHOLD') {$dial_statuses_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";}
|
||||
$statname_list["$rowx[0]"] = "$rowx[1]";
|
||||
$LRstatuses_list .= "<option value=\"$rowx[0]-----$rowx[1]\">$rowx[0] - $rowx[1]</option>\n";
|
||||
if (eregi("Y",$rowx[2]))
|
||||
@@ -9909,7 +9914,7 @@ if ($ADD==34)
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Add A Dial Status: </td><td align=left><select size=1 name=dial_status $DEFlistDISABLE>\n";
|
||||
echo "<option value=\"\"> - NONE - </option>\n";
|
||||
|
||||
echo "$statuses_list";
|
||||
echo "$dial_statuses_list";
|
||||
echo "</select> \n";
|
||||
echo "<input type=submit name=submit value=ADD> $NWB#vicidial_campaigns-dial_status$NWE</td></tr>\n";
|
||||
|
||||
@@ -10207,7 +10212,7 @@ if ( ($ADD==34) or ($ADD==31) )
|
||||
echo "<select size=1 name=dial_status$US$q$US$vcl_id id=dial_status$US$q$US$vcl_id>\n";
|
||||
echo "<option value=\"\"> - Select A Status - </option>\n";
|
||||
|
||||
echo "$statuses_list";
|
||||
echo "$dial_statuses_list";
|
||||
echo "</select> <font size=2><B>\n";
|
||||
echo "<a href=\"#\" onclick=\"mod_mix_status('ADD','$vcl_id','$q');return false;\">ADD</a> \n";
|
||||
echo "<a href=\"#\" onclick=\"mod_mix_status('REMOVE','$vcl_id','$q');return false;\">REMOVE</a>\n";
|
||||
@@ -10268,7 +10273,7 @@ if ( ($ADD==34) or ($ADD==31) )
|
||||
echo "$mixlists_list";
|
||||
echo "</select></td>\n";
|
||||
echo "<td>Dial Status: <select size=1 name=status>\n";
|
||||
echo "$statuses_list";
|
||||
echo "$dial_statuses_list";
|
||||
echo "</select></td>\n";
|
||||
echo "<td> <input type=submit name=submit value=SUBMIT></form></td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
Reference in New Issue
Block a user