Added agent display field option for last local call time
Added new options to dispo_move_list.php Updated internal chat screen colors for agent git-svn-id: svn://192.168.202.10@2587 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -955,7 +955,7 @@ web_form_address_three TEXT,
|
||||
manual_dial_override_field ENUM('ENABLED','DISABLED') default 'ENABLED',
|
||||
status_display_ingroup ENUM('ENABLED','DISABLED') default 'ENABLED',
|
||||
customer_gone_seconds SMALLINT(5) UNSIGNED default '30',
|
||||
agent_display_fields VARCHAR(50) default '',
|
||||
agent_display_fields VARCHAR(100) default '',
|
||||
am_message_wildcards ENUM('Y','N') default 'N',
|
||||
manual_dial_timeout VARCHAR(3) default '',
|
||||
routing_initiated_recordings ENUM('Y','N') default 'N',
|
||||
@@ -3791,4 +3791,4 @@ UPDATE vicidial_configuration set value='1766' where name='qc_database_version';
|
||||
|
||||
UPDATE system_settings set vdc_agent_api_active='1';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1467',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
UPDATE system_settings SET db_schema_version='1468',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
|
||||
@@ -654,3 +654,7 @@ UPDATE system_settings SET db_schema_version='1466',db_schema_update_date=NOW()
|
||||
ALTER TABLE vicidial_recording_access_log convert to character set utf8 collate utf8_unicode_ci;
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1467',db_schema_update_date=NOW() where db_schema_version < 1467;
|
||||
|
||||
ALTER TABLE vicidial_campaigns MODIFY agent_display_fields VARCHAR(100) default '';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1468',db_schema_update_date=NOW() where db_schema_version < 1468;
|
||||
|
||||
+29
-36
@@ -17,7 +17,8 @@
|
||||
# 160108-2300 - Changed some mysqli_query to mysql_to_mysqli for consistency
|
||||
# 160303-0051 - Added code for chat transfers
|
||||
# 160719-1043 - Bug fixes for non-owner chats, and other issues
|
||||
# 160818-1236 - Addec chat colors, usre nickname and scrolling
|
||||
# 160818-1236 - Added chat colors, usre nickname and scrolling
|
||||
# 160831-2225 - Agent-to-agent interface now color-coded using system settings, if desired
|
||||
#
|
||||
|
||||
require("dbconnect_mysqli.php");
|
||||
@@ -195,16 +196,40 @@ if ($action=="DisplayMgrAgentChat" && $manager_chat_id && $manager_chat_subid &&
|
||||
$prev_chat_subid="";
|
||||
$backlog_limit=20;
|
||||
$chat_output_text="";
|
||||
|
||||
$chat_color_stmt="select std_row1_background, std_row2_background from system_settings s, vicidial_screen_colors v where s.agent_screen_colors=v.colors_id and length(frame_background)=6 and length(menu_background)=6 limit 1;";
|
||||
$color_rslt=mysql_to_mysqli($chat_color_stmt, $link);
|
||||
if(mysqli_num_rows($color_rslt)>0 && $use_agent_colors>0) {
|
||||
$color_row=mysqli_fetch_array($color_rslt);
|
||||
$color_array=array("#000000", "#000000");
|
||||
$chat_background_array=array("#$color_row[std_row1_background]", "#$color_row[std_row2_background]");
|
||||
} else {
|
||||
$color_array=array("#0000FF", "#FF0000");
|
||||
$chat_background_array=array("#CCCCFF", "#FFCCCC");
|
||||
}
|
||||
|
||||
while($row=mysqli_fetch_row($rslt)) {
|
||||
if (!$chat_start_date) {$chat_start_date=$row[6];}
|
||||
if (!$manager) {$manager=$row[4];}
|
||||
if ($backlog_limit>0) {
|
||||
|
||||
# Current agent is always the blue text
|
||||
if ($row[0]!=$user) {$fc="#990000";} else {$fc="#000099";}
|
||||
$chat_output_text="<font color='$fc' FACE=\"ARIAL,HELVETICA\" size='1'>$row[1]</font><BR>".$chat_output_text;
|
||||
# if ($row[0]!=$user) {$fc="#990000";} else {$fc="#000099";}
|
||||
if ($row[0]!=$user) {
|
||||
$chat_color_key=1;
|
||||
} else {
|
||||
$chat_color_key=0;
|
||||
}
|
||||
$chat_output_text="<tr><td bgcolor='$chat_background_array[$chat_color_key]'><font color='$color_array[$chat_color_key]' FACE=\"ARIAL,HELVETICA\" size='2' class='bold'>$row[1]</font></td></tr>".$chat_output_text;
|
||||
|
||||
|
||||
# $chat_output_text="<font color='$fc' FACE=\"ARIAL,HELVETICA\" size='1'>$row[1]</font><BR>".$chat_output_text;
|
||||
$backlog_limit--;
|
||||
}
|
||||
}
|
||||
$chat_output_text="<table border='0' cellpadding='1' cellspacing='1' width='100%'>".$chat_output_text;
|
||||
|
||||
$chat_output_text.="</table>";
|
||||
|
||||
$reply_stmt="select allow_replies from vicidial_manager_chats where manager_chat_id='$manager_chat_id'";
|
||||
$reply_rslt=mysql_to_mysqli($reply_stmt, $link);
|
||||
@@ -609,38 +634,6 @@ if ($action=="xfer_chat" && $user && $chat_id && $chat_xfer_value && $chat_xfer_
|
||||
echo "</select>";
|
||||
echo "|"; // DO NOT ECHO TOGGLE DIAL CONTROL HERE. WE DO NOT WANT THE AGENT'S PAUSE BUTTON REACTIVATED YET.
|
||||
}
|
||||
/*
|
||||
vicidial_live_chats
|
||||
+---------+---------------------+--------+--------------+----------+---------+
|
||||
| chat_id | chat_start_time | status | chat_creator | group_id | lead_id |
|
||||
+---------+---------------------+--------+--------------+----------+---------+
|
||||
| 516 | 2015-12-18 12:04:54 | LIVE | 6666 | MIKECHAT | 1079414 |
|
||||
| 517 | 2015-12-18 12:13:48 | LIVE | 6666 | MIKECHAT | 1079414 |
|
||||
| 510 | 2015-12-18 09:23:09 | LIVE | 6666 | MIKECHAT | 1079414 |
|
||||
+---------+---------------------+--------+--------------+----------+---------+
|
||||
|
||||
vicidial_chat_participants
|
||||
+---------------------+-----------------+------+-----+---------+----------------+
|
||||
| Field | Type | Null | Key | Default | Extra |
|
||||
+---------------------+-----------------+------+-----+---------+----------------+
|
||||
| chat_participant_id | int(9) unsigned | NO | PRI | NULL | auto_increment |
|
||||
| chat_id | int(9) unsigned | YES | MUL | NULL | |
|
||||
| chat_member | varchar(20) | YES | | NULL | |
|
||||
| chat_member_name | varchar(100) | YES | | NULL | |
|
||||
| ping_date | datetime | YES | | NULL | |
|
||||
| vd_agent | enum('Y','N') | YES | | N | |
|
||||
+---------------------+-----------------+------+-----+---------+----------------+
|
||||
|
||||
vicidial_chat_log
|
||||
+----------------+---------+----------------------------+---------------------+--------+------------------+------------+
|
||||
| message_row_id | chat_id | message | message_time | poster | chat_member_name | chat_level |
|
||||
+----------------+---------+----------------------------+---------------------+--------+------------------+------------+
|
||||
| 530 | 517 | Harold Smith has left chat | 2015-12-18 12:19:53 | 6666 | Admin | 1 |
|
||||
| 529 | 516 | Harold Smith has left chat | 2015-12-18 12:06:09 | 6666 | Admin | 1 |
|
||||
| 513 | 510 | Harold Smith has left chat | 2015-12-18 09:26:17 | 6666 | Admin | 1 |
|
||||
+----------------+---------+----------------------------+---------------------+--------+------------------+------------+
|
||||
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
@@ -703,7 +696,7 @@ if ($action=="update_agent_chat_window" && $chat_id) {
|
||||
|
||||
$chat_color_stmt="select menu_background, frame_background, std_row1_background, std_row2_background, std_row3_background, std_row4_background, std_row5_background from system_settings s, vicidial_screen_colors v where s.agent_screen_colors=v.colors_id and length(frame_background)=6 and length(menu_background)=6 limit 1;";
|
||||
$color_rslt=mysql_to_mysqli($chat_color_stmt, $link);
|
||||
if(mysqli_num_rows($color_rslt)>0 && $use_system_colors>0) {
|
||||
if(mysqli_num_rows($color_rslt)>0 && $use_agent_colors>0) {
|
||||
$color_row=mysqli_fetch_array($color_rslt);
|
||||
$color_array=array("#000000", "#000000", "#000000", "#000000", "#000000", "#000000", "#000000");
|
||||
$chat_background_array=array("#$color_row[std_row1_background]", "#$color_row[std_row2_background]", "#$color_row[std_row3_background]", "#$color_row[std_row4_background]", "#$color_row[std_row5_background]", "#$color_row[frame_background]", "#$color_row[menu_background]");
|
||||
|
||||
@@ -33,6 +33,8 @@
|
||||
# - called_count_trigger - (1,2,3,...) if set to number greater than 0, will only trigger for called_count at or above set number, default is 0
|
||||
# - new_list_id - (999,etc...) the list_id that you want the matching status leads to be moved to
|
||||
# - reset_dialed - (Y,N) if set to Y, will reset the called_since_last_reset flag on the lead
|
||||
# - populate_sp_old_list - (Y,N) if set to Y, will populate the security_phrase field of the lead with the old list_id
|
||||
# - populate_comm_old_date - (Y,N) if set to Y, will populate the comments field of the lead with the date and time when the lead was last called
|
||||
# Multiple sets of statuses:
|
||||
# - sale_status_1, new_list_id_1, reset_dialed_1, exclude_status_1, called_count_trigger_1 - adding an underscore and number(1-99) will allow for another set of statuses to check for and what to do with them
|
||||
#
|
||||
@@ -50,6 +52,7 @@
|
||||
# 150703-1453 - Added options so it would work with No-Agent Call URL
|
||||
# 160309-1239 - Added talk_time_trigger and exclude_status options
|
||||
# 160801-1032 - Added called_count_trigger options
|
||||
# 160910-1354 - Added populate_... options
|
||||
#
|
||||
|
||||
$api_script = 'movelist';
|
||||
@@ -95,6 +98,10 @@ if (isset($_GET["DB"])) {$DB=$_GET["DB"];}
|
||||
elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];}
|
||||
if (isset($_GET["log_to_file"])) {$log_to_file=$_GET["log_to_file"];}
|
||||
elseif (isset($_POST["log_to_file"])) {$log_to_file=$_POST["log_to_file"];}
|
||||
if (isset($_GET["populate_sp_old_list"])) {$populate_sp_old_list=$_GET["populate_sp_old_list"];}
|
||||
elseif (isset($_POST["populate_sp_old_list"])) {$populate_sp_old_list=$_POST["populate_sp_old_list"];}
|
||||
if (isset($_GET["populate_comm_old_date"])) {$populate_comm_old_date=$_GET["populate_comm_old_date"];}
|
||||
elseif (isset($_POST["populate_comm_old_date"])) {$populate_comm_old_date=$_POST["populate_comm_old_date"];}
|
||||
|
||||
|
||||
#$DB = '1'; # DEBUG override
|
||||
@@ -282,9 +289,28 @@ if ($match_found > 0)
|
||||
|
||||
if ($search_count > 0)
|
||||
{
|
||||
$field_editSQL='';
|
||||
$reset_dialedSQL='';
|
||||
if ( ($populate_sp_old_list=='Y') or ($populate_comm_old_date=='Y') )
|
||||
{
|
||||
$stmtA = "SELECT list_id,last_local_call_time,comments FROM vicidial_list where lead_id='$lead_id';";
|
||||
$rslt=mysql_to_mysqli($stmtA, $link);
|
||||
if ($DB) {echo "$stmtA\n";}
|
||||
$vle_ct = mysqli_num_rows($rslt);
|
||||
if ($vle_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$old_list_id = ",security_phrase='$row[0]'";
|
||||
$old_call_time = ",comments='$row[1]'";
|
||||
if ($populate_sp_old_list=='Y')
|
||||
{$field_editSQL .= "$old_list_id";}
|
||||
if ($populate_comm_old_date=='Y')
|
||||
{$field_editSQL .= "$old_call_time";}
|
||||
}
|
||||
}
|
||||
|
||||
if ($reset_dialed=='Y') {$reset_dialedSQL=", called_since_last_reset='N'";}
|
||||
$stmt="UPDATE vicidial_list SET list_id='$new_list_id' $reset_dialedSQL where lead_id='$lead_id' limit 1;";
|
||||
$stmt="UPDATE vicidial_list SET list_id='$new_list_id' $reset_dialedSQL $field_editSQL where lead_id='$lead_id' limit 1;";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
$affected_rows = mysqli_affected_rows($link);
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
# 131007-1346 - Added mrglock_ig_select_ct
|
||||
# 131121-1719 - Fixed defaults mismatched, HKuser_level and FORM_COLOR
|
||||
# 160619-1010 - Added link_to_grey_version option
|
||||
# 160910-1317 - Added use_agent_colors option
|
||||
#
|
||||
|
||||
$conf_silent_prefix = '5'; # vicidial_conferences prefix to enter silently and muted for recording
|
||||
@@ -47,6 +48,7 @@ $focus_blur_enabled = '0'; # set to 1 to enable the focus/blur enter key blocki
|
||||
$consult_custom_delay = '2'; # number of seconds to delay consultative transfers when custom fields are active
|
||||
$mrglock_ig_select_ct = '4'; # number of seconds to leave in-group select screen open if agent select is disabled
|
||||
$link_to_grey_version = '1'; # show link to old grey version of agent screen at login screen, next to timeclock link
|
||||
$use_agent_colors = '1'; # agent chat colors
|
||||
|
||||
$TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen
|
||||
|
||||
|
||||
@@ -409,10 +409,11 @@
|
||||
# 160706-1437 - Added font styles to text in many places
|
||||
# 160714-1503 - Added called_count as a dispo_call_url variable
|
||||
# 160801-0717 - Added lists option to ALT dispo call url functions
|
||||
# 160901-1714 - Added last_local_call_time sent to agent screen with lead info
|
||||
#
|
||||
|
||||
$version = '2.12-303';
|
||||
$build = '160801-0717';
|
||||
$version = '2.12-304';
|
||||
$build = '160901-1714';
|
||||
$php_script = 'vdc_db_query.php';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=654;
|
||||
@@ -3433,6 +3434,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$security_phrase = trim("$row[28]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
$call_date = trim("$row[31]");
|
||||
$rank = trim("$row[32]");
|
||||
$owner = trim("$row[33]");
|
||||
$entry_list_id = trim("$row[34]");
|
||||
@@ -4288,6 +4290,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$LeaD_InfO .= $list_description . "\n";
|
||||
$LeaD_InfO .= $entry_date . "\n";
|
||||
$LeaD_InfO .= $status_group_gather_data . "\n";
|
||||
$LeaD_InfO .= $call_date . "\n";
|
||||
|
||||
echo $LeaD_InfO;
|
||||
}
|
||||
@@ -6716,6 +6719,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$security_phrase = trim("$row[28]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
$call_date = trim("$row[31]");
|
||||
$rank = trim("$row[32]");
|
||||
$owner = trim("$row[33]");
|
||||
$entry_list_id = trim("$row[34]");
|
||||
@@ -7531,6 +7535,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$LeaD_InfO .= $DID_custom_four . "\n";
|
||||
$LeaD_InfO .= $DID_custom_five . "\n";
|
||||
$LeaD_InfO .= $status_group_gather_data . "\n";
|
||||
$LeaD_InfO .= $call_date . "\n";
|
||||
|
||||
echo $LeaD_InfO;
|
||||
|
||||
@@ -8182,6 +8187,7 @@ if ($ACTION == 'VDADcheckINCOMINGother')
|
||||
$security_phrase = trim("$row[28]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
$call_date = trim("$row[31]");
|
||||
$rank = trim("$row[32]");
|
||||
$owner = trim("$row[33]");
|
||||
$entry_list_id = trim("$row[34]");
|
||||
@@ -8304,6 +8310,7 @@ if ($ACTION == 'VDADcheckINCOMINGother')
|
||||
$security_phrase = trim("$row[28]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
$call_date = trim("$row[31]");
|
||||
$rank = trim("$row[32]");
|
||||
$owner = trim("$row[33]");
|
||||
$entry_list_id = trim("$row[34]");
|
||||
@@ -8760,6 +8767,7 @@ if ($ACTION == 'VDADcheckINCOMINGother')
|
||||
$LeaD_InfO .= $DID_custom_four . "\n";
|
||||
$LeaD_InfO .= $DID_custom_five . "\n";
|
||||
$LeaD_InfO .= $status_group_gather_data . "\n";
|
||||
$LeaD_InfO .= $call_date . "\n";
|
||||
|
||||
echo $LeaD_InfO;
|
||||
|
||||
@@ -9296,6 +9304,7 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE')
|
||||
$security_phrase = trim("$row[28]");
|
||||
$comments = stripslashes(trim("$row[29]"));
|
||||
$called_count = trim("$row[30]");
|
||||
$call_date = trim("$row[31]");
|
||||
$rank = trim("$row[32]");
|
||||
$owner = trim("$row[33]");
|
||||
$entry_list_id = trim("$row[34]");
|
||||
@@ -9856,6 +9865,7 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE')
|
||||
$LeaD_InfO .= $DID_custom_four . "\n";
|
||||
$LeaD_InfO .= $DID_custom_five . "\n";
|
||||
$LeaD_InfO .= $status_group_gather_data . "\n";
|
||||
$LeaD_InfO .= $call_date . "\n";
|
||||
|
||||
echo $LeaD_InfO;
|
||||
|
||||
@@ -11339,6 +11349,7 @@ if ($ACTION == 'updateDISPO')
|
||||
$security_phrase = urlencode(trim($row[28]));
|
||||
$comments = urlencode(trim($row[29]));
|
||||
$called_count = urlencode(trim($row[30]));
|
||||
$call_date = urlencode(trim($row[31]));
|
||||
$rank = urlencode(trim($row[32]));
|
||||
$owner = urlencode(trim($row[33]));
|
||||
$entry_list_id = urlencode(trim($row[34]));
|
||||
|
||||
+27
-2
@@ -525,10 +525,11 @@
|
||||
# 160428-1826 - Fixed user_authorization bug
|
||||
# 160706-1438 - Redesign for loading, login and logout screens. Added Screen Colors. Logging of browser width/height
|
||||
# 160731-1102 - Added option to automatically dial the next number after X seconds in a manual dial mode
|
||||
# 160901-1728 - Added last_local_call_time display field
|
||||
#
|
||||
|
||||
$version = '2.12-494c';
|
||||
$build = '160731-1102';
|
||||
$version = '2.12-495c';
|
||||
$build = '160901-1728';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=87;
|
||||
$one_mysql_log=0;
|
||||
@@ -3866,6 +3867,7 @@ $CCAL_OUT .= "</table>";
|
||||
VARpreset_hide_numbers = new Array(<?php echo $VARpreset_hide_numbers ?>);
|
||||
var VD_preset_names_ct = '<?php echo $VD_preset_names_ct ?>';
|
||||
var status_group_statuses_data = '';
|
||||
var last_call_date = '';
|
||||
VARstatuses = new Array();
|
||||
VARstatusnames = new Array();
|
||||
VARSELstatuses = new Array();
|
||||
@@ -4187,6 +4189,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var adfREGdate_of_birth = new RegExp("date_of_birth","g");
|
||||
var adfREGrank = new RegExp("rank","g");
|
||||
var adfREGowner = new RegExp("owner","g");
|
||||
var adfREGlast_local_call_time = new RegExp("last_local_call_time","g");
|
||||
var DispO3waychannel = '';
|
||||
var DispO3wayXtrAchannel = '';
|
||||
var DispO3wayCalLserverip = '';
|
||||
@@ -7423,6 +7426,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
did_custom_four = change_array[63];
|
||||
did_custom_five = change_array[64];
|
||||
status_group_statuses_data = change_array[65];
|
||||
last_call_date = change_array[66];
|
||||
|
||||
// build statuses list for disposition screen
|
||||
VARstatuses = [];
|
||||
@@ -7541,6 +7545,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
{document.getElementById("rankDISP").innerHTML = document.vicidial_form.rank.value;}
|
||||
if (agent_display_fields.match(adfREGowner))
|
||||
{document.getElementById("ownerDISP").innerHTML = document.vicidial_form.owner.value;}
|
||||
if (agent_display_fields.match(adfREGlast_local_call_time))
|
||||
{document.getElementById("last_local_call_timeDISP").innerHTML = last_call_date;}
|
||||
|
||||
if (hide_gender > 0)
|
||||
{
|
||||
@@ -8734,6 +8740,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
document.vicidial_form.list_description.value = MDnextResponse_array[56];
|
||||
entry_date = MDnextResponse_array[57];
|
||||
status_group_statuses_data = MDnextResponse_array[58];
|
||||
last_call_date = MDnextResponse_array[59];
|
||||
|
||||
// build statuses list for disposition screen
|
||||
VARstatuses = [];
|
||||
@@ -8856,6 +8863,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
{document.getElementById("rankDISP").innerHTML = document.vicidial_form.rank.value;}
|
||||
if (agent_display_fields.match(adfREGowner))
|
||||
{document.getElementById("ownerDISP").innerHTML = document.vicidial_form.owner.value;}
|
||||
if (agent_display_fields.match(adfREGlast_local_call_time))
|
||||
{document.getElementById("last_local_call_timeDISP").innerHTML = last_call_date;}
|
||||
|
||||
timer_action = campaign_timer_action;
|
||||
timer_action_message = campaign_timer_action_message;
|
||||
@@ -9205,6 +9214,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
{document.getElementById("rankDISP").innerHTML = ' ';}
|
||||
if (agent_display_fields.match(adfREGowner))
|
||||
{document.getElementById("ownerDISP").innerHTML = ' ';}
|
||||
if (agent_display_fields.match(adfREGlast_local_call_time))
|
||||
{document.getElementById("last_local_call_timeDISP").innerHTML = ' ';}
|
||||
|
||||
if (post_phone_time_diff_alert_message.length > 10)
|
||||
{
|
||||
@@ -9237,6 +9248,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
xfer_agent_selected=0;
|
||||
RefresHScript('CLEAR');
|
||||
ViewComments('OFF','OFF');
|
||||
last_call_date='';
|
||||
// document.getElementById('vcFormIFrame').src='./vdc_form_display.php?lead_id=&list_id=&stage=WELCOME';
|
||||
}
|
||||
}
|
||||
@@ -10000,6 +10012,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
did_custom_four = check_VDIC_array[63];
|
||||
did_custom_five = check_VDIC_array[64];
|
||||
status_group_statuses_data = check_VDIC_array[65];
|
||||
last_call_date = check_VDIC_array[66];
|
||||
|
||||
// build statuses list for disposition screen
|
||||
VARstatuses = [];
|
||||
@@ -10118,6 +10131,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
{document.getElementById("rankDISP").innerHTML = document.vicidial_form.rank.value;}
|
||||
if (agent_display_fields.match(adfREGowner))
|
||||
{document.getElementById("ownerDISP").innerHTML = document.vicidial_form.owner.value;}
|
||||
if (agent_display_fields.match(adfREGlast_local_call_time))
|
||||
{document.getElementById("last_local_call_timeDISP").innerHTML = last_call_date;}
|
||||
|
||||
if (CalL_ScripT_color.length > 1)
|
||||
{document.getElementById("ScriptContents").style.backgroundColor = CalL_ScripT_color;}
|
||||
@@ -10730,6 +10745,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
did_custom_four = check_VDIC_array[59];
|
||||
did_custom_five = check_VDIC_array[60];
|
||||
status_group_statuses_data = check_VDIC_array[61];
|
||||
last_call_date = check_VDIC_array[62];
|
||||
|
||||
// build statuses list for disposition screen
|
||||
VARstatuses = [];
|
||||
@@ -10848,6 +10864,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
{document.getElementById("rankDISP").innerHTML = document.vicidial_form.rank.value;}
|
||||
if (agent_display_fields.match(adfREGowner))
|
||||
{document.getElementById("ownerDISP").innerHTML = document.vicidial_form.owner.value;}
|
||||
if (agent_display_fields.match(adfREGlast_local_call_time))
|
||||
{document.getElementById("last_local_call_timeDISP").innerHTML = last_call_date;}
|
||||
|
||||
if (hide_gender > 0)
|
||||
{
|
||||
@@ -12632,6 +12650,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
xfer_agent_selected=0;
|
||||
source_id='';
|
||||
entry_date='';
|
||||
last_call_date='';
|
||||
if (manual_auto_next > 0)
|
||||
{manual_auto_next_trigger=1; manual_auto_next_count=manual_auto_next;}
|
||||
if (agent_display_fields.match(adfREGentry_date))
|
||||
@@ -12644,6 +12663,8 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
{document.getElementById("rankDISP").innerHTML = ' ';}
|
||||
if (agent_display_fields.match(adfREGowner))
|
||||
{document.getElementById("ownerDISP").innerHTML = ' ';}
|
||||
if (agent_display_fields.match(adfREGlast_local_call_time))
|
||||
{document.getElementById("last_local_call_timeDISP").innerHTML = ' ';}
|
||||
|
||||
if ( (manual_dial_search_checkbox == 'SELECTED_RESET') || (manual_dial_search_checkbox == 'SELECTED_LOCK') )
|
||||
{document.vicidial_form.LeadLookuP.checked=true;}
|
||||
@@ -17593,6 +17614,10 @@ $zi=2;
|
||||
{
|
||||
echo _QXZ("Owner").": <font class=\"body_text\"><span id=\"ownerDISP\"> </span> </font>";
|
||||
}
|
||||
if (preg_match("/last_local_call_time/",$agent_display_fields))
|
||||
{
|
||||
echo _QXZ("Last Call").": <font class=\"body_text\"><span id=\"last_local_call_timeDISP\"> </span> </font>";
|
||||
}
|
||||
}
|
||||
|
||||
echo "</td></tr><tr><td align=\"right\"><font class=\"body_text\">";
|
||||
|
||||
@@ -21082,7 +21082,7 @@ if ($ADD==31)
|
||||
|
||||
echo "<tr bgcolor=#$SSstd_row3_background><td align=right>"._QXZ("Status Display In-Group").": </td><td align=left><select size=1 name=status_display_ingroup><option value='ENABLED'>"._QXZ("ENABLED")."</option><option value='DISABLED'>"._QXZ("DISABLED")."</option><option value='$status_display_ingroup' SELECTED>"._QXZ("$status_display_ingroup")."</option></select>$NWB#campaigns-status_display_ingroup$NWE</td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#$SSstd_row3_background><td align=right>"._QXZ("Agent Display Fields").": </td><td align=left><input type=text name=agent_display_fields size=50 maxlength=50 value=\"$agent_display_fields\">$NWB#campaigns-agent_display_fields$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row3_background><td align=right>"._QXZ("Agent Display Fields").": </td><td align=left><input type=text name=agent_display_fields size=60 maxlength=100 value=\"$agent_display_fields\">$NWB#campaigns-agent_display_fields$NWE</td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#$SSstd_row3_background><td align=right>"._QXZ("Agent Display Queue Count").": </td><td align=left><select size=1 name=display_queue_count><option value='Y'>"._QXZ("Y")."</option><option value='N'>"._QXZ("N")."</option><option value='$display_queue_count' SELECTED>"._QXZ("$display_queue_count")."</option></select>$NWB#campaigns-display_queue_count$NWE</td></tr>\n";
|
||||
|
||||
|
||||
@@ -1648,7 +1648,7 @@ if ($SSoutbound_autodial_active > 0)
|
||||
<BR>
|
||||
<A NAME="campaigns-agent_display_fields">
|
||||
<BR>
|
||||
<B><?php echo _QXZ("Agent Display Fields"); ?> -</B><?php echo _QXZ("This option allows you to display hidden fields as read-only in the agent screen. Available fields are entry_date, source_id, date_of_birth, rank, owner. Default is blank."); ?>
|
||||
<B><?php echo _QXZ("Agent Display Fields"); ?> -</B><?php echo _QXZ("This option allows you to display hidden fields as read-only in the agent screen. Available fields are entry_date, source_id, date_of_birth, rank, owner, last_local_call_time. Default is blank."); ?>
|
||||
|
||||
<BR>
|
||||
<A NAME="campaigns-use_internal_dnc">
|
||||
|
||||
Reference in New Issue
Block a user