diff --git a/UPGRADE b/UPGRADE index d8718793..e30cb168 100644 --- a/UPGRADE +++ b/UPGRADE @@ -619,6 +619,14 @@ OTHER CHANGES: 137. Added Export Leads Report similar to Export Calls Report, but a lead is only exported once and with the current status. +138. Added Agent Screen Labels sub-section of the Admin functions. Allows for + each campaign to use a different set of labels for the fields on the + default agent screen. + +139. Added ability to define the agent screen status fields shown to the agent: + Call ID, Lead ID and List ID + + diff --git a/extras/MySQL_AST_CREATE_tables.sql b/extras/MySQL_AST_CREATE_tables.sql index b8b3ff48..1475b6aa 100644 --- a/extras/MySQL_AST_CREATE_tables.sql +++ b/extras/MySQL_AST_CREATE_tables.sql @@ -813,7 +813,9 @@ survey_menu_id VARCHAR(50) default '', callback_days_limit SMALLINT(3) default '0', dl_diff_target_method ENUM('ADAPT_CALC_ONLY','CALLS_PLACED') default 'ADAPT_CALC_ONLY', disable_dispo_screen ENUM('DISPO_ENABLED','DISPO_DISABLED') default 'DISPO_ENABLED', -disable_dispo_status VARCHAR(6) default '' +disable_dispo_status VARCHAR(6) default '', +screen_labels VARCHAR(20) default '--SYSTEM-SETTINGS--', +status_display_fields VARCHAR(30) default 'CALLID' ); CREATE TABLE vicidial_lists ( @@ -1404,7 +1406,8 @@ admin_modify_refresh SMALLINT(5) UNSIGNED default '0', nocache_admin ENUM('0','1') default '1', generate_cross_server_exten ENUM('0','1') default '0', queuemetrics_addmember_enabled ENUM('0','1') default '0', -queuemetrics_dispo_pause VARCHAR(6) default '' +queuemetrics_dispo_pause VARCHAR(6) default '', +label_hide_field_logs VARCHAR(6) default 'Y' ); CREATE TABLE vicidial_campaigns_list_mix ( @@ -2348,6 +2351,32 @@ index (campaign_id), unique index campserver (event_date, lead_id, menu_id) ); +CREATE TABLE vicidial_screen_labels ( +label_id VARCHAR(20) PRIMARY KEY NOT NULL, +label_name VARCHAR(100), +active ENUM('Y','N') default 'N', +label_hide_field_logs VARCHAR(6) default 'Y', +label_title VARCHAR(40) default '', +label_first_name VARCHAR(40) default '', +label_middle_initial VARCHAR(40) default '', +label_last_name VARCHAR(40) default '', +label_address1 VARCHAR(40) default '', +label_address2 VARCHAR(40) default '', +label_address3 VARCHAR(40) default '', +label_city VARCHAR(40) default '', +label_state VARCHAR(40) default '', +label_province VARCHAR(40) default '', +label_postal_code VARCHAR(40) default '', +label_vendor_lead_code VARCHAR(40) default '', +label_gender VARCHAR(40) default '', +label_phone_number VARCHAR(40) default '', +label_phone_code VARCHAR(40) default '', +label_alt_phone VARCHAR(40) default '', +label_security_phrase VARCHAR(40) default '', +label_email VARCHAR(40) default '', +label_comments VARCHAR(40) default '' +); + ALTER TABLE vicidial_campaign_server_stats ENGINE=MEMORY; ALTER TABLE live_channels ENGINE=MEMORY; @@ -2501,7 +2530,7 @@ ALTER TABLE vicidial_closer_log_archive MODIFY closecallid INT(9) UNSIGNED NOT N CREATE TABLE vicidial_outbound_ivr_log_archive LIKE vicidial_outbound_ivr_log; -UPDATE system_settings SET db_schema_version='1281',db_schema_update_date=NOW(); +UPDATE system_settings SET db_schema_version='1282',db_schema_update_date=NOW(); GRANT RELOAD ON *.* TO cron@'%'; GRANT RELOAD ON *.* TO cron@localhost; diff --git a/extras/upgrade_2.4.sql b/extras/upgrade_2.4.sql index 5042c7b6..db4ccea0 100644 --- a/extras/upgrade_2.4.sql +++ b/extras/upgrade_2.4.sql @@ -822,3 +822,37 @@ ALTER TABLE vicidial_campaigns ADD disable_dispo_screen ENUM('DISPO_ENABLED','DI ALTER TABLE vicidial_campaigns ADD disable_dispo_status VARCHAR(6) default ''; UPDATE system_settings SET db_schema_version='1281',db_schema_update_date=NOW() where db_schema_version < 1281; + +ALTER TABLE vicidial_campaigns ADD screen_labels VARCHAR(20) default '--SYSTEM-SETTINGS--'; +ALTER TABLE vicidial_campaigns ADD status_display_fields VARCHAR(30) default 'CALLID'; + +ALTER TABLE system_settings ADD label_hide_field_logs VARCHAR(6) default 'Y'; + +CREATE TABLE vicidial_screen_labels ( +label_id VARCHAR(20) PRIMARY KEY NOT NULL, +label_name VARCHAR(100), +active ENUM('Y','N') default 'N', +label_hide_field_logs VARCHAR(6) default 'Y', +label_title VARCHAR(40) default '', +label_first_name VARCHAR(40) default '', +label_middle_initial VARCHAR(40) default '', +label_last_name VARCHAR(40) default '', +label_address1 VARCHAR(40) default '', +label_address2 VARCHAR(40) default '', +label_address3 VARCHAR(40) default '', +label_city VARCHAR(40) default '', +label_state VARCHAR(40) default '', +label_province VARCHAR(40) default '', +label_postal_code VARCHAR(40) default '', +label_vendor_lead_code VARCHAR(40) default '', +label_gender VARCHAR(40) default '', +label_phone_number VARCHAR(40) default '', +label_phone_code VARCHAR(40) default '', +label_alt_phone VARCHAR(40) default '', +label_security_phrase VARCHAR(40) default '', +label_email VARCHAR(40) default '', +label_comments VARCHAR(40) default '' +); + +UPDATE system_settings SET db_schema_version='1282',db_schema_update_date=NOW() where db_schema_version < 1282; + diff --git a/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt b/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt index 2c0c331d..638c282f 100644 --- a/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt +++ b/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt @@ -607,6 +607,35 @@ If the Disable Dispo Screen option is set to DISPO_DISABLED, then this field mus This setting if set to 1 will allow a manager to access the export call and lead reports on the REPORTS screen. Default is 0. For the Export Calls and Leads Reports, the following field order is used for exports|| This report pulls lead information for calls dialed in the selected date range. A lead is only exported once no matter how many calls were handled. The current lead status is used.|| Export Leads Report|| +Screen Labels|| +Add A Screen Label|| +ADD NEW SCREEN LABEL|| +ADDING NEW SCREEN LABEL|| +MODIFY SCREEN LABEL|| +DELETE SCREEN LABEL|| +SCREEN LABELS LIST|| +Screen Label ID|| +Screen Label Name|| +SCREEN LABEL NOT ADDED|| +there is already a label in the system with this ID|| +SCREEN LABEL ADDED|| +SCREEN LABEL NOT DELETED|| +SCREEN LABEL DELETION CONFIRMATION|| +Click here to delete screen label|| +SCREEN LABEL DELETION COMPLETED|| +DELETE THIS SCREEN LABEL|| +Click here to see Admin changes to this screen label|| +Hide Label in Call Logs|| +If a label is set to ---HIDE--- then the agent call logs, if enabled on the campaign, will still show the field and data unless this option is set to Y. Default is N|| +SCREEN LABEL NOT MODIFIED|| +SCREEN LABEL MODIFIED|| +This field needs to be at least 2 characters in length and no more than 20 characters in length, no spaces or special characters. This is the ID that will be used to identify the screen label throughout the system|| +This is the descriptive name of the screen label entry|| +Agent Screen Labels|| +You can select a set of agent screen labels to use with this option. Default is --SYSTEM-SETTINGS-- for the default labels|| +Status Display Fields|| +You can select which variables for calls will be displayed in the status line of the agent screen. CALLID will display the 20 character unique call ID, LEADID will display the system lead ID, LISTID will display the list ID. Default is CALLID +CAMPAIGNS USING THIS SCREEN LABEL|| lead_report_export.php diff --git a/www/agc/vdc_db_query.php b/www/agc/vdc_db_query.php index 298142fe..fe53adf0 100644 --- a/www/agc/vdc_db_query.php +++ b/www/agc/vdc_db_query.php @@ -283,12 +283,13 @@ # 110317-0222 - Logging bug fixes # 110413-1245 - Added ALT dialing from scheduled callback list # 110430-1925 - Added post_phone_time_diff_alert campaign feature +# 110625-0814 - Added screen_labels and label hide functions # -$version = '2.4-188'; -$build = '110430-1925'; +$version = '2.4-189'; +$build = '110625-0814'; $mel=1; # Mysql Error Log enabled = 1 -$mysql_log_count=415; +$mysql_log_count=418; $one_mysql_log=0; require("dbconnect.php"); @@ -8709,6 +8710,17 @@ if ($ACTION == 'LEADINFOview') } ### END Display callback information ### + ### find the screen_label for this campaign + $stmt="select screen_labels from vicidial_campaigns where campaign_id='$campaign';"; + $rslt=mysql_query($stmt, $link); + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00416',$user,$server_ip,$session_name,$one_mysql_log);} + $csl_to_print = mysql_num_rows($rslt); + if ($format=='debug') {echo "|$csl_to_print|$stmt|";} + if ($csl_to_print > 0) + { + $row=mysql_fetch_row($rslt); + $screen_labels = $row[0]; + } ### BEGIN Display lead info and custom fields ### ### BEGIN find any custom field labels ### @@ -8733,8 +8745,9 @@ if ($ACTION == 'LEADINFOview') $label_email = 'Email'; $label_comments = 'Comments'; - $stmt="SELECT label_title,label_first_name,label_middle_initial,label_last_name,label_address1,label_address2,label_address3,label_city,label_state,label_province,label_postal_code,label_vendor_lead_code,label_gender,label_phone_number,label_phone_code,label_alt_phone,label_security_phrase,label_email,label_comments from system_settings;"; + $stmt="SELECT label_title,label_first_name,label_middle_initial,label_last_name,label_address1,label_address2,label_address3,label_city,label_state,label_province,label_postal_code,label_vendor_lead_code,label_gender,label_phone_number,label_phone_code,label_alt_phone,label_security_phrase,label_email,label_comments,label_hide_field_logs from system_settings;"; $rslt=mysql_query($stmt, $link); + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00417',$user,$server_ip,$session_name,$one_mysql_log);} $row=mysql_fetch_row($rslt); if (strlen($row[0])>0) {$label_title = $row[0];} if (strlen($row[1])>0) {$label_first_name = $row[1];} @@ -8755,8 +8768,44 @@ if ($ACTION == 'LEADINFOview') if (strlen($row[16])>0) {$label_security_phrase = $row[16];} if (strlen($row[17])>0) {$label_email = $row[17];} if (strlen($row[18])>0) {$label_comments = $row[18];} - ### END find any custom field labels ### + $label_hide_field_logs = $row[19]; + if ( ($screen_labels != '--SYSTEM-SETTINGS--') and (strlen($screen_labels)>1) ) + { + $stmt="SELECT label_title,label_first_name,label_middle_initial,label_last_name,label_address1,label_address2,label_address3,label_city,label_state,label_province,label_postal_code,label_vendor_lead_code,label_gender,label_phone_number,label_phone_code,label_alt_phone,label_security_phrase,label_email,label_comments,label_hide_field_logs from vicidial_screen_labels where label_id='$screen_labels' and active='Y' limit 1;"; + $rslt=mysql_query($stmt, $link); + if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00418',$user,$server_ip,$session_name,$one_mysql_log);} + $screenlabels_count = mysql_num_rows($rslt); + if ($screenlabels_count > 0) + { + $row=mysql_fetch_row($rslt); + if (strlen($row[0])>0) {$label_title = $row[0];} + if (strlen($row[1])>0) {$label_first_name = $row[1];} + if (strlen($row[2])>0) {$label_middle_initial = $row[2];} + if (strlen($row[3])>0) {$label_last_name = $row[3];} + if (strlen($row[4])>0) {$label_address1 = $row[4];} + if (strlen($row[5])>0) {$label_address2 = $row[5];} + if (strlen($row[6])>0) {$label_address3 = $row[6];} + if (strlen($row[7])>0) {$label_city = $row[7];} + if (strlen($row[8])>0) {$label_state = $row[8];} + if (strlen($row[9])>0) {$label_province = $row[9];} + if (strlen($row[10])>0) {$label_postal_code = $row[10];} + if (strlen($row[11])>0) {$label_vendor_lead_code = $row[11];} + if (strlen($row[12])>0) {$label_gender = $row[12];} + if (strlen($row[13])>0) {$label_phone_number = $row[13];} + if (strlen($row[14])>0) {$label_phone_code = $row[14];} + if (strlen($row[15])>0) {$label_alt_phone = $row[15];} + if (strlen($row[16])>0) {$label_security_phrase = $row[16];} + if (strlen($row[17])>0) {$label_email = $row[17];} + if (strlen($row[18])>0) {$label_comments = $row[18];} + $label_hide_field_logs = $row[19]; + ### END find any custom field labels ### + $hide_gender=0; + if ($label_gender == '---HIDE---') + {$hide_gender=1;} + } + } + ### END find any custom field labels ### $INFOout .= "
| Status: | $row[0] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| $label_vendor_lead_code: | $row[1] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| $label_vendor_lead_code: | $row[1] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| List ID: | $row[2] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Timezone: | $row[3] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Called Since Last Reset: | $row[4] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| $label_phone_code: | $row[5] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| $label_phone_number: | $row[6] - ";
- if ($hide_dial_links < 1)
- {$INFOout .= "DIAL";}
+ if ( ($label_phone_code!='---HIDE---') or ($label_hide_field_logs=='N') )
+ {$INFOout .= "| $label_phone_code: | $row[5] | $label_phone_number: | $row[6] - ";
+ if ($hide_dial_links < 1)
+ {$INFOout .= "DIAL";}
+ }
$INFOout .= " | $label_title: | $row[7] | $label_first_name: | $row[8] | $label_middle_initial: | $row[9] | $label_last_name: | $row[10] | $label_address1: | $row[11] | $label_address2: | $row[12] | $label_address3: | $row[13] | $label_city: | $row[14] | $label_state: | $row[15] | $label_province: | $row[16] | $label_postal_code: | $row[17] | $label_title: | $row[7] | $label_first_name: | $row[8] | $label_middle_initial: | $row[9] | $label_last_name: | $row[10] | $label_address1: | $row[11] | $label_address2: | $row[12] | $label_address3: | $row[13] | $label_city: | $row[14] | $label_state: | $row[15] | $label_province: | $row[16] | $label_postal_code: | $row[17] | Country: | $row[18] | $label_gender: | $row[19] | $label_alt_phone: | $row[20] - ";
- if ($hide_dial_links < 1)
- {$INFOout .= "DIAL";}
+ if ( ($label_gender!='---HIDE---') or ($label_hide_field_logs=='N') )
+ {$INFOout .= " | $label_gender: | $row[19] | $label_alt_phone: | $row[20] - ";
+ if ($hide_dial_links < 1)
+ {$INFOout .= "DIAL";}
+ }
$INFOout .= " | $label_email: | $row[21] | $label_security_phrase: | $row[22] | $label_comments: | $row[23] | $label_email: | $row[21] | $label_security_phrase: | $row[22] | $label_comments: | $row[23] | Called Count: | $row[24] | Last Local Call Time: | $row[25] | Rank: | $row[26] | ![]() ";
var DiaLControl_auto_HTML_ready = "![]() ";
var DiaLControl_auto_HTML_OFF = "![]() ";
@@ -5108,11 +5159,15 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
{
if (document.vicidial_form.DiaLAltPhonE.checked==true)
{
+ var status_display_content='';
+ if (status_display_LEADID > 0) {status_display_content = status_display_content + " Lead: " + document.vicidial_form.lead_id.value;}
+ if (status_display_LISTID > 0) {status_display_content = status_display_content + " List: " + document.vicidial_form.list_id.value;}
+
alt_num_status = 1;
reselect_alt_dial = 1;
alt_dial_active = 1;
alt_dial_status_display = 1;
- var man_status = "Dial Alt Phone Number: MAIN PHONE or ALT PHONE or ADDRESS3 or FINISH LEAD";
+ var man_status = "Dial Alt Phone Number: MAIN PHONE or ALT PHONE or ADDRESS3 or FINISH LEAD" + status_display_content;
document.getElementById("MainStatuSSpan").innerHTML = man_status;
}
}
@@ -5749,8 +5804,13 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
if (alt_dial_status_display=='0')
{
+ var status_display_content='';
+ if (status_display_CALLID > 0) {status_display_content = status_display_content + " UID: " + CIDcheck;}
+ if (status_display_LEADID > 0) {status_display_content = status_display_content + " Lead: " + document.vicidial_form.lead_id.value;}
+ if (status_display_LISTID > 0) {status_display_content = status_display_content + " List: " + document.vicidial_form.list_id.value;}
+
// alert(document.getElementById("MainStatuSSpan").innerHTML);
- document.getElementById("MainStatuSSpan").innerHTML = " Calling: " + status_display_number + " UID: " + CIDcheck + " Waiting for Ring... " + MD_ring_secondS + " seconds";
+ document.getElementById("MainStatuSSpan").innerHTML = " Calling: " + status_display_number + " " + status_display_content + " Waiting for Ring... " + MD_ring_secondS + " seconds";
// alert("channel not found yet:\n" + campaign);
}
}
@@ -5787,7 +5847,12 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
var called3rdparty = document.vicidial_form.xfernumber.value;
if (hide_xfer_number_to_dial=='ENABLED')
{called3rdparty=' ';}
- document.getElementById("MainStatuSSpan").innerHTML = " Called 3rd party: " + called3rdparty + " UID: " + CIDcheck;
+ var status_display_content='';
+ if (status_display_CALLID > 0) {status_display_content = status_display_content + " UID: " + CIDcheck;}
+ if (status_display_LEADID > 0) {status_display_content = status_display_content + " Lead: " + document.vicidial_form.lead_id.value;}
+ if (status_display_LISTID > 0) {status_display_content = status_display_content + " List: " + document.vicidial_form.list_id.value;}
+
+ document.getElementById("MainStatuSSpan").innerHTML = " Called 3rd party: " + called3rdparty + " " + status_display_content;
document.getElementById("Leave3WayCall").innerHTML =" ";
@@ -5837,8 +5902,12 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
MD_channel_look=0;
var dispnum = lead_dial_number;
var status_display_number = phone_number_format(dispnum);
+ var status_display_content='';
+ if (status_display_CALLID > 0) {status_display_content = status_display_content + " UID: " + CIDcheck;}
+ if (status_display_LEADID > 0) {status_display_content = status_display_content + " Lead: " + document.vicidial_form.lead_id.value;}
+ if (status_display_LISTID > 0) {status_display_content = status_display_content + " List: " + document.vicidial_form.list_id.value;}
- document.getElementById("MainStatuSSpan").innerHTML = " Called: " + status_display_number + " UID: " + CIDcheck + " ";
+ document.getElementById("MainStatuSSpan").innerHTML = " Called: " + status_display_number + " " + status_display_content + " ";
document.getElementById("ParkControl").innerHTML =" ";
if ( (ivr_park_call=='ENABLED') || (ivr_park_call=='ENABLED_PARK_ONLY') )
@@ -6376,8 +6445,12 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
lead_dial_number = dialed_number;
var dispnum = dialed_number;
var status_display_number = phone_number_format(dispnum);
+ var status_display_content='';
+ if (status_display_CALLID > 0) {status_display_content = status_display_content + " UID: " + MDnextCID;}
+ if (status_display_LEADID > 0) {status_display_content = status_display_content + " Lead: " + document.vicidial_form.lead_id.value;}
+ if (status_display_LISTID > 0) {status_display_content = status_display_content + " List: " + document.vicidial_form.list_id.value;}
- document.getElementById("MainStatuSSpan").innerHTML = " Calling: " + status_display_number + " UID: " + MDnextCID + " " + man_status;
+ document.getElementById("MainStatuSSpan").innerHTML = " Calling: " + status_display_number + " " + status_display_content + " " + man_status;
if ( (dialed_label.length < 2) || (dialed_label=='NONE') ) {dialed_label='MAIN';}
if (hide_gender > 0)
@@ -6787,7 +6860,12 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
if (alt_dial_status_display=='0')
{
- document.getElementById("MainStatuSSpan").innerHTML = " Calling: " + status_display_number + " UID: " + MDnextCID + " Waiting for Ring...";
+ var status_display_content='';
+ if (status_display_CALLID > 0) {status_display_content = status_display_content + " UID: " + MDnextCID;}
+ if (status_display_LEADID > 0) {status_display_content = status_display_content + " Lead: " + document.vicidial_form.lead_id.value;}
+ if (status_display_LISTID > 0) {status_display_content = status_display_content + " List: " + document.vicidial_form.list_id.value;}
+
+ document.getElementById("MainStatuSSpan").innerHTML = " Calling: " + status_display_number + " " + status_display_content + " Waiting for Ring...";
document.getElementById("HangupControl").innerHTML = " ";
}
@@ -7342,7 +7420,12 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
var callnum = dialed_number;
var dial_display_number = phone_number_format(callnum);
- document.getElementById("MainStatuSSpan").innerHTML = " Incoming: " + dial_display_number + " " + custom_call_id + " UID: " + CIDcheck + " " + VDIC_fronter;
+ var status_display_content='';
+ if (status_display_CALLID > 0) {status_display_content = status_display_content + " UID: " + LasTCID;}
+ if (status_display_LEADID > 0) {status_display_content = status_display_content + " Lead: " + document.vicidial_form.lead_id.value;}
+ if (status_display_LISTID > 0) {status_display_content = status_display_content + " List: " + document.vicidial_form.list_id.value;}
+
+ document.getElementById("MainStatuSSpan").innerHTML = " Incoming: " + dial_display_number + " " + custom_call_id + " " + status_display_content + " " + VDIC_fronter;
if (CBentry_time.length > 2)
{
@@ -7388,7 +7471,12 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
var callnum = dialed_number;
var dial_display_number = phone_number_format(callnum);
- document.getElementById("MainStatuSSpan").innerHTML = " Incoming: " + dial_display_number + " " + custom_call_id + " Group- " + VDIC_data_VDIG[1] + " " + VDIC_fronter;
+ var status_display_content='';
+ if (status_display_CALLID > 0) {status_display_content = status_display_content + " UID: " + CIDcheck;}
+ if (status_display_LEADID > 0) {status_display_content = status_display_content + " Lead: " + document.vicidial_form.lead_id.value;}
+ if (status_display_LISTID > 0) {status_display_content = status_display_content + " List: " + document.vicidial_form.list_id.value;}
+
+ document.getElementById("MainStatuSSpan").innerHTML = " Incoming: " + dial_display_number + " " + custom_call_id + " Group- " + VDIC_data_VDIG[1] + " " + VDIC_fronter + " " + status_display_content;
}
document.getElementById("ParkControl").innerHTML =" ";
diff --git a/www/vicidial/admin.php b/www/vicidial/admin.php
index 59bf3ef6..9fbd97ab 100644
--- a/www/vicidial/admin.php
+++ b/www/vicidial/admin.php
@@ -37,6 +37,7 @@ $reports_color = '#99FF33';
$templates_color = '#FF33FF';
$carriers_color = '#FF33FF';
$settings_color = '#FF33FF';
+ $label_color = '#FF33FF';
$status_color = '#FF33FF';
$moh_color = '#FF33FF';
$vm_color = '#FF33FF';
@@ -57,6 +58,7 @@ $reports_font = 'BLACK';
$conference_font = 'BLACK';
$server_font = 'BLACK';
$settings_font = 'BLACK';
+ $label_font = 'BLACK';
$status_font = 'BLACK';
$moh_font = 'BLACK';
$vm_font = 'BLACK';
@@ -82,6 +84,7 @@ $reports_color = '#E6E6E6';
$templates_color = '#C6C6C6';
$carriers_color = '#C6C6C6';
$settings_color = '#C6C6C6';
+ $label_color = '#C6C6C6';
$status_color = '#C6C6C6';
$moh_color = '#C6C6C6';
$vm_color = '#C6C6C6';
@@ -1564,6 +1567,16 @@ if (isset($_GET["disable_dispo_screen"])) {$disable_dispo_screen=$_GET["disabl
elseif (isset($_POST["disable_dispo_screen"])) {$disable_dispo_screen=$_POST["disable_dispo_screen"];}
if (isset($_GET["disable_dispo_status"])) {$disable_dispo_status=$_GET["disable_dispo_status"];}
elseif (isset($_POST["disable_dispo_status"])) {$disable_dispo_status=$_POST["disable_dispo_status"];}
+if (isset($_GET["screen_labels"])) {$screen_labels=$_GET["screen_labels"];}
+ elseif (isset($_POST["screen_labels"])) {$screen_labels=$_POST["screen_labels"];}
+if (isset($_GET["label_hide_field_logs"])) {$label_hide_field_logs=$_GET["label_hide_field_logs"];}
+ elseif (isset($_POST["label_hide_field_logs"])) {$label_hide_field_logs=$_POST["label_hide_field_logs"];}
+if (isset($_GET["label_id"])) {$label_id=$_GET["label_id"];}
+ elseif (isset($_POST["label_id"])) {$label_id=$_POST["label_id"];}
+if (isset($_GET["label_name"])) {$label_name=$_GET["label_name"];}
+ elseif (isset($_POST["label_name"])) {$label_name=$_POST["label_name"];}
+if (isset($_GET["status_display_fields"])) {$status_display_fields=$_GET["status_display_fields"];}
+ elseif (isset($_POST["status_display_fields"])) {$status_display_fields=$_POST["status_display_fields"];}
if (isset($script_id)) {$script_id= strtoupper($script_id);}
@@ -2173,6 +2186,10 @@ if ($non_latin < 1)
$survey_menu_id = ereg_replace("[^-_0-9a-zA-Z]","",$survey_menu_id);
$dl_diff_target_method = ereg_replace("[^-_0-9a-zA-Z]","",$dl_diff_target_method);
$disable_dispo_screen = ereg_replace("[^-_0-9a-zA-Z]","",$disable_dispo_screen);
+ $screen_labels = ereg_replace("[^-_0-9a-zA-Z]","",$screen_labels);
+ $label_hide_field_logs = ereg_replace("[^-_0-9a-zA-Z]","",$label_hide_field_logs);
+ $label_id = ereg_replace("[^-_0-9a-zA-Z]","",$label_id);
+ $status_display_fields = ereg_replace("[^-_0-9a-zA-Z]","",$status_display_fields);
### ALPHA-NUMERIC and underscore and dash and slash and dot
$menu_prompt = ereg_replace("[^-\/\|\._0-9a-zA-Z]","",$menu_prompt);
@@ -2305,6 +2322,7 @@ if ($non_latin < 1)
$filter_phone_group_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$filter_phone_group_name);
$filter_phone_group_description = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$filter_phone_group_description);
$filter_clean_cid_number = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$filter_clean_cid_number);
+ $label_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$label_name);
### ALPHA-NUMERIC and underscore and dash and slash and at and dot
$call_out_number_group = ereg_replace("[^-\.\:\/\@\_0-9a-zA-Z]","",$call_out_number_group);
@@ -2747,12 +2765,13 @@ else
# 110602-0941 - Added dl_diff_target_method campaign option
# 110619-1942 - Added disable_dispo_ agent screen options
# 110624-0842 - Added Export Leads Report links and permissions
+# 110624-2246 - Added Screen Labels subsection for Admin and status_display_fields feature
#
# make sure you have added a user to the vicidial_users MySQL table with at least user_level 8 to access this page the first time
-$admin_version = '2.4-319a';
-$build = '110624-0842';
+$admin_version = '2.4-320a';
+$build = '110624-2246';
$STARTtime = date("U");
$SQLdate = date("Y-m-d H:i:s");
@@ -3022,6 +3041,7 @@ if ($ADD==140111111111) {$hh='admin'; $sh='carriers'; echo "ADD COPIED CARRIER";
if ($ADD==151111111111) {$hh='admin'; $sh='tts'; echo "ADD NEW TTS ENTRY";}
if ($ADD==161111111111) {$hh='admin'; $sh='moh'; echo "ADD NEW MUSIC ON HOLD ENTRY";}
if ($ADD==171111111111) {$hh='admin'; $sh='vm'; echo "ADD NEW VOICEMAIL BOX";}
+if ($ADD==181111111111) {$hh='admin'; $sh='label'; echo "ADD NEW SCREEN LABEL";}
if ($ADD==1111111111111) {$hh='admin'; $sh='conference'; echo "ADD NEW CONFERENCE";}
if ($ADD==11111111111111) {$hh='admin'; $sh='conference'; echo "ADD NEW VICIDIAL CONFERENCE";}
if ($ADD=='2') {$hh='users'; echo "New User Addition";}
@@ -3063,6 +3083,7 @@ if ($ADD==240111111111) {$hh='admin'; $sh='carriers'; echo "ADDING COPIED CARRIE
if ($ADD==251111111111) {$hh='admin'; $sh='tts'; echo "ADDING NEW TTS ENTRY";}
if ($ADD==261111111111) {$hh='admin'; $sh='moh'; echo "ADDING NEW MUSIC ON HOLD ENTRY";}
if ($ADD==271111111111) {$hh='admin'; $sh='vm'; echo "ADDING NEW VOICEMAIL BOX";}
+if ($ADD==281111111111) {$hh='admin'; $sh='label'; echo "ADDING NEW SCREEN LABEL";}
if ($ADD==2111111111111) {$hh='admin'; $sh='conference'; echo "ADDING NEW CONFERENCE";}
if ($ADD==21111111111111) {$hh='admin'; $sh='conference'; echo "ADDING NEW VICIDIAL CONFERENCE";}
if ($ADD==221111111111111) {$hh='admin'; $sh='status'; echo "ADDING VICIDIAL SYSTEM STATUSES";}
@@ -3127,6 +3148,7 @@ if ($ADD==341111111111) {$hh='admin'; $sh='carriers'; echo "MODIFY CARRIER";}
if ($ADD==351111111111) {$hh='admin'; $sh='tts'; echo "MODIFY TTS ENTRY";}
if ($ADD==361111111111) {$hh='admin'; $sh='moh'; echo "MODIFY MUSIC ON HOLD ENTRY";}
if ($ADD==371111111111) {$hh='admin'; $sh='vm'; echo "MODIFY VOICEMAIL BOX";}
+if ($ADD==381111111111) {$hh='admin'; $sh='label'; echo "MODIFY SCREEN LABEL";}
if ($ADD==3111111111111) {$hh='admin'; $sh='conference'; echo "MODIFY CONFERENCE";}
if ($ADD==31111111111111) {$hh='admin'; $sh='conference'; echo "MODIFY VICIDIAL CONFERENCE";}
if ($ADD==311111111111111) {$hh='admin'; $sh='settings'; echo "MODIFY VICIDIAL SYSTEM SETTINGS";}
@@ -3169,6 +3191,7 @@ if ($ADD==441111111111) {$hh='admin'; $sh='carriers'; echo "MODIFY CARRIER";}
if ($ADD==451111111111) {$hh='admin'; $sh='tts'; echo "MODIFY TTS ENTRY";}
if ($ADD==461111111111) {$hh='admin'; $sh='moh'; echo "MODIFY MUSIC ON HOLD ENTRY";}
if ($ADD==471111111111) {$hh='admin'; $sh='vm'; echo "MODIFY VOICEMAIL BOX";}
+if ($ADD==481111111111) {$hh='admin'; $sh='label'; echo "MODIFY SCREEN LABEL";}
if ($ADD==4111111111111) {$hh='admin'; $sh='conference'; echo "MODIFY CONFERENCE";}
if ($ADD==41111111111111) {$hh='admin'; $sh='conference'; echo "MODIFY VICIDIAL CONFERENCE";}
if ($ADD==411111111111111) {$hh='admin'; $sh='settings'; echo "MODIFY VICIDIAL SYSTEM SETTINGS";}
@@ -3201,6 +3224,7 @@ if ($ADD==541111111111) {$hh='admin'; $sh='carriers'; echo "DELETE CARRIER";}
if ($ADD==551111111111) {$hh='admin'; $sh='tts'; echo "DELETE TTS ENTRY";}
if ($ADD==561111111111) {$hh='admin'; $sh='moh'; echo "DELETE MUSIC ON HOLD ENTRY";}
if ($ADD==571111111111) {$hh='admin'; $sh='vm'; echo "DELETE VOICEMAIL BOX";}
+if ($ADD==581111111111) {$hh='admin'; $sh='label'; echo "DELETE SCREEN LABEL";}
if ($ADD==5111111111111) {$hh='admin'; $sh='conference'; echo "DELETE CONFERENCE";}
if ($ADD==51111111111111) {$hh='admin'; $sh='conference'; echo "DELETE VICIDIAL CONFERENCE";}
if ($ADD==6) {$hh='users'; echo "Delete User";}
@@ -3236,6 +3260,7 @@ if ($ADD==641111111111) {$hh='admin'; $sh='carriers'; echo "DELETE CARRIER";}
if ($ADD==651111111111) {$hh='admin'; $sh='tts'; echo "DELETE TTS ENTRY";}
if ($ADD==661111111111) {$hh='admin'; $sh='moh'; echo "DELETE MUSIC ON HOLD ENTRY";}
if ($ADD==671111111111) {$hh='admin'; $sh='vm'; echo "DELETE VOICEMAIL BOX";}
+if ($ADD==681111111111) {$hh='admin'; $sh='label'; echo "DELETE SCREEN LABEL";}
if ($ADD==6111111111111) {$hh='admin'; $sh='conference'; echo "DELETE CONFERENCE";}
if ($ADD==61111111111111) {$hh='admin'; $sh='conference'; echo "DELETE VICIDIAL CONFERENCE";}
if ($ADD==73) {$hh='campaigns'; echo "Dialable Lead Count";}
@@ -3272,6 +3297,7 @@ if ($ADD==140000000000) {$hh='admin'; $sh='carriers'; echo "CARRIER LIST";}
if ($ADD==150000000000) {$hh='admin'; $sh='tts'; echo "TTS ENTRY LIST";}
if ($ADD==160000000000) {$hh='admin'; $sh='moh'; echo "MUSIC ON HOLD ENTRY LIST";}
if ($ADD==170000000000) {$hh='admin'; $sh='vm'; echo "VOICEMAIL BOXES LIST";}
+if ($ADD==180000000000) {$hh='admin'; $sh='label'; echo "SCREEN LABELS LIST";}
if ($ADD==1000000000000) {$hh='admin'; $sh='conference'; echo "CONFERENCE LIST";}
if ($ADD==10000000000000) {$hh='admin'; $sh='conference'; echo "VICIDIAL CONFERENCE LIST";}
if ($ADD==550) {$hh='users'; echo "Search Form";}
@@ -4841,6 +4867,16 @@ if ($ADD==99999)
Disable Dispo Status - If the Disable Dispo Screen option is set to DISPO_DISABLED, then this field must be filled in. You can use any disposition you want for this field as long as it is 1 to 6 characters in length with only letters and numbers. + + + + Agent Screen Labels - You can select a set of agent screen labels to use with this option. Default is --SYSTEM-SETTINGS-- for the default labels. + + + + + Status Display Fields - You can select which variables for calls will be displayed in the status line of the agent screen. CALLID will display the 20 character unique call ID, LEADID will display the system lead ID, LISTID will display the list ID. Default is CALLID. + @@ -7468,6 +7504,11 @@ if ($ADD==99999) Default Field Labels - These 19 fields allow you to set the name as it will appear in the ViciDial agent interface as well as the administrative modify lead page. Default is empty which will use the hard-coded defaults in the agent interface. You can also set a label to ---HIDE--- to hide both the label and the field. + + + + Hide Label in Call Logs - If a label is set to ---HIDE--- then the agent call logs, if enabled on the campaign, will still show the field and data unless this option is set to Y. Default is N. + @@ -7608,6 +7649,34 @@ if ($ADD==99999) + + + VICIDIAL_SCREEN_LABELS TABLE + + + Screen labels give you the option of setting different labels for the default agent screen fields on a per campaign basis. + + + + Screen Label ID - This field needs to be at least 2 characters in length and no more than 20 characters in length, no spaces or special characters. This is the ID that will be used to identify the screen label throughout the system. + + + + + Screen Label Name - This is the descriptive name of the screen label entry. + + + + + Hide Label in Call Logs - If a label is set to ---HIDE--- then the agent call logs, if enabled on the campaign, will still show the field and data unless this option is set to Y. Default is N. + + + + + Default Field Labels - These 19 fields allow you to set the name as it will appear in the ViciDial agent interface as well as the administrative modify lead page. Default is empty which will use the hard-coded defaults in the agent interface. You can also set a label to ---HIDE--- to hide both the label and the field. + + + VICIDIAL_STATUS_CATEGORIES TABLE @@ -9774,6 +9843,35 @@ if ($ADD==171111111111) } +###################### +# ADD=181111111111 display the ADD NEW SCREEN LABEL SCREEN +###################### + +if ($ADD==181111111111) + { + if ($LOGmodify_servers==1) + { + echo "
|