small bug fixes in real-time report and admin pages

git-svn-id: svn://192.168.202.10@1078 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2009-03-19 23:01:21 +00:00
parent aaf2c9e36e
commit 20414f6d75
7 changed files with 70 additions and 28 deletions
@@ -959,6 +959,7 @@ if ($campaign_allow_inbound > 0)
$rslt=mysql_query($stmt, $link);
$ccamps_to_print = mysql_num_rows($rslt);
$c=0;
$closer_campaignsSQL='';
while ($ccamps_to_print > $c)
{
$row=mysql_fetch_row($rslt);
@@ -2850,7 +2850,7 @@ if ($SSqc_features_active > 0)
<BR>
<A NAME="vicidial_users-export_reports">
<BR>
<B>Export Reports -</B> This setting if set to 1 will allow a manager to access the export call reports on the REPORTS screen. Default is 0. For the Export Calls Report, the following field order is used for exports: <BR>call_date,phone_number,status,user,full_name,campaign_id/in-group,vendor_lead_code,source_id,list_id,gmt_offset_now,phone_code,phone_number,title,first_name,middle_initial,last_name,address1,address2,address3,city,state,province,postal_code,country_code,gender,date_of_birth,alt_phone,email,security_phrase,comments,length_in_sec,user_group,alt_dial/queue_seconds
<B>Export Reports -</B> This setting if set to 1 will allow a manager to access the export call reports on the REPORTS screen. Default is 0. For the Export Calls Report, the following field order is used for exports: <BR>call_date, phone_number, status, user, full_name, campaign_id/in-group, vendor_lead_code, source_id, list_id, gmt_offset_now, phone_code, phone_number, title, first_name, middle_initial, last_name, address1, address2, address3, city, state, province, postal_code, country_code, gender, date_of_birth, alt_phone, email, security_phrase, comments, length_in_sec, user_group, alt_dial/queue_seconds
@@ -14842,6 +14842,7 @@ if ( ($ADD==34) or ($ADD==31) )
}
}
echo "</TD></TR></TABLE></center>\n";
}
@@ -20208,6 +20209,7 @@ if (isset($camp_lists))
$Dsql .= "'$Dstatuses[$o]',";
}
$Dsql = preg_replace("/,$/","",$Dsql);
if (strlen($Dsql) < 2) {$Dsql = "''";}
$stmt="SELECT count(*) FROM vicidial_list where called_since_last_reset='N' and status IN($Dsql) and list_id IN($camp_lists) and ($all_gmtSQL) $fSQL";
#$DB=1;
@@ -911,13 +911,6 @@ if (strlen($reports_hh) > 1) {
<?}
### Do nothing if admin has no permissions
if($LOGast_admin_access < 1)
{
$ADD='99999999999999999999';
echo "</TABLE></center>\n";
echo "You are not authorized to view this page. Please go back.\n";
}
if (strlen($reports_hh) > 1) {
?>