addition of Russian Agent translation git-svn-id: svn://192.168.202.10@1081 3d104415-ff17-0410-8863-d5cf3c621b8a
20256 lines
1005 KiB
PHP
20256 lines
1005 KiB
PHP
<?
|
|
# admin.php - VICIDIAL administration page
|
|
#
|
|
# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
|
#
|
|
|
|
require("dbconnect.php");
|
|
|
|
######################################################################################################
|
|
######################################################################################################
|
|
####### static variable settings for display options
|
|
######################################################################################################
|
|
######################################################################################################
|
|
|
|
$page_width='770';
|
|
$section_width='750';
|
|
$header_font_size='3';
|
|
$subheader_font_size='2';
|
|
$subcamp_font_size='2';
|
|
$header_selected_bold='<b>';
|
|
$header_nonselected_bold='';
|
|
$users_color = '#FFFF99';
|
|
$campaigns_color = '#FFCC99';
|
|
$lists_color = '#FFCCCC';
|
|
$ingroups_color = '#CC99FF';
|
|
$remoteagent_color ='#CCFFCC';
|
|
$usergroups_color = '#CCFFFF';
|
|
$scripts_color = '#99FFCC';
|
|
$filters_color = '#CCCCCC';
|
|
$admin_color = '#FF99FF';
|
|
$reports_color = '#99FF33';
|
|
$times_color = '#FF33FF';
|
|
$shifts_color = '#FF33FF';
|
|
$phones_color = '#FF33FF';
|
|
$conference_color = '#FF33FF';
|
|
$server_color = '#FF33FF';
|
|
$templates_color = '#FF33FF';
|
|
$carriers_color = '#FF33FF';
|
|
$settings_color = '#FF33FF';
|
|
$status_color = '#FF33FF';
|
|
$subcamp_color = '#FF9933';
|
|
$users_font = 'BLACK';
|
|
$campaigns_font = 'BLACK';
|
|
$lists_font = 'BLACK';
|
|
$ingroups_font = 'BLACK';
|
|
$remoteagent_font = 'BLACK';
|
|
$usergroups_font = 'BLACK';
|
|
$scripts_font = 'BLACK';
|
|
$filters_font = 'BLACK';
|
|
$admin_font = 'BLACK';
|
|
$reports_font = 'BLACK';
|
|
$times_font = 'BLACK';
|
|
$phones_font = 'BLACK';
|
|
$conference_font = 'BLACK';
|
|
$server_font = 'BLACK';
|
|
$settings_font = 'BLACK';
|
|
$status_font = 'BLACK';
|
|
$subcamp_font = 'BLACK';
|
|
|
|
### comment this section out for colorful section headings
|
|
$users_color = '#E6E6E6';
|
|
$campaigns_color = '#E6E6E6';
|
|
$lists_color = '#E6E6E6';
|
|
$ingroups_color = '#E6E6E6';
|
|
$remoteagent_color ='#E6E6E6';
|
|
$usergroups_color = '#E6E6E6';
|
|
$scripts_color = '#E6E6E6';
|
|
$filters_color = '#E6E6E6';
|
|
$admin_color = '#E6E6E6';
|
|
$reports_color = '#E6E6E6';
|
|
$times_color = '#C6C6C6';
|
|
$shifts_color = '#C6C6C6';
|
|
$phones_color = '#C6C6C6';
|
|
$conference_color = '#C6C6C6';
|
|
$server_color = '#C6C6C6';
|
|
$templates_color = '#C6C6C6';
|
|
$carriers_color = '#C6C6C6';
|
|
$settings_color = '#C6C6C6';
|
|
$status_color = '#C6C6C6';
|
|
$subcamp_color = '#C6C6C6';
|
|
###
|
|
|
|
|
|
$PHP_AUTH_USER=$_SERVER['PHP_AUTH_USER'];
|
|
$PHP_AUTH_PW=$_SERVER['PHP_AUTH_PW'];
|
|
$PHP_SELF=$_SERVER['PHP_SELF'];
|
|
|
|
######################################################################################################
|
|
######################################################################################################
|
|
####### Form variable declaration
|
|
######################################################################################################
|
|
######################################################################################################
|
|
|
|
|
|
if (isset($_GET["DB"])) {$DB=$_GET["DB"];}
|
|
elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];}
|
|
if (isset($_GET["active"])) {$active=$_GET["active"];}
|
|
elseif (isset($_POST["active"])) {$active=$_POST["active"];}
|
|
if (isset($_GET["adaptive_dl_diff_target"])) {$adaptive_dl_diff_target=$_GET["adaptive_dl_diff_target"];}
|
|
elseif (isset($_POST["adaptive_dl_diff_target"])) {$adaptive_dl_diff_target=$_POST["adaptive_dl_diff_target"];}
|
|
if (isset($_GET["adaptive_dropped_percentage"])) {$adaptive_dropped_percentage=$_GET["adaptive_dropped_percentage"];}
|
|
elseif (isset($_POST["adaptive_dropped_percentage"])){$adaptive_dropped_percentage=$_POST["adaptive_dropped_percentage"];}
|
|
if (isset($_GET["adaptive_intensity"])) {$adaptive_intensity=$_GET["adaptive_intensity"];}
|
|
elseif (isset($_POST["adaptive_intensity"])) {$adaptive_intensity=$_POST["adaptive_intensity"];}
|
|
if (isset($_GET["adaptive_latest_server_time"])) {$adaptive_latest_server_time=$_GET["adaptive_latest_server_time"];}
|
|
elseif (isset($_POST["adaptive_latest_server_time"])){$adaptive_latest_server_time=$_POST["adaptive_latest_server_time"];}
|
|
if (isset($_GET["adaptive_maximum_level"])) {$adaptive_maximum_level=$_GET["adaptive_maximum_level"];}
|
|
elseif (isset($_POST["adaptive_maximum_level"])) {$adaptive_maximum_level=$_POST["adaptive_maximum_level"];}
|
|
if (isset($_GET["SUB"])) {$SUB=$_GET["SUB"];}
|
|
elseif (isset($_POST["SUB"])) {$SUB=$_POST["SUB"];}
|
|
if (isset($_GET["ADD"])) {$ADD=$_GET["ADD"];}
|
|
elseif (isset($_POST["ADD"])) {$ADD=$_POST["ADD"];}
|
|
if (isset($_GET["admin_hangup_enabled"])) {$admin_hangup_enabled=$_GET["admin_hangup_enabled"];}
|
|
elseif (isset($_POST["admin_hangup_enabled"])) {$admin_hangup_enabled=$_POST["admin_hangup_enabled"];}
|
|
if (isset($_GET["admin_hijack_enabled"])) {$admin_hijack_enabled=$_GET["admin_hijack_enabled"];}
|
|
elseif (isset($_POST["admin_hijack_enabled"])) {$admin_hijack_enabled=$_POST["admin_hijack_enabled"];}
|
|
if (isset($_GET["admin_monitor_enabled"])) {$admin_monitor_enabled=$_GET["admin_monitor_enabled"];}
|
|
elseif (isset($_POST["admin_monitor_enabled"])) {$admin_monitor_enabled=$_POST["admin_monitor_enabled"];}
|
|
if (isset($_GET["AFLogging_enabled"])) {$AFLogging_enabled=$_GET["AFLogging_enabled"];}
|
|
elseif (isset($_POST["AFLogging_enabled"])) {$AFLogging_enabled=$_POST["AFLogging_enabled"];}
|
|
if (isset($_GET["agent_choose_ingroups"])) {$agent_choose_ingroups=$_GET["agent_choose_ingroups"];}
|
|
elseif (isset($_POST["agent_choose_ingroups"])) {$agent_choose_ingroups=$_POST["agent_choose_ingroups"];}
|
|
if (isset($_GET["agentcall_manual"])) {$agentcall_manual=$_GET["agentcall_manual"];}
|
|
elseif (isset($_POST["agentcall_manual"])) {$agentcall_manual=$_POST["agentcall_manual"];}
|
|
if (isset($_GET["agentonly_callbacks"])) {$agentonly_callbacks=$_GET["agentonly_callbacks"];}
|
|
elseif (isset($_POST["agentonly_callbacks"])) {$agentonly_callbacks=$_POST["agentonly_callbacks"];}
|
|
if (isset($_GET["AGI_call_logging_enabled"])) {$AGI_call_logging_enabled=$_GET["AGI_call_logging_enabled"];}
|
|
elseif (isset($_POST["AGI_call_logging_enabled"])) {$AGI_call_logging_enabled=$_POST["AGI_call_logging_enabled"];}
|
|
if (isset($_GET["agi_output"])) {$agi_output=$_GET["agi_output"];}
|
|
elseif (isset($_POST["agi_output"])) {$agi_output=$_POST["agi_output"];}
|
|
if (isset($_GET["allcalls_delay"])) {$allcalls_delay=$_GET["allcalls_delay"];}
|
|
elseif (isset($_POST["allcalls_delay"])) {$allcalls_delay=$_POST["allcalls_delay"];}
|
|
if (isset($_GET["allow_closers"])) {$allow_closers=$_GET["allow_closers"];}
|
|
elseif (isset($_POST["allow_closers"])) {$allow_closers=$_POST["allow_closers"];}
|
|
if (isset($_GET["alt_number_dialing"])) {$alt_number_dialing=$_GET["alt_number_dialing"];}
|
|
elseif (isset($_POST["alt_number_dialing"])) {$alt_number_dialing=$_POST["alt_number_dialing"];}
|
|
if (isset($_GET["alter_agent_interface_options"])) {$alter_agent_interface_options=$_GET["alter_agent_interface_options"];}
|
|
elseif (isset($_POST["alter_agent_interface_options"])) {$alter_agent_interface_options=$_POST["alter_agent_interface_options"];}
|
|
if (isset($_GET["am_message_exten"])) {$am_message_exten=$_GET["am_message_exten"];}
|
|
elseif (isset($_POST["am_message_exten"])) {$am_message_exten=$_POST["am_message_exten"];}
|
|
if (isset($_GET["amd_send_to_vmx"])) {$amd_send_to_vmx=$_GET["amd_send_to_vmx"];}
|
|
elseif (isset($_POST["amd_send_to_vmx"])) {$amd_send_to_vmx=$_POST["amd_send_to_vmx"];}
|
|
if (isset($_GET["answer_transfer_agent"])) {$answer_transfer_agent=$_GET["answer_transfer_agent"];}
|
|
elseif (isset($_POST["answer_transfer_agent"])) {$answer_transfer_agent=$_POST["answer_transfer_agent"];}
|
|
if (isset($_GET["ast_admin_access"])) {$ast_admin_access=$_GET["ast_admin_access"];}
|
|
elseif (isset($_POST["ast_admin_access"])) {$ast_admin_access=$_POST["ast_admin_access"];}
|
|
if (isset($_GET["ast_delete_phones"])) {$ast_delete_phones=$_GET["ast_delete_phones"];}
|
|
elseif (isset($_POST["ast_delete_phones"])) {$ast_delete_phones=$_POST["ast_delete_phones"];}
|
|
if (isset($_GET["asterisk_version"])) {$asterisk_version=$_GET["asterisk_version"];}
|
|
elseif (isset($_POST["asterisk_version"])) {$asterisk_version=$_POST["asterisk_version"];}
|
|
if (isset($_GET["ASTmgrSECRET"])) {$ASTmgrSECRET=$_GET["ASTmgrSECRET"];}
|
|
elseif (isset($_POST["ASTmgrSECRET"])) {$ASTmgrSECRET=$_POST["ASTmgrSECRET"];}
|
|
if (isset($_GET["ASTmgrUSERNAME"])) {$ASTmgrUSERNAME=$_GET["ASTmgrUSERNAME"];}
|
|
elseif (isset($_POST["ASTmgrUSERNAME"])) {$ASTmgrUSERNAME=$_POST["ASTmgrUSERNAME"];}
|
|
if (isset($_GET["ASTmgrUSERNAMElisten"])) {$ASTmgrUSERNAMElisten=$_GET["ASTmgrUSERNAMElisten"];}
|
|
elseif (isset($_POST["ASTmgrUSERNAMElisten"])) {$ASTmgrUSERNAMElisten=$_POST["ASTmgrUSERNAMElisten"];}
|
|
if (isset($_GET["ASTmgrUSERNAMEsend"])) {$ASTmgrUSERNAMEsend=$_GET["ASTmgrUSERNAMEsend"];}
|
|
elseif (isset($_POST["ASTmgrUSERNAMEsend"])) {$ASTmgrUSERNAMEsend=$_POST["ASTmgrUSERNAMEsend"];}
|
|
if (isset($_GET["ASTmgrUSERNAMEupdate"])) {$ASTmgrUSERNAMEupdate=$_GET["ASTmgrUSERNAMEupdate"];}
|
|
elseif (isset($_POST["ASTmgrUSERNAMEupdate"])) {$ASTmgrUSERNAMEupdate=$_POST["ASTmgrUSERNAMEupdate"];}
|
|
if (isset($_GET["attempt_delay"])) {$attempt_delay=$_GET["attempt_delay"];}
|
|
elseif (isset($_POST["attempt_delay"])) {$attempt_delay=$_POST["attempt_delay"];}
|
|
if (isset($_GET["attempt_maximum"])) {$attempt_maximum=$_GET["attempt_maximum"];}
|
|
elseif (isset($_POST["attempt_maximum"])) {$attempt_maximum=$_POST["attempt_maximum"];}
|
|
if (isset($_GET["auto_dial_level"])) {$auto_dial_level=$_GET["auto_dial_level"];}
|
|
elseif (isset($_POST["auto_dial_level"])) {$auto_dial_level=$_POST["auto_dial_level"];}
|
|
if (isset($_GET["auto_dial_next_number"])) {$auto_dial_next_number=$_GET["auto_dial_next_number"];}
|
|
elseif (isset($_POST["auto_dial_next_number"])) {$auto_dial_next_number=$_POST["auto_dial_next_number"];}
|
|
if (isset($_GET["available_only_ratio_tally"])) {$available_only_ratio_tally=$_GET["available_only_ratio_tally"];}
|
|
elseif (isset($_POST["available_only_ratio_tally"])){$available_only_ratio_tally=$_POST["available_only_ratio_tally"];}
|
|
if (isset($_GET["call_out_number_group"])) {$call_out_number_group=$_GET["call_out_number_group"];}
|
|
elseif (isset($_POST["call_out_number_group"])) {$call_out_number_group=$_POST["call_out_number_group"];}
|
|
if (isset($_GET["call_parking_enabled"])) {$call_parking_enabled=$_GET["call_parking_enabled"];}
|
|
elseif (isset($_POST["call_parking_enabled"])) {$call_parking_enabled=$_POST["call_parking_enabled"];}
|
|
if (isset($_GET["call_time_comments"])) {$call_time_comments=$_GET["call_time_comments"];}
|
|
elseif (isset($_POST["call_time_comments"])) {$call_time_comments=$_POST["call_time_comments"];}
|
|
if (isset($_GET["call_time_id"])) {$call_time_id=$_GET["call_time_id"];}
|
|
elseif (isset($_POST["call_time_id"])) {$call_time_id=$_POST["call_time_id"];}
|
|
if (isset($_GET["call_time_name"])) {$call_time_name=$_GET["call_time_name"];}
|
|
elseif (isset($_POST["call_time_name"])) {$call_time_name=$_POST["call_time_name"];}
|
|
if (isset($_GET["CallerID_popup_enabled"])) {$CallerID_popup_enabled=$_GET["CallerID_popup_enabled"];}
|
|
elseif (isset($_POST["CallerID_popup_enabled"])) {$CallerID_popup_enabled=$_POST["CallerID_popup_enabled"];}
|
|
if (isset($_GET["campaign_cid"])) {$campaign_cid=$_GET["campaign_cid"];}
|
|
elseif (isset($_POST["campaign_cid"])) {$campaign_cid=$_POST["campaign_cid"];}
|
|
if (isset($_GET["campaign_detail"])) {$campaign_detail=$_GET["campaign_detail"];}
|
|
elseif (isset($_POST["campaign_detail"])) {$campaign_detail=$_POST["campaign_detail"];}
|
|
if (isset($_GET["campaign_id"])) {$campaign_id=$_GET["campaign_id"];}
|
|
elseif (isset($_POST["campaign_id"])) {$campaign_id=$_POST["campaign_id"];}
|
|
if (isset($_GET["campaign_name"])) {$campaign_name=$_GET["campaign_name"];}
|
|
elseif (isset($_POST["campaign_name"])) {$campaign_name=$_POST["campaign_name"];}
|
|
if (isset($_GET["campaign_rec_exten"])) {$campaign_rec_exten=$_GET["campaign_rec_exten"];}
|
|
elseif (isset($_POST["campaign_rec_exten"])) {$campaign_rec_exten=$_POST["campaign_rec_exten"];}
|
|
if (isset($_GET["campaign_rec_filename"])) {$campaign_rec_filename=$_GET["campaign_rec_filename"];}
|
|
elseif (isset($_POST["campaign_rec_filename"])) {$campaign_rec_filename=$_POST["campaign_rec_filename"];}
|
|
if (isset($_GET["ingroup_rec_filename"])) {$ingroup_rec_filename=$_GET["ingroup_rec_filename"];}
|
|
elseif (isset($_POST["ingroup_rec_filename"])) {$ingroup_rec_filename=$_POST["ingroup_rec_filename"];}
|
|
if (isset($_GET["campaign_recording"])) {$campaign_recording=$_GET["campaign_recording"];}
|
|
elseif (isset($_POST["campaign_recording"])) {$campaign_recording=$_POST["campaign_recording"];}
|
|
if (isset($_GET["campaign_vdad_exten"])) {$campaign_vdad_exten=$_GET["campaign_vdad_exten"];}
|
|
elseif (isset($_POST["campaign_vdad_exten"])) {$campaign_vdad_exten=$_POST["campaign_vdad_exten"];}
|
|
if (isset($_GET["change_agent_campaign"])) {$change_agent_campaign=$_GET["change_agent_campaign"];}
|
|
elseif (isset($_POST["change_agent_campaign"])) {$change_agent_campaign=$_POST["change_agent_campaign"];}
|
|
if (isset($_GET["client_browser"])) {$client_browser=$_GET["client_browser"];}
|
|
elseif (isset($_POST["client_browser"])) {$client_browser=$_POST["client_browser"];}
|
|
if (isset($_GET["closer_default_blended"])) {$closer_default_blended=$_GET["closer_default_blended"];}
|
|
elseif (isset($_POST["closer_default_blended"])) {$closer_default_blended=$_POST["closer_default_blended"];}
|
|
if (isset($_GET["company"])) {$company=$_GET["company"];}
|
|
elseif (isset($_POST["company"])) {$company=$_POST["company"];}
|
|
if (isset($_GET["computer_ip"])) {$computer_ip=$_GET["computer_ip"];}
|
|
elseif (isset($_POST["computer_ip"])) {$computer_ip=$_POST["computer_ip"];}
|
|
if (isset($_GET["conf_exten"])) {$conf_exten=$_GET["conf_exten"];}
|
|
elseif (isset($_POST["conf_exten"])) {$conf_exten=$_POST["conf_exten"];}
|
|
if (isset($_GET["conf_on_extension"])) {$conf_on_extension=$_GET["conf_on_extension"];}
|
|
elseif (isset($_POST["conf_on_extension"])) {$conf_on_extension=$_POST["conf_on_extension"];}
|
|
if (isset($_GET["conferencing_enabled"])) {$conferencing_enabled=$_GET["conferencing_enabled"];}
|
|
elseif (isset($_POST["conferencing_enabled"])) {$conferencing_enabled=$_POST["conferencing_enabled"];}
|
|
if (isset($_GET["CoNfIrM"])) {$CoNfIrM=$_GET["CoNfIrM"];}
|
|
elseif (isset($_POST["CoNfIrM"])) {$CoNfIrM=$_POST["CoNfIrM"];}
|
|
if (isset($_GET["ct_default_start"])) {$ct_default_start=$_GET["ct_default_start"];}
|
|
elseif (isset($_POST["ct_default_start"])) {$ct_default_start=$_POST["ct_default_start"];}
|
|
if (isset($_GET["ct_default_stop"])) {$ct_default_stop=$_GET["ct_default_stop"];}
|
|
elseif (isset($_POST["ct_default_stop"])) {$ct_default_stop=$_POST["ct_default_stop"];}
|
|
if (isset($_GET["ct_friday_start"])) {$ct_friday_start=$_GET["ct_friday_start"];}
|
|
elseif (isset($_POST["ct_friday_start"])) {$ct_friday_start=$_POST["ct_friday_start"];}
|
|
if (isset($_GET["ct_friday_stop"])) {$ct_friday_stop=$_GET["ct_friday_stop"];}
|
|
elseif (isset($_POST["ct_friday_stop"])) {$ct_friday_stop=$_POST["ct_friday_stop"];}
|
|
if (isset($_GET["ct_monday_start"])) {$ct_monday_start=$_GET["ct_monday_start"];}
|
|
elseif (isset($_POST["ct_monday_start"])) {$ct_monday_start=$_POST["ct_monday_start"];}
|
|
if (isset($_GET["ct_monday_stop"])) {$ct_monday_stop=$_GET["ct_monday_stop"];}
|
|
elseif (isset($_POST["ct_monday_stop"])) {$ct_monday_stop=$_POST["ct_monday_stop"];}
|
|
if (isset($_GET["ct_saturday_start"])) {$ct_saturday_start=$_GET["ct_saturday_start"];}
|
|
elseif (isset($_POST["ct_saturday_start"])) {$ct_saturday_start=$_POST["ct_saturday_start"];}
|
|
if (isset($_GET["ct_saturday_stop"])) {$ct_saturday_stop=$_GET["ct_saturday_stop"];}
|
|
elseif (isset($_POST["ct_saturday_stop"])) {$ct_saturday_stop=$_POST["ct_saturday_stop"];}
|
|
if (isset($_GET["ct_sunday_start"])) {$ct_sunday_start=$_GET["ct_sunday_start"];}
|
|
elseif (isset($_POST["ct_sunday_start"])) {$ct_sunday_start=$_POST["ct_sunday_start"];}
|
|
if (isset($_GET["ct_sunday_stop"])) {$ct_sunday_stop=$_GET["ct_sunday_stop"];}
|
|
elseif (isset($_POST["ct_sunday_stop"])) {$ct_sunday_stop=$_POST["ct_sunday_stop"];}
|
|
if (isset($_GET["ct_thursday_start"])) {$ct_thursday_start=$_GET["ct_thursday_start"];}
|
|
elseif (isset($_POST["ct_thursday_start"])) {$ct_thursday_start=$_POST["ct_thursday_start"];}
|
|
if (isset($_GET["ct_thursday_stop"])) {$ct_thursday_stop=$_GET["ct_thursday_stop"];}
|
|
elseif (isset($_POST["ct_thursday_stop"])) {$ct_thursday_stop=$_POST["ct_thursday_stop"];}
|
|
if (isset($_GET["ct_tuesday_start"])) {$ct_tuesday_start=$_GET["ct_tuesday_start"];}
|
|
elseif (isset($_POST["ct_tuesday_start"])) {$ct_tuesday_start=$_POST["ct_tuesday_start"];}
|
|
if (isset($_GET["ct_tuesday_stop"])) {$ct_tuesday_stop=$_GET["ct_tuesday_stop"];}
|
|
elseif (isset($_POST["ct_tuesday_stop"])) {$ct_tuesday_stop=$_POST["ct_tuesday_stop"];}
|
|
if (isset($_GET["ct_wednesday_start"])) {$ct_wednesday_start=$_GET["ct_wednesday_start"];}
|
|
elseif (isset($_POST["ct_wednesday_start"])) {$ct_wednesday_start=$_POST["ct_wednesday_start"];}
|
|
if (isset($_GET["ct_wednesday_stop"])) {$ct_wednesday_stop=$_GET["ct_wednesday_stop"];}
|
|
elseif (isset($_POST["ct_wednesday_stop"])) {$ct_wednesday_stop=$_POST["ct_wednesday_stop"];}
|
|
if (isset($_GET["DBX_database"])) {$DBX_database=$_GET["DBX_database"];}
|
|
elseif (isset($_POST["DBX_database"])) {$DBX_database=$_POST["DBX_database"];}
|
|
if (isset($_GET["DBX_pass"])) {$DBX_pass=$_GET["DBX_pass"];}
|
|
elseif (isset($_POST["DBX_pass"])) {$DBX_pass=$_POST["DBX_pass"];}
|
|
if (isset($_GET["DBX_port"])) {$DBX_port=$_GET["DBX_port"];}
|
|
elseif (isset($_POST["DBX_port"])) {$DBX_port=$_POST["DBX_port"];}
|
|
if (isset($_GET["DBX_server"])) {$DBX_server=$_GET["DBX_server"];}
|
|
elseif (isset($_POST["DBX_server"])) {$DBX_server=$_POST["DBX_server"];}
|
|
if (isset($_GET["DBX_user"])) {$DBX_user=$_GET["DBX_user"];}
|
|
elseif (isset($_POST["DBX_user"])) {$DBX_user=$_POST["DBX_user"];}
|
|
if (isset($_GET["DBY_database"])) {$DBY_database=$_GET["DBY_database"];}
|
|
elseif (isset($_POST["DBY_database"])) {$DBY_database=$_POST["DBY_database"];}
|
|
if (isset($_GET["DBY_pass"])) {$DBY_pass=$_GET["DBY_pass"];}
|
|
elseif (isset($_POST["DBY_pass"])) {$DBY_pass=$_POST["DBY_pass"];}
|
|
if (isset($_GET["DBY_port"])) {$DBY_port=$_GET["DBY_port"];}
|
|
elseif (isset($_POST["DBY_port"])) {$DBY_port=$_POST["DBY_port"];}
|
|
if (isset($_GET["DBY_server"])) {$DBY_server=$_GET["DBY_server"];}
|
|
elseif (isset($_POST["DBY_server"])) {$DBY_server=$_POST["DBY_server"];}
|
|
if (isset($_GET["DBY_user"])) {$DBY_user=$_GET["DBY_user"];}
|
|
elseif (isset($_POST["DBY_user"])) {$DBY_user=$_POST["DBY_user"];}
|
|
if (isset($_GET["delete_call_times"])) {$delete_call_times=$_GET["delete_call_times"];}
|
|
elseif (isset($_POST["delete_call_times"])) {$delete_call_times=$_POST["delete_call_times"];}
|
|
if (isset($_GET["delete_campaigns"])) {$delete_campaigns=$_GET["delete_campaigns"];}
|
|
elseif (isset($_POST["delete_campaigns"])) {$delete_campaigns=$_POST["delete_campaigns"];}
|
|
if (isset($_GET["delete_filters"])) {$delete_filters=$_GET["delete_filters"];}
|
|
elseif (isset($_POST["delete_filters"])) {$delete_filters=$_POST["delete_filters"];}
|
|
if (isset($_GET["delete_ingroups"])) {$delete_ingroups=$_GET["delete_ingroups"];}
|
|
elseif (isset($_POST["delete_ingroups"])) {$delete_ingroups=$_POST["delete_ingroups"];}
|
|
if (isset($_GET["delete_lists"])) {$delete_lists=$_GET["delete_lists"];}
|
|
elseif (isset($_POST["delete_lists"])) {$delete_lists=$_POST["delete_lists"];}
|
|
if (isset($_GET["delete_remote_agents"])) {$delete_remote_agents=$_GET["delete_remote_agents"];}
|
|
elseif (isset($_POST["delete_remote_agents"])) {$delete_remote_agents=$_POST["delete_remote_agents"];}
|
|
if (isset($_GET["delete_scripts"])) {$delete_scripts=$_GET["delete_scripts"];}
|
|
elseif (isset($_POST["delete_scripts"])) {$delete_scripts=$_POST["delete_scripts"];}
|
|
if (isset($_GET["delete_user_groups"])) {$delete_user_groups=$_GET["delete_user_groups"];}
|
|
elseif (isset($_POST["delete_user_groups"])) {$delete_user_groups=$_POST["delete_user_groups"];}
|
|
if (isset($_GET["delete_users"])) {$delete_users=$_GET["delete_users"];}
|
|
elseif (isset($_POST["delete_users"])) {$delete_users=$_POST["delete_users"];}
|
|
if (isset($_GET["dial_method"])) {$dial_method=$_GET["dial_method"];}
|
|
elseif (isset($_POST["dial_method"])) {$dial_method=$_POST["dial_method"];}
|
|
if (isset($_GET["dial_prefix"])) {$dial_prefix=$_GET["dial_prefix"];}
|
|
elseif (isset($_POST["dial_prefix"])) {$dial_prefix=$_POST["dial_prefix"];}
|
|
if (isset($_GET["dial_status_a"])) {$dial_status_a=$_GET["dial_status_a"];}
|
|
elseif (isset($_POST["dial_status_a"])) {$dial_status_a=$_POST["dial_status_a"];}
|
|
if (isset($_GET["dial_status_b"])) {$dial_status_b=$_GET["dial_status_b"];}
|
|
elseif (isset($_POST["dial_status_b"])) {$dial_status_b=$_POST["dial_status_b"];}
|
|
if (isset($_GET["dial_status_c"])) {$dial_status_c=$_GET["dial_status_c"];}
|
|
elseif (isset($_POST["dial_status_c"])) {$dial_status_c=$_POST["dial_status_c"];}
|
|
if (isset($_GET["dial_status_d"])) {$dial_status_d=$_GET["dial_status_d"];}
|
|
elseif (isset($_POST["dial_status_d"])) {$dial_status_d=$_POST["dial_status_d"];}
|
|
if (isset($_GET["dial_status_e"])) {$dial_status_e=$_GET["dial_status_e"];}
|
|
elseif (isset($_POST["dial_status_e"])) {$dial_status_e=$_POST["dial_status_e"];}
|
|
if (isset($_GET["dial_timeout"])) {$dial_timeout=$_GET["dial_timeout"];}
|
|
elseif (isset($_POST["dial_timeout"])) {$dial_timeout=$_POST["dial_timeout"];}
|
|
if (isset($_GET["dialplan_number"])) {$dialplan_number=$_GET["dialplan_number"];}
|
|
elseif (isset($_POST["dialplan_number"])) {$dialplan_number=$_POST["dialplan_number"];}
|
|
if (isset($_GET["drop_call_seconds"])) {$drop_call_seconds=$_GET["drop_call_seconds"];}
|
|
elseif (isset($_POST["drop_call_seconds"])) {$drop_call_seconds=$_POST["drop_call_seconds"];}
|
|
if (isset($_GET["drop_exten"])) {$drop_exten=$_GET["drop_exten"];}
|
|
elseif (isset($_POST["drop_exten"])) {$drop_exten=$_POST["drop_exten"];}
|
|
if (isset($_GET["drop_action"])) {$drop_action=$_GET["drop_action"];}
|
|
elseif (isset($_POST["drop_action"])) {$drop_action=$_POST["drop_action"];}
|
|
if (isset($_GET["dtmf_send_extension"])) {$dtmf_send_extension=$_GET["dtmf_send_extension"];}
|
|
elseif (isset($_POST["dtmf_send_extension"])) {$dtmf_send_extension=$_POST["dtmf_send_extension"];}
|
|
if (isset($_GET["enable_fast_refresh"])) {$enable_fast_refresh=$_GET["enable_fast_refresh"];}
|
|
elseif (isset($_POST["enable_fast_refresh"])) {$enable_fast_refresh=$_POST["enable_fast_refresh"];}
|
|
if (isset($_GET["enable_persistant_mysql"])) {$enable_persistant_mysql=$_GET["enable_persistant_mysql"];}
|
|
elseif (isset($_POST["enable_persistant_mysql"])) {$enable_persistant_mysql=$_POST["enable_persistant_mysql"];}
|
|
if (isset($_GET["ext_context"])) {$ext_context=$_GET["ext_context"];}
|
|
elseif (isset($_POST["ext_context"])) {$ext_context=$_POST["ext_context"];}
|
|
if (isset($_GET["extension"])) {$extension=$_GET["extension"];}
|
|
elseif (isset($_POST["extension"])) {$extension=$_POST["extension"];}
|
|
if (isset($_GET["fast_refresh_rate"])) {$fast_refresh_rate=$_GET["fast_refresh_rate"];}
|
|
elseif (isset($_POST["fast_refresh_rate"])) {$fast_refresh_rate=$_POST["fast_refresh_rate"];}
|
|
if (isset($_GET["force_logout"])) {$force_logout=$_GET["force_logout"];}
|
|
elseif (isset($_POST["force_logout"])) {$force_logout=$_POST["force_logout"];}
|
|
if (isset($_GET["fronter_display"])) {$fronter_display=$_GET["fronter_display"];}
|
|
elseif (isset($_POST["fronter_display"])) {$fronter_display=$_POST["fronter_display"];}
|
|
if (isset($_GET["full_name"])) {$full_name=$_GET["full_name"];}
|
|
elseif (isset($_POST["full_name"])) {$full_name=$_POST["full_name"];}
|
|
if (isset($_GET["fullname"])) {$fullname=$_GET["fullname"];}
|
|
elseif (isset($_POST["fullname"])) {$fullname=$_POST["fullname"];}
|
|
if (isset($_GET["get_call_launch"])) {$get_call_launch=$_GET["get_call_launch"];}
|
|
elseif (isset($_POST["get_call_launch"])) {$get_call_launch=$_POST["get_call_launch"];}
|
|
if (isset($_GET["group_color"])) {$group_color=$_GET["group_color"];}
|
|
elseif (isset($_POST["group_color"])) {$group_color=$_POST["group_color"];}
|
|
if (isset($_GET["group_id"])) {$group_id=$_GET["group_id"];}
|
|
elseif (isset($_POST["group_id"])) {$group_id=$_POST["group_id"];}
|
|
if (isset($_GET["group_name"])) {$group_name=$_GET["group_name"];}
|
|
elseif (isset($_POST["group_name"])) {$group_name=$_POST["group_name"];}
|
|
if (isset($_GET["groups"])) {$groups=$_GET["groups"];}
|
|
elseif (isset($_POST["groups"])) {$groups=$_POST["groups"];}
|
|
if (isset($_GET["XFERgroups"])) {$XFERgroups=$_GET["XFERgroups"];}
|
|
elseif (isset($_POST["XFERgroups"])) {$XFERgroups=$_POST["XFERgroups"];}
|
|
if (isset($_GET["HKstatus"])) {$HKstatus=$_GET["HKstatus"];}
|
|
elseif (isset($_POST["HKstatus"])) {$HKstatus=$_POST["HKstatus"];}
|
|
if (isset($_GET["hopper_level"])) {$hopper_level=$_GET["hopper_level"];}
|
|
elseif (isset($_POST["hopper_level"])) {$hopper_level=$_POST["hopper_level"];}
|
|
if (isset($_GET["hotkey"])) {$hotkey=$_GET["hotkey"];}
|
|
elseif (isset($_POST["hotkey"])) {$hotkey=$_POST["hotkey"];}
|
|
if (isset($_GET["hotkeys_active"])) {$hotkeys_active=$_GET["hotkeys_active"];}
|
|
elseif (isset($_POST["hotkeys_active"])) {$hotkeys_active=$_POST["hotkeys_active"];}
|
|
if (isset($_GET["install_directory"])) {$install_directory=$_GET["install_directory"];}
|
|
elseif (isset($_POST["install_directory"])) {$install_directory=$_POST["install_directory"];}
|
|
if (isset($_GET["lead_filter_comments"])) {$lead_filter_comments=$_GET["lead_filter_comments"];}
|
|
elseif (isset($_POST["lead_filter_comments"])) {$lead_filter_comments=$_POST["lead_filter_comments"];}
|
|
if (isset($_GET["lead_filter_id"])) {$lead_filter_id=$_GET["lead_filter_id"];}
|
|
elseif (isset($_POST["lead_filter_id"])) {$lead_filter_id=$_POST["lead_filter_id"];}
|
|
if (isset($_GET["lead_filter_name"])) {$lead_filter_name=$_GET["lead_filter_name"];}
|
|
elseif (isset($_POST["lead_filter_name"])) {$lead_filter_name=$_POST["lead_filter_name"];}
|
|
if (isset($_GET["lead_filter_sql"])) {$lead_filter_sql=$_GET["lead_filter_sql"];}
|
|
elseif (isset($_POST["lead_filter_sql"])) {$lead_filter_sql=$_POST["lead_filter_sql"];}
|
|
if (isset($_GET["lead_order"])) {$lead_order=$_GET["lead_order"];}
|
|
elseif (isset($_POST["lead_order"])) {$lead_order=$_POST["lead_order"];}
|
|
if (isset($_GET["list_id"])) {$list_id=$_GET["list_id"];}
|
|
elseif (isset($_POST["list_id"])) {$list_id=$_POST["list_id"];}
|
|
if (isset($_GET["list_name"])) {$list_name=$_GET["list_name"];}
|
|
elseif (isset($_POST["list_name"])) {$list_name=$_POST["list_name"];}
|
|
if (isset($_GET["load_leads"])) {$load_leads=$_GET["load_leads"];}
|
|
elseif (isset($_POST["load_leads"])) {$load_leads=$_POST["load_leads"];}
|
|
if (isset($_GET["local_call_time"])) {$local_call_time=$_GET["local_call_time"];}
|
|
elseif (isset($_POST["local_call_time"])) {$local_call_time=$_POST["local_call_time"];}
|
|
if (isset($_GET["local_gmt"])) {$local_gmt=$_GET["local_gmt"];}
|
|
elseif (isset($_POST["local_gmt"])) {$local_gmt=$_POST["local_gmt"];}
|
|
if (isset($_GET["local_web_callerID_URL"])) {$local_web_callerID_URL=$_GET["local_web_callerID_URL"];}
|
|
elseif (isset($_POST["local_web_callerID_URL"])) {$local_web_callerID_URL=$_POST["local_web_callerID_URL"];}
|
|
if (isset($_GET["login"])) {$login=$_GET["login"];}
|
|
elseif (isset($_POST["login"])) {$login=$_POST["login"];}
|
|
if (isset($_GET["login_campaign"])) {$login_campaign=$_GET["login_campaign"];}
|
|
elseif (isset($_POST["login_campaign"])) {$login_campaign=$_POST["login_campaign"];}
|
|
if (isset($_GET["login_pass"])) {$login_pass=$_GET["login_pass"];}
|
|
elseif (isset($_POST["login_pass"])) {$login_pass=$_POST["login_pass"];}
|
|
if (isset($_GET["login_user"])) {$login_user=$_GET["login_user"];}
|
|
elseif (isset($_POST["login_user"])) {$login_user=$_POST["login_user"];}
|
|
if (isset($_GET["max_vicidial_trunks"])) {$max_vicidial_trunks=$_GET["max_vicidial_trunks"];}
|
|
elseif (isset($_POST["max_vicidial_trunks"])) {$max_vicidial_trunks=$_POST["max_vicidial_trunks"];}
|
|
if (isset($_GET["modify_call_times"])) {$modify_call_times=$_GET["modify_call_times"];}
|
|
elseif (isset($_POST["modify_call_times"])) {$modify_call_times=$_POST["modify_call_times"];}
|
|
if (isset($_GET["modify_leads"])) {$modify_leads=$_GET["modify_leads"];}
|
|
elseif (isset($_POST["modify_leads"])) {$modify_leads=$_POST["modify_leads"];}
|
|
if (isset($_GET["monitor_prefix"])) {$monitor_prefix=$_GET["monitor_prefix"];}
|
|
elseif (isset($_POST["monitor_prefix"])) {$monitor_prefix=$_POST["monitor_prefix"];}
|
|
if (isset($_GET["next_agent_call"])) {$next_agent_call=$_GET["next_agent_call"];}
|
|
elseif (isset($_POST["next_agent_call"])) {$next_agent_call=$_POST["next_agent_call"];}
|
|
if (isset($_GET["number_of_lines"])) {$number_of_lines=$_GET["number_of_lines"];}
|
|
elseif (isset($_POST["number_of_lines"])) {$number_of_lines=$_POST["number_of_lines"];}
|
|
if (isset($_GET["old_campaign_id"])) {$old_campaign_id=$_GET["old_campaign_id"];}
|
|
elseif (isset($_POST["old_campaign_id"])) {$old_campaign_id=$_POST["old_campaign_id"];}
|
|
if (isset($_GET["old_conf_exten"])) {$old_conf_exten=$_GET["old_conf_exten"];}
|
|
elseif (isset($_POST["old_conf_exten"])) {$old_conf_exten=$_POST["old_conf_exten"];}
|
|
if (isset($_GET["old_extension"])) {$old_extension=$_GET["old_extension"];}
|
|
elseif (isset($_POST["old_extension"])) {$old_extension=$_POST["old_extension"];}
|
|
if (isset($_GET["old_server_id"])) {$old_server_id=$_GET["old_server_id"];}
|
|
elseif (isset($_POST["old_server_id"])) {$old_server_id=$_POST["old_server_id"];}
|
|
if (isset($_GET["old_server_ip"])) {$old_server_ip=$_GET["old_server_ip"];}
|
|
elseif (isset($_POST["old_server_ip"])) {$old_server_ip=$_POST["old_server_ip"];}
|
|
if (isset($_GET["OLDuser_group"])) {$OLDuser_group=$_GET["OLDuser_group"];}
|
|
elseif (isset($_POST["OLDuser_group"])) {$OLDuser_group=$_POST["OLDuser_group"];}
|
|
if (isset($_GET["omit_phone_code"])) {$omit_phone_code=$_GET["omit_phone_code"];}
|
|
elseif (isset($_POST["omit_phone_code"])) {$omit_phone_code=$_POST["omit_phone_code"];}
|
|
if (isset($_GET["outbound_cid"])) {$outbound_cid=$_GET["outbound_cid"];}
|
|
elseif (isset($_POST["outbound_cid"])) {$outbound_cid=$_POST["outbound_cid"];}
|
|
if (isset($_GET["park_ext"])) {$park_ext=$_GET["park_ext"];}
|
|
elseif (isset($_POST["park_ext"])) {$park_ext=$_POST["park_ext"];}
|
|
if (isset($_GET["park_file_name"])) {$park_file_name=$_GET["park_file_name"];}
|
|
elseif (isset($_POST["park_file_name"])) {$park_file_name=$_POST["park_file_name"];}
|
|
if (isset($_GET["park_on_extension"])) {$park_on_extension=$_GET["park_on_extension"];}
|
|
elseif (isset($_POST["park_on_extension"])) {$park_on_extension=$_POST["park_on_extension"];}
|
|
if (isset($_GET["pass"])) {$pass=$_GET["pass"];}
|
|
elseif (isset($_POST["pass"])) {$pass=$_POST["pass"];}
|
|
if (isset($_GET["phone_ip"])) {$phone_ip=$_GET["phone_ip"];}
|
|
elseif (isset($_POST["phone_ip"])) {$phone_ip=$_POST["phone_ip"];}
|
|
if (isset($_GET["phone_login"])) {$phone_login=$_GET["phone_login"];}
|
|
elseif (isset($_POST["phone_login"])) {$phone_login=$_POST["phone_login"];}
|
|
if (isset($_GET["phone_number"])) {$phone_number=$_GET["phone_number"];}
|
|
elseif (isset($_POST["phone_number"])) {$phone_number=$_POST["phone_number"];}
|
|
if (isset($_GET["phone_pass"])) {$phone_pass=$_GET["phone_pass"];}
|
|
elseif (isset($_POST["phone_pass"])) {$phone_pass=$_POST["phone_pass"];}
|
|
if (isset($_GET["phone_type"])) {$phone_type=$_GET["phone_type"];}
|
|
elseif (isset($_POST["phone_type"])) {$phone_type=$_POST["phone_type"];}
|
|
if (isset($_GET["picture"])) {$picture=$_GET["picture"];}
|
|
elseif (isset($_POST["picture"])) {$picture=$_POST["picture"];}
|
|
if (isset($_GET["protocol"])) {$protocol=$_GET["protocol"];}
|
|
elseif (isset($_POST["protocol"])) {$protocol=$_POST["protocol"];}
|
|
if (isset($_GET["QUEUE_ACTION_enabled"])) {$QUEUE_ACTION_enabled=$_GET["QUEUE_ACTION_enabled"];}
|
|
elseif (isset($_POST["QUEUE_ACTION_enabled"])) {$QUEUE_ACTION_enabled=$_POST["QUEUE_ACTION_enabled"];}
|
|
if (isset($_GET["recording_exten"])) {$recording_exten=$_GET["recording_exten"];}
|
|
elseif (isset($_POST["recording_exten"])) {$recording_exten=$_POST["recording_exten"];}
|
|
if (isset($_GET["remote_agent_id"])) {$remote_agent_id=$_GET["remote_agent_id"];}
|
|
elseif (isset($_POST["remote_agent_id"])) {$remote_agent_id=$_POST["remote_agent_id"];}
|
|
if (isset($_GET["reset_hopper"])) {$reset_hopper=$_GET["reset_hopper"];}
|
|
elseif (isset($_POST["reset_hopper"])) {$reset_hopper=$_POST["reset_hopper"];}
|
|
if (isset($_GET["reset_list"])) {$reset_list=$_GET["reset_list"];}
|
|
elseif (isset($_POST["reset_list"])) {$reset_list=$_POST["reset_list"];}
|
|
if (isset($_GET["safe_harbor_exten"])) {$safe_harbor_exten=$_GET["safe_harbor_exten"];}
|
|
elseif (isset($_POST["safe_harbor_exten"])) {$safe_harbor_exten=$_POST["safe_harbor_exten"];}
|
|
if (isset($_GET["drop_action"])) {$drop_action=$_GET["drop_action"];}
|
|
elseif (isset($_POST["drop_action"])) {$drop_action=$_POST["drop_action"];}
|
|
if (isset($_GET["scheduled_callbacks"])) {$scheduled_callbacks=$_GET["scheduled_callbacks"];}
|
|
elseif (isset($_POST["scheduled_callbacks"])) {$scheduled_callbacks=$_POST["scheduled_callbacks"];}
|
|
if (isset($_GET["script_comments"])) {$script_comments=$_GET["script_comments"];}
|
|
elseif (isset($_POST["script_comments"])) {$script_comments=$_POST["script_comments"];}
|
|
if (isset($_GET["script_id"])) {$script_id=$_GET["script_id"];}
|
|
elseif (isset($_POST["script_id"])) {$script_id=$_POST["script_id"];}
|
|
if (isset($_GET["script_name"])) {$script_name=$_GET["script_name"];}
|
|
elseif (isset($_POST["script_name"])) {$script_name=$_POST["script_name"];}
|
|
if (isset($_GET["script_text"])) {$script_text=$_GET["script_text"];}
|
|
elseif (isset($_POST["script_text"])) {$script_text=$_POST["script_text"];}
|
|
if (isset($_GET["selectable"])) {$selectable=$_GET["selectable"];}
|
|
elseif (isset($_POST["selectable"])) {$selectable=$_POST["selectable"];}
|
|
if (isset($_GET["server_description"])) {$server_description=$_GET["server_description"];}
|
|
elseif (isset($_POST["server_description"])) {$server_description=$_POST["server_description"];}
|
|
if (isset($_GET["server_id"])) {$server_id=$_GET["server_id"];}
|
|
elseif (isset($_POST["server_id"])) {$server_id=$_POST["server_id"];}
|
|
if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];}
|
|
elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];}
|
|
if (isset($_GET["stage"])) {$stage=$_GET["stage"];}
|
|
elseif (isset($_POST["stage"])) {$stage=$_POST["stage"];}
|
|
if (isset($_GET["state_call_time_state"])) {$state_call_time_state=$_GET["state_call_time_state"];}
|
|
elseif (isset($_POST["state_call_time_state"])) {$state_call_time_state=$_POST["state_call_time_state"];}
|
|
if (isset($_GET["state_rule"])) {$state_rule=$_GET["state_rule"];}
|
|
elseif (isset($_POST["state_rule"])) {$state_rule=$_POST["state_rule"];}
|
|
if (isset($_GET["status"])) {$status=$_GET["status"];}
|
|
elseif (isset($_POST["status"])) {$status=$_POST["status"];}
|
|
if (isset($_GET["status_name"])) {$status_name=$_GET["status_name"];}
|
|
elseif (isset($_POST["status_name"])) {$status_name=$_POST["status_name"];}
|
|
if (isset($_GET["submit"])) {$submit=$_GET["submit"];}
|
|
elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];}
|
|
if (isset($_GET["VALIDER"])) {$VALIDER=$_GET["VALIDER"];}
|
|
elseif (isset($_POST["VALIDER"])) {$VALIDER=$_POST["VALIDER"];}
|
|
if (isset($_GET["sys_perf_log"])) {$sys_perf_log=$_GET["sys_perf_log"];}
|
|
elseif (isset($_POST["sys_perf_log"])) {$sys_perf_log=$_POST["sys_perf_log"];}
|
|
if (isset($_GET["telnet_host"])) {$telnet_host=$_GET["telnet_host"];}
|
|
elseif (isset($_POST["telnet_host"])) {$telnet_host=$_POST["telnet_host"];}
|
|
if (isset($_GET["telnet_port"])) {$telnet_port=$_GET["telnet_port"];}
|
|
elseif (isset($_POST["telnet_port"])) {$telnet_port=$_POST["telnet_port"];}
|
|
if (isset($_GET["updater_check_enabled"])) {$updater_check_enabled=$_GET["updater_check_enabled"];}
|
|
elseif (isset($_POST["updater_check_enabled"])) {$updater_check_enabled=$_POST["updater_check_enabled"];}
|
|
if (isset($_GET["use_internal_dnc"])) {$use_internal_dnc=$_GET["use_internal_dnc"];}
|
|
elseif (isset($_POST["use_internal_dnc"])) {$use_internal_dnc=$_POST["use_internal_dnc"];}
|
|
if (isset($_GET["use_campaign_dnc"])) {$use_campaign_dnc=$_GET["use_campaign_dnc"];}
|
|
elseif (isset($_POST["use_campaign_dnc"])) {$use_campaign_dnc=$_POST["use_campaign_dnc"];}
|
|
if (isset($_GET["user"])) {$user=$_GET["user"];}
|
|
elseif (isset($_POST["user"])) {$user=$_POST["user"];}
|
|
if (isset($_GET["user_group"])) {$user_group=$_GET["user_group"];}
|
|
elseif (isset($_POST["user_group"])) {$user_group=$_POST["user_group"];}
|
|
if (isset($_GET["user_level"])) {$user_level=$_GET["user_level"];}
|
|
elseif (isset($_POST["user_level"])) {$user_level=$_POST["user_level"];}
|
|
if (isset($_GET["user_start"])) {$user_start=$_GET["user_start"];}
|
|
elseif (isset($_POST["user_start"])) {$user_start=$_POST["user_start"];}
|
|
if (isset($_GET["user_switching_enabled"])) {$user_switching_enabled=$_GET["user_switching_enabled"];}
|
|
elseif (isset($_POST["user_switching_enabled"])) {$user_switching_enabled=$_POST["user_switching_enabled"];}
|
|
if (isset($_GET["vd_server_logs"])) {$vd_server_logs=$_GET["vd_server_logs"];}
|
|
elseif (isset($_POST["vd_server_logs"])) {$vd_server_logs=$_POST["vd_server_logs"];}
|
|
if (isset($_GET["VDstop_rec_after_each_call"])) {$VDstop_rec_after_each_call=$_GET["VDstop_rec_after_each_call"];}
|
|
elseif (isset($_POST["VDstop_rec_after_each_call"])) {$VDstop_rec_after_each_call=$_POST["VDstop_rec_after_each_call"];}
|
|
if (isset($_GET["VICIDIAL_park_on_extension"])) {$VICIDIAL_park_on_extension=$_GET["VICIDIAL_park_on_extension"];}
|
|
elseif (isset($_POST["VICIDIAL_park_on_extension"])) {$VICIDIAL_park_on_extension=$_POST["VICIDIAL_park_on_extension"];}
|
|
if (isset($_GET["VICIDIAL_park_on_filename"])) {$VICIDIAL_park_on_filename=$_GET["VICIDIAL_park_on_filename"];}
|
|
elseif (isset($_POST["VICIDIAL_park_on_filename"])) {$VICIDIAL_park_on_filename=$_POST["VICIDIAL_park_on_filename"];}
|
|
if (isset($_GET["vicidial_recording"])) {$vicidial_recording=$_GET["vicidial_recording"];}
|
|
elseif (isset($_POST["vicidial_recording"])) {$vicidial_recording=$_POST["vicidial_recording"];}
|
|
if (isset($_GET["vicidial_transfers"])) {$vicidial_transfers=$_GET["vicidial_transfers"];}
|
|
elseif (isset($_POST["vicidial_transfers"])) {$vicidial_transfers=$_POST["vicidial_transfers"];}
|
|
if (isset($_GET["VICIDIAL_web_URL"])) {$VICIDIAL_web_URL=$_GET["VICIDIAL_web_URL"];}
|
|
elseif (isset($_POST["VICIDIAL_web_URL"])) {$VICIDIAL_web_URL=$_POST["VICIDIAL_web_URL"];}
|
|
if (isset($_GET["voicemail_button_enabled"])) {$voicemail_button_enabled=$_GET["voicemail_button_enabled"];}
|
|
elseif (isset($_POST["voicemail_button_enabled"])) {$voicemail_button_enabled=$_POST["voicemail_button_enabled"];}
|
|
if (isset($_GET["voicemail_dump_exten"])) {$voicemail_dump_exten=$_GET["voicemail_dump_exten"];}
|
|
elseif (isset($_POST["voicemail_dump_exten"])) {$voicemail_dump_exten=$_POST["voicemail_dump_exten"];}
|
|
if (isset($_GET["voicemail_ext"])) {$voicemail_ext=$_GET["voicemail_ext"];}
|
|
elseif (isset($_POST["voicemail_ext"])) {$voicemail_ext=$_POST["voicemail_ext"];}
|
|
if (isset($_GET["voicemail_exten"])) {$voicemail_exten=$_GET["voicemail_exten"];}
|
|
elseif (isset($_POST["voicemail_exten"])) {$voicemail_exten=$_POST["voicemail_exten"];}
|
|
if (isset($_GET["voicemail_id"])) {$voicemail_id=$_GET["voicemail_id"];}
|
|
elseif (isset($_POST["voicemail_id"])) {$voicemail_id=$_POST["voicemail_id"];}
|
|
if (isset($_GET["web_form_address"])) {$web_form_address=$_GET["web_form_address"];}
|
|
elseif (isset($_POST["web_form_address"])) {$web_form_address=$_POST["web_form_address"];}
|
|
if (isset($_GET["wrapup_message"])) {$wrapup_message=$_GET["wrapup_message"];}
|
|
elseif (isset($_POST["wrapup_message"])) {$wrapup_message=$_POST["wrapup_message"];}
|
|
if (isset($_GET["wrapup_seconds"])) {$wrapup_seconds=$_GET["wrapup_seconds"];}
|
|
elseif (isset($_POST["wrapup_seconds"])) {$wrapup_seconds=$_POST["wrapup_seconds"];}
|
|
if (isset($_GET["xferconf_a_dtmf"])) {$xferconf_a_dtmf=$_GET["xferconf_a_dtmf"];}
|
|
elseif (isset($_POST["xferconf_a_dtmf"])) {$xferconf_a_dtmf=$_POST["xferconf_a_dtmf"];}
|
|
if (isset($_GET["xferconf_a_number"])) {$xferconf_a_number=$_GET["xferconf_a_number"];}
|
|
elseif (isset($_POST["xferconf_a_number"])) {$xferconf_a_number=$_POST["xferconf_a_number"];}
|
|
if (isset($_GET["xferconf_b_dtmf"])) {$xferconf_b_dtmf=$_GET["xferconf_b_dtmf"];}
|
|
elseif (isset($_POST["xferconf_b_dtmf"])) {$xferconf_b_dtmf=$_POST["xferconf_b_dtmf"];}
|
|
if (isset($_GET["xferconf_b_number"])) {$xferconf_b_number=$_GET["xferconf_b_number"];}
|
|
elseif (isset($_POST["xferconf_b_number"])) {$xferconf_b_number=$_POST["xferconf_b_number"];}
|
|
if (isset($_GET["vicidial_balance_active"])) {$vicidial_balance_active=$_GET["vicidial_balance_active"];}
|
|
elseif (isset($_POST["vicidial_balance_active"])) {$vicidial_balance_active=$_POST["vicidial_balance_active"];}
|
|
if (isset($_GET["balance_trunks_offlimits"])) {$balance_trunks_offlimits=$_GET["balance_trunks_offlimits"];}
|
|
elseif (isset($_POST["balance_trunks_offlimits"])) {$balance_trunks_offlimits=$_POST["balance_trunks_offlimits"];}
|
|
if (isset($_GET["dedicated_trunks"])) {$dedicated_trunks=$_GET["dedicated_trunks"];}
|
|
elseif (isset($_POST["dedicated_trunks"])) {$dedicated_trunks=$_POST["dedicated_trunks"];}
|
|
if (isset($_GET["trunk_restriction"])) {$trunk_restriction=$_GET["trunk_restriction"];}
|
|
elseif (isset($_POST["trunk_restriction"])) {$trunk_restriction=$_POST["trunk_restriction"];}
|
|
if (isset($_GET["campaigns"])) {$campaigns=$_GET["campaigns"];}
|
|
elseif (isset($_POST["campaigns"])) {$campaigns=$_POST["campaigns"];}
|
|
if (isset($_GET["dial_level_override"])) {$dial_level_override=$_GET["dial_level_override"];}
|
|
elseif (isset($_POST["dial_level_override"])) {$dial_level_override=$_POST["dial_level_override"];}
|
|
if (isset($_GET["concurrent_transfers"])) {$concurrent_transfers=$_GET["concurrent_transfers"];}
|
|
elseif (isset($_POST["concurrent_transfers"])) {$concurrent_transfers=$_POST["concurrent_transfers"];}
|
|
if (isset($_GET["auto_alt_dial"])) {$auto_alt_dial=$_GET["auto_alt_dial"];}
|
|
elseif (isset($_POST["auto_alt_dial"])) {$auto_alt_dial=$_POST["auto_alt_dial"];}
|
|
if (isset($_GET["modify_users"])) {$modify_users=$_GET["modify_users"];}
|
|
elseif (isset($_POST["modify_users"])) {$modify_users=$_POST["modify_users"];}
|
|
if (isset($_GET["modify_campaigns"])) {$modify_campaigns=$_GET["modify_campaigns"];}
|
|
elseif (isset($_POST["modify_campaigns"])) {$modify_campaigns=$_POST["modify_campaigns"];}
|
|
if (isset($_GET["modify_lists"])) {$modify_lists=$_GET["modify_lists"];}
|
|
elseif (isset($_POST["modify_lists"])) {$modify_lists=$_POST["modify_lists"];}
|
|
if (isset($_GET["modify_scripts"])) {$modify_scripts=$_GET["modify_scripts"];}
|
|
elseif (isset($_POST["modify_scripts"])) {$modify_scripts=$_POST["modify_scripts"];}
|
|
if (isset($_GET["modify_filters"])) {$modify_filters=$_GET["modify_filters"];}
|
|
elseif (isset($_POST["modify_filters"])) {$modify_filters=$_POST["modify_filters"];}
|
|
if (isset($_GET["modify_ingroups"])) {$modify_ingroups=$_GET["modify_ingroups"];}
|
|
elseif (isset($_POST["modify_ingroups"])) {$modify_ingroups=$_POST["modify_ingroups"];}
|
|
if (isset($_GET["modify_usergroups"])) {$modify_usergroups=$_GET["modify_usergroups"];}
|
|
elseif (isset($_POST["modify_usergroups"])) {$modify_usergroups=$_POST["modify_usergroups"];}
|
|
if (isset($_GET["modify_remoteagents"])) {$modify_remoteagents=$_GET["modify_remoteagents"];}
|
|
elseif (isset($_POST["modify_remoteagents"])) {$modify_remoteagents=$_POST["modify_remoteagents"];}
|
|
if (isset($_GET["modify_servers"])) {$modify_servers=$_GET["modify_servers"];}
|
|
elseif (isset($_POST["modify_servers"])) {$modify_servers=$_POST["modify_servers"];}
|
|
if (isset($_GET["view_reports"])) {$view_reports=$_GET["view_reports"];}
|
|
elseif (isset($_POST["view_reports"])) {$view_reports=$_POST["view_reports"];}
|
|
if (isset($_GET["agent_pause_codes_active"])) {$agent_pause_codes_active=$_GET["agent_pause_codes_active"];}
|
|
elseif (isset($_POST["agent_pause_codes_active"])) {$agent_pause_codes_active=$_POST["agent_pause_codes_active"];}
|
|
if (isset($_GET["pause_code"])) {$pause_code=$_GET["pause_code"];}
|
|
elseif (isset($_POST["pause_code"])) {$pause_code=$_POST["pause_code"];}
|
|
if (isset($_GET["pause_code_name"])) {$pause_code_name=$_GET["pause_code_name"];}
|
|
elseif (isset($_POST["pause_code_name"])) {$pause_code_name=$_POST["pause_code_name"];}
|
|
if (isset($_GET["billable"])) {$billable=$_GET["billable"];}
|
|
elseif (isset($_POST["billable"])) {$billable=$_POST["billable"];}
|
|
if (isset($_GET["campaign_description"])) {$campaign_description=$_GET["campaign_description"];}
|
|
elseif (isset($_POST["campaign_description"])) {$campaign_description=$_POST["campaign_description"];}
|
|
if (isset($_GET["campaign_stats_refresh"])) {$campaign_stats_refresh=$_GET["campaign_stats_refresh"];}
|
|
elseif (isset($_POST["campaign_stats_refresh"])){$campaign_stats_refresh=$_POST["campaign_stats_refresh"];}
|
|
if (isset($_GET["list_description"])) {$list_description=$_GET["list_description"];}
|
|
elseif (isset($_POST["list_description"])) {$list_description=$_POST["list_description"];}
|
|
if (isset($_GET["vicidial_recording_override"])) {$vicidial_recording_override=$_GET["vicidial_recording_override"];}
|
|
elseif (isset($_POST["vicidial_recording_override"])) {$vicidial_recording_override=$_POST["vicidial_recording_override"];}
|
|
if (isset($_GET["use_non_latin"])) {$use_non_latin=$_GET["use_non_latin"];}
|
|
elseif (isset($_POST["use_non_latin"])) {$use_non_latin=$_POST["use_non_latin"];}
|
|
if (isset($_GET["webroot_writable"])) {$webroot_writable=$_GET["webroot_writable"];}
|
|
elseif (isset($_POST["webroot_writable"])) {$webroot_writable=$_POST["webroot_writable"];}
|
|
if (isset($_GET["enable_queuemetrics_logging"])) {$enable_queuemetrics_logging=$_GET["enable_queuemetrics_logging"];}
|
|
elseif (isset($_POST["enable_queuemetrics_logging"])) {$enable_queuemetrics_logging=$_POST["enable_queuemetrics_logging"];}
|
|
if (isset($_GET["queuemetrics_server_ip"])) {$queuemetrics_server_ip=$_GET["queuemetrics_server_ip"];}
|
|
elseif (isset($_POST["queuemetrics_server_ip"])) {$queuemetrics_server_ip=$_POST["queuemetrics_server_ip"];}
|
|
if (isset($_GET["queuemetrics_dbname"])) {$queuemetrics_dbname=$_GET["queuemetrics_dbname"];}
|
|
elseif (isset($_POST["queuemetrics_dbname"])) {$queuemetrics_dbname=$_POST["queuemetrics_dbname"];}
|
|
if (isset($_GET["queuemetrics_login"])) {$queuemetrics_login=$_GET["queuemetrics_login"];}
|
|
elseif (isset($_POST["queuemetrics_login"])) {$queuemetrics_login=$_POST["queuemetrics_login"];}
|
|
if (isset($_GET["queuemetrics_pass"])) {$queuemetrics_pass=$_GET["queuemetrics_pass"];}
|
|
elseif (isset($_POST["queuemetrics_pass"])) {$queuemetrics_pass=$_POST["queuemetrics_pass"];}
|
|
if (isset($_GET["queuemetrics_url"])) {$queuemetrics_url=$_GET["queuemetrics_url"];}
|
|
elseif (isset($_POST["queuemetrics_url"])) {$queuemetrics_url=$_POST["queuemetrics_url"];}
|
|
if (isset($_GET["queuemetrics_log_id"])) {$queuemetrics_log_id=$_GET["queuemetrics_log_id"];}
|
|
elseif (isset($_POST["queuemetrics_log_id"])) {$queuemetrics_log_id=$_POST["queuemetrics_log_id"];}
|
|
if (isset($_GET["dial_status"])) {$dial_status=$_GET["dial_status"];}
|
|
elseif (isset($_POST["dial_status"])) {$dial_status=$_POST["dial_status"];}
|
|
if (isset($_GET["queuemetrics_eq_prepend"])) {$queuemetrics_eq_prepend=$_GET["queuemetrics_eq_prepend"];}
|
|
elseif (isset($_POST["queuemetrics_eq_prepend"])) {$queuemetrics_eq_prepend=$_POST["queuemetrics_eq_prepend"];}
|
|
if (isset($_GET["vicidial_agent_disable"])) {$vicidial_agent_disable=$_GET["vicidial_agent_disable"];}
|
|
elseif (isset($_POST["vicidial_agent_disable"])) {$vicidial_agent_disable=$_POST["vicidial_agent_disable"];}
|
|
if (isset($_GET["disable_alter_custdata"])) {$disable_alter_custdata=$_GET["disable_alter_custdata"];}
|
|
elseif (isset($_POST["disable_alter_custdata"])) {$disable_alter_custdata=$_POST["disable_alter_custdata"];}
|
|
if (isset($_GET["alter_custdata_override"])) {$alter_custdata_override=$_GET["alter_custdata_override"];}
|
|
elseif (isset($_POST["alter_custdata_override"])) {$alter_custdata_override=$_POST["alter_custdata_override"];}
|
|
if (isset($_GET["no_hopper_leads_logins"])) {$no_hopper_leads_logins=$_GET["no_hopper_leads_logins"];}
|
|
elseif (isset($_POST["no_hopper_leads_logins"])) {$no_hopper_leads_logins=$_POST["no_hopper_leads_logins"];}
|
|
if (isset($_GET["enable_sipsak_messages"])) {$enable_sipsak_messages=$_GET["enable_sipsak_messages"];}
|
|
elseif (isset($_POST["enable_sipsak_messages"])) {$enable_sipsak_messages=$_POST["enable_sipsak_messages"];}
|
|
if (isset($_GET["allow_sipsak_messages"])) {$allow_sipsak_messages=$_GET["allow_sipsak_messages"];}
|
|
elseif (isset($_POST["allow_sipsak_messages"])) {$allow_sipsak_messages=$_POST["allow_sipsak_messages"];}
|
|
if (isset($_GET["admin_home_url"])) {$admin_home_url=$_GET["admin_home_url"];}
|
|
elseif (isset($_POST["admin_home_url"])) {$admin_home_url=$_POST["admin_home_url"];}
|
|
if (isset($_GET["list_order_mix"])) {$list_order_mix=$_GET["list_order_mix"];}
|
|
elseif (isset($_POST["list_order_mix"])) {$list_order_mix=$_POST["list_order_mix"];}
|
|
if (isset($_GET["vcl_id"])) {$vcl_id=$_GET["vcl_id"];}
|
|
elseif (isset($_POST["vcl_id"])) {$vcl_id=$_POST["vcl_id"];}
|
|
if (isset($_GET["vcl_name"])) {$vcl_name=$_GET["vcl_name"];}
|
|
elseif (isset($_POST["vcl_name"])) {$vcl_name=$_POST["vcl_name"];}
|
|
if (isset($_GET["list_mix_container"])) {$list_mix_container=$_GET["list_mix_container"];}
|
|
elseif (isset($_POST["list_mix_container"])) {$list_mix_container=$_POST["list_mix_container"];}
|
|
if (isset($_GET["mix_method"])) {$mix_method=$_GET["mix_method"];}
|
|
elseif (isset($_POST["mix_method"])) {$mix_method=$_POST["mix_method"];}
|
|
if (isset($_GET["human_answered"])) {$human_answered=$_GET["human_answered"];}
|
|
elseif (isset($_POST["human_answered"])) {$human_answered=$_POST["human_answered"];}
|
|
if (isset($_GET["category"])) {$category=$_GET["category"];}
|
|
elseif (isset($_POST["category"])) {$category=$_POST["category"];}
|
|
if (isset($_GET["vsc_id"])) {$vsc_id=$_GET["vsc_id"];}
|
|
elseif (isset($_POST["vsc_id"])) {$vsc_id=$_POST["vsc_id"];}
|
|
if (isset($_GET["vsc_name"])) {$vsc_name=$_GET["vsc_name"];}
|
|
elseif (isset($_POST["vsc_name"])) {$vsc_name=$_POST["vsc_name"];}
|
|
if (isset($_GET["vsc_description"])) {$vsc_description=$_GET["vsc_description"];}
|
|
elseif (isset($_POST["vsc_description"])) {$vsc_description=$_POST["vsc_description"];}
|
|
if (isset($_GET["tovdad_display"])) {$tovdad_display=$_GET["tovdad_display"];}
|
|
elseif (isset($_POST["tovdad_display"])) {$tovdad_display=$_POST["tovdad_display"];}
|
|
if (isset($_GET["mix_container_item"])) {$mix_container_item=$_GET["mix_container_item"];}
|
|
elseif (isset($_POST["mix_container_item"])) {$mix_container_item=$_POST["mix_container_item"];}
|
|
if (isset($_GET["enable_agc_xfer_log"])) {$enable_agc_xfer_log=$_GET["enable_agc_xfer_log"];}
|
|
elseif (isset($_POST["enable_agc_xfer_log"])) {$enable_agc_xfer_log=$_POST["enable_agc_xfer_log"];}
|
|
if (isset($_GET["after_hours_action"])) {$after_hours_action=$_GET["after_hours_action"];}
|
|
elseif (isset($_POST["after_hours_action"])) {$after_hours_action=$_POST["after_hours_action"];}
|
|
if (isset($_GET["after_hours_message_filename"])) {$after_hours_message_filename=$_GET["after_hours_message_filename"];}
|
|
elseif (isset($_POST["after_hours_message_filename"])) {$after_hours_message_filename=$_POST["after_hours_message_filename"];}
|
|
if (isset($_GET["after_hours_exten"])) {$after_hours_exten=$_GET["after_hours_exten"];}
|
|
elseif (isset($_POST["after_hours_exten"])) {$after_hours_exten=$_POST["after_hours_exten"];}
|
|
if (isset($_GET["after_hours_voicemail"])) {$after_hours_voicemail=$_GET["after_hours_voicemail"];}
|
|
elseif (isset($_POST["after_hours_voicemail"])) {$after_hours_voicemail=$_POST["after_hours_voicemail"];}
|
|
if (isset($_GET["welcome_message_filename"])) {$welcome_message_filename=$_GET["welcome_message_filename"];}
|
|
elseif (isset($_POST["welcome_message_filename"])) {$welcome_message_filename=$_POST["welcome_message_filename"];}
|
|
if (isset($_GET["moh_context"])) {$moh_context=$_GET["moh_context"];}
|
|
elseif (isset($_POST["moh_context"])) {$moh_context=$_POST["moh_context"];}
|
|
if (isset($_GET["onhold_prompt_filename"])) {$onhold_prompt_filename=$_GET["onhold_prompt_filename"];}
|
|
elseif (isset($_POST["onhold_prompt_filename"])) {$onhold_prompt_filename=$_POST["onhold_prompt_filename"];}
|
|
if (isset($_GET["prompt_interval"])) {$prompt_interval=$_GET["prompt_interval"];}
|
|
elseif (isset($_POST["prompt_interval"])) {$prompt_interval=$_POST["prompt_interval"];}
|
|
if (isset($_GET["agent_alert_exten"])) {$agent_alert_exten=$_GET["agent_alert_exten"];}
|
|
elseif (isset($_POST["agent_alert_exten"])) {$agent_alert_exten=$_POST["agent_alert_exten"];}
|
|
if (isset($_GET["agent_alert_delay"])) {$agent_alert_delay=$_GET["agent_alert_delay"];}
|
|
elseif (isset($_POST["agent_alert_delay"])) {$agent_alert_delay=$_POST["agent_alert_delay"];}
|
|
if (isset($_GET["group_rank"])) {$group_rank=$_GET["group_rank"];}
|
|
elseif (isset($_POST["group_rank"])) {$group_rank=$_POST["group_rank"];}
|
|
if (isset($_GET["campaign_allow_inbound"])) {$campaign_allow_inbound=$_GET["campaign_allow_inbound"];}
|
|
elseif (isset($_POST["campaign_allow_inbound"])) {$campaign_allow_inbound=$_POST["campaign_allow_inbound"];}
|
|
if (isset($_GET["manual_dial_list_id"])) {$manual_dial_list_id=$_GET["manual_dial_list_id"];}
|
|
elseif (isset($_POST["manual_dial_list_id"])) {$manual_dial_list_id=$_POST["manual_dial_list_id"];}
|
|
if (isset($_GET["campaign_rank"])) {$campaign_rank=$_GET["campaign_rank"];}
|
|
elseif (isset($_POST["campaign_rank"])) {$campaign_rank=$_POST["campaign_rank"];}
|
|
if (isset($_GET["source_campaign_id"])) {$source_campaign_id=$_GET["source_campaign_id"];}
|
|
elseif (isset($_POST["source_campaign_id"])) {$source_campaign_id=$_POST["source_campaign_id"];}
|
|
if (isset($_GET["source_user_id"])) {$source_user_id=$_GET["source_user_id"];}
|
|
elseif (isset($_POST["source_user_id"])) {$source_user_id=$_POST["source_user_id"];}
|
|
if (isset($_GET["source_group_id"])) {$source_group_id=$_GET["source_group_id"];}
|
|
elseif (isset($_POST["source_group_id"])) {$source_group_id=$_POST["source_group_id"];}
|
|
if (isset($_GET["default_xfer_group"])) {$default_xfer_group=$_GET["default_xfer_group"];}
|
|
elseif (isset($_POST["default_xfer_group"])) {$default_xfer_group=$_POST["default_xfer_group"];}
|
|
if (isset($_GET["qc_enabled"])) {$qc_enabled=$_GET["qc_enabled"];}
|
|
elseif (isset($_POST["qc_enabled"])) {$qc_enabled=$_POST["qc_enabled"];}
|
|
if (isset($_GET["qc_user_level"])) {$qc_user_level=$_GET["qc_user_level"];}
|
|
elseif (isset($_POST["qc_user_level"])) {$qc_user_level=$_POST["qc_user_level"];}
|
|
if (isset($_GET["qc_pass"])) {$qc_pass=$_GET["qc_pass"];}
|
|
elseif (isset($_POST["qc_pass"])) {$qc_pass=$_POST["qc_pass"];}
|
|
if (isset($_GET["qc_finish"])) {$qc_finish=$_GET["qc_finish"];}
|
|
elseif (isset($_POST["qc_finish"])) {$qc_finish=$_POST["qc_finish"];}
|
|
if (isset($_GET["qc_commit"])) {$qc_commit=$_GET["qc_commit"];}
|
|
elseif (isset($_POST["qc_commit"])) {$qc_commit=$_POST["qc_commit"];}
|
|
if (isset($_GET["qc_campaigns"])) {$qc_campaigns=$_GET["qc_campaigns"];}
|
|
elseif (isset($_POST["qc_campaigns"])) {$qc_campaigns=$_POST["qc_campaigns"];}
|
|
if (isset($_GET["qc_groups"])) {$qc_groups=$_GET["qc_groups"];}
|
|
elseif (isset($_POST["qc_groups"])) {$qc_groups=$_POST["qc_groups"];}
|
|
if (isset($_GET["queue_priority"])) {$queue_priority=$_GET["queue_priority"];}
|
|
elseif (isset($_POST["queue_priority"])) {$queue_priority=$_POST["queue_priority"];}
|
|
if (isset($_GET["drop_inbound_group"])) {$drop_inbound_group=$_GET["drop_inbound_group"];}
|
|
elseif (isset($_POST["drop_inbound_group"])) {$drop_inbound_group=$_POST["drop_inbound_group"];}
|
|
if (isset($_GET["qc_statuses"])) {$qc_statuses=$_GET["qc_statuses"];}
|
|
elseif (isset($_POST["qc_statuses"])) {$qc_statuses=$_POST["qc_statuses"];}
|
|
if (isset($_GET["qc_lists"])) {$qc_lists=$_GET["qc_lists"];}
|
|
elseif (isset($_POST["qc_lists"])) {$qc_lists=$_POST["qc_lists"];}
|
|
if (isset($_GET["qc_get_record_launch"])) {$qc_get_record_launch=$_GET["qc_get_record_launch"];}
|
|
elseif (isset($_POST["qc_get_record_launch"])) {$qc_get_record_launch=$_POST["qc_get_record_launch"];}
|
|
if (isset($_GET["qc_show_recording"])) {$qc_show_recording=$_GET["qc_show_recording"];}
|
|
elseif (isset($_POST["qc_show_recording"])) {$qc_show_recording=$_POST["qc_show_recording"];}
|
|
if (isset($_GET["qc_shift_id"])) {$qc_shift_id=$_GET["qc_shift_id"];}
|
|
elseif (isset($_POST["qc_shift_id"])) {$qc_shift_id=$_POST["qc_shift_id"];}
|
|
if (isset($_GET["qc_web_form_address"])) {$qc_web_form_address=$_GET["qc_web_form_address"];}
|
|
elseif (isset($_POST["qc_web_form_address"])) {$qc_web_form_address=$_POST["qc_web_form_address"];}
|
|
if (isset($_GET["qc_script"])) {$qc_script=$_GET["qc_script"];}
|
|
elseif (isset($_POST["qc_script"])) {$qc_script=$_POST["qc_script"];}
|
|
if (isset($_GET["ingroup_recording_override"])) {$ingroup_recording_override=$_GET["ingroup_recording_override"];}
|
|
elseif (isset($_POST["ingroup_recording_override"])) {$ingroup_recording_override=$_POST["ingroup_recording_override"];}
|
|
if (isset($_GET["code"])) {$code=$_GET["code"];}
|
|
elseif (isset($_POST["code"])) {$code=$_POST["code"];}
|
|
if (isset($_GET["code_name"])) {$code_name=$_GET["code_name"];}
|
|
elseif (isset($_POST["code_name"])) {$code_name=$_POST["code_name"];}
|
|
if (isset($_GET["afterhours_xfer_group"])) {$afterhours_xfer_group=$_GET["afterhours_xfer_group"];}
|
|
elseif (isset($_POST["afterhours_xfer_group"])) {$afterhours_xfer_group=$_POST["afterhours_xfer_group"];}
|
|
if (isset($_GET["alias_id"])) {$alias_id=$_GET["alias_id"];}
|
|
elseif (isset($_POST["alias_id"])) {$alias_id=$_POST["alias_id"];}
|
|
if (isset($_GET["alias_name"])) {$alias_name=$_GET["alias_name"];}
|
|
elseif (isset($_POST["alias_name"])) {$alias_name=$_POST["alias_name"];}
|
|
if (isset($_GET["logins_list"])) {$logins_list=$_GET["logins_list"];}
|
|
elseif (isset($_POST["logins_list"])) {$logins_list=$_POST["logins_list"];}
|
|
if (isset($_GET["shift_id"])) {$shift_id=$_GET["shift_id"];}
|
|
elseif (isset($_POST["shift_id"])) {$shift_id=$_POST["shift_id"];}
|
|
if (isset($_GET["shift_name"])) {$shift_name=$_GET["shift_name"];}
|
|
elseif (isset($_POST["shift_name"])) {$shift_name=$_POST["shift_name"];}
|
|
if (isset($_GET["shift_start_time"])) {$shift_start_time=$_GET["shift_start_time"];}
|
|
elseif (isset($_POST["shift_start_time"])) {$shift_start_time=$_POST["shift_start_time"];}
|
|
if (isset($_GET["shift_length"])) {$shift_length=$_GET["shift_length"];}
|
|
elseif (isset($_POST["shift_length"])) {$shift_length=$_POST["shift_length"];}
|
|
if (isset($_GET["shift_weekdays"])) {$shift_weekdays=$_GET["shift_weekdays"];}
|
|
elseif (isset($_POST["shift_weekdays"])) {$shift_weekdays=$_POST["shift_weekdays"];}
|
|
if (isset($_GET["group_shifts"])) {$group_shifts=$_GET["group_shifts"];}
|
|
elseif (isset($_POST["group_shifts"])) {$group_shifts=$_POST["group_shifts"];}
|
|
if (isset($_GET["timeclock_end_of_day"])) {$timeclock_end_of_day=$_GET["timeclock_end_of_day"];}
|
|
elseif (isset($_POST["timeclock_end_of_day"])) {$timeclock_end_of_day=$_POST["timeclock_end_of_day"];}
|
|
if (isset($_GET["survey_first_audio_file"])) {$survey_first_audio_file=$_GET["survey_first_audio_file"];}
|
|
elseif (isset($_POST["survey_first_audio_file"])) {$survey_first_audio_file=$_POST["survey_first_audio_file"];}
|
|
if (isset($_GET["survey_dtmf_digits"])) {$survey_dtmf_digits=$_GET["survey_dtmf_digits"];}
|
|
elseif (isset($_POST["survey_dtmf_digits"])) {$survey_dtmf_digits=$_POST["survey_dtmf_digits"];}
|
|
if (isset($_GET["survey_ni_digit"])) {$survey_ni_digit=$_GET["survey_ni_digit"];}
|
|
elseif (isset($_POST["survey_ni_digit"])) {$survey_ni_digit=$_POST["survey_ni_digit"];}
|
|
if (isset($_GET["survey_opt_in_audio_file"])) {$survey_opt_in_audio_file=$_GET["survey_opt_in_audio_file"];}
|
|
elseif (isset($_POST["survey_opt_in_audio_file"])) {$survey_opt_in_audio_file=$_POST["survey_opt_in_audio_file"];}
|
|
if (isset($_GET["survey_ni_audio_file"])) {$survey_ni_audio_file=$_GET["survey_ni_audio_file"];}
|
|
elseif (isset($_POST["survey_ni_audio_file"])) {$survey_ni_audio_file=$_POST["survey_ni_audio_file"];}
|
|
if (isset($_GET["survey_method"])) {$survey_method=$_GET["survey_method"];}
|
|
elseif (isset($_POST["survey_method"])) {$survey_method=$_POST["survey_method"];}
|
|
if (isset($_GET["survey_no_response_action"])) {$survey_no_response_action=$_GET["survey_no_response_action"];}
|
|
elseif (isset($_POST["survey_no_response_action"])) {$survey_no_response_action=$_POST["survey_no_response_action"];}
|
|
if (isset($_GET["survey_ni_status"])) {$survey_ni_status=$_GET["survey_ni_status"];}
|
|
elseif (isset($_POST["survey_ni_status"])) {$survey_ni_status=$_POST["survey_ni_status"];}
|
|
if (isset($_GET["survey_response_digit_map"])) {$survey_response_digit_map=$_GET["survey_response_digit_map"];}
|
|
elseif (isset($_POST["survey_response_digit_map"])) {$survey_response_digit_map=$_POST["survey_response_digit_map"];}
|
|
if (isset($_GET["survey_xfer_exten"])) {$survey_xfer_exten=$_GET["survey_xfer_exten"];}
|
|
elseif (isset($_POST["survey_xfer_exten"])) {$survey_xfer_exten=$_POST["survey_xfer_exten"];}
|
|
if (isset($_GET["survey_camp_record_dir"])) {$survey_camp_record_dir=$_GET["survey_camp_record_dir"];}
|
|
elseif (isset($_POST["survey_camp_record_dir"])) {$survey_camp_record_dir=$_POST["survey_camp_record_dir"];}
|
|
if (isset($_GET["add_timeclock_log"])) {$add_timeclock_log=$_GET["add_timeclock_log"];}
|
|
elseif (isset($_POST["add_timeclock_log"])) {$add_timeclock_log=$_POST["add_timeclock_log"];}
|
|
if (isset($_GET["modify_timeclock_log"])) {$modify_timeclock_log=$_GET["modify_timeclock_log"];}
|
|
elseif (isset($_POST["modify_timeclock_log"])) {$modify_timeclock_log=$_POST["modify_timeclock_log"];}
|
|
if (isset($_GET["delete_timeclock_log"])) {$delete_timeclock_log=$_GET["delete_timeclock_log"];}
|
|
elseif (isset($_POST["delete_timeclock_log"])) {$delete_timeclock_log=$_POST["delete_timeclock_log"];}
|
|
if (isset($_GET["phone_numbers"])) {$phone_numbers=$_GET["phone_numbers"];}
|
|
elseif (isset($_POST["phone_numbers"])) {$phone_numbers=$_POST["phone_numbers"];}
|
|
if (isset($_GET["vdc_header_date_format"])) {$vdc_header_date_format=$_GET["vdc_header_date_format"];}
|
|
elseif (isset($_POST["vdc_header_date_format"])) {$vdc_header_date_format=$_POST["vdc_header_date_format"];}
|
|
if (isset($_GET["vdc_customer_date_format"])) {$vdc_customer_date_format=$_GET["vdc_customer_date_format"];}
|
|
elseif (isset($_POST["vdc_customer_date_format"])) {$vdc_customer_date_format=$_POST["vdc_customer_date_format"];}
|
|
if (isset($_GET["vdc_header_phone_format"])) {$vdc_header_phone_format=$_GET["vdc_header_phone_format"];}
|
|
elseif (isset($_POST["vdc_header_phone_format"])) {$vdc_header_phone_format=$_POST["vdc_header_phone_format"];}
|
|
if (isset($_GET["disable_alter_custphone"])) {$disable_alter_custphone=$_GET["disable_alter_custphone"];}
|
|
elseif (isset($_POST["disable_alter_custphone"])) {$disable_alter_custphone=$_POST["disable_alter_custphone"];}
|
|
if (isset($_GET["alter_custphone_override"])) {$alter_custphone_override=$_GET["alter_custphone_override"];}
|
|
elseif (isset($_POST["alter_custphone_override"])) {$alter_custphone_override=$_POST["alter_custphone_override"];}
|
|
if (isset($_GET["vdc_agent_api_access"])) {$vdc_agent_api_access=$_GET["vdc_agent_api_access"];}
|
|
elseif (isset($_POST["vdc_agent_api_access"])) {$vdc_agent_api_access=$_POST["vdc_agent_api_access"];}
|
|
if (isset($_GET["vdc_agent_api_active"])) {$vdc_agent_api_active=$_GET["vdc_agent_api_active"];}
|
|
elseif (isset($_POST["vdc_agent_api_active"])) {$vdc_agent_api_active=$_POST["vdc_agent_api_active"];}
|
|
if (isset($_GET["display_queue_count"])) {$display_queue_count=$_GET["display_queue_count"];}
|
|
elseif (isset($_POST["display_queue_count"])) {$display_queue_count=$_POST["display_queue_count"];}
|
|
if (isset($_GET["sale_category"])) {$sale_category=$_GET["sale_category"];}
|
|
elseif (isset($_POST["sale_category"])) {$sale_category=$_POST["sale_category"];}
|
|
if (isset($_GET["dead_lead_category"])) {$dead_lead_category=$_GET["dead_lead_category"];}
|
|
elseif (isset($_POST["dead_lead_category"])) {$dead_lead_category=$_POST["dead_lead_category"];}
|
|
if (isset($_GET["manual_dial_filter"])) {$manual_dial_filter=$_GET["manual_dial_filter"];}
|
|
elseif (isset($_POST["manual_dial_filter"])) {$manual_dial_filter=$_POST["manual_dial_filter"];}
|
|
if (isset($_GET["agent_clipboard_copy"])) {$agent_clipboard_copy=$_GET["agent_clipboard_copy"];}
|
|
elseif (isset($_POST["agent_clipboard_copy"])) {$agent_clipboard_copy=$_POST["agent_clipboard_copy"];}
|
|
if (isset($_GET["agent_extended_alt_dial"])) {$agent_extended_alt_dial=$_GET["agent_extended_alt_dial"];}
|
|
elseif (isset($_POST["agent_extended_alt_dial"])) {$agent_extended_alt_dial=$_POST["agent_extended_alt_dial"];}
|
|
if (isset($_GET["play_place_in_line"])) {$play_place_in_line=$_GET["play_place_in_line"];}
|
|
elseif (isset($_POST["play_place_in_line"])) {$play_place_in_line=$_POST["play_place_in_line"];}
|
|
if (isset($_GET["play_estimate_hold_time"])) {$play_estimate_hold_time=$_GET["play_estimate_hold_time"];}
|
|
elseif (isset($_POST["play_estimate_hold_time"])) {$play_estimate_hold_time=$_POST["play_estimate_hold_time"];}
|
|
if (isset($_GET["hold_time_option"])) {$hold_time_option=$_GET["hold_time_option"];}
|
|
elseif (isset($_POST["hold_time_option"])) {$hold_time_option=$_POST["hold_time_option"];}
|
|
if (isset($_GET["hold_time_option_seconds"])) {$hold_time_option_seconds=$_GET["hold_time_option_seconds"];}
|
|
elseif (isset($_POST["hold_time_option_seconds"])) {$hold_time_option_seconds=$_POST["hold_time_option_seconds"];}
|
|
if (isset($_GET["hold_time_option_exten"])) {$hold_time_option_exten=$_GET["hold_time_option_exten"];}
|
|
elseif (isset($_POST["hold_time_option_exten"])) {$hold_time_option_exten=$_POST["hold_time_option_exten"];}
|
|
if (isset($_GET["hold_time_option_voicemail"])) {$hold_time_option_voicemail=$_GET["hold_time_option_voicemail"];}
|
|
elseif (isset($_POST["hold_time_option_voicemail"])) {$hold_time_option_voicemail=$_POST["hold_time_option_voicemail"];}
|
|
if (isset($_GET["hold_time_option_xfer_group"])) {$hold_time_option_xfer_group=$_GET["hold_time_option_xfer_group"];}
|
|
elseif (isset($_POST["hold_time_option_xfer_group"])) {$hold_time_option_xfer_group=$_POST["hold_time_option_xfer_group"];}
|
|
if (isset($_GET["hold_time_option_callback_filename"])) {$hold_time_option_callback_filename=$_GET["hold_time_option_callback_filename"];}
|
|
elseif (isset($_POST["hold_time_option_callback_filename"])) {$hold_time_option_callback_filename=$_POST["hold_time_option_callback_filename"];}
|
|
if (isset($_GET["hold_time_option_callback_list_id"])) {$hold_time_option_callback_list_id=$_GET["hold_time_option_callback_list_id"];}
|
|
elseif (isset($_POST["hold_time_option_callback_list_id"])) {$hold_time_option_callback_list_id=$_POST["hold_time_option_callback_list_id"];}
|
|
if (isset($_GET["hold_recall_xfer_group"])) {$hold_recall_xfer_group=$_GET["hold_recall_xfer_group"];}
|
|
elseif (isset($_POST["hold_recall_xfer_group"])) {$hold_recall_xfer_group=$_POST["hold_recall_xfer_group"];}
|
|
if (isset($_GET["no_delay_call_route"])) {$no_delay_call_route=$_GET["no_delay_call_route"];}
|
|
elseif (isset($_POST["no_delay_call_route"])) {$no_delay_call_route=$_POST["no_delay_call_route"];}
|
|
if (isset($_GET["play_welcome_message"])) {$play_welcome_message=$_GET["play_welcome_message"];}
|
|
elseif (isset($_POST["play_welcome_message"])) {$play_welcome_message=$_POST["play_welcome_message"];}
|
|
if (isset($_GET["did_id"])) {$did_id=$_GET["did_id"];}
|
|
elseif (isset($_POST["did_id"])) {$did_id=$_POST["did_id"];}
|
|
if (isset($_GET["source_did"])) {$source_did=$_GET["source_did"];}
|
|
elseif (isset($_POST["source_did"])) {$source_did=$_POST["source_did"];}
|
|
if (isset($_GET["did_pattern"])) {$did_pattern=$_GET["did_pattern"];}
|
|
elseif (isset($_POST["did_pattern"])) {$did_pattern=$_POST["did_pattern"];}
|
|
if (isset($_GET["did_description"])) {$did_description=$_GET["did_description"];}
|
|
elseif (isset($_POST["did_description"])) {$did_description=$_POST["did_description"];}
|
|
if (isset($_GET["did_active"])) {$did_active=$_GET["did_active"];}
|
|
elseif (isset($_POST["did_active"])) {$did_active=$_POST["did_active"];}
|
|
if (isset($_GET["did_route"])) {$did_route=$_GET["did_route"];}
|
|
elseif (isset($_POST["did_route"])) {$did_route=$_POST["did_route"];}
|
|
if (isset($_GET["exten_context"])) {$exten_context=$_GET["exten_context"];}
|
|
elseif (isset($_POST["exten_context"])) {$exten_context=$_POST["exten_context"];}
|
|
if (isset($_GET["phone"])) {$phone=$_GET["phone"];}
|
|
elseif (isset($_POST["phone"])) {$phone=$_POST["phone"];}
|
|
if (isset($_GET["user_unavailable_action"])) {$user_unavailable_action=$_GET["user_unavailable_action"];}
|
|
elseif (isset($_POST["user_unavailable_action"])) {$user_unavailable_action=$_POST["user_unavailable_action"];}
|
|
if (isset($_GET["user_route_settings_ingroup"])) {$user_route_settings_ingroup=$_GET["user_route_settings_ingroup"];}
|
|
elseif (isset($_POST["user_route_settings_ingroup"])) {$user_route_settings_ingroup=$_POST["user_route_settings_ingroup"];}
|
|
if (isset($_GET["call_handle_method"])) {$call_handle_method=$_GET["call_handle_method"];}
|
|
elseif (isset($_POST["call_handle_method"])) {$call_handle_method=$_POST["call_handle_method"];}
|
|
if (isset($_GET["agent_search_method"])) {$agent_search_method=$_GET["agent_search_method"];}
|
|
elseif (isset($_POST["agent_search_method"])) {$agent_search_method=$_POST["agent_search_method"];}
|
|
if (isset($_GET["phone_code"])) {$phone_code=$_GET["phone_code"];}
|
|
elseif (isset($_POST["phone_code"])) {$phone_code=$_POST["phone_code"];}
|
|
if (isset($_GET["email"])) {$email=$_GET["email"];}
|
|
elseif (isset($_POST["email"])) {$email=$_POST["email"];}
|
|
if (isset($_GET["modify_inbound_dids"])) {$modify_inbound_dids=$_GET["modify_inbound_dids"];}
|
|
elseif (isset($_POST["modify_inbound_dids"])) {$modify_inbound_dids=$_POST["modify_inbound_dids"];}
|
|
if (isset($_GET["delete_inbound_dids"])) {$delete_inbound_dids=$_GET["delete_inbound_dids"];}
|
|
elseif (isset($_POST["delete_inbound_dids"])) {$delete_inbound_dids=$_POST["delete_inbound_dids"];}
|
|
if (isset($_GET["three_way_call_cid"])) {$three_way_call_cid=$_GET["three_way_call_cid"];}
|
|
elseif (isset($_POST["three_way_call_cid"])) {$three_way_call_cid=$_POST["three_way_call_cid"];}
|
|
if (isset($_GET["three_way_dial_prefix"])) {$three_way_dial_prefix=$_GET["three_way_dial_prefix"];}
|
|
elseif (isset($_POST["three_way_dial_prefix"])) {$three_way_dial_prefix=$_POST["three_way_dial_prefix"];}
|
|
if (isset($_GET["forced_timeclock_login"])) {$forced_timeclock_login=$_GET["forced_timeclock_login"];}
|
|
elseif (isset($_POST["forced_timeclock_login"])) {$forced_timeclock_login=$_POST["forced_timeclock_login"];}
|
|
if (isset($_GET["answer_sec_pct_rt_stat_one"])) {$answer_sec_pct_rt_stat_one=$_GET["answer_sec_pct_rt_stat_one"];}
|
|
elseif (isset($_POST["answer_sec_pct_rt_stat_one"])) {$answer_sec_pct_rt_stat_one=$_POST["answer_sec_pct_rt_stat_one"];}
|
|
if (isset($_GET["answer_sec_pct_rt_stat_two"])) {$answer_sec_pct_rt_stat_two=$_GET["answer_sec_pct_rt_stat_two"];}
|
|
elseif (isset($_POST["answer_sec_pct_rt_stat_two"])) {$answer_sec_pct_rt_stat_two=$_POST["answer_sec_pct_rt_stat_two"];}
|
|
if (isset($_GET["list_active_change"])) {$list_active_change=$_GET["list_active_change"];}
|
|
elseif (isset($_POST["list_active_change"])) {$list_active_change=$_POST["list_active_change"];}
|
|
if (isset($_GET["web_form_target"])) {$web_form_target=$_GET["web_form_target"];}
|
|
elseif (isset($_POST["web_form_target"])) {$web_form_target=$_POST["web_form_target"];}
|
|
if (isset($_GET["alt_server_ip"])) {$alt_server_ip=$_GET["alt_server_ip"];}
|
|
elseif (isset($_POST["alt_server_ip"])) {$alt_server_ip=$_POST["alt_server_ip"];}
|
|
if (isset($_GET["recording_web_link"])) {$recording_web_link=$_GET["recording_web_link"];}
|
|
elseif (isset($_POST["recording_web_link"])) {$recording_web_link=$_POST["recording_web_link"];}
|
|
if (isset($_GET["enable_vtiger_integration"])) {$enable_vtiger_integration=$_GET["enable_vtiger_integration"];}
|
|
elseif (isset($_POST["enable_vtiger_integration"])) {$enable_vtiger_integration=$_POST["enable_vtiger_integration"];}
|
|
if (isset($_GET["vtiger_server_ip"])) {$vtiger_server_ip=$_GET["vtiger_server_ip"];}
|
|
elseif (isset($_POST["vtiger_server_ip"])) {$vtiger_server_ip=$_POST["vtiger_server_ip"];}
|
|
if (isset($_GET["vtiger_dbname"])) {$vtiger_dbname=$_GET["vtiger_dbname"];}
|
|
elseif (isset($_POST["vtiger_dbname"])) {$vtiger_dbname=$_POST["vtiger_dbname"];}
|
|
if (isset($_GET["vtiger_login"])) {$vtiger_login=$_GET["vtiger_login"];}
|
|
elseif (isset($_POST["vtiger_login"])) {$vtiger_login=$_POST["vtiger_login"];}
|
|
if (isset($_GET["vtiger_pass"])) {$vtiger_pass=$_GET["vtiger_pass"];}
|
|
elseif (isset($_POST["vtiger_pass"])) {$vtiger_pass=$_POST["vtiger_pass"];}
|
|
if (isset($_GET["vtiger_url"])) {$vtiger_url=$_GET["vtiger_url"];}
|
|
elseif (isset($_POST["vtiger_url"])) {$vtiger_url=$_POST["vtiger_url"];}
|
|
if (isset($_GET["vtiger_search_category"])) {$vtiger_search_category=$_GET["vtiger_search_category"];}
|
|
elseif (isset($_POST["vtiger_search_category"])) {$vtiger_search_category=$_POST["vtiger_search_category"];}
|
|
if (isset($_GET["vtiger_create_call_record"])) {$vtiger_create_call_record=$_GET["vtiger_create_call_record"];}
|
|
elseif (isset($_POST["vtiger_create_call_record"])) {$vtiger_create_call_record=$_POST["vtiger_create_call_record"];}
|
|
if (isset($_GET["vtiger_create_lead_record"])) {$vtiger_create_lead_record=$_GET["vtiger_create_lead_record"];}
|
|
elseif (isset($_POST["vtiger_create_lead_record"])) {$vtiger_create_lead_record=$_POST["vtiger_create_lead_record"];}
|
|
if (isset($_GET["vtiger_screen_login"])) {$vtiger_screen_login=$_GET["vtiger_screen_login"];}
|
|
elseif (isset($_POST["vtiger_screen_login"])) {$vtiger_screen_login=$_POST["vtiger_screen_login"];}
|
|
if (isset($_GET["qc_features_active"])) {$qc_features_active=$_GET["qc_features_active"];}
|
|
elseif (isset($_POST["qc_features_active"])) {$qc_features_active=$_POST["qc_features_active"];}
|
|
if (isset($_GET["outbound_autodial_active"])) {$outbound_autodial_active=$_GET["outbound_autodial_active"];}
|
|
elseif (isset($_POST["outbound_autodial_active"])) {$outbound_autodial_active=$_POST["outbound_autodial_active"];}
|
|
if (isset($_GET["cpd_amd_action"])) {$cpd_amd_action=$_GET["cpd_amd_action"];}
|
|
elseif (isset($_POST["cpd_amd_action"])) {$cpd_amd_action=$_POST["cpd_amd_action"];}
|
|
if (isset($_GET["download_lists"])) {$download_lists=$_GET["download_lists"];}
|
|
elseif (isset($_POST["download_lists"])) {$download_lists=$_POST["download_lists"];}
|
|
if (isset($_GET["active_asterisk_server"])) {$active_asterisk_server=$_GET["active_asterisk_server"];}
|
|
elseif (isset($_POST["active_asterisk_server"])) {$active_asterisk_server=$_POST["active_asterisk_server"];}
|
|
if (isset($_GET["generate_vicidial_conf"])) {$generate_vicidial_conf=$_GET["generate_vicidial_conf"];}
|
|
elseif (isset($_POST["generate_vicidial_conf"])) {$generate_vicidial_conf=$_POST["generate_vicidial_conf"];}
|
|
if (isset($_GET["rebuild_conf_files"])) {$rebuild_conf_files=$_GET["rebuild_conf_files"];}
|
|
elseif (isset($_POST["rebuild_conf_files"])) {$rebuild_conf_files=$_POST["rebuild_conf_files"];}
|
|
if (isset($_GET["template_id"])) {$template_id=$_GET["template_id"];}
|
|
elseif (isset($_POST["template_id"])) {$template_id=$_POST["template_id"];}
|
|
if (isset($_GET["conf_override"])) {$conf_override=$_GET["conf_override"];}
|
|
elseif (isset($_POST["conf_override"])) {$conf_override=$_POST["conf_override"];}
|
|
if (isset($_GET["template_name"])) {$template_name=$_GET["template_name"];}
|
|
elseif (isset($_POST["template_name"])) {$template_name=$_POST["template_name"];}
|
|
if (isset($_GET["template_contents"])) {$template_contents=$_GET["template_contents"];}
|
|
elseif (isset($_POST["template_contents"])) {$template_contents=$_POST["template_contents"];}
|
|
if (isset($_GET["carrier_id"])) {$carrier_id=$_GET["carrier_id"];}
|
|
elseif (isset($_POST["carrier_id"])) {$carrier_id=$_POST["carrier_id"];}
|
|
if (isset($_GET["carrier_name"])) {$carrier_name=$_GET["carrier_name"];}
|
|
elseif (isset($_POST["carrier_name"])) {$carrier_name=$_POST["carrier_name"];}
|
|
if (isset($_GET["registration_string"])) {$registration_string=$_GET["registration_string"];}
|
|
elseif (isset($_POST["registration_string"])) {$registration_string=$_POST["registration_string"];}
|
|
if (isset($_GET["account_entry"])) {$account_entry=$_GET["account_entry"];}
|
|
elseif (isset($_POST["account_entry"])) {$account_entry=$_POST["account_entry"];}
|
|
if (isset($_GET["globals_string"])) {$globals_string=$_GET["globals_string"];}
|
|
elseif (isset($_POST["globals_string"])) {$globals_string=$_POST["globals_string"];}
|
|
if (isset($_GET["dialplan_entry"])) {$dialplan_entry=$_GET["dialplan_entry"];}
|
|
elseif (isset($_POST["dialplan_entry"])) {$dialplan_entry=$_POST["dialplan_entry"];}
|
|
if (isset($_GET["group_alias_id"])) {$group_alias_id=$_GET["group_alias_id"];}
|
|
elseif (isset($_POST["group_alias_id"])) {$group_alias_id=$_POST["group_alias_id"];}
|
|
if (isset($_GET["group_alias_name"])) {$group_alias_name=$_GET["group_alias_name"];}
|
|
elseif (isset($_POST["group_alias_name"])) {$group_alias_name=$_POST["group_alias_name"];}
|
|
if (isset($_GET["caller_id_number"])) {$caller_id_number=$_GET["caller_id_number"];}
|
|
elseif (isset($_POST["caller_id_number"])) {$caller_id_number=$_POST["caller_id_number"];}
|
|
if (isset($_GET["caller_id_name"])) {$caller_id_name=$_GET["caller_id_name"];}
|
|
elseif (isset($_POST["caller_id_name"])) {$caller_id_name=$_POST["caller_id_name"];}
|
|
if (isset($_GET["agent_allow_group_alias"])) {$agent_allow_group_alias=$_GET["agent_allow_group_alias"];}
|
|
elseif (isset($_POST["agent_allow_group_alias"])) {$agent_allow_group_alias=$_POST["agent_allow_group_alias"];}
|
|
if (isset($_GET["default_group_alias"])) {$default_group_alias=$_GET["default_group_alias"];}
|
|
elseif (isset($_POST["default_group_alias"])) {$default_group_alias=$_POST["default_group_alias"];}
|
|
if (isset($_GET["outbound_calls_per_second"])) {$outbound_calls_per_second=$_GET["outbound_calls_per_second"];}
|
|
elseif (isset($_POST["outbound_calls_per_second"])) {$outbound_calls_per_second=$_POST["outbound_calls_per_second"];}
|
|
if (isset($_GET["shift_enforcement"])) {$shift_enforcement=$_GET["shift_enforcement"];}
|
|
elseif (isset($_POST["shift_enforcement"])) {$shift_enforcement=$_POST["shift_enforcement"];}
|
|
if (isset($_GET["agent_shift_enforcement_override"])) {$agent_shift_enforcement_override=$_GET["agent_shift_enforcement_override"];}
|
|
elseif (isset($_POST["agent_shift_enforcement_override"])) {$agent_shift_enforcement_override=$_POST["agent_shift_enforcement_override"];}
|
|
if (isset($_GET["manager_shift_enforcement_override"])) {$manager_shift_enforcement_override=$_GET["manager_shift_enforcement_override"];}
|
|
elseif (isset($_POST["manager_shift_enforcement_override"])) {$manager_shift_enforcement_override=$_POST["manager_shift_enforcement_override"];}
|
|
if (isset($_GET["export_reports"])) {$export_reports=$_GET["export_reports"];}
|
|
elseif (isset($_POST["export_reports"])) {$export_reports=$_POST["export_reports"];}
|
|
|
|
|
|
if (isset($script_id)) {$script_id= strtoupper($script_id);}
|
|
if (isset($lead_filter_id)) {$lead_filter_id = strtoupper($lead_filter_id);}
|
|
|
|
if (strlen($dial_status) > 0)
|
|
{
|
|
$ADD='28';
|
|
$status = $dial_status;
|
|
}
|
|
|
|
#############################################
|
|
##### START SYSTEM_SETTINGS LOOKUP #####
|
|
$stmt = "SELECT use_non_latin,enable_queuemetrics_logging,enable_vtiger_integration,qc_features_active,outbound_autodial_active FROM system_settings;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
if ($DB) {echo "$stmt\n";}
|
|
$qm_conf_ct = mysql_num_rows($rslt);
|
|
$i=0;
|
|
while ($i < $qm_conf_ct)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$non_latin = $row[0];
|
|
$SSenable_queuemetrics_logging = $row[1];
|
|
$SSenable_vtiger_integration = $row[2];
|
|
$SSqc_features_active = $row[3];
|
|
$SSoutbound_autodial_active = $row[4];
|
|
$i++;
|
|
}
|
|
##### END SETTINGS LOOKUP #####
|
|
###########################################
|
|
|
|
######################################################################################################
|
|
######################################################################################################
|
|
####### Form variable filtering for security and data integrity
|
|
######################################################################################################
|
|
######################################################################################################
|
|
|
|
if ($non_latin < 1)
|
|
{
|
|
### DIGITS ONLY ###
|
|
$adaptive_dropped_percentage = ereg_replace("[^0-9]","",$adaptive_dropped_percentage);
|
|
$adaptive_latest_server_time = ereg_replace("[^0-9]","",$adaptive_latest_server_time);
|
|
$admin_hangup_enabled = ereg_replace("[^0-9]","",$admin_hangup_enabled);
|
|
$admin_hijack_enabled = ereg_replace("[^0-9]","",$admin_hijack_enabled);
|
|
$admin_monitor_enabled = ereg_replace("[^0-9]","",$admin_monitor_enabled);
|
|
$AFLogging_enabled = ereg_replace("[^0-9]","",$AFLogging_enabled);
|
|
$agent_choose_ingroups = ereg_replace("[^0-9]","",$agent_choose_ingroups);
|
|
$agentcall_manual = ereg_replace("[^0-9]","",$agentcall_manual);
|
|
$agentonly_callbacks = ereg_replace("[^0-9]","",$agentonly_callbacks);
|
|
$AGI_call_logging_enabled = ereg_replace("[^0-9]","",$AGI_call_logging_enabled);
|
|
$allcalls_delay = ereg_replace("[^0-9]","",$allcalls_delay);
|
|
$alter_agent_interface_options = ereg_replace("[^0-9]","",$alter_agent_interface_options);
|
|
$am_message_exten = ereg_replace("[^0-9]","",$am_message_exten);
|
|
$answer_transfer_agent = ereg_replace("[^0-9]","",$answer_transfer_agent);
|
|
$ast_admin_access = ereg_replace("[^0-9]","",$ast_admin_access);
|
|
$ast_delete_phones = ereg_replace("[^0-9]","",$ast_delete_phones);
|
|
$attempt_delay = ereg_replace("[^0-9]","",$attempt_delay);
|
|
$attempt_maximum = ereg_replace("[^0-9]","",$attempt_maximum);
|
|
$auto_dial_next_number = ereg_replace("[^0-9]","",$auto_dial_next_number);
|
|
$balance_trunks_offlimits = ereg_replace("[^0-9]","",$balance_trunks_offlimits);
|
|
$call_parking_enabled = ereg_replace("[^0-9]","",$call_parking_enabled);
|
|
$CallerID_popup_enabled = ereg_replace("[^0-9]","",$CallerID_popup_enabled);
|
|
$campaign_detail = ereg_replace("[^0-9]","",$campaign_detail);
|
|
$campaign_rec_exten = ereg_replace("[^0-9]","",$campaign_rec_exten);
|
|
$campaign_vdad_exten = ereg_replace("[^0-9]","",$campaign_vdad_exten);
|
|
$change_agent_campaign = ereg_replace("[^0-9]","",$change_agent_campaign);
|
|
$closer_default_blended = ereg_replace("[^0-9]","",$closer_default_blended);
|
|
$conf_exten = ereg_replace("[^0-9]","",$conf_exten);
|
|
$conf_on_extension = ereg_replace("[^0-9]","",$conf_on_extension);
|
|
$conferencing_enabled = ereg_replace("[^0-9]","",$conferencing_enabled);
|
|
$ct_default_start = ereg_replace("[^0-9]","",$ct_default_start);
|
|
$ct_default_stop = ereg_replace("[^0-9]","",$ct_default_stop);
|
|
$ct_friday_start = ereg_replace("[^0-9]","",$ct_friday_start);
|
|
$ct_friday_stop = ereg_replace("[^0-9]","",$ct_friday_stop);
|
|
$ct_monday_start = ereg_replace("[^0-9]","",$ct_monday_start);
|
|
$ct_monday_stop = ereg_replace("[^0-9]","",$ct_monday_stop);
|
|
$ct_saturday_start = ereg_replace("[^0-9]","",$ct_saturday_start);
|
|
$ct_saturday_stop = ereg_replace("[^0-9]","",$ct_saturday_stop);
|
|
$ct_sunday_start = ereg_replace("[^0-9]","",$ct_sunday_start);
|
|
$ct_sunday_stop = ereg_replace("[^0-9]","",$ct_sunday_stop);
|
|
$ct_thursday_start = ereg_replace("[^0-9]","",$ct_thursday_start);
|
|
$ct_thursday_stop = ereg_replace("[^0-9]","",$ct_thursday_stop);
|
|
$ct_tuesday_start = ereg_replace("[^0-9]","",$ct_tuesday_start);
|
|
$ct_tuesday_stop = ereg_replace("[^0-9]","",$ct_tuesday_stop);
|
|
$ct_wednesday_start = ereg_replace("[^0-9]","",$ct_wednesday_start);
|
|
$ct_wednesday_stop = ereg_replace("[^0-9]","",$ct_wednesday_stop);
|
|
$DBX_port = ereg_replace("[^0-9]","",$DBX_port);
|
|
$DBY_port = ereg_replace("[^0-9]","",$DBY_port);
|
|
$dedicated_trunks = ereg_replace("[^0-9]","",$dedicated_trunks);
|
|
$delete_call_times = ereg_replace("[^0-9]","",$delete_call_times);
|
|
$delete_campaigns = ereg_replace("[^0-9]","",$delete_campaigns);
|
|
$delete_filters = ereg_replace("[^0-9]","",$delete_filters);
|
|
$delete_ingroups = ereg_replace("[^0-9]","",$delete_ingroups);
|
|
$delete_lists = ereg_replace("[^0-9]","",$delete_lists);
|
|
$delete_remote_agents = ereg_replace("[^0-9]","",$delete_remote_agents);
|
|
$delete_scripts = ereg_replace("[^0-9]","",$delete_scripts);
|
|
$delete_user_groups = ereg_replace("[^0-9]","",$delete_user_groups);
|
|
$delete_users = ereg_replace("[^0-9]","",$delete_users);
|
|
$dial_timeout = ereg_replace("[^0-9]","",$dial_timeout);
|
|
$dialplan_number = ereg_replace("[^0-9]","",$dialplan_number);
|
|
$drop_call_seconds = ereg_replace("[^0-9]","",$drop_call_seconds);
|
|
$enable_fast_refresh = ereg_replace("[^0-9]","",$enable_fast_refresh);
|
|
$enable_persistant_mysql = ereg_replace("[^0-9]","",$enable_persistant_mysql);
|
|
$fast_refresh_rate = ereg_replace("[^0-9]","",$fast_refresh_rate);
|
|
$hopper_level = ereg_replace("[^0-9]","",$hopper_level);
|
|
$hotkey = ereg_replace("[^0-9]","",$hotkey);
|
|
$hotkeys_active = ereg_replace("[^0-9]","",$hotkeys_active);
|
|
$list_id = ereg_replace("[^0-9]","",$list_id);
|
|
$load_leads = ereg_replace("[^0-9]","",$load_leads);
|
|
$max_vicidial_trunks = ereg_replace("[^0-9]","",$max_vicidial_trunks);
|
|
$modify_call_times = ereg_replace("[^0-9]","",$modify_call_times);
|
|
$modify_users = ereg_replace("[^0-9]","",$modify_users);
|
|
$modify_campaigns = ereg_replace("[^0-9]","",$modify_campaigns);
|
|
$modify_lists = ereg_replace("[^0-9]","",$modify_lists);
|
|
$modify_scripts = ereg_replace("[^0-9]","",$modify_scripts);
|
|
$modify_filters = ereg_replace("[^0-9]","",$modify_filters);
|
|
$modify_ingroups = ereg_replace("[^0-9]","",$modify_ingroups);
|
|
$modify_usergroups = ereg_replace("[^0-9]","",$modify_usergroups);
|
|
$modify_remoteagents = ereg_replace("[^0-9]","",$modify_remoteagents);
|
|
$modify_servers = ereg_replace("[^0-9]","",$modify_servers);
|
|
$view_reports = ereg_replace("[^0-9]","",$view_reports);
|
|
$modify_leads = ereg_replace("[^0-9]","",$modify_leads);
|
|
$monitor_prefix = ereg_replace("[^0-9]","",$monitor_prefix);
|
|
$number_of_lines = ereg_replace("[^0-9]","",$number_of_lines);
|
|
$old_conf_exten = ereg_replace("[^0-9]","",$old_conf_exten);
|
|
$outbound_cid = ereg_replace("[^0-9]","",$outbound_cid);
|
|
$park_ext = ereg_replace("[^0-9]","",$park_ext);
|
|
$park_on_extension = ereg_replace("[^0-9]","",$park_on_extension);
|
|
$phone_number = ereg_replace("[^0-9]","",$phone_number);
|
|
$QUEUE_ACTION_enabled = ereg_replace("[^0-9]","",$QUEUE_ACTION_enabled);
|
|
$recording_exten = ereg_replace("[^0-9]","",$recording_exten);
|
|
$remote_agent_id = ereg_replace("[^0-9]","",$remote_agent_id);
|
|
$telnet_port = ereg_replace("[^0-9]","",$telnet_port);
|
|
$updater_check_enabled = ereg_replace("[^0-9]","",$updater_check_enabled);
|
|
$user_level = ereg_replace("[^0-9]","",$user_level);
|
|
$user_start = ereg_replace("[^0-9]","",$user_start);
|
|
$user_switching_enabled = ereg_replace("[^0-9]","",$user_switching_enabled);
|
|
$VDstop_rec_after_each_call = ereg_replace("[^0-9]","",$VDstop_rec_after_each_call);
|
|
$VICIDIAL_park_on_extension = ereg_replace("[^0-9]","",$VICIDIAL_park_on_extension);
|
|
$vicidial_recording = ereg_replace("[^0-9]","",$vicidial_recording);
|
|
$vicidial_transfers = ereg_replace("[^0-9]","",$vicidial_transfers);
|
|
$voicemail_button_enabled = ereg_replace("[^0-9]","",$voicemail_button_enabled);
|
|
$voicemail_dump_exten = ereg_replace("[^0-9]","",$voicemail_dump_exten);
|
|
$voicemail_ext = ereg_replace("[^0-9]","",$voicemail_ext);
|
|
$voicemail_exten = ereg_replace("[^0-9]","",$voicemail_exten);
|
|
$voicemail_id = ereg_replace("[^0-9]","",$voicemail_id);
|
|
$wrapup_seconds = ereg_replace("[^0-9]","",$wrapup_seconds);
|
|
$use_non_latin = ereg_replace("[^0-9]","",$use_non_latin);
|
|
$webroot_writable = ereg_replace("[^0-9]","",$webroot_writable);
|
|
$enable_queuemetrics_logging = ereg_replace("[^0-9]","",$enable_queuemetrics_logging);
|
|
$enable_sipsak_messages = ereg_replace("[^0-9]","",$enable_sipsak_messages);
|
|
$allow_sipsak_messages = ereg_replace("[^0-9]","",$allow_sipsak_messages);
|
|
$mix_container_item = ereg_replace("[^0-9]","",$mix_container_item);
|
|
$prompt_interval = ereg_replace("[^0-9]","",$prompt_interval);
|
|
$agent_alert_delay = ereg_replace("[^0-9]","",$agent_alert_delay);
|
|
$manual_dial_list_id = ereg_replace("[^0-9]","",$manual_dial_list_id);
|
|
$qc_user_level = ereg_replace("[^0-9]","",$qc_user_level);
|
|
$qc_pass = ereg_replace("[^0-9]","",$qc_pass);
|
|
$qc_finish = ereg_replace("[^0-9]","",$qc_finish);
|
|
$qc_commit = ereg_replace("[^0-9]","",$qc_commit);
|
|
$shift_start_time = ereg_replace("[^0-9]","",$shift_start_time);
|
|
$timeclock_end_of_day = ereg_replace("[^0-9]","",$timeclock_end_of_day);
|
|
$survey_xfer_exten = ereg_replace("[^0-9]","",$survey_xfer_exten);
|
|
$add_timeclock_log = ereg_replace("[^0-9]","",$add_timeclock_log);
|
|
$modify_timeclock_log = ereg_replace("[^0-9]","",$modify_timeclock_log);
|
|
$delete_timeclock_log = ereg_replace("[^0-9]","",$delete_timeclock_log);
|
|
$vdc_agent_api_access = ereg_replace("[^0-9]","",$vdc_agent_api_access);
|
|
$vdc_agent_api_active = ereg_replace("[^0-9]","",$vdc_agent_api_active);
|
|
$hold_time_option_seconds = ereg_replace("[^0-9]","",$hold_time_option_seconds);
|
|
$hold_time_option_callback_list_id = ereg_replace("[^0-9]","",$hold_time_option_callback_list_id);
|
|
$did_id = ereg_replace("[^0-9]","",$did_id);
|
|
$source_did = ereg_replace("[^0-9]","",$source_did);
|
|
$modify_inbound_dids = ereg_replace("[^0-9]","",$modify_inbound_dids);
|
|
$delete_inbound_dids = ereg_replace("[^0-9]","",$delete_inbound_dids);
|
|
$answer_sec_pct_rt_stat_one = ereg_replace("[^0-9]","",$answer_sec_pct_rt_stat_one);
|
|
$answer_sec_pct_rt_stat_two = ereg_replace("[^0-9]","",$answer_sec_pct_rt_stat_two);
|
|
$enable_vtiger_integration = ereg_replace("[^0-9]","",$enable_vtiger_integration);
|
|
$qc_features_active = ereg_replace("[^0-9]","",$qc_features_active);
|
|
$outbound_autodial_active = ereg_replace("[^0-9]","",$outbound_autodial_active);
|
|
$download_lists = ereg_replace("[^0-9]","",$download_lists);
|
|
$caller_id_number = ereg_replace("[^0-9]","",$caller_id_number);
|
|
$outbound_calls_per_second = ereg_replace("[^0-9]","",$outbound_calls_per_second);
|
|
$manager_shift_enforcement_override = ereg_replace("[^0-9]","",$manager_shift_enforcement_override);
|
|
$export_reports = ereg_replace("[^0-9]","",$export_reports);
|
|
|
|
### DIGITS and COLONS
|
|
$shift_length = ereg_replace("[^\:0-9]","",$shift_length);
|
|
|
|
### DIGITS and HASHES and STARS
|
|
$survey_dtmf_digits = ereg_replace("[^\#\*0-9]","",$survey_dtmf_digits);
|
|
$survey_ni_digit = ereg_replace("[^\#\*0-9]","",$survey_ni_digit);
|
|
|
|
### DIGITS and DASHES
|
|
$group_rank = ereg_replace("[^-0-9]","",$group_rank);
|
|
$campaign_rank = ereg_replace("[^-0-9]","",$campaign_rank);
|
|
$queue_priority = ereg_replace("[^-0-9]","",$queue_priority);
|
|
|
|
### DIGITS and NEWLINES
|
|
$phone_numbers = ereg_replace("[^\n0-9]","",$phone_numbers);
|
|
|
|
### Y or N ONLY ###
|
|
$active = ereg_replace("[^NY]","",$active);
|
|
$allow_closers = ereg_replace("[^NY]","",$allow_closers);
|
|
$reset_hopper = ereg_replace("[^NY]","",$reset_hopper);
|
|
$amd_send_to_vmx = ereg_replace("[^NY]","",$amd_send_to_vmx);
|
|
$alt_number_dialing = ereg_replace("[^NY]","",$alt_number_dialing);
|
|
$selectable = ereg_replace("[^NY]","",$selectable);
|
|
$reset_list = ereg_replace("[^NY]","",$reset_list);
|
|
$fronter_display = ereg_replace("[^NY]","",$fronter_display);
|
|
$use_internal_dnc = ereg_replace("[^NY]","",$use_internal_dnc);
|
|
$use_campaign_dnc = ereg_replace("[^NY]","",$use_campaign_dnc);
|
|
$omit_phone_code = ereg_replace("[^NY]","",$omit_phone_code);
|
|
$available_only_ratio_tally = ereg_replace("[^NY]","",$available_only_ratio_tally);
|
|
$sys_perf_log = ereg_replace("[^NY]","",$sys_perf_log);
|
|
$vicidial_balance_active = ereg_replace("[^NY]","",$vicidial_balance_active);
|
|
$vd_server_logs = ereg_replace("[^NY]","",$vd_server_logs);
|
|
$campaign_stats_refresh = ereg_replace("[^NY]","",$campaign_stats_refresh);
|
|
$disable_alter_custdata = ereg_replace("[^NY]","",$disable_alter_custdata);
|
|
$no_hopper_leads_logins = ereg_replace("[^NY]","",$no_hopper_leads_logins);
|
|
$human_answered = ereg_replace("[^NY]","",$human_answered);
|
|
$tovdad_display = ereg_replace("[^NY]","",$tovdad_display);
|
|
$campaign_allow_inbound = ereg_replace("[^NY]","",$campaign_allow_inbound);
|
|
$disable_alter_custphone = ereg_replace("[^NY]","",$disable_alter_custphone);
|
|
$display_queue_count = ereg_replace("[^NY]","",$display_queue_count);
|
|
$qc_show_recording = ereg_replace("[^NY]","",$qc_show_recording);
|
|
$sale_category = ereg_replace("[^NY]","",$sale_category);
|
|
$dead_lead_category = ereg_replace("[^NY]","",$dead_lead_category);
|
|
$agent_extended_alt_dial = ereg_replace("[^NY]","",$agent_extended_alt_dial);
|
|
$play_place_in_line = ereg_replace("[^NY]","",$play_place_in_line);
|
|
$play_estimate_hold_time = ereg_replace("[^NY]","",$play_estimate_hold_time);
|
|
$no_delay_call_route = ereg_replace("[^NY]","",$no_delay_call_route);
|
|
$did_active = ereg_replace("[^NY]","",$did_active);
|
|
$active_asterisk_server = ereg_replace("[^NY]","",$active_asterisk_server);
|
|
$generate_vicidial_conf = ereg_replace("[^NY]","",$generate_vicidial_conf);
|
|
$rebuild_conf_files = ereg_replace("[^NY]","",$rebuild_conf_files);
|
|
$agent_allow_group_alias = ereg_replace("[^NY]","",$agent_allow_group_alias);
|
|
|
|
$qc_enabled = ereg_replace("[^0-9NY]","",$qc_enabled);
|
|
|
|
|
|
### ALPHA-NUMERIC ONLY ###
|
|
$PHP_AUTH_USER = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_USER);
|
|
$PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW);
|
|
$script_id = ereg_replace("[^0-9a-zA-Z]","",$script_id);
|
|
$submit = ereg_replace("[^0-9a-zA-Z]","",$submit);
|
|
$campaign_cid = ereg_replace("[^0-9a-zA-Z]","",$campaign_cid);
|
|
$get_call_launch = ereg_replace("[^0-9a-zA-Z]","",$get_call_launch);
|
|
$campaign_recording = ereg_replace("[^0-9a-zA-Z]","",$campaign_recording);
|
|
$ADD = ereg_replace("[^0-9a-zA-Z]","",$ADD);
|
|
$dial_prefix = ereg_replace("[^0-9a-zA-Z]","",$dial_prefix);
|
|
$state_call_time_state = ereg_replace("[^0-9a-zA-Z]","",$state_call_time_state);
|
|
$scheduled_callbacks = ereg_replace("[^0-9a-zA-Z]","",$scheduled_callbacks);
|
|
$concurrent_transfers = ereg_replace("[^0-9a-zA-Z]","",$concurrent_transfers);
|
|
$billable = ereg_replace("[^0-9a-zA-Z]","",$billable);
|
|
$pause_code = ereg_replace("[^0-9a-zA-Z]","",$pause_code);
|
|
$vicidial_recording_override = ereg_replace("[^0-9a-zA-Z]","",$vicidial_recording_override);
|
|
$ingroup_recording_override = ereg_replace("[^0-9a-zA-Z]","",$ingroup_recording_override);
|
|
$queuemetrics_log_id = ereg_replace("[^0-9a-zA-Z]","",$queuemetrics_log_id);
|
|
$after_hours_exten = ereg_replace("[^0-9a-zA-Z]","",$after_hours_exten);
|
|
$after_hours_voicemail = ereg_replace("[^0-9a-zA-Z]","",$after_hours_voicemail);
|
|
$qc_script = ereg_replace("[^0-9a-zA-Z]","",$qc_script);
|
|
$code = ereg_replace("[^0-9a-zA-Z]","",$code);
|
|
$survey_no_response_action = ereg_replace("[^0-9a-zA-Z]","",$survey_no_response_action);
|
|
$survey_ni_status = ereg_replace("[^0-9a-zA-Z]","",$survey_ni_status);
|
|
$qc_get_record_launch = ereg_replace("[^0-9a-zA-Z]","",$qc_get_record_launch);
|
|
$agent_pause_codes_active = ereg_replace("[^0-9a-zA-Z]","",$agent_pause_codes_active);
|
|
$three_way_dial_prefix = ereg_replace("[^0-9a-zA-Z]","",$three_way_dial_prefix);
|
|
$shift_enforcement = ereg_replace("[^0-9a-zA-Z]","",$shift_enforcement);
|
|
$agent_shift_enforcement_override = ereg_replace("[^0-9a-zA-Z]","",$agent_shift_enforcement_override);
|
|
|
|
### DIGITS and Dots
|
|
$server_ip = ereg_replace("[^\.0-9]","",$server_ip);
|
|
$auto_dial_level = ereg_replace("[^\.0-9]","",$auto_dial_level);
|
|
$adaptive_maximum_level = ereg_replace("[^\.0-9]","",$adaptive_maximum_level);
|
|
$phone_ip = ereg_replace("[^\.0-9]","",$phone_ip);
|
|
$old_server_ip = ereg_replace("[^\.0-9]","",$old_server_ip);
|
|
$computer_ip = ereg_replace("[^\.0-9]","",$computer_ip);
|
|
$queuemetrics_server_ip = ereg_replace("[^\.0-9]","",$queuemetrics_server_ip);
|
|
$vtiger_server_ip = ereg_replace("[^\.0-9]","",$vtiger_server_ip);
|
|
|
|
### ALPHA-NUMERIC and spaces and hash and star and comma
|
|
$xferconf_a_dtmf = ereg_replace("[^ \,\*\#0-9a-zA-Z]","",$xferconf_a_dtmf);
|
|
$xferconf_b_dtmf = ereg_replace("[^ \,\*\#0-9a-zA-Z]","",$xferconf_b_dtmf);
|
|
|
|
### ALPHACAPS-NUMERIC
|
|
$xferconf_a_number = ereg_replace("[^0-9A-Z]","",$xferconf_a_number);
|
|
$xferconf_b_number = ereg_replace("[^0-9A-Z]","",$xferconf_b_number);
|
|
|
|
### ALPHA-NUMERIC and underscore and dash
|
|
$agi_output = ereg_replace("[^-\_0-9a-zA-Z]","",$agi_output);
|
|
$ASTmgrSECRET = ereg_replace("[^-\_0-9a-zA-Z]","",$ASTmgrSECRET);
|
|
$ASTmgrUSERNAME = ereg_replace("[^-\_0-9a-zA-Z]","",$ASTmgrUSERNAME);
|
|
$ASTmgrUSERNAMElisten = ereg_replace("[^-\_0-9a-zA-Z]","",$ASTmgrUSERNAMElisten);
|
|
$ASTmgrUSERNAMEsend = ereg_replace("[^-\_0-9a-zA-Z]","",$ASTmgrUSERNAMEsend);
|
|
$ASTmgrUSERNAMEupdate = ereg_replace("[^-\_0-9a-zA-Z]","",$ASTmgrUSERNAMEupdate);
|
|
$call_time_id = ereg_replace("[^-\_0-9a-zA-Z]","",$call_time_id);
|
|
$campaign_id = ereg_replace("[^-\_0-9a-zA-Z]","",$campaign_id);
|
|
$CoNfIrM = ereg_replace("[^-\_0-9a-zA-Z]","",$CoNfIrM);
|
|
$DBX_database = ereg_replace("[^-\_0-9a-zA-Z]","",$DBX_database);
|
|
$DBX_pass = ereg_replace("[^-\_0-9a-zA-Z]","",$DBX_pass);
|
|
$DBX_user = ereg_replace("[^-\_0-9a-zA-Z]","",$DBX_user);
|
|
$DBY_database = ereg_replace("[^-\_0-9a-zA-Z]","",$DBY_database);
|
|
$DBY_pass = ereg_replace("[^-\_0-9a-zA-Z]","",$DBY_pass);
|
|
$DBY_user = ereg_replace("[^-\_0-9a-zA-Z]","",$DBY_user);
|
|
$dial_method = ereg_replace("[^-\_0-9a-zA-Z]","",$dial_method);
|
|
$dial_status_a = ereg_replace("[^-\_0-9a-zA-Z]","",$dial_status_a);
|
|
$dial_status_b = ereg_replace("[^-\_0-9a-zA-Z]","",$dial_status_b);
|
|
$dial_status_c = ereg_replace("[^-\_0-9a-zA-Z]","",$dial_status_c);
|
|
$dial_status_d = ereg_replace("[^-\_0-9a-zA-Z]","",$dial_status_d);
|
|
$dial_status_e = ereg_replace("[^-\_0-9a-zA-Z]","",$dial_status_e);
|
|
$ext_context = ereg_replace("[^-\_0-9a-zA-Z]","",$ext_context);
|
|
$group_id = ereg_replace("[^-\_0-9a-zA-Z]","",$group_id);
|
|
$lead_filter_id = ereg_replace("[^-\_0-9a-zA-Z]","",$lead_filter_id);
|
|
$local_call_time = ereg_replace("[^-\_0-9a-zA-Z]","",$local_call_time);
|
|
$login = ereg_replace("[^-\_0-9a-zA-Z]","",$login);
|
|
$login_campaign = ereg_replace("[^-\_0-9a-zA-Z]","",$login_campaign);
|
|
$login_pass = ereg_replace("[^-\_0-9a-zA-Z]","",$login_pass);
|
|
$login_user = ereg_replace("[^-\_0-9a-zA-Z]","",$login_user);
|
|
$next_agent_call = ereg_replace("[^-\_0-9a-zA-Z]","",$next_agent_call);
|
|
$old_campaign_id = ereg_replace("[^-\_0-9a-zA-Z]","",$old_campaign_id);
|
|
$old_server_id = ereg_replace("[^-\_0-9a-zA-Z]","",$old_server_id);
|
|
$OLDuser_group = ereg_replace("[^-\_0-9a-zA-Z]","",$OLDuser_group);
|
|
$park_file_name = ereg_replace("[^-\_0-9a-zA-Z]","",$park_file_name);
|
|
$pass = ereg_replace("[^-\_0-9a-zA-Z]","",$pass);
|
|
$phone_login = ereg_replace("[^-\_0-9a-zA-Z]","",$phone_login);
|
|
$phone_pass = ereg_replace("[^-\_0-9a-zA-Z]","",$phone_pass);
|
|
$PHP_AUTH_PW = ereg_replace("[^-\_0-9a-zA-Z]","",$PHP_AUTH_PW);
|
|
$PHP_AUTH_USER = ereg_replace("[^-\_0-9a-zA-Z]","",$PHP_AUTH_USER);
|
|
$protocol = ereg_replace("[^-\_0-9a-zA-Z]","",$protocol);
|
|
$server_id = ereg_replace("[^-\_0-9a-zA-Z]","",$server_id);
|
|
$stage = ereg_replace("[^-\_0-9a-zA-Z]","",$stage);
|
|
$state_rule = ereg_replace("[^-\_0-9a-zA-Z]","",$state_rule);
|
|
$status = ereg_replace("[^-\_0-9a-zA-Z]","",$status);
|
|
$trunk_restriction = ereg_replace("[^-\_0-9a-zA-Z]","",$trunk_restriction);
|
|
$user = ereg_replace("[^-\_0-9a-zA-Z]","",$user);
|
|
$user_group = ereg_replace("[^-\_0-9a-zA-Z]","",$user_group);
|
|
$VICIDIAL_park_on_filename = ereg_replace("[^-\_0-9a-zA-Z]","",$VICIDIAL_park_on_filename);
|
|
$auto_alt_dial = ereg_replace("[^-\_0-9a-zA-Z]","",$auto_alt_dial);
|
|
$dial_status = ereg_replace("[^-\_0-9a-zA-Z]","",$dial_status);
|
|
$queuemetrics_eq_prepend = ereg_replace("[^-\_0-9a-zA-Z]","",$queuemetrics_eq_prepend);
|
|
$vicidial_agent_disable = ereg_replace("[^-\_0-9a-zA-Z]","",$vicidial_agent_disable);
|
|
$alter_custdata_override = ereg_replace("[^-\_0-9a-zA-Z]","",$alter_custdata_override);
|
|
$list_order_mix = ereg_replace("[^-\_0-9a-zA-Z]","",$list_order_mix);
|
|
$vcl_id = ereg_replace("[^-\_0-9a-zA-Z]","",$vcl_id);
|
|
$mix_method = ereg_replace("[^-\_0-9a-zA-Z]","",$mix_method);
|
|
$category = ereg_replace("[^-\_0-9a-zA-Z]","",$category);
|
|
$vsc_id = ereg_replace("[^-\_0-9a-zA-Z]","",$vsc_id);
|
|
$moh_context = ereg_replace("[^-\_0-9a-zA-Z]","",$moh_context);
|
|
$agent_alert_exten = ereg_replace("[^-\_0-9a-zA-Z]","",$agent_alert_exten);
|
|
$source_campaign_id = ereg_replace("[^-\_0-9a-zA-Z]","",$source_campaign_id);
|
|
$source_user_id = ereg_replace("[^-\_0-9a-zA-Z]","",$source_user_id);
|
|
$source_group_id = ereg_replace("[^-\_0-9a-zA-Z]","",$source_group_id);
|
|
$default_xfer_group = ereg_replace("[^-\_0-9a-zA-Z]","",$default_xfer_group);
|
|
$drop_exten = ereg_replace("[^-\_0-9a-zA-Z]","",$drop_exten);
|
|
$safe_harbor_exten = ereg_replace("[^-\_0-9a-zA-Z]","",$safe_harbor_exten);
|
|
$drop_action = ereg_replace("[^-\_0-9a-zA-Z]","",$drop_action);
|
|
$drop_inbound_group = ereg_replace("[^-\_0-9a-zA-Z]","",$drop_inbound_group);
|
|
$afterhours_xfer_group = ereg_replace("[^-\_0-9a-zA-Z]","",$afterhours_xfer_group);
|
|
$after_hours_action = ereg_replace("[^-\_0-9a-zA-Z]","",$after_hours_action);
|
|
$alias_id = ereg_replace("[^-\_0-9a-zA-Z]","",$alias_id);
|
|
$shift_id = ereg_replace("[^-\_0-9a-zA-Z]","",$shift_id);
|
|
$qc_shift_id = ereg_replace("[^-\_0-9a-zA-Z]","",$qc_shift_id);
|
|
$survey_first_audio_file = ereg_replace("[^-\_0-9a-zA-Z]","",$survey_first_audio_file);
|
|
$survey_opt_in_audio_file = ereg_replace("[^-\_0-9a-zA-Z]","",$survey_opt_in_audio_file);
|
|
$survey_ni_audio_file = ereg_replace("[^-\_0-9a-zA-Z]","",$survey_ni_audio_file);
|
|
$survey_method = ereg_replace("[^-\_0-9a-zA-Z]","",$survey_method);
|
|
$alter_custphone_override = ereg_replace("[^-\_0-9a-zA-Z]","",$alter_custphone_override);
|
|
$manual_dial_filter = ereg_replace("[^-\_0-9a-zA-Z]","",$manual_dial_filter);
|
|
$agent_clipboard_copy = ereg_replace("[^-\_0-9a-zA-Z]","",$agent_clipboard_copy);
|
|
$hold_time_option = ereg_replace("[^-\_0-9a-zA-Z]","",$hold_time_option);
|
|
$hold_time_option_xfer_group = ereg_replace("[^-\_0-9a-zA-Z]","",$hold_time_option_xfer_group);
|
|
$hold_recall_xfer_group = ereg_replace("[^-\_0-9a-zA-Z]","",$hold_recall_xfer_group);
|
|
$play_welcome_message = ereg_replace("[^-\_0-9a-zA-Z]","",$play_welcome_message);
|
|
$did_route = ereg_replace("[^-\_0-9a-zA-Z]","",$did_route);
|
|
$user_unavailable_action = ereg_replace("[^-\_0-9a-zA-Z]","",$user_unavailable_action);
|
|
$user_route_settings_ingroup = ereg_replace("[^-\_0-9a-zA-Z]","",$user_route_settings_ingroup);
|
|
$call_handle_method = ereg_replace("[^-\_0-9a-zA-Z]","",$call_handle_method);
|
|
$agent_search_method = ereg_replace("[^-\_0-9a-zA-Z]","",$agent_search_method);
|
|
$hold_time_option_voicemail = ereg_replace("[^-\_0-9a-zA-Z]","",$hold_time_option_voicemail);
|
|
$hold_time_option_callback_filename = ereg_replace("[^-\_0-9a-zA-Z]","",$hold_time_option_callback_filename);
|
|
$exten_context = ereg_replace("[^-\_0-9a-zA-Z]","",$exten_context);
|
|
$three_way_call_cid = ereg_replace("[^-\_0-9a-zA-Z]","",$three_way_call_cid);
|
|
$web_form_target = ereg_replace("[^-\_0-9a-zA-Z]","",$web_form_target);
|
|
$recording_web_link = ereg_replace("[^-\_0-9a-zA-Z]","",$recording_web_link);
|
|
$vtiger_search_category = ereg_replace("[^-\_0-9a-zA-Z]","",$vtiger_search_category);
|
|
$vtiger_create_call_record = ereg_replace("[^-\_0-9a-zA-Z]","",$vtiger_create_call_record);
|
|
$vtiger_create_lead_record = ereg_replace("[^-\_0-9a-zA-Z]","",$vtiger_create_lead_record);
|
|
$vtiger_screen_login = ereg_replace("[^-\_0-9a-zA-Z]","",$vtiger_screen_login);
|
|
$cpd_amd_action = ereg_replace("[^-\_0-9a-zA-Z]","",$cpd_amd_action);
|
|
$template_id = ereg_replace("[^-\_0-9a-zA-Z]","",$template_id);
|
|
$carrier_id = ereg_replace("[^-\_0-9a-zA-Z]","",$carrier_id);
|
|
$group_alias_id = ereg_replace("[^-\_0-9a-zA-Z]","",$group_alias_id);
|
|
$default_group_alias = ereg_replace("[^-\_0-9a-zA-Z]","",$default_group_alias);
|
|
|
|
### ALPHA-NUMERIC and underscore and dash and comma
|
|
$logins_list = ereg_replace("[^-\,\_0-9a-zA-Z]","",$logins_list);
|
|
$forced_timeclock_login = ereg_replace("[^-\,\_0-9a-zA-Z]","",$forced_timeclock_login);
|
|
|
|
### ALPHA-NUMERIC and spaces
|
|
$lead_order = ereg_replace("[^ 0-9a-zA-Z]","",$lead_order);
|
|
### ALPHA-NUMERIC and hash
|
|
$group_color = ereg_replace("[^\#0-9a-zA-Z]","",$group_color);
|
|
### ALPHA-NUMERIC and hash and star and dot and underscore
|
|
$hold_time_option_exten = ereg_replace("[^\*\#\.\_0-9a-zA-Z]","",$hold_time_option_exten);
|
|
$did_pattern = ereg_replace("[^\*\#\.\_0-9a-zA-Z]","",$did_pattern);
|
|
$voicemail_ext = ereg_replace("[^\*\#\.\_0-9a-zA-Z]","",$voicemail_ext);
|
|
$phone = ereg_replace("[^\*\#\.\_0-9a-zA-Z]","",$phone);
|
|
$phone_code = ereg_replace("[^\*\#\.\_0-9a-zA-Z]","",$phone_code);
|
|
|
|
### ALPHA-NUMERIC and spaces dots, commas, dashes, underscores
|
|
$adaptive_dl_diff_target = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$adaptive_dl_diff_target);
|
|
$adaptive_intensity = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$adaptive_intensity);
|
|
$asterisk_version = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$asterisk_version);
|
|
$call_time_comments = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$call_time_comments);
|
|
$call_time_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$call_time_name);
|
|
$campaign_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$campaign_name);
|
|
$campaign_rec_filename = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$campaign_rec_filename);
|
|
$ingroup_rec_filename = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$ingroup_rec_filename);
|
|
$company = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$company);
|
|
$full_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$full_name);
|
|
$fullname = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$fullname);
|
|
$group_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$group_name);
|
|
$HKstatus = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$HKstatus);
|
|
$lead_filter_comments = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$lead_filter_comments);
|
|
$lead_filter_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$lead_filter_name);
|
|
$list_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$list_name);
|
|
$local_gmt = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$local_gmt);
|
|
$phone_type = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$phone_type);
|
|
$picture = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$picture);
|
|
$script_comments = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$script_comments);
|
|
$script_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$script_name);
|
|
$server_description = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$server_description);
|
|
$status = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$status);
|
|
$status_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$status_name);
|
|
$wrapup_message = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$wrapup_message);
|
|
$pause_code_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$pause_code_name);
|
|
$campaign_description = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$campaign_description);
|
|
$list_description = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$list_description);
|
|
$vcl_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$vcl_name);
|
|
$vsc_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$vsc_name);
|
|
$vsc_description = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$vsc_description);
|
|
$code_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$code_name);
|
|
$alias_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$alias_name);
|
|
$shift_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$shift_name);
|
|
$did_description = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$did_description);
|
|
$alt_server_ip = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$alt_server_ip);
|
|
$template_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$template_name);
|
|
$carrier_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$carrier_name);
|
|
$group_alias_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$group_alias_name);
|
|
$caller_id_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$caller_id_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);
|
|
$client_browser = ereg_replace("[^-\.\:\/\@\_0-9a-zA-Z]","",$client_browser);
|
|
$DBX_server = ereg_replace("[^-\.\:\/\@\_0-9a-zA-Z]","",$DBX_server);
|
|
$DBY_server = ereg_replace("[^-\.\:\/\@\_0-9a-zA-Z]","",$DBY_server);
|
|
$dtmf_send_extension = ereg_replace("[^-\.\:\/\@\_0-9a-zA-Z]","",$dtmf_send_extension);
|
|
$extension = ereg_replace("[^-\.\:\/\@\_0-9a-zA-Z]","",$extension);
|
|
$install_directory = ereg_replace("[^-\.\:\/\@\_0-9a-zA-Z]","",$install_directory);
|
|
$old_extension = ereg_replace("[^-\.\:\/\@\_0-9a-zA-Z]","",$old_extension);
|
|
$telnet_host = ereg_replace("[^-\.\:\/\@\_0-9a-zA-Z]","",$telnet_host);
|
|
$queuemetrics_dbname = ereg_replace("[^-\.\:\/\@\_0-9a-zA-Z]","",$queuemetrics_dbname);
|
|
$queuemetrics_login = ereg_replace("[^-\.\:\/\@\_0-9a-zA-Z]","",$queuemetrics_login);
|
|
$queuemetrics_pass = ereg_replace("[^-\.\:\/\@\_0-9a-zA-Z]","",$queuemetrics_pass);
|
|
$after_hours_message_filename = ereg_replace("[^-\.\:\/\@\_0-9a-zA-Z]","",$after_hours_message_filename);
|
|
$welcome_message_filename = ereg_replace("[^-\.\:\/\@\_0-9a-zA-Z]","",$welcome_message_filename);
|
|
$onhold_prompt_filename = ereg_replace("[^-\.\:\/\@\_0-9a-zA-Z]","",$onhold_prompt_filename);
|
|
$email = ereg_replace("[^-\.\:\/\@\_0-9a-zA-Z]","",$email);
|
|
$vtiger_dbname = ereg_replace("[^-\.\:\/\@\_0-9a-zA-Z]","",$vtiger_dbname);
|
|
$vtiger_login = ereg_replace("[^-\.\:\/\@\_0-9a-zA-Z]","",$vtiger_login);
|
|
$vtiger_pass = ereg_replace("[^-\.\:\/\@\_0-9a-zA-Z]","",$vtiger_pass);
|
|
|
|
### ALPHA-NUMERIC and underscore and dash and slash and at and space and colon
|
|
$vdc_header_date_format = ereg_replace("[^- \:\/\_0-9a-zA-Z]","",$vdc_header_date_format);
|
|
$vdc_customer_date_format = ereg_replace("[^- \:\/\_0-9a-zA-Z]","",$vdc_customer_date_format);
|
|
|
|
### ALPHA-NUMERIC and underscore and dash and at and space and parantheses
|
|
$vdc_header_phone_format = ereg_replace("[^- \(\)\_0-9a-zA-Z]","",$vdc_header_phone_format);
|
|
|
|
### remove semi-colons ###
|
|
$lead_filter_sql = ereg_replace(";","",$lead_filter_sql);
|
|
$list_mix_container = ereg_replace(";","",$list_mix_container);
|
|
$survey_response_digit_map = ereg_replace(";","",$survey_response_digit_map);
|
|
$survey_camp_record_dir = ereg_replace(";","",$survey_camp_record_dir);
|
|
$conf_override = ereg_replace(";","",$conf_override);
|
|
$template_contents = ereg_replace(";","",$template_contents);
|
|
$registration_string = ereg_replace(";","",$registration_string);
|
|
$account_entry = ereg_replace(";","",$account_entry);
|
|
$globals_string = ereg_replace(";","",$globals_string);
|
|
$dialplan_entry = ereg_replace(";","",$dialplan_entry);
|
|
|
|
### VARIABLES TO BE mysql_real_escape_string ###
|
|
# $web_form_address
|
|
# $queuemetrics_url
|
|
# $admin_home_url
|
|
# $qc_web_form_address
|
|
# $vtiger_url
|
|
|
|
### VARIABLES not filtered at all ###
|
|
# $script_text
|
|
|
|
} # end of non_latin
|
|
|
|
|
|
##### END VARIABLE FILTERING FOR SECURITY #####
|
|
|
|
|
|
# AST GUI database administration
|
|
# admin.php
|
|
#
|
|
# CHANGELOG:
|
|
# 50315-1110 - Added Custom Campaign Statuses
|
|
# 50317-1438 - Added Fronter Display var to inbound groups
|
|
# 50322-1355 - Added custom callerID per campaign
|
|
# 50517-1356 - Added user_groups sections and user_group to vicidial_users
|
|
# 50517-1440 - Added ability to logout (must click OK with empty user/pass)
|
|
# 50602-1622 - Added lead loader pages to load new files into vicidial_list
|
|
# 50620-1351 - Added custom vdad transfer AGI extension per campaign
|
|
# 50810-1414 - modified in groups to kick out spaces and dashes
|
|
# 50908-2136 - Added Custom Campaign HotKeys
|
|
# 50914-0950 - Fixed user search by user_group
|
|
# 50926-1358 - Modified to allow for language translation
|
|
# 50926-1615 - Added WeBRooTWritablE write controls
|
|
# 51020-1008 - Added editable web address and park ext - NEW dial campaigns
|
|
# 51020-1056 - Added fields and help for campaign recording control
|
|
# 51123-1335 - Altered code to function in php globals=off
|
|
# 51208-1038 - Added user_level changes, function controls and default user phones
|
|
# 51208-1556 - Added deletion of users/lists/campaigns/in groups/remote agents
|
|
# 51213-1706 - Added add/delete/modify vicidial scripts
|
|
# 51214-1737 - Added preview of vicidial script in popup window
|
|
# 51219-1225 - Added campaign and ingroups script selector and get_call_launch field
|
|
# 51222-1055 - Added am_message_exten to campaigns to allow for AM Message button
|
|
# 51222-1125 - Fixed new vicidial_campaigns default values not being assigned bug
|
|
# 51222-1156 - Added LOG OUT ALL AGENTS ON THIS CAMPAIGN button to campaign screen
|
|
# 60204-0659 - Fixed hopper reset bug
|
|
# 60207-1413 - Added AMD send to voicemail extension and xfer-conf dtmf presets
|
|
# 60213-1100 - Added several vicidial_users permissions fields
|
|
# 60215-1319 - Added On-hold CallBacks display and links
|
|
# 60227-1226 - Fixed vicidial_inbound_groups insert bug
|
|
# 60413-1308 - Fixed list display to have 1 row/status: count and time zone tables
|
|
# - Added status name in selected dial statuses in campaign screen
|
|
# 60417-1416 - Added vicidial_lead_filters sections
|
|
# - Changed the header links to color-coded sectional with sublinks below
|
|
# - Added filter name and script name to campaign and in-group modify sections
|
|
# - Added callback and alt dial options to campaigns section
|
|
# - Added callback, alt dial and other options to users section
|
|
# 60419-1628 - Alter Callbacks display to include status and LIVE listings, reordered
|
|
# 60421-1441 - check GET/POST vars lines with isset to not trigger PHP NOTICES
|
|
# 60425-2355 - Added agent options to vicidial_users, reformatted user page
|
|
# 60502-1627 - Added drop_call_seconds and safe_harbor_ fields to campaign screen
|
|
# 60503-1228 - Added drop_call_seconds and drop_ fields to inbound groups screen
|
|
# 60505-1117 - Added initial framework for new local_call_times tables and definitions
|
|
# 60506-1033 - More revisions to the local_call_time section
|
|
# 60508-1354 - Finished call_times and state_call_times sections
|
|
# - Added modify/delete options for call_times
|
|
# 60509-1311 - Functionalize campaign dialable leads calculation
|
|
# - Change state_call_times selection from call_times to only allow one per state
|
|
# - Added dialable leads count popup to campaign screen if auto-calc is disabled
|
|
# - Added test dialable leads count popup to filter screen
|
|
# 60510-1050 - Added Wrapup seconds and Wrapup message to campaigns screen
|
|
# 60608-1401 - Added allowable inbound_groups checkboxes to CLOSER campaign detail screen
|
|
# 60609-1051 - Added add-to-dnc in LISTS section
|
|
# 60613-1415 - Added lead recycling options to campaign detail screen
|
|
# 60619-1523 - Added variable filtering to eliminate SQL injection attack threat
|
|
# 60622-1216 - Fixed HotKey addition form issues and variable filtering
|
|
# 60623-1159 - Fixed Scheduled Callbacks over-filtering bug and filter_sql bug
|
|
# 60808-1147 - Changed filtering for and added instructions for consutative transfers
|
|
# 60816-1552 - Added allcalls_delay start delay for recordings in vicidial.php
|
|
# 60817-2226 - Fixed bug that would not allow lead recycling of non-selectable statuses
|
|
# 60821-1543 - Added option to Omit Phone Code while dialing in vicidial
|
|
# 60821-1625 - Added ALLFORCE recording option for campaign_recording
|
|
# 60823-1154 - Added fields for adaptive dialing
|
|
# 60824-1326 - Added adaptive_latest_target_gmt for ADAPT_TAPERED dial method
|
|
# 60825-1205 - Added adaptive_intensity for ADAPT_ dial methods
|
|
# 60828-1019 - Changed adaptive_latest_target_gmt to adaptive_latest_server_time
|
|
# 60828-1115 - Added adaptive_dl_diff_target and changed intensity dropdown
|
|
# 60927-1246 - Added astguiclient/admin.php functions under SERVERS tab
|
|
# 61002-1402 - Added fields for vicidial balance trunk controls
|
|
# 61003-1123 - Added functions for vicidial_server_trunks records
|
|
# 61109-1022 - Added Emergency VDAC Jam Clear function to Campaign Detail screen
|
|
# 61110-1502 - Add ability to select NONE in dial statuses, new list_id must not be < 100
|
|
# 61122-1228 - Added user group campaign restrictions
|
|
# 61122-1535 - Changed script_text to unfiltered and added more variables to SCRIPTS
|
|
# 61129-1028 - Added headers to Users and Phones with clickable order-by titles
|
|
# 70108-1405 - Added ADAPT OVERRIDE to allow for forced dial_level changes in ADAPT dial methods
|
|
# - Screen width definable at top of script, merged server_stats into this script
|
|
# 70109-1638 - Added ALTPH2 and ADDR3 hotkey options for alt number dialing with HotKeys
|
|
# 70109-1716 - Added concurrent_transfers option to vicidial_campaigns
|
|
# 70115-1152 - Aded (CLOSER|BLEND|INBND|_C$|_B$|_I$) options for CLOSER-type campaigns
|
|
# 70115-1532 - Added auto_alt_dial field to campaign screen for auto-dialing of alt numbers
|
|
# 70116-1200 - Added auto_alt_dial_status functionality to campaign screen
|
|
# 70117-1235 - Added header formatting variables at top of script
|
|
# - Moved Call Times and Phones/Server functions to Admin section
|
|
# 70118-1706 - Added new user group displays and links
|
|
# 70123-1519 - Added user permission settings for all sections
|
|
# 70124-1346 - Fixed spelling errors and formatting consistency
|
|
# 70202-1120 - Added agent_pause_codes section to campaigns
|
|
# 70205-1204 - Added memo, last dialed, timestamp and stats-refresh fields to vicidial_campaigns/lists
|
|
# 70206-1323 - Added user setting for vicidial_recording_override
|
|
# 70212-1412 - Added system settings section
|
|
# 70214-1226 - Added QueueMetrics Log ID field to system settings section
|
|
# 70219-1102 - Changed campaign dial statuses to be one string allowing for high limit
|
|
# 70223-0957 - Added queuemetrics_eq_prepend for custom ENTERQUEUE prepending of a field
|
|
# 70302-1111 - Fixed small bug in dialable leads calculation
|
|
# 70314-1133 - Added insert selection on script forms
|
|
# 70319-1423 - Added Alter Customer Data and agent disable display functions
|
|
# 70319-1625 - Added option to allow agents to login to outbound campaigns with no leads in the hopper
|
|
# 70322-1455 - Added sipsak messages parameters
|
|
# 70402-1157 - Added HOME link and entry to system_settings table, added QM link on reports section
|
|
# 70516-1628 - Started reformatting campaigns to use submenus to break up options
|
|
# 70529-1653 - Added help for list mix
|
|
# 70530-1354 - Added human_answered field to statuses, added system status modification
|
|
# 70530-1714 - Added lists for all campaign subsections
|
|
# 70531-1631 - Development on List mix admin interface
|
|
# 70601-1629 - More development on List mix admin interface, formatting, and added some javascript
|
|
# 70602-1300 - More development on List mix admin interface, more javascript
|
|
# 70608-1459 - Added option to set LIVE Callbacks to INACTIVE after one month
|
|
# 70612-1451 - Added Callback INACTIVE link for after one week, sort by user/group/entrydate
|
|
# 70614-0231 - Added Status Categories, ability to Modify Statuses, moved system statuses to sub-section
|
|
# 70623-1008 - List Mix section now allows modification of list mix entries
|
|
# 70629-1721 - List Mix section adding and removing of list entries active
|
|
# 70706-1636 - List Mix section cleanup and more error-checking
|
|
# 70908-0941 - Added agc logile enable system_settings
|
|
# 71020-1934 - Added inbound groups options: on-hold music, messages, call_times
|
|
# 71022-1343 - Added inbound group ranks for users
|
|
# 71029-1710 - Added option for campaign to be inbound and/or blended with no restrictions on the campaign_id name
|
|
# - Added 5th NEW and 6th NEW to the dial order options
|
|
# 71030-2010 - Added Manual Dial List ID field to campaigns table
|
|
# 71103-2207 - Added inbound_group_rank and fewest_calls to the inbound groups call order options
|
|
# 71113-1521 - Added campaign_rank to agent options
|
|
# - Added ability to Copy a campaign's setting to a new campaign
|
|
# 71113-2225 - Added ability to copy user and in-group settings to new users and in-groups
|
|
# 71116-0942 - Added campaign_rank and fewest_calls as methods for agent call routing
|
|
# 71122-1135 - Added default transfer group for campaigns and inbound groups
|
|
# 71125-1751 - Added allowable transfer groups to campaign detail screen
|
|
# 80107-1204 - Started framework for new QC section
|
|
# 80112-0242 - Added more options for lead order
|
|
# 80211-1901 - Added DB Schema Version to system settings display
|
|
# 80224-1334 - Added Queue Priority to in-groups and campaigns
|
|
# 80302-0232 - added drop_action and transfer to in-group for both in-groups and outbound
|
|
# 80310-1504 - added QC settings section to campaign screen
|
|
# 80317-2037 - Added Recording override settings to in-groups
|
|
# 80414-1505 - More work on QC, added vicidial_qc_codes
|
|
# 80424-0442 - Added non_latin system_settings lookup at top to override dbconnect setting
|
|
# 80505-0333 - Added phones_alias sections to allow for load-balanced-phone-logins
|
|
# 80512-1529 - Added auto-generate of User ID feature
|
|
# 80515-1345 - Added Shifts sub-section to Admin section
|
|
# 80528-0001 - Added campaign survey sub-section
|
|
# 80528-1102 - Added user timeclock edit options
|
|
# 80608-1304 - Changed add-to-DNC to allow for multiple entries per submission
|
|
# 80625-0032 - Added time/phone display format options to system settings
|
|
# 80703-0124 - Added alter cust phone and api settings
|
|
# 80715-1130 - Added Recycle leads limit count
|
|
# 80719-1351 - Changed QC settings in campaigns and In-Groups
|
|
# 80809-2305 - Added Sale and Dead Lead categories to status categories page
|
|
# 80815-1036 - Added manual dial filter to capaigns
|
|
# 80823-2124 - Added copy to clipboard campaign option
|
|
# 80829-2359 - Added EXTENDED auto_alt_dial options
|
|
# 80831-0406 - Added agent screen extended alt-dial option to campaigns
|
|
# 80909-0553 - Added campaign-specific DNC list option and add
|
|
# 81002-1101 - Added more in-group options and new DID section and user options
|
|
# 81007-0936 - Added three_way_call_cid option to campaigns
|
|
# 81012-1725 - Added INBOUND_MAN dial method allowing for manual list dialing with inbound calls
|
|
# 81030-0348 - Added campaign pause code force option
|
|
# 81030-2228 - Fixed DIDs creation issue
|
|
# 81103-1408 - Added 3way call dial prefix option
|
|
# 81107-1551 - Added Stats Percent of Calls Answered Within X seconds fields to in-groups
|
|
# 81118-0933 - Changed lists listing with links and more options
|
|
# 81119-0715 - Added ability to bulk enable/disable lists from modify campaign screen
|
|
# 81209-1538 - Added web_form_target to campaign screen
|
|
# 81210-1430 - Added http server IP and recording link options to servers
|
|
# 81222-0500 - Reformatted all listings to same format changed to field selects instead of *
|
|
# 81228-2300 - Added fields for vtiger integration and active vicidial_user display
|
|
# 90101-1216 - Added options for user synchronization with vtiger
|
|
# 90112-0335 - Added vtiger_create_lead_record and vtiger_create_lead_record options
|
|
# 90115-0502 - Activated AGENT DID routing option
|
|
# 90126-2256 - Added vtiger_screen_login campaign option and user agent alert option
|
|
# 90201-1503 - Added option to disable the viewing of inactive QC features
|
|
# 90202-0112 - Added option to disable outbound autodialing(or list dialing)
|
|
# 90202-0444 - Added cpd_amd_action option for processing of AMD messages
|
|
# 90209-1339 - Added download_lists option to allow downloading of lists
|
|
# 90210-1042 - Added options for auto-generation of asterisk conf files
|
|
# 90301-2026 - Added Vtiger group synchronization
|
|
# 90302-2046 - Changed Section heading to be on the left side of the screen
|
|
# 90303-0631 - Added web vars to agent campaign and in-group settings
|
|
# 90303-2047 - Added group aliases and default group aliases
|
|
# 90306-1214 - Added shift enforcement and server/system calls per second options
|
|
# 90308-0956 - Added server statistics
|
|
# 90309-0059 - Changed logging to admin_server_log
|
|
# 90310-2203 - Added export_reports option for call activity report data exports
|
|
# 90320-0424 - Fixed several small bugs conf records group alias and permissions
|
|
#
|
|
# 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.0.5-173';
|
|
$build = '90320-0424';
|
|
|
|
$STARTtime = date("U");
|
|
$SQLdate = date("Y-m-d H:i:s");
|
|
$REPORTdate = date("Y-m-d");
|
|
$MT[0]='';
|
|
$US='_';
|
|
$active_lists=0;
|
|
$inactive_lists=0;
|
|
|
|
$month_old = mktime(0, 0, 0, date("m")-1, date("d"), date("Y"));
|
|
$past_month_date = date("Y-m-d H:i:s",$month_old);
|
|
$week_old = mktime(0, 0, 0, date("m"), date("d")-7, date("Y"));
|
|
$past_week_date = date("Y-m-d H:i:s",$week_old);
|
|
|
|
if ($force_logout)
|
|
{
|
|
if( (strlen($PHP_AUTH_USER)>0) or (strlen($PHP_AUTH_PW)>0) )
|
|
{
|
|
Header("WWW-Authenticate: Basic realm=\"VICI-PROJECTS\"");
|
|
Header("HTTP/1.0 401 Unauthorized");
|
|
}
|
|
echo "Vous êtes maintenant déconnecté. Merci.\n";
|
|
exit;
|
|
}
|
|
|
|
#############################################
|
|
##### START SYSTEM_SETTINGS LOOKUP #####
|
|
$stmt = "SELECT use_non_latin FROM system_settings;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
if ($DB) {echo "$stmt\n";}
|
|
$qm_conf_ct = mysql_num_rows($rslt);
|
|
$i=0;
|
|
while ($i < $qm_conf_ct)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$non_latin = $row[0];
|
|
$i++;
|
|
}
|
|
##### END SETTINGS LOOKUP #####
|
|
###########################################
|
|
|
|
$stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW' and user_level > 7 and active='Y';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
if ($non_latin > 0) {$rslt=mysql_query("SET NAMES 'UTF8'");}
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$auth=$row[0];
|
|
|
|
if ($WeBRooTWritablE > 0)
|
|
{$fp = fopen ("./project_auth_entries.txt", "a");}
|
|
|
|
$date = date("r");
|
|
$ip = getenv("REMOTE_ADDR");
|
|
$browser = getenv("HTTP_USER_AGENT");
|
|
|
|
if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or ($auth<1))
|
|
{
|
|
Header("WWW-Authenticate: Basic realm=\"VICI-PROJECTS\"");
|
|
Header("HTTP/1.0 401 Unauthorized");
|
|
echo "Login ou mot de passe invalide: |$PHP_AUTH_USER|$PHP_AUTH_PW|\n";
|
|
exit;
|
|
}
|
|
else
|
|
{
|
|
|
|
if($auth>0)
|
|
{
|
|
$office_no=strtoupper($PHP_AUTH_USER);
|
|
$password=strtoupper($PHP_AUTH_PW);
|
|
$stmt="SELECT * from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$LOGfull_name =$row[3];
|
|
$LOGuser_level =$row[4];
|
|
$LOGuser_group =$row[5];
|
|
$LOGdelete_users =$row[8];
|
|
$LOGdelete_user_groups =$row[9];
|
|
$LOGdelete_lists =$row[10];
|
|
$LOGdelete_campaigns =$row[11];
|
|
$LOGdelete_ingroups =$row[12];
|
|
$LOGdelete_remote_agents =$row[13];
|
|
$LOGload_leads =$row[14];
|
|
$LOGcampaign_detail =$row[15];
|
|
$LOGast_admin_access =$row[16];
|
|
$LOGast_delete_phones =$row[17];
|
|
$LOGdelete_scripts =$row[18];
|
|
$LOGdelete_filters =$row[29];
|
|
$LOGalter_agent_interface =$row[30];
|
|
$LOGdelete_call_times =$row[32];
|
|
$LOGmodify_call_times =$row[33];
|
|
$LOGmodify_users =$row[34];
|
|
$LOGmodify_campaigns =$row[35];
|
|
$LOGmodify_lists =$row[36];
|
|
$LOGmodify_scripts =$row[37];
|
|
$LOGmodify_filters =$row[38];
|
|
$LOGmodify_ingroups =$row[39];
|
|
$LOGmodify_usergroups =$row[40];
|
|
$LOGmodify_remoteagents =$row[41];
|
|
$LOGmodify_servers =$row[42];
|
|
$LOGview_reports =$row[43];
|
|
$LOGmodify_dids =$row[56];
|
|
$LOGdelete_dids =$row[57];
|
|
$LOGmanager_shift_enforcement_override=$row[61];
|
|
$LOGexport_reports =$row[64];
|
|
|
|
$stmt="SELECT allowed_campaigns from vicidial_user_groups where user_group='$LOGuser_group';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$LOGallowed_campaigns =$row[0];
|
|
|
|
if ($WeBRooTWritablE > 0)
|
|
{
|
|
fwrite ($fp, "VICIDIAL|GOOD|$date|$PHP_AUTH_USER|XXXX|$ip|$browser|$LOGfull_name|\n");
|
|
fclose($fp);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if ($WeBRooTWritablE > 0)
|
|
{
|
|
fwrite ($fp, "VICIDIAL|FAIL|$date|$PHP_AUTH_USER|$PHP_AUTH_PW|$ip|$browser|\n");
|
|
fclose($fp);
|
|
}
|
|
}
|
|
}
|
|
|
|
######################################################################################################
|
|
######################################################################################################
|
|
####### Header settings
|
|
######################################################################################################
|
|
######################################################################################################
|
|
|
|
|
|
header ("Content-type: text/html; charset=utf-8");
|
|
echo "<html>\n";
|
|
echo "<head>\n";
|
|
echo "<!-- VERSION: $admin_version CONSTRUCTION: $build ADD: $ADD PHP_SELF: $PHP_SELF-->\n";
|
|
echo "<title>ADMINISTRATION DE VICIDIAL: ";
|
|
|
|
if (!isset($ADD)) {$ADD=0;}
|
|
|
|
if ($ADD=="1") {$hh='users'; echo "Ajouter un nouvel utilisateur";}
|
|
if ($ADD=="1A") {$hh='users'; echo "Utilisateur De Copy";}
|
|
if ($ADD==11) {$hh='campaigns'; $sh='basic'; echo "Ajouter une nouvelle campagne";}
|
|
if ($ADD==12) {$hh='campaigns'; $sh='basic'; echo "Campagne De Copy";}
|
|
if ($ADD==111) {$hh='lists'; echo "Ajouter une nouvelle liste";}
|
|
if ($ADD==121) {$hh='lists'; echo "Ajouter un nouveau DNC";}
|
|
if ($ADD==1111) {$hh='ingroups'; echo "Ajouter un nouveau in-group";}
|
|
if ($ADD==1211) {$hh='ingroups'; echo "Dans-Groupe De Copy";}
|
|
if ($ADD==1311) {$hh='ingroups'; echo "Ajouter un nouveauDID";}
|
|
if ($ADD==1411) {$hh='ingroups'; echo "CopieDID";}
|
|
if ($ADD==11111) {$hh='remoteagent'; echo "Ajouter de nouveaux agents distants";}
|
|
if ($ADD==111111) {$hh='usergroups'; echo "Ajouter de nouveaux groupes d'utilisateurs";}
|
|
if ($ADD==1111111) {$hh='scripts'; echo "Ajouter un nouveau script";}
|
|
if ($ADD==11111111) {$hh='filters'; echo "Ajouter un nouveau filtre";}
|
|
if ($ADD==111111111) {$hh='admin'; $sh='times'; echo "Ajouter une nouvelle période d'appels";}
|
|
if ($ADD==131111111) {$hh='admin'; $sh='shifts'; echo "Ajouter un nouveau Shift";}
|
|
if ($ADD==1111111111) {$hh='admin'; $sh='times'; echo "Ajouter une nouvelle période d'appels d'état";}
|
|
if ($ADD==11111111111) {$hh='admin'; $sh='phones'; echo "AJOUTER UN NOUVEAU TELEPEHONE";}
|
|
if ($ADD==12111111111) {$hh='admin'; $sh='phones'; echo "AJOUTER UN NOUVEAU TELEPEHONE ALIAS";}
|
|
if ($ADD==13111111111) {$hh='admin'; $sh='phones'; echo "ADD NEW GROUP ALIAS";}
|
|
if ($ADD==111111111111) {$hh='admin'; $sh='server'; echo "AJOUTER UN NOUVEAU SERVEUR";}
|
|
if ($ADD==131111111111) {$hh='admin'; $sh='templates'; echo "ADD NEW CONF TEMPLATE";}
|
|
if ($ADD==141111111111) {$hh='admin'; $sh='carriers'; echo "ADD NEW CARRIER";}
|
|
if ($ADD==1111111111111) {$hh='admin'; $sh='conference'; echo "AJOUTER UNE NOUVELLE CONFERENCE";}
|
|
if ($ADD==11111111111111) {$hh='admin'; $sh='conference'; echo "ADD NEW VICIDIAL CONFERENCE";}
|
|
if ($ADD=='2') {$hh='users'; echo "Ajout d'un nouvel utilisateur";}
|
|
if ($ADD=='2A') {$hh='users'; echo "Nouvelle Addition Copiée D'Utilisateur";}
|
|
if ($ADD==20) {$hh='campaigns'; $sh='basic'; echo "Nouvelle Addition Copiée De Campagne";}
|
|
if ($ADD==21) {$hh='campaigns'; $sh='basic'; echo "Ajout d'une nouvelle campagne";}
|
|
if ($ADD==22) {$hh='campaigns'; $sh='status'; echo "Ajout d'un nouveau statut de campagne";}
|
|
if ($ADD==23) {$hh='campaigns'; $sh='hotkey'; echo "New Campagne HotKey Addition";}
|
|
if ($ADD==25) {$hh='campaigns'; $sh='recycle'; echo "New CampagneLe Fil RéutilisentAddition";}
|
|
if ($ADD==26) {$hh='campaigns'; $sh='autoalt'; echo "Nouveau statut d'appel automatique du numéro alternatif";}
|
|
if ($ADD==27) {$hh='campaigns'; $sh='pause'; echo "Nouveau code de pause";}
|
|
if ($ADD==28) {$hh='campaigns'; $sh='dialstat'; echo "Statut d'appel pour la campagne ajouté";}
|
|
if ($ADD==29) {$hh='campaigns'; $sh='listmix'; echo "Le Mélange De Liste De Campagne S'est ajouté";}
|
|
if ($ADD==211) {$hh='lists'; echo "Ajout d'une nouvelle liste";}
|
|
if ($ADD==2111) {$hh='ingroups'; echo "Ajout d'un nouvel In-Group";}
|
|
if ($ADD==2011) {$hh='ingroups'; echo "Nouvelle Addition Copiée De Dans-Groupe";}
|
|
if ($ADD==2311) {$hh='ingroups'; echo "A New Addition";}
|
|
if ($ADD==2411) {$hh='ingroups'; echo "Nouvelle adjonction Copied DID";}
|
|
if ($ADD==21111) {$hh='remoteagent'; echo "Ajout d'un nouvel agent distant";}
|
|
if ($ADD==211111) {$hh='usergroups'; echo "Ajout d'un nouveau groupe d'utilisateurs";}
|
|
if ($ADD==2111111) {$hh='scripts'; echo "Ajout d'un nouveau script";}
|
|
if ($ADD==21111111) {$hh='filters'; echo "Ajout d'un nouveau filtre";}
|
|
if ($ADD==211111111) {$hh='admin'; $sh='times'; echo "Ajout d'une nouvelle période d'appels";}
|
|
if ($ADD==231111111) {$hh='admin'; $sh='shifts'; echo "New Shift adjonction";}
|
|
if ($ADD==2111111111) {$hh='admin'; $sh='times'; echo "Ajout d'une nouvelle période d'appels d'état";}
|
|
if ($ADD==21111111111) {$hh='admin'; $sh='phones'; echo "AJOUTER UN NOUVEAU TELEPHONE";}
|
|
if ($ADD==22111111111) {$hh='admin'; $sh='phones'; echo "AJOUT DE NOUVEAU TÉLÉPHONE ALIAS";}
|
|
if ($ADD==23111111111) {$hh='admin'; $sh='phones'; echo "AJOUT DE NOUVEAU GROUPE ALIAS";}
|
|
if ($ADD==211111111111) {$hh='admin'; $sh='server'; echo "AJOUTER UN NOUVEAU SERVEUR";}
|
|
if ($ADD==221111111111) {$hh='admin'; $sh='server'; echo "AJOUT D'UN NOUVEAU TRUNK VERS UN SERVEUR VICIDIAL";}
|
|
if ($ADD==231111111111) {$hh='admin'; $sh='templates'; echo "AJOUT DE NOUVEAUX CONF TEMPLATE";}
|
|
if ($ADD==241111111111) {$hh='admin'; $sh='carriers'; echo "AJOUT DE NOUVEAUX CARRIER";}
|
|
if ($ADD==2111111111111) {$hh='admin'; $sh='conference'; echo "AJOUT D'UNE NOUVELLE CONFERENCE";}
|
|
if ($ADD==21111111111111) {$hh='admin'; $sh='conference'; echo "ADDING NEW VICIDIAL CONFERENCE";}
|
|
if ($ADD==221111111111111) {$hh='admin'; $sh='status'; echo "AJOUTER DES STATUTS DE SYSTÈME DE VICIDIAL";}
|
|
if ($ADD==231111111111111) {$hh='admin'; $sh='status'; echo "AJOUTER LA CATÉGORIE DE STATUT DE VICIDIAL";}
|
|
if ($ADD==241111111111111) {$hh='admin'; $sh='status'; echo "AJOUT VICIDIAL QC Code de statut";}
|
|
if ($ADD==3) {$hh='users'; echo "Modifier un utilisateur";}
|
|
if ($ADD==30) {$hh='campaigns'; echo "Camapagne non autorisée";}
|
|
if ($ADD==31)
|
|
{
|
|
$hh='campaigns'; $sh='detail'; echo "Modifier la campagne - Détail - $campaign_id";
|
|
if ($SUB==22) {echo " - Statuts";}
|
|
if ($SUB==23) {echo " - HotKeys";}
|
|
if ($SUB==25) {echo " -Le Fil RéutilisentEntries";}
|
|
if ($SUB==26) {echo " - Auto Alt Dial Statuts";}
|
|
if ($SUB==27) {echo " - Agent Pause Codes";}
|
|
if ($SUB==28) {echo " - QC";}
|
|
if ($SUB==29) {echo " - Liste Mixes";}
|
|
if ($SUB=='20A') {echo " - Sondage";}
|
|
}
|
|
if ($ADD==34)
|
|
{
|
|
$hh='campaigns'; $sh='basic'; echo "Modifier une Campagne - Vue Basique - $campaign_id";
|
|
if ($SUB==22) {echo " - Statuts";}
|
|
if ($SUB==23) {echo " - HotKeys";}
|
|
if ($SUB==25) {echo " -Le Fil RéutilisentEntries";}
|
|
if ($SUB==26) {echo " - Auto Alt Dial Statuts";}
|
|
if ($SUB==27) {echo " - Agent Pause Codes";}
|
|
if ($SUB==28) {echo " - QC";}
|
|
if ($SUB==29) {echo " - Liste Mixes";}
|
|
if ($SUB=='20A') {echo " - Sondage";}
|
|
}
|
|
if ($ADD==32) {$hh='campaigns'; $sh='status'; echo "Statuts De Campagne";}
|
|
if ($ADD==33) {$hh='campaigns'; $sh='hotkey'; echo "Campagne HotKeys";}
|
|
if ($ADD==35) {$hh='campaigns'; $sh='recycle'; echo "Le Fil De Campagne Réutilisent Des Entrées";}
|
|
if ($ADD==36) {$hh='campaigns'; $sh='autoalt'; echo "Statuts Automatiques De Cadran De la Campagne Alt";}
|
|
if ($ADD==37) {$hh='campaigns'; $sh='pause'; echo "Codes De Pause D'Agent De Campagne";}
|
|
if ($ADD==38) {$hh='campaigns'; $sh='dialstat'; echo "Statuts De Cadran De Campagne";}
|
|
if ($ADD==39) {$hh='campaigns'; $sh='listmix'; echo "Mlanges De Liste De Campagne";}
|
|
if ($ADD==311) {$hh='lists'; echo "Modifier la liste";}
|
|
if ($ADD==3111) {$hh='ingroups'; echo "Modifier le In-Group";}
|
|
if ($ADD==3311) {$hh='ingroups'; echo "ModifierDID";}
|
|
if ($ADD==31111) {$hh='remoteagent'; echo "Modifier les agents distants";}
|
|
if ($ADD==311111) {$hh='usergroups'; echo "Modifier les groupes d'utilisateurs";}
|
|
if ($ADD==3111111) {$hh='scripts'; echo "Modifier le script";}
|
|
if ($ADD==31111111) {$hh='filters'; echo "Modifier le filtre";}
|
|
if ($ADD==311111111) {$hh='admin'; $sh='times'; echo "Modifier la période d'appels";}
|
|
if ($ADD==321111111) {$hh='admin'; $sh='times'; echo "Modifier la liste des définitions des périodes d'appels d'état";}
|
|
if ($ADD==331111111) {$hh='admin'; $sh='shifts'; echo "Modifier Shift";}
|
|
if ($ADD==3111111111) {$hh='admin'; $sh='times'; echo "Modifier la période d'appels d'état";}
|
|
if ($ADD==31111111111) {$hh='admin'; $sh='phones'; echo "MODIFIER LE TELEPHONE";}
|
|
if ($ADD==32111111111) {$hh='admin'; $sh='phones'; echo "MODIFIER LE TELEPHONE ALIAS";}
|
|
if ($ADD==33111111111) {$hh='admin'; $sh='phones'; echo "Modifier un groupe ALIAS";}
|
|
if ($ADD==311111111111) {$hh='admin'; $sh='server'; echo "MODIFIER LE SERVEUR";}
|
|
if ($ADD==331111111111) {$hh='admin'; $sh='templates'; echo "MODIFY CONF TEMPLATE";}
|
|
if ($ADD==341111111111) {$hh='admin'; $sh='carriers'; echo "MODIFY CARRIER";}
|
|
if ($ADD==3111111111111) {$hh='admin'; $sh='conference'; echo "MODIFIER LA CONFERENCE";}
|
|
if ($ADD==31111111111111) {$hh='admin'; $sh='conference'; echo "MODIFY VICIDIAL CONFERENCE";}
|
|
if ($ADD==311111111111111) {$hh='admin'; $sh='settings'; echo "MODIFIER LES REGLAGES DU SYSTEME VICIDIAL";}
|
|
if ($ADD==321111111111111) {$hh='admin'; $sh='status'; echo "MODIFIEZ LES STATUTS DE SYSTÈME DE VICIDIAL";}
|
|
if ($ADD==331111111111111) {$hh='admin'; $sh='status'; echo "MODIFIEZ LA CATÉGORIE DE STATUT DE VICIDIAL";}
|
|
if ($ADD==341111111111111) {$hh='admin'; $sh='status'; echo "MODIFY VICIDIAL QC Code de statut";}
|
|
if ($ADD=="4A") {$hh='users'; echo "Modifier un utilisateur - Admin";}
|
|
if ($ADD=="4B") {$hh='users'; echo "Modifier un utilisateur - Admin";}
|
|
if ($ADD==4) {$hh='users'; echo "Modifier un utilisateur";}
|
|
if ($ADD==41) {$hh='campaigns'; $sh='detail'; echo "Modifier la campagne";}
|
|
if ($ADD==42) {$hh='campaigns'; $sh='status'; echo "Modifier la campagne Status";}
|
|
if ($ADD==43) {$hh='campaigns'; $sh='hotkey'; echo "Modifier la campagne HotKey";}
|
|
if ($ADD==44) {$hh='campaigns'; $sh='basic'; echo "Modifier une Campagne - Vue Basique";}
|
|
if ($ADD==45) {$hh='campaigns'; $sh='recycle'; echo "Modifier la campagne Recyclage Plomb";}
|
|
if ($ADD==47) {$hh='campaigns'; $sh='pause'; echo "Modifier le code de pause";}
|
|
if ($ADD==48) {$hh='campaigns'; $sh='qc'; echo "Modifier les paramètres de campagne QC";}
|
|
if ($ADD==49) {$hh='campaigns'; $sh='listmix'; echo "Modifiez Le Mélange De Liste De Campagne";}
|
|
if ($ADD=='40A') {$hh='campaigns'; $sh='survey'; echo "Modifier Campagne Sondage";}
|
|
if ($ADD==411) {$hh='lists'; echo "Modifier la liste";}
|
|
if ($ADD==4111) {$hh='ingroups'; echo "Modifier le In-Group";}
|
|
if ($ADD==4311) {$hh='ingroups'; echo "ModifierDID";}
|
|
if ($ADD==41111) {$hh='remoteagent'; echo "Modifier les agents distants";}
|
|
if ($ADD==411111) {$hh='usergroups'; echo "Modifier les groupes d'utilisateurs";}
|
|
if ($ADD==4111111) {$hh='scripts'; echo "Modifier le script";}
|
|
if ($ADD==41111111) {$hh='filters'; echo "Modifier le filtre";}
|
|
if ($ADD==411111111) {$hh='admin'; $sh='times'; echo "Modifier la période d'appels";}
|
|
if ($ADD==431111111) {$hh='admin'; $sh='shifts'; echo "Modifier Shift";}
|
|
if ($ADD==4111111111) {$hh='admin'; $sh='times'; echo "Modifier la période d'appels d'état";}
|
|
if ($ADD==41111111111) {$hh='admin'; $sh='phones'; echo "MODIFIER LE TELEPHONE";}
|
|
if ($ADD==42111111111) {$hh='admin'; $sh='phones'; echo "MODIFIER LE TELEPHONE ALIAS";}
|
|
if ($ADD==43111111111) {$hh='admin'; $sh='phones'; echo "Modifier un groupe ALIAS";}
|
|
if ($ADD==411111111111) {$hh='admin'; $sh='server'; echo "MODIFIER LE SERVEUR";}
|
|
if ($ADD==421111111111) {$hh='admin'; $sh='server'; echo "MODIFIER LE TRUNK SERVEUR VICIDIAL";}
|
|
if ($ADD==431111111111) {$hh='admin'; $sh='templates'; echo "MODIFY CONF TEMPLATE";}
|
|
if ($ADD==441111111111) {$hh='admin'; $sh='carriers'; echo "MODIFY CARRIER";}
|
|
if ($ADD==4111111111111) {$hh='admin'; $sh='conference'; echo "MODIFIER LA CONFERENCE";}
|
|
if ($ADD==41111111111111) {$hh='admin'; $sh='conference'; echo "MODIFY VICIDIAL CONFERENCE";}
|
|
if ($ADD==411111111111111) {$hh='admin'; $sh='settings'; echo "MODIFIER LES REGLAGES DU SYSTEME VICIDIAL";}
|
|
if ($ADD==421111111111111) {$hh='admin'; $sh='status'; echo "MODIFIEZ LES STATUTS DE SYSTÈME DE VICIDIAL";}
|
|
if ($ADD==431111111111111) {$hh='admin'; $sh='status'; echo "MODIFIEZ LES CATÉGORIES DE STATUT DE VICIDIAL";}
|
|
if ($ADD==441111111111111) {$hh='admin'; $sh='status'; echo "MODIFY VICIDIAL QC Code de statut";}
|
|
if ($ADD==5) {$hh='users'; echo "SupprimerUtilisateur";}
|
|
if ($ADD==51) {$hh='campaigns'; $sh='detail'; echo "SupprimerCampagne";}
|
|
if ($ADD==52) {$hh='campaigns'; $sh='detail'; echo "Déconnecter les agents";}
|
|
if ($ADD==53) {$hh='campaigns'; $sh='detail'; echo "Emergency VDAC Jam Clear";}
|
|
if ($ADD==511) {$hh='lists'; echo "SupprimerList";}
|
|
if ($ADD==5111) {$hh='ingroups'; echo "SupprimerIn-Group";}
|
|
if ($ADD==5311) {$hh='ingroups'; echo "SupprimerDID";}
|
|
if ($ADD==51111) {$hh='remoteagent'; echo "Supprimer les agents distants";}
|
|
if ($ADD==511111) {$hh='usergroups'; echo "Supprimer les utilisateurs Group";}
|
|
if ($ADD==5111111) {$hh='scripts'; echo "Supprimer les scripts";}
|
|
if ($ADD==51111111) {$hh='filters'; echo "Supprimer le filtre";}
|
|
if ($ADD==511111111) {$hh='admin'; $sh='times'; echo "SupprimerCall Time";}
|
|
if ($ADD==531111111) {$hh='admin'; $sh='shifts'; echo "Maj + Suppr";}
|
|
if ($ADD==5111111111) {$hh='admin'; $sh='times'; echo "Supprimer la période d'appels d'état";}
|
|
if ($ADD==51111111111) {$hh='admin'; $sh='phones'; echo "DELETE PHONE";}
|
|
if ($ADD==52111111111) {$hh='admin'; $sh='phones'; echo "DELETE PHONE ALIAS";}
|
|
if ($ADD==53111111111) {$hh='admin'; $sh='phones'; echo "DELETE GROUP ALIAS";}
|
|
if ($ADD==511111111111) {$hh='admin'; $sh='server'; echo "DELETE SERVER";}
|
|
if ($ADD==531111111111) {$hh='admin'; $sh='templates'; echo "DELETE CONF TEMPLATE";}
|
|
if ($ADD==541111111111) {$hh='admin'; $sh='carriers'; echo "DELETE CARRIER";}
|
|
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 "SupprimerUtilisateur";}
|
|
if ($ADD==61) {$hh='campaigns'; $sh='detail'; echo "SupprimerCampagne";}
|
|
if ($ADD==62) {$hh='campaigns'; $sh='detail'; echo "Déconnecter les agents";}
|
|
if ($ADD==63) {$hh='campaigns'; $sh='detail'; echo "Emergency VDAC Jam Clear";}
|
|
if ($ADD==65) {$hh='campaigns'; $sh='recycle'; echo "Supprimer le recyclage des fiches";}
|
|
if ($ADD==66) {$hh='campaigns'; $sh='autoalt'; echo "Supprimer ce statut d'appel automatique du numéro alternatif";}
|
|
if ($ADD==67) {$hh='campaigns'; $sh='pause'; echo "Supprimer le code de pause";}
|
|
if ($ADD==68) {$hh='campaigns'; $sh='dialstat'; echo "Statut d'appel pour la campagne supprimé";}
|
|
if ($ADD==69) {$hh='campaigns'; $sh='listmix'; echo "Mélange De Liste De Campagne Enlevé";}
|
|
if ($ADD==611) {$hh='lists'; echo "SupprimerList";}
|
|
if ($ADD==6111) {$hh='ingroups'; echo "SupprimerIn-Group";}
|
|
if ($ADD==6311) {$hh='ingroups'; echo "SupprimerDID";}
|
|
if ($ADD==61111) {$hh='remoteagent'; echo "Supprimer les agents distants";}
|
|
if ($ADD==611111) {$hh='usergroups'; echo "Supprimer les utilisateurs Group";}
|
|
if ($ADD==6111111) {$hh='scripts'; echo "Supprimer les scripts";}
|
|
if ($ADD==61111111) {$hh='filters'; echo "Supprimer le filtre";}
|
|
if ($ADD==611111111) {$hh='admin'; $sh='times'; echo "SupprimerCall Time";}
|
|
if ($ADD==631111111) {$hh='admin'; $sh='shifts'; echo "Maj + Suppr";}
|
|
if ($ADD==6111111111) {$hh='admin'; $sh='times'; echo "Supprimer la période d'appels d'état";}
|
|
if ($ADD==61111111111) {$hh='admin'; $sh='phones'; echo "DELETE PHONE";}
|
|
if ($ADD==62111111111) {$hh='admin'; $sh='phones'; echo "DELETE PHONE ALIAS";}
|
|
if ($ADD==63111111111) {$hh='admin'; $sh='phones'; echo "DELETE GROUP ALIAS";}
|
|
if ($ADD==611111111111) {$hh='admin'; $sh='server'; echo "DELETE SERVER";}
|
|
if ($ADD==621111111111) {$hh='admin'; $sh='server'; echo "SUPPRIMER LE TRUNK SERVEUR VICIDIAL";}
|
|
if ($ADD==621111111111) {$hh='admin'; $sh='templates'; echo "DELETE CONF TEMPLATE";}
|
|
if ($ADD==621111111111) {$hh='admin'; $sh='carriers'; echo "DELETE CARRIER";}
|
|
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 "Nombre de fiches désavtivées";}
|
|
if ($ADD==7111111) {$hh='scripts'; echo "Prévisualisation du script";}
|
|
if ($ADD==700000000000000) {$hh='reports'; echo "ADMINISTRATION DE VICIDIAL CHANGE LOG";}
|
|
if ($ADD==710000000000000) {$hh='reports'; echo "VICIDIAL UTILISATEUR ADMIN CHANGE LOG";}
|
|
if ($ADD==720000000000000) {$hh='reports'; echo "VICIDIAL SECTION ADMIN CHANGE LOG";}
|
|
if ($ADD==730000000000000) {$hh='reports'; echo "VICIDIAL DETAIL ADMIN CHANGE LOG";}
|
|
if ($ADD==0) {$hh='users'; echo "Liste des utilisateurs";}
|
|
if ($ADD==8) {$hh='users'; echo "Rappels de l'agent";}
|
|
if ($ADD==81) {$hh='campaigns'; $sh='list'; echo "Rappels dans la campagne ";}
|
|
if ($ADD==811) {$hh='lists'; echo "Rappels dans la liste";}
|
|
if ($ADD==8111) {$hh='usergroups'; echo "Rappels de service dans le groupe d'utilisateurs";}
|
|
if ($ADD==10) {$hh='campaigns'; $sh='list'; echo "Campagnes";}
|
|
if ($ADD==100) {$hh='lists'; echo "Listes";}
|
|
if ($ADD==1000) {$hh='ingroups'; echo "In-Groups";}
|
|
if ($ADD==1300) {$hh='ingroups'; echo "DIDs";}
|
|
if ($ADD==10000) {$hh='remoteagent'; echo "Agents distants";}
|
|
if ($ADD==100000) {$hh='usergroups'; echo "Groupes d'utilisateurs";}
|
|
if ($ADD==1000000) {$hh='scripts'; echo "Scripts";}
|
|
if ($ADD==10000000) {$hh='filters'; echo "Filtres";}
|
|
if ($ADD==100000000) {$hh='admin'; $sh='times'; echo "Périodes d'appels";}
|
|
if ($ADD==130000000) {$hh='admin'; $sh='shifts'; echo "Shifts";}
|
|
if ($ADD==1000000000) {$hh='admin'; $sh='times'; echo "Périodes d'appels d'états";}
|
|
if ($ADD==10000000000) {$hh='admin'; $sh='phones'; echo "LISTE DE TELEPHONES";}
|
|
if ($ADD==12000000000) {$hh='admin'; $sh='phones'; echo "TÉLÉLISTE DE TELEPHONESE ALIAS";}
|
|
if ($ADD==13000000000) {$hh='admin'; $sh='phones'; echo "GROUPE ALIAS LISTE";}
|
|
if ($ADD==100000000000) {$hh='admin'; $sh='server'; echo "LISTE DE SERVEURS";}
|
|
if ($ADD==130000000000) {$hh='admin'; $sh='templates'; echo "CONF TEMPLATE LISTE";}
|
|
if ($ADD==140000000000) {$hh='admin'; $sh='carriers'; echo "CARRIER LISTE";}
|
|
if ($ADD==1000000000000) {$hh='admin'; $sh='conference'; echo "LISTE DE CONFERENCES";}
|
|
if ($ADD==10000000000000) {$hh='admin'; $sh='conference'; echo "VICIDIAL LISTE DE CONFERENCES";}
|
|
if ($ADD==550) {$hh='users'; echo "Formulaire de recherche";}
|
|
if ($ADD==551) {$hh='users'; echo "RECHERCHER DES TELEPHONES";}
|
|
if ($ADD==660) {$hh='users'; echo "Résultats de la recherche";}
|
|
if ($ADD==661) {$hh='users'; echo "RESULTATS DE LA RECHERCHE DE TELEPHONES";}
|
|
if ($ADD==99999) {$hh='users'; echo "AIDE";}
|
|
if ($ADD==999999) {$hh='reports'; echo "RAPPORTS";}
|
|
|
|
if ( ($ADD>9) && ($ADD < 99998) )
|
|
{
|
|
##### get scripts listing for dynamic pulldown
|
|
$stmt="SELECT script_id,script_name from vicidial_scripts order by script_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$scripts_to_print = mysql_num_rows($rslt);
|
|
$scripts_list="<option value=\"\">NONE</option>\n";
|
|
|
|
$o=0;
|
|
while ($scripts_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$scripts_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$scriptname_list["$rowx[0]"] = "$rowx[1]";
|
|
$o++;
|
|
}
|
|
|
|
##### get filters listing for dynamic pulldown
|
|
$stmt="SELECT lead_filter_id,lead_filter_name,lead_filter_sql from vicidial_lead_filters order by lead_filter_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$filters_to_print = mysql_num_rows($rslt);
|
|
$filters_list="<option value=\"\">NONE</option>\n";
|
|
|
|
$o=0;
|
|
while ($filters_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$filters_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$filtername_list["$rowx[0]"] = "$rowx[1]";
|
|
$filtersql_list["$rowx[0]"] = "$rowx[2]";
|
|
$o++;
|
|
}
|
|
|
|
##### get call_times listing for dynamic pulldown
|
|
$stmt="SELECT call_time_id,call_time_name from vicidial_call_times order by call_time_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$times_to_print = mysql_num_rows($rslt);
|
|
|
|
$o=0;
|
|
while ($times_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$call_times_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$call_timename_list["$rowx[0]"] = "$rowx[1]";
|
|
$o++;
|
|
}
|
|
}
|
|
|
|
if ( ( (strlen($ADD)>4) && ($ADD < 99998) ) or ($ADD==3) or (($ADD>20) and ($ADD<70)) or ($ADD=="4A") or ($ADD=="4B") or (strlen($ADD)==12) )
|
|
{
|
|
##### get server listing for dynamic pulldown
|
|
$stmt="SELECT server_ip,server_description from servers order by server_ip";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$servers_to_print = mysql_num_rows($rslt);
|
|
$servers_list='';
|
|
|
|
$o=0;
|
|
while ($servers_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$servers_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
|
|
##### BEGIN get campaigns listing for rankings #####
|
|
|
|
$stmt="SELECT campaign_id,campaign_name from vicidial_campaigns order by campaign_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$campaigns_to_print = mysql_num_rows($rslt);
|
|
$campaigns_list='';
|
|
$campaigns_value='';
|
|
$RANKcampaigns_list="<tr><td>CAMPAIGN</td><td> RANK</td><td> CALLS</td><td ALIGN=CENTER>WEB VARS</td></tr>\n";
|
|
|
|
$o=0;
|
|
while ($campaigns_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$campaigns_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$campaign_id_values[$o] = $rowx[0];
|
|
$campaign_name_values[$o] = $rowx[1];
|
|
$o++;
|
|
}
|
|
|
|
$o=0;
|
|
while ($campaigns_to_print > $o)
|
|
{
|
|
$group_web_vars='';
|
|
$campaign_web='';
|
|
$stmt="SELECT campaign_rank,calls_today,group_web_vars from vicidial_campaign_agents where user='$user' and campaign_id='$campaign_id_values[$o]'";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$ranks_to_print = mysql_num_rows($rslt);
|
|
if ($ranks_to_print > 0)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$SELECT_campaign_rank = $row[0];
|
|
$calls_today = $row[1];
|
|
$group_web_vars = $row[2];
|
|
}
|
|
else
|
|
{$calls_today=0; $SELECT_campaign_rank=0; $group_web_vars='';}
|
|
if ( ($ADD=="4A") or ($ADD=="4B") )
|
|
{
|
|
if (isset($_GET["RANK_$campaign_id_values[$o]"])) {$campaign_rank=$_GET["RANK_$campaign_id_values[$o]"];}
|
|
elseif (isset($_POST["RANK_$campaign_id_values[$o]"])) {$campaign_rank=$_POST["RANK_$campaign_id_values[$o]"];}
|
|
if (isset($_GET["WEB_$campaign_id_values[$o]"])) {$campaign_web=$_GET["WEB_$campaign_id_values[$o]"];}
|
|
elseif (isset($_POST["WEB_$campaign_id_values[$o]"])) {$campaign_web=$_POST["WEB_$campaign_id_values[$o]"];}
|
|
if ($non_latin < 1)
|
|
{
|
|
$campaign_rank = ereg_replace("[^-\_0-9]","",$campaign_rank);
|
|
$campaign_web = preg_replace("/;|\"|\'/","",$campaign_web);
|
|
}
|
|
|
|
if ($ranks_to_print > 0)
|
|
{
|
|
$stmt="UPDATE vicidial_campaign_agents set campaign_rank='$campaign_rank', campaign_weight='$campaign_rank', group_web_vars='$campaign_web' where campaign_id='$campaign_id_values[$o]' and user='$user';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
else
|
|
{
|
|
$stmt="INSERT INTO vicidial_campaign_agents set campaign_rank='$campaign_rank', campaign_weight='$campaign_rank', campaign_id='$campaign_id_values[$o]', user='$user', group_web_vars='$campaign_web';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
|
|
$stmt="UPDATE vicidial_live_agents set campaign_weight='$campaign_rank' where campaign_id='$campaign_id_values[$o]' and user='$user';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
else {$campaign_rank = $SELECT_campaign_rank;}
|
|
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
|
|
# disable non user-group allowable campaign ranks
|
|
$stmt="SELECT user_group from vicidial_users where user='$user';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$Ruser_group = $row[0];
|
|
|
|
$stmt="SELECT allowed_campaigns from vicidial_user_groups where user_group='$Ruser_group';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$allowed_campaigns = $row[0];
|
|
$allowed_campaigns = preg_replace("/ -$/","",$allowed_campaigns);
|
|
$UGcampaigns = explode(" ", $allowed_campaigns);
|
|
|
|
$p=0; $RANK_camp_active=0; $CR_disabled = '';
|
|
if (eregi('-ALL-CAMPAIGNS-',$allowed_campaigns))
|
|
{$RANK_camp_active++;}
|
|
else
|
|
{
|
|
$UGcampaign_ct = count($UGcampaigns);
|
|
while ($p < $UGcampaign_ct)
|
|
{
|
|
if ($campaign_id_values[$o] == $UGcampaigns[$p])
|
|
{$RANK_camp_active++;}
|
|
$p++;
|
|
}
|
|
}
|
|
if ($RANK_camp_active < 1) {$CR_disabled = 'DISABLED';}
|
|
|
|
$RANKcampaigns_list .= "<tr $bgcolor><td>";
|
|
$campaigns_list .= "<a href=\"$PHP_SELF?ADD=31&campaign_id=$campaign_id_values[$o]\">$campaign_id_values[$o]</a> - $campaign_name_values[$o] <BR>\n";
|
|
$RANKcampaigns_list .= "<a href=\"$PHP_SELF?ADD=31&campaign_id=$campaign_id_values[$o]\">$campaign_id_values[$o]</a> - $campaign_name_values[$o] </td>";
|
|
$RANKcampaigns_list .= "<td> <select size=1 name=RANK_$campaign_id_values[$o] $CR_disabled>\n";
|
|
$h="9";
|
|
while ($h>=-9)
|
|
{
|
|
$RANKcampaigns_list .= "<option value=\"$h\"";
|
|
if ($h==$campaign_rank)
|
|
{$RANKcampaigns_list .= " SELECTED";}
|
|
$RANKcampaigns_list .= ">$h</option>";
|
|
$h--;
|
|
}
|
|
if ( (strlen($campaign_web) < 1) and (strlen($group_web_vars) > 0) )
|
|
{$campaign_web=$group_web_vars;}
|
|
$RANKcampaigns_list .= "</select></td>\n";
|
|
$RANKcampaigns_list .= "<td align=right> $calls_today</td>\n";
|
|
$RANKcampaigns_list .= "<td> <input type=text size=25 maxlength=255 name=WEB_$campaign_id_values[$o] value=\"$campaign_web\"></td></tr>\n";
|
|
$o++;
|
|
}
|
|
##### END get campaigns listing for rankings #####
|
|
|
|
|
|
##### BEGIN get inbound groups listing for checkboxes #####
|
|
$xfer_groupsSQL='';
|
|
if ( (($ADD>20) and ($ADD<70)) and ($ADD!=41) or ( ($ADD==41) and (eregi('list_activation', $stage))) )
|
|
{
|
|
$stmt="SELECT closer_campaigns,xfer_groups from vicidial_campaigns where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$closer_campaigns = $row[0];
|
|
$closer_campaigns = preg_replace("/ -$/","",$closer_campaigns);
|
|
$groups = explode(" ", $closer_campaigns);
|
|
$xfer_groups = $row[1];
|
|
$xfer_groups = preg_replace("/ -$/","",$xfer_groups);
|
|
$XFERgroups = explode(" ", $xfer_groups);
|
|
$xfer_groupsSQL = preg_replace("/^ | -$/","",$xfer_groups);
|
|
$xfer_groupsSQL = preg_replace("/ /","','",$xfer_groupsSQL);
|
|
$xfer_groupsSQL = "WHERE group_id IN('$xfer_groupsSQL')";
|
|
}
|
|
if ($ADD==41)
|
|
{
|
|
$p=0;
|
|
$XFERgroup_ct = count($XFERgroups);
|
|
while ($p < $XFERgroup_ct)
|
|
{
|
|
$xfer_groups .= " $XFERgroups[$p]";
|
|
$p++;
|
|
}
|
|
$xfer_groupsSQL = preg_replace("/^ | -$/","",$xfer_groups);
|
|
$xfer_groupsSQL = preg_replace("/ /","','",$xfer_groupsSQL);
|
|
$xfer_groupsSQL = "WHERE group_id IN('$xfer_groupsSQL')";
|
|
}
|
|
|
|
if ( (($ADD==31111) or ($ADD==31111)) and (count($groups)<1) )
|
|
{
|
|
$stmt="SELECT closer_campaigns from vicidial_remote_agents where remote_agent_id='$remote_agent_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$closer_campaigns = $row[0];
|
|
$closer_campaigns = preg_replace("/ -$/","",$closer_campaigns);
|
|
$groups = explode(" ", $closer_campaigns);
|
|
}
|
|
|
|
if ($ADD==3)
|
|
{
|
|
$stmt="SELECT closer_campaigns from vicidial_users where user='$user';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$closer_campaigns = $row[0];
|
|
$closer_campaigns = preg_replace("/ -$/","",$closer_campaigns);
|
|
$groups = explode(" ", $closer_campaigns);
|
|
}
|
|
|
|
$stmt="SELECT group_id,group_name from vicidial_inbound_groups order by group_id";
|
|
# $stmt="SELECT group_id,group_name from vicidial_inbound_groups where group_id NOT IN('AGENTDIRECT') order by group_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$groups_to_print = mysql_num_rows($rslt);
|
|
$groups_list='';
|
|
$groups_value='';
|
|
$XFERgroups_list='';
|
|
$RANKgroups_list="<tr><td>ENTRANT GROUP</td><td> RANK</td><td> CALLS</td><td ALIGN=CENTER>WEB VARS</td></tr>\n";
|
|
|
|
$o=0;
|
|
while ($groups_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$group_id_values[$o] = $rowx[0];
|
|
$group_name_values[$o] = $rowx[1];
|
|
$o++;
|
|
}
|
|
|
|
$o=0;
|
|
while ($groups_to_print > $o)
|
|
{
|
|
$group_web_vars='';
|
|
$group_web='';
|
|
$stmt="SELECT group_rank,calls_today,group_web_vars from vicidial_inbound_group_agents where user='$user' and group_id='$group_id_values[$o]'";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$ranks_to_print = mysql_num_rows($rslt);
|
|
if ($ranks_to_print > 0)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$SELECT_group_rank = $row[0];
|
|
$calls_today = $row[1];
|
|
$group_web_vars = $row[2];
|
|
}
|
|
else
|
|
{$calls_today=0; $SELECT_group_rank=0;}
|
|
if ( ($ADD=="4A") or ($ADD=="4B") )
|
|
{
|
|
if (isset($_GET["RANK_$group_id_values[$o]"])) {$group_rank=$_GET["RANK_$group_id_values[$o]"];}
|
|
elseif (isset($_POST["RANK_$group_id_values[$o]"])) {$group_rank=$_POST["RANK_$group_id_values[$o]"];}
|
|
if (isset($_GET["WEB_$group_id_values[$o]"])) {$group_web=$_GET["WEB_$group_id_values[$o]"];}
|
|
elseif (isset($_POST["WEB_$group_id_values[$o]"])) {$group_web=$_POST["WEB_$group_id_values[$o]"];}
|
|
|
|
if ($non_latin < 1)
|
|
{
|
|
$group_rank = ereg_replace("[^-\_0-9]","",$group_rank);
|
|
$group_web = preg_replace("/;|\"|\'/","",$group_web);
|
|
}
|
|
|
|
if ($ranks_to_print > 0)
|
|
{
|
|
$stmt="UPDATE vicidial_inbound_group_agents set group_rank='$group_rank', group_weight='$group_rank', group_web_vars='$group_web' where group_id='$group_id_values[$o]' and user='$user';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
else
|
|
{
|
|
$stmt="INSERT INTO vicidial_inbound_group_agents set group_rank='$group_rank', group_weight='$group_rank', group_id='$group_id_values[$o]', user='$user', group_web_vars='$group_web';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
|
|
$stmt="UPDATE vicidial_live_inbound_agents set group_weight='$group_rank' where group_id='$group_id_values[$o]' and user='$user';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
else {$group_rank = $SELECT_group_rank;}
|
|
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
|
|
$groups_list .= "<input type=\"checkbox\" name=\"groups[]\" value=\"$group_id_values[$o]\"";
|
|
$XFERgroups_list .= "<input type=\"checkbox\" name=\"XFERgroups[]\" value=\"$group_id_values[$o]\"";
|
|
$RANKgroups_list .= "<tr $bgcolor><td><input type=\"checkbox\" name=\"groups[]\" value=\"$group_id_values[$o]\"";
|
|
$p=0;
|
|
$group_ct = count($groups);
|
|
while ($p < $group_ct)
|
|
{
|
|
if ($group_id_values[$o] == $groups[$p])
|
|
{
|
|
$groups_list .= " CHECKED";
|
|
$RANKgroups_list .= " CHECKED";
|
|
$groups_value .= " $group_id_values[$o]";
|
|
}
|
|
$p++;
|
|
}
|
|
$p=0;
|
|
$XFERgroup_ct = count($XFERgroups);
|
|
while ($p < $XFERgroup_ct)
|
|
{
|
|
if ($group_id_values[$o] == $XFERgroups[$p])
|
|
{
|
|
$XFERgroups_list .= " CHECKED";
|
|
$XFERgroups_value .= " $group_id_values[$o]";
|
|
}
|
|
$p++;
|
|
}
|
|
$stmt="SELECT queue_priority from vicidial_inbound_groups where group_id='$group_id_values[$o]';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$VIG_priority = $row[0];
|
|
|
|
$groups_list .= "> <a href=\"$PHP_SELF?ADD=3111&group_id=$group_id_values[$o]\">$group_id_values[$o]</a> - $group_name_values[$o] - $VIG_priority <BR>\n";
|
|
$XFERgroups_list .= "> <a href=\"$PHP_SELF?ADD=3111&group_id=$group_id_values[$o]\">$group_id_values[$o]</a> - $group_name_values[$o] <BR>\n";
|
|
$RANKgroups_list .= "> <a href=\"$PHP_SELF?ADD=3111&group_id=$group_id_values[$o]\">$group_id_values[$o]</a> - $group_name_values[$o] </td>";
|
|
$RANKgroups_list .= "<td> <select size=1 name=RANK_$group_id_values[$o]>\n";
|
|
$h="9";
|
|
while ($h>=-9)
|
|
{
|
|
$RANKgroups_list .= "<option value=\"$h\"";
|
|
if ($h==$group_rank)
|
|
{$RANKgroups_list .= " SELECTED";}
|
|
$RANKgroups_list .= ">$h</option>";
|
|
$h--;
|
|
}
|
|
if ( (strlen($group_web) < 1) and (strlen($group_web_vars) > 0) )
|
|
{$group_web=$group_web_vars;}
|
|
$RANKgroups_list .= "</select></td>\n";
|
|
$RANKgroups_list .= "<td align=right> $calls_today</td>\n";
|
|
$RANKgroups_list .= "<td> <input type=text size=25 maxlength=255 name=WEB_$group_id_values[$o] value=\"$group_web\"></td></tr>\n";
|
|
$o++;
|
|
}
|
|
if (strlen($groups_value)>2) {$groups_value .= " -";}
|
|
if (strlen($XFERgroups_value)>2) {$XFERgroups_value .= " -";}
|
|
}
|
|
##### END get inbound groups listing for checkboxes #####
|
|
|
|
|
|
##### BEGIN get campaigns listing for checkboxes #####
|
|
if ( ($ADD==211111) or ($ADD==311111) or ($ADD==411111) or ($ADD==511111) or ($ADD==611111) )
|
|
{
|
|
if ( ($ADD==211111) or ($ADD==311111) or ($ADD==511111) or ($ADD==611111) )
|
|
{
|
|
$stmt="SELECT allowed_campaigns,qc_allowed_campaigns,qc_allowed_inbound_groups from vicidial_user_groups where user_group='$user_group';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$allowed_campaigns = $row[0];
|
|
$qc_allowed_campaigns = $row[1];
|
|
$qc_allowed_inbound_groups = $row[2];
|
|
$allowed_campaigns = preg_replace("/ -$/","",$allowed_campaigns);
|
|
$campaigns = explode(" ", $allowed_campaigns);
|
|
$qc_allowed_campaigns = preg_replace("/ -$/","",$qc_allowed_campaigns);
|
|
$qc_campaigns = explode(" ", $qc_allowed_campaigns);
|
|
$qc_allowed_inbound_groups = preg_replace("/ -$/","",$qc_allowed_inbound_groups);
|
|
$qc_groups = explode(" ", $qc_allowed_inbound_groups);
|
|
}
|
|
|
|
$campaigns_value='';
|
|
$campaigns_list='<B><input type="checkbox" name="campaigns[]" value="-ALL-CAMPAIGNS-"';
|
|
$qc_campaigns_value='';
|
|
$qc_campaigns_list='<B><input type="checkbox" name="qc_campaigns[]" value="-ALL-CAMPAIGNS-"';
|
|
$qc_groups_value='';
|
|
$qc_groups_list='<B><input type="checkbox" name="qc_groups[]" value="-ALL-GROUPS-"';
|
|
$p=0;
|
|
while ($p<100)
|
|
{
|
|
if (eregi('ALL-CAMPAIGNS',$campaigns[$p]))
|
|
{
|
|
$campaigns_list.=" CHECKED";
|
|
$campaigns_value .= " -ALL-CAMPAIGNS- -";
|
|
}
|
|
if (eregi('ALL-CAMPAIGNS',$qc_campaigns[$p]))
|
|
{
|
|
$qc_campaigns_list.=" CHECKED";
|
|
$qc_campaigns_value .= " -ALL-CAMPAIGNS- -";
|
|
}
|
|
if (eregi('ALL-GROUPS',$qc_groups[$p]))
|
|
{
|
|
$qc_groups_list.=" CHECKED";
|
|
$qc_groups_value .= " -ALL-GROUPS- -";
|
|
}
|
|
$p++;
|
|
}
|
|
$campaigns_list.="> ALL-CAMPAIGNS - LES UTILISATEURS PEUVENT VOIR CHAQUE CAMPAGNE</B><BR>\n";
|
|
$qc_campaigns_list.="> ALL-CAMPAIGNS - UTILISATEURS CAN QC TOUTE LA CAMPAGNE</B><BR>\n";
|
|
$qc_groups_list.="> ALL-GROUPS - UTILISATEURS CAN QC ENTRANT TOUT GROUP</B><BR>\n";
|
|
|
|
$stmt="SELECT campaign_id,campaign_name from vicidial_campaigns order by campaign_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$campaigns_to_print = mysql_num_rows($rslt);
|
|
|
|
$o=0;
|
|
while ($campaigns_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$campaign_id_value = $rowx[0];
|
|
$campaign_name_value = $rowx[1];
|
|
$campaigns_list .= "<input type=\"checkbox\" name=\"campaigns[]\" value=\"$campaign_id_value\"";
|
|
$qc_campaigns_list .= "<input type=\"checkbox\" name=\"qc_campaigns[]\" value=\"$campaign_id_value\"";
|
|
$p=0;
|
|
while ($p<100)
|
|
{
|
|
if ($campaign_id_value == $campaigns[$p])
|
|
{
|
|
# echo "<!-- X $p|$campaign_id_value|$campaigns[$p]| -->";
|
|
$campaigns_list .= " CHECKED";
|
|
$campaigns_value .= " $campaign_id_value";
|
|
}
|
|
if ($campaign_id_value == $qc_campaigns[$p])
|
|
{
|
|
$qc_campaigns_list .= " CHECKED";
|
|
$qc_campaigns_value .= " $campaign_id_value";
|
|
}
|
|
# echo "<!-- O $p|$campaign_id_value|$campaigns[$p]| -->";
|
|
$p++;
|
|
}
|
|
$campaigns_list .= "> $campaign_id_value - $campaign_name_value<BR>\n";
|
|
$qc_campaigns_list .= "> $campaign_id_value - $campaign_name_value<BR>\n";
|
|
$o++;
|
|
}
|
|
|
|
$stmt="SELECT group_id,group_name from vicidial_inbound_groups where group_id NOT IN('AGENTDIRECT') order by group_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$groups_to_print = mysql_num_rows($rslt);
|
|
|
|
$o=0;
|
|
while ($groups_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$group_id_value = $rowx[0];
|
|
$group_name_value = $rowx[1];
|
|
$qc_groups_list .= "<input type=\"checkbox\" name=\"qc_groups[]\" value=\"$group_id_value\"";
|
|
$p=0;
|
|
while ($p<100)
|
|
{
|
|
if ($group_id_value == $qc_groups[$p])
|
|
{
|
|
$qc_groups_list .= " CHECKED";
|
|
$qc_groups_value .= " $group_id_value";
|
|
}
|
|
$p++;
|
|
}
|
|
$qc_groups_list .= "> $group_id_value - $group_name_value<BR>\n";
|
|
$o++;
|
|
}
|
|
|
|
if (strlen($campaigns_value)>2) {$campaigns_value .= " -";}
|
|
if (strlen($qc_campaigns_value)>2) {$qc_campaigns_value .= " -";}
|
|
if (strlen($qc_groups_value)>2) {$qc_groups_value .= " -";}
|
|
}
|
|
##### END get campaigns listing for checkboxes #####
|
|
|
|
|
|
if ( (strlen($ADD)==11) or (strlen($ADD)>12) or ( ($ADD > 1299) and ($ADD < 9999) ) )
|
|
{
|
|
##### get server listing for dynamic pulldown
|
|
$stmt="SELECT server_ip,server_description from servers order by server_ip";
|
|
$rsltx=mysql_query($stmt, $link);
|
|
$servers_to_print = mysql_num_rows($rsltx);
|
|
$servers_list='';
|
|
|
|
$o=0;
|
|
while ($servers_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rsltx);
|
|
$servers_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$NWB = " <a href=\"javascript:openNewWindow('$PHP_SELF?ADD=99999";
|
|
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"AIDE\" ALIGN=TOP></A>";
|
|
|
|
|
|
######################################################################################################
|
|
######################################################################################################
|
|
####### 9 series, HELP screen
|
|
######################################################################################################
|
|
######################################################################################################
|
|
|
|
|
|
######################
|
|
# ADD=99999 display the HELP SCREENS
|
|
######################
|
|
|
|
if ($ADD==99999)
|
|
{
|
|
echo "</title>\n";
|
|
echo "</head>\n";
|
|
echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
|
echo "<CENTER>\n";
|
|
echo "<TABLE WIDTH=98% BGCOLOR=#E6E6E6 cellpadding=2 cellspacing=0><TR><TD ALIGN=LEFT><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=4><B>ADMINISTRATION DE VICIDIAL: AIDE<BR></B></FONT><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2><BR><BR>\n";
|
|
|
|
?>
|
|
<B><FONT SIZE=3>VICIDIAL_UTILISATEURS TABLE</FONT></B><BR><BR>
|
|
<A NAME="vicidial_users-user">
|
|
<BR>
|
|
<B>ID Utilisateur -</B> C'est ici que vous mettez le numéro ID de l'utilisateur VICIDIAL, entre 2 et 8 caractères.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-pass">
|
|
<BR>
|
|
<B>Mot de passe -</B> Mot de passe de l'utilisateur VICIDIAL. Doit contenir au moins 2 caractères.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-full_name">
|
|
<BR>
|
|
<B>Nom complet -</B> C'est dans ce champ que vous mettez le nom complet de l'utilisateur VICIDIAL. Doit contenir au moins 2 caractères.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-user_level">
|
|
<BR>
|
|
<B>Niveau de l'utilisateur -</B> C'est ici que vous sélectionnez le niveau de l'utilisateur. Le niveau doit être de 1 pour pouvoir ce connecter à VICIDIAL, plus grand que 2 pour se connecter à une campagne de type Closer, doit être superieur ou égal à 8 pour accéder à la section web administrateur.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-user_group">
|
|
<BR>
|
|
<B>Groupe d'utilisateur -</B> C'est dans ce menu que vous selectionnez le groupe utilisateur dans lequel sera cet utilisateur. Pour l'instant il n'y a pas de restriction, ce n'est que pour répartir les utilisateurs et autoriser les futures fonctions basées sur ceci.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-phone_login">
|
|
<BR>
|
|
<B>Login du téléphone -</B> C'est ici que vous mettez le login par défaut du téléphone pour quand cette utilisateur se connecte dans vicidial.php. Le champ phone_login sera automatiquement rempli par cette valeur quand l'utilisateur se connectera avec son utilisateur-mot_de_passe_passe-campagne dans l'écran de connection vicidial.php .
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-phone_pass">
|
|
<BR>
|
|
<B>Mot de passe du téléphone -</B> C'est ici que vous mettez le mot de passe par defaut du téléphone pour quand l'utisateur se connecte dans vicidial.php. Le champ phone_pass sera rempli automatiquement avec cette valeur quand l'utilisateur se connectera avec utilislateur-passe-campagne dans l'écran de conncetion vicidial.php.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-active">
|
|
<BR>
|
|
<B>Active - </B> Ce champ détermine si l'utilisateur est actif dans le système et peuvent utiliser VICIDIAL ressources. La valeur par défaut est Y
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-hotkeys_active">
|
|
<BR>
|
|
<B>Raccourcis clavier actifs -</B> Si cette option est à 1 elle autorise l'utilisateur à utiliser les raccourcis clavier vicidial.php.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-agent_choose_ingroups">
|
|
<BR>
|
|
<B>Choix des Ingroups -<\/B> Cette option, si elle est mise à 1 autorise l'utilisateur à choisir les ingroups depuis lesquels il recevra des appels quand il est connecté dans une campagne de type CLOSER ou ENTRANT sinon le manager devra le définir dans l'écran de détails de l'utiliseur sur la page d'amiministration.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-scheduled_callbacks">
|
|
<BR>
|
|
<B>Rappels programmés -</B> Cette option autorise un agent à statuer un appel comme CALLBK et à choisir une date et une heure à laquelle la fiche sera réactivée.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-agentonly_callbacks">
|
|
<BR>
|
|
<B>Rappel Agent-Seulement -</B> Cette option autorise un agent à assigner un rappel pour lequel il sera le seul a pouvoir rappeler le client. Cela autorise aussi l'agent à voir sa liste de rappel quand il le désire.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-agentcall_manual">
|
|
<BR>
|
|
<B>Appel manuel pour l'agent-</B> Cette option autorise un agent à entrer manuellement une nouvelle fiche et à l'appeler. Elle autorise aussi l'appel de n'importe quel numéro de téléphone depuis vicidial et met cette appel dans sa session. Utilisez cette option avec précaution.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-vicidial_recording">
|
|
<BR>
|
|
<B>Enregistrement vicidial -</B> Cette otpion peut empêcher un agent de faire un enregistrement après qu'il se soit connecté à vicidial. Cette option doit être activée pour que vicidial suive la session d'enregistrement de la campagne.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-vicidial_transfers">
|
|
<BR>
|
|
<B>Transferts Vicidial -</B> Cette option peut empêcher un agent d'ouvrir un transfert - conférence dans vicidial. Si c'est desactivé, l'agent ne pourra pas appeler une tierce personne ou transferer l'appel.
|
|
|
|
<?
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
?>
|
|
<BR>
|
|
<A NAME="vicidial_users-closer_default_blended">
|
|
<BR>
|
|
<B>Closer Default Blended -<\/B> Cette option coche simplement par défaut la checbox Blended sur un écran de connection d'une campagne de type CLOSER.
|
|
<?
|
|
}
|
|
?>
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-vicidial_recording_override">
|
|
<BR>
|
|
<B>Ecrasement de l'enregistrement de VICIDIAL -</B> Cette option va écraser l'option d'enregistrement de la campagne quelle qu'elle soit. DISABLED n'écrasera pas les réglages d'enregistrement de la campagne. NEVER désactivera l'enregistrement sur le client. ONDEMAND est la valeur par défaut et autorise l'agent à démarrer ou arrêter l'enregistrement si nécessaire. ALLCALLS démarrera l'enregistrment à chaque fois qu'un appel est passé à un agent. ALLFORCE démarrera l'enregistrement à chaque fois qu'un appel à un agent est passé sans permettre à l'agent d'arrêter l'enregistrement. Pour les valeurs ALLCALLS et ALLFORCE il possible d'utiliser l'option 'Délai d'enregistrement' pour réduire la taille des enregistrments et la charge du système.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-agent_shift_enforcement_override">
|
|
<BR>
|
|
<B>Agent de l'exécution Shift Override -</B> Ce paramètre remplace les utilisateurs quel que soit le groupe d'utilisateurs a mis en application de la loi pour Maj. HANDICAPES utilise l'utilisateur groupe. OFF ne fera pas appliquer à tous les changements. START ne faire respecter les temps de connexion, mais n'aura pas d'incidence sur un agent qui est en cours d'exécution sur leurs heures de travail si elles sont déjà logged in ALL appliquent passer l'heure de début et se connecter à un agent, après, ils courent sur la fin de leur quart de temps. La valeur par défaut est désactivé.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-alert_enabled">
|
|
<BR>
|
|
<B>Alerte Activé - </B> Ce champ indique si l'agent est le navigateur Web des alertes lorsque les appels ont permis de venir dans leur vicidial.php session. La valeur par défaut est 0 pour les NO.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-vicidial_users-campaign_ranks">
|
|
<BR>
|
|
<B>La campagne se range - dans cette section vous pouvez définir le rangque un agent aura pour chaque campagne. Ces rangs peuvent êtreemployés pour tenir compte du cheminement préféré d'appel quand leprochain appel d'agent est placé au campaign_rank. Également dans cette section sont le WEB VAR pour chaque campagne. Il s'agit de permettre à chaque agent d'avoir une autre variable de chaîne qui peuvent être ajoutés à la fiche de Web ou SCRIPT onglet URL, simplement en mettant - A - web_vars - B - comme vous le mettre dans tout autre domaine.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-closer_campaigns">
|
|
<BR>
|
|
<B>Groupes entrants -</B> C'est ici que vous selectionnez les groupes entrants depuis lesquels vous voulez recevoir des appels si vous avez selectionné une campagne de type CLOSER. Vous pourrez également placer le rang, ou le niveau de compétence,dans cette section pour chacun des groupes d'arrivée aussi bien quepouvoir voir le nombre d'appels reçus de chaque groupe d'arrivéepour cet agent spécifique. En outre dans cette section est la capacité de donner à l'agent unrang pour chaque groupe d'arrivée. Ces rangs peuvent être employéspour le cheminement préféré d'appel quand cette option est choisiedans l'écran de dans-groupe. Également dans cette section sont le WEB VAR pour chaque campagne. Il s'agit de permettre à chaque agent d'avoir une autre variable de chaîne qui peuvent être ajoutés à la fiche de Web ou SCRIPT onglet URL, simplement en mettant - A - web_vars - B - comme vous le mettre dans tout autre domaine.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-alter_custdata_override">
|
|
<BR>
|
|
<B>Modifications des données des clients pour l'agent -</B> Cette option permet de surcharger, pour un agent précis, l'option de la campagne concernant la modification des données du clients. NOT_ACTIVE utilisera la valeur présente dans l'option de la campagne. ALLOW_ALTER autorisera toujours à cet agent de modifier les données du client quelque soit la valeur de l'option dans la campagne. La valeur par défaut est NOT_ACTIVE.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-alter_custphone_override">
|
|
<BR>
|
|
<B>Alter Agent Client Téléphone Override - </B> Cette option va remplacer ce que l'option est dans la campagne pour modifier le numéro de téléphone du client. NOT_ACTIVE va utiliser quel que soit l'établissement est présent pour la campagne. ALLOW_ALTER toujours de permettre à l'agent de modifier le numéro de téléphone des clients, quel que soit le réglage de la campagne. La valeur par défaut est NOT_ACTIVE.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-alter_agent_interface_options">
|
|
<BR>
|
|
<B>Modifier les options de l'interface agent -</B> Cette option, si elle est à 1, autorise l'utilisateur administrateur à modifier les otpions de l'interface Agent dans admin.php.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-delete_users">
|
|
<BR>
|
|
<B>Effacer des utilisateurs -</B> Cette option et mise à 1 pour autoriser l'utilisateur à effacer d'autres utilisateurs qui ont un niveau inférieur ou égal depuis le système.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-delete_user_groups">
|
|
<BR>
|
|
<B>Supprimer des groupes d'utilisateurs -</B> Cette option et mise à 1 pour autoriser l'utilisateur à effacer les groupes d'utilisateurs depuis le système.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-delete_lists">
|
|
<BR>
|
|
<B>Supprimer des listes -</B> Cette option et mise à 1 pour autoriser l'utilisateur à effacer des listes depuis le système.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-delete_campaigns">
|
|
<BR>
|
|
<B>Supprimer des campagnes -</B> Cette option et mise à 1 pour autoriser l'utilisateur à effacer des campagnes vicidial depuis le système.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-delete_ingroups">
|
|
<BR>
|
|
<B>Supprimer des In-groups -</B> Cette option et mise à 1 pour autoriser l'utilisateur à effacer des In-groups vicidial depuis le système.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-delete_remote_agents">
|
|
<BR>
|
|
<B>Supprimer des agents distants -</B> Cette option et mise à 1 pour autoriser l'utilisateur à effacer des agents distants vicidial depuis le système.
|
|
|
|
<?
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
?>
|
|
<BR>
|
|
<A NAME="vicidial_users-load_leads">
|
|
<BR>
|
|
<B>Charger des fiches -</B> Cette option et mise à 1 pour autoriser l'utilisateur à charger des fiches dans la table vicidial_list en utilisant le chargeur de fiches web.
|
|
<?
|
|
}
|
|
?>
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-campaign_detail">
|
|
<BR>
|
|
<B>Détails de la campagne-</B> Cette option et mise à 1 pour autoriser l'utilisateur à voir et modifier les éléments de l'écran de details de la campagne.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-ast_admin_access">
|
|
<BR>
|
|
<B>Accès administrateur AGC -</B> Cette option et mise à 1 pour autoriser l'utilisateur à se connecter aux pages d'administration de astGUIclient.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-ast_delete_phones">
|
|
<BR>
|
|
<B>Supprimer des téléphones AGC -</B> Cette option est mise à 1 pour autoriser l'utilisateur à effacer des téléphones dans les pages d'aministration d'astGUIclient.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-delete_scripts">
|
|
<BR>
|
|
<B>Supprimer des scripts -</B> Cette option si elle est mise à 1 autorise l'utilisateur à supprimer des scripts de campagne dans l'écran de modification du script.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-modify_leads">
|
|
<BR>
|
|
<B>Modifier les fiches -</B> Si cette otpion est à 1 elle autorise l'utilisateur à modifier les fiches dans la page des résultats de la recherche de fiches dans la section d'administration.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-change_agent_campaign">
|
|
<BR>
|
|
<B>Changer l'agent de campagne -</B> Cette option, si elle est mise à 1, permet à l'utilisateur de changer la campagne dans laquelle est connecté un agent alors qu'il y est connecté.
|
|
|
|
<?
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
?>
|
|
<BR>
|
|
<A NAME="vicidial_users-delete_filters">
|
|
<BR>
|
|
<B>Supprimer des filtres -</B> Cette option autorise l'utilisateur à supprimer les filtres de fiches du système.
|
|
<?
|
|
}
|
|
?>
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-delete_call_times">
|
|
<BR>
|
|
<B>Suppression des périodes d'appels -<\/B> Cette option permet à l'utilisateur de supprimer les enregistrements des périodes d'appels vicidial et les enregistrement des périodes d'appels d'état de ce système.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-modify_call_times">
|
|
<BR>
|
|
<B>Modification des périodes d'appels -<\/B> Cette option autorise l'utilisateur à voir et modifier les périodes d'appels et les périodes d'appels d'état. Un utilisateur n'a pas besoin de cette option si il a seulement besoin de changer les options des périodes d'appels sur l'écran de campagne.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-modify_sections">
|
|
<BR>
|
|
<B>Modifications des sections -</B> Cette option autorise l'utilisateur à voir et modifier chaque enregistrement de section. Si cette option a pour valeur 0, l'utilisateur pourra voir la liste des sections, mais pas le détail et ne pourra pas modifier les enregistrements dans cette section.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-view_reports">
|
|
<BR>
|
|
<B>Voir les rapports -</B> Cette option autorise l'utilisateur à voir les rapports VICIDIAL.
|
|
|
|
<?
|
|
if ($SSqc_features_active > 0)
|
|
{
|
|
?>
|
|
<BR>
|
|
<A NAME="vicidial_users-qc_enabled">
|
|
<BR>
|
|
<B>QC Activé - </B> Cette option permet à l'utilisateur de se connecter à l'agent de contrôle de la qualité d'écran.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-qc_user_level">
|
|
<BR>
|
|
<B>QC Niveau de l'utilisateur - </B> Ce paramètre définit ce que l'agent de contrôle de la qualité est au niveau utilisateur. Ce qui déterminera le niveau de fonctionnalité de l'agent dans la section QC:<BR>
|
|
1 - Rien Modifier<BR>
|
|
2 - Modifier Rien Sauf Etat<BR>
|
|
3 - Modifier tous les Domaines<BR>
|
|
4 - Vérifiez Premier Cycle de QC<BR>
|
|
5 - Voir QC Statistiques<BR>
|
|
6 - Possibilité de modifier fini records<BR>
|
|
7 - Level Manager<BR>
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-qc_pass">
|
|
<BR>
|
|
<B>Record QC Pass - </B> Cette option permet à l'agent de préciser que le dossier a franchi le premier tour de Québec, après avoir examiné le dossier.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-qc_finish">
|
|
<BR>
|
|
<B>Record QC Finish - </B> Cette option permet à l'agent de préciser que le dossier a terminé la deuxième ronde de Québec après avoir examiné le dossier transmis.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-qc_commit">
|
|
<BR>
|
|
<B>Record QC Commit - </B> Cette option permet à l'agent de préciser que le record a été commise dans QC. Il ne peut plus être modifié par n'importe qui.
|
|
<?
|
|
}
|
|
?>
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-add_timeclock_log">
|
|
<BR>
|
|
<B>Ajouter Log timeclock Record - </B> Cette option permet à l'utilisateur d'ajouter des enregistrements à l'timeclock journal.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-modify_timeclock_log">
|
|
<BR>
|
|
<B>Modifier timeclock Connexion Record - </B> Cette option permet à l'utilisateur de modifier des enregistrements dans le journal timeclock.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-delete_timeclock_log">
|
|
<BR>
|
|
<B>Supprimer timeclock Connexion Record - </B> Cette option permet à l'utilisateur de supprimer des enregistrements dans les journaux timeclock.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-vdc_agent_api_access">
|
|
<BR>
|
|
<B>Agent API d'accès - </B> Cette option permet le compte à utiliser avec l'agent VICIDIAL commandes API.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-manager_shift_enforcement_override">
|
|
<BR>
|
|
<B>Shift Manager exécution Override -</B> Ce paramètre, s'il est à 1 permettra d'entrer dans un gestionnaire d'utilisateur et leur mot de passe sur l'écran d'un agent pour l'emporter sur l'évolution des restrictions sur un agent de la session si l'agent essaie de se connecter à l'extérieur de leur quart de travail. La valeur par défaut est 0.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-download_lists">
|
|
<BR>
|
|
<B>Download Listes -</B> Ce paramètre, s'il est à 1 permet à un gestionnaire de téléchargement, cliquez sur le lien de la liste au bas de l'écran de modification d'une liste d'exporter la totalité du contenu d'une liste de données à un fichier plat. La valeur par défaut est 0.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_users-export_reports">
|
|
<BR>
|
|
<B>Rapports d'exportation -</B> Ce paramètre, s'il est à 1 permettra d'accéder à un gestionnaire de l'exportation des rapports sur l'appel RAPPORTS écran. La valeur par défaut est 0. Pour le rapport invite l'exportation, l'ordre suivant est utilisé pour les exportations: <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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>VICIDIAL_CAMPAGNES TABLE</FONT></B><BR><BR>
|
|
<A NAME="vicidial_campaigns-campaign_id">
|
|
<BR>
|
|
<B>ID de la campagne -</B> C'est un nom court pour la campagne, il n'est pas modifiable après validation, il ne peut contenir d'espaces et doit contenir entre 2 et 8 caractèresh.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-campaign_name">
|
|
<BR>
|
|
<B>Nom de la campagne -</B> C'est la description de la campagne, elle doit contenir entre 6 et 40 caractères.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-campaign_description">
|
|
<BR>
|
|
<B>Description de la campagne -</B> C'est un champ de note pour la campagne, il est optionel et ne peut contenir plus de 255 caractères.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-campaign_changedate">
|
|
<BR>
|
|
<B>Date de changement de la campagne -</B> C'est la dernière fois que les réglages de la campagne ont été modifié.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-campaign_logindate">
|
|
<BR>
|
|
<B>Date de la dernière connection à la campagne -</B> C'est la dernière fois qu'un agent s'est connecté à la campagne.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-campaign_stats_refresh">
|
|
<BR>
|
|
<B>Rafraichissement des statistiques de la campagne -</B> Cette checkbox permet de forcer un rafraichissement des statistiques de vicidial, même si la campagne n'est pas active.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-active">
|
|
<BR>
|
|
<B>Active -</B> C'est ici que vous indiquez si la campagne est active ou non. Si elle est inactive personne ne peut se connecter à cette campagne.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-park_ext">
|
|
<BR>
|
|
<B>Extension de mise en attente-</B> C'est ici que vous pouvez personnaliser la musique d'attente pour VICIDIAL. Assurez vous que l'extension est en place dans le fichier extension.conf et qu'elle pointe sur le fichier suivant.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-park_file_name">
|
|
<BR>
|
|
<B>Fichier de mise en attente-</B> C'est ici que vous pouvez personnaliser la musique d'attente pour VICIDIAL. Assurez vous que le nom du fichier fasse moins de 10 caractères et qu'il soit bien en place dans le répertoire /var/lib/asterisk/sounds.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-web_form_address">
|
|
<BR>
|
|
<B>Formulaire Web -</B> C'est ici que que vous pouvez mettre une page web personnalisée qui sera ouverte quand l'utilisateur cliquera sur le bouton FORMULAIRE WEB. Pour personnaliser la chaîne de requête, après le formulaire Web, il suffit de commencer avec le formulaire web, VAR et puis l'URL que vous voulez utiliser, en remplaçant les variables avec les noms des variables que vous voulez utiliser - A - phone_number - B -- comme dans l'onglet SCRIPTS.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-web_form_target">
|
|
<BR>
|
|
<B>Formulaire Web Public-</B> C'est là que vous pouvez définir la page Web personnalisée cadre que le formulaire web sera ouverte lorsque l'utilisateur clique sur le bouton de formulaire Web. La valeur par défaut est _blank.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-allow_closers">
|
|
<BR>
|
|
<B>Autoriser les Closers -</B> C'est ici que vous pouvez définir si les utilisateurs de cette campagne pouront envoyer l'appel vers une campagne de type closer.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-default_xfer_group">
|
|
<BR>
|
|
<B>Groupe de transfert de défaut - ce champ est le Dans-Groupe dedéfaut qui sera automatiquement choisi quand l'agent va à l'armaturede transférer-conférence dans leur interface d'agent.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-xfer_groups">
|
|
<BR>
|
|
<B>Groupes laissés de transfert - avec ces listes de checkbox vouspouvez choisir les groupes aux lesquels les agents dans cette campagnepeuvent transférer des appels. Permettez Closers doit être permispour que cette option révèle.
|
|
|
|
<?
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
?>
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-campaign_allow_inbound">
|
|
<BR>
|
|
<B>Permettez d'arrivée et mélangé - c'est où vous pouvez placer siles utilisateurs de cette campagne auront l'option pour prendre desappels d'arrivée avec cette campagne. Si vous voulez faire d'arrivéeet en partance mélangés puis ceci doit être placé à Y. Si vousvoulez seulement faire composer en partance sur cette campagne placiezceci à N. Default est N.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-dial_status">
|
|
<BR>
|
|
<B>Statut de l'appel -<\/B> C'est ici que vous indiquez les statuts que vous voulez appeler dans les listes actives pour la campagne suivante. Pour ajouter un autre statut d'appel, selectionnez le dans la liste déroulante et cliquez sur AJOUTER. Pour supprimer un de ces statuts, cliquez sur le lien SUPPRIMER à côté du statut que vous voulez supprimer.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-lead_order">
|
|
<BR>
|
|
<B>Ordre de la liste -</B> C'est dans ce menu que vous selectionnez comment les fiches qui correspondent aux statuts selectionnés ci-dessus seront mises dans le distributeur de fiches:
|
|
<BR> - DOWN: selectionne les premières fiches chargées dans la table vicidial_list
|
|
<BR> - UP: selectionne les dernières fiches chargées dans la table vicidial_list
|
|
<BR> - UP PHONE: selectionne le plus grand numéro de téléphone et continue vers le bas
|
|
<BR> - DOWN PHONE: selectionne le plus petit numéro de téléphone et continue vers le haut
|
|
<BR> - UP LAST NAME: commence avec les noms commençant pas Z et continue vers le bas
|
|
<BR> - DOWN LAST NAME: commence avec les noms commençant par A et continue vers le haut
|
|
<BR> - UP COUNT: commence avec les fiches les plus appelées et continue en descendant
|
|
<BR> - DOWN COUNT: commence avec les fiches les moins appelées et continue en augmentant
|
|
<BR> - DOWN COUNT 2nd NEW: commence avec les fiches les moins appelées et continue en montant en insérant une fiche NEW à chaque autre fiche - Ne doit PAS avoir NEW selectionné dans les statuts d'appel
|
|
<BR> - DOWN COUNT 3nd NEW: commence avec les fiches les moins appelées et continue en augmentant en insérant une fiche NEW toutes les 3 fiches - Ne doit PAS avoir NEW selectionné dans les statuts d'appel
|
|
<BR> - DOWN COUNT 4th NEW: commence avec les fiches les moins appelées et continue en augmentant en insérant une fiche NEW toutes les 4 fiches - Ne doit PAS avoir NEW selectionné dans les statuts d'appel
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-hopper_level">
|
|
<BR>
|
|
<B>Niveau du distributeur -</B> C'est le nombre de fiches que le script VDhopper essaye de garder dans la table vicidial_hopper pour cette campagne. Si l'on lance le script VDhopper chaque minute, mettez juste au dessus du nombre de fiches que vous voulez traiter par minute.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-lead_filter_id">
|
|
<BR>
|
|
<B>Filtre de fiches -</B> C'est une méthode de filtrage de vos fiches utilisant un fragment de requête SQL. Utilisez cette fonction avec précaution, il est facile de stoper une comunication accidentellement avec le plus petit changement du statement SQL. La valeur par défaut est NONE.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-force_reset_hopper">
|
|
<BR>
|
|
<B>Forcer la réinitialisation du distributeur -</B> Cela vous autorise à éliminer le contenu du distributeur depuis un formulaire de validation. Il devrait être rempli une nouvelle fois quand le quand VDhopper se lance.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-dial_method">
|
|
<BR>
|
|
<B>Méthode d'appel -</B> Ce champ permet de définir la façon dont sont passés les appels. Si c'est MANUAL alors le auto_dial_level sera bloqué à 0 à moins que le méthode d'appel ne change. If RATIO then the normal dialing a number of lines for Active agents. ADAPT_HARD_LIMIT will dial predictively up to the dropped percentage and then not allow aggressive dialing once the drop limit is reached until the percentage goes down again. ADAPT_TAPERED allows for running over the dropped percentage in the first half of the shift -as defined by call_time selected for campaign- and gets more strict as the shift goes on. ADAPT_AVERAGE tries to maintain an average or the dropped percentage not imposing hard limits as aggressively as the other two methods. You cannot change the Niveau de l'appel automatique if you are in any of the ADAPT dial methods. Only the Dialer can change the dial level when in predictive dialing mode. ENTRANT_MAN permet à l'agent de mise manuel composer des appels de la liste d'une campagne tout en étant en mesure de prendre des appels entrants entre le manuel de composer des appels.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-auto_dial_level">
|
|
<BR>
|
|
<B>Niveau de l'appel automatique -</B> C'est ici que vous mettez combien de lignes VICIDIAL devrait utiliser par agent. 0 veut dire que l'appel automatique est désactivé et que l'agent doit cliquer pour appeler chaque numéro. Autrement VICIDIAL maintiendra le nombre de lignes égale au nombre d'agents actifs multiplié par le niveau de l'appel automatique pour arriver au nombres de lignes que cette campagne devrait permettre sur chaque serveur . La checkbox ADAPTER LE DEPASSEMENT vous permet de forcer un nouveau niveau d'appel même si la méthode d'appel est ADAPT. C'est utile s'il y a une variation dramatique dans la qualité des fiches et que vous voulez changer rigoureusement le dial_level manuellement.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-available_only_ratio_tally">
|
|
<BR>
|
|
<B>Valable seulement pour les contrôles -</B> Si ce champ est à Y les agents ayant pour statut INCALL ou QUEUE seront omis pour le calcul des appels à passer quand le mode d'appel n'est pas MANUAL. La valeur par défaut est N.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-adaptive_dropped_percentage">
|
|
<BR>
|
|
<B>Pourcentage limite d'abandon -</B> Ce champ permet de définir le pourcentage limite d'appels abandonnés voulu lors de l'utilisation de méthode d'appel adaptive-predictive, pas MANUAL ni RATIO.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-adaptive_maximum_level">
|
|
<BR>
|
|
<B>Niveau maximum d'adaptation d'appel -</B> Ce champ permet de définir la limite du nombre de lignes que vous voulez composer par agent lors de l'utilisation d'une méthode d'appel adaptive-predictive, pas MANUAL ni RATIO. Ce nombre peut être plus grand que le Niveau de l'appel automatique de votre matériel ci celui-ci le supporte. La valeur doit être un nombre positif plus grand que 1 qui peut être décimal. La valeur par défaut est 3.0.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-adaptive_latest_server_time">
|
|
<BR>
|
|
<B>Heure maximum du serveur -</B> Ce champ est seulement utilisé par la méthode d'appel ADAPT_TAPERED. Vous devez y saisir l'heure à laquelle vous allez arrêter d'appeler pour cette campagne, 2100 veut dire que vous arrêterez d'appeler pour cette campagne à 21h00. Cela autorise l'algorithme Tapered de décider comment appeler agressivement en fonction du temps restant avant d'arrêter d'appeler.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-adaptive_intensity">
|
|
<BR>
|
|
<B>Adapter le modifieur d'intensité -<\/B> Ce champ est utilisé pour ajuster l'intensité prédictive à la fois plus haut ou plus bas. Plus vous selectionnez un nombre positif grand, plus l'appeleur augmentera considérablement l'appel quand il monte et plus l'appeleur dimunera lentement l'appel quand il descend. Plus le chiffre négatif que vous selectionnez est petit, plus l'appeleur augmentera lentement l'appel et plus l'appeleur diminuera rapidement l'appel quand il descend. La valeur par défaut est 0. Ce champ n'est pas utilisé par les méthodes d'appels MANUAL et RATIO.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-adaptive_dl_diff_target">
|
|
<BR>
|
|
<B>Différence cible du niveau d'appel -<\/B> Ce champ est utilisé pour définir quel nombre spécifique d'agents vous désiser avoir en attente d'appels ou d'appels en attente d'agents. Par exemple, si vous voulez avoir toujours en moyenne un agent de libre pour prendre des appels immediatement vous devriez mettre ceci à -1, si vous ciblez d'avoir un appel gardé en attente d'un agent vous devriez mettre ceci à 1. La valeur par default est 0. Ce champ n'est pas utilisé par les méthodes d'appels MANUAL et RATIO.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-concurrent_transfers">
|
|
<BR>
|
|
<B>Transferts concurents -</B> Ce champ permet de définir le nombre d'appels qui peuvent être envoyés à un agent simultanément. Il est recommandé de laisser AUTO. Le champ n'est pas utilisé si la méthode est MANUAL.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-queue_priority">
|
|
<BR>
|
|
<B>File d'attente de priorité - </B> Ce paramètre est utilisé pour définir l'ordre dans lequel les appels sortants à partir de cette campagne devrait être répondu en ce qui concerne les appels entrants si cette campagne est en mode mixte.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-auto_alt_dial">
|
|
<BR>
|
|
<B>Appeler automatiquement le numéro alternatif -</B> Ce champ est utilisé pour appeler automatiquement le numéro alternatif si les méthodes d'appels RATIO ou ADAPT sont utilisées quand il n'y pas de réponse au numéro de téléphone principale d'une fiche, les statuts NA, B, DC et N. Cette option n'est pas utilisée pour la méthode d'appel MANUAL. EXTENDED suppléant nombres sont des nombres dans le système en dehors de la norme de l'écran principal de l'information. L'aide de vous pouvez avoir des centaines de numéros de téléphone pour un seul client record.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-dial_timeout">
|
|
<BR>
|
|
<B>Délai d'appel -<\/B> Si défini, les appels qui seraient normalement raccrochés après le délai défini dans extensions.conf le seront après ce nombre de secondes si c'est moins que le délai dans extensions.conf. Cela autorise des délais de changement d'appel rapide de serveur à serveur et limite les effets à une simple campagne. Si vous avez beaucoup de répondeur et de boîte vocales, vous devriez essayer de mettre une valeur entre 21 et 26 et voir si les résultats s'améliorent.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-campaign_vdad_exten">
|
|
<BR>
|
|
<B>Campagne VDAD extension -</B> Ce champ permet une coutume VDAD transfert extension. Cela vous permet d'utiliser différentes méthodes de traitement des appels en fonction de votre campagne.
|
|
- 8364 - même que 8368
|
|
- 8365 - Will seulement envoyer l'appel à un agent sur le même serveur que l'appel est en
|
|
- 8366 - Occasions-1 pour la presse et campagnes de sondage
|
|
- 8367 - Le premier à essayer d'envoyer l'appel à un agent sur le serveur local, il se penchera sur d'autres serveurs
|
|
- 8368 - DEFAULT Will send the call to the next available agent no matter what server they are on
|
|
- 8369 - Occasions de Answering Machine de détection après que, même comportement que 8368
|
|
- 8373 - Occasions de Answering Machine de détection après cette même comportement que 8366
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-am_message_exten">
|
|
<BR>
|
|
<B>Message de répondeur -</B> Entrez dans ce champ l'extension pour tranferer aveuglement des appels pour quand l'agent tombe sur un répondeur et qu'il clique sur le bouton Message de répondeur dans la fenêtre de transfert de conférence. Vous devez placer cet exten dans le Dial Plan - extensions.conf - et vous assurer qu'il joue un fichier audio puis raccroche.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-amd_send_to_vmx">
|
|
<BR>
|
|
<B>AMD envoyé au vm exten -<\/B> Ce menu vous permet de définir si un message est laissé sur un répondeur quand il est détecté. L'appel sera immédiatement transmis à l'extention Answering-Machine-Message si AMD est actif et si il est déterminé que l'appel est un répondeur.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-cpd_amd_action">
|
|
<BR>
|
|
<B>CPD AMD Action - </B> Si vous utilisez le Sangoma ParaXip Call Progress logiciel de détection, vous souhaitez activer ce paramètre, soit la mise à disposition DISPO qui l'appel comme AA et l'accrocher si l'appel est en cours de traitement et n'a pas été envoyée à un agent ou encore MESSAGE qui enverra l'appel à la définition Message de répondeur pour cette campagne. La valeur par défaut est DISABLED.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-alt_number_dialing">
|
|
<BR>
|
|
<B>Appel du numéro alternatif pour l'agent -</B> Cette option permet à l'agent d'appeler le numéro de téléphone alternatif ou le champ adresse3 après que le numéro de téléphone principal ait été appelé.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-drop_call_seconds">
|
|
<BR>
|
|
<B>Secondes avant abandon de l'appel -<\/B> C'est le nombre de secondes depuis le moment où la ligne du client est prise jusqu'à ce que l'appel soit considéré comme abandonné, s'applique seulement aux appels sortants.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-drop_action">
|
|
<BR>
|
|
<B>Drop Action - </B> Ce menu vous permet de choisir ce qui se passe à un appel quand il a attendu plus longtemps que ce qui est prévu dans le Temps avant abandon de l'appel domaine. Hangup simplement raccrocher l'appel, envoyer le message de l'appel Drop EXTEN que vous avez définies ci-après, à la messagerie vocale vous envoyer l'appel à la boîte vocale que vous avez définis ci-dessous et IN_GROUP envoie l'appel à la Inbound groupe qui est défini ci-dessous
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-safe_harbor_exten">
|
|
<BR>
|
|
<B>Extension du port sûr -<\/B> C'est l'extension du dial plan où le fichier audio désiré est localisé sur le serveur.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-voicemail_ext">
|
|
<BR>
|
|
<B>Boîte vocale -</B> Si elle est définie, les appels qui sont normalement abandonné seront redirigés vers une boîte vocale pour écouter et laisser un message.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-drop_inbound_group">
|
|
<BR>
|
|
<B>Drop de transfert Group - </B> Si Drop action est fixée à IN_GROUP, l'appel sera envoyé à ce groupe d'arrivée si elle parvient Temps avant abandon de l'appel.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-no_hopper_leads_logins">
|
|
<BR>
|
|
<B>Autoriser la connection aux distributeurs de fiches vides -</B> Si défini à Y, autorise les agents à se connecter à la campagne même si il n'y a pas de fiches chargées dans le distributeur pour cette campagne. Cette fonction est nécessaire pour les campagne de type CLOSER. La valeur par défaut est N.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-list_order_mix">
|
|
<BR>
|
|
<B>Mélange d'ordre de liste - dépasse les champs d'ordre de fil et destatut de cadran. Emploiera les paramètres de liste et de statut pourl'entrée choisie de mélange de liste dans la section de sous-marinde mélange de liste à la place. Le défaut est HANDICAPÉ.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-vcl_id">
|
|
<BR>
|
|
<B>Identification de mélange de liste - identification du mélange deliste. Doit être de 2-20 caractères de longueur sans les espaces outoute autre ponctuation spéciale.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-vcl_name">
|
|
<BR>
|
|
<B>Nom de mélange de liste - nom descriptif du mélange de liste. Doitêtre de 2-50 caractères de longueur.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-list_mix_container">
|
|
<BR>
|
|
<B>Détail de mélange de liste - la composition de l'entrée de mélangede liste. Contient l'identification de liste, l'ordre de mélange, lespourcentages et les statuts qui composent ce mélange de liste. Lespourcentages toujours doivent additionner jusqu'à 100, et toutes leslistes doivent être en activité et réglées à la campagne pour quel'entrée de mélange d'ordre soit activée.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-mix_method">
|
|
<BR>
|
|
<B>Méthode de mélange de liste - la méthode de mélanger toutes lesparties du détail de mélange de liste ensemble. EVEN_MIX mélangerades fils de chaque partie intercalée aux autres parties, comme ces1.2.3.1.2.3.1.2.3. IN_ORDER mettra les fils dans l'ordre dans lequelils sont énumérés dans l'écran 1.1.1.2.2.2.3.3.3 de détail demélange de liste. La volonté ALÉATOIRE les a mis dans l'ordreALÉATOIRE 1.3.2.1.1.3.2.1.3. Le défaut est IN_ORDER.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-agent_extended_alt_dial">
|
|
<BR>
|
|
<B>Agent Screen Extended Alt Dial - </B> Cette fonction permet aux agents d'accéder à des numéros de téléphone suppléant étendue des pistes au-delà de l'Alt Address3 de téléphone et les champs qui peuvent être utilisés dans VICIDIAL de numéros de téléphone au-delà du numéro de téléphone principal. L'étendue des numéros de téléphone peut être composé automatiquement en utilisant la fonction Auto-Alt-Dial VICIDIAL dans les paramètres de campagne, mais l'activation de cette fonctionnalité, agent d'écran permettra également l'agent d'appeler ces numéros à partir de l'écran de leur mandataire, ainsi que de modifier leurs informations.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-survey_first_audio_file">
|
|
<BR>
|
|
<B>Première Enquête Audio File - </B> Il s'agit du nom de fichier audio qui se joue dès que le client choisit le téléphone lors de l'exécution d'une étude campagne.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-survey_dtmf_digits">
|
|
<BR>
|
|
<B>Enquête DTMF Digits - </B> Ce domaine est l'endroit où vous définissez les chiffres que le client peut presse comme une option sur une campagne de sondage. valable chiffres DTMF sont0123456789*#
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-survey_ni_digit">
|
|
<BR>
|
|
<B>Enquête Non Intéressé Digit - </B> Ce domaine est l'endroit où vous définissez le client pressé chiffres qui montrent qu'ils ne sont pas intéressés.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-survey_ni_status">
|
|
<BR>
|
|
<B>Enquête Non Intéressé Etat - </B> Ce domaine est l'endroit où vous choisissez le statut d'être utilisé pour pas intéressé. S'il est utilisé DNC et la campagne est défini pour utiliser DNC ensuite le numéro de téléphone sera automatiquement ajouté à la liste DNC VICIDIAL interne.et, éventuellement, la campagne de la liste des DNC.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-survey_opt_in_audio_file">
|
|
<BR>
|
|
<B>Enquête sur Opt-in Audio File - </B> Il s'agit du nom de fichier audio qui se joue lorsque le client a opté dans l'enquête, a choisi de ne pas-ou pas répondu si la non-réponse-action est fixé à optout. Après ce fichier audio est joué, le sondage de l'action ne soit prise.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-survey_ni_audio_file">
|
|
<BR>
|
|
<B>Enquête Non Intéressé Audio File - </B> Il s'agit du nom de fichier audio qui se joue lorsque le client a choisi de l'enquête, a choisi de ne pas-ou pas répondu si la non-réponse-action est fixé à OptIn. Après ce fichier audio est joué, l'appel sera suspendu jusqu'à.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-survey_method">
|
|
<BR>
|
|
<B>Enquête sur la méthode - </B> Cette option permet de définir ce qui se passe à un appel après que le client a opté en. AGENT_XFER enverra l'appel à la prochaine agent. MESSAGERIE VOCALE envoie l'appel à la boîte vocale qui est spécifié dans la boîte vocale domaine. EXTENSION envoie le client à l'extension définie dans le Enquête Xfer Extension domaine. Hangup se raccrocher le client. CAMPREC_60_WAV enverra au client d'avoir un enregistrement réalisé avec leur réponse, cet enregistrement sera placé dans un dossier nommé comme la campagne de l'intérieur de l'Enquête sur la campagne d'enregistrement Directory.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-survey_no_response_action">
|
|
<BR>
|
|
<B>Etude de non-réponse de l'action - </B> C'est là que vous définissez ce qui se passera s'il n'y a pas de réponse à la question de sondage. OptIn ne envoyer l'appel à la méthode d'enquête, si le client en pressant une chiffres DTMF. OptOut envoie le client sur la méthode d'enquête, même si elles ne sont pas sur un chiffre DTMF.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-survey_response_digit_map">
|
|
<BR>
|
|
<B>Enquête Réponse Digit Map - </B> Il s'agit de la section où vous pouvez définir une description pour aller avec chaque option DTMF chiffres que le client mai sélectionner.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-survey_xfer_exten">
|
|
<BR>
|
|
<B>Enquête Xfer Extension - </B> Si la méthode d'enquête de l'extension est sélectionné, le client appel sera dirigé vers cette extension dialplan.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-survey_camp_record_dir">
|
|
<BR>
|
|
<B>Enquête sur la campagne d'enregistrement - Annuaire </B> Si la méthode d'enquête de CAMPREC_60_WAV est sélectionné, le service à la clientèle sera enregistré et placé dans un répertoire nommé d'après la campagne de l'intérieur de ce répertoire.
|
|
|
|
<?
|
|
}
|
|
?>
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-next_agent_call">
|
|
<BR>
|
|
<B>Appel de l'agent suivant -</B> Cela determine quel agent recevra l'appel suivant quand c'est possible:
|
|
<BR> - random: ordonne par la valeur aléatoire de mise à jour dans la table vicidial_live_agents
|
|
<BR> - oldest_call_start: ordonne par la dernière date à laquelle un agent a passé un appel. Résultats des agents recevant globalement un nombre à peu près identique d'appels .
|
|
<BR> - oldest_call_finish: ordonne suivant la dernière date à laquelle un agent a terminé un appel. L'agent AKA attendant le plus longtemps reçoit le premier appel.
|
|
<BR> - overall_user_level: ordonne par le user_level de l'agent comme défini dans la table vicidial_users, un user_level plus élévé recevra plus d'appels.
|
|
<BR> - campaign_rank : ordres par le rang donné à l'agent pour la campagne.Le plus haut à le plus bas.
|
|
<BR> - fewest_calls : ordres par le nombre d'appels reçus par un agent pource groupe d'arrivée spécifique. Moindres appels d'abord.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-local_call_time">
|
|
<BR>
|
|
<B>Temps d'appel local -<\/B> C'est ici que vous indiquez pendant quelles heures vous voulez appeler, comme déterminé par l'heure locale dans la région dans laquelle vous voulez appeler. C'est controlé par le code de la région et est ajusté pendant le temps des Daylight Savings si c'est approprié. Les habitudes générales aux Etat-Unis, de Buisness à Buisness, sont de 9h00 à 17h00 et de Buisness à particulier de 9h00 à 21h00.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-dial_prefix">
|
|
<BR>
|
|
<B>Préfixe d'appel -</B> Ce champ autorise plus facilement à changer un chemin d'appel vers l'exterieur à travers une méthode differente sans devoir recharger Asterisk. La valeur par défaut 9 est basée sur 91NXXNXXXXXX dans le dial plan du fichier extensions.conf .
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-omit_phone_code">
|
|
<BR>
|
|
<B>Omettre le Phone Code -</B> Ce champ permet de ne pas utiliser le champ phone_code lors d'appels passés depuis VICIDIAL. Par exemple si vous appelez de France vers la France vous devriez avoir 33 dans le champ phone_code de chaque fiche, mais vous voulez utiliser 10 chiffres dans le dial plan extensions.conf au lieu de 33 puis 10 chiffres. La valeur par défaut est N.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-campaign_cid">
|
|
<BR>
|
|
<B>CallerID de la campagne -</B> Ce champ autorise à envoyer un numéro de callerId personnalisé sur les appels sortants. C'est le numéro de callerId que vous voullez montrer à la personne que vous appellez. La valeur par défaut est UNKNOW. Si vous utilisez des T1 ou E1s pour appeler vers l'extérieur cette option est seulement valable si vous utilisez des PRIs - ISDN T1s ou E1s - qui ont la fonction CallerId personnalisable activée, cela ne fonctionne pas avec le service Robbed-bit et les circuits -RBS-. Cela fonctionne aussi avec la plupart des fournisseurs VOIP -SIP ou trunks IAX- qui autorisent un callerId de sortie dynamique. Le callerID personnalisé ne s'applique qu'aux appels passés directement depuis la campagne VICIDIAL, n'importe quel appel avec une tierce personne ou transféré n'enverra pas le callerId personnalisé. NOTE: Parfois en mettant UNKWOWN ou PRIVATE dans ce champ c'est le callerId par défaut de votre ligne qui sera transmis pour les appels. Vous pouvez tester cela et mettre 0000000000 à la place dans le champs calleID si vous ne voulez pas envoyer votre CallerID.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-campaign_rec_exten">
|
|
<BR>
|
|
<B>Extention d'enregistrement -</B> Ce champs autorise à avoir une extension personnalisée d'enregistrement pour l'utiliser avec VICIDIAL. Cela autorise à utiliser différentes extensions selon le temps maximum d'enregistrement que vous voulez autoriser et le type de codec que vous voulez utiliser. L'exten par defaut est 8309 qui, si vous avez suivi les exemples de la SCRATCH_INSTALL, enregistrera dans le format WAV jusqu'à une heure. Une autre option incluse dans les exemples est 8310 qui enregistrera dans le format GSM jusqu'à une heure.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-campaign_recording">
|
|
<BR>
|
|
<B>Enregistrement de la campagne -</B> Ce menu permet de choisir le niveau d'enregistrement autorisé pour cette campagne. NEVER désactive l'enregistrement sur l'application client. ONDEMAND est la valeur par défaut et permet à l'agent de démarrer et arrêter l'enregistrement si nécessaire. ALLCALLS démarrera l'enregistrement pour tous les appels passés vers un agent. ALLFORCE démarrera l'enregistrement à chaque appel passés vers un agent sans donné la possibilité à l'agent de stopper l'enregistrement. Pour ALLCALLS et ALLFORCE il y a une option pour utiliser un délai d'enregistrement afin de réduire les enregistrements et la charge système.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-campaign_rec_filename">
|
|
<BR>
|
|
<B>Nom du fichier d'enregistrement de la campagne -</B> Ce champs vous permet de personnaliser le nom de fichier pour l'enregistrement quand l'enregistrement de la campage est sur ONEDEMAND ou ALLCALLS. Les variables autorisées sont CAMPAIGN CUSTPHONE FULLDATE TINYDATE EPOCH AGENT. La valeur par defaut est FULLDATE_AGENT et le nom du fichier ressemblerait à ceci : 20051020-103108_6666. Un autre exemple est CAMPAIGN_TINYDATE_CUSTPHONE ce qui ressemblerait à ceci : TESTCAMP_51020103108_3125551212 . 50 char max.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-allcalls_delay">
|
|
<BR>
|
|
<B>Délai d'enregistrement -</B> Uniquement pour les enregistrements ALLCALLS et ALLFORCE. Cette valeur est le nombre de secondes après lesquelles commence l'enregistrement des appels. La valeur par défaut est 0.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-campaign_script">
|
|
<BR>
|
|
<B>Script campagne ->/B> Ce menu vous permet de choisir le script qui apparaîtra sur l'écran des agents pour cette campagne. Mettez NONE pour ne pas montrer de script pour cette campagne.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-get_call_launch">
|
|
<BR>
|
|
<B>Consigne de lancement d'appel -</B> Ce menu vous permet de choisir si vous voulez lancer automatiquement la page de web-form dans une fenêtre séparée, passer automatiquement sur l'onglet de script ou ne rien faire quand un appel est envoyé par un agent dans cette campagne.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-xferconf_a_dtmf">
|
|
<BR>
|
|
<B>DTMF pour le transfert de conférence -<\/B> Ces quatre champs vous permettent de définir deux préselection DTMF pour les transferts de conférences. Quand l'appel ou la campagne est chargée, le script vicidial.php montrera deux boutons dans la fenêtre transfert-conference et remplira automatiquement les champs numéro-à-appeler et envoyer-dtmf quand ils sont pressés. Si vous voulez autoriser les transferts de consultation, de fronter à closer, vous pouvez placer CXFER comme une des préselection du nombre-à-appeler et la chaîne d'appel approprié sera envoyé pour faire un tranfert de consultation locale, puis l'agent peu juste quitter l'appel à 3 ou continuer sur l'appel suivant. Si vous voulez autoriser les transferts à l'aveugle d'un client vers un script AGI VICIDIAL pour le log ou un IRV, placez AXFER dans le champ numéro-à-appeler. Vous pouvez aussi specifier une extention personnalisée après AXFER ou CXFER, par exemple si vous voulez faire un transfert de consultation interne à la place d'un local vous devriez mettre CXFER90009 dans le champ numéro à appelé.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-scheduled_callbacks">
|
|
<BR>
|
|
<B>Rappels programmés -</B> Cette option autorise un agent à statuer un appel comme CALLBK et à choisir une date et une heure à laquelle la fiche sera réactivée.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-wrapup_seconds">
|
|
<BR>
|
|
<B>Temps de conclusion -<\/B> Nombre de secondes pendant lesquelles l'agent est forcé à attendre avant de pouvoir recevoir ou passer un nouvel appel. Le timer commence dès que l'agent à raccrocher - ou dans le cas de l'appel du numéro alternatif quand l'agent à terminer la fiche - La valeur par défaut est 0. Si le timer se termine avant que l'agent n'ait statué l'appel, l'agent ne passera pas à l'appel suivant tant qu'il n'a pas sélectionné un statut.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-wrapup_message">
|
|
<BR>
|
|
<B>Message de conclusion -<\/B> C'est un message spécifique à la campagne à afficher si le temps de conclusion est défini.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-use_internal_dnc">
|
|
<BR>
|
|
<B>Utiliser la liste DNC interne -</B> Cela défini si cette campagne doit filter les fiches par rapport à la liste DNC. Si ce champ est à Y alors le distributeur de fiches recherchera chaque numéro de téléphone dans la liste DNC avant de la placer dans le distributeur de fiches. Si il est dans la liste DNC alors le statut de la fiche sera changer en DNCL, il ne pour donc pas être appelé. La valeur par défaut est N.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-use_campaign_dnc">
|
|
<BR>
|
|
<B>Utilisez Campagne DNC List - </B> Cela définit si cette campagne est de filtrer les mène à une liste DNC qui est spécifique à cette campagne seulement. Si elle est définie à Y, la trémie sera, pour chaque numéro de téléphone dans la campagne des DNC avant de le placer dans la trémie. Si elle est dans la campagne des DNC liste, il va changer le statut qui conduisent à DNCC il ne peut donc pas être composé. La valeur par défaut est N.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-closer_campaigns">
|
|
<BR>
|
|
<B>Groupes entrants autorisés -</B> For CLOSER campaigns only. Here is where you select the inbound groups you want agents in this CLOSER campaign to be able to take calls from. It is important for BLENDED inbound-outbound campaigns only to select the inbound groups that are used for agents in this campaign. The calls coming into the inbound groups selected here will be counted as active calls for a blended campaign even if all agents in the campaign are not logged in to receive calls from all of those selected inbound groups.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-agent_pause_codes_active">
|
|
<BR>
|
|
<B>Activer les codes de la pause des agents -</B> Autorise les agents à sélectionner un code de pause quand il clique sur le bouton PAUSE dans vicidial.php. Les codes de pause sont définissable par campagne dans le bas de la vue détaillée de la campagne et sont stockés dans la table vicidial_agent_log. La valeur par défaut est N. Force va forcer les agents à choisir un code PAUSE si elles cliquez sur le bouton PAUSE.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-disable_alter_custdata">
|
|
<BR>
|
|
<B>Désactiver la modification des données du client -</B> Si défini à Y alors les données de la fiche d'un client ne sont pas modifiées quand un agent passe l'appel. La valeur pas défaut est N.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-disable_alter_custphone">
|
|
<BR>
|
|
<B>Désactiver Alter clientèle Téléphone - </B> Si la valeur de Y, ne modifie pas le client numéro de téléphone lors d'un agent dispositions de l'appel. La valeur par défaut est Y.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-display_queue_count">
|
|
<BR>
|
|
<B>Agent Afficher Queue Count - </B> Si la valeur de Y, lorsque le client est en attente d'un agent, la file d'attente de demande d'affichage en haut de l'agent de l'écran devient rouge et indique le nombre d'appels en attente. Le défaut est Y.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-manual_dial_list_id">
|
|
<BR>
|
|
<B>Identification manuelle de liste de cadran - le list_id de défaut àemployer quand des placces d'un agent un appel manuel et un nouveaudisque de fil est créés dans le vicidial_list. Le défaut est 999.Ce champ peut contenir des chiffres seulement.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-manual_dial_filter">
|
|
<BR>
|
|
<B>Manuelle Filter - </B> Cela vous permet de filtrer les appels que les agents font en mode manuel composer pour cette campagne par une combinaison des éléments suivants: DNC - à coup sur, CAMPAIGNLISTES - le nombre doit être dans les listes pour la campagne, AUCUN - pas de filtre sur le cadran ou manuel rapide composer des listes.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-agent_clipboard_copy">
|
|
<BR>
|
|
<B>Agent de presse-papiers de copie d'écran - </B> Cette fonctionnalité est actuellement disponible que pour Internet Explorer. Cette fonctionnalité vous permet de sélectionner un domaine qui sera copiée dans le presse-papiers de l'ordinateur de l'agent sur l'ordinateur d'un appel d'être envoyées à un agent. Commune utilise pour cela sont pour faciliter le collage de numéros de compte ou des numéros de téléphone en héritage les applications client à l'agent d'ordinateur.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-three_way_call_cid">
|
|
<BR>
|
|
<B>3-Way Outbound Call CallerID - </B> Cela définit ce qui est envoyé en tant que sortant CallerID nombre de 3-way appels effectués par l'agent, la campagne utilise la campagne personnalisée CallerID, client utilise le numéro de client qui est actif sur les agents de l'écran et utilise les CallerID AGENT_PHONE le téléphone pour que l'agent est entré dans. AGENT_CHOOSE permet de choisir l'agent qui CallerID à utiliser pour les 3-way appels à partir d'une liste de choix.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-three_way_dial_prefix">
|
|
<BR>
|
|
<B>3-Way Call Préfixe de numérotation - </B> Cela définit ce qui est utilisé comme préfixe pour les 3-way appels, par défaut est vide de sorte que la campagne de préfixe est utilisé, passthru afin que vous puissiez entendre sonner est de 88.
|
|
|
|
<?
|
|
if ($SSqc_features_active > 0)
|
|
{
|
|
?>
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-qc_enabled">
|
|
<BR>
|
|
<B>QC Activé - </B> Mise en ce domaine permet à Y pour l'agent de contrôle de la qualité caractéristiques au travail. La valeur par défaut est N.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-qc_statuses">
|
|
<BR>
|
|
<B>Statuts QC - </B> Cette zone est l'endroit où vous choisissez ce qui entraîne des statuts doit être dépassé par le système de QC. Placez un contrôle à côté de l'état que vous voulez examiner QC.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-qc_shift_id">
|
|
<BR>
|
|
<B>QC Shift - </B> Il s'agit du changement de calendrier utilisé pour tirer QC pour une campagne. Les jours de la semaine sont ignorées pour ces fonctions.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-qc_get_record_launch">
|
|
<BR>
|
|
<B>Record QC Get lancement </B> Cela permet à l'une des actions suivantes peut être déclenché sur un agent QC recevoir un nouveau record.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-qc_show_recording">
|
|
<BR>
|
|
<B>QC Voir Recording - </B> qui permet un enregistrement qui mai être liée à la QC record à afficher dans le QC agent écran.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-qc_web_form_address">
|
|
<BR>
|
|
<B>QC WebForm Adresse - </B> Il s'agit de l'adresse du site web d'un agent QC pouvez aller à en cliquant sur le lien dans la WebForm QC écran.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-qc_script">
|
|
<BR>
|
|
<B>Script QC - </B> C'est le script qui peut être utilisé par les agents QC SCRIPT dans l'onglet de la QC écran.
|
|
<?
|
|
}
|
|
?>
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-vtiger_search_category">
|
|
<BR>
|
|
<B>Recherche Catégorie Vtiger - </B> Si Vtiger intégration est activé dans les paramètres du système puis de définir ce paramètre lorsque l'vtiger_search.php page de recherche pour le numéro de téléphone qui a été entré. Il ya 4 options qui peuvent être utilisés dans ce domaine: LEAD-Cette option de recherche par le biais du conduit Vtiger seulement, COMPTE-Cette option de recherche par le biais du Vtiger comptes et tous les contacts et les sous-contacts pour le numéro de téléphone, VENDOR-Cette option ne recherche que par l'intermédiaire du Vtiger fournisseurs, ACCTID-Cette option ne fonctionne que pour les comptes et il prendra les VICIDIAL vendor_lead_code terrain et essayer de chercher le numéro de compte Vtiger. En cas d'échec, il va essayer d'autres méthodes que la liste que vous avez sélectionné. Plusieurs options peuvent être utilisées pour chaque recherche, mais sur de grandes bases de données ce n'est pas recommandé. La valeur par défaut est LEAD.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-vtiger_create_call_record">
|
|
<BR>
|
|
<B>Vtiger Créer Call Record - </B> Si Vtiger intégration est activé dans les paramètres du système puis de définir ce paramètre est de savoir si un nouveau record d'activité Vtiger est créé pour l'appel lorsque l'agent est à la vtiger_search page. La valeur par défaut est Y.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-vtiger_create_lead_record">
|
|
<BR>
|
|
<B>Vtiger Créer Lead Record - </B> Si Vtiger intégration est activé dans les paramètres système et Vtiger LEAD Recherche Catégorie comprend alors ce paramètre est de déterminer si un nouveau record Vtiger plomb est créé lorsque l'agent est à la page vtiger_search et il n'est pas ont trouvé à l'appel le numéro de téléphone. La valeur par défaut est Y.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-vtiger_screen_login">
|
|
<BR>
|
|
<B>Vtiger Login Screen - </B> Si Vtiger intégration est activé dans les paramètres de ce système de réglage de définir si l'utilisateur est connecté à l'interface Vtiger automatiquement lors de leur connexion à VICIDIAL. Le défaut est Y.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-agent_allow_group_alias">
|
|
<BR>
|
|
<B>Groupe Alias Admis - </B> Si vous souhaitez permettre à vos agents d'utiliser les alias de groupe, vous devez mettre à Y. alias Groupe sont expliqués plus en section administrative, ils permettent de sélectionner différents agents callerIDs manuel pour les appels sortants qu'ils mai place. La valeur par défaut est N.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_campaigns-default_group_alias">
|
|
<BR>
|
|
<B>Groupe par défaut Alias - </B> Si vous avez permis à ce groupe Alias est l'alias du groupe qui est sélectionné en premier par défaut lorsque l'agent choisit d'utiliser un alias pour un groupe émetteur manuel appel. La valeur par défaut est None ou vide.
|
|
|
|
|
|
|
|
|
|
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>VICIDIAL_LISTES TABLE</FONT></B><BR><BR>
|
|
<A NAME="vicidial_lists-list_id">
|
|
<BR>
|
|
<B>ID de la liste -</B> C'est le nom numérique de la liste, il n'est pas éditable après la première validation, il ne doit contenir que des nombres et contenir entre 2 et 8 caractères. Must be a number greater than 100.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_lists-list_name">
|
|
<BR>
|
|
<B>Nom de la liste -</B> C'est la description de la liste, elle doit contenir entre 2 et 20 caractères.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_lists-list_description">
|
|
<BR>
|
|
<B>Description de la liste -</B> C'est un champ de note pour la liste, il est optionnel.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_lists-list_changedate">
|
|
<BR>
|
|
<B>Dernier changement de la liste -</B> C'est la dernière fois que les réglages de la liste ont été modifié.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_lists-list_lastcalldate">
|
|
<BR>
|
|
<B>Date du dernier appel de la liste -</B> C'est la dernière fois qu'une fiche de cette liste a été appelée.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_lists-campaign_id">
|
|
<BR>
|
|
<B>Campagne -</B> C'est la campagne à laquelle cette liste appartient. Une liste ne peut etre appelée que depuis une seule campagne à la fois.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_lists-active">
|
|
<BR>
|
|
<B>Active -</B> Cela définie si la liste peut etre appelée ou non.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_lists-reset_list">
|
|
<BR>
|
|
<B>Réinisialiser le Lead-Called-Status pour cette liste -</B> Cela réinitialise les fiches dans cette liste à N pour "not called since last reset" et signifie que n'importe quelle fiche peut maintenant être appelée si ce statut est défini dans l'écran de campagne.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_list-dnc">
|
|
<BR>
|
|
<B>DNC VICIDIAL List - </B> Do Not Call Cette liste contient tous les conduire qui a été fixé à un statut de DCN dans le système. Dans les listes - ADD NOMBRE DE DNC page que vous êtes en mesure d'ajouter manuellement les numéros de cette liste afin de ne pas être appelé par des campagnes qui utilisent la liste interne DNC. Il ya aussi la possibilité d'ajouter conduit à la campagne des listes DNC et pour les campagnes qui ont les.
|
|
|
|
|
|
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>VICIDIAL_ENTRANT_GROUPS TABLE</FONT></B><BR><BR>
|
|
<A NAME="vicidial_inbound_groups-group_id">
|
|
<BR>
|
|
<B>ID du groupe -</B> C'est le nom court du group entrant, il n'est pas éditable après la première initialisation, il doit contenir entre 2 est 20 caractères.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-group_name">
|
|
<BR>
|
|
<B>Nom du groupe -</B> C'est la déscription du groupe, il doit contenir entre 2 et 30 caractères et ne doit pas contenir de tirets, de plus ou d'espaces .
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-group_color">
|
|
<BR>
|
|
<B>Couleur du groupe </B> C'est la couleur que est affichée dans l'application cliente VICIDIAL quand un appel arrive dans ce groupe. Il doit contenir entre 2 et 7 caractères. Si c'est une couleur en hexadecimal vous devez mettre un # au début de la chaîne de caractères ou VICIDIAL ne fonctionnera pas proprement.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-active">
|
|
<BR>
|
|
<B>Active -</B> Cela détermine si ce groupe sera visible dans la boîte de sélection quand un agent se connecte à VICIDIAL.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-web_form_address">
|
|
<BR>
|
|
<B>Formulaire Web -</B> C'est l'adresse personnalisée qui, en cliquant sur le boutton WEB FORM dans VICIDIAL, sera prise pour les appels qui arrivent dans ce groupe.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-next_agent_call">
|
|
<BR>
|
|
<B>Appel de l'agent suivant -</B> Cela determine quel agent recevra l'appel suivant quand c'est possible:
|
|
<BR> - random: ordonne par la valeur aléatoire de mise à jour dans la table vicidial_live_agents
|
|
<BR> - oldest_call_start: ordonne par la dernière date à laquelle un agent a passé un appel. Résultats des agents recevant globalement un nombre à peu près identique d'appels .
|
|
<BR> - oldest_call_finish: ordonne suivant la dernière date à laquelle un agent a terminé un appel. L'agent AKA attendant le plus longtemps reçoit le premier appel.
|
|
<BR> - overall_user_level: ordonne par le user_level de l'agent comme défini dans la table vicidial_users, un user_level plus élévé recevra plus d'appels.
|
|
<BR> - inbound_group_rank : ordres par le rang donné à l'agent pour legroupe d'arrivée spécifique. Le plus haut à le plus bas.
|
|
<BR> - fewest_calls : ordres par le nombre d'appels reçus par un agent pource groupe d'arrivée spécifique. Moindres appels d'abord.
|
|
<BR> - campaign_rank : ordres par le rang donné à l'agent pour la campagne.Le plus haut à le plus bas.
|
|
<BR> - fewest_calls_campaign: orders by the number of calls received by an agent for the campaign. Least calls first.
|
|
<BR>
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-queue_priority">
|
|
<BR>
|
|
<B>Queue Priority -</B> This setting is used to define the order in which the calls from this inbound group should be answered in relation to calls from other inbound groups.
|
|
|
|
<A NAME="vicidial_inbound_groups-fronter_display">
|
|
<BR>
|
|
<B>Affichage de l'enseigne -<\/B> Ce champ détermine si l'agent VICIDIAL sortant doit avoir l'enseigne - si il y en a une - affichée dans le champ Statut quand l'appel est passé à l'agent.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-ingroup_script">
|
|
<BR>
|
|
<B>Script campagne ->/B> Ce menu vous permet de choisir le script qui apparaîtra sur l'écran des agents pour cette campagne. Mettez NONE pour ne pas montrer de script pour cette campagne.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-get_call_launch">
|
|
<BR>
|
|
<B>Consigne de lancement d'appel -</B> Ce menu vous permet de choisir si vous voulez lancer automatiquement la page de web-form dans une fenêtre séparée, passer automatiquement sur l'onglet de script ou ne rien faire quand un appel est envoyé par un agent dans cette campagne.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-xferconf_a_dtmf">
|
|
<BR>
|
|
<B>DTMF pour le transfert de conférence -<\/B> Ces quatre champs vous permettent de définir deux préselection DTMF pour les transferts de conférences. Quand l'appel ou la campagne est chargée, le script vicidial.php montrera deux boutons dans la fenêtre transfert-conference et remplira automatiquement les champs numéro-à-appeler et envoyer-dtmf quand ils sont pressés. Si vous voulez autoriser les transferts de consultation, de fronter à closer, vous pouvez placer CXFER comme une des préselection du nombre-à-appeler et la chaîne d'appel approprié sera envoyé pour faire un tranfert de consultation locale, puis l'agent peu juste quitter l'appel à 3 ou continuer sur l'appel suivant. Si vous voulez autoriser les transferts à l'aveugle d'un client vers un script AGI VICIDIAL pour le log ou un IRV, placez AXFER dans le champ numéro-à-appeler. Vous pouvez aussi specifier une extention personnalisée après AXFER ou CXFER, par exemple si vous voulez faire un transfert de consultation interne à la place d'un local vous devriez mettre CXFER90009 dans le champ numéro à appelé.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-drop_call_seconds">
|
|
<BR>
|
|
<B>Temps avant abandon de l'appel - </B> Le nombre de secondes d'un appel restera dans la file d'attente avant d'être considéré comme un DROP.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-drop_action">
|
|
<BR>
|
|
<B>Drop Action - </B> Ce menu vous permet de choisir ce qui se passe à un appel quand il a attendu plus longtemps que ce qui est prévu dans le Temps avant abandon de l'appel domaine. Hangup simplement raccrocher l'appel, envoyer le message de l'appel Drop EXTEN que vous avez définies ci-après, à la messagerie vocale vous envoyer l'appel à la boîte vocale que vous avez définis ci-dessous et IN_GROUP envoie l'appel à la Inbound groupe qui est défini ci-dessous.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-drop_exten">
|
|
<BR>
|
|
<B>Drop EXTEN - </B> Si l'action est goutte d'MESSAGE, c'est le cadran plan d'extension que l'appel sera envoyée si elle parvient à Temps avant abandon de l'appel.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-voicemail_ext">
|
|
<BR>
|
|
<B>Boîte vocale -</B> If Drop Action is set to VOICEMAIL, the call DROP would instead be directed to this voicemail box to hear and leave a message.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-drop_inbound_group">
|
|
<BR>
|
|
<B>Drop de transfert Group - </B> Si Drop action est fixée à IN_GROUP, l'appel sera envoyé à ce groupe d'arrivée si elle parvient Temps avant abandon de l'appel.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-call_time_id">
|
|
<BR>
|
|
<B>Temps d'appel - c'est l'arrangement de temps d'appel à employer pource groupe d'arrivée. Maintenez dans l'esprit que le temps est basésur le temps de serveur. Le défaut est 24hours.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-after_hours_action">
|
|
<BR>
|
|
<B>Après les heures d'ouverture d'action - </B> L'action à effectuer si c'est après les heures de travail tels que définis dans le temps de l'arrivée pour ce groupe. Hangup hangup immédiatement à l'appel, MESSASGE va jouer le fichier dans le message après les heures de Filenam domaine, EXTENSION envoie l'appel à la fois la durée d'extension de la dialplan et de la messagerie vocale vous envoyer l'appel à la boîte vocale figurant dans la boîte vocale après les heures de domaine , IN_GROUP enverra l'appel à l'arrivée du groupe sélectionné dans le groupe après les heures de sélectionner la liste de transfert. La valeur par défaut est MESSAGE.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-after_hours_message_filename">
|
|
<BR>
|
|
<B>Après nom de fichier de message d'heures - le dossier audio localisésur le serveur à jouer si l'action est placée au MESSAGE. Le défautest VM-AU revoir
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-after_hours_exten">
|
|
<BR>
|
|
<B>Après prolongation d'heures - la prolongation dialplan pour envoyerl'appel si l'action est placée à la PROLONGATION. Le défaut est8300.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-after_hours_voicemail">
|
|
<BR>
|
|
<B>Après des heures Boîte vocale - la boîte de voicemail pour envoyerl'appel si l'action est placée à VOICEMAIL.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-afterhours_xfer_group">
|
|
<BR>
|
|
<B>Après les heures d'ouverture de transfert Group - </B> Si l'action Après les heures d'ouverture est fixée à IN_GROUP, l'appel sera envoyé à cette arrivée du groupe si celui-ci entre dans le groupe en dehors de l'appel de temps défini pour le régime de groupe.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-welcome_message_filename">
|
|
<BR>
|
|
<B>Nom de fichier bienvenu de message - le dossier audio localisé sur leserveur à jouer quand l'appel entre. Si ensemble à ---NONE --- alorsaucun message ne sera joué. Le défaut est ---NONE ---
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-play_welcome_message">
|
|
<BR>
|
|
<B>Message de bienvenue Play - </B> Ces réglages choisir le moment de jouer le message de bienvenue défini, TOUJOURS jouera à chaque fois, JAMAIS il ne pourra jamais jouer, IF_WAIT_ONLY seulement jouer le message de bienvenue si l'appel n'est pas immédiatement à un agent , et YES_UNLESS_NODELAY toujours jouer le message de bienvenue NO_DELAY à moins que le paramètre est activé. La valeur par défaut est TOUJOURS.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-moh_context">
|
|
<BR>
|
|
<B>Musique sur le contexte de prise - la musique sur le contexte de prisepour employer quand le client est placé sur la prise. Le défaut estdéfaut.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-onhold_prompt_filename">
|
|
<BR>
|
|
<B>Sur le nom de fichier de message de sollicitation de prise - ledossier audio localisé sur le serveur à jouer à un intervallerégulier quand le client est sur la prise. Le défaut estgeneric_hold. Ce dossier audio DOIT être de 9 secondes ou moins dansla longueur.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-prompt_interval">
|
|
<BR>
|
|
<B>Sur l'intervalle de message de sollicitation de prise - la durée ensecondes d'attendre avant de jouer dessus le message de sollicitationde tenir. Le défaut est 60. Pour désactiver l'invite en attente, réglez l'intervalle de 0.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-play_place_in_line">
|
|
<BR>
|
|
<B>Jouer en ligne Place - </B> Cela définit si l'appelant entendra leur place dans la ligne quand ils entrent dans la file d'attente, ainsi que quand ils entendent le announcemend. La valeur par défaut est N.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-play_estimate_hold_time">
|
|
<BR>
|
|
<B>Hold estimée Play Time - </B> Cela définit si l'appelant entend tenir les prévisions de temps avant qu'ils ne soient transférés à un agent. La valeur par défaut est N.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-hold_time_option">
|
|
<BR>
|
|
<B>Hold Time Option - </B> Cela vous permet de spécifier le routage de l'appel, si les prévisions de tenir le temps est sur le montant de la seconde précisés ci-dessous. La valeur par défaut est NON.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-hold_time_option_seconds">
|
|
<BR>
|
|
<B>Hold Time Option secondes - </B> Si Hold Time Option est fixé à rien, mais AUCUNE, c'est le nombre de secondes de l'estimation du temps que vous maintenez le déclencheur tenir option. La valeur par défaut est 360 secondes.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-hold_time_option_exten">
|
|
<BR>
|
|
<B>Hold Time Option Extension - </B> Si Hold Time Option est fixé à l'extension, c'est l'extension dialplan que l'appel sera envoyé à tenir si l'estimation dépasse le temps Hold Time Option Seconds.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-hold_time_option_voicemail">
|
|
<BR>
|
|
<B>Hold Time Option Boîte vocale - </B> Si Hold Time Option est fixé à la boîte vocale, il s'agit de la boîte vocale que l'appel sera envoyé à tenir si l'estimation dépasse le temps Hold Time Option Seconds.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-hold_time_option_xfer_group">
|
|
<BR>
|
|
<B>Hold Time Option de transfert In-Group - </B> Si Hold Time Option est fixé à IN_GROUP, c'est l'arrivée du groupe que l'appel sera envoyé à tenir si l'estimation dépasse le temps Hold Time Option Seconds.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-hold_time_option_callback_filename">
|
|
<BR>
|
|
<B>Hold Time Option Callback Filename - </B> Si Hold Time Option est fixé à CALLERID_CALLBACK, cette invite est le nom du fichier qui se joue avant l'appel est enregistré comme un nouveau chef de file de la liste ID spécifiées ci-dessous si l'estimation est supérieure à la fois tenir Hold Time Option Seconds.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-hold_time_option_callback_list_id">
|
|
<BR>
|
|
<B>Hold Time Option Rappel Liste ID - </B> Si Hold Time Option est fixé à CALLERID_CALLBACK, il s'agit de la liste de ID de l'appel est ajouté à un nouveau chef de file, si les prévisions de tenir le temps dépasse le Hold Time Option Seconds.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-agent_alert_exten">
|
|
<BR>
|
|
<B>Prolongation alerte d'agent - la prolongation à envoyer dans lasession d'agent pour annoncer qu'un appel vient à l'agent. Cetteprolongation devrait avoir un playback d'un dossier audio. Ne pasemployer cette fonction a placé ceci à X. Default est X.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-agent_alert_delay">
|
|
<BR>
|
|
<B>L'alerte d'agent Retardent - la durée en millisecondesd'attendre avant d'envoyer l'appel à l'agent après avoir jouédessus la prolongation alerte d'agent. Le défaut est 1000.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-default_xfer_group">
|
|
<BR>
|
|
<B>Groupe de transfert de défaut - ce champ est le Dans-Groupe dedéfaut qui sera automatiquement choisi quand l'agent va à l'armaturede transférer-conférence dans leur interface d'agent.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-ingroup_recording_override">
|
|
<BR>
|
|
<B>En groupe enregistrement Override - </B> Ce champ permet d'primordial de la campagne d'appel enregistrement. Ce réglage peut être modifié par l'enregistrement de l'emporter sur la mise en vicidial_user. HANDICAPES ne remplacent pas la campagne de l'enregistrement programmé. JAMAIS désactive l'enregistrement sur le client. OnDemand est l'option par défaut et permet à l'agent de début et de fin d'enregistrement en tant que de besoin. ALLCALLS va commencer l'enregistrement sur le client chaque fois qu'un appel est adressé à un agent. ALLFORCE va commencer l'enregistrement sur le client chaque fois qu'un appel est adressé à un agent qui l'agent aucune option pour arrêter l'enregistrement.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-ingroup_rec_filename">
|
|
<BR>
|
|
<B>En groupe d'enregistrement du fichier - </B> Ce champ peut passer outre à la campagne d'enregistrement nommage des fichiers système, sauf si elle est définie à AUCUNE. Les variables sont autorisés CAMPAGNE CUSTPHONE FULLDATE TINYDATE EPOCH AGENT. La valeur par défaut est FULLDATE_AGENT et se présente comme suit 20051020-103108_6666. Un autre exemple est CAMPAIGN_TINYDATE_CUSTPHONE qui se présente comme suit TESTCAMP_51020103108_3125551212. 50 char max. La valeur par défaut est NON.
|
|
|
|
<?
|
|
if ($SSqc_features_active > 0)
|
|
{
|
|
?>
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-qc_enabled">
|
|
<BR>
|
|
<B>QC Activé - </B> Mise en ce domaine permet à Y pour l'agent de contrôle de la qualité caractéristiques au travail. La valeur par défaut est N.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-qc_statuses">
|
|
<BR>
|
|
<B>Statuts QC - </B> Cette zone est l'endroit où vous choisissez ce qui entraîne des statuts doit être dépassé par le système de QC. Placez un contrôle à côté de l'état que vous voulez examiner QC.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-qc_shift_id">
|
|
<BR>
|
|
<B>QC Shift - </B> Il s'agit du changement de calendrier servant à tirer d'un QC inbound_group. Les jours de la semaine sont ignorées pour ces fonctions.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-qc_get_record_launch">
|
|
<BR>
|
|
<B>Record QC Get lancement </B> Cela permet à l'une des actions suivantes peut être déclenché sur un agent QC recevoir un nouveau record.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-qc_show_recording">
|
|
<BR>
|
|
<B>QC Voir Recording - </B> qui permet un enregistrement qui mai être liée à la QC record à afficher dans le QC agent écran.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-qc_web_form_address">
|
|
<BR>
|
|
<B>QC WebForm Adresse - </B> Il s'agit de l'adresse du site web d'un agent QC pouvez aller à en cliquant sur le lien dans la WebForm QC écran.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-qc_script">
|
|
<BR>
|
|
<B>Script QC - </B> C'est le script qui peut être utilisé par les agents QC SCRIPT dans l'onglet de la QC écran.
|
|
<?
|
|
}
|
|
?>
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-hold_recall_xfer_group">
|
|
<BR>
|
|
<B>Hold Recall transfert In-Group - </B> Si un client demande à ce groupe en plus d'une fois et cela n'est pas mis à AUCUNE, puis l'appel sera automatiquement envoyé à l'En-groupe sélectionné dans ce domaine . La valeur par défaut est NON.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-no_delay_call_route">
|
|
<BR>
|
|
<B>Appel Route n ° Delay - </B> Mettre ce paramètre à Y va effacer tous les temps d'attente et audio et de tenter d'envoyer l'appel droit à un agent. T-elle pas sur le message d'accueil ou en attente rapide des paramètres. La valeur par défaut est N.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-answer_sec_pct_rt_stat_one">
|
|
<BR>
|
|
<B>Stats Pourcentage des appels dans les X secondes - </B> Ce domaine vous permet de définir le nombre de secondes que le tenir en temps réel des statistiques d'affichage à utiliser pour calculer le pourcentage d'appels qui ont répondu ont répondu dans X le nombre de secondes en attente.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_groups-default_group_alias">
|
|
<BR>
|
|
<B>Groupe par défaut Alias - </B> Si vous avez permis à Groupe Alias pour la campagne que l'agent est entré dans ce groupe est l'alias qui est sélectionnée par défaut sur la première d'un appel provenant de l'arrivée de ce groupe quand l'agent choisit de utiliser un alias pour un groupe émetteur manuel appel. La valeur par défaut est None ou vide.
|
|
|
|
|
|
|
|
|
|
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>VICIDIAL_ENTRANT_DIDS TABLE</FONT></B><BR><BR>
|
|
<BR>
|
|
<A NAME="vicidial_inbound_dids-did_pattern">
|
|
<BR>
|
|
<B>DID Extension - </B> C'est le nombre, d'extension ou de DID qui déclenchent cette entrée et que vous la route à l'intérieur du système en utilisant cette fonction. Il est réservé par défaut DID que vous pouvez utiliser ce qui est juste le mot-par défaut, sans les tirets, qui allos d'envoyer tout appel qui ne correspond pas à tout les autres modèles de la valeur par défaut de DID.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_dids-did_description">
|
|
<BR>
|
|
<B>Description DID - </B> Il s'agit de la description de l'entrée de routage DID.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_dids-did_active">
|
|
<BR>
|
|
<B>DID Active - </B> C'est le domaine où vous définissez la DID à l'entrée active ou non. La valeur par défaut est Y.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_dids-did_route">
|
|
<BR>
|
|
<B>Route DID - </B> Ce type de route que vous avez mis le DID à utiliser. EXTEN va envoyer des appels à l'extension en dessous, à la messagerie vocale vous envoyer des appels directement à la boîte vocale en dessous, AGENT envoie les appels vers un agent VICIDIAL s'ils sont identifiés, PHONE enverra l'appel d'un téléphone d'entrée, sélectionnez ci-dessous, vous IN_GROUP envoyer des appels directement à l'arrivée du groupe spécifié. La valeur par défaut est EXTEN.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_dids-extension">
|
|
<BR>
|
|
<B>Extension - </B> Si EXTEN est sélectionné en tant que DID route, alors c'est le dialplan extension qui appelle sera envoyée. La valeur par défaut est 9998811112, pas de service.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_dids-exten_context">
|
|
<BR>
|
|
<B>Extension Contexte - </B> Si EXTEN est sélectionné en tant que DID route, alors c'est le contexte qui dialplan demande sera envoyée. Par défaut est la valeur par défaut.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_dids-voicemail_ext">
|
|
<BR>
|
|
<B>Boite vocale - </B> Si messagerie vocale est sélectionné en tant que DID Route, c'est la boîte vocale qui demande sera envoyée. La valeur par défaut est vide.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_dids-phone">
|
|
<BR>
|
|
<B>Téléphone Extension - </B> si le téléphone est sélectionné comme DID Route, cette extension est le téléphone que les appels seront envoyées.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_dids-server_ip">
|
|
<BR>
|
|
<B>Téléphone IP du serveur - </B> si le téléphone est sélectionné comme DID route, alors c'est l'IP du serveur pour le téléphone d'extension que les appels seront envoyés à.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_dids-user">
|
|
<BR>
|
|
<B>Utilisateur Agent - </B> si l'agent est sélectionné en tant que DID route, alors c'est le VICIDIAL l'agent qui demande sera envoyée à.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_dids-user_unavailable_action">
|
|
<BR>
|
|
<B>Utilisateur Unavailable Action - </B> si l'agent est sélectionné en tant que DID route, et l'utilisateur n'est pas connecté ou disponible, c'est la route que les appels se.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_dids-user_route_settings_ingroup">
|
|
<BR>
|
|
<B>Utilisateur Settings En Route-Group - </B> si l'agent est sélectionné en tant que DID route, alors c'est le groupe In-qui sera utilisé pour la file d'attente de paramètres que l'appelant est en attente d'être envoyé à l'agent. La valeur par défaut est AGENTDIRECT.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_dids-group_id">
|
|
<BR>
|
|
<B>In-Groupe ID - </B> Si IN_GROUP est sélectionné en tant que DID route, alors c'est le groupe qui en demande sera envoyée à.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_dids-call_handle_method">
|
|
<BR>
|
|
<B>In-Call Groupe Handle Method - </B> Si IN_GROUP est sélectionné en tant que DID route, alors c'est la méthode de traitement des appels de ces appels. Base de données ajouter un nouveau record à conduire tous les appels à l'aide du CallerID comme le numéro de téléphone, CIDLOOKUP vais essayer de rechercher le numéro de téléphone par le CallerID dans l'ensemble du système, CIDLOOKUPRL sera attampt pour rechercher le numéro de téléphone par le CallerID précisé que dans une seule liste , CIDLOOKUPRC sera attampt de rechercher le numéro de téléphone par le CallerID dans l'ensemble des listes qui font partie de la campagne spécifié, plus proche est indiquée pour VICIDIAL Closer appels, ANI va ajouter un nouveau record à conduire tous les appels à l'aide du ANI que le numéro de téléphone, ANILOOKUP va tenter de rechercher le numéro de téléphone de l'ANI dans l'ensemble du système, ANILOOKUPRL sera attampt de rechercher le numéro de téléphone par l'ANI précisé que dans une seule liste, XDIGITID amènera l'appelant pour un X chiffres avant que l'appel sera mis en la file d'attente. La valeur par défaut est BDCE.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_dids-agent_search_method">
|
|
<BR>
|
|
<B>In-Groupe Agent Méthode de recherche - </B> Si IN_GROUP est sélectionné en tant que DID route, alors c'est l'agent de recherche à la méthode de l'arrivée du groupe, LO est à équilibrage de charge-débordement et d'essayer d'envoyer l'appel à un agent sur le serveur local avant d'essayer de l'envoyer à un agent sur un autre serveur, LB est à équilibrage de charge et de tenter d'envoyer l'appel à l'agent, quel que soit elles sont sur le serveur, le serveur SO est seulement et que d'essayer d'envoyer des appels vers les agents sur le serveur que l'appel est venu dans le. La valeur par défaut est LB.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_dids-list_id">
|
|
<BR>
|
|
<B>Dans la liste Groupe ID - </B> Si IN_GROUP est sélectionné en tant que DID Route, c'est la liste qui mène mai ID être recherchées à travers et que le conduit sera inséré dans le cas échéant.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_dids-campaign_id">
|
|
<BR>
|
|
<B>En-groupe ID de la campagne - </B> Si IN_GROUP est sélectionné en tant que DID route, alors c'est le ID de la campagne que mène mai être recherchée dans le cas de la méthode est de faire appel CIDLOOKUPRC.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_inbound_dids-phone_code">
|
|
<BR>
|
|
<B>En-groupe Téléphone Code - </B> Si IN_GROUP est sélectionné en tant que DID route, alors ce téléphone est le code utilisé si un nouveau chef de file est créé.
|
|
|
|
|
|
|
|
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>VICIDIAL_REMOTE_AGENTS TABLE</FONT></B><BR><BR>
|
|
<A NAME="vicidial_remote_agents-user_start">
|
|
<BR>
|
|
<B>ID utilisateur de départ -</B> C'est l'ID utilisateur de départ qui est utilisé quand un entrée d'agent distant est inserée dans le système. Si le nombre de lignes est plus grand que 1, ce nombre est incrementé de un pour chaque ligne qui a une entrée. Assurez vous d'avoir créer un nouveau compte utilisateur VICIDIAL avec un niveau de 4 ou plus si vous voulez qu'il puisse utiliser la page vdremote.php pour pour un accès web distant pour ce compte.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_remote_agents-number_of_lines">
|
|
<BR>
|
|
<B>Numéro de lignes -</B> Cela définie combien d'entrées d'agent distants le système crée, et détermine combien de lignes peuvent être envoyées sans soucis au numéro ci-dessus.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_remote_agents-server_ip">
|
|
<BR>
|
|
<B>IP du serveur -</B> Une entrée d'agent distant est seulement valide pour un serveur spécifique, c'est ici que vous sélectionnez quel serveur vous voulez.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_remote_agents-conf_exten">
|
|
<BR>
|
|
<B>Extension externe -</B> C'est le numéro vers lequel vous voulez faire suivre l'appel. Assurez vous que c'est un numéro du dial plan et si vous avez besoin d'un 9 au début mettez le ici. Testez en appelant ce numéro depuis un téléphone du système.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_remote_agents-status">
|
|
<BR>
|
|
<B>Etat -</B> C'est ici que vous activez ou desacivez l'agent distant. Dès que l'agent est actif le systeme permet que des appels puissent lui être envoyés. Cela peu prendre plus de 30 secondes à partir du moment où vous avez desactivé l'agent jusqu'à l'arrêt de la réception des appels.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_remote_agents-campaign_id">
|
|
<BR>
|
|
<B>Campagne -</B> C'est ici que vous choisissez la campagne dans laquelle ces agents distants ce connecteront. Les appels entrants ont besoin d'une campagne de type CLOSER et de selectionner les campagnes entrantes ci-dessus dans laquelle vous voulez recevoir des appels.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_remote_agents-closer_campaigns">
|
|
<BR>
|
|
<B>Groupes entrants -</B> C'est ici que vous selectionnez les groupes entrants depuis lesquels vous voulez recevoir des appels si vous avez selectionné une campagne de type CLOSER.
|
|
|
|
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>VICIDIAL_CAMPAIGN_LISTES</FONT></B><BR><BR>
|
|
<A NAME="vicidial_campaign_lists">
|
|
<BR>
|
|
<B>Les listes de cette campagne sont énumérées ici, leur activité est dénotée par le Y ou N et vous pouvez aller à l'écran de la liste en cliquant sur l'ID de la liste dans la première colonne.</B>
|
|
|
|
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>VICIDIAL_CAMPAIGN_STATUSES TABLE</FONT></B><BR><BR>
|
|
<A NAME="vicidial_campaign_statuses">
|
|
<BR>
|
|
<B>En utilisant des statuts de campagne personnalisés, vous pouvez utiliser des statuts qui n'existent que pour une campagne spécifique. Le statut doit contenir entre 1 et 8 caractères , la description entre 2 et 30 et Selectionnable définit si il apparaît dans VICIDIAL comme disposition. Human_answered le champ est employé en calculant le pourcentage debaisse, ou le taux d'abandon. L'arrangement human_answered à Yemploiera ce statut en comptant les appels humain-répondus. L'option de catégorie vous permet de grouper plusieurs statuts dansun catogy qui peut être employé pour l'analyse statistique.</B>
|
|
|
|
|
|
|
|
<?
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
?>
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>VICIDIAL_CAMPAIGN_HOTKEYS TABLE</FONT></B><BR><BR>
|
|
<A NAME="vicidial_campaign_hotkeys">
|
|
<BR>
|
|
<B>En utilisant des raccourcis clavier personnalisés, les agents utilisant le client web VICIDIAL peuvent raccrocher et statuer les appels juste en pressant une seule touche du clavier.</B> Il y a deux raccourcis claviers que vous pouvez utiliser en même temps que l'appel du numéro alternatif, ALTPH2 - Alternate Phone Hot Dial et ADDR3 - Adresse3 qui permet à un agent d'utiliser un raccourci pour raccocher l'appel, rester sur la fiche et appeler un autre numéro de la fiche.
|
|
|
|
|
|
|
|
|
|
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>VICIDIAL_LEAD_RECYCLE TABLE</FONT></B><BR><BR>
|
|
<A NAME="vicidial_lead_recycle">
|
|
<BR>
|
|
<B>Through the use of lead recycling, you can call specific statuses of leads again at a specified interval without resetting the entire list. Lead recycling is campaign-specific and does not have to be a selected dialable status in your campaign. The attempt delay field is the number of seconds until the lead can be placed back in the hopper, this number must be at least 120 seconds. The attempt maximum field is the maximum number of times that a lead of this status can be attempted before the list needs to be reset, this number can be from 1 to 10. You can activate and deactivate a lead recycle entry with the provided links.</B>
|
|
|
|
|
|
|
|
|
|
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>STATUTS VICIDIAL DE L'APPEL AUTOMATIQUE DU NUMERO ALTERNATIF</FONT></B><BR><BR>
|
|
<A NAME="vicidial_auto_alt_dial_statuses">
|
|
<BR>
|
|
<B>Si le champ Appel automatique du numéro alternatif est défini, alors les fiches diposées sous ces statuts d'appels automatiques du numéro alternatif auront leurs champs numéro alternatif et/ou adresse3 appelés après n'importe quel statut de non-réponse.</B>
|
|
|
|
<?
|
|
}
|
|
?>
|
|
|
|
|
|
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>VICIDIAL CODES PAUSE DES AGENTS</FONT></B><BR><BR>
|
|
<A NAME="vicidial_pause_codes">
|
|
<BR>
|
|
<B>Si les codes de pause des agents sont activés alors les agents pourront en selectionner un parmi ces codes quand ils cliquent sur le bouton PAUSE. Cette donnée est ensuite stockée dans les log sur les agents vicidial. Un code de pause doit contenir uniquement des lettres et des chiffres et doit contenir moins de 7 caractères. Le nom du code ne doit pas contenir plus de 30 caractères.</B>
|
|
|
|
|
|
|
|
|
|
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>VICIDIAL_USER_GROUPS TABLE</FONT></B><BR><BR>
|
|
<A NAME="vicidial_user_groups-user_group">
|
|
<BR>
|
|
<B>Groupe d'utilisateurs -</B> C'est le nom court d'un groupe d'utilisateurs Vicidial, n'utilisez ni espaces ni ponctuation pour ce champ. Max 20 caractère min 2.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_user_groups-group_name">
|
|
<BR>
|
|
<B>Nom du Groupe -</B> C'est la description du groupe d'utilisateurs vicidial. Max 40 caractères.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_user_groups-forced_timeclock_login">
|
|
<BR>
|
|
<B>Force timeclock Login - </B> Cette option vous permet de ne pas laisser un agent vous connecter à l'interface agent VICIDIAL si elles ne sont pas enregistrés dans le timeclock. La valeur par défaut est N. Il est possible d'exonérer les utilisateurs admin, le niveau 8 et 9.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_user_groups-shift_enforcement">
|
|
<BR>
|
|
<B>Shift exécution -</B> Ce paramètre vous permet de restreindre l'agent de connexion sur la base des changements qui ont été sélectionnés ci-dessous. OFF ne fera pas appliquer à tous les changements. START ne faire respecter les temps de connexion, mais n'aura pas d'incidence sur un agent qui est en cours d'exécution sur leurs heures de travail si elles sont déjà logged in ALL appliquent passer l'heure de début et se connecter à un agent, après, ils courent sur la fin de leur quart de temps. La valeur par défaut est OFF.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_user_groups-group_shifts">
|
|
<BR>
|
|
<B>Groupe changements - </B> Il s'agit d'un choix de la liste des changements qui peuvent restreindre l'accès des agents à temps sur le système.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_user_groups-allowed_campaigns">
|
|
<BR>
|
|
<B>Campagnes autorisés -</B> C'est une liste de campagnes dans lesquelles les utilisateurs de ce groupes pourront se connecter. L'option TOUTES LES CAMPAGNES autorise les utilisateurs de ce groupe à voir et se connecter à toutes les campagnes sur le système.
|
|
|
|
<?
|
|
if ($SSqc_features_active > 0)
|
|
{
|
|
?>
|
|
<BR>
|
|
<A NAME="vicidial_user_groups-qc_allowed_campaigns">
|
|
<BR>
|
|
<B>QC permis Campagnes - </B> Il s'agit d'un choix de la liste des campagnes où les membres de ce groupe d'utilisateurs seront en mesure de QC. Le ALL-CAMPAGNES option permet aux utilisateurs de ce groupe de Québec une campagne sur le système.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_user_groups-qc_allowed_inbound_groups">
|
|
<BR>
|
|
<B>QC permis l'arrivée des groupes - </B> Il s'agit d'un choix de la liste des groupes dont l'arrivée des membres de ce groupe d'utilisateurs seront en mesure de QC. Le ALL-GROUPES option permet aux utilisateurs dans ce groupe d'utilisateurs QC arrivée du groupe sur tout le système.
|
|
<?
|
|
}
|
|
?>
|
|
|
|
|
|
|
|
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>VICIDIAL_SCRIPTS TABLE</FONT></B><BR><BR>
|
|
<A NAME="vicidial_scripts-script_id">
|
|
<BR>
|
|
<B>Id du script -</B> C'est le nom court d'un Script Vicidal. Il doit être unique. Ne pas utiliser d'espace ni de ponctuation pour ce champ. Doit être composé de 2 à 10 caractères.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_scripts-script_name">
|
|
<B>Nom du ccript -</B> C'est le titre du script Vicidial. C'est une courte description du script. Maximum 50 caractères, minimum 2. Il ne doit pas avoir d'espace ou de ponctuation de quelque sorte dans ce champ.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_scripts-script_comments">
|
|
<B>Commentaires du script -</B> C'est ici que vous entrez un commentaire pour le script Vicidial comme -changed to free upgrade on Sept 23- Max 255 caractères , min 2 caractères.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_scripts-script_text">
|
|
<B>Texte du script -</B> This is where you place the content of a Vicidial Script. Minimum of 2 characters. You can have customer information be auto-populated in this script using "--A--field--B--" where field is one of the following fieldnames: vendor_lead_code, source_id, list_id, gmt_offset_now, called_since_last_reset, 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, lead_id, campaign, phone_login, group, channel_group, SQLdate, epoch, uniqueid, customer_zap_channel, server_ip, SIPexten, session_id. For example, this sentence would print the persons name in it----<BR><BR> Hello, can I speak with --A--first_name--B-- --A--last_name--B-- please? Well hello --A--title--B-- --A--last_name--B-- how are you today?<BR><BR> This would read----<BR><BR>Hello, can I speak with John Doe please? Well hello Mr. Doe how are you today?<BR><BR> You can also use an iframe to load a separate window within the SCRIPT tab, here is an example with prepopulated variables:
|
|
|
|
<DIV style="height:200px;width:400px;background:white;overflow:scroll;font-size:12px;font-family:sans-serif;" id=iframe_example>
|
|
<iframe src="http://astguiclient.sf.net/test_VICIDIAL_output.php?lead_id=--A--lead_id--B--&vendor_id=--A--vendor_lead_code--B--&list_id=--A--list_id--B--&gmt_offset_now=--A--gmt_offset_now--B--&phone_code=--A--phone_code--B--&phone_number=--A--phone_number--B--&title=--A--title--B--&first_name=--A--first_name--B--&middle_initial=--A--middle_initial--B--&last_name=--A--last_name--B--&address1=--A--address1--B--&address2=--A--address2--B--&address3=--A--address3--B--&city=--A--city--B--&state=--A--state--B--&province=--A--province--B--&postal_code=--A--postal_code--B--&country_code=--A--country_code--B--&gender=--A--gender--B--&date_of_birth=--A--date_of_birth--B--&alt_phone=--A--alt_phone--B--&email=--A--email--B--&security_phrase=--A--security_phrase--B--&comments=--A--comments--B--&user=--A--user--B--&campaign=--A--campaign--B--&phone_login=--A--phone_login--B--&fronter=--A--fronter--B--&closer=--A--user--B--&group=--A--group--B--&channel_group=--A--group--B--&SQLdate=--A--SQLdate--B--&epoch=--A--epoch--B--&uniqueid=--A--uniqueid--B--&customer_zap_channel=--A--customer_zap_channel--B--&server_ip=--A--server_ip--B--&SIPexten=--A--SIPexten--B--&session_id=--A--session_id--B--&phone=--A--phone--B--" style="width:580;height:290;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="460" height="290" STYLE="z-index:17">
|
|
</iframe>
|
|
</DIV>
|
|
|
|
<BR>
|
|
<A NAME="vicidial_scripts-active">
|
|
<BR>
|
|
<B>Activé -</B> Cela determine si ce script peut être selectionné pour être utilisé dans une campagne.
|
|
|
|
|
|
|
|
|
|
|
|
<?
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
?>
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>VICIDIAL_LEAD_FILTRES TABLE</FONT></B><BR><BR>
|
|
<A NAME="vicidial_lead_filters-lead_filter_id">
|
|
<BR>
|
|
<B>ID du Filtre -</B> C'est le nom court du filtre de fiches Vicidial. Il doit être unique. N'utilisez ni espace ni ponctuation. Max 10 caractères min 2.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_lead_filters-lead_filter_name">
|
|
<B>Nom du Filtre -</B> C'est un nom plus descrtiptif du filtre. C'est un court resumé du filtre. Max 30 caractères Min 2.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_lead_filters-lead_filter_comments">
|
|
<B>Commentaire du filtre -</B> C'est ici que vous placez les commmentaire du filtre vicidial comme -Appel toutes les fiches de Californie- max 255 characters, min 2.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_lead_filters-lead_filter_sql">
|
|
<B>Filtre SQL -</B> C'est ici que vous mettez le fragment de requête SQL que vous voulez utiliser pour filtrer. Ne commencez pas ni ne finissez pas par AND, cela est automatiquement ajouté par le script cron. Exemple : called_count > 4 and called_count < 8 .
|
|
<?
|
|
}
|
|
?>
|
|
|
|
|
|
|
|
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>VICIDIAL_PERIODES D'APPELS TABLE</FONT></B><BR><BR>
|
|
<A NAME="vicidial_call_times-call_time_id">
|
|
<BR>
|
|
<B>Identifiant de la période d'appel -</B> C'est le nom court de la période d'appel de VICIDIAL. Il doit être unique. N'utilisez pas d'espace ou de ponctuation. 10 caractères maximum et 2 minimum.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_call_times-call_time_name">
|
|
<B>Nom de la période d'appel -</B> C'est un nom plus descriptif de la période d'appel. Une courte description. 30 caractères maximum et 2 minimum.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_call_times-call_time_comments">
|
|
<B>Commentaires de la période d'appel -</B> Vous pouvez y placer des commentaires sur la période d'appel de Vicidial comme-de 10h00 à 16h00 avec des restrictions-. Max 255 caractères.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_call_times-ct_default_start">
|
|
<B>Heures de début et de fin par défaut -</B> Ce sont les heures par défaut pendant lesquelles un appel est autorisé si l'heure de début de day-of-the-week n'est pas définie. 0 est minuit. Pour interdir complétement les appels mettez 2400 et mettez 2400 à l'heure de fin par défaut. Pour autoriser les appels 24h/24, remplissez les champs avec 0 pour le début et 2400 pour la fin.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_call_times-ct_sunday_start">
|
|
<B>Heures de début et de fin pour un jour -</B> Ce sont les heures de début et de fin personnalisés pour un jour. Les mêmes règles s'appliquent qu'aux heures de début et de fin par défaut.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_call_times-ct_state_call_times">
|
|
<B>Définitions des états des périodes d'appel -<\/B> C'est la liste des définitions spécifiques des périodes d'appels des états qui sont suivies dans cette définition de période d'appels.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_call_times-state_call_time_state">
|
|
<B>State Call Time State -<\/B> Ce sont les deux lettres code pour l'état auquel cette définition de période d'appels correspond. Pour que cela prenne effet, la période d'appel locale qui est définie dans la campagne doit avoir cette enregistrement d'état de période d'appel aussi bien que toutes les fiches ayant ces deux lettre codes d'état.
|
|
|
|
|
|
|
|
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>VICIDIAL_SHIFTS TABLE</FONT></B><BR><BR>
|
|
<A NAME="vicidial_shifts-shift_id">
|
|
<BR>
|
|
<B>Shift ID - </B> Il s'agit du nom court d'un VICIDIAL Shift Définition. Cela doit être un identifiant unique. Ne pas utiliser les espaces ou la ponctuation dans ce champ. max 20 caractères, un minimum de 2 caractères.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_shifts-shift_name">
|
|
<B>Nom Shift - </B> Il s'agit d'un nom descriptif de la Maj Définition. Ceci est un bref résumé de la définition Maj. max 50 caractères, un minimum de 2 caractères.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_shifts-shift_start_time">
|
|
<B>Start Time Shift - </B> Il est temps que la campagne commence à passer. Ne doivent être des chiffres, 9:30 AM serait 0930 et 5:00 PM serait 1700.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_shifts-shift_length">
|
|
<B>Longueur Shift - </B> Il est temps en heures et minutes que dure la campagne de changement. 8 heures seraient 08h00 et 7 heures et 30 minutes serait 07:30.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_shifts-shift_weekdays">
|
|
<B>Shift Weekdays - </B> Dans cette section, vous devriez choisir le jour de la semaine que ce changement est active.
|
|
|
|
|
|
|
|
<?
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
?>
|
|
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>FONCTIONNALITES DU CHARGEUR DE FICHES DE VICIDIAL</FONT></B><BR><BR>
|
|
<A NAME="vicidial_list_loader">
|
|
<BR>
|
|
Le chargeur enchaînement-basé de base de fil de VICIDIAL est conçusimplement pour prendre un dossier de fil - jusqu'à 8MB dans lataille qu'est l'étiquette ou la pipe délimitée et pour le chargerdans la table de vicidial_list. Le chargeur de fil tient compte duchamp choisissant et de TXT- le texte tout simplement, les valeursséparées par virgule de CSV- et les XLS- excellent des formats dedossier. Le chargeur de fil ne fait pas la validation de données,mais elle vous permet de vérifier les reproductions en soi, dans lacampagne ou dans le système entier. En outre, assurez-vous que vousavez créé la liste que ces fils doivent être dessous de sorte quevous puissiez les employer. Voici une liste des champs dans leurcommande appropriée pour les dossiers de fil :
|
|
<OL>
|
|
<LI>Code vendeur de la fiche - montre dans le champ dID du vendeur de l'interface graphique
|
|
<LI>Code source - usage interne uniquement pour les administrateurs et les administrateurs de la base de données
|
|
<LI>Identifiant de la liste - le numéro de la liste dans laquelle seront ces fiches
|
|
<LI>Code du téléphone - le préfixe pour le numéro de téléphone - 1 pour les USA, 0144 pour le Royaume-Uni, 01161 pour l'Australie, etc
|
|
<LI>Numéro de téléphone - doit contenir au moins 8 chiffres
|
|
<LI>Titre - titre du client - Mr. Mme. Mlle., etc...
|
|
<LI>Nom
|
|
<LI>Initiales
|
|
<LI>Prénom
|
|
<LI>Adresse Ligne 1
|
|
<LI>Adresse Ligne 2
|
|
<LI>Adresse Ligne 3
|
|
<LI>Ville
|
|
<LI>Etat - Limité à 2 caractères
|
|
<LI>Province
|
|
<LI>Code Postal
|
|
<LI>Pays
|
|
<LI>Sexe
|
|
<LI>Date de naissance
|
|
<LI>Numero de téléphone alternatif
|
|
<LI>Adresse mail
|
|
<LI>Phrase de sécurité
|
|
<LI>Commentaires
|
|
</OL>
|
|
|
|
<BR>NOTES : La fonctionnalité de chargeur de fil d'exceler est permisepar une série de manuscrits de Perl et doit avoir un dossier en placecorrectement configuré de /etc/astguiclient.conf sur le web server.En outre, des modules d'un Perl de couples doivent être chargés pourelle pour travailler aussi bien - oLE-Storage_Lite-Storage_Lite et leBilan-ParseExcel. Vous pouvez vérifier les erreurs d'exécution dansces derniers en regardant votre dossier d'error_log d'apache. Enoutre, pour des contrôles de duplication contre le gampaignénumère, la liste qui a de nouveaux fils entrer dans lui doit êtrecréée dans le système avant que vous commenciez à charger lesfils.
|
|
|
|
|
|
|
|
|
|
<BR><BR><BR><BR>
|
|
<?
|
|
}
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
<B><FONT SIZE=3>TABLE DES TELEPHONES</FONT></B><BR><BR>
|
|
<A NAME="phones-extension">
|
|
<BR>
|
|
<B>Extension du téléphone -</B> C'est dans ce champ qu'il faut mettre le nom du téléphone comme il apparait dans Asterisk sans mettre le protocole ou le slash du début. Par exemple: pour le téléphone SIP SIP/test101 l'extension sera test101. De même pour les téléphones IAX2 assurez vous d'utiliser le nom complet du téléphone : pour IAX2/IAXphone1@IAXphone1 ce sera IAXphone1@IAXphone1. Pour les téléphones ZAP assurez vous de mettre le channel complet: pour Zap/25-1 ce sera 25-1. De plus, assurez vous d'avoir mis le bon protocole en dessous pour votre téléphone.
|
|
|
|
<BR>
|
|
<A NAME="phones-dialplan_number">
|
|
<BR>
|
|
<B>Numéro dans le Dial Plan -</B> Ce champ est pour le numéro utilisé pour appeler ce téléphone. Ce numéro est défini dans le fichier extensions.conf du serveur Asterisk
|
|
|
|
<BR>
|
|
<A NAME="phones-voicemail_id">
|
|
<BR>
|
|
<B>Boîte vocale -</B> Ce champ est pour la boîte vocale vers laquelle iront les messages pour l'utilisateur de ce téléphone. Il est utilisé pour vérifier la présence de messages et pour permettre à l'utilisateur d'utiliser le bouton VOICEMAIL dans l'application astGUIclient.
|
|
|
|
<BR>
|
|
<A NAME="phones-outbound_cid">
|
|
<BR>
|
|
<B>CallerID sortant -</B> Ce champ est celui dans lequel vous entrez le numéro callerID que vous souhaitez voir apparaître lors d'appels externes passés depuis le client web astguiclient. Cela ne fonctionne pas avec RBS, non-PRI, T1/E1s.
|
|
|
|
<BR>
|
|
<A NAME="phones-phone_ip">
|
|
<BR>
|
|
<B>Adresse IP du téléphone -</B> Ce champ est pour l'adresse IP du téléphone si c'est un téléphone VOIP. Ce champ est optionnel
|
|
|
|
<BR>
|
|
<A NAME="phones-computer_ip">
|
|
<BR>
|
|
<B>Adresse IP de l'ordinateur -</B> Ce champ est pour l'adresse IP de l'ordinateur. C'est un champ optionel
|
|
|
|
<BR>
|
|
<A NAME="phones-server_ip">
|
|
<BR>
|
|
<B>IP du serveur -</B> Ce champ est celui où vous choisissez le serveur sur lequel est activé le téléphone.
|
|
|
|
<BR>
|
|
<A NAME="phones-login">
|
|
<BR>
|
|
<B>Login -</B> login utilisé par l'utilisateur du téléphone pour se connecter aux applications clientes.
|
|
|
|
<BR>
|
|
<A NAME="phones-pass">
|
|
<BR>
|
|
<B>Mot de passe -</B> Le mot de passe utilisé par l'utilisateur du téléphone pour se connecter aux applications clientes.
|
|
|
|
<BR>
|
|
<A NAME="phones-status">
|
|
<BR>
|
|
<B>Statut -</B> C'est le statut du téléphone dans le système, ACTIVE et ADMIN autorisent les clients graphiques à fonctionner. ADMIN autorise l'acces à l'administration de ce site. Tous les autres statuts n'autorisent pas l'accès aux clients graphiques ou à l'administration.
|
|
|
|
<BR>
|
|
<A NAME="phones-active">
|
|
<BR>
|
|
<B>Compte actif -</B> Indique si le téléphone est actif pour le mettre dans la liste dans le client GUI.
|
|
|
|
<BR>
|
|
<A NAME="phones-phone_type">
|
|
<BR>
|
|
<B>Type de téléphone -</B> Seuelement pour les notes administratives.
|
|
|
|
<BR>
|
|
<A NAME="phones-fullname">
|
|
<BR>
|
|
<B>Nom complet -</B> Utilisé par le client GUI dans la liste des téléphones actifs.
|
|
|
|
<BR>
|
|
<A NAME="phones-company">
|
|
<BR>
|
|
<B>Compagnie -</B> Seulement pour les notes administratives.
|
|
|
|
<BR>
|
|
<A NAME="phones-picture">
|
|
<BR>
|
|
<B>Image -</B> Pas encore implémenté.
|
|
|
|
<BR>
|
|
<A NAME="phones-messages">
|
|
<BR>
|
|
<B>Nouveaux messages -</B> Nombre de nouveaux messages vocaux pour ce téléphone sur le serveur Asterisk.
|
|
|
|
<BR>
|
|
<A NAME="phones-old_messages">
|
|
<BR>
|
|
<B>Anciens messages -</B> Nombre d'anciens messages vocaux pour ce téléphone sur le serveur Asterisk.
|
|
|
|
<BR>
|
|
<A NAME="phones-protocol">
|
|
<BR>
|
|
<B>Protocole client -</B> Le protocole que le téléphone utilise pour se connecter au serveur Asterisk: SIP, IAX2, Zap. Il y a également EXTERNAL pour les numéros distants et les numérotation rapide que vous voulez lister comme téléphone.
|
|
|
|
<BR>
|
|
<A NAME="phones-local_gmt">
|
|
<BR>
|
|
<B>GMT local -</B> La différence entre l'heure de Greenwich, ou l'heure ZULU et le fuseau horaire du téléphone. NE PAS AJUSTER POUR LES DAYLIGHT SAVINGS TIME. Ceci est utilisé par les campagnes VICIDIAL pour afficher correctement l'heure et l'heure du client.
|
|
|
|
<BR>
|
|
<A NAME="phones-ASTmgrUSERNAME">
|
|
<BR>
|
|
<B>Login du manager -</B> C'est le login que les clients GUI de ce téléphones vont utiliser pour accéder à la base de données dans laquelle sont stockées les données du serveur.
|
|
|
|
<BR>
|
|
<A NAME="phones-ASTmgrSECRET">
|
|
<BR>
|
|
<B>Mot de passe du manager -</B> C'est le mot de passe que les clients GUI de ce téléphone vont utiliser pour accéder à la base de données dans laquelle sont stockées les données du serveur.
|
|
|
|
<BR>
|
|
<A NAME="phones-login_user">
|
|
<BR>
|
|
<B>Utilisateur par défaut de VICIDIAL -</B> Permet de remplir une valeur par défaut dans le champ utilisateur de VICIDIAL quand l'utilisateur de ce téléphone ouvre l'application client astVICIDIAL. Laisser vide pour ne pas l'utiliser.
|
|
|
|
<BR>
|
|
<A NAME="phones-login_pass">
|
|
<BR>
|
|
<B>Mot de passe par défaut de VICIDIAL -</B> Permet de remplir une valeur par défaut dans le champ mot de passe de VICIDIAL quand l'utilisateur de ce téléphone ouvre l'application client astVICIDIAL. Laisser vide pour ne pas l'utiliser.
|
|
|
|
<BR>
|
|
<A NAME="phones-login_campaign">
|
|
<BR>
|
|
<B>Campagne par défaut de VICIDIAL -</B> Permet de remplir une valeur par défaut dans le champ campagne de VICIDIAL quand l'utilisateur de ce téléphone ouvre l'application client astVICIDIAL. Laisser vide pour ne pas l'utiliser.
|
|
|
|
<BR>
|
|
<A NAME="phones-park_on_extension">
|
|
<BR>
|
|
<B>Exten de mise en attente -</B> C'est l'exten par défaut utilisé pour la mise en attente dans l'application client. Verifiez qu'il fonctionne avant de le changer.
|
|
|
|
<BR>
|
|
<A NAME="phones-conf_on_extension">
|
|
<BR>
|
|
<B>Exten pour mise en attente de la conférence -</B> C'est l'exten par défaut utilisé pour la mise en attente de la conférence dans l'appilcation client. Verifiez qu'il autre fonctionne avant de le changer.
|
|
|
|
<BR>
|
|
<A NAME="phones-VICIDIAL_park_on_extension">
|
|
<BR>
|
|
<B>Exten de mise en attente VICIDIAL -</B> C'est l'exten par defaut utilisé pour la mise en attente pour l'appilcation cliente VICIDIAL. Avant de changer ce champ verifiez que le nouveau fonctionne.
|
|
|
|
<BR>
|
|
<A NAME="phones-VICIDIAL_park_on_filename">
|
|
<BR>
|
|
<B>Fichier du parc VICIDIAL -</B> C'est le nom du fichier par defaut pour la mise en attente de VICIDIAL. Avant de le changer verifiez que le nouveau fonctionne. Limité a 10 caractères.
|
|
|
|
<BR>
|
|
<A NAME="phones-monitor_prefix">
|
|
<BR>
|
|
<B>Prefix de Moniteur -</B> C'est le prefix du monitoring des Channels Zap automatiquement contenu dans l'appication astguiclient. Ne changez qu'en accord avec les enregistrement des extensions ZapBarge.
|
|
|
|
<BR>
|
|
<A NAME="phones-recording_exten">
|
|
<BR>
|
|
<B>Exten d'enregistrement -</B> C'est l'extension dans le dial plan pour l'enregistrement utilisé pour enregistrer les conférences. C'est habituellement stoppé au bout d'une heure. Verifiez le fichier extentions.conf avant tout changement.
|
|
|
|
<BR>
|
|
<A NAME="phones-voicemail_exten">
|
|
<BR>
|
|
<B>Exten principal pour VMAIL -</B> C'est l'extension du dial plan utilisé pour verifier la boîte vocale. Verifiez le fichier extensions.conf avant tout changement.
|
|
|
|
<BR>
|
|
<A NAME="phones-voicemail_dump_exten">
|
|
<BR>
|
|
<B>VMAIL Dump Exten -</B> C'est le préfix du dial plan utilisé pour lancer des appels directement vers la boite vocale de l'utilisateur depuis un un appelen cours dans l'application astGUIclient app. Avant tout changement verifiez le fichier extensions.conf.
|
|
|
|
<BR>
|
|
<A NAME="phones-ext_context">
|
|
<BR>
|
|
<B>Extension du contexte -</B> C'est le contexte du dial plan que les téléphones utilisent principalement. Ce qui suppose que tous les numéros appelés par l'application cliente sont accessibles depuis ce contexte, assurez vous donc que ce contexte soit le plus large possible. Verifiez le fichier extension.conf avant toutes modifications.
|
|
|
|
<BR>
|
|
<A NAME="phones-dtmf_send_extension">
|
|
<BR>
|
|
<B>Cannal d'envoi de DTMF -</B> C'est le channel utilisé pour envoyer les sons DTMF dans les conférences meetme depuis l'application cliente. Verifiez le fichier extentions.conf avant tout changement.
|
|
|
|
<BR>
|
|
<A NAME="phones-call_out_number_group">
|
|
<BR>
|
|
<B>Groupe d'appel sortant -<\/B> C'est le groupe de canal hors duquel seront placés les appels passés depuis ce téléphone. Il y a des routines dans l'application cliente qui l'utilisent. Pour les cannal Zap vous devriez utiliser quelque chose comme Zap/g2, pour les trunks IAX vous devriez utiliser un préfixe entier IAX comme IAX2/VICItet1:secret@10.10.10.15:4569. Vérifiez les trunks dans le fichier extensions.conf, il est courant que vous avez défini comme variable globale TRUNK au début du fichier.
|
|
|
|
<BR>
|
|
<A NAME="phones-client_browser">
|
|
<BR>
|
|
<B>Emplacement du Navigateur -</B> C'est le chemin absolu pour le navigateur Mozilla ou firefox, ceci n'est applicable que pour les clients UNIX/LINUX. Vérifiez en le lançant manuellement.
|
|
|
|
<BR>
|
|
<A NAME="phones-install_directory">
|
|
<BR>
|
|
<B>Répertoire d'installation -</B> C'est l'endroit où astGUIclient et les scripts astVICUDUAL sont installés sur la machine. Pour Win32 cela doit être quelque chose comme C:\\AST_VICI and for UNIX cela doit être quelque chose comme /usr/local/perl_TK. Vérifiez cela manuellement.
|
|
|
|
<BR>
|
|
<A NAME="phones-local_web_callerID_URL">
|
|
<BR>
|
|
<B>URL du CallerID -</B> C'est l'adresse web de la page utilisée pour faire une verification personnalisée du CallerId. L'adresse des test par defaut est : http://astguiclient.sf.net/test_callerid_output.php
|
|
|
|
<BR>
|
|
<A NAME="phones-VICIDIAL_web_URL">
|
|
<BR>
|
|
<B>URL par defaut de VICIDIAL -</B> C'est l'adresse web de la page utilisée pour faire des requêtes Web VICIDIAL personnalisées. L'adresse par defaut est: http://astguiclient.sf.net/test_VICIDIAL_output.php
|
|
|
|
<BR>
|
|
<A NAME="phones-AGI_call_logging_enabled">
|
|
<BR>
|
|
<B>Log des appels -</B> Mettez à true si le fichier call_log.agi est placé dans le fichier extension.conf pour tout les appels sortants ainsi que l'extension de racrochage 'h' pour logger tout les appels. Il devrait toujours être à 1 car cela est nécessaire pour que certaines des fonctionnalités d'astGUIclient et de VICIDIAL fonctionnent proprement.
|
|
|
|
<BR>
|
|
<A NAME="phones-user_switching_enabled">
|
|
<BR>
|
|
<B>Changement d'utilisateur -</B> Mettez à true pour autoriser un utilisateur à changer pour un autre compte utilisateur. NOTE: Si l'utilisateur commute, il peut initier l'enregistrement sur la nouvelle conversation téléphonique du nouvel utilisateur
|
|
|
|
<BR>
|
|
<A NAME="phones-conferencing_enabled">
|
|
<BR>
|
|
<B>En conférence -</B> Mettez à true pour autoriser un utilisateur a démarrer une conférence avec plus de 6 lignes externs.
|
|
|
|
<BR>
|
|
<A NAME="phones-admin_hangup_enabled">
|
|
<BR>
|
|
<B>Racrochage administateur-</B> Mettre à true pour autoriser l'utilisateur à racrocher n'importe quelle ligne à travers astGUIclient. C'est une bonne idée de l'activer pour les administarteurs.
|
|
|
|
<BR>
|
|
<A NAME="phones-admin_hijack_enabled">
|
|
<BR>
|
|
<B>Détournement adminisrateur -<\/B> Mettre à true pour autoriser l'utilisateur à pouvoir intercepter et rediriger vers son extention n'importe quelle ligne à travers Astguiclient. C'est une bonne idée de l'activer pour les administrateurs. Mais c'est aussi très utile pour les managers.
|
|
|
|
<BR>
|
|
<A NAME="phones-admin_monitor_enabled">
|
|
<BR>
|
|
<B>Moniteur adminisrateur -</B> Mettre à true pour autoriser l'utilisateur à intercepter et rediriger vers son extension certaines lignes à partir de astGUIclient. C'est une bonne idée de l'activer pour les adiministrateurs. Mais c'est aussi très utile pour les managers et comme outil d'entrainement.
|
|
|
|
<BR>
|
|
<A NAME="phones-call_parking_enabled">
|
|
<BR>
|
|
<B>Parc d'appels -<\/B> Mettez à true pour autoriser l'utilisateur à parquer des appels dans astGUIclient pour être pris par n'importe quel utilisateur astGUIcient sur le système. Les appels sont mis en attente jusqu'à 30 minutes puis sont raccrochés. Habituellement activé pour tous.
|
|
|
|
<BR>
|
|
<A NAME="phones-updater_check_enabled">
|
|
<BR>
|
|
<B>Vérification de mise à jour -</B> Mettre à true pour afficher une popup avertissant que le temps de mise à jour n'a pas changé en 20 secondes. Utile pour les administrateurs.
|
|
|
|
<BR>
|
|
<A NAME="phones-AFLogging_enabled">
|
|
<BR>
|
|
<B>Log des AF -</B> Mettre à true pour logguer les actions de astGUIclient dans un fichier texte sur l'ordinateur de l'utilisateur.
|
|
|
|
<BR>
|
|
<A NAME="phones-QUEUE_ACTION_enabled">
|
|
<BR>
|
|
<B>Activer la queue -</B> Mettre à true pour que les applications clientes utilisent le systeme central de queue d'asterisk. Requis pour VICIDIAL et recommandé pour tout les utilisateurs.
|
|
|
|
<BR>
|
|
<A NAME="phones-CallerID_popup_enabled">
|
|
<BR>
|
|
<B>Popup sur le CallerID -</B> Mettre à true pour autoriser, pour les numéros définis dans le fichier extensions.conf, à afficher des popup concernat le CallerID aux utilisateurs d'astGUIclient.
|
|
|
|
<BR>
|
|
<A NAME="phones-voicemail_button_enabled">
|
|
<BR>
|
|
<B>Bouton de boîte vocale -</B> Mettre à true pour afficher le bouton VOICEMAIL et le nombre de messages dans astGUIclient.
|
|
|
|
<BR>
|
|
<A NAME="phones-enable_fast_refresh">
|
|
<BR>
|
|
<B>Rafraichissement rapide -</B> Mettre à true pour activer un nouveau taux de rafraichissement de l'information dans astGUIclient. Par défaut ce taux est de 1000ms, 1 seconde. Si vous diminuez ce taux cela peu augmenter la charge système.
|
|
|
|
<BR>
|
|
<A NAME="phones-fast_refresh_rate">
|
|
<BR>
|
|
<B>Taux de rafraichissement rapide -</B> en millisecondes. Utiliser seulement si le rafraichissement rapide est activé. Par défaut le taux est de 1000ms , 1 seconde. La diminution de ce taux peux augmenter la charge système.
|
|
|
|
<BR>
|
|
<A NAME="phones-enable_persistant_mysql">
|
|
<BR>
|
|
<B>MySQL persistant -<\/B> Si activé, alors la connection à MYSQL sera maintenue au lieu d'être reconnectée chaque seconde. Utile si vous avez un taux de rafraichissement rapide. Cela va augmenter le nombre de connections au seveur MYSQL.
|
|
|
|
<BR>
|
|
<A NAME="phones-auto_dial_next_number">
|
|
<BR>
|
|
<B>Appel automatique du numéro suivant -</B> Si activé, le client VICIDIAL appelera automatiquement le numéro suivant dans la liste selon la disposition d'un appel à moins qu'ils aient choisi "Stop Dialing" sur l'écran de disposition.
|
|
|
|
<BR>
|
|
<A NAME="phones-VDstop_rec_after_each_call">
|
|
<BR>
|
|
<B>Stoper l'enregistrement après chaque appel -</B> Si activé, le client VICIDIAL stopera chaque enregistrement à la fin de l'appel. Utile si vous faites beaucoup d'enregistrements et si vous utiliser un formulaire web pour déclancher l'enregistrement.
|
|
|
|
<BR>
|
|
<A NAME="phones-enable_sipsak_messages">
|
|
<BR>
|
|
<B>Activer les messages SIPSAK -</B> Si activé alors le serveur enverra des messages au téléphone SIP à afficher sur l'écran du téléphone quand il est connecté à VICIDIAL. Cette fonction ne fonctionne seulement avec les téléphones SIP et nécessite que sipsak soit installé sur le serveur web. La valeur par défaut est 0.
|
|
|
|
<BR>
|
|
<A NAME="phones-DBX_server">
|
|
<BR>
|
|
<B>Serveur DBX -</B> Le serveur de la base de données MYSQL auquel cette utilisateur se connecte.
|
|
|
|
<BR>
|
|
<A NAME="phones-DBX_database">
|
|
<BR>
|
|
<B>Base de données DBX -</B> Base de données à laquelle cet utilisateur ce connecte. La valeur par défault est asterisk.
|
|
|
|
<BR>
|
|
<A NAME="phones-DBX_user">
|
|
<BR>
|
|
<B>Utilisateur DBX -</B> Login utilisateur de la base de données utilisé pour la connection. La valeur par défaut est cron.
|
|
|
|
<BR>
|
|
<A NAME="phones-DBX_pass">
|
|
<BR>
|
|
<B>Mot de passe DBX -</B> Mot de pass de la connetion MYSLQ. La valeur par défaut est 1234.
|
|
|
|
<BR>
|
|
<A NAME="phones-DBX_port">
|
|
<BR>
|
|
<B>Port DBX -</B> Port de la connection à la base de données. La valeur par défaut est 3306.
|
|
|
|
<BR>
|
|
<A NAME="phones-DBY_server">
|
|
<BR>
|
|
<B>Serveur DBY -</B> Le serveur de base de données auquel cet utilisateur ce connecte. Secondaireserver, pas utilisé actuellement.
|
|
|
|
<BR>
|
|
<A NAME="phones-DBY_database">
|
|
<BR>
|
|
<B>Base de données DBY -</B> La base de données MYSQL à laquelle cette utilisateur se connecte. La valeur par défaut est asterisk. Secondaireserver, pas utilisé actuellement.
|
|
|
|
<BR>
|
|
<A NAME="phones-DBY_user">
|
|
<BR>
|
|
<B>Utilisateur DBY -</B> Login utilisateur avec lequel cet utilisateur ce connecte à la base de données. La valeur par défaut est cron. Secondaireserver, pas utilisé actuellement.
|
|
|
|
<BR>
|
|
<A NAME="phones-DBY_pass">
|
|
<BR>
|
|
<B>Mot de passe DBY -</B> Mot de passe avec lequel cet utilisateur ce connecte à MYSQL. La valeur par defaut est 1234. Secondaireserver, pas utilisé actuellement.
|
|
|
|
<BR>
|
|
<A NAME="phones-DBY_port">
|
|
<BR>
|
|
<B>DBY port -</B> Port TCP de la connection MYSQL utilisée par cet utilisateur. La valeur par défaut est 3306. Secondaireserver, pas utilisé actuellement.
|
|
|
|
<BR>
|
|
<A NAME="phones-alias_id">
|
|
<BR>
|
|
<B>Alias ID - </B> L'ID de l'alias utilisé pour permettre les connexions de téléphone à équilibrage de charge. pas d'espaces ou autres caractères spéciaux autorisés. Doit être compris entre 2 et 20 caractères de longueur.
|
|
|
|
<BR>
|
|
<A NAME="phones-alias_name">
|
|
<BR>
|
|
<B>Alias Nom - </B> Le nom utilisé pour désigner un téléphone alias, doit être compris entre 2 et 50 caractères de longueur.
|
|
|
|
<BR>
|
|
<A NAME="phones-logins_list">
|
|
<BR>
|
|
<B>Téléphones Connexions List - </B> La virgule sépare la liste de téléphone de connexion utilisé lors d'un agent se connecte par téléphone pour équilibrer la charge de connexion. L'agent se trouve l'application serveur actif avec le moins d'agents et connecté à un appel à ce serveur à l'agent au moment de la connexion.
|
|
|
|
<BR>
|
|
<A NAME="phones-email">
|
|
<BR>
|
|
<B>Téléphones Email - </B> L'adresse e-mail associée à ce téléphone d'entrée. Il est utilisé pour les paramètres de messagerie vocale.
|
|
|
|
<BR>
|
|
<A NAME="phones-template_id">
|
|
<BR>
|
|
<B>Template ID - </B> C'est le fichier de conf ID que ce modèle de téléphone utilisé pour la saisie des paramètres de son Asterisk. La valeur par défaut est - ABSENCE --.
|
|
|
|
<BR>
|
|
<A NAME="phones-conf_override">
|
|
<BR>
|
|
<B>Conf Override Settings -</B> If populated, and the Template ID is set to --NONE-- then the contents of this field are used as the conf file entries for this phone. generate_vicidial_conf for this phones server must be set to Y for this to work. This field should NOT contain the [extension] line, that will be automatically generated.
|
|
|
|
<BR>
|
|
<A NAME="phones-group_alias_id">
|
|
<BR>
|
|
<B>Alias Groupe ID - </B> L'ID du groupe alias utilisés par les agents de composer les appels de l'agent VICIDIAL interface avec différents Caller ID. pas d'espaces ou autres caractères spéciaux autorisés. Doit être compris entre 2 et 20 caractères de longueur.
|
|
|
|
<BR>
|
|
<A NAME="phones-group_alias_name">
|
|
<BR>
|
|
<B>Nom du groupe Alias - </B> Le nom utilisé pour décrire un groupe d'emprunt, doit être compris entre 2 et 50 caractères de longueur.
|
|
|
|
<BR>
|
|
<A NAME="phones-caller_id_number">
|
|
<BR>
|
|
<B>Numéro d'identification de l'appelant - </B> Le numéro d'identification de l'appelant utilisée dans ce groupe Alias. Chiffres doivent être.
|
|
|
|
<BR>
|
|
<A NAME="phones-caller_id_name">
|
|
<BR>
|
|
<B>Nom d'identification de l'appelant - </B> Le nom d'identification de l'appelant qui peut être envoyé à ce groupe Alias. Pour autant que nous sachions ce qui ne fera que travailler au Canada sur les circuits PRI et l'utilisation d'un tronc IAX boucle par Asterisk.
|
|
|
|
|
|
|
|
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>TABLE DES SERVEURS</FONT></B><BR><BR>
|
|
<A NAME="servers-server_id">
|
|
<BR>
|
|
<B>ID du Sevreur -</B> C'est ici que vous mettez le nom du serveur Asterisk, il n'est pas obligatoire de mettre le sous dommaine, juste un nom pour identifier le seveur pour les administrateurs.
|
|
|
|
<BR>
|
|
<A NAME="servers-server_description">
|
|
<BR>
|
|
<B>Descritpion du serveur -</B> Petite description du serveur asterisk.
|
|
|
|
<BR>
|
|
<A NAME="servers-server_ip">
|
|
<BR>
|
|
<B>Adresse IP du serveur -</B> Le champs dans lequel vous mettez l'adresse IP du serveur Asterisk.
|
|
|
|
<BR>
|
|
<A NAME="servers-active">
|
|
<BR>
|
|
<B>Actif -</B> Mettre si le serveur Asterisk est actif ou non.
|
|
|
|
<BR>
|
|
<A NAME="servers-sysload">
|
|
<BR>
|
|
<B>Système de charge -</B> Ces deux statistiques montrent loadavg la fois d'un système 100 et le pourcentage d'utilisation CPU du serveur et est mis à jour chaque minute. Le loadavg devrait être en moyenne inférieure à 100 multiplié par le nombre de noyaux de CPU de votre système a, pour des performances optimales. Le pourcentage d'utilisation CPU devrait rester en dessous de 50 pour une performance optimale.
|
|
|
|
<BR>
|
|
<A NAME="servers-channels_total">
|
|
<BR>
|
|
<B>Live Chaînes -</B> Ce champ indique le nombre actuel d'Asterisk canaux qui sont en direct sur le système dès maintenant. Il est important de noter que le nombre de canaux Asterisk est habituellement beaucoup plus élevé que le nombre d'appels sur un système. Ce champ est mis à jour une fois chaque minute.
|
|
|
|
<BR>
|
|
<A NAME="servers-disk_usage">
|
|
<BR>
|
|
<B>Disk Usage -</B> Ce champ montre l'utilisation du disque pour chaque partition sur ce serveur. Ce champ est mis à jour une fois chaque minute.
|
|
|
|
<BR>
|
|
<A NAME="servers-asterisk_version">
|
|
<BR>
|
|
<B>Version d'Asterisk -</B> Mettre la version d'asterisk que vous avez installé sur ce serveur. Examples: ' 1.2 ', ' 1.0.8 ', ' 1.0.7 ', 'CVS_HEAD', 'REALLY OLD', etc... Ceci est utilisé car les versions 1.0.8 et 1.0.9 ont une methode differente pour gérer les canaux Local/, un bug qui a été fixé dans le CVS v1.0, et qui nescessite d'être traité differement quand les canaux Local/ sont manipulés. Aussi, la version courante CVS_HEAD et l'arbre 1.2 utilisent des managers et des commandes différentes, qui doivent donc être traités différemment..
|
|
|
|
<BR>
|
|
<A NAME="servers-max_vicidial_trunks">
|
|
<BR>
|
|
<B>Nombre maximum de trunks VICIDIAL -</B> Ce champ détermine le nombre maximum de lignes que l'appel automatique de VICIDIAL essayera d'appeler sur ce serveur. Si vous voulez consacrer pleinement deux PRI T1s à VICIDIAL sur un serveur vous devriez mettre ce champ à 46. La valeur par defaut est 96.
|
|
|
|
<BR>
|
|
<A NAME="servers-outbound_calls_per_second">
|
|
<BR>
|
|
<B>Max demande par seconde -</B> Ce paramètre détermine le nombre maximum d'appels qui peuvent être mis par la sortie d'auto-script d'appel sur ce serveur par seconde. Doit être de 1 à 100. La valeur par défaut est 20.
|
|
|
|
<BR>
|
|
<A NAME="servers-telnet_host">
|
|
<BR>
|
|
<B>Hôte telnet -</B> C'est l'adresse ou le nom du serveur Asterisk et c'est comme cela que les applications managers se connectent au sevreur quand elle sont lancées. Si les applications managers sont lancées sur le serveur Asterisk, alors la valeur par defaut 'localhost' fonctionne bien .
|
|
|
|
<BR>
|
|
<A NAME="servers-telnet_port">
|
|
<BR>
|
|
<B>Port telnet -</B> C'est le port de connection au manager du serveur Asterisk c'est par ceului-ci que les applications managers se connectent. La valeur par defaut '5038' fonctionne bien avec une installation standard.
|
|
|
|
<BR>
|
|
<A NAME="servers-ASTmgrUSERNAME">
|
|
<BR>
|
|
<B>Utilisateur du manager -</B> C'est l'utilisateur utilisé pour la connection au manager Asterisk. La valeur par défaut est 'cron'
|
|
|
|
<BR>
|
|
<A NAME="servers-ASTmgrSECRET">
|
|
<BR>
|
|
<B>Mot de passe du manager -</B> Le secret ou mot de passe utilisé pour ce connecter au manager Asterisk. La valeur par defaut est '1234'
|
|
|
|
<BR>
|
|
<A NAME="servers-ASTmgrUSERNAMEupdate">
|
|
<BR>
|
|
<B>Utilisateur du manager pour les mises à jour -</B> Le nom d'utilisateur ou le login utilisé pour se connecter au manager d'Asterisk, optimisé pour les scripts de mise à jour. La valeur par defaut est 'updatecron' et a le même secret que l'utilisateur générique.
|
|
|
|
<BR>
|
|
<A NAME="servers-ASTmgrUSERNAMElisten">
|
|
<BR>
|
|
<B>Utilisateur du manager pour l'écoute -</B> Le nom d'utilisateur ou le login utilisé pour se connecter au manager d'Asterisk, optimisé pour les scripts qui écoutent la sortie seulement. La valeur par défaut est 'listencron' et a le même secret que l'utilisateur générique.
|
|
|
|
<BR>
|
|
<A NAME="servers-ASTmgrUSERNAMEsend">
|
|
<BR>
|
|
<B>Utilisateur du manager pour l'envoi -</B> Le nom d'utilisateur ou le login utilisé pour se connecter au manager d'Asterisk, optimisé pour les scripts qui envoient des actions au manager. La valeur par défaut est 'sendcron' et a le même secret que l'utilisateur générique.
|
|
|
|
<BR>
|
|
<A NAME="servers-local_gmt">
|
|
<BR>
|
|
<B>Décalage GMT du serveur -</B>La difference en heure par rapport à l'heure GMT non ajustée pour Les Daylight-Savings-Time du serveur. Par defaut '-5'
|
|
|
|
<BR>
|
|
<A NAME="servers-voicemail_dump_exten">
|
|
<BR>
|
|
<B>Exten VMail Dump -</B> Le prefix de l'extention utilisé sur ce serveur pour lancer des appels directement depuis agc vers une boite vocale spécifique. La valeur par defaut est '85026666666666'
|
|
|
|
<BR>
|
|
<A NAME="servers-answer_transfer_agent">
|
|
<BR>
|
|
<B>Extension de VICIDIAL AD -</B> L'extension par défaut si personne n'est présent dans la campagne qui permet de lancer des appels pour l'appel automatique de VICIDIAL. La valeur par defaut est '8365'
|
|
|
|
<BR>
|
|
<A NAME="servers-ext_context">
|
|
<BR>
|
|
<B>Contexte par défaut -</B> Le contexte par defaut utilisé par les scripts qui opèrent sur ce serveur. La valeur par défaut est 'default'
|
|
|
|
<BR>
|
|
<A NAME="servers-sys_perf_log">
|
|
<BR>
|
|
<B>Performances du système -</B> Mettre cette option à Y permet de loger les statistiques des performances du système, incluant la charge du système, les processus et les canaux Asterisk utilisés. La valeur par défaut est N.
|
|
|
|
<BR>
|
|
<A NAME="servers-vd_server_logs">
|
|
<BR>
|
|
<B>Logs du serveur -</B> Mettre cette option à Y permet de loger tous les scripts liés à Asterisk dans leurs fichiers textes de log. Mettre cette option à N arrête le logs dans les fichiers pour ces processus, et de ce fait désactive l'écran de log de Asterisk si cette option est à N quand Asterisk démarre. La valeur par défaut est Y.
|
|
|
|
<BR>
|
|
<A NAME="servers-agi_output">
|
|
<BR>
|
|
<B>Sortie des scripts AGI -</B> Mettre cette option à NONE désactive toutes les sorties des scripts AGI de VICIDIAL. La mettre à STDERR enverra les sorties des scripts AGI à la CLI Asterisk. Mettre cette option à FILE enverra les sorties dans un fichiers dans le répertoire des logs. Mettre cette option à BOTH enverra les sorties à la fois vers la CLI Asterisk et dans le fichier de log. La valeur par défaut est FILE.
|
|
|
|
<BR>
|
|
<A NAME="servers-vicidial_balance_active">
|
|
<BR>
|
|
<B>Appel équilibré VICIDIAL -<\/B> Définir ce champ à Y permettra au serveur de placer des appels équilibrés pour les campagnes dans VICIDIAL de sorte que le niveau d'appel défini puisse être atteint même s'il n'y a aucun agent connecté dans cette campagne sur ce serveur. La valeur par défaut est N.
|
|
|
|
<BR>
|
|
<A NAME="servers-balance_trunks_offlimits">
|
|
<BR>
|
|
<B>Limite de l'équilibrage VICIDIAL -<\/B> Cette option définit le nombre de trunks à ne pas utiliser pour l'équilibrage des appels VICIDIAL. Par exemple si vous avez 40 trunks vicidial et la limite d'équilibrage VICIDIAL définie à 10 vous ne pourrez utiliser que 30 trunks pour l'équilibrage VICIDIAL. La valeur par défaut est 0.
|
|
|
|
<BR>
|
|
<A NAME="servers-recording_web_link">
|
|
<BR>
|
|
<B>Enregistrement Web Link - </B> Ce paramètre permet d'outrepasser les paramètres par défaut de l'affichage de l'enregistrement de lien dans l'admin des pages web. La valeur par défaut est SERVER_IP.
|
|
|
|
<BR>
|
|
<A NAME="servers-alt_server_ip">
|
|
<BR>
|
|
<B>Autre enregistrement IP du serveur - </B> Ce paramètre est l'endroit où vous pouvez mettre une IP de serveur de nom de machine ou d'autres qui peuvent être utilisés à la place de la server_ip dans les liens d'enregistrements au sein de l'administration des pages Web. La valeur par défaut est vide.
|
|
|
|
<BR>
|
|
<A NAME="servers-active_asterisk_server">
|
|
<BR>
|
|
<B>Asterisk Active Server - </B> Si Asterisk ne fonctionne pas sur ce serveur, ou si VICIDIAL ne devrait pas utiliser ce serveur, ou si seulement ce serveur en utilisant des scripts pour d'autres comme la trémie de chargement de script que vous souhaiteriez mettre à la N. La valeur par défaut est Y.
|
|
|
|
<BR>
|
|
<A NAME="servers-generate_vicidial_conf">
|
|
<BR>
|
|
<B>Générer des fichiers de conf - </B> Si vous souhaitez que le système d'auto-générer des fichiers de conf astérisque sur la base des entrées de téléphones, le transporteur et l'équilibrage de charge des entrées de configuration dans VICIDIAL puis mettre à la valeur par défaut est Y. Y.
|
|
|
|
<BR>
|
|
<A NAME="servers-rebuild_conf_files">
|
|
<BR>
|
|
<B>Reconstruire les fichiers conf - </B> Si vous voulez forcer une reconstruction de la conf Asterisk fichiers ou si l'une des entrées de porte ou les téléphones ont changé, alors ceci doit être réglé sur Y. Après la conf des fichiers ont été générés et Asterisk a été rechargée alors ce sera changée pour N. La valeur par défaut est Y.
|
|
|
|
|
|
|
|
|
|
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>vicidial_conf_templates TABLE</FONT></B><BR><BR>
|
|
<A NAME="vicidial_conf_templates-template_id">
|
|
<BR>
|
|
<B>Template ID - </B> Ce champ doit être d'au moins 2 caractères et pas plus de 15 caractères, sans espaces. C'est l'identifiant qui sera utilisé pour identifier le modèle de configuration à travers le système.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_conf_templates-template_name">
|
|
<BR>
|
|
<B>Nom du modèle - </B> C'est le nom descriptif du modèle de fichier de configuration d'entrée.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_conf_templates-template_contents">
|
|
<BR>
|
|
<B>Template Sommaire - </B> Ce domaine est l'endroit où vous pouvez entrer dans les paramètres spécifiques pour être utilisés par tous les téléphones et / ou les transporteurs qui sont mis à utiliser ce modèle de conf. Les champs qui ne doivent PAS être inclus dans cette zone sont: le secret, accountcode, compte, nom d'utilisateur et boîte aux lettres.
|
|
|
|
|
|
|
|
|
|
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>vicidial_server_carriers TABLE</FONT></B><BR><BR>
|
|
<A NAME="vicidial_server_carriers-carrier_id">
|
|
<BR>
|
|
<B>Carrier ID - </B> Ce champ doit être d'au moins 2 caractères et pas plus de 15 caractères, sans espaces. C'est l'identifiant qui sera utilisé pour identifier le transporteur pour cette entrée spécifique dans l'ensemble du système.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_server_carriers-carrier_name">
|
|
<BR>
|
|
<B>Nom du transporteur - </B> C'est le nom descriptif de la porte d'entrée.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_server_carriers-registration_string">
|
|
<BR>
|
|
<B>Inscription String - </B> Ce domaine est l'endroit où vous pouvez entrer dans la chaîne exacte nécessaire dans le IAX ou SIP pour enregistrer le fichier de configuration pour le fournisseur. Facultatif mais fortement recommandé si votre opérateur permet l'enregistrement.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_server_carriers-template_id">
|
|
<BR>
|
|
<B>Template ID - </B> Ce champ facultatif permet de choisir un modèle de fichier de conf de ce transporteur entrée.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_server_carriers-account_entry">
|
|
<BR>
|
|
<B>Compte Entrée - </B> Ce champ est utilisé si vous n'avez pas choisi un modèle à utiliser, et c'est là où vous pouvez entrer dans les paramètres du compte à utiliser pour ce transporteur. Si vous prenez en appels entrants à partir de ce transporteur tronc, vous pouvez définir le contexte = trunkinbound dans ce domaine, de sorte que vous pouvez utiliser le processus de traitement des DID dans VICIDIAL.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_server_carriers-protocol">
|
|
<BR>
|
|
<B>Protocole - </B> Ce domaine vous permet de définir le protocole à utiliser pour le transporteur d'entrée. Actuellement, seuls SIP et IAX sont soutenus.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_server_carriers-globals_string">
|
|
<BR>
|
|
<B>Globals String - </B> Ce champ facultatif permet de définir une variable globale à utiliser pour le transporteur de la dialplan.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_server_carriers-dialplan_entry">
|
|
<BR>
|
|
<B>Entrée Dialplan - </B> Ce champ facultatif permet de définir un ensemble de dialplan entrées à utiliser pour ce transporteur.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_server_carriers-server_ip">
|
|
<BR>
|
|
<B>IP du serveur - </B> Il s'agit du serveur que ce support est associé à enregistrer.
|
|
|
|
<BR>
|
|
<A NAME="vicidial_server_carriers-active">
|
|
<BR>
|
|
<B>Active - </B> Cela définit si le transporteur sera inclus dans l'auto-générés ou non les fichiers conf.
|
|
|
|
|
|
|
|
|
|
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>TABLE DES CONFERENCES</FONT></B><BR><BR>
|
|
<A NAME="conferences-conf_exten">
|
|
<BR>
|
|
<B>Numéro de la conférence -</B> Ce champ permet de mettre le numéro du meetme pour les conférences. Il est aussi recommandé que le numéro du meetme dans meetme.conf corresponde à ce numéro pour chaque entrée. C'est pour les conférences dans astGUIclient et est utilisé pour la fonction leave-3way-call dans VICIDIAL.
|
|
|
|
<BR>
|
|
<A NAME="conferences-server_ip">
|
|
<BR>
|
|
<B>IP du serveur -</B> C'est le menu dans lequel vous choisissez le serveur Asterisk sur lequel sera cette conférence.
|
|
|
|
|
|
|
|
|
|
<?
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
?>
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>VICIDIAL_SERVER_MallesTABLE</FONT></B><BR><BR>
|
|
<A NAME="vicidial_server_trunks">
|
|
<BR>
|
|
<B>Les trunks du serveur VICIDIAL vous permettent de limiter les lignes sortantes qui sont utilisées sur ce serveur sur une base par-campagne. Vous avez la possibilité de reserver un nombre spécifique de lignes à utiliser par seulement une campagne aussi bien que permettre à cette campagne d'utiliser plus de lignes que celles reservées si il en reste de libre, tant que le nombre maximum de ligne utilisées par Vicidial sur ce serveur est inférieur au nombre de trunks VICIDIAL maximum défini. Avoir aucun de ces réglages permet à la campagne qui appel en premier d'avoir autant de lignes qu'elle le peut sous le nombre max de lignes VICIDIAL défini.</B>
|
|
<?
|
|
}
|
|
?>
|
|
|
|
|
|
|
|
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>SYSTEM_SETTINGS TABLE</FONT></B><BR><BR>
|
|
<A NAME="settings-use_non_latin">
|
|
<BR>
|
|
<B>Utiliser Non-Latin -</B> Cette option vous permet d'utiliser les caractères UTF8 pour l'affichage web des scripts, et de ne pas utiliser des filtres d'expressions régulières latin-character-family ou de formater l'affichage. La valeur par défaut est 0.
|
|
|
|
<BR>
|
|
<A NAME="settings-webroot_writable">
|
|
<BR>
|
|
<B>Webroot éditable -</B> Cette option vous permet de définir si les fichiers temporaires et les fichiers d'authentification doivent être placés dans le webroot sur le serveur web. La valeur par défaut est 1.
|
|
|
|
<BR>
|
|
<A NAME="settings-vicidial_agent_disable">
|
|
<BR>
|
|
<B>Affichage de la désactivation d'un agent VICIDIAL -</B> Ce champ est utilisé pour selectionné quand montrer à un agent que ça session à été désactivée par le système, une action du manager ou par une mesure externe. NOT_ACTIVE désactivera l'affichage d'un message sur l'écran de l'agent. LIVE_AGENTS affichera seulement le message de désactivation quand les enregistrements vicidial_auto_calls des agents ont été modifiés, comme lors d'une déconnection forcée ou d'une déconnection de secours.
|
|
|
|
<BR>
|
|
<A NAME="settings-allow_sipsak_messages">
|
|
<BR>
|
|
<B>Autoriser les messages SIPSAK -</B> Si défini à 1, cela permettra aux téléphones à fonctionner correctement, le serveur enverra des messages à afficher sur l'écran du téléphone quand il est connecté à VICIDIAL. Cette fonction fonctionne seulement avec des téléphones SIP et nécessite que sipsak soit installé sur le serveur web. La valeur par défaut est 0.
|
|
|
|
<BR>
|
|
<A NAME="settings-vdc_agent_api_active">
|
|
<BR>
|
|
<B>Agent API Active - </B> Si définie à 1, cela permet à l'agent d'interface API pour fonctionner. La valeur par défaut est 0.
|
|
|
|
<BR>
|
|
<A NAME="settings-admin_home_url">
|
|
<BR>
|
|
<B>URL de l'acceuil de l'administration -</B> C'est l'URL ou l'adresse du site web ou vous voulez aller quand vous cliquez sur le lien ACCUEIL en haut de la page admin.php.
|
|
|
|
<BR>
|
|
<A NAME="settings-enable_agc_xfer_log">
|
|
<BR>
|
|
<B>Permettez le fichier journal de transfert d'agent - cette optionnotera à un fichier journal des textes sur le webserver chaque foisqu'un appel est transféré à un agent. Le défaut est 0,neutralisé.
|
|
|
|
<BR>
|
|
<A NAME="settings-timeclock_end_of_day">
|
|
<BR>
|
|
<B>Horloge en temps Fin de la journée - </B> Ce paramètre définit lorsque tous les utilisateurs sont automatiquement déconnecté du système timeclock. Fonctionne uniquement une fois par jour. ne doit être que 4 chiffres et 2 chiffres heures à 2 chiffres dans les minutes de 24 heures. La valeur par défaut est 0000.
|
|
|
|
<BR>
|
|
<A NAME="settings-timeclock_last_reset_date">
|
|
<BR>
|
|
<B>Dernière timeclock Auto Déconnection - </B> Ce champ affiche la date de la dernière auto-logout.
|
|
|
|
<BR>
|
|
<A NAME="settings-vdc_header_date_format">
|
|
<BR>
|
|
<B>Agent Header Screen Format Date - </B> Ce menu vous permet de choisir le format de la date qui apparaît en haut de l'écran VICIDIAL agent. Les options de ce paramètre sont les suivants: valeur par défaut est MS_DASH_24HR<BR>
|
|
MS_DASH_24HR 2008-06-24 23:59:59 - Par défaut avec le format de la date année mois jour suivie par 24 heures,<BR>
|
|
US_SLASH_24HR 06/24/2008 23:59:59 - Etats-Unis avec le format de la date mois jour année suivie par 24 heures,<BR>
|
|
EU_SLASH_24HR 24/06/2008 23:59:59 - Européen de format de date avec jour mois année suivie par 24 heures,<BR>
|
|
AL_TEXT_24HR JUN 24 23:59:59 - Texte de format de date avec abrégée mois jour suivie par 24 heures,<BR>
|
|
MS_DASH_AMPM 2008-06-24 11:59:59 PM - Par défaut avec le format de la date année mois jour , suivies de 12 heures<BR>
|
|
US_SLASH_AMPM 06/24/2008 11:59:59 PM - Etats-Unis avec le format de la date mois jour année , suivies de 12 heures<BR>
|
|
EU_SLASH_AMPM 24/06/2008 11:59:59 PM - Européen de format de date avec jour mois année , suivies de 12 heures<BR>
|
|
AL_TEXT_AMPM JUN 24 11:59:59 PM - Texte de format de date avec abrégée mois jour , suivies de 12 heures<BR>
|
|
|
|
<BR>
|
|
<A NAME="settings-vdc_customer_date_format">
|
|
<BR>
|
|
<B>Agent client Screen Format Date - </B> Ce menu vous permet de choisir le format de la date du fuseau horaire client qui apparaît en haut de la section d'information à la clientèle agent VICIDIAL de l'écran. Les options pour ce paramètre sont les suivants: valeur par défaut est AL_TEXT_AMPM<BR>
|
|
MS_DASH_24HR 2008-06-24 23:59:59 - Par défaut avec le format de la date année mois jour suivie par 24 heures,<BR>
|
|
US_SLASH_24HR 06/24/2008 23:59:59 - Etats-Unis avec le format de la date mois jour année suivie par 24 heures,<BR>
|
|
EU_SLASH_24HR 24/06/2008 23:59:59 - Européen de format de date avec jour mois année suivie par 24 heures,<BR>
|
|
AL_TEXT_24HR JUN 24 23:59:59 - Texte de format de date avec abrégée mois jour suivie par 24 heures,<BR>
|
|
MS_DASH_AMPM 2008-06-24 11:59:59 PM - Par défaut avec le format de la date année mois jour , suivies de 12 heures<BR>
|
|
US_SLASH_AMPM 06/24/2008 11:59:59 PM - Etats-Unis avec le format de la date mois jour année , suivies de 12 heures<BR>
|
|
EU_SLASH_AMPM 24/06/2008 11:59:59 PM - Européen de format de date avec jour mois année , suivies de 12 heures<BR>
|
|
AL_TEXT_AMPM JUN 24 11:59:59 PM - Texte de format de date avec abrégée mois jour , suivies de 12 heures<BR>
|
|
|
|
<BR>
|
|
<A NAME="settings-vdc_header_phone_format">
|
|
<BR>
|
|
<B>Agent Client Téléphone Screen Format - </B> Ce menu vous permet de choisir le format du client le numéro de téléphone qui apparaît dans la section du statut de la VICIDIAL agent écran. Les options pour ce paramètre sont les suivants: valeur par défaut est US_PARN<BR>
|
|
US_DASH 000-000-0000 - USA tableau de bord séparés numéro de téléphone<BR>
|
|
US_PARN (000)000-0000 - USA Numéro de tableau de bord séparés avec le code régional entre parenthèses<BR>
|
|
MS_NODS 0000000000 - Pas de formatage<BR>
|
|
UK_DASH 00 0000-0000 - UK tableau de bord séparés numéro de téléphone avec l'espace après le code de ville<BR>
|
|
AU_SPAC 000 000 000 - Australia espace séparé numéro de téléphone<BR>
|
|
IT_DASH 0000-000-000 - Italy tableau de bord séparés numéro de téléphone<BR>
|
|
FR_SPAC 00 00 00 00 00 - France espace séparé numéro de téléphone<BR>
|
|
|
|
<BR>
|
|
<A NAME="settings-vdc_agent_api_active">
|
|
<BR>
|
|
<B>Agent interface API Access Active -</B> This option allows you to enable or disable the agent interface API. Default is 0.
|
|
|
|
<BR>
|
|
<A NAME="settings-qc_features_active">
|
|
<BR>
|
|
<B>Caractéristiques QC Active - </B> Cette option vous permet d'activer ou désactiver le contrôle de la qualité ou QC fonctionnalités. La valeur par défaut est 0 pour les inactifs.
|
|
|
|
<BR>
|
|
<A NAME="settings-outbound_autodial_active">
|
|
<BR>
|
|
<B>Auto-Outbound Dial Active - </B> Cette option vous permet d'activer ou désactiver la numérotation automatique sortants dans VICIDIAL, la mise en ce domaine à 0 supprime les listes et FILTRES sections et de nombreux champs de la campagne Modification écrans. Manuel de l'entrée de numérotation sera encore autorisée au sein de l'agent de l'écran, mais pas de liste d'appel ne sera possible. La valeur par défaut est 1 pour les actifs.
|
|
|
|
<BR>
|
|
<A NAME="settings-outbound_calls_per_second">
|
|
<BR>
|
|
<B>Max REMPLISSAGE demande par seconde -</B> Ce paramètre détermine le nombre maximum d'appels qui peuvent être placés par les auto-FILL sortie d'auto-script de numérotation pour tous les serveurs, par seconde. Doit être de 1 à 200. La valeur par défaut est 40.
|
|
|
|
<BR>
|
|
<A NAME="settings-enable_queuemetrics_logging">
|
|
<BR>
|
|
<B>Activer le log des QueueMetrics -</B> Cette option vous permet de définir si VICIDIAL va insérer les données des logs dans la table queue_log comme le fait Asterisk. QueueMetrics est un programme d'analyse de statistiques autonome et non open-source. Vous devez avoir installé et configuré QueueMetrics pour activer cette option. La valeur par défaut est 0.
|
|
|
|
<BR>
|
|
<A NAME="settings-queuemetrics_server_ip">
|
|
<BR>
|
|
<B>IP du serveur QueueMetrics -</B> C'est l'adresse IP de la base de données pour votre installation de QueueMetrics.
|
|
|
|
<BR>
|
|
<A NAME="settings-queuemetrics_dbname">
|
|
<BR>
|
|
<B>Nom de la base de données de QueueMetrics -</B> C'est le nom de la base de données de QueueMetrics.
|
|
|
|
<BR>
|
|
<A NAME="settings-queuemetrics_login">
|
|
<BR>
|
|
<B>Login de la base de données de QueueMetrics -</B> C'est le login utilisé pour se connecter à la base de données QueueMetrics.
|
|
|
|
<BR>
|
|
<A NAME="settings-queuemetrics_pass">
|
|
<BR>
|
|
<B>Mot de passe de la base de données de QueueMetrics -</B> C'est le mot de passe utilisé pour se connecter à la base de données QueueMetrics.
|
|
|
|
<BR>
|
|
<A NAME="settings-queuemetrics_url">
|
|
<BR>
|
|
<B>URL de QueueMetrics -</B> C'est l'URL ou l'adresse du site web utilisé pour atteindre QueueMetrics.
|
|
|
|
<BR>
|
|
<A NAME="settings-queuemetrics_log_id">
|
|
<BR>
|
|
<B>Identifiant des log de QueueMetrics -</B> C'est l'identifiant du serveur que tout les logs VICIDIAL dans la base de données de QueueMetrics vont utiliser pour chaque enregistrement.
|
|
|
|
<BR>
|
|
<A NAME="settings-queuemetrics_eq_prepend">
|
|
<BR>
|
|
<B>QueueMetrics EnterQueue Prepend -<\/B> Ce champ est utilisé pour autorisé à ajouter un des champs des données de vicidial_list devant le numéro de téléphone du client pour personnaliser les rapports QueueMetrics. La valeur par défaut est NONE pour ne pas peupler n'importe quoi.
|
|
|
|
<BR>
|
|
<A NAME="settings-enable_vtiger_integration">
|
|
<BR>
|
|
<B>Activer Vtiger Integration - </B> Ce paramètre vous permet d'activer l'intégration avec Vtiger VICIDIAL. Actuellement, des liens vers Vtiger admin et de recherche ainsi que l'utilisateur de réplication sont les seules fonctions d'intégration disponibles. La valeur par défaut est 0.
|
|
|
|
<BR>
|
|
<A NAME="settings-vtiger_server_ip">
|
|
<BR>
|
|
<B>Vtiger DB IP du serveur - </B> Il s'agit de l'adresse IP de la base de données de votre installation Vtiger.
|
|
|
|
<BR>
|
|
<A NAME="settings-vtiger_dbname">
|
|
<BR>
|
|
<B>Vtiger Database Name - </B> C'est le nom de base de données de votre base de données Vtiger.
|
|
|
|
<BR>
|
|
<A NAME="settings-vtiger_login">
|
|
<BR>
|
|
<B>Vtiger Database Login - </B> C'est le nom d'utilisateur utilisé pour vous connecter à votre base de données Vtiger.
|
|
|
|
<BR>
|
|
<A NAME="settings-vtiger_pass">
|
|
<BR>
|
|
<B>Vtiger Database Password - </B> Il s'agit du mot de passe utilisé pour vous connecter à votre base de données Vtiger.
|
|
|
|
<BR>
|
|
<A NAME="settings-vtiger_url">
|
|
<BR>
|
|
<B>Vtiger Web - </B> Il s'agit de l'URL ou adresse du site Web utilisé pour accéder à votre installation Vtiger.
|
|
|
|
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>VICIDIAL_STATUSES TABLE</FONT></B><BR><BR>
|
|
<A NAME="vicidial_statuses">
|
|
<BR>
|
|
<B>Par l'utilisation des statuts de système, vous pouvez avoir desstatuts qui existent pour la campagne et le dans-groupe. Le statutdoit être 1-6 caractères de longueur, la description doit être 2-30caractères de longueur et sélectionnable définit si elle apparaîtdans VICIDIAL comme disposition d'agent. Human_answered le champ estemployé en calculant le pourcentage de baisse, ou le taux d'abandon.L'arrangement human_answered à Y emploiera ce statut en comptant lesappels humain-répondus. L'option de catégorie vous permet de grouperplusieurs statuts dans un catogy qui peut être employé pourl'analyse statistique.</B>
|
|
|
|
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>VICIDIAL_STATUS_CATEGORIES TABLE</FONT></B><BR><BR>
|
|
<A NAME="vicidial_status_categories">
|
|
<BR>
|
|
<B>Par l'utilisation des catégories de statut de système, vous pouvezgrouper ensemble des statuts pour tenir compte de l'analysestatistique sur un groupe de statuts. L'identification de catégoriedoit être 2-20 caractères de longueur sans les espaces, le nom doitêtre 2-50 caractères de longueur, la description est facultative etl'affichage de TimeonVDAD définit si ce statut sera un de jusqu'à 4statuts qui peuvent être calculés et montrés le temps sur lerapport de temps réel de VDAD.</B> La vente et la catégorie Dead Lead Catégorie sont tous deux utilisés par le système de liste de suggestions lors de l'analyse de la liste des statistiques.
|
|
|
|
|
|
<?
|
|
if ($SSqc_features_active > 0)
|
|
{
|
|
?>
|
|
<BR><BR><BR><BR>
|
|
|
|
<B><FONT SIZE=3>VICIDIAL QC ÉTAT DES CODES</FONT></B><BR><BR>
|
|
<A NAME="vicidial_qc_status_codes">
|
|
<BR>
|
|
<B>Le contrôle de la qualité au sein du système-QC VICIDIAL a son propre ensemble de codes distincts de ceux dans le traitement des appels de fonctions VICIDIAL. QC statuse codes doit être comprise entre 2 et 8 caractères et ne contiennent pas de caractères spéciaux, comme un espace ou du côlon. Le code de statut QC description doit être comprise entre 2 et 30 caractères.</B>
|
|
<?
|
|
}
|
|
?>
|
|
|
|
|
|
|
|
<BR><BR><BR><BR><BR><BR><BR><BR>
|
|
<BR><BR><BR><BR><BR><BR><BR><BR>
|
|
LA FIN
|
|
</TD></TR></TABLE></BODY></HTML>
|
|
<?
|
|
exit;
|
|
|
|
#### END HELP SCREENS
|
|
}
|
|
|
|
|
|
######################################################################################################
|
|
######################################################################################################
|
|
####### 7 series, filter count preview and script preview
|
|
######################################################################################################
|
|
######################################################################################################
|
|
|
|
|
|
|
|
|
|
######################
|
|
# ADD=73 view dialable leads from a filter and a campaign
|
|
######################
|
|
|
|
if ($ADD==73)
|
|
{
|
|
if ($LOGmodify_campaigns==1)
|
|
{
|
|
echo "</title>\n";
|
|
echo "</head>\n";
|
|
echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT dial_statuses,local_call_time,lead_filter_id from vicidial_campaigns where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$dial_statuses = $row[0];
|
|
$local_call_time = $row[1];
|
|
if ($lead_filter_id=='')
|
|
{
|
|
$lead_filter_id = $row[2];
|
|
if ($lead_filter_id=='')
|
|
{
|
|
$lead_filter_id='NONE';
|
|
}
|
|
}
|
|
|
|
$stmt="SELECT list_id,active,list_name from vicidial_lists where campaign_id='$campaign_id'";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$lists_to_print = mysql_num_rows($rslt);
|
|
$camp_lists='';
|
|
$o=0;
|
|
while ($lists_to_print > $o) {
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$o++;
|
|
if (ereg("Y", $rowx[1])) {$camp_lists .= "'$rowx[0]',";}
|
|
}
|
|
$camp_lists = eregi_replace(".$","",$camp_lists);
|
|
|
|
$filterSQL = $filtersql_list[$lead_filter_id];
|
|
$filterSQL = eregi_replace("^and|and$|^or|or$","",$filterSQL);
|
|
if (strlen($filterSQL)>4)
|
|
{$fSQL = "and $filterSQL";}
|
|
else
|
|
{$fSQL = '';}
|
|
|
|
|
|
echo "<BR><BR>\n";
|
|
echo "<B>Montrer le nombre de fiches désactivées</B> -<BR><BR>\n";
|
|
echo "<B>CAMPAIGN:</B> $campaign_id<BR>\n";
|
|
echo "<B>LISTES:</B> $camp_lists<BR>\n";
|
|
echo "<B>STATUSES:</B> $dial_statuses<BR>\n";
|
|
echo "<B>FILTER:</B> $lead_filter_id<BR>\n";
|
|
echo "<B>CALL TIME:</B> $local_call_time<BR><BR>\n";
|
|
|
|
### call function to calculate and print dialable leads
|
|
dialable_leads($DB,$link,$local_call_time,$dial_statuses,$camp_lists,$fSQL);
|
|
|
|
echo "<BR><BR>\n";
|
|
echo "</BODY></HTML>\n";
|
|
|
|
exit;
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=7111111 view sample script with test variables
|
|
######################
|
|
|
|
if ($ADD==7111111)
|
|
{
|
|
##### TEST VARIABLES #####
|
|
$vendor_lead_code = 'VENDOR:LEAD;CODE';
|
|
$list_id = 'LISTID';
|
|
$gmt_offset_now = 'GMTOFFSET';
|
|
$phone_code = '1';
|
|
$phone_number = '7275551212';
|
|
$title = 'Mr.';
|
|
$first_name = 'JOHN';
|
|
$middle_initial = 'Q';
|
|
$last_name = 'PUBLIC';
|
|
$address1 = '1234 Main St.';
|
|
$address2 = 'Apt. 3';
|
|
$address3 = 'ADDRESS3';
|
|
$city = 'CHICAGO';
|
|
$state = 'IL';
|
|
$province = 'PROVINCE';
|
|
$postal_code = '33760';
|
|
$country_code = 'USA';
|
|
$gender = 'M';
|
|
$date_of_birth = '1970-01-01';
|
|
$alt_phone = '3125551212';
|
|
$email = 'test@test.com';
|
|
$security_phrase = 'SECUTIRY';
|
|
$comments = 'COMMENTS FIELD';
|
|
$RGfullname = 'JOE AGENT';
|
|
$RGuser = '6666';
|
|
$RGlead_id = '1234';
|
|
$RGcampaign = 'TESTCAMP';
|
|
$RGphone_login = 'gs102';
|
|
$RGgroup = 'TESTCAMP';
|
|
$RGchannel_group = 'TESTCAMP';
|
|
$RGSQLdate = date("Y-m-d H:i:s");
|
|
$RGepoch = date("U");
|
|
$RGuniqueid = '1163095830.4136';
|
|
$RGcustomer_zap_channel = 'Zap/1-1';
|
|
$RGserver_ip = '10.10.10.15';
|
|
$RGSIPexten = 'SIP/gs102';
|
|
$RGsession_id = '8600051';
|
|
|
|
echo "</title>\n";
|
|
echo "</head>\n";
|
|
echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT * from vicidial_scripts where script_id='$script_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$script_name = $row[1];
|
|
$script_text = $row[3];
|
|
|
|
if (eregi("iframe src",$script_text))
|
|
{
|
|
$vendor_lead_code = eregi_replace(' ','+',$vendor_lead_code);
|
|
$list_id = eregi_replace(' ','+',$list_id);
|
|
$gmt_offset_now = eregi_replace(' ','+',$gmt_offset_now);
|
|
$phone_code = eregi_replace(' ','+',$phone_code);
|
|
$phone_number = eregi_replace(' ','+',$phone_number);
|
|
$title = eregi_replace(' ','+',$title);
|
|
$first_name = eregi_replace(' ','+',$first_name);
|
|
$middle_initial = eregi_replace(' ','+',$middle_initial);
|
|
$last_name = eregi_replace(' ','+',$last_name);
|
|
$address1 = eregi_replace(' ','+',$address1);
|
|
$address2 = eregi_replace(' ','+',$address2);
|
|
$address3 = eregi_replace(' ','+',$address2);
|
|
$city = eregi_replace(' ','+',$city);
|
|
$state = eregi_replace(' ','+',$state);
|
|
$province = eregi_replace(' ','+',$province);
|
|
$postal_code = eregi_replace(' ','+',$postal_code);
|
|
$country_code = eregi_replace(' ','+',$country_code);
|
|
$gender = eregi_replace(' ','+',$gender);
|
|
$date_of_birth = eregi_replace(' ','+',$date_of_birth);
|
|
$alt_phone = eregi_replace(' ','+',$alt_phone);
|
|
$email = eregi_replace(' ','+',$email);
|
|
$security_phrase = eregi_replace(' ','+',$security_phrase);
|
|
$comments = eregi_replace(' ','+',$comments);
|
|
$RGfullname = eregi_replace(' ','+',$RGfullname);
|
|
$RGuser = eregi_replace(' ','+',$RGuser);
|
|
$RGlead_id = eregi_replace(' ','+',$RGlead_id);
|
|
$RGcampaign = eregi_replace(' ','+',$RGcampaign);
|
|
$RGphone_login = eregi_replace(' ','+',$RGphone_login);
|
|
$RGgroup = eregi_replace(' ','+',$RGgroup);
|
|
$RGchannel_group = eregi_replace(' ','+',$RGchannel_group);
|
|
$RGSQLdate = eregi_replace(' ','+',$RGSQLdate);
|
|
$RGepoch = eregi_replace(' ','+',$RGepoch);
|
|
$RGuniqueid = eregi_replace(' ','+',$RGuniqueid);
|
|
$RGcustomer_zap_channel = eregi_replace(' ','+',$RGcustomer_zap_channel);
|
|
$RGserver_ip = eregi_replace(' ','+',$RGserver_ip);
|
|
$RGSIPexten = eregi_replace(' ','+',$RGSIPexten);
|
|
$RGsession_id = eregi_replace(' ','+',$RGsession_id);
|
|
}
|
|
|
|
$script_text = eregi_replace('--A--vendor_lead_code--B--',"$vendor_lead_code",$script_text);
|
|
$script_text = eregi_replace('--A--list_id--B--',"$list_id",$script_text);
|
|
$script_text = eregi_replace('--A--gmt_offset_now--B--',"$gmt_offset_now",$script_text);
|
|
$script_text = eregi_replace('--A--phone_code--B--',"$phone_code",$script_text);
|
|
$script_text = eregi_replace('--A--phone_number--B--',"$phone_number",$script_text);
|
|
$script_text = eregi_replace('--A--title--B--',"$title",$script_text);
|
|
$script_text = eregi_replace('--A--first_name--B--',"$first_name",$script_text);
|
|
$script_text = eregi_replace('--A--middle_initial--B--',"$middle_initial",$script_text);
|
|
$script_text = eregi_replace('--A--last_name--B--',"$last_name",$script_text);
|
|
$script_text = eregi_replace('--A--address1--B--',"$address1",$script_text);
|
|
$script_text = eregi_replace('--A--address2--B--',"$address2",$script_text);
|
|
$script_text = eregi_replace('--A--address3--B--',"$address3",$script_text);
|
|
$script_text = eregi_replace('--A--city--B--',"$city",$script_text);
|
|
$script_text = eregi_replace('--A--state--B--',"$state",$script_text);
|
|
$script_text = eregi_replace('--A--province--B--',"$province",$script_text);
|
|
$script_text = eregi_replace('--A--postal_code--B--',"$postal_code",$script_text);
|
|
$script_text = eregi_replace('--A--country_code--B--',"$country_code",$script_text);
|
|
$script_text = eregi_replace('--A--gender--B--',"$gender",$script_text);
|
|
$script_text = eregi_replace('--A--date_of_birth--B--',"$date_of_birth",$script_text);
|
|
$script_text = eregi_replace('--A--alt_phone--B--',"$alt_phone",$script_text);
|
|
$script_text = eregi_replace('--A--email--B--',"$email",$script_text);
|
|
$script_text = eregi_replace('--A--security_phrase--B--',"$security_phrase",$script_text);
|
|
$script_text = eregi_replace('--A--comments--B--',"$comments",$script_text);
|
|
$script_text = eregi_replace('--A--fullname--B--',"$RGfullname",$script_text);
|
|
$script_text = eregi_replace('--A--fronter--B--',"$RGuser",$script_text);
|
|
$script_text = eregi_replace('--A--user--B--',"$RGuser",$script_text);
|
|
$script_text = eregi_replace('--A--lead_id--B--',"$RGlead_id",$script_text);
|
|
$script_text = eregi_replace('--A--campaign--B--',"$RGcampaign",$script_text);
|
|
$script_text = eregi_replace('--A--phone_login--B--',"$RGphone_login",$script_text);
|
|
$script_text = eregi_replace('--A--group--B--',"$RGgroup",$script_text);
|
|
$script_text = eregi_replace('--A--channel_group--B--',"$RGchannel_group",$script_text);
|
|
$script_text = eregi_replace('--A--SQLdate--B--',"$RGSQLdate",$script_text);
|
|
$script_text = eregi_replace('--A--epoch--B--',"$RGepoch",$script_text);
|
|
$script_text = eregi_replace('--A--uniqueid--B--',"$RGuniqueid",$script_text);
|
|
$script_text = eregi_replace('--A--customer_zap_channel--B--',"$RGcustomer_zap_channel",$script_text);
|
|
$script_text = eregi_replace('--A--server_ip--B--',"$RGserver_ip",$script_text);
|
|
$script_text = eregi_replace('--A--SIPexten--B--',"$RGSIPexten",$script_text);
|
|
$script_text = eregi_replace('--A--session_id--B--',"$RGsession_id",$script_text);
|
|
$script_text = eregi_replace("\n","<BR>",$script_text);
|
|
|
|
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "Prévisualisation du script: $script_id<BR>\n";
|
|
echo "<TABLE WIDTH=600><TR><TD>\n";
|
|
echo "<center><B>$script_name</B><BR></center>\n";
|
|
echo "$script_text\n";
|
|
echo "</TD></TR></TABLE></center>\n";
|
|
|
|
echo "</BODY></HTML>\n";
|
|
|
|
exit;
|
|
}
|
|
|
|
|
|
$ADMIN=$PHP_SELF;
|
|
require("admin_header.php");
|
|
|
|
|
|
|
|
|
|
|
|
######################################################################################################
|
|
######################################################################################################
|
|
####### 1 series, ADD NEW forms for inserting new records into the database
|
|
######################################################################################################
|
|
######################################################################################################
|
|
|
|
|
|
######################
|
|
# ADD=1 display the ADD NEW USER FORM SCREEN
|
|
######################
|
|
|
|
if ($ADD=="1")
|
|
{
|
|
if ($LOGmodify_users==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>AJOUTEZ UN NOUVEL UTILISATEUR<form action=$PHP_SELF method=POST name=userform id=userform>\n";
|
|
echo "<input type=hidden name=ADD value=2>\n";
|
|
echo "<input type=hidden name=user_toggle id=user_toggle value=0>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Numéro d'utilisateur : </td><td align=left><input type=text name=user id=user size=20 maxlength=10> <input type=button name=auto_user value=\"AUTO-GENERATE\" onClick=\"user_auto()\"> $NWB#vicidial_users-user$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Mot de passe:</td><td align=left><input type=text name=pass size=20 maxlength=10>$NWB#vicidial_users-pass$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom complet: </td><td align=left><input type=text name=full_name size=20 maxlength=100>$NWB#vicidial_users-full_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Niveau de l'utilisateur: </td><td align=left><select size=1 name=user_level>";
|
|
$h=1;
|
|
while ($h<=$LOGuser_level)
|
|
{
|
|
echo "<option>$h</option>";
|
|
$h++;
|
|
}
|
|
echo "</select>$NWB#vicidial_users-user_level$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Groupe utilisateur: </td><td align=left><select size=1 name=user_group>\n";
|
|
|
|
$stmt="SELECT user_group,group_name from vicidial_user_groups order by user_group";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$Ugroups_to_print = mysql_num_rows($rslt);
|
|
$Ugroups_list='';
|
|
|
|
$o=0;
|
|
while ($Ugroups_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$Ugroups_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
echo "$Ugroups_list";
|
|
echo "<option SELECTED>$user_group</option>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Login du téléphone: </td><td align=left><input type=text name=phone_login size=20 maxlength=20>$NWB#vicidial_users-phone_login$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Mot de passe du téléphone: </td><td align=left><input type=text name=phone_pass size=20 maxlength=20>$NWB#vicidial_users-phone_pass$NWE</td></tr>\n";
|
|
echo "</select>$NWB#vicidial_users-user_group$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=button name=VALIDER value=VALIDER onClick=\"user_submit()\"></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=1A display the COPY USER FORM SCREEN
|
|
######################
|
|
|
|
if ($ADD=="1A")
|
|
{
|
|
if ($LOGmodify_users==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>UTILISATEUR DE COPY<form action=$PHP_SELF method=POST name=userform id=userform>\n";
|
|
echo "<input type=hidden name=ADD value=2A>\n";
|
|
echo "<input type=hidden name=user_toggle id=user_toggle value=0>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Numéro d'utilisateur : </td><td align=left><input type=text name=user id=user size=20 maxlength=10> <input type=button name=auto_user value=\"AUTO-GENERATE\" onClick=\"user_auto()\"> $NWB#vicidial_users-user$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Mot de passe:</td><td align=left><input type=text name=pass size=20 maxlength=10>$NWB#vicidial_users-pass$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom complet: </td><td align=left><input type=text name=full_name size=20 maxlength=100>$NWB#vicidial_users-full_name$NWE</td></tr>\n";
|
|
|
|
if ($LOGuser_level==9) {$levelMAX=10;}
|
|
else {$levelMAX=$LOGuser_level;}
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Source Utilisateur: </td><td align=left><select size=1 name=source_user_id>\n";
|
|
|
|
$stmt="SELECT user,full_name from vicidial_users where user_level < $levelMAX order by full_name;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$Uusers_to_print = mysql_num_rows($rslt);
|
|
$Uusers_list='';
|
|
|
|
$o=0;
|
|
while ($Uusers_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$Uusers_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
echo "$Uusers_list";
|
|
echo "</select>$NWB#vicidial_users-user$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=button name=VALIDER value=VALIDER onClick=\"user_submit()\"></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=11 display the ADD NEW CAMPAIGN FORM SCREEN
|
|
######################
|
|
|
|
if ($ADD==11)
|
|
{
|
|
if ($LOGmodify_campaigns==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>AJOUTER UNE NOUVELLE CAMPAGNE<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=21>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>ID de la campagne: </td><td align=left><input type=text name=campaign_id size=10 maxlength=8>$NWB#vicidial_campaigns-campaign_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom de la campagne: </td><td align=left><input type=text name=campaign_name size=30 maxlength=30>$NWB#vicidial_campaigns-campaign_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Description de la campagne: </td><td align=left><input type=text name=campaign_description size=30 maxlength=255>$NWB#vicidial_campaigns-campaign_description$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Actif: </td><td align=left><select size=1 name=active><option>Y</option><option>N</option></select>$NWB#vicidial_campaigns-active$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Extension du parc: </td><td align=left><input type=text name=park_ext size=10 maxlength=10>$NWB#vicidial_campaigns-park_ext$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom du fichier de mise en attente: </td><td align=left><input type=text name=park_file_name size=10 maxlength=10>$NWB#vicidial_campaigns-park_file_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Formulaire Web: </td><td align=left><input type=text name=web_form_address size=70 maxlength=255>$NWB#vicidial_campaigns-web_form_address$NWE</td></tr>\n";
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Autoriser les closers: </td><td align=left><select size=1 name=allow_closers><option>Y</option><option>N</option></select>$NWB#vicidial_campaigns-allow_closers$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Niveau du distributeur de fiches: </td><td align=left><select size=1 name=hopper_level><option>1</option><option>5</option><option>10</option><option>20</option><option>50</option><option>100</option><option>200</option><option>500</option><option>1000</option><option>2000</option></select>$NWB#vicidial_campaigns-hopper_level$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Niveau de l'appel automatique: </td><td align=left><select size=1 name=auto_dial_level><option selected>0</option><option>1</option><option>1.1</option><option>1.2</option><option>1.3</option><option>1.4</option><option>1.5</option><option>1.6</option><option>1.7</option><option>1.8</option><option>1.9</option><option>2.0</option><option>2.2</option><option>2.5</option><option>2.7</option><option>3.0</option><option>3.5</option><option>4.0</option></select>(0 = off)$NWB#vicidial_campaigns-auto_dial_level$NWE</td></tr>\n";
|
|
}
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Appeler l'agent suivant : </td><td align=left><select size=1 name=next_agent_call><option >random</option><option>oldest_call_start</option><option>oldest_call_finish</option><option>overall_user_level</option><option>campaign_rank</option><option>fewest_calls</option></select>$NWB#vicidial_campaigns-next_agent_call$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Heure d'appel locale: </td><td align=left><select size=1 name=local_call_time>";
|
|
echo "$call_times_list";
|
|
echo "</select>$NWB#vicidial_campaigns-local_call_time$NWE</td></tr>\n";
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Boîte vocale: </td><td align=left><input type=text name=voicemail_ext size=10 maxlength=10 value=\"$voicemail_ext\">$NWB#vicidial_campaigns-voicemail_ext$NWE</td></tr>\n";
|
|
}
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Script: </td><td align=left><select size=1 name=script_id>\n";
|
|
echo "$scripts_list";
|
|
echo "</select>$NWB#vicidial_campaigns-campaign_script$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Lancer l'appel: </td><td align=left><select size=1 name=get_call_launch><option selected>NONE</option><option>SCRIPT</option><option>WEBFORM</option></select>$NWB#vicidial_campaigns-get_call_launch$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=12 display the COPY CAMPAIGN FORM SCREEN
|
|
######################
|
|
|
|
if ($ADD==12)
|
|
{
|
|
if ($LOGmodify_campaigns==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>CopieUne CAMPAGNE<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=20>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>ID de la campagne: </td><td align=left><input type=text name=campaign_id size=10 maxlength=8>$NWB#vicidial_campaigns-campaign_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom de la campagne: </td><td align=left><input type=text name=campaign_name size=30 maxlength=30>$NWB#vicidial_campaigns-campaign_name$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Campagne De Source :</td><td align=left><select size=1 name=source_campaign_id>\n";
|
|
|
|
$stmt="SELECT campaign_id,campaign_name from vicidial_campaigns order by campaign_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$campaigns_to_print = mysql_num_rows($rslt);
|
|
$campaigns_list='';
|
|
|
|
$o=0;
|
|
while ($campaigns_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$campaigns_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
echo "$campaigns_list";
|
|
echo "</select>$NWB#vicidial_campaigns-campaign_id$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2>NOTE: Copie d'une campagne vous permettra de copier tous les paramètres de campagne, le capitaine que vous sélectionnez, mais il ne sera pas copier une campagne spécifique DNC liste s'il y en a un sur le maître, sélectionnez la campagne.</td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=111 display the ADD NEW LIST FORM SCREEN
|
|
######################
|
|
|
|
if ($ADD==111)
|
|
{
|
|
if ($LOGmodify_lists==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>ADD A NEW LIST<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=211>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>ID de la liste: </td><td align=left><input type=text name=list_id size=8 maxlength=8> (chiffres seulement)$NWB#vicidial_lists-list_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom de la liste: </td><td align=left><input type=text name=list_name size=20 maxlength=20>$NWB#vicidial_lists-list_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Description de la liste: </td><td align=left><input type=text name=list_description size=30 maxlength=255>$NWB#vicidial_lists-list_description$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Campagne: </td><td align=left><select size=1 name=campaign_id>\n";
|
|
|
|
$stmt="SELECT campaign_id,campaign_name from vicidial_campaigns order by campaign_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$campaigns_to_print = mysql_num_rows($rslt);
|
|
$campaigns_list='';
|
|
|
|
$o=0;
|
|
while ($campaigns_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$campaigns_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
echo "$campaigns_list";
|
|
echo "<option SELECTED>$campaign_id</option>\n";
|
|
echo "</select>$NWB#vicidial_lists-campaign_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Actif: </td><td align=left><select size=1 name=active><option>Y</option><option SELECTED>N</option></select>$NWB#vicidial_lists-active$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=121 display the ADD NUMBER TO DNC FORM SCREEN and add a new number
|
|
######################
|
|
|
|
if ($ADD==121)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$campaigns_list = "<option SELECTED value=\"SYSTEM_INTERNAL\">SYSTEM_INTERNAL - INTERNAL VICIDIAL DNC LIST</option>\n";
|
|
|
|
$stmt="SELECT campaign_id,campaign_name from vicidial_campaigns where use_campaign_dnc='Y' order by campaign_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$campaigns_to_print = mysql_num_rows($rslt);
|
|
|
|
$o=0;
|
|
while ($campaigns_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$campaigns_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
|
|
if (strlen($phone_numbers) > 2)
|
|
{
|
|
$PN = explode("\n",$phone_numbers);
|
|
$PNct = count($PN);
|
|
$p=0;
|
|
while ($p < $PNct)
|
|
{
|
|
if (ereg('SYSTEM_INTERNAL',$campaign_id))
|
|
{
|
|
$stmt="SELECT count(*) from vicidial_dnc where phone_number='$PN[$p]';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>DNC NON AJOUTE - Ce numéro de téléphone est déjà dans la liste Do Not Call: $PN[$p]\n";}
|
|
else
|
|
{
|
|
$stmt="INSERT INTO vicidial_dnc (phone_number) values('$PN[$p]');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>DNC AJOUTE: $PN[$p]</B>\n";
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='LISTES', event_type='ADD', record_id='$PN[$p]', event_code='ADMIN AJOUTER LE NUMERO A LA LISTE DNC LIST', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
$stmt="SELECT count(*) from vicidial_campaign_dnc where phone_number='$PN[$p]' and campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>DNC NON AJOUTE - Ce numéro de téléphone est déjà dans la liste Do Not Call: $PN[$p] $campaign_id\n";}
|
|
else
|
|
{
|
|
$stmt="INSERT INTO vicidial_campaign_dnc (phone_number,campaign_id) values('$PN[$p]','$campaign_id');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>DNC AJOUTE: $PN[$p] $campaign_id</B>\n";
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='LISTES', event_type='ADD', record_id='$PN[$p]', event_code='ADMIN ADD NUMBER TO CAMPAIGN DNC LIST $campaign_id', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
$p++;
|
|
}
|
|
}
|
|
|
|
echo "<br>Ajouter des numéros dans DNC LISTE<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=121>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>List: </td><td align=left><select size=1 name=campaign_id>\n";
|
|
echo "$campaigns_list";
|
|
echo "</select></td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Numéros de téléphone:<BR><BR> (un numéro de téléphone par ligne seulement)<BR>$NWB#vicidial_list-dnc$NWE</td><td align=left><TEXTAREA name=phone_numbers ROWS=20 COLS=20></TEXTAREA></td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=1111 display the ADD NEW INBOUND GROUP SCREEN
|
|
######################
|
|
|
|
if ($ADD==1111)
|
|
{
|
|
if ($LOGmodify_ingroups==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>AJOUTER UN NOUVEAU GROUPE ENTRANT<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=2111>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>ID du groupe: </td><td align=left><input type=text name=group_id size=20 maxlength=20> (no spaces)$NWB#vicidial_inbound_groups-group_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom du groupe: </td><td align=left><input type=text name=group_name size=30 maxlength=30>$NWB#vicidial_inbound_groups-group_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Couleur du groupe: </td><td align=left id=\"group_color_td\"><input type=text name=group_color size=7 maxlength=7>$NWB#vicidial_inbound_groups-group_color$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Actif: </td><td align=left><select size=1 name=active><option SELECTED>Y</option><option>N</option></select>$NWB#vicidial_inbound_groups-active$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Formulaire Web: </td><td align=left><input type=text name=web_form_address size=70 maxlength=255 value=\"$web_form_address\">$NWB#vicidial_inbound_groups-web_form_address$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Boîte vocale: </td><td align=left><input type=text name=voicemail_ext size=10 maxlength=10 value=\"$voicemail_ext\">$NWB#vicidial_inbound_groups-voicemail_ext$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Appeler l'agent suivant : </td><td align=left><select size=1 name=next_agent_call><option >random</option><option>oldest_call_start</option><option>oldest_call_finish</option><option>overall_user_level</option><option>inbound_group_rank</option><option>campaign_rank</option><option>fewest_calls</option><option>fewest_calls_campaign</option></select>$NWB#vicidial_inbound_groups-next_agent_call$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Affichage de l'enseigne: </td><td align=left><select size=1 name=fronter_display><option SELECTED>Y</option><option>N</option></select>$NWB#vicidial_inbound_groups-fronter_display$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Script: </td><td align=left><select size=1 name=script_id>\n";
|
|
echo "$scripts_list";
|
|
echo "</select>$NWB#vicidial_inbound_groups-ingroup_script$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Lancer l'appel: </td><td align=left><select size=1 name=get_call_launch><option selected>NONE</option><option>SCRIPT</option><option>WEBFORM</option></select>$NWB#vicidial_inbound_groups-get_call_launch$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=1211 display the COPY INBOUND GROUP SCREEN
|
|
######################
|
|
|
|
if ($ADD==1211)
|
|
{
|
|
if ($LOGmodify_ingroups==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>GROUPE D'ARRIVÉE DE COPY<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=2011>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>ID du groupe: </td><td align=left><input type=text name=group_id size=20 maxlength=20> (no spaces)$NWB#vicidial_inbound_groups-group_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom du groupe: </td><td align=left><input type=text name=group_name size=30 maxlength=30>$NWB#vicidial_inbound_groups-group_name$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Source ID du groupe: </td><td align=left><select size=1 name=source_group_id>\n";
|
|
|
|
$stmt="SELECT group_id,group_name from vicidial_inbound_groups order by group_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$groups_to_print = mysql_num_rows($rslt);
|
|
$groups_list='';
|
|
|
|
$o=0;
|
|
while ($groups_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$groups_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
echo "$groups_list";
|
|
echo "</select>$NWB#vicidial_inbound_groups-group_id$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=1311 display the ADD NEW DID SCREEN
|
|
######################
|
|
|
|
if ($ADD==1311)
|
|
{
|
|
if ($LOGmodify_dids==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>AJOUTER UN NOUVEAU NE<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=2311>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>DID Extension:</td><td align=left><input type=text name=did_pattern size=20 maxlength=50> (no spaces or dashes)$NWB#vicidial_inbound_dids-did_pattern$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>A Description:</td><td align=left><input type=text name=did_description size=40 maxlength=50>$NWB#vicidial_inbound_dids-did_description$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=1411 display the COPY DID SCREEN
|
|
######################
|
|
|
|
if ($ADD==1411)
|
|
{
|
|
if ($LOGmodify_dids==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>COPY DID<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=2411>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>DID Extension:</td><td align=left><input type=text name=did_pattern size=20 maxlength=50> (no spaces or dashes)$NWB#vicidial_inbound_dids-did_pattern$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>A Description:</td><td align=left><input type=text name=did_description size=40 maxlength=50>$NWB#vicidial_inbound_dids-did_description$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Source DID:</td><td align=left><select size=1 name=source_did>\n";
|
|
|
|
$stmt="SELECT did_id,did_pattern,did_description from vicidial_inbound_dids order by did_pattern";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$dids_to_print = mysql_num_rows($rslt);
|
|
$dids_list='';
|
|
|
|
$o=0;
|
|
while ($dids_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$dids_list .= "<option value=\"$rowx[0]\">$rowx[1] - $rowx[2]</option>\n";
|
|
$o++;
|
|
}
|
|
echo "$dids_list";
|
|
echo "</select>$NWB#vicidial_inbound_dids-did_pattern$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=11111 display the ADD NEW REMOTE AGENTS SCREEN
|
|
######################
|
|
|
|
if ($ADD==11111)
|
|
{
|
|
if ($LOGmodify_remoteagents==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>AJOUTER UN NOUVEL AGENT DISTANT<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=21111>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Début des ID utilisateurs: </td><td align=left><input type=text name=user_start size=6 maxlength=6> (nombres seulement, incremented)$NWB#vicidial_remote_agents-user_start$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nombre de lignes: </td><td align=left><input type=text name=number_of_lines size=3 maxlength=3> (nombres seulement)$NWB#vicidial_remote_agents-number_of_lines$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>IP du serveur: </td><td align=left><select size=1 name=server_ip>\n";
|
|
echo "$servers_list";
|
|
echo "</select>$NWB#vicidial_remote_agents-server_ip$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Extension externe: </td><td align=left><input type=text name=conf_exten size=20 maxlength=20> (numéro du dial plan pour atteindre les agents)$NWB#vicidial_remote_agents-conf_exten$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Etat: </td><td align=left><select size=1 name=status><option>ACTIF</option><option SELECTED>INACTIVE</option></select>$NWB#vicidial_remote_agents-status$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Campagne: </td><td align=left><select size=1 name=campaign_id>\n";
|
|
echo "$campaigns_list";
|
|
echo "</select>$NWB#vicidial_remote_agents-campaign_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Groupes entrants: </td><td align=left>\n";
|
|
echo "$groups_list";
|
|
echo "$NWB#vicidial_remote_agents-closer_campaigns$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
echo "NOTE: Il peut prendre jusqu'à 30 secondes pour que les chagements soumis sur cette écran soient pris en compte\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=111111 display the ADD NEW USERS GROUP SCREEN
|
|
######################
|
|
|
|
if ($ADD==111111)
|
|
{
|
|
if ($LOGmodify_usergroups==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>AJOUTER UN NOUVEAU GROUPE D'UTILISATEUR<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=211111>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Groupe: </td><td align=left><input type=text name=user_group size=15 maxlength=20> (pas d'espace ni de ponctuation)$NWB#vicidial_user_groups-user_group$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Description: </td><td align=left><input type=text name=group_name size=40 maxlength=40> (Description du groupe)$NWB#vicidial_user_groups-group_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=1111111 display the ADD NEW SCRIPT SCREEN
|
|
######################
|
|
|
|
if ($ADD==1111111)
|
|
{
|
|
if ($LOGmodify_scripts==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>ADD NEW SCRIPT<form name=scriptForm action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=2111111>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>ID du script: </td><td align=left><input type=text name=script_id size=12 maxlength=10> (pas d'espace ni de ponctuation)$NWB#vicidial_scripts-script_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom du script: </td><td align=left><input type=text name=script_name size=40 maxlength=50> (titre du script)$NWB#vicidial_scripts-script_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Commentaires du script: </td><td align=left><input type=text name=script_comments size=50 maxlength=255> $NWB#vicidial_scripts-script_comments$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Actif: </td><td align=left><select size=1 name=active><option SELECTED>Y</option><option>N</option></select>$NWB#vicidial_scripts-active$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Texte du script: </td><td align=left>";
|
|
# BEGIN Insert Field
|
|
echo "<select id=\"selectedField\" name=\"selectedField\">";
|
|
echo "<option>vendor_lead_code</option>";
|
|
echo "<option>source_id</option>";
|
|
echo "<option>list_id</option>";
|
|
echo "<option>gmt_offset_now</option>";
|
|
echo "<option>called_since_last_reset</option>";
|
|
echo "<option>phone_code</option>";
|
|
echo "<option>phone_number</option>";
|
|
echo "<option>title</option>";
|
|
echo "<option>first_name</option>";
|
|
echo "<option>middle_initial</option>";
|
|
echo "<option>last_name</option>";
|
|
echo "<option>address1</option>";
|
|
echo "<option>address2</option>";
|
|
echo "<option>address3</option>";
|
|
echo "<option>city</option>";
|
|
echo "<option>state</option>";
|
|
echo "<option>province</option>";
|
|
echo "<option>postal_code</option>";
|
|
echo "<option>country_code</option>";
|
|
echo "<option>gender</option>";
|
|
echo "<option>date_of_birth</option>";
|
|
echo "<option>alt_phone</option>";
|
|
echo "<option>email</option>";
|
|
echo "<option>security_phrase</option>";
|
|
echo "<option>comments</option>";
|
|
echo "<option>lead_id</option>";
|
|
echo "<option>campaign</option>";
|
|
echo "<option>phone_login</option>";
|
|
echo "<option>group</option>";
|
|
echo "<option>channel_group</option>";
|
|
echo "<option>SQLdate</option>";
|
|
echo "<option>epoch</option>";
|
|
echo "<option>uniqueid</option>";
|
|
echo "<option>customer_zap_channel</option>";
|
|
echo "<option>server_ip</option>";
|
|
echo "<option>SIPexten</option>";
|
|
echo "<option>session_id</option>";
|
|
echo "</select>";
|
|
echo "<input type=\"button\" name=\"insertField\" value=\"Insert\" onClick=\"scriptInsertField();\"><BR>";
|
|
# END Insert Field
|
|
echo "<TEXTAREA NAME=script_text ROWS=20 COLS=50 value=\"\"></TEXTAREA> $NWB#vicidial_scripts-script_text$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=11111111 display the ADD NEW FILTER SCREEN
|
|
######################
|
|
|
|
if ($ADD==11111111)
|
|
{
|
|
if ($LOGmodify_filters==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>AJOUTER UN NOUVEAU FILTRE<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=21111111>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>ID du filtre:</td><td align=left><input type=text name=lead_filter_id size=12 maxlength=10> (pas d'espace ni de ponctuation)$NWB#vicidial_lead_filters-lead_filter_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom du filtre:</td><td align=left><input type=text name=lead_filter_name size=30 maxlength=30> (courte description du filtre)$NWB#vicidial_lead_filters-lead_filter_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Commentaires du filtre:</td><td align=left><input type=text name=lead_filter_comments size=50 maxlength=255> $NWB#vicidial_lead_filters-lead_filter_comments$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Filtre Sql: </td><td align=left><TEXTAREA NAME=lead_filter_sql ROWS=20 COLS=50 value=\"\"></TEXTAREA> $NWB#vicidial_lead_filters-lead_filter_sql$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=111111111 display the ADD NEW CALL TIME SCREEN
|
|
######################
|
|
|
|
if ($ADD==111111111)
|
|
{
|
|
if ($LOGmodify_call_times==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>AJOUTER UNE NOUVELLE PERIODE D'APPELS<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=211111111>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Identifiant de la période d'appels: </td><td align=left><input type=text name=call_time_id size=12 maxlength=10> (pas d'espace ni de ponctuation)$NWB#vicidial_call_times-call_time_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom de la période d'appels: </td><td align=left><input type=text name=call_time_name size=30 maxlength=30> (courte description de la période d'appel)$NWB#vicidial_call_times-call_time_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Commentaires de la période d'appels: </td><td align=left><input type=text name=call_time_comments size=50 maxlength=255> $NWB#vicidial_call_times-call_time_comments$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2>Les options pour l'heure et le jour apparaitront une fois que vous aurez créé la période d'appels</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=1111111111 display the ADD NEW STATE CALL TIME SCREEN
|
|
######################
|
|
|
|
if ($ADD==1111111111)
|
|
{
|
|
if ($LOGmodify_call_times==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>AJOUTER UNE NOUVELLE PERIODE D'APPELS D'ETAT<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=2111111111>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Identifiant de la période d'appels d'état: </td><td align=left><input type=text name=call_time_id size=12 maxlength=10> (pas d'espace ni de ponctuation)$NWB#vicidial_call_times-call_time_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>State Call Time State: </td><td align=left><input type=text name=state_call_time_state size=4 maxlength=2> (pas d'espace ni de ponctuation)$NWB#vicidial_call_times-state_call_time_state$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom de la période d'appels d'état: </td><td align=left><input type=text name=call_time_name size=30 maxlength=30> (courte description de la période d'appel)$NWB#vicidial_call_times-call_time_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Commentaires de la période d'appels d'état: </td><td align=left><input type=text name=call_time_comments size=50 maxlength=255> $NWB#vicidial_call_times-call_time_comments$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2>Les options pour l'heure et le jour apparaitront une fois que vous aurez créé la période d'appels</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=131111111 display the ADD NEW SHIFT SCREEN
|
|
######################
|
|
|
|
if ($ADD==131111111)
|
|
{
|
|
if ($LOGmodify_call_times==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>ADD NEW SHIFT<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=231111111>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Shift ID:</td><td align=left><input type=text name=shift_id size=22 maxlength=20> (pas d'espace ni de ponctuation)$NWB#vicidial_shifts-shift_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Shift Nom:</td><td align=left><input type=text name=shift_name size=50 maxlength=50> (brève description de l'évolution)$NWB#vicidial_shifts-shift_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Start Time Shift:</td><td align=left><input type=text name=shift_start_time size=5 maxlength=4 id=shift_start_time>\n";
|
|
echo " End Time Shift:<input type=text name=shift_end_time size=5 maxlength=4 id=shift_end_time>\n";
|
|
echo "<input type=button name=shift_calc value=\"Calculate Longueur Shift\" onClick=\"shift_time();\"> $NWB#vicidial_shifts-shift_start_time$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Longueur Shift: </td><td align=left><input type=text name=shift_length id=shift_length size=6 maxlength=5> $NWB#vicidial_shifts-shift_length$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Shift-Ven:<BR>$NWB#vicidial_shifts-shift_weekdays$NWE</td><td align=left>\n";
|
|
echo "<input type=\"checkbox\" name=\"shift_weekdays[]\" value=\"0\">Dimanche<BR>\n";
|
|
echo "<input type=\"checkbox\" name=\"shift_weekdays[]\" value=\"1\">Lundi<BR>\n";
|
|
echo "<input type=\"checkbox\" name=\"shift_weekdays[]\" value=\"2\">Mardi<BR>\n";
|
|
echo "<input type=\"checkbox\" name=\"shift_weekdays[]\" value=\"3\">Mercredi<BR>\n";
|
|
echo "<input type=\"checkbox\" name=\"shift_weekdays[]\" value=\"4\">Jeudi<BR>\n";
|
|
echo "<input type=\"checkbox\" name=\"shift_weekdays[]\" value=\"5\">Vendredi<BR>\n";
|
|
echo "<input type=\"checkbox\" name=\"shift_weekdays[]\" value=\"6\">Samedi<BR>\n";
|
|
echo "</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=11111111111 display the ADD NEW PHONE SCREEN
|
|
######################
|
|
|
|
if ($ADD==11111111111)
|
|
{
|
|
if ($LOGast_admin_access==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>AJOUTER UN NOUVEAU TELEPHONE<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=21111111111>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Extension du téléphone: </td><td align=left><input type=text name=extension size=20 maxlength=100 value=\"\">$NWB#phones-extension$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nuémro dans le dial plan: </td><td align=left><input type=text name=dialplan_number size=15 maxlength=20> (chiffres seulement)$NWB#phones-dialplan_number$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Boîte vocale:</td><td align=left><input type=text name=voicemail_id size=10 maxlength=10> (chiffres seulement)$NWB#phones-voicemail_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>CallerID sortant: </td><td align=left><input type=text name=outbound_cid size=10 maxlength=20> (chiffres seulement)$NWB#phones-outbound_cid$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Adresse IP du téléphone: </td><td align=left><input type=text name=phone_ip size=20 maxlength=15> (optional)$NWB#phones-phone_ip$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Adresse IP de l'ordinateur: </td><td align=left><input type=text name=computer_ip size=20 maxlength=15> (optional)$NWB#phones-computer_ip$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>IP du serveur: </td><td align=left><select size=1 name=server_ip>\n";
|
|
|
|
echo "$servers_list";
|
|
echo "<option SELECTED>$row[5]</option>\n";
|
|
echo "</select>$NWB#phones-server_ip$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Login: </td><td align=left><input type=text name=login size=10 maxlength=10>$NWB#phones-login$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Mot de passe:</td><td align=left><input type=text name=pass size=10 maxlength=10>$NWB#phones-pass$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Etat: </td><td align=left><select size=1 name=status><option SELECTED>ACTIF</option><option>SUSPENDED</option><option>CLOSED</option><option>PENDING</option><option>ADMIN</option></select>$NWB#phones-status$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Compte actif: </td><td align=left><select size=1 name=active><option SELECTED>Y</option><option>N</option></select>$NWB#phones-active$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Type de téléphone: </td><td align=left><input type=text name=phone_type size=20 maxlength=50>$NWB#phones-phone_type$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom complet: </td><td align=left><input type=text name=fullname size=20 maxlength=50>$NWB#phones-fullname$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Compagnie: </td><td align=left><input type=text name=company size=10 maxlength=10>$NWB#phones-company$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Image: </td><td align=left><input type=text name=picture size=20 maxlength=19>$NWB#phones-picture$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Protocole client: </td><td align=left><select size=1 name=protocol><option SELECTED>SIP</option><option>Zap</option><option>IAX2</option><option>EXTERNAL</option></select>$NWB#phones-protocol$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>GMT local: </td><td align=left><select size=1 name=local_gmt><option>12.75</option><option>12.00</option><option>11.00</option><option>10.00</option><option>9.50</option><option>9.00</option><option>8.00</option><option>7.00</option><option>6.50</option><option>6.00</option><option>5.75</option><option>5.50</option><option>5.00</option><option>4.50</option><option>4.00</option><option>3.50</option><option>3.00</option><option>2.00</option><option>1.00</option><option>0.00</option><option>-1.00</option><option>-2.00</option><option>-3.00</option><option>-3.50</option><option>-4.00</option><option SELECTED>-5.00</option><option>-6.00</option><option>-7.00</option><option>-8.00</option><option>-9.00</option><option>-10.00</option><option>-11.00</option><option>-12.00</option></select> (Ne PAS ajuster pour DST)$NWB#phones-local_gmt$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=submit VALUE=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=12111111111 display the ADD NEW PHONE ALIAS SCREEN
|
|
######################
|
|
|
|
if ($ADD==12111111111)
|
|
{
|
|
if ($LOGast_admin_access==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>Ajouter un nouveau téléphone ALIAS<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=22111111111>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Alias ID:</td><td align=left><input type=text name=alias_id size=20 maxlength=20 value=\"\">$NWB#phones-alias_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Alias Nom:</td><td align=left><input type=text name=alias_name size=30 maxlength=50> $NWB#phones-alias_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Téléphone Connexions List:</td><td align=left><input type=text name=logins_list size=50 maxlength=255> (comma separated)$NWB#phones-logins_list$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=submit VALUE=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=13111111111 display the ADD NEW GROUP ALIAS SCREEN
|
|
######################
|
|
|
|
if ($ADD==13111111111)
|
|
{
|
|
if ($LOGast_admin_access==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>Ajouter un nouveau groupe ALIAS<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=23111111111>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Alias Groupe ID: </td><td align=left><input type=text name=group_alias_id size=30 maxlength=30 value=\"\">$NWB#phones-group_alias_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom du groupe Alias: </td><td align=left><input type=text name=group_alias_name size=30 maxlength=50> $NWB#phones-group_alias_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nombre CallerID: </td><td align=left><input type=text name=caller_id_number size=20 maxlength=20> $NWB#phones-caller_id_number$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>CallerID Nom: </td><td align=left><input type=text name=caller_id_name size=20 maxlength=20> $NWB#phones-caller_id_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Actif: </td><td align=left><select size=1 name=active><option>Y</option><option selected>N</option></select></td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=submit VALUE=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=111111111111 display the ADD NEW SERVER SCREEN
|
|
######################
|
|
|
|
if ($ADD==111111111111)
|
|
{
|
|
if ($LOGmodify_servers==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>AJOUTER UN NOUVEAU SERVEUR<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=211111111111>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>ID du serveur: </td><td align=left><input type=text name=server_id size=10 maxlength=10>$NWB#servers-server_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Description du serveur: </td><td align=left><input type=text name=server_description size=30 maxlength=255>$NWB#servers-server_description$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Adresse IP du serveur: </td><td align=left><input type=text name=server_ip size=20 maxlength=15>$NWB#servers-server_ip$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Actif: </td><td align=left><select size=1 name=active><option>Y</option><option>N</option></select>$NWB#servers-active$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Version d'Asterisk: </td><td align=left><input type=text name=asterisk_version size=20 maxlength=20>$NWB#servers-asterisk_version$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=submit VALUE=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=131111111111 display the ADD NEW CONF TEMPLATE SCREEN
|
|
######################
|
|
|
|
if ($ADD==131111111111)
|
|
{
|
|
if ($LOGmodify_servers==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>ADD NEW CONF TEMPLATE<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=231111111111>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Template ID: </td><td align=left><input type=text name=template_id size=15 maxlength=15>$NWB#vicidial_conf_templates-template_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom du modèle: </td><td align=left><input type=text name=template_name size=40 maxlength=50>$NWB#vicidial_conf_templates-template_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Template Sommaire: </td><td align=left><TEXTAREA NAME=template_contents ROWS=10 COLS=70></TEXTAREA> $NWB#vicidial_conf_templates-template_contents$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=submit VALUE=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=141111111111 display the ADD NEW CARRIER SCREEN
|
|
######################
|
|
|
|
if ($ADD==141111111111)
|
|
{
|
|
if ($LOGmodify_servers==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>ADD NEW CARRIER<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=241111111111>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Carrier ID: </td><td align=left><input type=text name=carrier_id size=15 maxlength=15>$NWB#vicidial_server_carriers-carrier_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom du transporteur: </td><td align=left><input type=text name=carrier_name size=40 maxlength=50>$NWB#vicidial_server_carriers-carrier_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Inscription à cordes: </td><td align=left><input type=text name=registration_string size=50 maxlength=255>$NWB#vicidial_server_carriers-registration_string$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Template ID: </td><td align=left><select size=1 name=template_id>\n";
|
|
$stmt="SELECT template_id,template_name from vicidial_conf_templates order by template_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$templates_to_print = mysql_num_rows($rslt);
|
|
$templates_list='<option SELECTED>--NONE--</option>';
|
|
$o=0;
|
|
while ($templates_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$templates_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
echo "$templates_list";
|
|
echo "</select>$NWB#vicidial_server_carriers-template_id$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Entrée de compte: </td><td align=left><TEXTAREA NAME=account_entry ROWS=10 COLS=70></TEXTAREA> $NWB#vicidial_server_carriers-account_entry$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Protocole: </td><td align=left><select size=1 name=protocol><option SELECTED>SIP</option><option>Zap</option><option>IAX2</option><option>EXTERNAL</option></select>$NWB#vicidial_server_carriers-protocol$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Globals String: </td><td align=left><input type=text name=globals_string size=50 maxlength=255>$NWB#vicidial_server_carriers-globals_string$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Dialplan Entrée: </td><td align=left><TEXTAREA NAME=dialplan_entry ROWS=10 COLS=70></TEXTAREA> $NWB#vicidial_server_carriers-dialplan_entry$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>IP du serveur: </td><td align=left><select size=1 name=server_ip>\n";
|
|
##### get server listing for dynamic pulldown
|
|
$stmt="SELECT server_ip,server_description from servers order by server_ip";
|
|
$rsltx=mysql_query($stmt, $link);
|
|
$servers_to_print = mysql_num_rows($rsltx);
|
|
$servers_list='';
|
|
|
|
$o=0;
|
|
while ($servers_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rsltx);
|
|
$servers_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "$servers_list";
|
|
echo "</select>$NWB#vicidial_server_carriers-server_ip$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=submit VALUE=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=1111111111111 display the ADD NEW CONFERENCE SCREEN
|
|
######################
|
|
|
|
if ($ADD==1111111111111)
|
|
{
|
|
if ($LOGast_admin_access==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>AJOUTER UNE NOUVELLE CONFERENCE<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=2111111111111>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Numéro de la conférence: </td><td align=left><input type=text name=conf_exten size=8 maxlength=7> (chiffres seulement)$NWB#conferences-conf_exten$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>IP du serveur: </td><td align=left><select size=1 name=server_ip>\n";
|
|
|
|
echo "$servers_list";
|
|
echo "<option SELECTED>$server_ip</option>\n";
|
|
echo "</select>$NWB#conferences-server_ip$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=submit VALUE=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=11111111111111 display the ADD NEW VICIDIAL CONFERENCE SCREEN
|
|
######################
|
|
|
|
if ($ADD==11111111111111)
|
|
{
|
|
if ($LOGast_admin_access==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>ADD A NEW VICIDIAL CONFERENCE<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=21111111111111>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Numéro de la conférence: </td><td align=left><input type=text name=conf_exten size=8 maxlength=7> (chiffres seulement)$NWB#conferences-conf_exten$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>IP du serveur: </td><td align=left><select size=1 name=server_ip>\n";
|
|
|
|
echo "$servers_list";
|
|
echo "<option SELECTED>$server_ip</option>\n";
|
|
echo "</select>$NWB#conferences-server_ip$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=submit VALUE=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
######################################################################################################
|
|
######################################################################################################
|
|
####### 2 series, validates form data and inserts the new record into the database
|
|
######################################################################################################
|
|
######################################################################################################
|
|
|
|
|
|
######################
|
|
# ADD=2 adds the new user to the system
|
|
######################
|
|
|
|
if ($ADD=="2")
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_users where user='$user';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>UTILISATEUR NON AJOUTE - il y a déjà un utilisateur dans le système avec ce numéro d'utilisateur\n";}
|
|
else
|
|
{
|
|
if (ereg('AUTOGENERA',$user))
|
|
{
|
|
$user = 'AUTOGENERA';
|
|
}
|
|
if ( (strlen($user) < 2) or (strlen($pass) < 2) or (strlen($full_name) < 2) or ( (strlen($user) > 10) and (!ereg('AUTOGENERA',$user)) ) )
|
|
{
|
|
echo "<br>UTILISATEUR NON AJOUTE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>user id must be between 2 and 10 characters long\n";
|
|
echo "<br>le nom et le mot de passe doivent contenir au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
if (ereg('AUTOGENERA',$user))
|
|
{
|
|
$new_user=0;
|
|
$auto_user_add_value=0;
|
|
while ($new_user < 2)
|
|
{
|
|
if ($new_user < 1)
|
|
{
|
|
$stmt = "SELECT auto_user_add_value FROM system_settings;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$ss_auav_ct = mysql_num_rows($rslt);
|
|
if ($ss_auav_ct > 0)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$auto_user_add_value = $row[0];
|
|
}
|
|
$new_user++;
|
|
}
|
|
$stmt = "SELECT count(*) FROM vicidial_users where user='$auto_user_add_value';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] < 1)
|
|
{
|
|
$new_user++;
|
|
}
|
|
else
|
|
{
|
|
echo "<!-- AG: $auto_user_add_value -->\n";
|
|
$auto_user_add_value = ($auto_user_add_value + 7);
|
|
}
|
|
}
|
|
$user = $auto_user_add_value;
|
|
echo "<br><B>user_id has been auto-generated: $user</B><br>\n";
|
|
|
|
$stmt="UPDATE system_settings SET auto_user_add_value='$user';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
echo "<br><B>UTILISATEUR AJOUTE: $user</B>\n";
|
|
|
|
$stmt="INSERT INTO vicidial_users (user,pass,full_name,user_level,user_group,phone_login,phone_pass) values('$user','$pass','$full_name','$user_level','$user_group','$phone_login','$phone_pass');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='UTILISATEURS', event_type='ADD', record_id='$user', event_code='ADMIN ADD USER', event_sql=\"$SQL_log\", event_notes='user: $user';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
###############################################################
|
|
##### START SYSTEM_SETTINGS VTIGER CONNECTION INFO LOOKUP #####
|
|
$stmt = "SELECT enable_vtiger_integration,vtiger_server_ip,vtiger_dbname,vtiger_login,vtiger_pass,vtiger_url FROM system_settings;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
if ($DB) {echo "$stmt\n";}
|
|
$ss_conf_ct = mysql_num_rows($rslt);
|
|
if ($ss_conf_ct > 0)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$enable_vtiger_integration = $row[0];
|
|
$vtiger_server_ip = $row[1];
|
|
$vtiger_dbname = $row[2];
|
|
$vtiger_login = $row[3];
|
|
$vtiger_pass = $row[4];
|
|
$vtiger_url = $row[5];
|
|
}
|
|
##### END SYSTEM_SETTINGS VTIGER CONNECTION INFO LOOKUP #####
|
|
#############################################################
|
|
|
|
if ($enable_vtiger_integration > 0)
|
|
{
|
|
### connect to your vtiger database
|
|
$linkV=mysql_connect("$vtiger_server_ip", "$vtiger_login","$vtiger_pass");
|
|
if (!$linkV) {die("Could not connect: $vtiger_server_ip|$vtiger_dbname|$vtiger_login|$vtiger_pass" . mysql_error());}
|
|
echo 'Connected successfully';
|
|
mysql_select_db("$vtiger_dbname", $linkV);
|
|
|
|
$user_name = $user;
|
|
$user_password = $pass;
|
|
$last_name = $full_name;
|
|
$is_admin = 'off';
|
|
$roleid = 'H5';
|
|
$status = 'Active';
|
|
$groupid = '1';
|
|
if ($user_level >= 7) {$roleid = 'H3';}
|
|
if ($user_level >= 8) {$roleid = 'H4';}
|
|
if ($user_level >= 9) {$roleid = 'H2';}
|
|
if ($user_level >= 9) {$is_admin = 'on';}
|
|
$salt = substr($user_name, 0, 2);
|
|
$salt = '$1$' . $salt . '$';
|
|
$encrypted_password = crypt($user_password, $salt);
|
|
|
|
######################################
|
|
##### BEGIN Add/Update group info in Vtiger
|
|
$stmt="SELECT count(*) from vtiger_groups where groupname='$user_group';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$group_found_count = $row[0];
|
|
|
|
### group exists in vtiger, update it
|
|
if ($group_found_count > 0)
|
|
{
|
|
$stmt="SELECT groupid from vtiger_groups where groupname='$user_group';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$groupid = $row[0];
|
|
}
|
|
|
|
### user doesn't exist in vtiger, insert it
|
|
else
|
|
{
|
|
#### BEGIN CREATE NEW GROUP RECORD IN VTIGER
|
|
# Get next available id from vtiger_groups_seq to use as groupid
|
|
$stmt="SELECT id from vtiger_groups_seq;";
|
|
if ($DB) {echo "$stmt\n";}
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
$row=mysql_fetch_row($rslt);
|
|
$groupid = ($row[0] + 1);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
# Increase next available groupid with 1 so next record gets proper id
|
|
$stmt="UPDATE vtiger_groups_seq SET id = '$groupid';";
|
|
if ($DB) {echo "$stmt\n";}
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtA = "INSERT INTO vtiger_groups SET groupid='$groupid',groupname='$user_group',description='';";
|
|
if ($DB) {echo "|$stmtA|\n";}
|
|
$rslt=mysql_query($stmtA, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
#### END CREATE NEW GROUP RECORD IN VTIGER
|
|
}
|
|
##### END Add/Update group info in Vtiger
|
|
######################################
|
|
|
|
######################################
|
|
##### BEGIN Add/Update user info in Vtiger
|
|
$stmt="SELECT count(*) from vtiger_users where user_name='$user_name';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$found_count = $row[0];
|
|
|
|
### user exists in vtiger, update it
|
|
if ($found_count > 0)
|
|
{
|
|
$stmt="SELECT id from vtiger_users where user_name='$user_name';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$userid = $row[0];
|
|
|
|
$stmt="SELECT count(*) from vtiger_users2group WHERE userid='$userid' and groupid='$groupid';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$usergroupcount = $row[0];
|
|
|
|
$stmtA = "UPDATE vtiger_users SET user_password='$encrypted_password',last_name='$last_name',is_admin='$is_admin',status='$status' where id='$userid';";
|
|
if ($DB) {echo "|$stmtA|\n";}
|
|
$rslt=mysql_query($stmtA, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtB = "UPDATE vtiger_user2role SET roleid='$roleid' where userid='$userid';";
|
|
if ($DB) {echo "|$stmtB|\n";}
|
|
$rslt=mysql_query($stmtB, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
if ($usergroupcount < 1)
|
|
{
|
|
$stmt="SELECT user_group FROM vicidial_user_groups;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
if ($DB) {echo "$stmt\n";}
|
|
$VD_groups_ct = mysql_num_rows($rslt);
|
|
$k=0;
|
|
$VD_groups_list='';
|
|
while ($k < $VD_groups_ct)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$VD_groups_list .= "'$row[0]',";
|
|
$k++;
|
|
}
|
|
$VD_groups_list = preg_replace("/.$/",'',$VD_groups_list);
|
|
|
|
$stmtC = "DELETE FROM vtiger_users2group WHERE userid='$userid' and groupid IN(SELECT groupid from vtiger_groups where groupname IN($VD_groups_list));";
|
|
if ($DB) {echo "|$stmtC|\n";}
|
|
$rslt=mysql_query($stmtC, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtD = "INSERT INTO vtiger_users2group SET userid='$userid',groupid='$groupid';";
|
|
if ($DB) {echo "|$stmtD|\n";}
|
|
$rslt=mysql_query($stmtD, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
}
|
|
}
|
|
|
|
### user doesn't exist in vtiger, insert it
|
|
else
|
|
{
|
|
#### BEGIN CREATE NEW USER RECORD IN VTIGER
|
|
$stmtA = "INSERT INTO vtiger_users SET user_name='$user_name',user_password='$encrypted_password',last_name='$last_name',is_admin='$is_admin',status='$status',date_format='yyyy-mm-dd',first_name='',reports_to_id='',description='',title='',department='',phone_home='',phone_mobile='',phone_work='',phone_other='',phone_fax='',email1='',email2='',yahoo_id='',signature='',address_street='',address_city='',address_state='',address_country='',address_postalcode='',user_preferences='',imagename='';";
|
|
if ($DB) {echo "|$stmtA|\n";}
|
|
$rslt=mysql_query($stmtA, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$userid = mysql_insert_id($linkV);
|
|
|
|
$stmtB = "INSERT INTO vtiger_user2role SET userid='$userid',roleid='$roleid';";
|
|
if ($DB) {echo "|$stmtB|\n";}
|
|
$rslt=mysql_query($stmtB, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtC = "INSERT INTO vtiger_users2group SET userid='$userid',groupid='$groupid';";
|
|
if ($DB) {echo "|$stmtC|\n";}
|
|
$rslt=mysql_query($stmtC, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtD = "UPDATE vtiger_users_seq SET id='$userid';";
|
|
if ($DB) {echo "|$stmtD|\n";}
|
|
$rslt=mysql_query($stmtD, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
#### END CREATE NEW USER RECORD IN VTIGER
|
|
}
|
|
##### END Add/Update user info in Vtiger
|
|
######################################
|
|
}
|
|
### END vtiger integration
|
|
}
|
|
}
|
|
|
|
$ADD=3;
|
|
}
|
|
|
|
######################
|
|
# ADD=2A adds the copied new user to the system
|
|
######################
|
|
|
|
if ($ADD=="2A")
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_users where user='$user';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>UTILISATEUR NON AJOUTE - il y a déjà un utilisateur dans le système avec ce numéro d'utilisateur\n";}
|
|
else
|
|
{
|
|
if ( (strlen($user) < 2) or (strlen($pass) < 2) or (strlen($full_name) < 2) or (strlen($user) > 10) )
|
|
{
|
|
echo "<br>UTILISATEUR NON AJOUTE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>user id must be between 2 and 10 characters long\n";
|
|
echo "<br>le nom et le mot de passe doivent contenir au moins 2 caractères\n";
|
|
echo "<!-- |$user|$pass|$full_name| -->\n";
|
|
}
|
|
else
|
|
{
|
|
if (ereg('AUTOGEN',$user))
|
|
{
|
|
$new_user=0;
|
|
$auto_user_add_value=0;
|
|
while ($new_user < 2)
|
|
{
|
|
if ($new_user < 1)
|
|
{
|
|
$stmt = "SELECT auto_user_add_value FROM system_settings;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$ss_auav_ct = mysql_num_rows($rslt);
|
|
if ($ss_auav_ct > 0)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$auto_user_add_value = $row[0];
|
|
}
|
|
$new_user++;
|
|
}
|
|
$stmt = "SELECT count(*) FROM vicidial_users where user='$auto_user_add_value';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] < 1)
|
|
{
|
|
$new_user++;
|
|
}
|
|
else
|
|
{
|
|
echo "<!-- AG: $auto_user_add_value -->\n";
|
|
$auto_user_add_value = ($auto_user_add_value + 7);
|
|
}
|
|
}
|
|
$user = $auto_user_add_value;
|
|
echo "<br><B>user_id has been auto-generated: $user</B><br>\n";
|
|
|
|
$stmt="UPDATE system_settings SET auto_user_add_value='$user';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
$stmt="INSERT INTO vicidial_users (user,pass,full_name,user_level,user_group,phone_login,phone_pass,delete_users,delete_user_groups,delete_lists,delete_campaigns,delete_ingroups,delete_remote_agents,load_leads,campaign_detail,ast_admin_access,ast_delete_phones,delete_scripts,modify_leads,hotkeys_active,change_agent_campaign,agent_choose_ingroups,closer_campaigns,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,delete_filters,alter_agent_interface_options,closer_default_blended,delete_call_times,modify_call_times,modify_users,modify_campaigns,modify_lists,modify_scripts,modify_filters,modify_ingroups,modify_usergroups,modify_remoteagents,modify_servers,view_reports,vicidial_recording_override,alter_custdata_override,qc_enabled,qc_user_level,qc_pass,qc_finish,qc_commit,add_timeclock_log,modify_timeclock_log,delete_timeclock_log,alter_custphone_override,vdc_agent_api_access,modify_inbound_dids,delete_inbound_dids,active,alert_enabled,download_lists,agent_shift_enforcement_override,manager_shift_enforcement_override,export_reports) SELECT \"$user\",\"$pass\",\"$full_name\",user_level,user_group,phone_login,phone_pass,delete_users,delete_user_groups,delete_lists,delete_campaigns,delete_ingroups,delete_remote_agents,load_leads,campaign_detail,ast_admin_access,ast_delete_phones,delete_scripts,modify_leads,hotkeys_active,change_agent_campaign,agent_choose_ingroups,closer_campaigns,scheduled_callbacks,agentonly_callbacks,agentcall_manual,vicidial_recording,vicidial_transfers,delete_filters,alter_agent_interface_options,closer_default_blended,delete_call_times,modify_call_times,modify_users,modify_campaigns,modify_lists,modify_scripts,modify_filters,modify_ingroups,modify_usergroups,modify_remoteagents,modify_servers,view_reports,vicidial_recording_override,alter_custdata_override,qc_enabled,qc_user_level,qc_pass,qc_finish,qc_commit,add_timeclock_log,modify_timeclock_log,delete_timeclock_log,alter_custphone_override,vdc_agent_api_access,modify_inbound_dids,delete_inbound_dids,active,alert_enabled,download_lists,agent_shift_enforcement_override,manager_shift_enforcement_override,export_reports from vicidial_users where user=\"$source_user_id\";";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmtA="INSERT INTO vicidial_inbound_group_agents (user,group_id,group_rank,group_weight,calls_today) SELECT \"$user\",group_id,group_rank,group_weight,\"0\" from vicidial_inbound_group_agents where user=\"$source_user_id\";";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
$stmtA="INSERT INTO vicidial_campaign_agents (user,campaign_id,campaign_rank,campaign_weight,calls_today) SELECT \"$user\",campaign_id,campaign_rank,campaign_weight,\"0\" from vicidial_campaign_agents where user=\"$source_user_id\";";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='UTILISATEURS', event_type='COPY', record_id='$user', event_code='ADMIN UTILISATEUR DE COPY', event_sql=\"$SQL_log\", event_notes='user: $user';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
###############################################################
|
|
##### START SYSTEM_SETTINGS VTIGER CONNECTION INFO LOOKUP #####
|
|
$stmt = "SELECT enable_vtiger_integration,vtiger_server_ip,vtiger_dbname,vtiger_login,vtiger_pass,vtiger_url FROM system_settings;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
if ($DB) {echo "$stmt\n";}
|
|
$ss_conf_ct = mysql_num_rows($rslt);
|
|
if ($ss_conf_ct > 0)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$enable_vtiger_integration = $row[0];
|
|
$vtiger_server_ip = $row[1];
|
|
$vtiger_dbname = $row[2];
|
|
$vtiger_login = $row[3];
|
|
$vtiger_pass = $row[4];
|
|
$vtiger_url = $row[5];
|
|
}
|
|
##### END SYSTEM_SETTINGS VTIGER CONNECTION INFO LOOKUP #####
|
|
#############################################################
|
|
|
|
if ($enable_vtiger_integration > 0)
|
|
{
|
|
### connect to your vtiger database
|
|
$linkV=mysql_connect("$vtiger_server_ip", "$vtiger_login","$vtiger_pass");
|
|
if (!$linkV) {die("Could not connect: $vtiger_server_ip|$vtiger_dbname|$vtiger_login|$vtiger_pass" . mysql_error());}
|
|
echo 'Connected successfully';
|
|
mysql_select_db("$vtiger_dbname", $linkV);
|
|
|
|
$user_name = $user;
|
|
$user_password = $pass;
|
|
$last_name = $full_name;
|
|
$is_admin = 'off';
|
|
$roleid = 'H5';
|
|
$status = 'Active';
|
|
$groupid = '1';
|
|
if ($user_level >= 7) {$roleid = 'H3';}
|
|
if ($user_level >= 8) {$roleid = 'H4';}
|
|
if ($user_level >= 9) {$roleid = 'H2';}
|
|
if ($user_level >= 9) {$is_admin = 'on';}
|
|
$salt = substr($user_name, 0, 2);
|
|
$salt = '$1$' . $salt . '$';
|
|
$encrypted_password = crypt($user_password, $salt);
|
|
|
|
######################################
|
|
##### BEGIN Add/Update group info in Vtiger
|
|
$stmt="SELECT count(*) from vtiger_groups where groupname='$user_group';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$group_found_count = $row[0];
|
|
|
|
### group exists in vtiger, update it
|
|
if ($group_found_count > 0)
|
|
{
|
|
$stmt="SELECT groupid from vtiger_groups where groupname='$user_group';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$groupid = $row[0];
|
|
}
|
|
|
|
### user doesn't exist in vtiger, insert it
|
|
else
|
|
{
|
|
#### BEGIN CREATE NEW GROUP RECORD IN VTIGER
|
|
# Get next available id from vtiger_groups_seq to use as groupid
|
|
$stmt="SELECT id from vtiger_groups_seq;";
|
|
if ($DB) {echo "$stmt\n";}
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
$row=mysql_fetch_row($rslt);
|
|
$groupid = ($row[0] + 1);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
# Increase next available groupid with 1 so next record gets proper id
|
|
$stmt="UPDATE vtiger_groups_seq SET id = '$groupid';";
|
|
if ($DB) {echo "$stmt\n";}
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtA = "INSERT INTO vtiger_groups SET groupid='$groupid',groupname='$user_group',description='';";
|
|
if ($DB) {echo "|$stmtA|\n";}
|
|
$rslt=mysql_query($stmtA, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
#### END CREATE NEW GROUP RECORD IN VTIGER
|
|
}
|
|
##### END Add/Update group info in Vtiger
|
|
######################################
|
|
|
|
######################################
|
|
##### BEGIN Add/Update user info in Vtiger
|
|
$stmt="SELECT count(*) from vtiger_users where user_name='$user_name';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$found_count = $row[0];
|
|
|
|
### user exists in vtiger, update it
|
|
if ($found_count > 0)
|
|
{
|
|
$stmt="SELECT id from vtiger_users where user_name='$user_name';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$userid = $row[0];
|
|
|
|
$stmt="SELECT count(*) from vtiger_users2group WHERE userid='$userid' and groupid='$groupid';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$usergroupcount = $row[0];
|
|
|
|
$stmtA = "UPDATE vtiger_users SET user_password='$encrypted_password',last_name='$last_name',is_admin='$is_admin',status='$status' where id='$userid';";
|
|
if ($DB) {echo "|$stmtA|\n";}
|
|
$rslt=mysql_query($stmtA, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtB = "UPDATE vtiger_user2role SET roleid='$roleid' where userid='$userid';";
|
|
if ($DB) {echo "|$stmtB|\n";}
|
|
$rslt=mysql_query($stmtB, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
if ($usergroupcount < 1)
|
|
{
|
|
$stmt="SELECT user_group FROM vicidial_user_groups;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
if ($DB) {echo "$stmt\n";}
|
|
$VD_groups_ct = mysql_num_rows($rslt);
|
|
$k=0;
|
|
$VD_groups_list='';
|
|
while ($k < $VD_groups_ct)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$VD_groups_list .= "'$row[0]',";
|
|
$k++;
|
|
}
|
|
$VD_groups_list = preg_replace("/.$/",'',$VD_groups_list);
|
|
|
|
$stmtC = "DELETE FROM vtiger_users2group WHERE userid='$userid' and groupid IN(SELECT groupid from vtiger_groups where groupname IN($VD_groups_list));";
|
|
if ($DB) {echo "|$stmtC|\n";}
|
|
$rslt=mysql_query($stmtC, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtD = "INSERT INTO vtiger_users2group SET userid='$userid',groupid='$groupid';";
|
|
if ($DB) {echo "|$stmtD|\n";}
|
|
$rslt=mysql_query($stmtD, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
}
|
|
}
|
|
|
|
### user doesn't exist in vtiger, insert it
|
|
else
|
|
{
|
|
#### BEGIN CREATE NEW USER RECORD IN VTIGER
|
|
$stmtA = "INSERT INTO vtiger_users SET user_name='$user_name',user_password='$encrypted_password',last_name='$last_name',is_admin='$is_admin',status='$status',date_format='yyyy-mm-dd',first_name='',reports_to_id='',description='',title='',department='',phone_home='',phone_mobile='',phone_work='',phone_other='',phone_fax='',email1='',email2='',yahoo_id='',signature='',address_street='',address_city='',address_state='',address_country='',address_postalcode='',user_preferences='',imagename='';";
|
|
if ($DB) {echo "|$stmtA|\n";}
|
|
$rslt=mysql_query($stmtA, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$userid = mysql_insert_id($linkV);
|
|
|
|
$stmtB = "INSERT INTO vtiger_user2role SET userid='$userid',roleid='$roleid';";
|
|
if ($DB) {echo "|$stmtB|\n";}
|
|
$rslt=mysql_query($stmtB, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtC = "INSERT INTO vtiger_users2group SET userid='$userid',groupid='$groupid';";
|
|
if ($DB) {echo "|$stmtC|\n";}
|
|
$rslt=mysql_query($stmtC, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtD = "UPDATE vtiger_users_seq SET id='$userid';";
|
|
if ($DB) {echo "|$stmtD|\n";}
|
|
$rslt=mysql_query($stmtD, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
#### END CREATE NEW USER RECORD IN VTIGER
|
|
}
|
|
##### END Add/Update user info in Vtiger
|
|
######################################
|
|
}
|
|
### END vtiger integration
|
|
|
|
echo "<br><B>USER COPIED: $user copied from $source_user_id</B>\n";
|
|
echo "<br><br>\n";
|
|
echo "<a href=\"$PHP_SELF?ADD=3&user=$user\">Click here to go to the user record</a>\n";
|
|
echo "<br><br>\n";
|
|
|
|
}
|
|
}
|
|
exit;
|
|
}
|
|
|
|
######################
|
|
# ADD=21 adds the new campaign to the system
|
|
######################
|
|
|
|
if ($ADD==21)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_campaigns where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>CAMPAGNE NON AJOUTEE - il existe déjà une campagne dans le système avec cet ID\n";}
|
|
else
|
|
{
|
|
$stmt="SELECT count(*) from vicidial_inbound_groups where group_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>CAMPAIGN NOT ADDED - there is already an inbound group in the system with this ID\n";}
|
|
else
|
|
{
|
|
if ( (strlen($campaign_id) < 2) or (strlen($campaign_id) > 8) or (strlen($campaign_name) < 6) or (strlen($campaign_name) > 40) )
|
|
{
|
|
echo "<br>CAMPAGNE NON AJOUTEE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>l'ID de la campagne doit contenir entre 2 et 8 caractères\n";
|
|
echo "<br>le nom de la campagne doit contenir entre 6 et 40 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>CAMPAGNE AJOUTEE: $campaign_id</B>\n";
|
|
|
|
$stmt="INSERT INTO vicidial_campaigns (campaign_id,campaign_name,campaign_description,active,dial_status_a,lead_order,park_ext,park_file_name,web_form_address,allow_closers,hopper_level,auto_dial_level,next_agent_call,local_call_time,voicemail_ext,campaign_script,get_call_launch,campaign_changedate,campaign_stats_refresh,list_order_mix) values('$campaign_id','$campaign_name','$campaign_description','$active','NEW','DOWN','$park_ext','$park_file_name','" . mysql_real_escape_string($web_form_address) . "','$allow_closers','$hopper_level','$auto_dial_level','$next_agent_call','$local_call_time','$voicemail_ext','$script_id','$get_call_launch','$SQLdate','Y','DISABLED');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmtA="INSERT INTO vicidial_campaign_stats (campaign_id) values('$campaign_id');";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGNS', event_type='ADD', record_id='$campaign_id', event_code='ADMIN AJOUTER UNE CAMPAGNE', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
}
|
|
$ADD=31;
|
|
}
|
|
|
|
######################
|
|
# ADD=20 adds copied new campaign to the system
|
|
######################
|
|
|
|
if ($ADD==20)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_campaigns where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>CAMPAGNE NON AJOUTEE - il existe déjà une campagne dans le système avec cet ID\n";}
|
|
else
|
|
{
|
|
if ( (strlen($campaign_id) < 2) or (strlen($campaign_id) > 8) or (strlen($campaign_name) < 2) or (strlen($source_campaign_id) < 2) or (strlen($source_campaign_id) > 8) )
|
|
{
|
|
echo "<br>CAMPAGNE NON AJOUTEE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>l'ID de la campagne doit contenir entre 2 et 8 caractères\n";
|
|
echo "<br>source l'ID de la campagne doit contenir entre 2 et 8 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>CAMPAIGN COPIED: $campaign_id copied from $source_campaign_id</B>\n";
|
|
|
|
$stmt="INSERT INTO vicidial_campaigns (campaign_name,campaign_id,active,dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,park_ext,park_file_name,web_form_address,allow_closers,hopper_level,auto_dial_level,next_agent_call,local_call_time,voicemail_ext,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,amd_send_to_vmx,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,lead_filter_id,drop_call_seconds,drop_action,safe_harbor_exten,display_dialable_count,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,dial_method,available_only_ratio_tally,adaptive_dropped_percentage,adaptive_maximum_level,adaptive_latest_server_time,adaptive_intensity,adaptive_dl_diff_target,concurrent_transfers,auto_alt_dial,auto_alt_dial_statuses,agent_pause_codes_active,campaign_description,campaign_changedate,campaign_stats_refresh,campaign_logindate,dial_statuses,disable_alter_custdata,no_hopper_leads_logins,list_order_mix,campaign_allow_inbound,manual_dial_list_id,default_xfer_group,queue_priority,drop_inbound_group,qc_enabled,qc_statuses,qc_lists,qc_web_form_address,qc_script,survey_first_audio_file,survey_dtmf_digits,survey_ni_digit,survey_opt_in_audio_file,survey_ni_audio_file,survey_method,survey_no_response_action,survey_ni_status,survey_response_digit_map,survey_xfer_exten,survey_camp_record_dir,disable_alter_custphone,display_queue_count,qc_get_record_launch,qc_show_recording,qc_shift_id,manual_dial_filter,agent_clipboard_copy,agent_extended_alt_dial,use_campaign_dnc,three_way_call_cid,three_way_dial_prefix,web_form_target,vtiger_search_category,vtiger_create_call_record,vtiger_create_lead_record,vtiger_screen_login,cpd_amd_action,agent_allow_group_alias,default_group_alias) SELECT \"$campaign_name\",\"$campaign_id\",\"N\",dial_status_a,dial_status_b,dial_status_c,dial_status_d,dial_status_e,lead_order,park_ext,park_file_name,web_form_address,allow_closers,hopper_level,auto_dial_level,next_agent_call,local_call_time,voicemail_ext,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,amd_send_to_vmx,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,lead_filter_id,drop_call_seconds,drop_action,safe_harbor_exten,display_dialable_count,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,dial_method,available_only_ratio_tally,adaptive_dropped_percentage,adaptive_maximum_level,adaptive_latest_server_time,adaptive_intensity,adaptive_dl_diff_target,concurrent_transfers,auto_alt_dial,auto_alt_dial_statuses,agent_pause_codes_active,campaign_description,campaign_changedate,campaign_stats_refresh,campaign_logindate,dial_statuses,disable_alter_custdata,no_hopper_leads_logins,\"DISABLED\",campaign_allow_inbound,manual_dial_list_id,default_xfer_group,queue_priority,drop_inbound_group,qc_enabled,qc_statuses,qc_lists,qc_web_form_address,qc_script,survey_first_audio_file,survey_dtmf_digits,survey_ni_digit,survey_opt_in_audio_file,survey_ni_audio_file,survey_method,survey_no_response_action,survey_ni_status,survey_response_digit_map,survey_xfer_exten,survey_camp_record_dir,disable_alter_custphone,display_queue_count,qc_get_record_launch,qc_show_recording,qc_shift_id,manual_dial_filter,agent_clipboard_copy,agent_extended_alt_dial,use_campaign_dnc,three_way_call_cid,three_way_dial_prefix,web_form_target,vtiger_search_category,vtiger_create_call_record,vtiger_create_lead_record,vtiger_screen_login,cpd_amd_action,agent_allow_group_alias,default_group_alias from vicidial_campaigns where campaign_id='$source_campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmtA="INSERT INTO vicidial_campaign_stats (campaign_id) values('$campaign_id');";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
$stmtA="INSERT INTO vicidial_campaign_statuses (status,status_name,selectable,campaign_id,human_answered,category) SELECT status,status_name,selectable,\"$campaign_id\",human_answered,category from vicidial_campaign_statuses where campaign_id='$source_campaign_id';";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
$stmtA="INSERT INTO vicidial_campaign_hotkeys (status,hotkey,status_name,selectable,campaign_id) SELECT status,hotkey,status_name,selectable,\"$campaign_id\" from vicidial_campaign_hotkeys where campaign_id='$source_campaign_id';";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
$stmtA="INSERT INTO vicidial_lead_recycle (status,attempt_delay,attempt_maximum,active,campaign_id) SELECT status,attempt_delay,attempt_maximum,active,\"$campaign_id\" from vicidial_lead_recycle where campaign_id='$source_campaign_id';";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
$stmtA="INSERT INTO vicidial_pause_codes (pause_code,pause_code_name,billable,campaign_id) SELECT pause_code,pause_code_name,billable,\"$campaign_id\" from vicidial_pause_codes where campaign_id='$source_campaign_id';";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGNS', event_type='COPY', record_id='$campaign_id', event_code='ADMIN COPY CAMPAIGN', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
$ADD=31;
|
|
}
|
|
|
|
######################
|
|
# ADD=22 adds the new campaign status to the system
|
|
######################
|
|
|
|
if ($ADD==22)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_campaign_statuses where campaign_id='$campaign_id' and status='$status';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>STATUT DE LA CAMPAGNE NON AJOUTE - il y a déjà un statut de campagne dans le système avec ce nom\n";}
|
|
else
|
|
{
|
|
$stmt="SELECT count(*) from vicidial_statuses where status='$status';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>STATUT DE LA CAMPAGNE NON AJOUTE - il y a déjà un statut global dans le système avec ce nom\n";}
|
|
else
|
|
{
|
|
if ( (strlen($campaign_id) < 2) or (strlen($status) < 1) or (strlen($status_name) < 2) )
|
|
{
|
|
echo "<br>STATUT DE LA CAMPAGNE NON AJOUTE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>le statut doit contenir entre 1 et 8 caractères\n";
|
|
echo "<br>le nom du statut doit contenir entre 2 et 30 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>STATUT DE LA CAMPAGNE AJOUTE: $campaign_id - $status</B>\n";
|
|
|
|
$stmt="INSERT INTO vicidial_campaign_statuses (status,status_name,selectable,campaign_id,human_answered,category) values('$status','$status_name','$selectable','$campaign_id','$human_answered','$category');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGN_STATUS', event_type='ADD', record_id='$campaign_id', event_code='ADMIN AJOUTER UNE CAMPAGNE STATUS', event_sql=\"$SQL_log\", event_notes='Etat: $status';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
}
|
|
$SUB=22;
|
|
$ADD=31;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=23 adds the new campaign hotkey to the system
|
|
######################
|
|
|
|
if ($ADD==23)
|
|
{
|
|
$HKstatus_data = explode('-----',$HKstatus);
|
|
$status = $HKstatus_data[0];
|
|
$status_name = $HKstatus_data[1];
|
|
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_campaign_hotkeys where campaign_id='$campaign_id' and hotkey='$hotkey' and hotkey='$hotkey';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>CAMPAIGN HOT KEY NOT ADDED - there is already a campaign-hotkey in the system with this hotkey\n";}
|
|
else
|
|
{
|
|
if ( (strlen($campaign_id) < 2) or (strlen($status) < 1) or (strlen($hotkey) < 1) )
|
|
{
|
|
echo "<br>RACCOURCI CLAVIER DE LA CAMPAGNE NON AJOUTE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>hotkey must be a single character between 1 and 9 \n";
|
|
echo "<br>le statut doit contenir entre 1 et 8 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>RACOURCI CLAVIER DE LA CAMPAGNE AJOUTE: $campaign_id - $status - $hotkey</B>\n";
|
|
|
|
$stmt="INSERT INTO vicidial_campaign_hotkeys values('$status','$hotkey','$status_name','$selectable','$campaign_id');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGN_HOTKEY', event_type='ADD', record_id='$campaign_id', event_code='ADMIN AJOUTER UNE CAMPAGNE HOTKEY', event_sql=\"$SQL_log\", event_notes='Etat: $status|HotKey: $hotkey';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
$SUB=23;
|
|
$ADD=31;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=25 adds the new campaign lead recycle entry to the system
|
|
######################
|
|
|
|
if ($ADD==25)
|
|
{
|
|
$status = eregi_replace("-----.*",'',$status);
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_lead_recycle where campaign_id='$campaign_id' and status='$status';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>RECYCLAGE DE FICHES DE LA CAMPAGNE NON AJOUTE - il y a déjà un recyclage de fiches pour cette campagne avec ce statut\n";}
|
|
else
|
|
{
|
|
if ( (strlen($campaign_id) < 2) or (strlen($status) < 1) or ($attempt_delay < 120) or ($attempt_delay >= 43200) or ($attempt_maximum < 1) or ($attempt_maximum > 10) )
|
|
{
|
|
echo "<br>CAMPAIGN LEAD RECYCLE NOT ADDED - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>le statut doit contenir entre 1 et 6 caractères\n";
|
|
echo "<br>le délai d'attente doit être au moins 120 secondes et moins de 43,200 secondes ou 12 heures\n";
|
|
echo "<br>le nombre d'essais maximum doit être compris entre 1 et 10\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>RECYCLAGE DES FICHES DE LA CAMPAGNE AJOUTE: $campaign_id - $status - $attempt_delay</B>\n";
|
|
|
|
$stmt="INSERT INTO vicidial_lead_recycle(campaign_id,status,attempt_delay,attempt_maximum,active) values('$campaign_id','$status','$attempt_delay','$attempt_maximum','$active');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGN_RECYCLE', event_type='ADD', record_id='$campaign_id', event_code='ADMIN AJOUTER UNE CAMPAGNE LEAD RECYCLE', event_sql=\"$SQL_log\", event_notes='Etat: $status';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
$SUB=25;
|
|
$ADD=31;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=26 adds the new auto alt dial status to the campaign
|
|
######################
|
|
|
|
if ($ADD==26)
|
|
{
|
|
$status = eregi_replace("-----.*",'',$status);
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_campaigns where campaign_id='$campaign_id' and auto_alt_dial_statuses LIKE \"% $status %\";";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>STATUT D'APPEL AUTOMATIQUE DU NUMERO ALTERNATIF NON AJOUTE - il y a déjà un entrée pour cette campagne avec ce statut\n";}
|
|
else
|
|
{
|
|
if ( (strlen($campaign_id) < 2) or (strlen($status) < 1) )
|
|
{
|
|
echo "<br>STATUT D'APPEL AUTOMATIQUE DU NUMERO ALTERNATIF NON AJOUTE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>le statut doit contenir entre 1 et 6 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>STATUT D'APPEL AUTOMATIQUE DU NUMERO ALTERNATIF AJOUTE: $campaign_id - $status</B>\n";
|
|
|
|
$stmt="SELECT auto_alt_dial_statuses from vicidial_campaigns where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
|
|
if (strlen($row[0])<2) {$row[0] = ' -';}
|
|
$auto_alt_dial_statuses = " $status$row[0]";
|
|
$stmt="UPDATE vicidial_campaigns set auto_alt_dial_statuses='$auto_alt_dial_statuses' where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGN_ALTDIAL', event_type='ADD', record_id='$campaign_id', event_code='ADMIN AJOUTER UNE CAMPAGNE ALT DIAL', event_sql=\"$SQL_log\", event_notes='Etat: $auto_alt_dial_statuses';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
$SUB=26;
|
|
$ADD=31;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=27 adds the new campaign agent pause code entry to the system
|
|
######################
|
|
|
|
if ($ADD==27)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_pause_codes where campaign_id='$campaign_id' and pause_code='$pause_code';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>CODE DE PAUSE NON AJOUTE - hay ya una entrada para esta campaña con este code\n";}
|
|
else
|
|
{
|
|
if ( (strlen($campaign_id) < 2) or (strlen($pause_code) < 1) or (strlen($pause_code) > 6) or (strlen($pause_code_name) < 2) )
|
|
{
|
|
echo "<br>CODE DE PAUSE NON AJOUTE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>pause code must be between 1 and 6 characters in length\n";
|
|
echo "<br>pause nom de code doit être compris entre 2 et 30 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>CODE DE PAUSE AJOUTE: $campaign_id - $pause_code - $pause_code_name</B>\n";
|
|
|
|
$stmt="INSERT INTO vicidial_pause_codes(campaign_id,pause_code,pause_code_name,billable) values('$campaign_id','$pause_code','$pause_code_name','$billable');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGN_PAUSECODE', event_type='ADD', record_id='$campaign_id', event_code='ADMIN AJOUTER UNE CAMPAGNE PAUSE CODE', event_sql=\"$SQL_log\", event_notes='Code de pause: $pause_code';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
$SUB=27;
|
|
$ADD=31;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=28 adds new status to the campaign dial statuses
|
|
######################
|
|
|
|
if ($ADD==28)
|
|
{
|
|
$status = eregi_replace("-----.*",'',$status);
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_campaigns where campaign_id='$campaign_id' and dial_statuses LIKE \"% $status %\";";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>STATUT D'APPEL DE LA CAMPAGNE NON AJOUTE - il y a déjà un entrée pour cette campagne avec ce statut\n";}
|
|
else
|
|
{
|
|
if ( (strlen($campaign_id) < 2) or (strlen($status) < 1) )
|
|
{
|
|
echo "<br>STATUT D'APPEL DE LA CAMPAGNE NON AJOUTE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>le statut doit contenir entre 1 et 6 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>STATUT D'APPEL POUR LA CAMPAGNE AJOUTE: $campaign_id - $status</B>\n";
|
|
|
|
$stmt="SELECT dial_statuses from vicidial_campaigns where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
|
|
if (strlen($row[0])<2) {$row[0] = ' -';}
|
|
$dial_statuses = " $status$row[0]";
|
|
$stmt="UPDATE vicidial_campaigns set dial_statuses='$dial_statuses' where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGN_DIALSTATUS', event_type='ADD', record_id='$campaign_id', event_code='ADMIN AJOUTER UNE CAMPAGNE DIAL STATUS', event_sql=\"$SQL_log\", event_notes='Etat: $statuses';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
#$SUB=28;
|
|
$ADD=31;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=211 adds the new list to the system
|
|
######################
|
|
|
|
if ($ADD==211)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_lists where list_id='$list_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>LISTE NON AJOUTEE - il y a déjà une liste avec ce nom dans le système\n";}
|
|
else
|
|
{
|
|
if ( (strlen($campaign_id) < 2) or (strlen($list_name) < 2) or ($list_id < 100) or (strlen($list_id) > 8) )
|
|
{
|
|
echo "<br>LISTE NON AJOUTEE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>L'ID de la liste doit contenir entre 2 et 8 caractères\n";
|
|
echo "<br>Le nom de la liste doit contenir au moins 2 caractères\n";
|
|
echo "<br>ID de la liste must be greater than 100\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>LISTE AJOUTEE: $list_id</B>\n";
|
|
|
|
$stmt="INSERT INTO vicidial_lists (list_id,list_name,campaign_id,active,list_description,list_changedate) values('$list_id','$list_name','$campaign_id','$active','$list_description','$SQLdate');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='LISTES', event_type='ADD', record_id='$list_id', event_code='ADMIN ADD LIST', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
$ADD=311;
|
|
}
|
|
|
|
|
|
|
|
######################
|
|
# ADD=2111 adds the new inbound group to the system
|
|
######################
|
|
|
|
if ($ADD==2111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_inbound_groups where group_id='$group_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>GROUPE NON AJOUTE - il y a déjà un groupe dans le système avec cet identifiant\n";}
|
|
else
|
|
{
|
|
$stmt="SELECT count(*) from vicidial_campaigns where campaign_id='$group_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>GROUP NOT ADDED - there is already a campaign in the system with this ID\n";}
|
|
else
|
|
{
|
|
if ( (strlen($group_id) < 2) or (strlen($group_name) < 2) or (strlen($group_color) < 2) or (strlen($group_id) > 20) or (eregi(' ',$group_id)) or (eregi("\-",$group_id)) or (eregi("\+",$group_id)) )
|
|
{
|
|
echo "<br>GROUPE NON AJOUTE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>L'ID du groupe doit contenir entre 2 et 20 caractères et ne contenir aucun ' -+'.\n";
|
|
echo "<br>Le nom et la couleur du groupe doivent contenir au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="INSERT INTO vicidial_inbound_groups (group_id,group_name,group_color,active,web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch) values('$group_id','$group_name','$group_color','$active','" . mysql_real_escape_string($web_form_address) . "','$voicemail_ext','$next_agent_call','$fronter_display','$script_id','$get_call_launch');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmtA="INSERT INTO vicidial_campaign_stats (campaign_id) values('$group_id');";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
echo "<br><B>GROUPE AJOUTE: $group_id</B>\n";
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='INGROUPS', event_type='ADD', record_id='$group_id', event_code='ADMIN ADD ENTRANT GROUP', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
}
|
|
$ADD=3111;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=2011 adds copied inbound group to the system
|
|
######################
|
|
|
|
if ($ADD==2011)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_inbound_groups where group_id='$group_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>GROUPE NON AJOUTE - il y a déjà un groupe dans le système avec cet identifiant\n";}
|
|
else
|
|
{
|
|
if ( (strlen($group_id) < 2) or (strlen($group_name) < 2) or (strlen($group_id) > 20) or (eregi(' ',$group_id)) or (eregi("\-",$group_id)) or (eregi("\+",$group_id)) )
|
|
{
|
|
echo "<br>GROUPE NON AJOUTE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>L'ID du groupe doit contenir entre 2 et 20 caractères et ne contenir aucun ' -+'.\n";
|
|
echo "<br>Le nom et la couleur du groupe doivent contenir au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="INSERT INTO vicidial_inbound_groups (group_id,group_name,group_color,active,web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias) SELECT \"$group_id\",\"$group_name\",group_color,\"N\",web_form_address,voicemail_ext,next_agent_call,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,drop_call_seconds,drop_action,drop_exten,call_time_id,after_hours_action,after_hours_message_filename,after_hours_exten,after_hours_voicemail,welcome_message_filename,moh_context,onhold_prompt_filename,prompt_interval,agent_alert_exten,agent_alert_delay,default_xfer_group,queue_priority,drop_inbound_group,ingroup_recording_override,ingroup_rec_filename,afterhours_xfer_group,qc_enabled,qc_statuses,qc_shift_id,qc_get_record_launch,qc_show_recording,qc_web_form_address,qc_script,play_place_in_line,play_estimate_hold_time,hold_time_option,hold_time_option_seconds,hold_time_option_exten,hold_time_option_voicemail,hold_time_option_xfer_group,hold_time_option_callback_filename,hold_time_option_callback_list_id,hold_recall_xfer_group,no_delay_call_route,play_welcome_message,answer_sec_pct_rt_stat_one,answer_sec_pct_rt_stat_two,default_group_alias from vicidial_inbound_groups where group_id=\"$source_group_id\";";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>GROUPE AJOUTE: $group_id</B>\n";
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='INGROUPS', event_type='COPY', record_id='$group_id', event_code='ADMIN GROUPE D'ARRIVÉE DE COPY', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
$ADD=3111;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=2311 adds the new did to the system
|
|
######################
|
|
|
|
if ($ADD==2311)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_inbound_dids where did_pattern='$did_pattern';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>NE PAS AJOUTER - il ya déjà un DID dans le système avec cette ID\n";}
|
|
else
|
|
{
|
|
$stmt="SELECT count(*) from vicidial_inbound_dids where did_pattern='$did_pattern';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>NE PAS AJOUTER - il ya déjà un DID dans le système avec cette extension\n";}
|
|
else
|
|
{
|
|
if ( (strlen($did_pattern) < 2) or (eregi(' ',$did_pattern)) or (eregi('-',$did_pattern)) or (eregi("\+",$did_pattern)) )
|
|
{
|
|
echo "<br>NE PAS AJOUTER - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>DID Extension must be between 2 and 20 characters in length and contain no ' -+'.\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="INSERT INTO vicidial_inbound_dids (did_pattern,did_description) values('$did_pattern','$did_description');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmt="SELECT did_id from vicidial_inbound_dids where did_pattern='$did_pattern';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$did_id = $row[0];
|
|
|
|
echo "<br><B>DID ADDED: $did_pattern $did_description - $did_id</B>\n";
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='DIDS', event_type='ADD', record_id='$did_id', event_code='ADMIN ADD DID', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
}
|
|
$ADD=3311;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=2411 adds copied did to the system
|
|
######################
|
|
|
|
if ($ADD==2411)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_inbound_dids where did_pattern='$did_pattern';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>NE PAS AJOUTER - il ya déjà un DID dans le système avec cette extension\n";}
|
|
else
|
|
{
|
|
if ( (strlen($source_did) < 1) or (strlen($did_pattern) < 1) or (eregi(' ',$source_did)) or (eregi(' ',$did_pattern)) or (eregi("\+",$source_did)) )
|
|
{
|
|
echo "<br>NE PAS AJOUTER - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>DID Extension must be between 2 and 20 characters in length and contain no ' -+'.\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="INSERT INTO vicidial_inbound_dids (did_pattern,did_description,did_active,did_route,extension,exten_context,voicemail_ext,phone,server_ip,user,user_unavailable_action,user_route_settings_ingroup,group_id,call_handle_method,agent_search_method,list_id,campaign_id,phone_code) SELECT \"$did_pattern\",\"$did_description\",did_active,did_route,extension,exten_context,voicemail_ext,phone,server_ip,user,user_unavailable_action,user_route_settings_ingroup,group_id,call_handle_method,agent_search_method,list_id,campaign_id,phone_code from vicidial_inbound_dids where did_id=\"$source_did\";";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmt="SELECT did_id from vicidial_inbound_dids where did_pattern='$did_pattern';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$did_id = $row[0];
|
|
|
|
echo "<br><B>DID ADDED: $did_pattern - $did_id</B>\n";
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='DIDS', event_type='COPY', record_id='$did_id', event_code='ADMIN COPY DID', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
$ADD=3311;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=21111 adds new remote agents to the system
|
|
######################
|
|
|
|
if ($ADD==21111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_remote_agents where server_ip='$server_ip' and user_start='$user_start';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>AGENT DISTANT NON AJOUTE - il y a déjà un agent distant avec cet identifiant\n";}
|
|
else
|
|
{
|
|
if ( (strlen($server_ip) < 2) or (strlen($user_start) < 2) or (strlen($campaign_id) < 2) or (strlen($conf_exten) < 2) )
|
|
{
|
|
echo "<br>AGENT DISTANT NON AJOUTE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Le début de l'ID de l'utilisateur et l'extension externe doivent contenir au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="INSERT INTO vicidial_remote_agents values('','$user_start','$number_of_lines','$server_ip','$conf_exten','$status','$campaign_id','$groups_value');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>AGENT DISTANT AJOUTE: $user_start</B>\n";
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='REMOTEAGENTS', event_type='ADD', record_id='$user_start', event_code='ADMIN ADD REMOTE AGENT', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
$ADD=10000;
|
|
}
|
|
|
|
######################
|
|
# ADD=211111 adds new user group to the system
|
|
######################
|
|
|
|
if ($ADD==211111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_user_groups where user_group='$user_group';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>GROUP D'UTILISATEURS NON AJOUTE - il y a déjà un groupe d'utilisateurs avec ce nom\n";}
|
|
else
|
|
{
|
|
if ( (strlen($user_group) < 2) or (strlen($group_name) < 2) )
|
|
{
|
|
echo "<br>GROUPE D'UTILISATEURS NON AJOUTE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Le nom et la description du groupe doivent contenir au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="INSERT INTO vicidial_user_groups(user_group,group_name,allowed_campaigns) values('$user_group','$group_name','-ALL-CAMPAIGNS-');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>GROUPE D'UTILISATEURS AJOUTE: $user_group</B>\n";
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='USERGROUPS', event_type='ADD', record_id='$user_group', event_code='ADMIN AJOUTER UN GROUPE D'UTILISATEURS', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
###############################################################
|
|
##### START SYSTEM_SETTINGS VTIGER CONNECTION INFO LOOKUP #####
|
|
$stmt = "SELECT enable_vtiger_integration,vtiger_server_ip,vtiger_dbname,vtiger_login,vtiger_pass,vtiger_url FROM system_settings;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
if ($DB) {echo "$stmt\n";}
|
|
$ss_conf_ct = mysql_num_rows($rslt);
|
|
if ($ss_conf_ct > 0)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$enable_vtiger_integration = $row[0];
|
|
$vtiger_server_ip = $row[1];
|
|
$vtiger_dbname = $row[2];
|
|
$vtiger_login = $row[3];
|
|
$vtiger_pass = $row[4];
|
|
$vtiger_url = $row[5];
|
|
}
|
|
##### END SYSTEM_SETTINGS VTIGER CONNECTION INFO LOOKUP #####
|
|
#############################################################
|
|
|
|
if ($enable_vtiger_integration > 0)
|
|
{
|
|
### connect to your vtiger database
|
|
$linkV=mysql_connect("$vtiger_server_ip", "$vtiger_login","$vtiger_pass");
|
|
if (!$linkV) {die("Could not connect: $vtiger_server_ip|$vtiger_dbname|$vtiger_login|$vtiger_pass" . mysql_error());}
|
|
echo 'Connected successfully';
|
|
mysql_select_db("$vtiger_dbname", $linkV);
|
|
|
|
######################################
|
|
##### BEGIN Add/Update group info in Vtiger
|
|
$stmt="SELECT count(*) from vtiger_groups where groupname='$user_group';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$group_found_count = $row[0];
|
|
|
|
### group exists in vtiger, update it
|
|
if ($group_found_count > 0)
|
|
{
|
|
$stmt="SELECT groupid from vtiger_groups where groupname='$user_group';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$groupid = $row[0];
|
|
}
|
|
|
|
### user doesn't exist in vtiger, insert it
|
|
else
|
|
{
|
|
#### BEGIN CREATE NEW GROUP RECORD IN VTIGER
|
|
# Get next available id from vtiger_groups_seq to use as groupid
|
|
$stmt="SELECT id from vtiger_groups_seq;";
|
|
if ($DB) {echo "$stmt\n";}
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
$row=mysql_fetch_row($rslt);
|
|
$groupid = ($row[0] + 1);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
# Increase next available groupid with 1 so next record gets proper id
|
|
$stmt="UPDATE vtiger_groups_seq SET id = '$groupid';";
|
|
if ($DB) {echo "$stmt\n";}
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtA = "INSERT INTO vtiger_groups SET groupid='$groupid',groupname='$user_group',description='$group_name';";
|
|
if ($DB) {echo "|$stmtA|\n";}
|
|
$rslt=mysql_query($stmtA, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
#### END CREATE NEW GROUP RECORD IN VTIGER
|
|
}
|
|
##### END Add/Update group info in Vtiger
|
|
######################################
|
|
}
|
|
}
|
|
}
|
|
$ADD=100000;
|
|
}
|
|
|
|
######################
|
|
# ADD=2111111 adds new script to the system
|
|
######################
|
|
|
|
if ($ADD==2111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_scripts where script_id='$script_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>SCRIPT NON AJOUTE - il y a déjà un script existant avec ce nom\n";}
|
|
else
|
|
{
|
|
if ( (strlen($script_id) < 2) or (strlen($script_name) < 2) or (strlen($script_text) < 2) )
|
|
{
|
|
echo "<br>SCRIPT NON AJOUTE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Les nom, description et texte du script doivent contenir au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="INSERT INTO vicidial_scripts values('$script_id','$script_name','$script_comments','$script_text','$active');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>SCRIPT AJOUTE: $script_id</B>\n";
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='SCRIPTS', event_type='ADD', record_id='$script_id', event_code='ADMIN AJOUTER UN SCRIPT', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
$ADD=1000000;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=21111111 adds new filter to the system
|
|
######################
|
|
|
|
if ($ADD==21111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_lead_filters where lead_filter_id='$lead_filter_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>FILTRE NON AJOUTE - il y a déjà un filtre avec cet identifiant\n";}
|
|
else
|
|
{
|
|
if ( (strlen($lead_filter_id) < 2) or (strlen($lead_filter_name) < 2) or (strlen($lead_filter_sql) < 2) )
|
|
{
|
|
echo "<br>FILTRE NON AJOUTE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Identifiant du filtre, le nom et le SQL doivent au moins contenir 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="INSERT INTO vicidial_lead_filters SET lead_filter_id='$lead_filter_id',lead_filter_name='$lead_filter_name',lead_filter_comments='$lead_filter_comments',lead_filter_sql='$lead_filter_sql';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>FILTRE AJOUTE: $lead_filter_id</B>\n";
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='FILTRES', event_type='ADD', record_id='$lead_filter_id', event_code='ADMIN AJOUTER LE FILTRE', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
$ADD=10000000;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=211111111 adds new call time definition to the system
|
|
######################
|
|
|
|
if ($ADD==211111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_call_times where call_time_id='$call_time_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>DEFINITION DE LA PERIODE D'APPEL NON AJOUTEE - il existe déjà une période d'appel avec cet ID\n";}
|
|
else
|
|
{
|
|
if ( (strlen($call_time_id) < 2) or (strlen($call_time_name) < 2) )
|
|
{
|
|
echo "<br>DEFINITION DE LA PERIODE D'APPEL NON AJOUTEE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>L'ID et le nom de la période d'appel doivent contenir au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="INSERT INTO vicidial_call_times SET call_time_id='$call_time_id',call_time_name='$call_time_name',call_time_comments='$call_time_comments';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>PERIODE D'APPELS AJOUTEE: $call_time_id</B>\n";
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CALLTIMES', event_type='ADD', record_id='$call_time_id', event_code='ADMIN ADD CALL TIME', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
$ADD=311111111;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=2111111111 adds new state call time definition to the system
|
|
######################
|
|
|
|
if ($ADD==2111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_state_call_times where state_call_time_id='$call_time_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>DEFINITION DE LA PERIODE D'APPELS DE L'ETAT NON AJOUTE - il existe déjà une période d'appel avec cet ID\n";}
|
|
else
|
|
{
|
|
if ( (strlen($call_time_id) < 2) or (strlen($call_time_name) < 2) or (strlen($state_call_time_state) < 2) )
|
|
{
|
|
echo "<br>DEFINITION DE LA PERIODE D'APPELS DE L'ETAT NON AJOUTE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>L'ID, le nom et l'état de l'appel doivent contenir au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="INSERT INTO vicidial_state_call_times SET state_call_time_id='$call_time_id',state_call_time_name='$call_time_name',state_call_time_comments='$call_time_comments',state_call_time_state='$state_call_time_state';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>PERIODE D'APPELS D'ETAT AJOUTEE: $call_time_id</B>\n";
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CALLTIMES_STATE', event_type='ADD', record_id='$call_time_id', event_code='ADMIN ADD STATE CALL TIME', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
$ADD=3111111111;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=231111111 adds new shift definition to the system
|
|
######################
|
|
|
|
if ($ADD==231111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_shifts where shift_id='$shift_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>MAJ définition pas AJOUTÉS - il ya déjà un quart d'entrée avec cette ID\n";}
|
|
else
|
|
{
|
|
$shift_length_test = eregi_replace(':','',$shift_length);
|
|
if ( (strlen($shift_id) < 2) or (strlen($shift_name) < 2) or (strlen($shift_start_time) < 4) or (strlen($shift_start_time) > 4) or (strlen($shift_length) < 5) or (strlen($shift_length) > 5) or ($shift_start_time > 2359) or ($shift_length_test > 2400) )
|
|
{
|
|
echo "<br>MAJ définition pas AJOUTÉS - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Shift ID et le nom doit être d'au moins 2 caractères\n";
|
|
echo "<br>Start Time Shift 4 chiffres doit être de longueur et une heure valide\n";
|
|
echo "<br>Shift Longueur doit être de 5 caractères de longueur et de 24 heures ou moins\n";
|
|
}
|
|
else
|
|
{
|
|
$p=0;
|
|
$shift_weekdays_ct = count($shift_weekdays);
|
|
while ($p <= $shift_weekdays_ct)
|
|
{
|
|
$SHIFT_weekdays .= "$shift_weekdays[$p]";
|
|
$p++;
|
|
}
|
|
$stmt="INSERT INTO vicidial_shifts SET shift_id='$shift_id',shift_name='$shift_name',shift_start_time='$shift_start_time',shift_length='$shift_length',shift_weekdays='$SHIFT_weekdays';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>SHIFT AJOUTÉS:$shift_id</B>\n";
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='SHIFTS', event_type='ADD', record_id='$shift_id', event_code='ADMIN ADD SHIFT', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
$ADD=331111111;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=21111111111 adds new phone to the system
|
|
######################
|
|
|
|
if ($ADD==21111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from phones where extension='$extension' and server_ip='$server_ip';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>TELEPHONE NON AJOUTE - il y a déjà un téléphone dans le systéme avec cette extension/serveur\n";}
|
|
else
|
|
{
|
|
$stmt="SELECT count(*) from phones where login='$login';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>PHONE NOT ADDED - il existe déjà un numéro de téléphone dans le système avec ce login\n";}
|
|
else
|
|
{
|
|
$stmt="SELECT count(*) from phones_alias where alias_id='$login';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>PHONE NOT ADDED - il existe déjà un numéro de téléphone alias dans le système avec ce login\n";}
|
|
else
|
|
{
|
|
if ( (strlen($extension) < 1) or (strlen($server_ip) < 7) or (strlen($dialplan_number) < 1) or (strlen($voicemail_id) < 1) or (strlen($login) < 1) or (strlen($pass) < 1))
|
|
{echo "<br>TELEPHONE NON AJOUTE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";}
|
|
else
|
|
{
|
|
echo "<br>TELEPHONE AJOUTE\n";
|
|
|
|
$stmt="INSERT INTO phones (extension,dialplan_number,voicemail_id,phone_ip,computer_ip,server_ip,login,pass,status,active,phone_type,fullname,company,picture,protocol,local_gmt,outbound_cid) values('$extension','$dialplan_number','$voicemail_id','$phone_ip','$computer_ip','$server_ip','$login','$pass','$status','$active','$phone_type','$fullname','$company','$picture','$protocol','$local_gmt','$outbound_cid');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmtA="UPDATE servers SET rebuild_conf_files='Y' where generate_vicidial_conf='Y' and active_asterisk_server='Y' and server_ip='$server_ip';";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='PHONES', event_type='ADD', record_id='$extension', event_code='ADMIN ADD PHONE', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
$ADD=31111111111;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=22111111111 adds new phone alias to the system
|
|
######################
|
|
|
|
if ($ADD==22111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from phones_alias where alias_id='$alias_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>PAS DE TELEPHONE ALIAS AJOUTÉS - il existe déjà un numéro de téléphone Alias dans le système avec cette ID\n";}
|
|
else
|
|
{
|
|
$stmt="SELECT count(*) from phones where login='$alias_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>PAS DE TELEPHONE ALIAS AJOUTÉS - il existe déjà un numéro de téléphone dans le système Connectez-vous avec cette ID\n";}
|
|
else
|
|
{
|
|
if ( (strlen($alias_id) < 1) or (strlen($alias_name) < 2) )
|
|
{echo "<br>PAS DE TELEPHONE ALIAS AJOUTÉS - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";}
|
|
else
|
|
{
|
|
echo "<br>PHONE ALIAS AJOUTÉS\n";
|
|
|
|
$stmt="INSERT INTO phones_alias (alias_id,alias_name,logins_list) values('$alias_id','$alias_name','$logins_list');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='PHONEALIASES', event_type='ADD', record_id='$alias_id', event_code='ADMIN ADD PHONE ALIAS', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
}
|
|
$ADD=32111111111;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=23111111111 adds new group alias to the system
|
|
######################
|
|
|
|
if ($ADD==23111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from groups_alias where group_alias_id='$group_alias_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>GROUPE ALIAS pas ajouté - il existe déjà un numéro de téléphone Alias dans le système avec cette ID\n";}
|
|
else
|
|
{
|
|
if (preg_match("/AGENT_PHONE|CUSTOMER|CAMPAIGN|NONE/",$group_alias_id))
|
|
{echo "<br>GROUPE ALIAS pas ajouté - vous ne pouvez pas utiliser des mots réservés dans le groupe des alias\n";}
|
|
else
|
|
{
|
|
if ( (strlen($group_alias_id) < 1) or (strlen($group_alias_name) < 2) )
|
|
{echo "<br>GROUPE ALIAS pas ajouté - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";}
|
|
else
|
|
{
|
|
echo "<br>GROUPE ALIAS AJOUTÉS\n";
|
|
|
|
$stmt="INSERT INTO groups_alias (group_alias_id,group_alias_name,caller_id_number,caller_id_name,active) values('$group_alias_id','$group_alias_name','$caller_id_number','$caller_id_name','$active');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='GROUPALIASES', event_type='ADD', record_id='$group_alias_id', event_code='ADMIN ADD GROUP ALIAS', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
}
|
|
$ADD=33111111111;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=211111111111 adds new server to the system
|
|
######################
|
|
|
|
if ($ADD==211111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from servers where server_id='$server_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>SERVEUR NON AJOUTE - il y a déjà un serveur dans le système avec cet ID\n";}
|
|
else
|
|
{
|
|
if ( (strlen($server_id) < 1) or (strlen($server_ip) < 7) )
|
|
{echo "<br>SERVEUR NON AJOUTE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";}
|
|
else
|
|
{
|
|
echo "<br>SERVEUR AJOUTE\n";
|
|
|
|
$stmt="INSERT INTO servers (server_id,server_description,server_ip,active,asterisk_version) values('$server_id','$server_description','$server_ip','$active','$asterisk_version');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmtA="UPDATE servers SET rebuild_conf_files='Y' where generate_vicidial_conf='Y' and active_asterisk_server='Y' and server_ip='$server_ip';";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='SERVERS', event_type='ADD', record_id='$server_id', event_code='ADMIN ADD SERVER', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
$ADD=311111111111;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=221111111111 adds the new vicidial server trunk record to the system
|
|
######################
|
|
|
|
if ($ADD==221111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT max_vicidial_trunks from servers where server_ip='$server_ip';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$MAXvicidial_trunks = $rowx[0];
|
|
|
|
$stmt="SELECT sum(dedicated_trunks) from vicidial_server_trunks where server_ip='$server_ip' and campaign_id !='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$SUMvicidial_trunks = ($rowx[0] + $dedicated_trunks);
|
|
|
|
if ($SUMvicidial_trunks > $MAXvicidial_trunks)
|
|
{
|
|
echo "<br>TRUNK DU SERVEUR VICIDIAL NON AJOUTE - le nombre de trunks vicidial est trop important: $SUMvicidial_trunks / $MAXvicidial_trunks\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="SELECT count(*) from vicidial_server_trunks where campaign_id='$campaign_id' and server_ip='$server_ip';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>TRUNK DU SERVEUR VICIDIAL NON AJOUTE - il y a déjà un trunk-serveur enregistré pour cette campagne\n";}
|
|
else
|
|
{
|
|
if ( (strlen($campaign_id) < 2) or (strlen($server_ip) < 7) or (strlen($dedicated_trunks) < 1) or (strlen($trunk_restriction) < 1) )
|
|
{
|
|
echo "<br>TRUNK DU SERVEUR VICIDIAL NON AJOUTE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>la campagne doit contenir entre 3 et 8 caractères\n";
|
|
echo "<br>le délai du server_ip doit contenir au moins 7 caractères\n";
|
|
echo "<br>les trunks doivent être un nombre entre 0 et 9999\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>TRUNK DU SERVEUR VICIDIAL AJOUTE: $campaign_id - $server_ip - $dedicated_trunks - $trunk_restriction</B>\n";
|
|
|
|
$stmt="INSERT INTO vicidial_server_trunks(server_ip,campaign_id,dedicated_trunks,trunk_restriction) values('$server_ip','$campaign_id','$dedicated_trunks','$trunk_restriction');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='SERVERS_TRUNK', event_type='ADD', record_id='$server_ip', event_code='ADMIN ADD SERVEUR TRUNK', event_sql=\"$SQL_log\", event_notes='campaign: $campaign_id';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
}
|
|
$ADD=311111111111;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=231111111111 adds new conf template to the system
|
|
######################
|
|
|
|
if ($ADD==231111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_conf_templates where template_id='$template_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>CONF TEMPLATE pas ajouté - il existe déjà un modèle dans le système avec cette ID\n";}
|
|
else
|
|
{
|
|
if (strlen($template_id) < 2)
|
|
{echo "<br>CONF TEMPLATE pas ajouté - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";}
|
|
else
|
|
{
|
|
echo "<br>CONF TEMPLATE AJOUTÉS\n";
|
|
|
|
$stmt="INSERT INTO vicidial_conf_templates (template_id,template_name,template_contents) values('$template_id','$template_name','$template_contents');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CONFTEMPLATES', event_type='ADD', record_id='$template_id', event_code='ADMIN ADD CONF TEMPLATE', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
$ADD=331111111111;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=241111111111 adds new server carrier to the system
|
|
######################
|
|
|
|
if ($ADD==241111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_server_carriers where carrier_id='$carrier_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>CARRIER pas ajouté - il ya déjà un transporteur dans le système avec cette ID\n";}
|
|
else
|
|
{
|
|
if ( (strlen($carrier_id) < 2) or (strlen($server_ip) < 7) )
|
|
{echo "<br>CARRIER pas ajouté - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";}
|
|
else
|
|
{
|
|
echo "<br>CARRIER ADDED\n";
|
|
|
|
$stmt="INSERT INTO vicidial_server_carriers (carrier_id,carrier_name,registration_string,template_id,account_entry,protocol,globals_string,dialplan_entry,server_ip,active) values('$carrier_id','$carrier_name','$registration_string','$template_id','$account_entry','$protocol','$globals_string','$dialplan_entry','$server_ip','N');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmtA="UPDATE servers SET rebuild_conf_files='Y' where generate_vicidial_conf='Y' and active_asterisk_server='Y' and server_ip='$server_ip';";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CARRIERS', event_type='ADD', record_id='$carrier_id', event_code='ADMIN ADD CARRIER', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
$ADD=341111111111;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=2111111111111 adds new conference to the system
|
|
######################
|
|
|
|
if ($ADD==2111111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from conferences where conf_exten='$conf_exten' and server_ip='$server_ip';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>CONFERENCE NON AJOUTEE - il y a déjà une conférence dans le système avec cet ID\n";}
|
|
else
|
|
{
|
|
if ( (strlen($conf_exten) < 1) or (strlen($server_ip) < 7) )
|
|
{echo "<br>CONFERENCE NON AJOUTEE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";}
|
|
else
|
|
{
|
|
echo "<br>CONFERENCE AJOUTEE\n";
|
|
|
|
$stmt="INSERT INTO conferences (conf_exten,server_ip) values('$conf_exten','$server_ip');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
$ADD=3111111111111;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=21111111111111 adds new vicidial conference to the system
|
|
######################
|
|
|
|
if ($ADD==21111111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_conferences where conf_exten='$conf_exten' and server_ip='$server_ip';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>VICIDIAL CONFERENCE NOT ADDED - there is already a vicidial conference in the system with this ID and server\n";}
|
|
else
|
|
{
|
|
if ( (strlen($conf_exten) < 1) or (strlen($server_ip) < 7) )
|
|
{echo "<br>VICIDIAL CONFERENCE NON AJOUTEE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";}
|
|
else
|
|
{
|
|
echo "<br>VICIDIAL CONFERENCE AJOUTEE\n";
|
|
|
|
$stmt="INSERT INTO vicidial_conferences (conf_exten,server_ip) values('$conf_exten','$server_ip');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
$ADD=31111111111111;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=221111111111111 adds the new system status to the system
|
|
######################
|
|
|
|
if ($ADD==221111111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_campaign_statuses where status='$status';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>STATUT DE SYSTÈME NON SUPPLÉMENTAIRE - there is already a campaign-status in the system with this name: $row[0]\n";}
|
|
else
|
|
{
|
|
$stmt="SELECT count(*) from vicidial_statuses where status='$status';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>STATUT DE SYSTÈME NON SUPPLÉMENTAIRE - there is already a global-status in the system with this name\n";}
|
|
else
|
|
{
|
|
if ( (strlen($status) < 1) or (strlen($status_name) < 2) )
|
|
{
|
|
echo "<br>STATUT DE SYSTÈME NON SUPPLÉMENTAIRE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>le statut doit contenir entre 1 et 8 caractères\n";
|
|
echo "<br>le nom du statut doit contenir entre 2 et 30 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>STATUT DE SYSTÈME SUPPLÉMENTAIRE: $status_name - $status</B>\n";
|
|
|
|
$stmt="INSERT INTO vicidial_statuses (status,status_name,selectable,human_answered,category) values('$status','$status_name','$selectable','$human_answered','$category');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='SYSTEMSTATUSES', event_type='ADD', record_id='$status', event_code='ADMIN ADD SYSTEM STATUS', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
}
|
|
$ADD=321111111111111;
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=231111111111111 adds the new status category to the system
|
|
######################
|
|
|
|
if ($ADD==231111111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_status_categories where vsc_id='$vsc_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>CATÉGORIE DE STATUT NON SUPPLÉMENTAIRE - il y a déjà une catégorie de statut dans le système avec cetteidentification: $row[0]\n";}
|
|
else
|
|
{
|
|
if ( (strlen($vsc_id) < 2) or (strlen($vsc_id) > 20) or (strlen($vsc_name) < 2) )
|
|
{
|
|
echo "<br>CATÉGORIE DE STATUT NON SUPPLÉMENTAIRE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>L'identification doit être entre 2 et 20 caractères de longueur\n";
|
|
echo "<br>le nom nommé doit être entre 2 et 50 caractères de longueur\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>STATUS CATÉGORIE ADDED: $vsc_id - $vsc_name</B>\n";
|
|
|
|
$stmt="SELECT count(*) from vicidial_status_categories where tovdad_display='Y' and vsc_id NOT IN('$vsc_id');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ( ($row[0] > 3) and (ereg('Y',$tovdad_display)) )
|
|
{
|
|
$tovdad_display = 'N';
|
|
echo "<br><B>ERREUR : Il y a déjà ensemble de 4 catégories de statut àl'affichage de TimeOnVDAD</B>\n";
|
|
}
|
|
|
|
$stmt="INSERT INTO vicidial_status_categories (vsc_id,vsc_name,vsc_description,tovdad_display,sale_category,dead_lead_category) values('$vsc_id','$vsc_name','$vsc_description','$tovdad_display','$sale_category','$dead_lead_category');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='STATUSCATEGORIES', event_type='ADD', record_id='$vsc_id', event_code='ADMIN ADD STATUS CATÉGORIE', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
$ADD=331111111111111;
|
|
}
|
|
|
|
|
|
|
|
######################
|
|
# ADD=241111111111111 adds the new qc status code to the system
|
|
######################
|
|
|
|
if ($ADD==241111111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_qc_codes where code='$code';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{echo "<br>QC CODE ÉTAT PAS AJOUTÉS- il existe déjà un code de statut qc dans le système avec ce nom: $row[0]\n";}
|
|
else
|
|
{
|
|
if ( (strlen($code) < 1) or (strlen($code_name) < 2) )
|
|
{
|
|
echo "<br>QC CODE ÉTAT PAS AJOUTÉS- Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>code doit être compris entre 1 et 8 caractères\n";
|
|
echo "<br>nom de code doit être compris entre 2 et 30 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>QC ÉTAT CODE AJOUTEE:$code_name - $code</B>\n";
|
|
|
|
$stmt="INSERT INTO vicidial_qc_codes (code,code_name) values('$code','$code_name');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='QCSTATUSES', event_type='ADD', record_id='$code', event_code='ADMIN ADD QC STATUS', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
$ADD=341111111111111;
|
|
}
|
|
|
|
|
|
|
|
######################################################################################################
|
|
######################################################################################################
|
|
####### 4 series, record modifications submitted and DB is modified, then on to 3 series forms below
|
|
######################################################################################################
|
|
######################################################################################################
|
|
|
|
|
|
|
|
######################
|
|
# ADD=4A submit user modifications to the system - ADMIN
|
|
######################
|
|
|
|
if ($ADD=="4A")
|
|
{
|
|
if ($LOGmodify_users==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($pass) < 2) or (strlen($full_name) < 2) or (strlen($user_level) < 1) )
|
|
{
|
|
echo "<br>UTILISATEUR NON MODIFIE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Le mot de passe et le nom complet doivent chacun contenir au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
if ($SSoutbound_autodial_active < 1)
|
|
{
|
|
$closer_default_blended = '0';
|
|
$delete_filters = '0';
|
|
$load_leads = '0';
|
|
}
|
|
echo "<br><B>UTILISATEUR MODIFIE - ADMIN: $user</B>\n";
|
|
|
|
$stmt="UPDATE vicidial_users set pass='$pass',full_name='$full_name',user_level='$user_level',user_group='$user_group',phone_login='$phone_login',phone_pass='$phone_pass',delete_users='$delete_users',delete_user_groups='$delete_user_groups',delete_lists='$delete_lists',delete_campaigns='$delete_campaigns',delete_ingroups='$delete_ingroups',delete_remote_agents='$delete_remote_agents',load_leads='$load_leads',campaign_detail='$campaign_detail',ast_admin_access='$ast_admin_access',ast_delete_phones='$ast_delete_phones',delete_scripts='$delete_scripts',modify_leads='$modify_leads',hotkeys_active='$hotkeys_active',change_agent_campaign='$change_agent_campaign',agent_choose_ingroups='$agent_choose_ingroups',closer_campaigns='$groups_value',scheduled_callbacks='$scheduled_callbacks',agentonly_callbacks='$agentonly_callbacks',agentcall_manual='$agentcall_manual',vicidial_recording='$vicidial_recording',vicidial_transfers='$vicidial_transfers',delete_filters='$delete_filters',alter_agent_interface_options='$alter_agent_interface_options',closer_default_blended='$closer_default_blended',delete_call_times='$delete_call_times',modify_call_times='$modify_call_times',modify_users='$modify_users',modify_campaigns='$modify_campaigns',modify_lists='$modify_lists',modify_scripts='$modify_scripts',modify_filters='$modify_filters',modify_ingroups='$modify_ingroups',modify_usergroups='$modify_usergroups',modify_remoteagents='$modify_remoteagents',modify_servers='$modify_servers',view_reports='$view_reports',vicidial_recording_override='$vicidial_recording_override',alter_custdata_override='$alter_custdata_override',qc_enabled='$qc_enabled',qc_user_level='$qc_user_level',qc_pass='$qc_pass',qc_finish='$qc_finish',qc_commit='$qc_commit',add_timeclock_log='$add_timeclock_log',modify_timeclock_log='$modify_timeclock_log',delete_timeclock_log='$delete_timeclock_log',alter_custphone_override='$alter_custphone_override',vdc_agent_api_access='$vdc_agent_api_access',modify_inbound_dids='$modify_inbound_dids',delete_inbound_dids='$delete_inbound_dids',active='$active',download_lists='$download_lists',agent_shift_enforcement_override='$agent_shift_enforcement_override',manager_shift_enforcement_override='$manager_shift_enforcement_override',export_reports='$export_reports' where user='$user';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='UTILISATEURS', event_type='MODIFY', record_id='$user', event_code='ADMIN MODIFY USER', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
###############################################################
|
|
##### START SYSTEM_SETTINGS VTIGER CONNECTION INFO LOOKUP #####
|
|
$stmt = "SELECT enable_vtiger_integration,vtiger_server_ip,vtiger_dbname,vtiger_login,vtiger_pass,vtiger_url FROM system_settings;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
if ($DB) {echo "$stmt\n";}
|
|
$ss_conf_ct = mysql_num_rows($rslt);
|
|
if ($ss_conf_ct > 0)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$enable_vtiger_integration = $row[0];
|
|
$vtiger_server_ip = $row[1];
|
|
$vtiger_dbname = $row[2];
|
|
$vtiger_login = $row[3];
|
|
$vtiger_pass = $row[4];
|
|
$vtiger_url = $row[5];
|
|
}
|
|
##### END SYSTEM_SETTINGS VTIGER CONNECTION INFO LOOKUP #####
|
|
#############################################################
|
|
|
|
if ($enable_vtiger_integration > 0)
|
|
{
|
|
### connect to your vtiger database
|
|
$linkV=mysql_connect("$vtiger_server_ip", "$vtiger_login","$vtiger_pass");
|
|
if (!$linkV) {die("Could not connect: $vtiger_server_ip|$vtiger_dbname|$vtiger_login|$vtiger_pass" . mysql_error());}
|
|
echo 'Connected successfully';
|
|
mysql_select_db("$vtiger_dbname", $linkV);
|
|
|
|
$user_name = $user;
|
|
$user_password = $pass;
|
|
$last_name = $full_name;
|
|
$is_admin = 'off';
|
|
$roleid = 'H5';
|
|
$status = 'Active';
|
|
$groupid = '1';
|
|
if ($user_level >= 7) {$roleid = 'H3';}
|
|
if ($user_level >= 8) {$roleid = 'H4';}
|
|
if ($user_level >= 9) {$roleid = 'H2';}
|
|
if ($user_level >= 9) {$is_admin = 'on';}
|
|
$salt = substr($user_name, 0, 2);
|
|
$salt = '$1$' . $salt . '$';
|
|
$encrypted_password = crypt($user_password, $salt);
|
|
|
|
######################################
|
|
##### BEGIN Add/Update group info in Vtiger
|
|
$stmt="SELECT count(*) from vtiger_groups where groupname='$user_group';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$group_found_count = $row[0];
|
|
|
|
### group exists in vtiger, update it
|
|
if ($group_found_count > 0)
|
|
{
|
|
$stmt="SELECT groupid from vtiger_groups where groupname='$user_group';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$groupid = $row[0];
|
|
}
|
|
|
|
### user doesn't exist in vtiger, insert it
|
|
else
|
|
{
|
|
#### BEGIN CREATE NEW GROUP RECORD IN VTIGER
|
|
# Get next available id from vtiger_groups_seq to use as groupid
|
|
$stmt="SELECT id from vtiger_groups_seq;";
|
|
if ($DB) {echo "$stmt\n";}
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
$row=mysql_fetch_row($rslt);
|
|
$groupid = ($row[0] + 1);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
# Increase next available groupid with 1 so next record gets proper id
|
|
$stmt="UPDATE vtiger_groups_seq SET id = '$groupid';";
|
|
if ($DB) {echo "$stmt\n";}
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtA = "INSERT INTO vtiger_groups SET groupid='$groupid',groupname='$user_group',description='';";
|
|
if ($DB) {echo "|$stmtA|\n";}
|
|
$rslt=mysql_query($stmtA, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
#### END CREATE NEW GROUP RECORD IN VTIGER
|
|
}
|
|
##### END Add/Update group info in Vtiger
|
|
######################################
|
|
|
|
######################################
|
|
##### BEGIN Add/Update user info in Vtiger
|
|
$stmt="SELECT count(*) from vtiger_users where user_name='$user_name';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$found_count = $row[0];
|
|
|
|
### user exists in vtiger, update it
|
|
if ($found_count > 0)
|
|
{
|
|
$stmt="SELECT id from vtiger_users where user_name='$user_name';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$userid = $row[0];
|
|
|
|
$stmt="SELECT count(*) from vtiger_users2group WHERE userid='$userid' and groupid='$groupid';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$usergroupcount = $row[0];
|
|
|
|
$stmtA = "UPDATE vtiger_users SET user_password='$encrypted_password',last_name='$last_name',is_admin='$is_admin',status='$status' where id='$userid';";
|
|
if ($DB) {echo "|$stmtA|\n";}
|
|
$rslt=mysql_query($stmtA, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtB = "UPDATE vtiger_user2role SET roleid='$roleid' where userid='$userid';";
|
|
if ($DB) {echo "|$stmtB|\n";}
|
|
$rslt=mysql_query($stmtB, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
if ($usergroupcount < 1)
|
|
{
|
|
$stmt="SELECT user_group FROM vicidial_user_groups;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
if ($DB) {echo "$stmt\n";}
|
|
$VD_groups_ct = mysql_num_rows($rslt);
|
|
$k=0;
|
|
$VD_groups_list='';
|
|
while ($k < $VD_groups_ct)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$VD_groups_list .= "'$row[0]',";
|
|
$k++;
|
|
}
|
|
$VD_groups_list = preg_replace("/.$/",'',$VD_groups_list);
|
|
|
|
$stmtC = "DELETE FROM vtiger_users2group WHERE userid='$userid' and groupid IN(SELECT groupid from vtiger_groups where groupname IN($VD_groups_list));";
|
|
if ($DB) {echo "|$stmtC|\n";}
|
|
$rslt=mysql_query($stmtC, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtD = "INSERT INTO vtiger_users2group SET userid='$userid',groupid='$groupid';";
|
|
if ($DB) {echo "|$stmtD|\n";}
|
|
$rslt=mysql_query($stmtD, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
}
|
|
}
|
|
|
|
### user doesn't exist in vtiger, insert it
|
|
else
|
|
{
|
|
#### BEGIN CREATE NEW USER RECORD IN VTIGER
|
|
$stmtA = "INSERT INTO vtiger_users SET user_name='$user_name',user_password='$encrypted_password',last_name='$last_name',is_admin='$is_admin',status='$status',date_format='yyyy-mm-dd',first_name='',reports_to_id='',description='',title='',department='',phone_home='',phone_mobile='',phone_work='',phone_other='',phone_fax='',email1='',email2='',yahoo_id='',signature='',address_street='',address_city='',address_state='',address_country='',address_postalcode='',user_preferences='',imagename='';";
|
|
if ($DB) {echo "|$stmtA|\n";}
|
|
$rslt=mysql_query($stmtA, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$userid = mysql_insert_id($linkV);
|
|
|
|
$stmtB = "INSERT INTO vtiger_user2role SET userid='$userid',roleid='$roleid';";
|
|
if ($DB) {echo "|$stmtB|\n";}
|
|
$rslt=mysql_query($stmtB, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtC = "INSERT INTO vtiger_users2group SET userid='$userid',groupid='$groupid';";
|
|
if ($DB) {echo "|$stmtC|\n";}
|
|
$rslt=mysql_query($stmtC, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtD = "UPDATE vtiger_users_seq SET id='$userid';";
|
|
if ($DB) {echo "|$stmtD|\n";}
|
|
$rslt=mysql_query($stmtD, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
#### END CREATE NEW USER RECORD IN VTIGER
|
|
}
|
|
##### END Add/Update user info in Vtiger
|
|
######################################
|
|
}
|
|
### END vtiger integration
|
|
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=3; # go to user modification below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=4B submit user modifications to the system - ADMIN
|
|
######################
|
|
|
|
if ($ADD=="4B")
|
|
{
|
|
if ($LOGmodify_users==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($pass) < 2) or (strlen($full_name) < 2) or (strlen($user_level) < 1) )
|
|
{
|
|
echo "<br>UTILISATEUR NON MODIFIE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Le mot de passe et le nom complet doivent chacun contenir au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
if ($SSoutbound_autodial_active < 1)
|
|
{
|
|
$closer_default_blended = '0';
|
|
$delete_filters = '0';
|
|
$load_leads = '0';
|
|
}
|
|
echo "<br><B>UTILISATEUR MODIFIE - ADMIN: $user</B>\n";
|
|
|
|
$stmt="UPDATE vicidial_users set pass='$pass',full_name='$full_name',user_level='$user_level',user_group='$user_group',phone_login='$phone_login',phone_pass='$phone_pass',hotkeys_active='$hotkeys_active',agent_choose_ingroups='$agent_choose_ingroups',closer_campaigns='$groups_value',scheduled_callbacks='$scheduled_callbacks',agentonly_callbacks='$agentonly_callbacks',agentcall_manual='$agentcall_manual',vicidial_recording='$vicidial_recording',vicidial_transfers='$vicidial_transfers',closer_default_blended='$closer_default_blended',vicidial_recording_override='$vicidial_recording_override',alter_custdata_override='$alter_custdata_override',qc_enabled='$qc_enabled',qc_user_level='$qc_user_level',qc_pass='$qc_pass',qc_finish='$qc_finish',qc_commit='$qc_commit',alter_custphone_override='$alter_custphone_override',active='$active',agent_shift_enforcement_override='$agent_shift_enforcement_override' where user='$user';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='UTILISATEURS', event_type='MODIFY', record_id='$user', event_code='ADMIN MODIFY USER', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
###############################################################
|
|
##### START SYSTEM_SETTINGS VTIGER CONNECTION INFO LOOKUP #####
|
|
$stmt = "SELECT enable_vtiger_integration,vtiger_server_ip,vtiger_dbname,vtiger_login,vtiger_pass,vtiger_url FROM system_settings;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
if ($DB) {echo "$stmt\n";}
|
|
$ss_conf_ct = mysql_num_rows($rslt);
|
|
if ($ss_conf_ct > 0)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$enable_vtiger_integration = $row[0];
|
|
$vtiger_server_ip = $row[1];
|
|
$vtiger_dbname = $row[2];
|
|
$vtiger_login = $row[3];
|
|
$vtiger_pass = $row[4];
|
|
$vtiger_url = $row[5];
|
|
}
|
|
##### END SYSTEM_SETTINGS VTIGER CONNECTION INFO LOOKUP #####
|
|
#############################################################
|
|
|
|
if ($enable_vtiger_integration > 0)
|
|
{
|
|
### connect to your vtiger database
|
|
$linkV=mysql_connect("$vtiger_server_ip", "$vtiger_login","$vtiger_pass");
|
|
if (!$linkV) {die("Could not connect: $vtiger_server_ip|$vtiger_dbname|$vtiger_login|$vtiger_pass" . mysql_error());}
|
|
echo 'Connected successfully';
|
|
mysql_select_db("$vtiger_dbname", $linkV);
|
|
|
|
$user_name = $user;
|
|
$user_password = $pass;
|
|
$last_name = $full_name;
|
|
$is_admin = 'off';
|
|
$roleid = 'H5';
|
|
$status = 'Active';
|
|
$groupid = '1';
|
|
if ($user_level >= 7) {$roleid = 'H3';}
|
|
if ($user_level >= 8) {$roleid = 'H4';}
|
|
if ($user_level >= 9) {$roleid = 'H2';}
|
|
if ($user_level >= 9) {$is_admin = 'on';}
|
|
$salt = substr($user_name, 0, 2);
|
|
$salt = '$1$' . $salt . '$';
|
|
$encrypted_password = crypt($user_password, $salt);
|
|
|
|
######################################
|
|
##### BEGIN Add/Update group info in Vtiger
|
|
$stmt="SELECT count(*) from vtiger_groups where groupname='$user_group';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$group_found_count = $row[0];
|
|
|
|
### group exists in vtiger, update it
|
|
if ($group_found_count > 0)
|
|
{
|
|
$stmt="SELECT groupid from vtiger_groups where groupname='$user_group';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$groupid = $row[0];
|
|
}
|
|
|
|
### user doesn't exist in vtiger, insert it
|
|
else
|
|
{
|
|
#### BEGIN CREATE NEW GROUP RECORD IN VTIGER
|
|
# Get next available id from vtiger_groups_seq to use as groupid
|
|
$stmt="SELECT id from vtiger_groups_seq;";
|
|
if ($DB) {echo "$stmt\n";}
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
$row=mysql_fetch_row($rslt);
|
|
$groupid = ($row[0] + 1);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
# Increase next available groupid with 1 so next record gets proper id
|
|
$stmt="UPDATE vtiger_groups_seq SET id = '$groupid';";
|
|
if ($DB) {echo "$stmt\n";}
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtA = "INSERT INTO vtiger_groups SET groupid='$groupid',groupname='$user_group',description='';";
|
|
if ($DB) {echo "|$stmtA|\n";}
|
|
$rslt=mysql_query($stmtA, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
#### END CREATE NEW GROUP RECORD IN VTIGER
|
|
}
|
|
##### END Add/Update group info in Vtiger
|
|
######################################
|
|
|
|
######################################
|
|
##### BEGIN Add/Update user info in Vtiger
|
|
$stmt="SELECT count(*) from vtiger_users where user_name='$user_name';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$found_count = $row[0];
|
|
|
|
### user exists in vtiger, update it
|
|
if ($found_count > 0)
|
|
{
|
|
$stmt="SELECT id from vtiger_users where user_name='$user_name';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$userid = $row[0];
|
|
|
|
$stmt="SELECT count(*) from vtiger_users2group WHERE userid='$userid' and groupid='$groupid';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$usergroupcount = $row[0];
|
|
|
|
$stmtA = "UPDATE vtiger_users SET user_password='$encrypted_password',last_name='$last_name',is_admin='$is_admin',status='$status' where id='$userid';";
|
|
if ($DB) {echo "|$stmtA|\n";}
|
|
$rslt=mysql_query($stmtA, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtB = "UPDATE vtiger_user2role SET roleid='$roleid' where userid='$userid';";
|
|
if ($DB) {echo "|$stmtB|\n";}
|
|
$rslt=mysql_query($stmtB, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
if ($usergroupcount < 1)
|
|
{
|
|
$stmt="SELECT user_group FROM vicidial_user_groups;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
if ($DB) {echo "$stmt\n";}
|
|
$VD_groups_ct = mysql_num_rows($rslt);
|
|
$k=0;
|
|
$VD_groups_list='';
|
|
while ($k < $VD_groups_ct)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$VD_groups_list .= "'$row[0]',";
|
|
$k++;
|
|
}
|
|
$VD_groups_list = preg_replace("/.$/",'',$VD_groups_list);
|
|
|
|
$stmtC = "DELETE FROM vtiger_users2group WHERE userid='$userid' and groupid IN(SELECT groupid from vtiger_groups where groupname IN($VD_groups_list));";
|
|
if ($DB) {echo "|$stmtC|\n";}
|
|
$rslt=mysql_query($stmtC, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtD = "INSERT INTO vtiger_users2group SET userid='$userid',groupid='$groupid';";
|
|
if ($DB) {echo "|$stmtD|\n";}
|
|
$rslt=mysql_query($stmtD, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
}
|
|
}
|
|
|
|
### user doesn't exist in vtiger, insert it
|
|
else
|
|
{
|
|
#### BEGIN CREATE NEW USER RECORD IN VTIGER
|
|
$stmtA = "INSERT INTO vtiger_users SET user_name='$user_name',user_password='$encrypted_password',last_name='$last_name',is_admin='$is_admin',status='$status',date_format='yyyy-mm-dd',first_name='',reports_to_id='',description='',title='',department='',phone_home='',phone_mobile='',phone_work='',phone_other='',phone_fax='',email1='',email2='',yahoo_id='',signature='',address_street='',address_city='',address_state='',address_country='',address_postalcode='',user_preferences='',imagename='';";
|
|
if ($DB) {echo "|$stmtA|\n";}
|
|
$rslt=mysql_query($stmtA, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$userid = mysql_insert_id($linkV);
|
|
|
|
$stmtB = "INSERT INTO vtiger_user2role SET userid='$userid',roleid='$roleid';";
|
|
if ($DB) {echo "|$stmtB|\n";}
|
|
$rslt=mysql_query($stmtB, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtC = "INSERT INTO vtiger_users2group SET userid='$userid',groupid='$groupid';";
|
|
if ($DB) {echo "|$stmtC|\n";}
|
|
$rslt=mysql_query($stmtC, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtD = "UPDATE vtiger_users_seq SET id='$userid';";
|
|
if ($DB) {echo "|$stmtD|\n";}
|
|
$rslt=mysql_query($stmtD, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
#### END CREATE NEW USER RECORD IN VTIGER
|
|
}
|
|
##### END Add/Update user info in Vtiger
|
|
######################################
|
|
}
|
|
### END vtiger integration
|
|
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=3; # go to user modification below
|
|
}
|
|
|
|
|
|
|
|
######################
|
|
# ADD=4 submit user modifications to the system
|
|
######################
|
|
|
|
if ($ADD==4)
|
|
{
|
|
if ($LOGmodify_users==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($pass) < 2) or (strlen($full_name) < 2) or (strlen($user_level) < 1) )
|
|
{
|
|
echo "<br>UTILISATEUR NON MODIFIE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Le mot de passe et le nom complet doivent chacun contenir au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>UTILISATEUR MODIFIE: $user</B>\n";
|
|
|
|
$stmt="UPDATE vicidial_users set pass='$pass',full_name='$full_name',user_level='$user_level',user_group='$user_group',phone_login='$phone_login',phone_pass='$phone_pass',active='$active' where user='$user';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='UTILISATEURS', event_type='MODIFY', record_id='$user', event_code='ADMIN MODIFY USER', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
###############################################################
|
|
##### START SYSTEM_SETTINGS VTIGER CONNECTION INFO LOOKUP #####
|
|
$stmt = "SELECT enable_vtiger_integration,vtiger_server_ip,vtiger_dbname,vtiger_login,vtiger_pass,vtiger_url FROM system_settings;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
if ($DB) {echo "$stmt\n";}
|
|
$ss_conf_ct = mysql_num_rows($rslt);
|
|
if ($ss_conf_ct > 0)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$enable_vtiger_integration = $row[0];
|
|
$vtiger_server_ip = $row[1];
|
|
$vtiger_dbname = $row[2];
|
|
$vtiger_login = $row[3];
|
|
$vtiger_pass = $row[4];
|
|
$vtiger_url = $row[5];
|
|
}
|
|
##### END SYSTEM_SETTINGS VTIGER CONNECTION INFO LOOKUP #####
|
|
#############################################################
|
|
|
|
if ($enable_vtiger_integration > 0)
|
|
{
|
|
### connect to your vtiger database
|
|
$linkV=mysql_connect("$vtiger_server_ip", "$vtiger_login","$vtiger_pass");
|
|
if (!$linkV) {die("Could not connect: $vtiger_server_ip|$vtiger_dbname|$vtiger_login|$vtiger_pass" . mysql_error());}
|
|
echo 'Connected successfully';
|
|
mysql_select_db("$vtiger_dbname", $linkV);
|
|
|
|
$user_name = $user;
|
|
$user_password = $pass;
|
|
$last_name = $full_name;
|
|
$is_admin = 'off';
|
|
$roleid = 'H5';
|
|
$status = 'Active';
|
|
$groupid = '1';
|
|
if ($user_level >= 7) {$roleid = 'H3';}
|
|
if ($user_level >= 8) {$roleid = 'H4';}
|
|
if ($user_level >= 9) {$roleid = 'H2';}
|
|
if ($user_level >= 9) {$is_admin = 'on';}
|
|
$salt = substr($user_name, 0, 2);
|
|
$salt = '$1$' . $salt . '$';
|
|
$encrypted_password = crypt($user_password, $salt);
|
|
|
|
######################################
|
|
##### BEGIN Add/Update group info in Vtiger
|
|
$stmt="SELECT count(*) from vtiger_groups where groupname='$user_group';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$group_found_count = $row[0];
|
|
|
|
### group exists in vtiger, update it
|
|
if ($group_found_count > 0)
|
|
{
|
|
$stmt="SELECT groupid from vtiger_groups where groupname='$user_group';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$groupid = $row[0];
|
|
}
|
|
|
|
### user doesn't exist in vtiger, insert it
|
|
else
|
|
{
|
|
#### BEGIN CREATE NEW GROUP RECORD IN VTIGER
|
|
# Get next available id from vtiger_groups_seq to use as groupid
|
|
$stmt="SELECT id from vtiger_groups_seq;";
|
|
if ($DB) {echo "$stmt\n";}
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
$row=mysql_fetch_row($rslt);
|
|
$groupid = ($row[0] + 1);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
# Increase next available groupid with 1 so next record gets proper id
|
|
$stmt="UPDATE vtiger_groups_seq SET id = '$groupid';";
|
|
if ($DB) {echo "$stmt\n";}
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtA = "INSERT INTO vtiger_groups SET groupid='$groupid',groupname='$user_group',description='';";
|
|
if ($DB) {echo "|$stmtA|\n";}
|
|
$rslt=mysql_query($stmtA, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
#### END CREATE NEW GROUP RECORD IN VTIGER
|
|
}
|
|
##### END Add/Update group info in Vtiger
|
|
######################################
|
|
|
|
######################################
|
|
##### BEGIN Add/Update user info in Vtiger
|
|
$stmt="SELECT count(*) from vtiger_users where user_name='$user_name';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$found_count = $row[0];
|
|
|
|
### user exists in vtiger, update it
|
|
if ($found_count > 0)
|
|
{
|
|
$stmt="SELECT id from vtiger_users where user_name='$user_name';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$userid = $row[0];
|
|
|
|
$stmt="SELECT count(*) from vtiger_users2group WHERE userid='$userid' and groupid='$groupid';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$usergroupcount = $row[0];
|
|
|
|
$stmtA = "UPDATE vtiger_users SET user_password='$encrypted_password',last_name='$last_name',is_admin='$is_admin',status='$status' where id='$userid';";
|
|
if ($DB) {echo "|$stmtA|\n";}
|
|
$rslt=mysql_query($stmtA, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtB = "UPDATE vtiger_user2role SET roleid='$roleid' where userid='$userid';";
|
|
if ($DB) {echo "|$stmtB|\n";}
|
|
$rslt=mysql_query($stmtB, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
if ($usergroupcount < 1)
|
|
{
|
|
$stmt="SELECT user_group FROM vicidial_user_groups;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
if ($DB) {echo "$stmt\n";}
|
|
$VD_groups_ct = mysql_num_rows($rslt);
|
|
$k=0;
|
|
$VD_groups_list='';
|
|
while ($k < $VD_groups_ct)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$VD_groups_list .= "'$row[0]',";
|
|
$k++;
|
|
}
|
|
$VD_groups_list = preg_replace("/.$/",'',$VD_groups_list);
|
|
|
|
$stmtC = "DELETE FROM vtiger_users2group WHERE userid='$userid' and groupid IN(SELECT groupid from vtiger_groups where groupname IN($VD_groups_list));";
|
|
if ($DB) {echo "|$stmtC|\n";}
|
|
$rslt=mysql_query($stmtC, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtD = "INSERT INTO vtiger_users2group SET userid='$userid',groupid='$groupid';";
|
|
if ($DB) {echo "|$stmtD|\n";}
|
|
$rslt=mysql_query($stmtD, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
}
|
|
}
|
|
|
|
### user doesn't exist in vtiger, insert it
|
|
else
|
|
{
|
|
#### BEGIN CREATE NEW USER RECORD IN VTIGER
|
|
$stmtA = "INSERT INTO vtiger_users SET user_name='$user_name',user_password='$encrypted_password',last_name='$last_name',is_admin='$is_admin',status='$status',date_format='yyyy-mm-dd',first_name='',reports_to_id='',description='',title='',department='',phone_home='',phone_mobile='',phone_work='',phone_other='',phone_fax='',email1='',email2='',yahoo_id='',signature='',address_street='',address_city='',address_state='',address_country='',address_postalcode='',user_preferences='',imagename='';";
|
|
if ($DB) {echo "|$stmtA|\n";}
|
|
$rslt=mysql_query($stmtA, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$userid = mysql_insert_id($linkV);
|
|
|
|
$stmtB = "INSERT INTO vtiger_user2role SET userid='$userid',roleid='$roleid';";
|
|
if ($DB) {echo "|$stmtB|\n";}
|
|
$rslt=mysql_query($stmtB, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtC = "INSERT INTO vtiger_users2group SET userid='$userid',groupid='$groupid';";
|
|
if ($DB) {echo "|$stmtC|\n";}
|
|
$rslt=mysql_query($stmtC, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtD = "UPDATE vtiger_users_seq SET id='$userid';";
|
|
if ($DB) {echo "|$stmtD|\n";}
|
|
$rslt=mysql_query($stmtD, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
#### END CREATE NEW USER RECORD IN VTIGER
|
|
}
|
|
##### END Add/Update user info in Vtiger
|
|
######################################
|
|
}
|
|
### END vtiger integration
|
|
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=3; # go to user modification below
|
|
}
|
|
|
|
######################
|
|
# ADD=41 submit campaign modifications to the system - DETAIL
|
|
######################
|
|
|
|
if ($ADD==41)
|
|
{
|
|
if ($LOGmodify_campaigns==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ($SSoutbound_autodial_active < 1)
|
|
{
|
|
$adaptive_dl_diff_target = '0';
|
|
$adaptive_dropped_percentage = '99';
|
|
$adaptive_intensity = '0';
|
|
$adaptive_latest_server_time = '2359';
|
|
$adaptive_maximum_level = '1.0';
|
|
$agent_extended_alt_dial = 'N';
|
|
$alt_number_dialing = 'N';
|
|
$am_message_exten = '8300';
|
|
$amd_send_to_vmx = 'N';
|
|
$auto_alt_dial = 'N';
|
|
$auto_dial_level = '1.0';
|
|
$available_only_ratio_tally = 'Y';
|
|
$campaign_allow_inbound = 'Y';
|
|
$campaign_vdad_exten = '8368';
|
|
$concurrent_transfers = 'AUTO';
|
|
$dial_method = 'RATIO';
|
|
$dial_status = '';
|
|
$dial_timeout = '60';
|
|
$drop_action = 'HANGUP';
|
|
$drop_call_seconds = '5';
|
|
$drop_inbound_group = '---NONE---';
|
|
$force_reset_hopper = 'N';
|
|
$hopper_level = '5';
|
|
$lead_filter_id = 'NONE';
|
|
$lead_order = 'DOWN';
|
|
$list_order_mix = 'DISABLED';
|
|
$no_hopper_leads_logins = 'Y';
|
|
$queue_priority = '50';
|
|
$safe_harbor_exten = '8300';
|
|
$survey_camp_record_dir = '/home/survey';
|
|
$survey_dtmf_digits = '1238';
|
|
$survey_first_audio_file = 'US_pol_survey_hello';
|
|
$survey_method = 'AGENT_XFER';
|
|
$survey_ni_audio_file = '';
|
|
$survey_ni_digit = '8';
|
|
$survey_ni_status = 'NI';
|
|
$survey_no_response_action = 'OPTIN';
|
|
$survey_opt_in_audio_file = 'US_pol_survey_transfer';
|
|
$survey_response_digit_map = '1-DEMOCRAT|2-REPUBLICAN|3-INDEPENDANT|8-OPTOUT|X-NO RESPONSE|';
|
|
$survey_xfer_exten = '8300';
|
|
$voicemail_ext = '';
|
|
$cpd_amd_action = 'DISABLED';
|
|
}
|
|
if (ereg('list_activation',$stage))
|
|
{
|
|
$p=0;
|
|
echo "<BR>LISTES D'ACTIFS MODIFIES";
|
|
$list_active_change_ct = count($list_active_change);
|
|
while ($p < $list_active_change_ct)
|
|
{
|
|
$LIST_ACTIVATE .= "'$list_active_change[$p]',";
|
|
$p++;
|
|
}
|
|
|
|
$stmt = "UPDATE vicidial_lists SET active='Y' where list_id IN($LIST_ACTIVATE'') and campaign_id='$campaign_id';";
|
|
$stmtB = "UPDATE vicidial_lists SET active='N' where list_id NOT IN($LIST_ACTIVATE'') and campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$rslt=mysql_query($stmtB, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|$stmtB|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGNS', event_type='MODIFY', record_id='$campaign_id', event_code='ADMIN MODIFY CAMPAIGN ACTIVE LISTES', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
if ($DB > 0) {echo "|$stmt|\n|$stmtB|\n";}
|
|
}
|
|
else
|
|
{
|
|
if ( (strlen($campaign_name) < 6) or (strlen($active) < 1) )
|
|
{
|
|
echo "<br>CAMPAGNE NON MODIFIEE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>le nom de la campagne doit contenir au moins 6 caractères\n";
|
|
echo "<br>|$campaign_name|$active|\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>CAMPAGNE MODIFIEE: $campaign_id</B>\n";
|
|
|
|
if ($dial_method == 'MANUAL')
|
|
{
|
|
$auto_dial_level='0';
|
|
$adlSQL = "auto_dial_level='0',";
|
|
}
|
|
else
|
|
{
|
|
if ($dial_level_override > 0)
|
|
{
|
|
$adlSQL = "auto_dial_level='$auto_dial_level',";
|
|
}
|
|
else
|
|
{
|
|
if ($dial_method == 'RATIO')
|
|
{
|
|
if ($auto_dial_level < 1) {$auto_dial_level = "1.0";}
|
|
$adlSQL = "auto_dial_level='$auto_dial_level',";
|
|
}
|
|
else
|
|
{
|
|
$adlSQL = "";
|
|
if ($auto_dial_level < 1)
|
|
{
|
|
$auto_dial_level = "1.0";
|
|
$adlSQL = "auto_dial_level='$auto_dial_level',";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if ( (!ereg("DISABLED",$list_order_mix)) and ($hopper_level < 100) )
|
|
{$hopper_level='100';}
|
|
|
|
$stmtA="UPDATE vicidial_campaigns set campaign_name='$campaign_name',active='$active',dial_status_a='$dial_status_a',dial_status_b='$dial_status_b',dial_status_c='$dial_status_c',dial_status_d='$dial_status_d',dial_status_e='$dial_status_e',lead_order='$lead_order',allow_closers='$allow_closers',hopper_level='$hopper_level', $adlSQL next_agent_call='$next_agent_call', local_call_time='$local_call_time', voicemail_ext='$voicemail_ext', dial_timeout='$dial_timeout', dial_prefix='$dial_prefix', campaign_cid='$campaign_cid', campaign_vdad_exten='$campaign_vdad_exten', web_form_address='" . mysql_real_escape_string($web_form_address) . "', park_ext='$park_ext', park_file_name='$park_file_name', campaign_rec_exten='$campaign_rec_exten', campaign_recording='$campaign_recording', campaign_rec_filename='$campaign_rec_filename', campaign_script='$script_id', get_call_launch='$get_call_launch', am_message_exten='$am_message_exten', amd_send_to_vmx='$amd_send_to_vmx', xferconf_a_dtmf='$xferconf_a_dtmf',xferconf_a_number='$xferconf_a_number',xferconf_b_dtmf='$xferconf_b_dtmf',xferconf_b_number='$xferconf_b_number',lead_filter_id='$lead_filter_id',alt_number_dialing='$alt_number_dialing',scheduled_callbacks='$scheduled_callbacks',drop_action='$drop_action',drop_call_seconds='$drop_call_seconds',safe_harbor_exten='$safe_harbor_exten',wrapup_seconds='$wrapup_seconds',wrapup_message='$wrapup_message',closer_campaigns='$groups_value',use_internal_dnc='$use_internal_dnc',allcalls_delay='$allcalls_delay',omit_phone_code='$omit_phone_code',dial_method='$dial_method',available_only_ratio_tally='$available_only_ratio_tally',adaptive_dropped_percentage='$adaptive_dropped_percentage',adaptive_maximum_level='$adaptive_maximum_level',adaptive_latest_server_time='$adaptive_latest_server_time',adaptive_intensity='$adaptive_intensity',adaptive_dl_diff_target='$adaptive_dl_diff_target',concurrent_transfers='$concurrent_transfers',auto_alt_dial='$auto_alt_dial',agent_pause_codes_active='$agent_pause_codes_active',campaign_description='$campaign_description',campaign_changedate='$SQLdate',campaign_stats_refresh='$campaign_stats_refresh',disable_alter_custdata='$disable_alter_custdata',no_hopper_leads_logins='$no_hopper_leads_logins',list_order_mix='$list_order_mix',campaign_allow_inbound='$campaign_allow_inbound',manual_dial_list_id='$manual_dial_list_id',default_xfer_group='$default_xfer_group',xfer_groups='$XFERgroups_value',queue_priority='$queue_priority',drop_inbound_group='$drop_inbound_group',disable_alter_custphone='$disable_alter_custphone',display_queue_count='$display_queue_count',manual_dial_filter='$manual_dial_filter',agent_clipboard_copy='$agent_clipboard_copy',agent_extended_alt_dial='$agent_extended_alt_dial',use_campaign_dnc='$use_campaign_dnc',three_way_call_cid='$three_way_call_cid',three_way_dial_prefix='$three_way_dial_prefix',web_form_target='$web_form_target',vtiger_search_category='$vtiger_search_category',vtiger_create_call_record='$vtiger_create_call_record',vtiger_create_lead_record='$vtiger_create_lead_record',vtiger_screen_login='$vtiger_screen_login',cpd_amd_action='$cpd_amd_action',agent_allow_group_alias='$agent_allow_group_alias',default_group_alias='$default_group_alias' where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
if ($reset_hopper == 'Y')
|
|
{
|
|
echo "<br>REINITIALISATION DU DISTRIBUTEUR DE FICHES DE LA CAMPAGNE\n";
|
|
echo "<br> - Attendre 1 minute avant l'appel du numéro suivant\n";
|
|
$stmt="DELETE from vicidial_hopper where campaign_id='$campaign_id' and status IN('READY','QUEUE','DONE');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGNS', event_type='RESET', record_id='$campaign_id', event_code='ADMIN RESET CAMPAIGN LEAD HOPPER', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmtA|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGNS', event_type='MODIFY', record_id='$campaign_id', event_code='ADMIN MODIFY CAMPAIGN', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=31; # go to campaign modification form below
|
|
}
|
|
|
|
######################
|
|
# ADD=42 modify/delete campaign status in the system
|
|
######################
|
|
|
|
if ($ADD==42)
|
|
{
|
|
if ($LOGmodify_campaigns==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($campaign_id) < 2) or (strlen($status) < 1) )
|
|
{
|
|
echo "<br>STAUT DE LA CAMPAGNE NON MODIFIE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>L'ID de la campagne doit contenir au moins 2 caractères\n";
|
|
echo "<br>Le statut de la campagne doit contenir au moins 1 caractère\n";
|
|
}
|
|
else
|
|
{
|
|
if (ereg('delete',$stage))
|
|
{
|
|
echo "<br><B>STATUT PERSONNALISE DE LA CAMPAGNE SUPPRIME: $campaign_id - $status</B>\n";
|
|
|
|
$stmt="DELETE FROM vicidial_campaign_statuses where campaign_id='$campaign_id' and status='$status';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmtA="DELETE FROM vicidial_campaign_hotkeys where campaign_id='$campaign_id' and status='$status';";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGN_STATUS', event_type='DELETE', record_id='$campaign_id', event_code='ADMIN DELETE CAMPAIGN STATUS', event_sql=\"$SQL_log\", event_notes='Etat: $status';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
if (ereg('modify',$stage))
|
|
{
|
|
echo "<br><B>LE STATUT FAIT SUR COMMANDE DE CAMPAGNE A MODIFIÉ: $campaign_id - $status</B>\n";
|
|
|
|
$stmt="UPDATE vicidial_campaign_statuses SET status_name='$status_name',selectable='$selectable',human_answered='$human_answered',category='$category' where campaign_id='$campaign_id' and status='$status';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGN_STATUS', event_type='MODIFY', record_id='$campaign_id', event_code='ADMIN MODIFY CAMPAIGN STATUS', event_sql=\"$SQL_log\", event_notes='Etat: $status';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$SUB=22;
|
|
$ADD=31; # go to campaign modification form below
|
|
}
|
|
|
|
######################
|
|
# ADD=43 delete campaign hotkey in the system
|
|
######################
|
|
|
|
if ($ADD==43)
|
|
{
|
|
if ($LOGmodify_campaigns==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($campaign_id) < 2) or (strlen($status) < 1) or (strlen($hotkey) < 1) )
|
|
{
|
|
echo "<br>RACCOURCI CLAVIER DE LA CAMPAGNE NON MODIFIE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>L'ID de la campagne doit contenir au moins 2 caractères\n";
|
|
echo "<br>Le statut de la campagne doit contenir au moins 1 caractère\n";
|
|
echo "<br>the campaign hotkey needs to be at least 1 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>RACCOURCI CLAVIER PERSONNALISE DE LA CAMPAGNE SUPPRIME: $campaign_id - $status - $hotkey</B>\n";
|
|
|
|
$stmt="DELETE FROM vicidial_campaign_hotkeys where campaign_id='$campaign_id' and status='$status' and hotkey='$hotkey';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGN_HOTKEY', event_type='DELETE', record_id='$campaign_id', event_code='ADMIN DELETE CAMPAIGN HOTKEY', event_sql=\"$SQL_log\", event_notes='Etat: $status|HotKey: $hotkey';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$SUB=23;
|
|
$ADD=31; # go to campaign modification form below
|
|
}
|
|
|
|
######################
|
|
# ADD=44 submit campaign modifications to the system - Basic View
|
|
######################
|
|
|
|
if ($ADD==44)
|
|
{
|
|
if ($LOGmodify_campaigns==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ($SSoutbound_autodial_active < 1)
|
|
{
|
|
$adaptive_dl_diff_target = '0';
|
|
$adaptive_dropped_percentage = '99';
|
|
$adaptive_intensity = '0';
|
|
$adaptive_latest_server_time = '2359';
|
|
$adaptive_maximum_level = '1.0';
|
|
$agent_extended_alt_dial = 'N';
|
|
$alt_number_dialing = 'N';
|
|
$am_message_exten = '8300';
|
|
$amd_send_to_vmx = 'N';
|
|
$auto_alt_dial = 'N';
|
|
$auto_dial_level = '1.0';
|
|
$available_only_ratio_tally = 'Y';
|
|
$campaign_allow_inbound = 'Y';
|
|
$campaign_vdad_exten = '8368';
|
|
$concurrent_transfers = 'AUTO';
|
|
$dial_method = 'RATIO';
|
|
$dial_status = '';
|
|
$dial_timeout = '60';
|
|
$drop_action = 'HANGUP';
|
|
$drop_call_seconds = '5';
|
|
$drop_inbound_group = '---NONE---';
|
|
$force_reset_hopper = 'N';
|
|
$hopper_level = '5';
|
|
$lead_filter_id = 'NONE';
|
|
$lead_order = 'DOWN';
|
|
$list_order_mix = 'DISABLED';
|
|
$no_hopper_leads_logins = 'Y';
|
|
$queue_priority = '50';
|
|
$safe_harbor_exten = '8300';
|
|
$voicemail_ext = '';
|
|
}
|
|
if (ereg('list_activation',$stage))
|
|
{
|
|
$p=0;
|
|
echo "<BR>LISTES D'ACTIFS MODIFIES";
|
|
$list_active_change_ct = count($list_active_change);
|
|
while ($p < $list_active_change_ct)
|
|
{
|
|
$LIST_ACTIVATE .= "'$list_active_change[$p]',";
|
|
$p++;
|
|
}
|
|
|
|
$stmt = "UPDATE vicidial_lists SET active='Y' where list_id IN($LIST_ACTIVATE'') and campaign_id='$campaign_id';";
|
|
$stmtB = "UPDATE vicidial_lists SET active='N' where list_id NOT IN($LIST_ACTIVATE'') and campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$rslt=mysql_query($stmtB, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|$stmtB|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGNS', event_type='MODIFY', record_id='$campaign_id', event_code='ADMIN MODIFY CAMPAIGN ACTIVE LISTES', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
if ($DB > 0) {echo "|$stmt|\n|$stmtB|\n";}
|
|
}
|
|
else
|
|
{
|
|
|
|
if ( (strlen($campaign_name) < 6) or (strlen($active) < 1) )
|
|
{
|
|
echo "<br>CAMPAGNE NON MODIFIEE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>le nom de la campagne doit contenir au moins 6 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>CAMPAGNE MODIFIEE: $campaign_id</B>\n";
|
|
|
|
if ($dial_method == 'RATIO')
|
|
{
|
|
if ($auto_dial_level < 1) {$auto_dial_level = "1.0";}
|
|
$adlSQL = "auto_dial_level='$auto_dial_level',";
|
|
}
|
|
else
|
|
{
|
|
if ($dial_method == 'MANUAL')
|
|
{
|
|
$auto_dial_level='0';
|
|
$adlSQL = "auto_dial_level='0',";
|
|
}
|
|
else
|
|
{
|
|
$adlSQL = "";
|
|
if ($auto_dial_level < 1)
|
|
{
|
|
$auto_dial_level = "1.0";
|
|
$adlSQL = "auto_dial_level='$auto_dial_level',";
|
|
}
|
|
}
|
|
}
|
|
if ( (!ereg("DISABLED",$list_order_mix)) and ($hopper_level < 100) )
|
|
{$hopper_level='100';}
|
|
|
|
$stmtA="UPDATE vicidial_campaigns set campaign_name='$campaign_name',active='$active',dial_status_a='$dial_status_a',dial_status_b='$dial_status_b',dial_status_c='$dial_status_c',dial_status_d='$dial_status_d',dial_status_e='$dial_status_e',lead_order='$lead_order',hopper_level='$hopper_level', $adlSQL lead_filter_id='$lead_filter_id',dial_method='$dial_method',adaptive_intensity='$adaptive_intensity',campaign_changedate='$SQLdate',list_order_mix='$list_order_mix' where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmtA|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGNS', event_type='MODIFY', record_id='$campaign_id', event_code='ADMIN MODIFY CAMPAIGN', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
if ($reset_hopper == 'Y')
|
|
{
|
|
echo "<br>REINITIALISATION DU DISTRIBUTEUR DE FICHES DE LA CAMPAGNE\n";
|
|
echo "<br> - Attendre 1 minute avant l'appel du numéro suivant\n";
|
|
$stmt="DELETE from vicidial_hopper where campaign_id='$campaign_id' and status IN('READY','QUEUE','DONE');;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGNS', event_type='RESET', record_id='$campaign_id', event_code='ADMIN RESET CAMPAIGN LEAD HOPPER', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=34; # go to campaign modification form below
|
|
}
|
|
|
|
######################
|
|
# ADD=45 modify campaign lead recycle in the system
|
|
######################
|
|
|
|
if ($ADD==45)
|
|
{
|
|
if ($LOGmodify_campaigns==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($campaign_id) < 2) or (strlen($status) < 1) or ($attempt_delay < 120) or ($attempt_delay >= 43200) or ($attempt_maximum < 1) or ($attempt_maximum > 10) )
|
|
{
|
|
echo "<br>CAMPAIGN LEAD RECYCLE NOT MODIFIED - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>le statut doit contenir entre 1 et 6 caractères\n";
|
|
echo "<br>le délai d'attente doit être au moins 120 secondes et moins de 43,200 secondes ou 12 heures\n";
|
|
echo "<br>le nombre d'essais maximum doit être compris entre 1 et 10\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>CAMPAIGN LEAD MODIFIED: $campaign_id - $status - $attempt_delay</B>\n";
|
|
|
|
$stmt="UPDATE vicidial_lead_recycle SET attempt_delay='$attempt_delay',attempt_maximum='$attempt_maximum',active='$active' where campaign_id='$campaign_id' and status='$status';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGN_RECYCLE', event_type='MODIFY', record_id='$campaign_id', event_code='ADMIN MODIFY CAMPAIGN LEAD RECYCLE', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$SUB=25;
|
|
$ADD=31; # go to campaign modification form below
|
|
}
|
|
|
|
######################
|
|
# ADD=47 modify agent pause code in the system
|
|
######################
|
|
|
|
if ($ADD==47)
|
|
{
|
|
if ($LOGmodify_campaigns==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($campaign_id) < 2) or (strlen($pause_code) < 1) or (strlen($pause_code) > 6) or (strlen($pause_code_name) < 2) )
|
|
{
|
|
echo "<br>CODE DE PAUSE NON MODIFIE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>pause_code must be between 1 and 6 characters in length\n";
|
|
echo "<br>pause_nom de code doit être compris entre 2 et 30 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>AGENT PAUSE CODE MODIFIED: $campaign_id - $pause_code - $pause_code_name</B>\n";
|
|
|
|
$stmt="UPDATE vicidial_pause_codes SET pause_code_name='$pause_code_name',billable='$billable' where campaign_id='$campaign_id' and pause_code='$pause_code';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGN_PAUSECODE', event_type='MODIFY', record_id='$campaign_id', event_code='ADMIN MODIFY CAMPAIGN PAUSE CODE', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$SUB=27;
|
|
$ADD=31; # go to campaign modification form below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=48 modify campaign QC settings in the system
|
|
######################
|
|
if ($ADD==48)
|
|
{
|
|
if ( ($LOGmodify_campaigns==1) and ($SSqc_features_active) )
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if (strlen($campaign_id) < 2)
|
|
{
|
|
echo "<br>QC SETTINGS PAS mise à jour - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
}
|
|
else
|
|
{
|
|
$p=0;
|
|
$qc_statuses_ct = count($qc_statuses);
|
|
while ($p < $qc_statuses_ct)
|
|
{
|
|
$QC_statuses .= " $qc_statuses[$p]";
|
|
$p++;
|
|
}
|
|
$p=0;
|
|
$qc_lists_ct = count($qc_lists);
|
|
while ($p < $qc_lists_ct)
|
|
{
|
|
$QC_lists .= " $qc_lists[$p]";
|
|
$p++;
|
|
}
|
|
|
|
if (strlen($QC_statuses)>0) {$QC_statuses .= " -";}
|
|
if (strlen($QC_lists)>0) {$QC_lists .= " -";}
|
|
|
|
echo "<br><B>QC SETTINGS mise à jour: $campaign_id</B>\n";
|
|
|
|
$stmt="UPDATE vicidial_campaigns SET qc_enabled='$qc_enabled',qc_statuses='$QC_statuses',qc_lists='$QC_lists',qc_web_form_address='$qc_web_form_address',qc_script='$qc_script',qc_get_record_launch='$qc_get_record_launch',qc_show_recording='$qc_show_recording',qc_shift_id='$qc_shift_id' where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGN_QC', event_type='MODIFY', record_id='$campaign_id', event_code='ADMIN MODIFY CAMPAIGN QC SETTINGS', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$SUB=28;
|
|
$ADD=31; # go to campaign modification form below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=40A modify campaign survey settings in the system
|
|
######################
|
|
|
|
if ($ADD=='40A')
|
|
{
|
|
if ($LOGmodify_campaigns==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if (strlen($campaign_id) < 2)
|
|
{
|
|
echo "<br>SONDAGE SETTINGS PAS mise à jour - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>SONDAGE SETTINGS mise à jour: $campaign_id</B>\n";
|
|
|
|
$stmt="UPDATE vicidial_campaigns SET survey_first_audio_file='$survey_first_audio_file',survey_dtmf_digits='$survey_dtmf_digits',survey_ni_digit='$survey_ni_digit',survey_opt_in_audio_file='$survey_opt_in_audio_file',survey_ni_audio_file='$survey_ni_audio_file',survey_method='$survey_method',survey_no_response_action='$survey_no_response_action',survey_ni_status='$survey_ni_status',survey_response_digit_map='$survey_response_digit_map',survey_xfer_exten='$survey_xfer_exten',survey_camp_record_dir='$survey_camp_record_dir',voicemail_ext='$voicemail_ext' where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGN_SURVEY', event_type='MODIFY', record_id='$campaign_id', event_code='ADMIN MODIFY CAMPAIGN SURVEY', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$SUB='20A';
|
|
$ADD=31; # go to campaign modification form below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=49 modify campaign list mix in the system
|
|
######################
|
|
|
|
if ($ADD==49)
|
|
{
|
|
if ($LOGmodify_campaigns==1)
|
|
{
|
|
##### MODIFY a list mix container entry #####
|
|
if ($stage=='MODIFY')
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$Flist_mix_container = "list_mix_container_$vcl_id";
|
|
$Fmix_method = "mix_method_$vcl_id";
|
|
$Fstatus = "status_$vcl_id";
|
|
$Fvcl_name = "vcl_name_$vcl_id";
|
|
|
|
if (isset($_GET[$Flist_mix_container])) {$list_mix_container=$_GET[$Flist_mix_container];}
|
|
elseif (isset($_POST[$Flist_mix_container])) {$list_mix_container=$_POST[$Flist_mix_container];}
|
|
if (isset($_GET[$Fmix_method])) {$mix_method=$_GET[$Fmix_method];}
|
|
elseif (isset($_POST[$Fmix_method])) {$mix_method=$_POST[$Fmix_method];}
|
|
if (isset($_GET[$Fstatus])) {$status=$_GET[$Fstatus];}
|
|
elseif (isset($_POST[$Fstatus])) {$status=$_POST[$Fstatus];}
|
|
if (isset($_GET[$Fvcl_name])) {$vcl_name=$_GET[$Fvcl_name];}
|
|
elseif (isset($_POST[$Fvcl_name])) {$vcl_name=$_POST[$Fvcl_name];}
|
|
$list_mix_container = preg_replace("/:$/","",$list_mix_container);
|
|
|
|
if ( (strlen($campaign_id) < 2) or (strlen($vcl_id) < 1) or (strlen($list_mix_container) < 6) or (strlen($vcl_name) < 2) )
|
|
{
|
|
echo "<br>MÉLANGE DE LISTE NON MODIFIÉ - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>vcl_id must be between 1 and 20 characters in length\n";
|
|
echo "<br>vcl_name name must be between 2 and 30 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="UPDATE vicidial_campaigns_list_mix SET vcl_name='$vcl_name',mix_method='$mix_method',list_mix_container='$list_mix_container' where campaign_id='$campaign_id' and vcl_id='$vcl_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGN_LISTMIX', event_type='MODIFY', record_id='$campaign_id', event_code='ADMIN MODIFY CAMPAIGN LIST MIX', event_sql=\"$SQL_log\", event_notes='Liste Mix: $vcl_id';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>LE MÉLANGE DE LISTE A MODIFIÉ: $campaign_id - $vcl_id - $vcl_name</B>\n";
|
|
}
|
|
}
|
|
|
|
##### ADD a list mix container entry #####
|
|
if ($stage=='ADD')
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($campaign_id) < 2) or (strlen($vcl_id) < 1) or (strlen($list_id) < 1) )
|
|
{
|
|
echo "<br>MÉLANGE DE LISTE NON MODIFIÉ - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>vcl_id must be between 1 and 20 characters in length\n";
|
|
echo "<br>list_id must be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="SELECT list_mix_container from vicidial_campaigns_list_mix where campaign_id='$campaign_id' and vcl_id='$vcl_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$OLDlist_mix_container = $row[0];
|
|
$NEWlist_mix_container = "$OLDlist_mix_container:$list_id|10|0| -|";
|
|
|
|
$stmt="UPDATE vicidial_campaigns_list_mix SET list_mix_container='$NEWlist_mix_container' where campaign_id='$campaign_id' and vcl_id='$vcl_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGN_LISTMIX', event_type='MODIFY', record_id='$campaign_id', event_code='ADMIN MODIFY CAMPAIGN LIST MIX', event_sql=\"$SQL_log\", event_notes='Liste Mix: $vcl_id';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>LE MÉLANGE DE LISTE A MODIFIÉ: $campaign_id - $vcl_id - $list_id</B>\n";
|
|
}
|
|
}
|
|
|
|
##### REMOVE a list mix container entry #####
|
|
if ($stage=='REMOVE')
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($campaign_id) < 2) or (strlen($vcl_id) < 1) or (strlen($list_id) < 1) )
|
|
{
|
|
echo "<br>MÉLANGE DE LISTE NON MODIFIÉ - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>vcl_id must be between 1 and 20 characters in length\n";
|
|
echo "<br>list_id must be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="SELECT list_mix_container from vicidial_campaigns_list_mix where campaign_id='$campaign_id' and vcl_id='$vcl_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$MIXentries = $MT;
|
|
$MIXentries = explode(":", $row[0]);
|
|
$Ms_to_print = (count($MIXentries) - 0);
|
|
|
|
if ($Ms_to_print < 2)
|
|
{
|
|
echo "<br><B>MÉLANGE DE LISTE NON MODIFIÉ: Vous ne pouvez pas supprimer la dernière entrée de list_id d'unmélange de liste</B>\n";
|
|
}
|
|
else
|
|
{
|
|
$MIXdetailsPCT = explode('|', $MIXentries[$mix_container_item]);
|
|
$MIXpercentPCT = $MIXdetailsPCT[2];
|
|
|
|
$q=0;
|
|
while ($Ms_to_print > $q)
|
|
{
|
|
if ( ($mix_container_item > $q) or ($mix_container_item < $q) )
|
|
{
|
|
if ( ($q==0) and ($mix_container_item > 0) )
|
|
{
|
|
$MIXdetailsONE = explode('|', $MIXentries[$q]);
|
|
$MIXpercentONE = ($MIXdetailsONE[2] + $MIXpercentPCT);
|
|
$NEWlist_mix_container .= "$MIXdetailsONE[0]|$MIXdetailsONE[1]|$MIXpercentONE|$MIXdetailsONE[3]|:";
|
|
}
|
|
else
|
|
{
|
|
if ( ($q==1) and ($mix_container_item < 1) )
|
|
{
|
|
$MIXdetailsONE = explode('|', $MIXentries[$q]);
|
|
$MIXpercentONE = ($MIXdetailsONE[2] + $MIXpercentPCT);
|
|
$NEWlist_mix_container .= "$MIXdetailsONE[0]|$MIXdetailsONE[1]|$MIXpercentONE|$MIXdetailsONE[3]|:";
|
|
}
|
|
else
|
|
{
|
|
$NEWlist_mix_container .= "$MIXentries[$q]:";
|
|
}
|
|
}
|
|
}
|
|
$q++;
|
|
}
|
|
$NEWlist_mix_container = preg_replace("/.$/",'',$NEWlist_mix_container);
|
|
|
|
$stmt="UPDATE vicidial_campaigns_list_mix SET list_mix_container='$NEWlist_mix_container' where campaign_id='$campaign_id' and vcl_id='$vcl_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGN_LISTMIX', event_type='MODIFY', record_id='$campaign_id', event_code='ADMIN MODIFY CAMPAIGN LIST MIX', event_sql=\"$SQL_log\", event_notes='Liste Mix: $vcl_id';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>LE MÉLANGE DE LISTE A MODIFIÉ: $campaign_id - $vcl_id - $list_id - $mix_container_item</B>\n";
|
|
}
|
|
}
|
|
}
|
|
|
|
##### ADD a NEW list mix #####
|
|
if ($stage=='NEWMIX')
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($campaign_id) < 2) or (strlen($vcl_id) < 1) or (strlen($vcl_name) < 2) )
|
|
{
|
|
echo "<br>MÉLANGE DE LISTE NON SUPPLÉMENTAIRE- Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>vcl_id must be between 1 and 20 characters in length\n";
|
|
echo "<br>vcl_name must be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="SELECT count(*) from vicidial_campaigns_list_mix where vcl_id='$vcl_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] > 0)
|
|
{
|
|
echo "<br>MÉLANGE DE LISTE NON SUPPLÉMENTAIRE- Il y a déjà un mélange de liste avec cette identification dans lesystème\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="INSERT INTO vicidial_campaigns_list_mix SET list_mix_container='$list_id|1|100| $status -|',campaign_id='$campaign_id',vcl_id='$vcl_id',vcl_name='$vcl_name',mix_method='$mix_method',status='INACTIVE';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGN_LISTMIX', event_type='ADD', record_id='$campaign_id', event_code='ADMIN AJOUTER UNE CAMPAGNE LIST MIX', event_sql=\"$SQL_log\", event_notes='Liste Mix: $vcl_id';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>MÉLANGE DE LISTE SUPPLÉMENTAIRE :$campaign_id - $vcl_id - $vcl_name</B>\n";
|
|
}
|
|
}
|
|
}
|
|
|
|
##### DELETE an existing list mix #####
|
|
if ($stage=='DELMIX')
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($campaign_id) < 2) or (strlen($vcl_id) < 1) )
|
|
{
|
|
echo "<br>MÉLANGE DE LISTE NON SUPPRIMÉ - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>vcl_id must be between 1 and 20 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="DELETE from vicidial_campaigns_list_mix where vcl_id='$vcl_id' and campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGN_LISTMIX', event_type='DELETE', record_id='$campaign_id', event_code='ADMIN DELETE CAMPAIGN LIST MIX', event_sql=\"$SQL_log\", event_notes='Liste Mix: $vcl_id';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>LE MÉLANGE DE LISTE A SUPPRIMÉ :$campaign_id - $vcl_id - $vcl_name</B>\n";
|
|
}
|
|
}
|
|
|
|
##### Set list mix entry to active #####
|
|
if ($stage=='SETACTIVE')
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($campaign_id) < 2) or (strlen($vcl_id) < 1) )
|
|
{
|
|
echo "<br>MÉLANGE DE LISTE NON ACTIVÉ - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>vcl_id must be between 1 and 20 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="UPDATE vicidial_campaigns_list_mix SET status='INACTIVE' where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmt="UPDATE vicidial_campaigns_list_mix SET status='ACTIVE' where vcl_id='$vcl_id' and campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGN_LISTMIX', event_type='MODIFY', record_id='$campaign_id', event_code='ADMIN MODIFY CAMPAIGN LIST MIX ACTIVE', event_sql=\"$SQL_log\", event_notes='Liste Mix: $vcl_id';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>MÉLANGE DE LISTE ACTIVÉ: $campaign_id - $vcl_id - $vcl_name</B>\n";
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$SUB=29;
|
|
$ADD=31; # go to campaign modification form below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=411 submit list modifications to the system
|
|
######################
|
|
|
|
if ($ADD==411)
|
|
{
|
|
if ($LOGmodify_lists==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($list_name) < 2) or (strlen($campaign_id) < 2) )
|
|
{
|
|
echo "<br>LISTE NON MODIFIEE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>le nom de la liste doit contenir au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>LISTE MODIFIEE: $list_id</B>\n";
|
|
|
|
$stmt="UPDATE vicidial_lists set list_name='$list_name',campaign_id='$campaign_id',active='$active',list_description='$list_description',list_changedate='$SQLdate' where list_id='$list_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='LISTES', event_type='MODIFY', record_id='$list_id', event_code='ADMIN MODIFY LIST', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
if ($reset_list == 'Y')
|
|
{
|
|
echo "<br>REINITIALISATION LIST-CALLED-STATUS\n";
|
|
$stmtB="UPDATE vicidial_list set called_since_last_reset='N' where list_id='$list_id';";
|
|
$rslt=mysql_query($stmtB, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='LISTES', event_type='RESET', record_id='$list_id', event_code='ADMIN RESET LIST', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
if ($campaign_id != "$old_campaign_id")
|
|
{
|
|
echo "<br>ENLEVER LES FICHES DU VIEUX DISTRIBUTEUR DE FICHES DE LA CAMAPGNE ($old_campaign_id)\n";
|
|
$stmtC="DELETE from vicidial_hopper where list_id='$list_id' and campaign_id='$old_campaign_id';";
|
|
$rslt=mysql_query($stmtC, $link);
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=311; # go to list modification form below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=4111 modify in-group info in the system
|
|
######################
|
|
|
|
if ($ADD==4111)
|
|
{
|
|
if ($LOGmodify_ingroups==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($group_name) < 2) or (strlen($group_color) < 2) )
|
|
{
|
|
echo "<br>GROUPE NON MODIFIE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>le nom et la couleur du groupe doivent contenir au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
$p=0;
|
|
$qc_statuses_ct = count($qc_statuses);
|
|
while ($p < $qc_statuses_ct)
|
|
{
|
|
$QC_statuses .= " $qc_statuses[$p]";
|
|
$p++;
|
|
}
|
|
$p=0;
|
|
$qc_lists_ct = count($qc_lists);
|
|
while ($p < $qc_lists_ct)
|
|
{
|
|
$QC_lists .= " $qc_lists[$p]";
|
|
$p++;
|
|
}
|
|
|
|
if (strlen($QC_statuses)>0) {$QC_statuses .= " -";}
|
|
if (strlen($QC_lists)>0) {$QC_lists .= " -";}
|
|
|
|
echo "<br><B>GROUPE MODIFIE: $group_id</B>\n";
|
|
|
|
$stmt="UPDATE vicidial_inbound_groups set group_name='$group_name', group_color='$group_color', active='$active', web_form_address='" . mysql_real_escape_string($web_form_address) . "', voicemail_ext='$voicemail_ext', next_agent_call='$next_agent_call', fronter_display='$fronter_display', ingroup_script='$script_id', get_call_launch='$get_call_launch', xferconf_a_dtmf='$xferconf_a_dtmf',xferconf_a_number='$xferconf_a_number', xferconf_b_dtmf='$xferconf_b_dtmf',xferconf_b_number='$xferconf_b_number',drop_action='$drop_action',drop_call_seconds='$drop_call_seconds',drop_exten='$drop_exten',call_time_id='$call_time_id',after_hours_action='$after_hours_action',after_hours_message_filename='$after_hours_message_filename',after_hours_exten='$after_hours_exten',after_hours_voicemail='$after_hours_voicemail',welcome_message_filename='$welcome_message_filename',moh_context='$moh_context',onhold_prompt_filename='$onhold_prompt_filename',prompt_interval='$prompt_interval',agent_alert_exten='$agent_alert_exten',agent_alert_delay='$agent_alert_delay',default_xfer_group='$default_xfer_group',queue_priority='$queue_priority',drop_inbound_group='$drop_inbound_group',ingroup_recording_override='$ingroup_recording_override',ingroup_rec_filename='$ingroup_rec_filename',afterhours_xfer_group='$afterhours_xfer_group',qc_enabled='$qc_enabled',qc_statuses='$QC_statuses',qc_shift_id='$qc_shift_id',qc_get_record_launch='$qc_get_record_launch',qc_show_recording='$qc_show_recording',qc_web_form_address='$qc_web_form_address',qc_script='$qc_script',play_place_in_line='$play_place_in_line',play_estimate_hold_time='$play_estimate_hold_time',hold_time_option='$hold_time_option',hold_time_option_seconds='$hold_time_option_seconds',hold_time_option_exten='$hold_time_option_exten',hold_time_option_voicemail='$hold_time_option_voicemail',hold_time_option_xfer_group='$hold_time_option_xfer_group',hold_time_option_callback_filename='$hold_time_option_callback_filename',hold_time_option_callback_list_id='$hold_time_option_callback_list_id',hold_recall_xfer_group='$hold_recall_xfer_group',no_delay_call_route='$no_delay_call_route',play_welcome_message='$play_welcome_message',answer_sec_pct_rt_stat_one='$answer_sec_pct_rt_stat_one',answer_sec_pct_rt_stat_two='$answer_sec_pct_rt_stat_two',default_group_alias='$default_group_alias' where group_id='$group_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='INGROUPS', event_type='MODIFY', record_id='$group_id', event_code='ADMIN MODIFY INGROUP', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=3111; # go to in-group modification form below
|
|
}
|
|
|
|
|
|
|
|
######################
|
|
# ADD=4311 modify did info in the system
|
|
######################
|
|
|
|
if ($ADD==4311)
|
|
{
|
|
if ($LOGmodify_dids==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($did_id) < 1) or (strlen($did_pattern) < 1) )
|
|
{
|
|
echo "<br>NE MODIFIE PAS - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>did_extension must be at least 1 character in length\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>DID mise à jour: $did_pattern</B>\n";
|
|
|
|
$stmt="UPDATE vicidial_inbound_dids set did_pattern='$did_pattern',did_description='$did_description',did_active='$did_active',did_route='$did_route',extension='$extension',exten_context='$exten_context',voicemail_ext='$voicemail_ext',phone='$phone',server_ip='$server_ip',user='$user',user_unavailable_action='$user_unavailable_action',user_route_settings_ingroup='$user_route_settings_ingroup',group_id='$group_id',call_handle_method='$call_handle_method',agent_search_method='$agent_search_method',list_id='$list_id',campaign_id='$campaign_id',phone_code='$phone_code' where did_id='$did_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='DIDS', event_type='MODIFY', record_id='$did_id', event_code='ADMIN MODIFY DID', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=3311; # go to did modification form below
|
|
}
|
|
|
|
|
|
|
|
######################
|
|
# ADD=41111 modify remote agents info in the system
|
|
######################
|
|
|
|
if ($ADD==41111)
|
|
{
|
|
if ($LOGmodify_remoteagents==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($server_ip) < 2) or (strlen($user_start) < 2) or (strlen($campaign_id) < 2) or (strlen($conf_exten) < 2) )
|
|
{
|
|
echo "<br>AGENT DISTANT NON MODIFIE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Le début de l'ID de l'utilisateur et l'extension externe doivent contenir au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="UPDATE vicidial_remote_agents set user_start='$user_start', number_of_lines='$number_of_lines', server_ip='$server_ip', conf_exten='$conf_exten', status='$status', campaign_id='$campaign_id', closer_campaigns='$groups_value' where remote_agent_id='$remote_agent_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>AGENTS DISTANTS MODIFIES</B>\n";
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='REMOTEAGENTS', event_type='MODIFY', record_id='$remote_agent_id', event_code='ADMIN MODIFY REMOTE AGENT', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=31111; # go to remote agents modification form below
|
|
}
|
|
|
|
|
|
|
|
######################
|
|
# ADD=411111 modify user group info in the system
|
|
######################
|
|
|
|
if ($ADD==411111)
|
|
{
|
|
if ($LOGmodify_usergroups==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($user_group) < 2) or (strlen($group_name) < 2) )
|
|
{
|
|
echo "<br>GROUPE D'UTILISATEURS NON MODIFIE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Le nom et la description du groupe doivent contenir au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
$p=0;
|
|
$GROUP_shifts=' ';
|
|
$group_shifts_ct = count($group_shifts);
|
|
while ($p <= $group_shifts_ct)
|
|
{
|
|
$GROUP_shifts .= "$group_shifts[$p] ";
|
|
$p++;
|
|
}
|
|
$stmt="UPDATE vicidial_user_groups set user_group='$user_group', group_name='$group_name',allowed_campaigns='$campaigns_value',qc_allowed_campaigns='$qc_campaigns_value',qc_allowed_inbound_groups='$qc_groups_value',group_shifts='$GROUP_shifts',forced_timeclock_login='$forced_timeclock_login',shift_enforcement='$shift_enforcement' where user_group='$OLDuser_group';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>GROUPE D'UTILISATEURS MODIFIE</B>\n";
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='USERGROUPS', event_type='MODIFY', record_id='$user_group', event_code='ADMIN MODIFY GROUPE D'UTILISATEURS', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
###############################################################
|
|
##### START SYSTEM_SETTINGS VTIGER CONNECTION INFO LOOKUP #####
|
|
$stmt = "SELECT enable_vtiger_integration,vtiger_server_ip,vtiger_dbname,vtiger_login,vtiger_pass,vtiger_url FROM system_settings;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
if ($DB) {echo "$stmt\n";}
|
|
$ss_conf_ct = mysql_num_rows($rslt);
|
|
if ($ss_conf_ct > 0)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$enable_vtiger_integration = $row[0];
|
|
$vtiger_server_ip = $row[1];
|
|
$vtiger_dbname = $row[2];
|
|
$vtiger_login = $row[3];
|
|
$vtiger_pass = $row[4];
|
|
$vtiger_url = $row[5];
|
|
}
|
|
##### END SYSTEM_SETTINGS VTIGER CONNECTION INFO LOOKUP #####
|
|
#############################################################
|
|
|
|
if ($enable_vtiger_integration > 0)
|
|
{
|
|
### connect to your vtiger database
|
|
$linkV=mysql_connect("$vtiger_server_ip", "$vtiger_login","$vtiger_pass");
|
|
if (!$linkV) {die("Could not connect: $vtiger_server_ip|$vtiger_dbname|$vtiger_login|$vtiger_pass" . mysql_error());}
|
|
echo 'Connected successfully';
|
|
mysql_select_db("$vtiger_dbname", $linkV);
|
|
|
|
######################################
|
|
##### BEGIN Add/Update group info in Vtiger
|
|
$stmt="SELECT count(*) from vtiger_groups where groupname='$user_group';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$group_found_count = $row[0];
|
|
|
|
### group exists in vtiger, update it
|
|
if ($group_found_count > 0)
|
|
{
|
|
$stmt="SELECT groupid from vtiger_groups where groupname='$user_group';";
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if ($DB) {echo "$stmt\n";}
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
$row=mysql_fetch_row($rslt);
|
|
$groupid = $row[0];
|
|
|
|
$stmtA = "UPDATE vtiger_groups SET description='$group_name' where groupid='$groupid';";
|
|
if ($DB) {echo "|$stmtA|\n";}
|
|
$rslt=mysql_query($stmtA, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
}
|
|
|
|
### user doesn't exist in vtiger, insert it
|
|
else
|
|
{
|
|
#### BEGIN CREATE NEW GROUP RECORD IN VTIGER
|
|
# Get next available id from vtiger_groups_seq to use as groupid
|
|
$stmt="SELECT id from vtiger_groups_seq;";
|
|
if ($DB) {echo "$stmt\n";}
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
$row=mysql_fetch_row($rslt);
|
|
$groupid = ($row[0] + 1);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
# Increase next available groupid with 1 so next record gets proper id
|
|
$stmt="UPDATE vtiger_groups_seq SET id = '$groupid';";
|
|
if ($DB) {echo "$stmt\n";}
|
|
$rslt=mysql_query($stmt, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
$stmtA = "INSERT INTO vtiger_groups SET groupid='$groupid',groupname='$user_group',description='$group_name';";
|
|
if ($DB) {echo "|$stmtA|\n";}
|
|
$rslt=mysql_query($stmtA, $linkV);
|
|
if (!$rslt) {die('Could not execute: ' . mysql_error());}
|
|
|
|
#### END CREATE NEW GROUP RECORD IN VTIGER
|
|
}
|
|
##### END Add/Update group info in Vtiger
|
|
######################################
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=311111; # go to user group modification form below
|
|
}
|
|
|
|
######################
|
|
# ADD=4111111 modify script in the system
|
|
######################
|
|
|
|
if ($ADD==4111111)
|
|
{
|
|
if ($LOGmodify_scripts==1)
|
|
{
|
|
echo "<!-- $script_text -->\n";
|
|
echo "<!--" . mysql_real_escape_string($script_text) . " -->\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($script_id) < 2) or (strlen($script_name) < 2) or (strlen($script_text) < 2) )
|
|
{
|
|
echo "<br>SCRIPT NON MODIFIE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Les nom, description et texte du script doivent contenir au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="UPDATE vicidial_scripts set script_name='$script_name', script_comments='$script_comments', script_text='$script_text', active='$active' where script_id='$script_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>SCRIPT MODIFIE</B>\n";
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='SCRIPTS', event_type='MODIFY', record_id='$script_id', event_code='ADMIN MODIFY SCRIPT', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=3111111; # go to script modification form below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=41111111 modify filter in the system
|
|
######################
|
|
|
|
if ($ADD==41111111)
|
|
{
|
|
if ($LOGmodify_filters==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($lead_filter_id) < 2) or (strlen($lead_filter_name) < 2) or (strlen($lead_filter_sql) < 2) )
|
|
{
|
|
echo "<br>FILTRE NON MODIFIE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Identifiant du filtre, le nom et le SQL doivent au moins contenir 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="UPDATE vicidial_lead_filters set lead_filter_name='$lead_filter_name', lead_filter_comments='$lead_filter_comments', lead_filter_sql='$lead_filter_sql' where lead_filter_id='$lead_filter_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>FILTRE MODIFIE</B>\n";
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='FILTRES', event_type='MODIFY', record_id='$lead_filter_id', event_code='ADMIN MODIFY FILTER', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=31111111; # go to filter modification form below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=411111111 modify call time in the system
|
|
######################
|
|
|
|
if ($ADD==411111111)
|
|
{
|
|
if ($LOGmodify_call_times==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($call_time_id) < 2) or (strlen($call_time_name) < 2) )
|
|
{
|
|
echo "<br>PERIODE D'APPELS NON MODIFIEE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>L'ID et le nom de la période d'appel doivent contenir au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
$ct_default_start = preg_replace('/\D/', '', $ct_default_start);
|
|
$ct_default_stop = preg_replace('/\D/', '', $ct_default_stop);
|
|
$ct_sunday_start = preg_replace('/\D/', '', $ct_sunday_start);
|
|
$ct_sunday_stop = preg_replace('/\D/', '', $ct_sunday_stop);
|
|
$ct_monday_start = preg_replace('/\D/', '', $ct_monday_start);
|
|
$ct_monday_stop = preg_replace('/\D/', '', $ct_monday_stop);
|
|
$ct_tuesday_start = preg_replace('/\D/', '', $ct_tuesday_start);
|
|
$ct_tuesday_stop = preg_replace('/\D/', '', $ct_tuesday_stop);
|
|
$ct_wednesday_start = preg_replace('/\D/', '', $ct_wednesday_start);
|
|
$ct_wednesday_stop = preg_replace('/\D/', '', $ct_wednesday_stop);
|
|
$ct_thursday_start = preg_replace('/\D/', '', $ct_thursday_start);
|
|
$ct_thursday_stop = preg_replace('/\D/', '', $ct_thursday_stop);
|
|
$ct_friday_start = preg_replace('/\D/', '', $ct_friday_start);
|
|
$ct_friday_stop = preg_replace('/\D/', '', $ct_friday_stop);
|
|
$ct_saturday_start = preg_replace('/\D/', '', $ct_saturday_start);
|
|
$ct_saturday_stop = preg_replace('/\D/', '', $ct_saturday_stop);
|
|
$stmt="UPDATE vicidial_call_times set call_time_name='$call_time_name', call_time_comments='$call_time_comments', ct_default_start='$ct_default_start', ct_default_stop='$ct_default_stop', ct_sunday_start='$ct_sunday_start', ct_sunday_stop='$ct_sunday_stop', ct_monday_start='$ct_monday_start', ct_monday_stop='$ct_monday_stop', ct_tuesday_start='$ct_tuesday_start', ct_tuesday_stop='$ct_tuesday_stop', ct_wednesday_start='$ct_wednesday_start', ct_wednesday_stop='$ct_wednesday_stop', ct_thursday_start='$ct_thursday_start', ct_thursday_stop='$ct_thursday_stop', ct_friday_start='$ct_friday_start', ct_friday_stop='$ct_friday_stop', ct_saturday_start='$ct_saturday_start', ct_saturday_stop='$ct_saturday_stop' where call_time_id='$call_time_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>PERIODE D'APPELS MODIFIEE</B>\n";
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CALLTIMES', event_type='MODIFY', record_id='$call_time_id', event_code='ADMIN MODIFY CALL TIME', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=311111111; # go to call time modification form below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=4111111111 modify state call time in the system
|
|
######################
|
|
|
|
if ($ADD==4111111111)
|
|
{
|
|
if ($LOGmodify_call_times==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($call_time_id) < 2) or (strlen($call_time_name) < 2) or (strlen($state_call_time_state) < 2) )
|
|
{
|
|
echo "<br>PERIODE D'APPELS D'ETAT NON MODIFIEE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>L'ID, le nom et l'état de l'appel doivent contenir au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
$ct_default_start = preg_replace('/\D/', '', $ct_default_start);
|
|
$ct_default_stop = preg_replace('/\D/', '', $ct_default_stop);
|
|
$ct_sunday_start = preg_replace('/\D/', '', $ct_sunday_start);
|
|
$ct_sunday_stop = preg_replace('/\D/', '', $ct_sunday_stop);
|
|
$ct_monday_start = preg_replace('/\D/', '', $ct_monday_start);
|
|
$ct_monday_stop = preg_replace('/\D/', '', $ct_monday_stop);
|
|
$ct_tuesday_start = preg_replace('/\D/', '', $ct_tuesday_start);
|
|
$ct_tuesday_stop = preg_replace('/\D/', '', $ct_tuesday_stop);
|
|
$ct_wednesday_start = preg_replace('/\D/', '', $ct_wednesday_start);
|
|
$ct_wednesday_stop = preg_replace('/\D/', '', $ct_wednesday_stop);
|
|
$ct_thursday_start = preg_replace('/\D/', '', $ct_thursday_start);
|
|
$ct_thursday_stop = preg_replace('/\D/', '', $ct_thursday_stop);
|
|
$ct_friday_start = preg_replace('/\D/', '', $ct_friday_start);
|
|
$ct_friday_stop = preg_replace('/\D/', '', $ct_friday_stop);
|
|
$ct_saturday_start = preg_replace('/\D/', '', $ct_saturday_start);
|
|
$ct_saturday_stop = preg_replace('/\D/', '', $ct_saturday_stop);
|
|
$stmt="UPDATE vicidial_state_call_times set state_call_time_name='$call_time_name', state_call_time_comments='$call_time_comments', sct_default_start='$ct_default_start', sct_default_stop='$ct_default_stop', sct_sunday_start='$ct_sunday_start', sct_sunday_stop='$ct_sunday_stop', sct_monday_start='$ct_monday_start', sct_monday_stop='$ct_monday_stop', sct_tuesday_start='$ct_tuesday_start', sct_tuesday_stop='$ct_tuesday_stop', sct_wednesday_start='$ct_wednesday_start', sct_wednesday_stop='$ct_wednesday_stop', sct_thursday_start='$ct_thursday_start', sct_thursday_stop='$ct_thursday_stop', sct_friday_start='$ct_friday_start', sct_friday_stop='$ct_friday_stop', sct_saturday_start='$ct_saturday_start', sct_saturday_stop='$ct_saturday_stop', state_call_time_state='$state_call_time_state' where state_call_time_id='$call_time_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>PERIODE D'APPELS D'ETAT MODIFIEE</B>\n";
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CALLTIMES', event_type='MODIFY', record_id='$call_time_id', event_code='ADMIN MODIFY STATE CALL TIME', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=3111111111; # go to state call time modification form below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=431111111 modify shift in the system
|
|
######################
|
|
|
|
if ($ADD==431111111)
|
|
{
|
|
if ($LOGmodify_call_times==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$shift_length_test = eregi_replace(':','',$shift_length);
|
|
if ( (strlen($shift_id) < 2) or (strlen($shift_name) < 2) or (strlen($shift_start_time) < 4) or (strlen($shift_start_time) > 4) or (strlen($shift_length) < 5) or (strlen($shift_length) > 5) or ($shift_start_time > 2359) or ($shift_length_test > 2400) )
|
|
{
|
|
echo "<br>SHIFT DEFINITION NOT MODIFIED - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Shift ID et le nom doit être d'au moins 2 caractères\n";
|
|
echo "<br>Start Time Shift 4 chiffres doit être de longueur et une heure valide\n";
|
|
echo "<br>Shift Longueur doit être de 5 caractères de longueur et de 24 heures ou moins\n";
|
|
}
|
|
else
|
|
{
|
|
$p=0;
|
|
$shift_weekdays_ct = count($shift_weekdays);
|
|
while ($p <= $shift_weekdays_ct)
|
|
{
|
|
$SHIFT_weekdays .= "$shift_weekdays[$p]";
|
|
$p++;
|
|
}
|
|
$shift_start_time = preg_replace('/\D/', '', $shift_start_time);
|
|
$stmt="UPDATE vicidial_shifts set shift_name='$shift_name', shift_start_time='$shift_start_time', shift_length='$shift_length', shift_weekdays='$SHIFT_weekdays' where shift_id='$shift_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>MAJ mise à jour</B>\n";
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='SHIFTS', event_type='MODIFY', record_id='$shift_id', event_code='ADMIN MODIFY SHIFT', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=331111111; # go to shift modification form below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=41111111111 modify phone record in the system
|
|
######################
|
|
|
|
if ($ADD==41111111111)
|
|
{
|
|
if ($LOGast_admin_access==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT count(*) from phones where extension='$extension' and server_ip='$server_ip';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ( ($row[0] > 0) && ( ($extension != $old_extension) or ($server_ip != $old_server_ip) ) )
|
|
{echo "<br>TELEPHONE NON MODIFIE - il y a déjà un téléphone dans le système avec cette extension/server\n";}
|
|
else
|
|
{
|
|
if ( (strlen($extension) < 1) or (strlen($server_ip) < 7) or (strlen($dialplan_number) < 1) or (strlen($voicemail_id) < 1) or (strlen($login) < 1) or (strlen($pass) < 1))
|
|
{echo "<br>TELEPHONE NON MODIFIE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";}
|
|
else
|
|
{
|
|
echo "<br>TELEPHONE MODIFIE: $extension\n";
|
|
|
|
$stmt="UPDATE phones set extension='$extension', dialplan_number='$dialplan_number', voicemail_id='$voicemail_id', phone_ip='$phone_ip', computer_ip='$computer_ip', server_ip='$server_ip', login='$login', pass='$pass', status='$status', active='$active', phone_type='$phone_type', fullname='$fullname', company='$company', picture='$picture', protocol='$protocol', local_gmt='$local_gmt', ASTmgrUSERNAME='$ASTmgrUSERNAME', ASTmgrSECRET='$ASTmgrSECRET', login_user='$login_user', login_pass='$login_pass', login_campaign='$login_campaign', park_on_extension='$park_on_extension', conf_on_extension='$conf_on_extension', VICIDIAL_park_on_extension='$VICIDIAL_park_on_extension', VICIDIAL_park_on_filename='$VICIDIAL_park_on_filename', monitor_prefix='$monitor_prefix', recording_exten='$recording_exten', voicemail_exten='$voicemail_exten', voicemail_dump_exten='$voicemail_dump_exten', ext_context='$ext_context', dtmf_send_extension='$dtmf_send_extension', call_out_number_group='$call_out_number_group', client_browser='$client_browser', install_directory='$install_directory', local_web_callerID_URL='" . mysql_real_escape_string($local_web_callerID_URL) . "', VICIDIAL_web_URL='" . mysql_real_escape_string($VICIDIAL_web_URL) . "', AGI_call_logging_enabled='$AGI_call_logging_enabled', user_switching_enabled='$user_switching_enabled', conferencing_enabled='$conferencing_enabled', admin_hangup_enabled='$admin_hangup_enabled', admin_hijack_enabled='$admin_hijack_enabled', admin_monitor_enabled='$admin_monitor_enabled', call_parking_enabled='$call_parking_enabled', updater_check_enabled='$updater_check_enabled', AFLogging_enabled='$AFLogging_enabled', QUEUE_ACTION_enabled='$QUEUE_ACTION_enabled', CallerID_popup_enabled='$CallerID_popup_enabled', voicemail_button_enabled='$voicemail_button_enabled', enable_fast_refresh='$enable_fast_refresh', fast_refresh_rate='$fast_refresh_rate', enable_persistant_mysql='$enable_persistant_mysql', auto_dial_next_number='$auto_dial_next_number', VDstop_rec_after_each_call='$VDstop_rec_after_each_call', DBX_server='$DBX_server', DBX_database='$DBX_database', DBX_user='$DBX_user', DBX_pass='$DBX_pass', DBX_port='$DBX_port', DBY_server='$DBY_server', DBY_database='$DBY_database', DBY_user='$DBY_user', DBY_pass='$DBY_pass', DBY_port='$DBY_port', outbound_cid='$outbound_cid', enable_sipsak_messages='$enable_sipsak_messages', email='$email', template_id='$template_id', conf_override='$conf_override' where extension='$old_extension' and server_ip='$old_server_ip';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmtA="UPDATE servers SET rebuild_conf_files='Y' where generate_vicidial_conf='Y' and active_asterisk_server='Y' and server_ip='$server_ip';";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='PHONES', event_type='MODIFY', record_id='$extension', event_code='ADMIN MODIFIER LE TELEPHONE', event_sql=\"$SQL_log\", event_notes='IP du serveur: $server_ip';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=31111111111; # go to phone modification form below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=42111111111 modify phone alias record in the system
|
|
######################
|
|
|
|
if ($ADD==42111111111)
|
|
{
|
|
if ($LOGast_admin_access==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT count(*) from phones_alias where alias_id='$alias_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ( (strlen($alias_id) < 1) or (strlen($alias_name) < 2) )
|
|
{echo "<br>PHONE ALIAS PAS mise à jour - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";}
|
|
else
|
|
{
|
|
echo "<br>PHONE ALIAS mise à jour: $alias_id\n";
|
|
|
|
$stmt="UPDATE phones_alias set alias_name='$alias_name', logins_list='$logins_list' where alias_id='$alias_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='PHONEALIASES', event_type='MODIFY', record_id='$alias_id', event_code='ADMIN MODIFIER LE TELEPHONE ALIAS', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=32111111111; # go to phone alias modification form below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=43111111111 modify group alias record in the system
|
|
######################
|
|
|
|
if ($ADD==43111111111)
|
|
{
|
|
if ($LOGast_admin_access==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT count(*) from groups_alias where group_alias_id='$group_alias_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ( (strlen($group_alias_id) < 1) or (strlen($group_alias_name) < 2) )
|
|
{echo "<br>GROUPE ALIAS PAS mise à jour - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";}
|
|
else
|
|
{
|
|
echo "<br>GROUPE ALIAS mise à jour: $alias_id\n";
|
|
|
|
$stmt="UPDATE groups_alias set group_alias_name='$group_alias_name', caller_id_number='$caller_id_number', caller_id_name='$caller_id_name', active='$active' where group_alias_id='$group_alias_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='GROUPALIASES', event_type='MODIFY', record_id='$group_alias_id', event_code='ADMIN Modifier un groupe ALIAS', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=33111111111; # go to group alias modification form below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=411111111111 modify server record in the system
|
|
######################
|
|
|
|
if ($ADD==411111111111)
|
|
{
|
|
if ($LOGmodify_servers==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT count(*) from servers where server_id='$server_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ( ($row[0] > 0) && ($server_id != $old_server_id) )
|
|
{echo "<br>SERVEUR NOT MODIFIED - there is already a server in the system with this server_id\n";}
|
|
else
|
|
{
|
|
$stmt="SELECT count(*) from servers where server_ip='$server_ip';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ( ($row[0] > 0) && ($server_ip != $old_server_ip) )
|
|
{echo "<br>SERVEUR NON MODIFIE - il y a déjà un serveur dans le système avec cet ID\n";}
|
|
else
|
|
{
|
|
if ( (strlen($server_id) < 1) or (strlen($server_ip) < 7) )
|
|
{echo "<br>SERVEUR NON MODIFIE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";}
|
|
else
|
|
{
|
|
echo "<br>SERVEUR MODIFIE: $server_ip\n";
|
|
|
|
$stmt="UPDATE servers set server_id='$server_id',server_description='$server_description',server_ip='$server_ip',active='$active',asterisk_version='$asterisk_version', max_vicidial_trunks='$max_vicidial_trunks', telnet_host='$telnet_host', telnet_port='$telnet_port', ASTmgrUSERNAME='$ASTmgrUSERNAME', ASTmgrSECRET='$ASTmgrSECRET', ASTmgrUSERNAMEupdate='$ASTmgrUSERNAMEupdate', ASTmgrUSERNAMElisten='$ASTmgrUSERNAMElisten', ASTmgrUSERNAMEsend='$ASTmgrUSERNAMEsend', local_gmt='$local_gmt', voicemail_dump_exten='$voicemail_dump_exten', answer_transfer_agent='$answer_transfer_agent', ext_context='$ext_context', sys_perf_log='$sys_perf_log', vd_server_logs='$vd_server_logs', agi_output='$agi_output', vicidial_balance_active='$vicidial_balance_active',balance_trunks_offlimits='$balance_trunks_offlimits',recording_web_link='$recording_web_link',alt_server_ip='$alt_server_ip',active_asterisk_server='$active_asterisk_server',generate_vicidial_conf='$generate_vicidial_conf',rebuild_conf_files='$rebuild_conf_files',outbound_calls_per_second='$outbound_calls_per_second' where server_id='$old_server_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmtA="UPDATE servers SET rebuild_conf_files='Y' where generate_vicidial_conf='Y' and active_asterisk_server='Y';";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='SERVERS', event_type='MODIFY', record_id='$server_id', event_code='ADMIN MODIFIER LE SERVEUR', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=311111111111; # go to server modification form below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=421111111111 modify vicidial server trunks record in the system
|
|
######################
|
|
|
|
if ($ADD==421111111111)
|
|
{
|
|
if ($LOGmodify_servers==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT max_vicidial_trunks from servers where server_ip='$server_ip';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$MAXvicidial_trunks = $rowx[0];
|
|
|
|
$stmt="SELECT sum(dedicated_trunks) from vicidial_server_trunks where server_ip='$server_ip' and campaign_id !='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$SUMvicidial_trunks = ($rowx[0] + $dedicated_trunks);
|
|
|
|
if ($SUMvicidial_trunks > $MAXvicidial_trunks)
|
|
{
|
|
echo "<br>TRUNK DU SERVEUR VICIDIAL NON AJOUTE - le nombre de trunks vicidial est trop important: $SUMvicidial_trunks / $MAXvicidial_trunks\n";
|
|
}
|
|
else
|
|
{
|
|
if ( (strlen($campaign_id) < 2) or (strlen($server_ip) < 7) or (strlen($dedicated_trunks) < 1) or (strlen($trunk_restriction) < 1) )
|
|
{
|
|
echo "<br>TRUNK DU SERVEUR VICIDIAL NON MODIFIE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>la campagne doit contenir entre 3 et 8 caractères\n";
|
|
echo "<br>le délai du server_ip doit contenir au moins 7 caractères\n";
|
|
echo "<br>les trunks doivent être un nombre entre 0 et 9999\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>TRINK DU SERVEUR VICIDIAL MODIFIE: $campaign_id - $server_ip - $dedicated_trunks - $trunk_restriction</B>\n";
|
|
|
|
$stmt="UPDATE vicidial_server_trunks SET dedicated_trunks='$dedicated_trunks',trunk_restriction='$trunk_restriction' where campaign_id='$campaign_id' and server_ip='$server_ip';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='SERVERMalles', event_type='MODIFY', record_id='$server_ip', event_code='ADMIN MODIFIER LE SERVEUR TRUNK', event_sql=\"$SQL_log\", event_notes='Campagne: $campaign_id';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=311111111111; # go to server modification form below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=431111111111 modify conf template record in the system
|
|
###################### '$template_id','$template_name','$template_contents'
|
|
|
|
if ($ADD==431111111111)
|
|
{
|
|
if ($LOGmodify_servers==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($template_id) < 1) or (strlen($template_name) < 1) )
|
|
{echo "<br>CONF TEMPLATE PAS mise à jour - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";}
|
|
else
|
|
{
|
|
echo "<br>CONF TEMPLATE MODIFIED: $template_id\n";
|
|
|
|
$stmt="UPDATE vicidial_conf_templates set template_name='$template_name',template_contents='$template_contents' where template_id='$template_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmtA="UPDATE servers SET rebuild_conf_files='Y' where generate_vicidial_conf='Y' and active_asterisk_server='Y';";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CONFTEMPLATES', event_type='MODIFY', record_id='$template_id', event_code='ADMIN MODIFY CONF TEMPLATE', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=331111111111; # go to conf template modification form below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=441111111111 modify carrier record in the system
|
|
######################
|
|
|
|
if ($ADD==441111111111)
|
|
{
|
|
if ($LOGmodify_servers==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($carrier_id) < 1) or (strlen($server_ip) < 7) or (strlen($protocol) < 1) )
|
|
{echo "<br>CARRIER PAS mise à jour - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";}
|
|
else
|
|
{
|
|
echo "<br>CARRIER mise à jour: $carrier_id\n";
|
|
|
|
$stmt="UPDATE vicidial_server_carriers set carrier_name='$carrier_name',registration_string='$registration_string',template_id='$template_id',account_entry='$account_entry',protocol='$protocol',globals_string='$globals_string',dialplan_entry='$dialplan_entry',server_ip='$server_ip',active='$active' where carrier_id='$carrier_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmtA="UPDATE servers SET rebuild_conf_files='Y' where generate_vicidial_conf='Y' and active_asterisk_server='Y' and server_ip='$server_ip';";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CARRIERS', event_type='MODIFY', record_id='$carrier_id', event_code='ADMIN MODIFY CARRIER', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=341111111111; # go to carrier modification form below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=4111111111111 modify conference record in the system
|
|
######################
|
|
|
|
if ($ADD==4111111111111)
|
|
{
|
|
if ($LOGast_admin_access==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT count(*) from conferences where conf_exten='$conf_exten' and server_ip='$server_ip';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ( ($row[0] > 0) && ( ($conf_exten != $old_conf_exten) or ($server_ip != $old_server_ip) ) )
|
|
{echo "<br>CONFERENCE NON MODIFIEE - il y a déjà une conférence dans le système avec cette extension-serveur\n";}
|
|
else
|
|
{
|
|
if ( (strlen($conf_exten) < 1) or (strlen($server_ip) < 7) )
|
|
{echo "<br>CONFERENCE NON MODIFIEE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";}
|
|
else
|
|
{
|
|
echo "<br>CONFERENCE MODIFIEE: $conf_exten\n";
|
|
|
|
$stmt="UPDATE conferences set conf_exten='$conf_exten',server_ip='$server_ip',extension='$extension' where conf_exten='$old_conf_exten';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=3111111111111; # go to conference modification form below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=41111111111111 modify vicidial conference record in the system
|
|
######################
|
|
|
|
if ($ADD==41111111111111)
|
|
{
|
|
if ($LOGast_admin_access==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT count(*) from vicidial_conferences where conf_exten='$conf_exten' and server_ip='$server_ip';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ( ($row[0] > 0) && ( ($conf_exten != $old_conf_exten) or ($server_ip != $old_server_ip) ) )
|
|
{echo "<br>VICIDIAL CONFERENCE NON MODIFIEE - il y a déjà une conférence dans le système avec cette extension-serveur\n";}
|
|
else
|
|
{
|
|
if ( (strlen($conf_exten) < 1) or (strlen($server_ip) < 7) )
|
|
{echo "<br>VICIDIAL CONFERENCE NON MODIFIEE - Veuillez revenir en arrière et vérifier les données que vous avez saisies\n";}
|
|
else
|
|
{
|
|
echo "<br>VICIDIAL CONFERENCE MODIFIEE: $conf_exten\n";
|
|
|
|
$stmt="UPDATE vicidial_conferences set conf_exten='$conf_exten',server_ip='$server_ip',extension='$extension' where conf_exten='$old_conf_exten';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=31111111111111; # go to vicidial conference modification form below
|
|
}
|
|
|
|
|
|
|
|
######################
|
|
# ADD=411111111111111 modify vicidial system settings
|
|
######################
|
|
|
|
if ($ADD==411111111111111)
|
|
{
|
|
if ($LOGmodify_servers==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>REGLAGES DU SYSTEME VICIDIAL MODIFIES\n";
|
|
|
|
$stmt="UPDATE system_settings set use_non_latin='$use_non_latin',webroot_writable='$webroot_writable',enable_queuemetrics_logging='$enable_queuemetrics_logging',queuemetrics_server_ip='$queuemetrics_server_ip',queuemetrics_dbname='$queuemetrics_dbname',queuemetrics_login='$queuemetrics_login',queuemetrics_pass='$queuemetrics_pass',queuemetrics_url='$queuemetrics_url',queuemetrics_log_id='$queuemetrics_log_id',queuemetrics_eq_prepend='$queuemetrics_eq_prepend',vicidial_agent_disable='$vicidial_agent_disable',allow_sipsak_messages='$allow_sipsak_messages',admin_home_url='$admin_home_url',enable_agc_xfer_log='$enable_agc_xfer_log',timeclock_end_of_day='$timeclock_end_of_day',vdc_header_date_format='$vdc_header_date_format',vdc_customer_date_format='$vdc_customer_date_format',vdc_header_phone_format='$vdc_header_phone_format',vdc_agent_api_active='$vdc_agent_api_active',enable_vtiger_integration='$enable_vtiger_integration',vtiger_server_ip='$vtiger_server_ip',vtiger_dbname='$vtiger_dbname',vtiger_login='$vtiger_login',vtiger_pass='$vtiger_pass',vtiger_url='$vtiger_url',qc_features_active='$qc_features_active',outbound_autodial_active='$outbound_autodial_active',outbound_calls_per_second='$outbound_calls_per_second';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='SYSTEMSETTINGS', event_type='MODIFY', record_id='system_settings', event_code='ADMIN MODIFY SYSTEM SETTINGS', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=311111111111111; # go to vicidial system settings form below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=421111111111111 modify/delete system status in the system
|
|
######################
|
|
|
|
if ($ADD==421111111111111)
|
|
{
|
|
if ($LOGmodify_servers==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if (ereg('delete',$stage))
|
|
{
|
|
if ( (strlen($status) < 1) or (preg_match("/^B$|^NA$|^DNC$|^NA$|^DROP$|^INCALL$|^QUEUE$|^NEW$/i",$status)) )
|
|
{
|
|
echo "<br>STATUT DE SYSTÈME NON SUPPRIMÉ - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>le statut de système ne peut pas être un statut réservé :B,NA,DNC,NA,DROP,INCALL,QUEUE,NEW\n";
|
|
echo "<br>le statut de système doit être au moins les caractères 1 delongueur\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>SYSTEM STATUS DELETED: $status</B>\n";
|
|
|
|
$stmt="DELETE FROM vicidial_statuses where status='$status';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmtA="DELETE FROM vicidial_campaign_hotkeys where status='$status';";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='SYSTEMSTATUSES', event_type='DELETE', record_id='$status', event_code='ADMIN DELETE SYSTEM STATUS', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
if (ereg('modify',$stage))
|
|
{
|
|
if ( (strlen($status) < 1) or (strlen($status_name) < 2) )
|
|
{
|
|
echo "<br>STATUT DE SYSTÈME NON MODIFIÉ - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>le statut de système doit être au moins les caractères 1 delongueur\n";
|
|
echo "<br>le nom de statut de système doit être au moins les caractères 1 delongueur\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>LE STATUT DE SYSTÈME A MODIFIÉ: $status</B>\n";
|
|
|
|
$stmt="UPDATE vicidial_statuses SET status_name='$status_name',selectable='$selectable',human_answered='$human_answered',category='$category' where status='$status';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='SYSTEMSTATUSES', event_type='MODIFY', record_id='$status', event_code='ADMIN MODIFY SYSTEM STATUS', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=321111111111111; # go to system settings modification form below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=431111111111111 modify/delete status category in the system
|
|
######################
|
|
|
|
if ($ADD==431111111111111)
|
|
{
|
|
if ($LOGmodify_servers==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($vsc_id) < 2) or (preg_match("/^UNDEFINED$/i",$vsc_id)) )
|
|
{
|
|
echo "<br>CATÉGORIE DE STATUT NON MODIFIÉE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>la catégorie de statut ne peut pas être une catégorie réservée :UNDEFINED\n";
|
|
echo "<br>la catégorie de statut doit être au moins 2 caractères de longueur\n";
|
|
}
|
|
else
|
|
{
|
|
if (ereg('delete',$stage))
|
|
{
|
|
echo "<br><B>LA CATÉGORIE DE STATUT A SUPPRIMÉ: $vsc_id</B>\n";
|
|
|
|
$stmt="DELETE FROM vicidial_status_categories where vsc_id='$vsc_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='STATUSCATEGORIES', event_type='DELETE', record_id='$vsc_id', event_code='ADMIN DELETE STATUS CATÉGORIE', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
if (ereg('modify',$stage))
|
|
{
|
|
echo "<br><B>LA CATÉGORIE DE STATUT A MODIFIÉ: $vsc_id</B>\n";
|
|
|
|
$stmt="SELECT count(*) from vicidial_status_categories where tovdad_display='Y' and vsc_id NOT IN('$vsc_id');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ( ($row[0] > 3) and (ereg('Y',$tovdad_display)) )
|
|
{
|
|
$tovdad_display = 'N';
|
|
echo "<br><B>ERREUR : Il y a déjà ensemble de 4 catégories de statut àl'affichage de TimeOnVDAD</B>\n";
|
|
}
|
|
|
|
$stmt="UPDATE vicidial_status_categories SET vsc_name='$vsc_name',vsc_description='$vsc_description',tovdad_display='$tovdad_display',sale_category='$sale_category',dead_lead_category='$dead_lead_category' where vsc_id='$vsc_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='STATUSCATEGORIES', event_type='MODIFY', record_id='$vsc_id', event_code='ADMIN MODIFY STATUS CATÉGORIE', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=331111111111111; # go to system settings modification form below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=441111111111111 modify/delete qc status code in the system
|
|
######################
|
|
|
|
if ($ADD==441111111111111)
|
|
{
|
|
if ( ($LOGmodify_servers==1) and ($SSqc_features_active > 0) )
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if (ereg('delete',$stage))
|
|
{
|
|
if ( (strlen($code) < 1) or (preg_match("/^B$|^NA$|^DNC$|^NA$|^DROP$|^INCALL$|^QUEUE$|^NEW$/i",$code)) )
|
|
{
|
|
echo "<br>QC CODE ÉTAT PAS SUPPRIMÉ - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>the qc status code cannot be a reserved status: B,NA,DNC,NA,DROP,INCALL,QUEUE,NEW\n";
|
|
echo "<br>qc le code de statut doit être au moins de 1 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>QC ÉTAT CODE DELETED:$code</B>\n";
|
|
|
|
$stmt="DELETE FROM vicidial_qc_codes where code='$code';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='QCCODES', event_type='DELETE', record_id='$vsc_id', event_code='ADMIN DELETE QC CODES', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
if (ereg('modify',$stage))
|
|
{
|
|
if ( (strlen($code) < 1) or (strlen($code_name) < 2) )
|
|
{
|
|
echo "<br>QC CODE ÉTAT PAS mise à jour- Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>qc le code de statut doit être au moins de 1 caractères\n";
|
|
echo "<br>qc le nom de code de statut doit être au moins de 1 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>QC ÉTAT CODE mise à jour:$code</B>\n";
|
|
|
|
$stmt="UPDATE vicidial_qc_codes SET code_name='$code_name' where code='$code';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='QCCODES', event_type='MODIFY', record_id='$vsc_id', event_code='ADMIN MODIFY QC CODES', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=341111111111111; # go to qc status code modification form below
|
|
}
|
|
|
|
|
|
|
|
|
|
######################################################################################################
|
|
######################################################################################################
|
|
####### 5 series, delete records confirmation
|
|
######################################################################################################
|
|
######################################################################################################
|
|
|
|
|
|
######################
|
|
# ADD=5 confirmation before deletion of user
|
|
######################
|
|
|
|
if ($ADD==5)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($user) < 2) or ($LOGdelete_users < 1) )
|
|
{
|
|
echo "<br>UTILISATEUR NON SUPPRIME - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Utilisateur be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>CONFIRMATION DE LA SUPPRESSION DE L'UTILISATEUR: $user</B>\n";
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=6&user=$user&CoNfIrM=YES\">Cliquez ici pour supprimer cet utilisateur $user</a><br><br><br>\n";
|
|
}
|
|
|
|
$ADD='3'; # go to user modification below
|
|
}
|
|
|
|
######################
|
|
# ADD=51 confirmation before deletion of campaign
|
|
######################
|
|
|
|
if ($ADD==51)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($campaign_id) < 2) or ($LOGdelete_campaigns < 1) )
|
|
{
|
|
echo "<br>CAMPAGNE NON SUPPRIMEE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Campagne_id be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>CONFIRMATION DE LA SUPPRESSION DE LA CAMPAGNE: $campaign_id</B>\n";
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=61&campaign_id=$campaign_id&CoNfIrM=YES\">Cliquez ici pour supprimer cette campagne $campaign_id</a><br><br><br>\n";
|
|
}
|
|
|
|
$ADD='31'; # go to campaign modification below
|
|
}
|
|
|
|
######################
|
|
# ADD=52 confirmation before logging all agents out of campaign of campaign
|
|
######################
|
|
|
|
if ($ADD==52)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if (strlen($campaign_id) < 2)
|
|
{
|
|
echo "<br>AGENTS NON DECONNECTES DE LA CAMPAGNE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Campagne_id be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>CONFIRMATION DE LA DECONNECTION DE L'AGENT: $campaign_id</B>\n";
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=62&campaign_id=$campaign_id&CoNfIrM=YES\">Cliquez ici pour déconnecter tous les agents de $campaign_id</a><br><br><br>\n";
|
|
}
|
|
|
|
$ADD='31'; # go to campaign modification below
|
|
}
|
|
|
|
######################
|
|
# ADD=53 confirmation before Emergency VDAC Jam Clear - deletes oldest LIVE vicidial_auto_call record
|
|
######################
|
|
|
|
if ($ADD==53)
|
|
{
|
|
if (eregi('IN',$stage))
|
|
{$group_id=$campaign_id;}
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if (strlen($campaign_id) < 2)
|
|
{
|
|
echo "<br>VDAC NON EFFACE POUR LA CAMPAGNE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Campagne_id be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>CONFIRMATION DE L'EFFACEMENT DE VDAC: $campaign_id</B>\n";
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=63&campaign_id=$campaign_id&CoNfIrM=YES&&stage=$stage\">Cliquez ici pour effacer les plus vieux enregistrements LIVE dans VDAC pour $campaign_id</a><br><br><br>\n";
|
|
}
|
|
|
|
# go to campaign modification below
|
|
if (eregi('IN',$stage))
|
|
{$ADD='3111';}
|
|
else
|
|
{$ADD='31';}
|
|
}
|
|
|
|
######################
|
|
# ADD=511 confirmation before deletion of list
|
|
######################
|
|
|
|
if ($ADD==511)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($list_id) < 2) or ($LOGdelete_lists < 1) )
|
|
{
|
|
echo "<br>LISTE NON SUPPRIMEE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>List_id be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>CONFIRMATION DE LA SUPPRESSION DE LA LISTE: $list_id</B>\n";
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=611&list_id=$list_id&CoNfIrM=YES\">Cliquez ici pour supprimer cette liste et toutes ses fiches $list_id</a><br><br><br>\n";
|
|
}
|
|
|
|
$ADD='311'; # go to campaign modification below
|
|
}
|
|
|
|
######################
|
|
# ADD=5111 confirmation before deletion of in-group
|
|
######################
|
|
|
|
if ($ADD==5111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($group_id) < 2) or ($LOGdelete_ingroups < 1) )
|
|
{
|
|
echo "<br>IN-GROUP NON SUPPRIME - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Group_id be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>CONFIRMATION DE LA SUPPRESSION DU IN-GROUP: $group_id</B>\n";
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=6111&group_id=$group_id&CoNfIrM=YES\">Cliquer ici pour supprimer le in-group $group_id</a><br><br><br>\n";
|
|
}
|
|
|
|
$ADD='3111'; # go to in-group modification below
|
|
}
|
|
|
|
######################
|
|
# ADD=5311 confirmation before deletion of did
|
|
######################
|
|
|
|
if ($ADD==5311)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($did_id) < 1) or ($LOGdelete_dids < 1) )
|
|
{
|
|
echo "<br>NE PAS SUPPRIMER - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>did_id be at least 1 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>A DELETION CONFIRMATION: $group_id</B>\n";
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=6311&did_id=$did_id&CoNfIrM=YES\">Cliquez ici pour supprimerDID $did_id</a><br><br><br>\n";
|
|
}
|
|
|
|
$ADD='3311'; # go to did modification below
|
|
}
|
|
|
|
######################
|
|
# ADD=51111 confirmation before deletion of remote agent record
|
|
######################
|
|
|
|
if ($ADD==51111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($remote_agent_id) < 1) or ($LOGdelete_remote_agents < 1) )
|
|
{
|
|
echo "<br>AGENT DISTANT NON SUPPRIME - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Remote_agent_id be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>CONFIRMATION DE LA SUPPRESSION DE L'AGENT DISTANT: $remote_agent_id</B>\n";
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=61111&remote_agent_id=$remote_agent_id&CoNfIrM=YES\">Cliquez ici pour supprimer l'agent distant $remote_agent_id</a><br><br><br>\n";
|
|
}
|
|
|
|
$ADD='31111'; # go to remote agent modification below
|
|
}
|
|
|
|
######################
|
|
# ADD=511111 confirmation before deletion of user group record
|
|
######################
|
|
|
|
if ($ADD==511111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($user_group) < 2) or ($LOGdelete_user_groups < 1) )
|
|
{
|
|
echo "<br>GROUPE D'UTILISATEUR NON SUPPRIME - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Utilisateur_group be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>CONFIRMATION DE LA SUPPRESSION DU GROUPE D'UTILISATEURS: $user_group</B>\n";
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=611111&user_group=$user_group&CoNfIrM=YES\">Cliquez ici pour supprimer le groupe d'utilisateurs $user_group</a><br><br><br>\n";
|
|
}
|
|
|
|
$ADD='311111'; # go to user group modification below
|
|
}
|
|
|
|
######################
|
|
# ADD=5111111 confirmation before deletion of script record
|
|
######################
|
|
|
|
if ($ADD==5111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($script_id) < 2) or ($LOGdelete_scripts < 1) )
|
|
{
|
|
echo "<br>SCRIPT NON SUPPRIME - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Script_id must be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>CONFIRMATION DE LA SUPPRESSION DU SCRIPT: $script_id</B>\n";
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=6111111&script_id=$script_id&CoNfIrM=YES\">Cliquez ici pour supprimer le script $script_id</a><br><br><br>\n";
|
|
}
|
|
|
|
$ADD='3111111'; # go to script modification below
|
|
}
|
|
|
|
######################
|
|
# ADD=51111111 confirmation before deletion of filter record
|
|
######################
|
|
|
|
if ($ADD==51111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($lead_filter_id) < 2) or ($LOGdelete_filters < 1) )
|
|
{
|
|
echo "<br>FILTRE NON SUPPRIME - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>L'identifiant du filtre doit contenir au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>FILTER DELETION CONFIRMATION: $lead_filter_id</B>\n";
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=61111111&lead_filter_id=$lead_filter_id&CoNfIrM=YES\">Cliquez ici pour effacer le filtre$lead_filter_id</a><br><br><br>\n";
|
|
}
|
|
|
|
$ADD='31111111'; # go to filter modification below
|
|
}
|
|
|
|
######################
|
|
# ADD=511111111 confirmation before deletion of call time record
|
|
######################
|
|
|
|
if ($ADD==511111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($call_time_id) < 2) or ($LOGdelete_call_times < 1) )
|
|
{
|
|
echo "<br>PERIODE D'APPELS NON SUPPRIMEE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>L'ID de la période d'appels doit contenir au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>CONFIRMATION DE LA SUPPRESION DE LA PERIODE D'APPELS: $call_time_id</B>\n";
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=611111111&call_time_id=$call_time_id&CoNfIrM=YES\">Cliquez ici pour supprimercall time $call_time_id</a><br><br><br>\n";
|
|
}
|
|
|
|
$ADD='311111111'; # go to call time modification below
|
|
}
|
|
|
|
######################
|
|
# ADD=5111111111 confirmation before deletion of state call time record
|
|
######################
|
|
|
|
if ($ADD==5111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($call_time_id) < 2) or ($LOGdelete_call_times < 1) )
|
|
{
|
|
echo "<br>PERIODE D'APPELS D'ETAT NON SUPPRIMEE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>L'ID de la période d'appels doit contenir au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>CONFIRMATION DE LA SUPPRESSION DE LA PERIODE D'APPELS D'ETAT: $call_time_id</B>\n";
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=6111111111&call_time_id=$call_time_id&CoNfIrM=YES\">Cliquez ici pour supprimerstate call time $call_time_id</a><br><br><br>\n";
|
|
}
|
|
|
|
$ADD='3111111111'; # go to state call time modification below
|
|
}
|
|
|
|
######################
|
|
# ADD=531111111 confirmation before deletion of shift record
|
|
######################
|
|
|
|
if ($ADD==531111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($shift_id) < 2) or ($LOGdelete_call_times < 1) )
|
|
{
|
|
echo "<br>MAJ pas supprimé - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Shift ID must be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>SHIFT DELETION CONFIRMATION:$shift_id</B>\n";
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=631111111&shift_id=$shift_id&CoNfIrM=YES\">Cliquez ici pour supprimer le passage $shift_id</a><br><br><br>\n";
|
|
}
|
|
|
|
$ADD='331111111'; # go to call time modification below
|
|
}
|
|
|
|
######################
|
|
# ADD=51111111111 confirmation before deletion of phone record
|
|
######################
|
|
|
|
if ($ADD==51111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($extension) < 2) or (strlen($server_ip) < 7) or ($LOGast_delete_phones < 1) )
|
|
{
|
|
echo "<br>TELEPHONE NON SUPPRIME - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Extension be at least 2 characters in length\n";
|
|
echo "<br>IP du serveur be at least 7 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>CONFIRMATION DE LA SUPPRESSION DU TELEPHONE: $extension - $server_ip</B>\n";
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=61111111111&extension=$extension&server_ip=$server_ip&CoNfIrM=YES\">Cliquez ici pour supprimer le téléphone $extension - $server_ip</a><br><br><br>\n";
|
|
}
|
|
$ADD='31111111111'; # go to phone modification below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=52111111111 confirmation before deletion of phone alias record
|
|
######################
|
|
|
|
if ($ADD==52111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($alias_id) < 1) or ($LOGast_delete_phones < 1) )
|
|
{
|
|
echo "<br>PHONE ALIAS pas supprimé - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Alias ID must be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>PHONE ALIAS DELETION CONFIRMATION: $alias_id</B>\n";
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=62111111111&alias_id=$alias_id&CoNfIrM=YES\">Cliquez ici pour supprimer le téléphone alias $alias_id</a><br><br><br>\n";
|
|
}
|
|
$ADD='32111111111'; # go to phone alias modification below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=53111111111 confirmation before deletion of group alias record
|
|
######################
|
|
|
|
if ($ADD==53111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($group_alias_id) < 1) or ($LOGast_delete_phones < 1) )
|
|
{
|
|
echo "<br>GROUPE ALIAS pas supprimé - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Alias Groupe ID must be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>GROUPE ALIAS DELETION CONFIRMATION: $group_alias_id</B>\n";
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=63111111111&group_alias_id=$group_alias_id&CoNfIrM=YES\">Cliquez ici pour supprimer le groupe alias $group_alias_id</a><br><br><br>\n";
|
|
}
|
|
$ADD='33111111111'; # go to group alias modification below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=511111111111 confirmation before deletion of server record
|
|
######################
|
|
|
|
if ($ADD==511111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($server_id) < 2) or (strlen($server_ip) < 7) or ($LOGast_delete_phones < 1) )
|
|
{
|
|
echo "<br>SERVEUR NOT DELETED - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>ID du serveur be at least 2 characters in length\n";
|
|
echo "<br>IP du serveur be at least 7 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>SERVEUR DELETION CONFIRMATION: $server_id - $server_ip</B>\n";
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=611111111111&server_id=$server_id&server_ip=$server_ip&CoNfIrM=YES\">Cliquez ici pour supprimer le téléphone $server_id - $server_ip</a><br><br><br>\n";
|
|
}
|
|
$ADD='311111111111'; # go to server modification below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=531111111111 confirmation before deletion of conf template record
|
|
######################
|
|
|
|
if ($ADD==531111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if (strlen($template_id) < 2)
|
|
{
|
|
echo "<br>CONF TEMPLATE pas supprimé - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Template ID être d'au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>CONF TEMPLATE DELETION CONFIRMATION: $template_id - $template_name</B>\n";
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=631111111111&template_id=$template_id&server_ip=$server_ip&CoNfIrM=YES\">Cliquez ici pour supprimer le modèle de conf $template_id - $template_name</a><br><br><br>\n";
|
|
}
|
|
$ADD='331111111111'; # go to conf template modification below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=541111111111 confirmation before deletion of carrier record
|
|
######################
|
|
|
|
if ($ADD==541111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if (strlen($carrier_id) < 2)
|
|
{
|
|
echo "<br>CARRIER pas supprimé - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Carrier ID être d'au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>SUPPRESSION DE SUPPORT DE CONFIRMATION: $carrier_id - $carrier_name</B>\n";
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=641111111111&carrier_id=$carrier_id&CoNfIrM=YES\">Cliquez ici pour supprimer le transporteur $carrier_id - $carrier_name</a><br><br><br>\n";
|
|
}
|
|
$ADD='341111111111'; # go to carrier modification below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=5111111111111 confirmation before deletion of conference record
|
|
######################
|
|
|
|
if ($ADD==5111111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($conf_exten) < 2) or (strlen($server_ip) < 7) or ($LOGast_delete_phones < 1) )
|
|
{
|
|
echo "<br>CONFERENCE NOT DELETED - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Conference must be at least 2 characters in length\n";
|
|
echo "<br>IP du serveur be at least 7 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>CONFERENCE DELETION CONFIRMATION: $conf_exten - $server_ip</B>\n";
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=6111111111111&conf_exten=$conf_exten&server_ip=$server_ip&CoNfIrM=YES\">Cliquez ici pour supprimer le téléphone $conf_exten - $server_ip</a><br><br><br>\n";
|
|
}
|
|
$ADD='3111111111111'; # go to conference modification below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=51111111111111 confirmation before deletion of vicidial conference record
|
|
######################
|
|
|
|
if ($ADD==51111111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($conf_exten) < 2) or (strlen($server_ip) < 7) or ($LOGast_delete_phones < 1) )
|
|
{
|
|
echo "<br>VICIDIAL CONFERENCE NOT DELETED - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Conference must be at least 2 characters in length\n";
|
|
echo "<br>IP du serveur be at least 7 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>VICIDIAL CONFERENCE DELETION CONFIRMATION: $conf_exten - $server_ip</B>\n";
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=61111111111111&conf_exten=$conf_exten&server_ip=$server_ip&CoNfIrM=YES\">Cliquez ici pour supprimer le téléphone $conf_exten - $server_ip</a><br><br><br>\n";
|
|
}
|
|
$ADD='31111111111111'; # go to vicidial conference modification below
|
|
}
|
|
|
|
|
|
|
|
######################################################################################################
|
|
######################################################################################################
|
|
####### 6 series, delete records
|
|
######################################################################################################
|
|
######################################################################################################
|
|
|
|
|
|
######################
|
|
# ADD=6 delete user record
|
|
######################
|
|
|
|
if ($ADD==6)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( ( strlen($user) < 2) or ($CoNfIrM != 'YES') or ($LOGdelete_users < 1) )
|
|
{
|
|
echo "<br>UTILISATEUR NON SUPPRIME - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Utilisateur be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
$stmtA="DELETE from vicidial_users where user='$user' limit 1;";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
$stmt="DELETE from vicidial_campaign_agents where user='$user';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmt="DELETE from vicidial_inbound_group_agents where user='$user';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmtA|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='UTILISATEURS', event_type='DELETE', record_id='$user', event_code='ADMIN DELETE USER', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>SUPPRESSION DE L'UTILISATEUR CONFIRMEE: $user</B>\n";
|
|
echo "<br><br>\n";
|
|
}
|
|
|
|
$ADD='0'; # go to user list
|
|
}
|
|
|
|
######################
|
|
# ADD=61 delete campaign record
|
|
######################
|
|
|
|
if ($ADD==61)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( ( strlen($campaign_id) < 2) or ($CoNfIrM != 'YES') or ($LOGdelete_campaigns < 1) )
|
|
{
|
|
echo "<br>CAMPAGNE NON SUPPRIMEE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Campagne_id be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
$stmtA="DELETE from vicidial_campaigns where campaign_id='$campaign_id' limit 1;";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
$stmt="DELETE from vicidial_campaign_agents where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmt="DELETE from vicidial_live_agents where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmt="DELETE from vicidial_campaign_statuses where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmt="DELETE from vicidial_campaign_hotkeys where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmt="DELETE from vicidial_callbacks where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmt="DELETE from vicidial_campaign_stats where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmt="DELETE from vicidial_lead_recycle where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmt="DELETE from vicidial_campaign_server_stats where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmt="DELETE from vicidial_server_trunks where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmt="DELETE from vicidial_pause_codes where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmt="DELETE from vicidial_campaigns_list_mix where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br>ENLEVER LES FICHES DU VIEUX DISTRIBUTEUR DE FICHES DE LA CAMAPGNE ($campaign_id)\n";
|
|
$stmt="DELETE from vicidial_hopper where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmtA|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGNS', event_type='DELETE', record_id='$campaign_id', event_code='ADMIN DELETE CAMPAIGN', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>SUPRESSION DE LA CAMPAGNE CONFIRMEE: $campaign_id</B>\n";
|
|
echo "<br><br>\n";
|
|
}
|
|
|
|
$ADD='10'; # go to campaigns list
|
|
}
|
|
|
|
######################
|
|
# ADD=62 Logout all agents from a campaign
|
|
######################
|
|
|
|
if ($ADD==62)
|
|
{
|
|
if ($LOGmodify_campaigns==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if (strlen($campaign_id) < 2)
|
|
{
|
|
echo "<br>AGENTS NON DECONNECTES DE LA CAMPAGNE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Campagne_id be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="DELETE from vicidial_live_agents where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGNS', event_type='LOGOUT', record_id='$campaign_id', event_code='ADMIN LOGOUT CAMPAIGN AGENTS', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>Déconnection des agents terminée: $campaign_id</B>\n";
|
|
echo "<br><br>\n";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD='31'; # go to campaign modification below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=63 Emergency VDAC Jam Clear
|
|
######################
|
|
|
|
if ($ADD==63)
|
|
{
|
|
if ($LOGmodify_campaigns==1)
|
|
{
|
|
if (eregi('IN',$stage))
|
|
{$group_id=$campaign_id;}
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if (strlen($campaign_id) < 2)
|
|
{
|
|
echo "<br>VDAC NON EFFACE POUR LA CAMPAGNE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Campagne_id be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="DELETE from vicidial_auto_calls where status='LIVE' and campaign_id='$campaign_id' order by call_time limit 1;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGNS', event_type='RESET', record_id='$campaign_id', event_code='ADMIN RESET CAMPAIGN JAM', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>DERNIER ENREGISTREMENT VDAC DE LA CAMPAGNE EFFACE: $campaign_id</B>\n";
|
|
echo "<br><br>\n";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
# go to campaign modification below
|
|
if (eregi('IN',$stage))
|
|
{$ADD='3111';}
|
|
else
|
|
{$ADD='31';}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=65 delete campaign lead recycle in the system
|
|
######################
|
|
|
|
if ($ADD==65)
|
|
{
|
|
if ($LOGmodify_campaigns==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($campaign_id) < 2) or (strlen($status) < 1) )
|
|
{
|
|
echo "<br>RECYCLAGE DES FICHES DE LA CAMPAGNE NON SUPPRIME - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>le statut doit contenir entre 1 et 6 caractères\n";
|
|
echo "<br>le délai d'attente doit être au moins 120 secondes\n";
|
|
echo "<br>le nombre d'essais maximum doit être compris entre 1 et 10\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>RECYCLAGE DES FICHES DE LA CAMPAGNE SUPPRIME: $campaign_id - $status - $attempt_delay</B>\n";
|
|
|
|
$stmt="DELETE FROM vicidial_lead_recycle where campaign_id='$campaign_id' and status='$status';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGN_RECYCLE', event_type='DELETE', record_id='$campaign_id', event_code='ADMIN DELETE CAMPAIGN LEAD RECYCLE', event_sql=\"$SQL_log\", event_notes='Etat: $status';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$SUB=25;
|
|
$ADD=31; # go to campaign modification form below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=66 delete auto alt dial status from the campaign
|
|
######################
|
|
|
|
if ($ADD==66)
|
|
{
|
|
if ($LOGmodify_campaigns==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_campaigns where campaign_id='$campaign_id' and auto_alt_dial_statuses LIKE \"% $status %\";";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] < 1)
|
|
{echo "<br>STATUT D'APPEL AUTOMATIQUE DU NUMERO ALTERNATIF NON SUPPRIME - ce statut d'appel automatique du numéro alternatif n'est pas dans cette campagne\n";}
|
|
else
|
|
{
|
|
if ( (strlen($campaign_id) < 2) or (strlen($status) < 1) )
|
|
{
|
|
echo "<br>STATUT D'APPEL AUTOMATIQUE DU NUMERO ALTERNATIF NON SUPPRIME - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>le statut doit contenir entre 1 et 6 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>STATUT D'APPEL AUTOMATIQUE DU NUMERO ALTERNATIF SUPPRIME: $campaign_id - $status</B>\n";
|
|
|
|
$stmt="SELECT auto_alt_dial_statuses from vicidial_campaigns where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
|
|
$auto_alt_dial_statuses = eregi_replace(" $status "," ",$row[0]);
|
|
$stmt="UPDATE vicidial_campaigns set auto_alt_dial_statuses='$auto_alt_dial_statuses' where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGN_ALTDIALS', event_type='DELETE', record_id='$campaign_id', event_code='ADMIN DELETE CAMPAIGN ALT DIAL', event_sql=\"$SQL_log\", event_notes='Etat: $status';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$SUB=26;
|
|
$ADD=31; # go to campaign modification form below
|
|
}
|
|
|
|
######################
|
|
# ADD=67 delete agent pause code in the system
|
|
######################
|
|
|
|
if ($ADD==67)
|
|
{
|
|
if ($LOGmodify_campaigns==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($campaign_id) < 2) or (strlen($pause_code) < 1) )
|
|
{
|
|
echo "<br>CODE DE PAUSE DE LA CAMPAGNE NON SUPPRIME - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>pause code must be between 1 and 6 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>CAMPAIGN PAUSE CODE DELETED: $campaign_id - $pause_code</B>\n";
|
|
|
|
$stmt="DELETE FROM vicidial_pause_codes where campaign_id='$campaign_id' and pause_code='$pause_code';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGN_PAUSECODES', event_type='DELETE', record_id='$campaign_id', event_code='ADMIN DELETE CAMPAIGN PAUSE CODE', event_sql=\"$SQL_log\", event_notes='Etat: $pause_code';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$SUB=27;
|
|
$ADD=31; # go to campaign modification form below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=68 remove campaign dial status
|
|
######################
|
|
|
|
if ($ADD==68)
|
|
{
|
|
if ($LOGmodify_campaigns==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
$stmt="SELECT count(*) from vicidial_campaigns where campaign_id='$campaign_id' and dial_statuses LIKE \"% $status %\";";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
if ($row[0] < 1)
|
|
{echo "<br>STATUT D'APPEL POUR CETTE CAMPAGNE NON SUPPRIME - ce statut d'appel n'est pas selectionné pour cette campagne\n";}
|
|
else
|
|
{
|
|
if ( (strlen($campaign_id) < 2) or (strlen($status) < 1) )
|
|
{
|
|
echo "<br>STATUT D'APPEL POUR CETTE CAMPAGNE NON SUPPRIME - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>le statut doit contenir entre 1 et 6 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>STATUT D'APPEL POUR CETTE CAMPAGNE SUPPRIME: $campaign_id - $status</B>\n";
|
|
|
|
$stmt="SELECT dial_statuses from vicidial_campaigns where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
|
|
$dial_statuses = eregi_replace(" $status "," ",$row[0]);
|
|
$stmt="UPDATE vicidial_campaigns set dial_statuses='$dial_statuses' where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CAMPAIGN_DIALSTATUSES', event_type='DELETE', record_id='$campaign_id', event_code='ADMIN DELETE CAMPAIGN DIAL STATUS', event_sql=\"$SQL_log\", event_notes='Etat: $status';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
#$SUB=28;
|
|
$ADD=31; # go to campaign modification form below
|
|
}
|
|
|
|
######################
|
|
# ADD=611 delete list record and all leads within it
|
|
######################
|
|
|
|
if ($ADD==611)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( ( strlen($list_id) < 2) or ($CoNfIrM != 'YES') or ($LOGdelete_lists < 1) )
|
|
{
|
|
echo "<br>LISTE NON SUPPRIMEE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>List_id be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="DELETE from vicidial_lists where list_id='$list_id' limit 1;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br>ENLEVER LES FICHES DU VIEUX DISTRIBUTEUR DE FICHES DE LA CAMAPGNE ($list_id)\n";
|
|
$stmt="DELETE from vicidial_hopper where list_id='$list_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br>SUPPRIMER LES FICHES DE LA LISTE DE LA TABLE VICIDIAL_LIST\n";
|
|
$stmt="DELETE from vicidial_list where list_id='$list_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='LISTES', event_type='DELETE', record_id='$list_id', event_code='ADMIN DELETE LIST', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>SUPPRESSION DE LA LISTE CONFIRMEE: $list_id</B>\n";
|
|
echo "<br><br>\n";
|
|
}
|
|
|
|
$ADD='100'; # go to lists list
|
|
}
|
|
|
|
######################
|
|
# ADD=6111 delete in-group record
|
|
######################
|
|
|
|
if ($ADD==6111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($group_id) < 2) or ($CoNfIrM != 'YES') or ($LOGdelete_ingroups < 1) )
|
|
{
|
|
echo "<br>IN-GROUP NON SUPPRIME - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Group_id be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
$stmtA="DELETE from vicidial_inbound_groups where group_id='$group_id' and group_id NOT IN('AGENTDIRECT') limit 1;";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
$stmt="DELETE from vicidial_inbound_group_agents where group_id='$group_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmt="DELETE from vicidial_live_inbound_agents where group_id='$group_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmt="DELETE from vicidial_campaign_stats where campaign_id='$group_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmtA|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='INGROUPS', event_type='DELETE', record_id='$group_id', event_code='ADMIN DELETE INGROUP', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>SUPPRESSION DU IN-GROUP TERMINEE: $group_id</B>\n";
|
|
echo "<br><br>\n";
|
|
}
|
|
|
|
$ADD='1000'; # go to in-group list
|
|
}
|
|
|
|
######################
|
|
# ADD=6311 delete did record
|
|
######################
|
|
|
|
if ($ADD==6311)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($did_id) < 1) or ($CoNfIrM != 'YES') or ($LOGdelete_dids < 1) )
|
|
{
|
|
echo "<br>NE PAS SUPPRIMER - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>did_id be at least 1 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="DELETE from vicidial_inbound_dids where did_id='$did_id' limit 1;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='DIDS', event_type='DELETE', record_id='$did_id', event_code='ADMIN DELETE DID', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>A DELETION ACCOMPLIES: $did_id</B>\n";
|
|
echo "<br><br>\n";
|
|
}
|
|
|
|
$ADD='1300'; # go to did list
|
|
}
|
|
|
|
######################
|
|
# ADD=61111 delete remote agent record
|
|
######################
|
|
|
|
if ($ADD==61111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($remote_agent_id) < 1) or ($CoNfIrM != 'YES') or ($LOGdelete_remote_agents < 1) )
|
|
{
|
|
echo "<br>AGENT DISTANT NON SUPPRIME - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Remote_agent_id be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="DELETE from vicidial_remote_agents where remote_agent_id='$remote_agent_id' limit 1;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='REMOTEAGENTS', event_type='DELETE', record_id='$remote_agent_id', event_code='ADMIN DELETE REMOTE AGENT', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>SUPPRESSION DE L'AGENT DISTANT CONFIRMEE: $remote_agent_id</B>\n";
|
|
echo "<br><br>\n";
|
|
}
|
|
|
|
$ADD='10000'; # go to remote agents list
|
|
}
|
|
|
|
######################
|
|
# ADD=611111 delete user group record
|
|
######################
|
|
|
|
if ($ADD==611111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($user_group) < 2) or ($CoNfIrM != 'YES') or ($LOGdelete_user_groups < 1) )
|
|
{
|
|
echo "<br>GROUPE D'UTILISATEUR NON SUPPRIME - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Utilisateur_group be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="DELETE from vicidial_user_groups where user_group='$user_group' limit 1;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='USERGROUPS', event_type='DELETE', record_id='$user_group', event_code='ADMIN DELETE GROUPE D'UTILISATEURS', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>SUPPRESSION DU GROUPE D'UTILISATEURS TERMINEE: $user_group</B>\n";
|
|
echo "<br><br>\n";
|
|
}
|
|
|
|
$ADD='100000'; # go to user group list
|
|
}
|
|
|
|
######################
|
|
# ADD=6111111 delete script record
|
|
######################
|
|
|
|
if ($ADD==6111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($script_id) < 2) or ($CoNfIrM != 'YES') or ($LOGdelete_scripts < 1) )
|
|
{
|
|
echo "<br>SCRIPT NON SUPPRIME - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Script_id be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="DELETE from vicidial_scripts where script_id='$script_id' limit 1;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='SCRIPTS', event_type='DELETE', record_id='$script_id', event_code='ADMIN DELETE SCRIPT', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>SUPPRESSION DU SCRIPT TERMINEE: $script_id</B>\n";
|
|
echo "<br><br>\n";
|
|
}
|
|
|
|
$ADD='1000000'; # go to script list
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=61111111 delete filter record
|
|
######################
|
|
|
|
if ($ADD==61111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($lead_filter_id) < 2) or ($CoNfIrM != 'YES') or ($LOGdelete_filters < 1) )
|
|
{
|
|
echo "<br>FILTRE NON SUPPRIME - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>L'identifiant du filtre doit contenir au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="DELETE from vicidial_lead_filters where lead_filter_id='$lead_filter_id' limit 1;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='FILTRES', event_type='DELETE', record_id='$lead_filter_id', event_code='ADMIN DELETE FILTRES', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>EFFACEMENT DU FILTRE TERMINE: $lead_filter_id</B>\n";
|
|
echo "<br><br>\n";
|
|
}
|
|
|
|
$ADD='10000000'; # go to filter list
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=611111111 delete call times record
|
|
######################
|
|
|
|
if ($ADD==611111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($call_time_id) < 2) or ($LOGdelete_call_times < 1) )
|
|
{
|
|
echo "<br>PERIODE D'APPELS NON SUPPRIMEE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>L'ID de la période d'appels doit contenir au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="DELETE from vicidial_call_times where call_time_id='$call_time_id' limit 1;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CALLTIMES', event_type='DELETE', record_id='$call_time_id', event_code='ADMIN DELETE CALL TIME', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>SUPPRESSION DE LA PERIODE D'APPELS TERMINEE: $call_time_id</B>\n";
|
|
echo "<br><br>\n";
|
|
}
|
|
|
|
$ADD='100000000'; # go to call times list
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=6111111111 delete state call times record
|
|
######################
|
|
|
|
if ($ADD==6111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($call_time_id) < 2) or ($LOGdelete_call_times < 1) )
|
|
{
|
|
echo "<br>PERIODE D'APPELS D'ETAT NON SUPPRIMEE - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>L'ID de la période d'appels doit contenir au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
$stmtA="DELETE from vicidial_state_call_times where state_call_time_id='$call_time_id' limit 1;";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
$stmt="SELECT call_time_id,ct_state_call_times from vicidial_call_times where ct_state_call_times LIKE \"%|$call_time_id|%\" order by call_time_id;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$sct_to_print = mysql_num_rows($rslt);
|
|
$sct_list='';
|
|
|
|
$o=0;
|
|
while ($sct_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$sct_ids[$o] = "$rowx[0]";
|
|
$sct_states[$o] = "$rowx[1]";
|
|
$o++;
|
|
}
|
|
$o=0;
|
|
while ($sct_to_print > $o)
|
|
{
|
|
$sct_states[$o] = eregi_replace("\|$call_time_id\|",'|',$sct_states[$o]);
|
|
$stmt="UPDATE vicidial_call_times set ct_state_call_times='$sct_states[$o]' where call_time_id='$sct_ids[$o]';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
echo "$stmt\n";
|
|
echo "Règle d'état supprimée: $sct_ids[$o]<BR>\n";
|
|
$o++;
|
|
}
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmtA|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CALLTIMES', event_type='DELETE', record_id='$call_time_id', event_code='ADMIN DELETE STATE CALL TIME', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>SUPPRESSION DE LA PERIODE D'APPELS D'ETAT TERMINEE: $call_time_id</B>\n";
|
|
echo "<br><br>\n";
|
|
}
|
|
|
|
$ADD='1000000000'; # go to call times list
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=631111111 delete shift record
|
|
######################
|
|
|
|
if ($ADD==631111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($shift_id) < 2) or ($LOGdelete_call_times < 1) )
|
|
{
|
|
echo "<br>MAJ pas supprimé - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Shift ID must be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="DELETE from vicidial_shifts where shift_id='$shift_id' limit 1;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmtA|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='SHIFTS', event_type='DELETE', record_id='$shift_id', event_code='ADMIN DELETE SHIFT', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>SHIFT DELETION ACHEVES: $shift_id</B>\n";
|
|
echo "<br><br>\n";
|
|
}
|
|
|
|
$ADD='130000000'; # go to shifts list
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=61111111111 delete phone record
|
|
######################
|
|
|
|
if ($ADD==61111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($extension) < 2) or (strlen($server_ip) < 7) or ($CoNfIrM != 'YES') or ($LOGast_delete_phones < 1) )
|
|
{
|
|
echo "<br>TELEPHONE NON SUPPRIME - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Extension be at least 2 characters in length\n";
|
|
echo "<br>IP du serveur be at least 7 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="DELETE from phones where extension='$extension' and server_ip='$server_ip' limit 1;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmtA="UPDATE servers SET rebuild_conf_files='Y' where generate_vicidial_conf='Y' and active_asterisk_server='Y' and server_ip='$server_ip';";
|
|
$rslt=mysql_query($stmtA, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='PHONES', event_type='DELETE', record_id='$extension', event_code='ADMIN DELETE PHONE', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>SUPPRESSION DU TELEPHONE TERMINEE: $extension - $server_ip</B>\n";
|
|
echo "<br><br>\n";
|
|
}
|
|
$ADD='10000000000'; # go to phone list
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=62111111111 delete phone alias record
|
|
######################
|
|
|
|
if ($ADD==62111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($alias_id) < 2) or ($CoNfIrM != 'YES') or ($LOGast_delete_phones < 1) )
|
|
{
|
|
echo "<br>PHONE ALIAS pas supprimé - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Alias ID must be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="DELETE from phones_alias where alias_id='$alias_id' limit 1;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmtA|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='PHONEALIASES', event_type='DELETE', record_id='$alias_id', event_code='ADMIN DELETE PHONE ALIAS', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>PHONE ALIAS DELETION ACCOMPLIES: $alias_id</B>\n";
|
|
echo "<br><br>\n";
|
|
}
|
|
$ADD='12000000000'; # go to phone alias list
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=63111111111 delete group alias record
|
|
######################
|
|
|
|
if ($ADD==63111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($group_alias_id) < 2) or ($CoNfIrM != 'YES') or ($LOGast_delete_phones < 1) )
|
|
{
|
|
echo "<br>GROUPE ALIAS pas supprimé - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Alias Groupe ID must be at least 2 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="DELETE from groups_alias where group_alias_id='$group_alias_id' limit 1;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmtA|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='GROUPALIASES', event_type='DELETE', record_id='$group_alias_id', event_code='ADMIN DELETE GROUP ALIAS', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>GROUPE ALIAS DELETION ACCOMPLIES: $group_alias_id</B>\n";
|
|
echo "<br><br>\n";
|
|
}
|
|
$ADD='13000000000'; # go to group alias list
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=611111111111 delete server record
|
|
######################
|
|
|
|
if ($ADD==611111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($server_id) < 2) or (strlen($server_ip) < 7) or ($CoNfIrM != 'YES') or ($LOGast_delete_phones < 1) )
|
|
{
|
|
echo "<br>SERVEUR NOT DELETED - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>ID du serveur be at least 2 characters in length\n";
|
|
echo "<br>IP du serveur be at least 7 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="DELETE from servers where server_id='$server_id' and server_ip='$server_ip' limit 1;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmtA|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='SERVERS', event_type='DELETE', record_id='$server_id', event_code='ADMIN DELETE SERVER', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>SERVEUR DELETION COMPLETED: $server_id - $server_ip</B>\n";
|
|
echo "<br><br>\n";
|
|
}
|
|
$ADD='100000000000'; # go to server list
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=621111111111 delete vicidial server trunk record in the system
|
|
######################
|
|
|
|
if ($ADD==621111111111)
|
|
{
|
|
if ($LOGmodify_servers==1)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($campaign_id) < 2) or (strlen($server_ip) < 7) )
|
|
{
|
|
echo "<br>TRUNK DU SERVEUR VICIDIAL NON SUPPRIME - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>la campagne doit contenir entre 3 et 8 caractères\n";
|
|
echo "<br>le délai du server_ip doit contenir au moins 7 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br><B>TRUNK DU SERVEUR VICIDIAL SUPPRIME: $campaign_id - $server_ip</B>\n";
|
|
|
|
$stmt="DELETE FROM vicidial_server_trunks where campaign_id='$campaign_id' and server_ip='$server_ip';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='SERVERMalles', event_type='DELETE', record_id='$server_ip', event_code='ADMIN DELETE SERVEUR TRUNK', event_sql=\"$SQL_log\", event_notes='Campagne: $campaign_id';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
$ADD=311111111111; # go to server modification form below
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=631111111111 delete conf template record
|
|
######################
|
|
|
|
if ($ADD==631111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($template_id) < 2) or ($CoNfIrM != 'YES') )
|
|
{
|
|
echo "<br>CONF TEMPLATE pas supprimé - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Template ID être d'au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="UPDATE phones SET template_id='' where template_id='$template_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmt="UPDATE vicidial_server_carriers SET template_id='' where template_id='$template_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmt="UPDATE servers SET rebuild_conf_files='Y' where generate_vicidial_conf='Y' and active_asterisk_server='Y';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmt="DELETE from vicidial_conf_templates where template_id='$template_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CONFTEMPLATES', event_type='DELETE', record_id='$template_id', event_code='ADMIN DELETE CONF TEMPLATE', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>CONF TEMPLATE DELETION ACCOMPLIES: $server_id - $server_ip</B>\n";
|
|
echo "<br><br>\n";
|
|
}
|
|
$ADD='130000000000'; # go to conf template list
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=641111111111 delete carrier record
|
|
######################
|
|
|
|
if ($ADD==641111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($carrier_id) < 2) or ($CoNfIrM != 'YES') )
|
|
{
|
|
echo "<br>CARRIER pas supprimé - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Carrier ID être d'au moins 2 caractères\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="SELECT server_ip from vicidial_server_carriers where carrier_id='$carrier_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$CARRIERserver_ip = $row[0];
|
|
|
|
$stmt="DELETE from vicidial_server_carriers where carrier_id='$carrier_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
$stmt="UPDATE servers SET rebuild_conf_files='Y' where generate_vicidial_conf='Y' and active_asterisk_server='Y' and server_ip='$CARRIERserver_ip';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CARRIERS', event_type='DELETE', record_id='$carrier_id', event_code='ADMIN DELETE CARRIER', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>CARRIER SUPPRESSION ACCOMPLIES: $carrier_id</B>\n";
|
|
echo "<br><br>\n";
|
|
}
|
|
$ADD='140000000000'; # go to carrier list
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=6111111111111 delete conference record
|
|
######################
|
|
|
|
if ($ADD==6111111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($conf_exten) < 2) or (strlen($server_ip) < 7) or ($CoNfIrM != 'YES') or ($LOGast_delete_phones < 1) )
|
|
{
|
|
echo "<br>CONFERENCE NOT DELETED - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Conference be at least 2 characters in length\n";
|
|
echo "<br>IP du serveur be at least 7 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="DELETE from conferences where conf_exten='$conf_exten' and server_ip='$server_ip' limit 1;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CONFERENCES', event_type='DELETE', record_id='$conf_exten', event_code='ADMIN DELETE CONFERENCE', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>CONFERENCE DELETION COMPLETED: $conf_exten - $server_ip</B>\n";
|
|
echo "<br><br>\n";
|
|
}
|
|
$ADD='1000000000000'; # go to conference list
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=61111111111111 delete vicidial conference record
|
|
######################
|
|
|
|
if ($ADD==61111111111111)
|
|
{
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ( (strlen($conf_exten) < 2) or (strlen($server_ip) < 7) or ($CoNfIrM != 'YES') or ($LOGast_delete_phones < 1) )
|
|
{
|
|
echo "<br>VICIDIAL CONFERENCE NOT DELETED - Veuillez retourner en arrière et vérifier les données que vous avez saisies\n";
|
|
echo "<br>Conference be at least 2 characters in length\n";
|
|
echo "<br>IP du serveur be at least 7 characters in length\n";
|
|
}
|
|
else
|
|
{
|
|
$stmt="DELETE from vicidial_conferences where conf_exten='$conf_exten' and server_ip='$server_ip' limit 1;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
### LOG INSERTION Admin Log Table ###
|
|
$SQL_log = "$stmt|";
|
|
$SQL_log = ereg_replace(';','',$SQL_log);
|
|
$SQL_log = addslashes($SQL_log);
|
|
$stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='CONFERENCES', event_type='DELETE', record_id='$conf_exten', event_code='ADMIN DELETE CONFERENCE', event_sql=\"$SQL_log\", event_notes='';";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
|
|
echo "<br><B>VICIDIAL CONFERENCE DELETION COMPLETED: $conf_exten - $server_ip</B>\n";
|
|
echo "<br><br>\n";
|
|
}
|
|
$ADD='10000000000000'; # go to vicidial conference list
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
######################################################################################################
|
|
######################################################################################################
|
|
####### 3 series, record modification forms
|
|
######################################################################################################
|
|
######################################################################################################
|
|
|
|
|
|
|
|
|
|
######################
|
|
# ADD=3 modify user info in the system
|
|
######################
|
|
|
|
if ($ADD==3)
|
|
{
|
|
if ($LOGmodify_users==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT * from vicidial_users where user='$user';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$user_level = $row[4];
|
|
$user_group = $row[5];
|
|
$phone_login = $row[6];
|
|
$phone_pass = $row[7];
|
|
$delete_users = $row[8];
|
|
$delete_user_groups = $row[9];
|
|
$delete_lists = $row[10];
|
|
$delete_campaigns = $row[11];
|
|
$delete_ingroups = $row[12];
|
|
$delete_remote_agents = $row[13];
|
|
$load_leads = $row[14];
|
|
$campaign_detail = $row[15];
|
|
$ast_admin_access = $row[16];
|
|
$ast_delete_phones = $row[17];
|
|
$delete_scripts = $row[18];
|
|
$modify_leads = $row[19];
|
|
$hotkeys_active = $row[20];
|
|
$change_agent_campaign =$row[21];
|
|
$agent_choose_ingroups =$row[22];
|
|
$scheduled_callbacks = $row[24];
|
|
$agentonly_callbacks = $row[25];
|
|
$agentcall_manual = $row[26];
|
|
$vicidial_recording = $row[27];
|
|
$vicidial_transfers = $row[28];
|
|
$delete_filters = $row[29];
|
|
$alter_agent_interface_options =$row[30];
|
|
$closer_default_blended = $row[31];
|
|
$delete_call_times = $row[32];
|
|
$modify_call_times = $row[33];
|
|
$modify_users = $row[34];
|
|
$modify_campaigns = $row[35];
|
|
$modify_lists = $row[36];
|
|
$modify_scripts = $row[37];
|
|
$modify_filters = $row[38];
|
|
$modify_ingroups = $row[39];
|
|
$modify_usergroups = $row[40];
|
|
$modify_remoteagents = $row[41];
|
|
$modify_servers = $row[42];
|
|
$view_reports = $row[43];
|
|
$vicidial_recording_override = $row[44];
|
|
$alter_custdata_override = $row[45];
|
|
$qc_enabled = $row[46];
|
|
$qc_user_level = $row[47];
|
|
$qc_pass = $row[48];
|
|
$qc_finish = $row[49];
|
|
$qc_commit = $row[50];
|
|
$add_timeclock_log = $row[51];
|
|
$modify_timeclock_log = $row[52];
|
|
$delete_timeclock_log = $row[53];
|
|
$alter_custphone_override = $row[54];
|
|
$vdc_agent_api_access = $row[55];
|
|
$modify_inbound_dids = $row[56];
|
|
$delete_inbound_dids = $row[57];
|
|
$active = $row[58];
|
|
$alert_enabled = $row[59];
|
|
$download_lists = $row[60];
|
|
$agent_shift_enforcement_override = $row[61];
|
|
$manager_shift_enforcement_override = $row[62];
|
|
$export_reports = $row[64];
|
|
|
|
if ( ($user_level >= $LOGuser_level) and ($LOGuser_level < 9) )
|
|
{
|
|
echo "<br>Vous n'avez pas les permissions pour modifier cet utilisateur: $row[1]\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<br>MODIFIER UN ENREGISTREMENT D'UTILISATEURS: $row[1]<form action=$PHP_SELF method=POST>\n";
|
|
if ($LOGuser_level > 8)
|
|
{echo "<input type=hidden name=ADD value=4A>\n";}
|
|
else
|
|
{
|
|
if ($LOGalter_agent_interface == "1")
|
|
{echo "<input type=hidden name=ADD value=4B>\n";}
|
|
else
|
|
{echo "<input type=hidden name=ADD value=4>\n";}
|
|
}
|
|
echo "<input type=hidden name=user value=\"$row[1]\">\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Numéro d'utilisateur : </td><td align=left><b>$row[1]</b>$NWB#vicidial_users-user$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Mot de passe:</td><td align=left><input type=text name=pass size=20 maxlength=10 value=\"$row[2]\">$NWB#vicidial_users-pass$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom complet: </td><td align=left><input type=text name=full_name size=30 maxlength=30 value=\"$row[3]\">$NWB#vicidial_users-full_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Niveau de l'utilisateur: </td><td align=left><select size=1 name=user_level>";
|
|
$h=1;
|
|
while ($h<=$LOGuser_level)
|
|
{
|
|
echo "<option>$h</option>";
|
|
$h++;
|
|
}
|
|
echo "<option SELECTED>$row[4]</option></select>$NWB#vicidial_users-user_level$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right><A HREF=\"$PHP_SELF?ADD=311111&user_group=$user_group\">Groupe utilisateur</A>: </td><td align=left><select size=1 name=user_group>\n";
|
|
|
|
$stmt="SELECT user_group,group_name from vicidial_user_groups order by user_group";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$Ugroups_to_print = mysql_num_rows($rslt);
|
|
$Ugroups_list='';
|
|
|
|
$o=0;
|
|
while ($Ugroups_to_print > $o) {
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$Ugroups_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
echo "$Ugroups_list";
|
|
echo "<option SELECTED>$user_group</option>\n";
|
|
echo "</select>$NWB#vicidial_users-user_group$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Login du téléphone: </td><td align=left><input type=text name=phone_login size=20 maxlength=20 value=\"$phone_login\">$NWB#vicidial_users-phone_login$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Mot de passe du téléphone: </td><td align=left><input type=text name=phone_pass size=20 maxlength=20 value=\"$phone_pass\">$NWB#vicidial_users-phone_pass$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Actif: </td><td align=left><select size=1 name=active><option>Y</option><option>N</option><option SELECTED>$active</option></select>$NWB#vicidial_users-active$NWE</td></tr>\n";
|
|
|
|
if ( ($LOGuser_level > 8) or ($LOGalter_agent_interface == "1") )
|
|
{
|
|
echo "<tr bgcolor=#015B91><td colspan=2 align=center><font color=white><B>OPTIONS DE L'INTERFACE DE L'AGENT:</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>L'agent choisit les Ingroups: </td><td align=left><select size=1 name=agent_choose_ingroups><option>0</option><option>1</option><option SELECTED>$agent_choose_ingroups</option></select>$NWB#vicidial_users-agent_choose_ingroups$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Racourccis clavier actifs: </td><td align=left><select size=1 name=hotkeys_active><option>0</option><option>1</option><option SELECTED>$hotkeys_active</option></select>$NWB#vicidial_users-hotkeys_active$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Rappels de service programmés: </td><td align=left><select size=1 name=scheduled_callbacks><option>0</option><option>1</option><option SELECTED>$scheduled_callbacks</option></select>$NWB#vicidial_users-scheduled_callbacks$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Rappels de service d'agent-seulement: </td><td align=left><select size=1 name=agentonly_callbacks><option>0</option><option>1</option><option SELECTED>$agentonly_callbacks</option></select>$NWB#vicidial_users-agentonly_callbacks$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Appel manuel de l'agent: </td><td align=left><select size=1 name=agentcall_manual><option>0</option><option>1</option><option SELECTED>$agentcall_manual</option></select>$NWB#vicidial_users-agentcall_manual$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Enregistrement Vicidial: </td><td align=left><select size=1 name=vicidial_recording><option>0</option><option>1</option><option SELECTED>$vicidial_recording</option></select>$NWB#vicidial_users-vicidial_recording$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Transferts Vicidial: </td><td align=left><select size=1 name=vicidial_transfers><option>0</option><option>1</option><option SELECTED>$vicidial_transfers</option></select>$NWB#vicidial_users-vicidial_transfers$NWE</td></tr>\n";
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Closer Default Blended: </td><td align=left><select size=1 name=closer_default_blended><option>0</option><option>1</option><option SELECTED>$closer_default_blended</option></select>$NWB#vicidial_users-closer_default_blended$NWE</td></tr>\n";
|
|
}
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Ecrasement de l'enregistrment VICIDIAL:</td><td align=left><select size=1 name=vicidial_recording_override><option>DISABLED</option><option>NEVER</option><option>ONDEMAND</option><option>ALLCALLS</option><option>ALLFORCE</option><option SELECTED>$vicidial_recording_override</option></select>$NWB#vicidial_users-vicidial_recording_override$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Modifications des données des clients pour l'agent: </td><td align=left><select size=1 name=alter_custdata_override><option>NOT_ACTIVE</option><option>ALLOW_ALTER</option><option SELECTED>$alter_custdata_override</option></select>$NWB#vicidial_users-alter_custdata_override$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Alter Agent Client Téléphone Override:</td><td align=left><select size=1 name=alter_custphone_override><option>NOT_ACTIVE</option><option>ALLOW_ALTER</option><option SELECTED>$alter_custphone_override</option></select>$NWB#vicidial_users-alter_custphone_override$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Agent de l'exécution Shift Override: </td><td align=left><select size=1 name=agent_shift_enforcement_override><option>DISABLED</option><option>OFF</option><option>START</option><option>ALL</option><option SELECTED>$agent_shift_enforcement_override</option></select>$NWB#vicidial_users-agent_shift_enforcement_override$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Alerte Enabled: </td><td align=left>$alert_enabled $NWB#vicidial_users-alert_enabled$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2>Rangs De Campagne :$NWB#vicidial_users-campaign_ranks$NWE<BR>\n";
|
|
echo "<table border=0>\n";
|
|
echo "$RANKcampaigns_list";
|
|
echo "</table>\n";
|
|
echo "</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2>Groupes entrants: $NWB#vicidial_users-closer_campaigns$NWE<BR>\n";
|
|
echo "<table border=0>\n";
|
|
echo "$RANKgroups_list";
|
|
echo "</table>\n";
|
|
echo "</td></tr>\n";
|
|
if ($SSqc_features_active > 0)
|
|
{
|
|
echo "<tr bgcolor=#9BB9FB><td align=right>QC Enabled:</td><td align=left><select size=1 name=qc_enabled><option>0</option><option>1</option><option SELECTED>$qc_enabled</option></select>$NWB#vicidial_users-qc_enabled$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#9BB9FB><td align=right>QC Niveau de l'utilisateur:</td><td align=left><select size=1 name=qc_user_level><option value=1>1 - Rien Modifier</option><option value=2>2 - Modifier Rien Sauf Etat</option><option value=3>3 - Modifier tous les Domaines</option><option value=4>4 - Vérifiez Premier Cycle de QC</option><option value=5>5 - Voir QC Statistiques</option><option value=6>6 - Possibilité de modifier fini records</option><option value=7>7 - Level Manager</option><option SELECTED>$qc_user_level</option></select>$NWB#vicidial_users-qc_user_level$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#9BB9FB><td align=right>QC Pass:</td><td align=left><select size=1 name=qc_pass><option>0</option><option>1</option><option SELECTED>$qc_pass</option></select>$NWB#vicidial_users-qc_pass$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#9BB9FB><td align=right>QC Finition:</td><td align=left><select size=1 name=qc_finish><option>0</option><option>1</option><option SELECTED>$qc_finish</option></select>$NWB#vicidial_users-qc_finish$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#9BB9FB><td align=right>QC Comité:</td><td align=left><select size=1 name=qc_commit><option>0</option><option>1</option><option SELECTED>$qc_commit</option></select>$NWB#vicidial_users-qc_commit$NWE</td></tr>\n";
|
|
}
|
|
}
|
|
if ($LOGuser_level > 8)
|
|
{
|
|
echo "<tr bgcolor=#015B91><td colspan=2 align=center><font color=white><B>OPTIONS DE L'INTERFACE D'ADMINISTRATION:</td></tr>\n";
|
|
|
|
#9BB9FB
|
|
#B9CBFD
|
|
echo "<tr bgcolor=#9BB9FB><td align=right>Voir les rapports: </td><td align=left><select size=1 name=view_reports><option>0</option><option>1</option><option SELECTED>$view_reports</option></select>$NWB#vicidial_users-view_reports$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Changer les options de l'interface de l'agent: </td><td align=left><select size=1 name=alter_agent_interface_options><option>0</option><option>1</option><option SELECTED>$alter_agent_interface_options</option></select>$NWB#vicidial_users-alter_agent_interface_options$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Modifier les utilisateurs: </td><td align=left><select size=1 name=modify_users><option>0</option><option>1</option><option SELECTED>$modify_users</option></select>$NWB#vicidial_users-modify_sections$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Changer l'agent de campagne: </td><td align=left><select size=1 name=change_agent_campaign><option>0</option><option>1</option><option SELECTED>$change_agent_campaign</option></select>$NWB#vicidial_users-change_agent_campaign$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Supprimer les utilisateurs: </td><td align=left><select size=1 name=delete_users><option>0</option><option>1</option><option SELECTED>$delete_users</option></select>$NWB#vicidial_users-delete_users$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#9BB9FB><td align=right>Modifier les groupes d'utilisateurs: </td><td align=left><select size=1 name=modify_usergroups><option>0</option><option>1</option><option SELECTED>$modify_usergroups</option></select>$NWB#vicidial_users-modify_sections$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#9BB9FB><td align=right>Supprimer les groupes utilisateurs: </td><td align=left><select size=1 name=delete_user_groups><option>0</option><option>1</option><option SELECTED>$delete_user_groups</option></select>$NWB#vicidial_users-delete_user_groups$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Modifier les listes: </td><td align=left><select size=1 name=modify_lists><option>0</option><option>1</option><option SELECTED>$modify_lists</option></select>$NWB#vicidial_users-modify_sections$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Supprimer les listes: </td><td align=left><select size=1 name=delete_lists><option>0</option><option>1</option><option SELECTED>$delete_lists</option></select>$NWB#vicidial_users-delete_lists$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Charger des fiches: </td><td align=left><select size=1 name=load_leads><option>0</option><option>1</option><option SELECTED>$load_leads</option></select>$NWB#vicidial_users-load_leads$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Modifier les fiches: </td><td align=left><select size=1 name=modify_leads><option>0</option><option>1</option><option SELECTED>$modify_leads</option></select>$NWB#vicidial_users-modify_leads$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Listes de téléchargement: </td><td align=left><select size=1 name=download_lists><option>0</option><option>1</option><option SELECTED>$download_lists</option></select>$NWB#vicidial_users-modify_leads$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Rapports d'exportation: </td><td align=left><select size=1 name=export_reports><option>0</option><option>1</option><option SELECTED>$export_reports</option></select>$NWB#vicidial_users-export_reports$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#9BB9FB><td align=right>Modifier les campagnes: </td><td align=left><select size=1 name=modify_campaigns><option>0</option><option>1</option><option SELECTED>$modify_campaigns</option></select>$NWB#vicidial_users-modify_sections$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#9BB9FB><td align=right>Détails de la campagne: </td><td align=left><select size=1 name=campaign_detail><option>0</option><option>1</option><option SELECTED>$campaign_detail</option></select>$NWB#vicidial_users-campaign_detail$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#9BB9FB><td align=right>Supprimer les campagnes: </td><td align=left><select size=1 name=delete_campaigns><option>0</option><option>1</option><option SELECTED>$delete_campaigns</option></select>$NWB#vicidial_users-delete_campaigns$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Modifier les In-Groups: </td><td align=left><select size=1 name=modify_ingroups><option>0</option><option>1</option><option SELECTED>$modify_ingroups</option></select>$NWB#vicidial_users-modify_sections$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Supprimer les in-groups: </td><td align=left><select size=1 name=delete_ingroups><option>0</option><option>1</option><option SELECTED>$delete_ingroups</option></select>$NWB#vicidial_users-delete_ingroups$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Modifier DiDs:</td><td align=left><select size=1 name=modify_inbound_dids><option>0</option><option>1</option><option SELECTED>$modify_inbound_dids</option></select>$NWB#vicidial_users-modify_sections$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Supprimer DiDs:</td><td align=left><select size=1 name=delete_inbound_dids><option>0</option><option>1</option><option SELECTED>$delete_inbound_dids</option></select>$NWB#vicidial_users-delete_ingroups$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#9BB9FB><td align=right>Modifier les agents distants: </td><td align=left><select size=1 name=modify_remoteagents><option>0</option><option>1</option><option SELECTED>$modify_remoteagents</option></select>$NWB#vicidial_users-modify_sections$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#9BB9FB><td align=right>Supprimer les agents distants: </td><td align=left><select size=1 name=delete_remote_agents><option>0</option><option>1</option><option SELECTED>$delete_remote_agents</option></select>$NWB#vicidial_users-delete_remote_agents$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Modifier les scripts: </td><td align=left><select size=1 name=modify_scripts><option>0</option><option>1</option><option SELECTED>$modify_scripts</option></select>$NWB#vicidial_users-modify_sections$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Supprimer les scriptss: </td><td align=left><select size=1 name=delete_scripts><option>0</option><option>1</option><option SELECTED>$delete_scripts</option></select>$NWB#vicidial_users-delete_scripts$NWE</td></tr>\n";
|
|
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
echo "<tr bgcolor=#9BB9FB><td align=right>Modifier les filtres: </td><td align=left><select size=1 name=modify_filters><option>0</option><option>1</option><option SELECTED>$modify_filters</option></select>$NWB#vicidial_users-modify_sections$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#9BB9FB><td align=right>Supprimer le filtres: </td><td align=left><select size=1 name=delete_filters><option>0</option><option>1</option><option SELECTED>$delete_filters</option></select>$NWB#vicidial_users-delete_filters$NWE</td></tr>\n";
|
|
}
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Accès administateur de l'AGC: </td><td align=left><select size=1 name=ast_admin_access><option>0</option><option>1</option><option SELECTED>$ast_admin_access</option></select>$NWB#vicidial_users-ast_admin_access$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Supprimer les téléphones AGC: </td><td align=left><select size=1 name=ast_delete_phones><option>0</option><option>1</option><option SELECTED>$ast_delete_phones</option></select>$NWB#vicidial_users-ast_delete_phones$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Modifier la période d'appelss: </td><td align=left><select size=1 name=modify_call_times><option>0</option><option>1</option><option SELECTED>$modify_call_times</option></select>$NWB#vicidial_users-modify_call_times$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>SupprimerPériodes d'appels: </td><td align=left><select size=1 name=delete_call_times><option>0</option><option>1</option><option SELECTED>$delete_call_times</option></select>$NWB#vicidial_users-delete_call_times$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Modifier les serveurs: </td><td align=left><select size=1 name=modify_servers><option>0</option><option>1</option><option SELECTED>$modify_servers</option></select>$NWB#vicidial_users-modify_sections$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Agent API d'accès:</td><td align=left><select size=1 name=vdc_agent_api_access><option>0</option><option>1</option><option SELECTED>$vdc_agent_api_access</option></select>$NWB#vicidial_users-vdc_agent_api_access$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#9BB9FB><td align=right>Ajouter Log timeclock Record: </td><td align=left><select size=1 name=add_timeclock_log><option>0</option><option>1</option><option SELECTED>$add_timeclock_log</option></select>$NWB#vicidial_users-add_timeclock_log$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#9BB9FB><td align=right>Modifier timeclock journal Record: </td><td align=left><select size=1 name=modify_timeclock_log><option>0</option><option>1</option><option SELECTED>$modify_timeclock_log</option></select>$NWB#vicidial_users-modify_timeclock_log$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#9BB9FB><td align=right>Supprimer timeclock journal Record: </td><td align=left><select size=1 name=delete_timeclock_log><option>0</option><option>1</option><option SELECTED>$delete_timeclock_log</option></select>$NWB#vicidial_users-delete_timeclock_log$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Shift Manager exécution Override: </td><td align=left><select size=1 name=manager_shift_enforcement_override><option>0</option><option>1</option><option SELECTED>$manager_shift_enforcement_override</option></select>$NWB#vicidial_users-manager_shift_enforcement_override$NWE</td></tr>\n";
|
|
|
|
}
|
|
echo "<tr bgcolor=#B9CBFD><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
|
|
if ($LOGdelete_users > 0)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=5&user=$row[1]\">SUPPRIMER CET UTILISATEUR</a>\n";
|
|
}
|
|
echo "<br><br><a href=\"./AST_agent_time_sheet.php?agent=$row[1]\">Cliquez ici pour la feuille de présence de l'utilisateur</a>\n";
|
|
echo "<br><br><a href=\"./user_status.php?user=$row[1]\">Cliquez ici pour les statuts utilisateur</a>\n";
|
|
echo "<br><br><a href=\"./user_stats.php?user=$row[1]\">Cliquez ici pour les statistiques de l'utilisateur</a>\n";
|
|
echo "<br><br><a href=\"./AST_agent_days_detail.php?user=$row[1]&query_date=$REPORTdate&end_date=$REPORTdate&group[]=--ALL--&shift=ALL\">Cliquez ici pour l'utilisateur de plusieurs jours le statut de détails rapport</a>\n";
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=8&user=$row[1]\">Cliquez ici pour les rappels reservés à cet utilisateur</a>\n";
|
|
if ($LOGuser_level >= 9)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=720000000000000&category=UTILISATEURS&stage=$row[1]\">Cliquez ici pour voir Admin chages à ce record</FONT>\n";
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=31 modify campaign info in the system - Detail view
|
|
######################
|
|
|
|
if ( ($LOGcampaign_detail < 1) and ($ADD==31) ) {$ADD=34;} # send to Basic if not allowed
|
|
|
|
if ( ($ADD==31) and ( (!eregi("$campaign_id",$LOGallowed_campaigns)) and (!eregi("ALL-CAMPAIGNS",$LOGallowed_campaigns)) ) )
|
|
{$ADD=30;} # send to not allowed screen if not in vicidial_user_groups allowed_campaigns list
|
|
|
|
if ($ADD==31)
|
|
{
|
|
if ($LOGmodify_campaigns==1)
|
|
{
|
|
if ($stage=='show_dialable')
|
|
{
|
|
$stmt="UPDATE vicidial_campaigns set display_dialable_count='Y' where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
if ($stage=='hide_dialable')
|
|
{
|
|
$stmt="UPDATE vicidial_campaigns set display_dialable_count='N' where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
|
|
$stmt="SELECT enable_vtiger_integration,vtiger_url from system_settings;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$enable_vtiger_integration_LU = $row[0];
|
|
$vtiger_url_LU = $row[1];
|
|
|
|
$stmt="SELECT * from vicidial_campaigns where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$campaign_name = $row[1];
|
|
$dial_status_a = $row[3];
|
|
$dial_status_b = $row[4];
|
|
$dial_status_c = $row[5];
|
|
$dial_status_d = $row[6];
|
|
$dial_status_e = $row[7];
|
|
$lead_order = $row[8];
|
|
$web_form_address = stripslashes($row[11]);
|
|
$allow_closers = $row[12];
|
|
$hopper_level = $row[13];
|
|
$auto_dial_level = $row[14];
|
|
$next_agent_call = $row[15];
|
|
$local_call_time = $row[16];
|
|
$voicemail_ext = $row[17];
|
|
$dial_timeout = $row[18];
|
|
$dial_prefix = $row[19];
|
|
$campaign_cid = $row[20];
|
|
$campaign_vdad_exten = $row[21];
|
|
$campaign_rec_exten = $row[22];
|
|
$campaign_recording = $row[23];
|
|
$campaign_rec_filename = $row[24];
|
|
$script_id = $row[25];
|
|
$get_call_launch = $row[26];
|
|
$am_message_exten = $row[27];
|
|
$amd_send_to_vmx = $row[28];
|
|
$xferconf_a_dtmf = $row[29];
|
|
$xferconf_a_number = $row[30];
|
|
$xferconf_b_dtmf = $row[31];
|
|
$xferconf_b_number = $row[32];
|
|
$alt_number_dialing = $row[33];
|
|
$scheduled_callbacks = $row[34];
|
|
$lead_filter_id = $row[35];
|
|
if ($lead_filter_id=='') {$lead_filter_id='NONE';}
|
|
$drop_call_seconds = $row[36];
|
|
$drop_action = $row[37];
|
|
$safe_harbor_exten = $row[38];
|
|
$display_dialable_count = $row[39];
|
|
$wrapup_seconds = $row[40];
|
|
$wrapup_message = $row[41];
|
|
# $closer_campaigns = $row[42];
|
|
$use_internal_dnc = $row[43];
|
|
$allcalls_delay = $row[44];
|
|
$omit_phone_code = $row[45];
|
|
$dial_method = $row[46];
|
|
$available_only_ratio_tally = $row[47];
|
|
$adaptive_dropped_percentage = $row[48];
|
|
$adaptive_maximum_level = $row[49];
|
|
$adaptive_latest_server_time = $row[50];
|
|
$adaptive_intensity = $row[51];
|
|
$adaptive_dl_diff_target = $row[52];
|
|
$concurrent_transfers = $row[53];
|
|
$auto_alt_dial = $row[54];
|
|
$auto_alt_dial_statuses = $row[55];
|
|
$agent_pause_codes_active = $row[56];
|
|
$campaign_description = $row[57];
|
|
$campaign_changedate = $row[58];
|
|
$campaign_stats_refresh = $row[59];
|
|
$campaign_logindate = $row[60];
|
|
$dial_statuses = $row[61];
|
|
$disable_alter_custdata = $row[62];
|
|
$no_hopper_leads_logins = $row[63];
|
|
$list_order_mix = $row[64];
|
|
$campaign_allow_inbound = $row[65];
|
|
$manual_dial_list_id = $row[66];
|
|
$default_xfer_group = $row[67];
|
|
$queue_priority = $row[69];
|
|
$drop_inbound_group = $row[70];
|
|
$qc_enabled = $row[71];
|
|
$qc_statuses = $row[72];
|
|
$qc_lists = $row[73];
|
|
$qc_shift_id = $row[74];
|
|
$qc_get_record_launch = $row[75];
|
|
$qc_show_recording = $row[76];
|
|
$qc_web_form_address = stripslashes($row[77]);
|
|
$qc_script = $row[78];
|
|
$survey_first_audio_file = $row[79];
|
|
$survey_dtmf_digits = $row[80];
|
|
$survey_ni_digit = $row[81];
|
|
$survey_opt_in_audio_file = $row[82];
|
|
$survey_ni_audio_file = $row[83];
|
|
$survey_method = $row[84];
|
|
$survey_no_response_action = $row[85];
|
|
$survey_ni_status = $row[86];
|
|
$survey_response_digit_map = $row[87];
|
|
$survey_xfer_exten = $row[88];
|
|
$survey_camp_record_dir = $row[89];
|
|
$disable_alter_custphone = $row[90];
|
|
$display_queue_count = $row[91];
|
|
$manual_dial_filter = $row[92];
|
|
$agent_clipboard_copy = $row[93];
|
|
$agent_extended_alt_dial = $row[94];
|
|
$use_campaign_dnc = $row[95];
|
|
$three_way_call_cid = $row[96];
|
|
$three_way_dial_prefix = $row[97];
|
|
$web_form_target = $row[98];
|
|
$vtiger_search_category = $row[99];
|
|
$vtiger_create_call_record = $row[100];
|
|
$vtiger_create_lead_record = $row[101];
|
|
$vtiger_screen_login = $row[102];
|
|
$cpd_amd_action = $row[103];
|
|
$agent_allow_group_alias = $row[104];
|
|
$default_group_alias = $row[105];
|
|
|
|
if (ereg("DISABLED",$list_order_mix))
|
|
{$DEFlistDISABLE = ''; $DEFstatusDISABLED=0;}
|
|
else
|
|
{$DEFlistDISABLE = 'disabled'; $DEFstatusDISABLED=1;}
|
|
|
|
$stmt="SELECT count(*) from vicidial_campaigns_list_mix where campaign_id='$campaign_id' and status='ACTIVE'";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$rowx=mysql_fetch_row($rslt);
|
|
if ($rowx[0] < 1)
|
|
{
|
|
$mixes_list="<option SELECTED value=\"DISABLED\">DISABLED</option>\n";
|
|
$mixname_list["DISABLED"] = "DISABLED";
|
|
}
|
|
else
|
|
{
|
|
##### get list_mix listings for dynamic pulldown
|
|
$stmt="SELECT vcl_id,vcl_name from vicidial_campaigns_list_mix where campaign_id='$campaign_id' and status='ACTIVE' limit 1";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$mixes_to_print = mysql_num_rows($rslt);
|
|
$mixes_list="<option value=\"DISABLED\">DISABLED</option>\n";
|
|
|
|
$o=0;
|
|
while ($mixes_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$mixes_list .= "<option value=\"ACTIVE\">ACTIVE ($rowx[0] - $rowx[1])</option>\n";
|
|
$mixname_list["ACTIVE"] = "$rowx[0] - $rowx[1]";
|
|
$o++;
|
|
}
|
|
}
|
|
|
|
$dial_statuses = preg_replace("/ -$/","",$dial_statuses);
|
|
$Dstatuses = explode(" ", $dial_statuses);
|
|
$Ds_to_print = (count($Dstatuses) -1);
|
|
|
|
$qc_statuses = preg_replace("/^ | -$/","",$qc_statuses);
|
|
$QCstatuses = explode(" ", $qc_statuses);
|
|
$QCs_to_print = (count($QCstatuses) -0);
|
|
|
|
$qc_lists = preg_replace("/^ | -$/","",$qc_lists);
|
|
$QClists = explode(" ", $qc_lists);
|
|
$QCL_to_print = (count($QClists) -0);
|
|
|
|
##### get status listings for dynamic pulldown
|
|
$stmt="SELECT * from vicidial_statuses order by status";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$statuses_to_print = mysql_num_rows($rslt);
|
|
$statuses_list='';
|
|
$dial_statuses_list='';
|
|
$qc_statuses_list='';
|
|
$survey_ni_status_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";
|
|
if ($survey_ni_status == $rowx[0])
|
|
{
|
|
$survey_ni_status_list .= "<option value=\"$rowx[0]\" SELECTED>$rowx[0] - $rowx[1]</option>\n";
|
|
}
|
|
else
|
|
{
|
|
$survey_ni_status_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]))
|
|
{$HKstatuses_list .= "<option value=\"$rowx[0]-----$rowx[1]\">$rowx[0] - $rowx[1]</option>\n";}
|
|
|
|
$qc_statuses_list .= "<input type=\"checkbox\" name=\"qc_statuses[]\" value=\"$rowx[0]\"";
|
|
$p=0;
|
|
while ($p < $QCs_to_print)
|
|
{
|
|
if ($rowx[0] == $QCstatuses[$p])
|
|
{
|
|
$qc_statuses_list .= " CHECKED";
|
|
}
|
|
$p++;
|
|
}
|
|
$qc_statuses_list .= "> $rowx[0] - $rowx[1]<BR>\n";
|
|
|
|
$o++;
|
|
}
|
|
|
|
$stmt="SELECT * from vicidial_campaign_statuses where campaign_id='$campaign_id' order by status";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$Cstatuses_to_print = mysql_num_rows($rslt);
|
|
|
|
$o=0;
|
|
while ($Cstatuses_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]))
|
|
{$HKstatuses_list .= "<option value=\"$rowx[0]-----$rowx[1]\">$rowx[0] - $rowx[1]</option>\n";}
|
|
|
|
$qc_statuses_list .= "<input type=\"checkbox\" name=\"qc_statuses[]\" value=\"$rowx[0]\"";
|
|
$p=0;
|
|
while ($p < $QCs_to_print)
|
|
{
|
|
if ($rowx[0] == $QCstatuses[$p])
|
|
{
|
|
$qc_statuses_list .= " CHECKED";
|
|
}
|
|
$p++;
|
|
}
|
|
$qc_statuses_list .= "> $rowx[0] - $rowx[1]<BR>\n";
|
|
|
|
$o++;
|
|
}
|
|
|
|
##### get in-groups listings for dynamic drop in-group pulldown
|
|
$stmt="SELECT group_id,group_name from vicidial_inbound_groups order by group_id";
|
|
# $stmt="SELECT group_id,group_name from vicidial_inbound_groups where group_id NOT IN('AGENTDIRECT') order by group_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$Dgroups_to_print = mysql_num_rows($rslt);
|
|
$Dgroups_menu='';
|
|
$Dgroups_selected=0;
|
|
$o=0;
|
|
while ($Dgroups_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$Dgroups_menu .= "<option ";
|
|
if ($drop_inbound_group == "$rowx[0]")
|
|
{
|
|
$Dgroups_menu .= "SELECTED ";
|
|
$Dgroups_selected++;
|
|
}
|
|
$Dgroups_menu .= "value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
if ($Dgroups_selected < 1)
|
|
{$Dgroups_menu .= "<option SELECTED value=\"---NONE---\">---NONE---</option>\n";}
|
|
else
|
|
{$Dgroups_menu .= "<option value=\"---NONE---\">---NONE---</option>\n";}
|
|
|
|
|
|
##### get in-groups listings for dynamic transfer group pulldown list menu
|
|
$stmt="SELECT group_id,group_name from vicidial_inbound_groups $xfer_groupsSQL order by group_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$Xgroups_to_print = mysql_num_rows($rslt);
|
|
$Xgroups_menu='';
|
|
$Xgroups_selected=0;
|
|
$o=0;
|
|
while ($Xgroups_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$Xgroups_menu .= "<option ";
|
|
if ($default_xfer_group == "$rowx[0]")
|
|
{
|
|
$Xgroups_menu .= "SELECTED ";
|
|
$Xgroups_selected++;
|
|
}
|
|
$Xgroups_menu .= "value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
if ($Xgroups_selected < 1)
|
|
{$Xgroups_menu .= "<option SELECTED value=\"---NONE---\">---NONE---</option>\n";}
|
|
else
|
|
{$Xgroups_menu .= "<option value=\"---NONE---\">---NONE---</option>\n";}
|
|
|
|
|
|
if ($SUB<1) {$camp_detail_color=$subcamp_color;}
|
|
else {$camp_detail_color=$campaigns_color;}
|
|
if ($SUB==22) {$camp_statuses_color=$subcamp_color;}
|
|
else {$camp_statuses_color=$campaigns_color;}
|
|
if ($SUB==23) {$camp_hotkeys_color=$subcamp_color;}
|
|
else {$camp_hotkeys_color=$campaigns_color;}
|
|
if ($SUB==25) {$camp_recycle_color=$subcamp_color;}
|
|
else {$camp_recycle_color=$campaigns_color;}
|
|
if ($SUB==26) {$camp_autoalt_color=$subcamp_color;}
|
|
else {$camp_autoalt_color=$campaigns_color;}
|
|
if ($SUB==27) {$camp_pause_color=$subcamp_color;}
|
|
else {$camp_pause_color=$campaigns_color;}
|
|
if ($SUB==28) {$camp_qc_color=$subcamp_color;}
|
|
else {$camp_qc_color=$campaigns_color;}
|
|
if ($SUB==29) {$camp_listmix_color=$subcamp_color;}
|
|
else {$camp_listmix_color=$campaigns_color;}
|
|
if ($SUB=='20A') {$camp_survey_color=$subcamp_color;}
|
|
else {$camp_survey_color=$campaigns_color;}
|
|
echo "<TABLE WIDTH=$page_width CELLPADDING=2 CELLSPACING=0><TR BGCOLOR=\"$campaigns_color\">\n";
|
|
echo "<TD><font size=2 color=$subcamp_font face=\"ARIAL,HELVETICA\"> <B>$row[0]</B>: </font></TD>";
|
|
echo "<TD><a href=\"$PHP_SELF?ADD=34&campaign_id=$campaign_id\"><font size=2 color=$subcamp_font face=\"ARIAL,HELVETICA\">Basic </font></a></TD>";
|
|
echo "<TD BGCOLOR=\"$camp_detail_color\"> <a href=\"$PHP_SELF?ADD=31&campaign_id=$campaign_id\"><font size=2 color=$subcamp_font face=\"ARIAL,HELVETICA\">Détail </font></a> </TD>";
|
|
echo "<TD BGCOLOR=\"$camp_statuses_color\"><a href=\"$PHP_SELF?ADD=31&SUB=22&campaign_id=$campaign_id\"><font size=2 color=$subcamp_font face=\"ARIAL,HELVETICA\">Statuts</font></a></TD>";
|
|
echo "<TD BGCOLOR=\"$camp_hotkeys_color\"><a href=\"$PHP_SELF?ADD=31&SUB=23&campaign_id=$campaign_id\"><font size=2 color=$subcamp_font face=\"ARIAL,HELVETICA\">HotKeys</font></a></TD>";
|
|
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
echo "<TD BGCOLOR=\"$camp_recycle_color\"><a href=\"$PHP_SELF?ADD=31&SUB=25&campaign_id=$campaign_id\"><font size=2 color=$subcamp_font face=\"ARIAL,HELVETICA\">Lead Recycling</font></a></TD>";
|
|
echo "<TD BGCOLOR=\"$camp_autoalt_color\"><a href=\"$PHP_SELF?ADD=31&SUB=26&campaign_id=$campaign_id\"><font size=2 color=$subcamp_font face=\"ARIAL,HELVETICA\">Auto Alt Dial</font></a></TD>";
|
|
echo "<TD BGCOLOR=\"$camp_listmix_color\"><a href=\"$PHP_SELF?ADD=31&SUB=29&campaign_id=$campaign_id\"><font size=2 color=$subcamp_font face=\"ARIAL,HELVETICA\">Liste Mix</font></a></TD>";
|
|
echo "<TD BGCOLOR=\"$camp_survey_color\"><a href=\"$PHP_SELF?ADD=31&SUB=20A&campaign_id=$campaign_id\"><font size=2 color=$subcamp_font face=\"ARIAL,HELVETICA\">Sondage</font></a></TD>";
|
|
}
|
|
echo "<TD BGCOLOR=\"$camp_pause_color\"><a href=\"$PHP_SELF?ADD=31&SUB=27&campaign_id=$campaign_id\"><font size=2 color=$subcamp_font face=\"ARIAL,HELVETICA\">Pause Codes</font></a></TD>";
|
|
if ($SSqc_features_active > 0)
|
|
{
|
|
echo "<TD BGCOLOR=\"$camp_qc_color\"><a href=\"$PHP_SELF?ADD=31&SUB=28&campaign_id=$campaign_id\"><font size=2 color=$subcamp_font face=\"ARIAL,HELVETICA\">QC</font></a></TD>";
|
|
}
|
|
if ($SSoutbound_autodial_active < 1)
|
|
{
|
|
echo "<TD></TD><TD></TD><TD></TD><TD></TD>\n";
|
|
}
|
|
echo "<TD> <a href=\"./AST_timeonVDADall.php?RR=4&DB=0&group=$row[0]\"><font size=2 color=$subcamp_font face=\"ARIAL,HELVETICA\">Real-Time</font></a></TD>\n";
|
|
echo "</TR></TABLE>\n";
|
|
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<center>\n";
|
|
|
|
if ($SUB < 1)
|
|
{
|
|
echo "<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=41>\n";
|
|
echo "<input type=hidden name=campaign_id value=\"$campaign_id\">\n";
|
|
echo "<TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>ID de la campagne: </td><td align=left><b>$row[0]</b>$NWB#vicidial_campaigns-campaign_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom de la campagne: </td><td align=left><input type=text name=campaign_name size=40 maxlength=40 value=\"$campaign_name\">$NWB#vicidial_campaigns-campaign_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Description de la campagne: </td><td align=left><input type=text name=campaign_description size=40 maxlength=255 value=\"$campaign_description\">$NWB#vicidial_campaigns-campaign_description$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Campagne Changement Date: </td><td align=left>$campaign_changedate $NWB#vicidial_campaigns-campaign_changedate$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Campagne Login Date: </td><td align=left>$campaign_logindate $NWB#vicidial_campaigns-campaign_logindate$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Actif: </td><td align=left><select size=1 name=active><option>Y</option><option>N</option><option SELECTED>$row[2]</option></select>$NWB#vicidial_campaigns-active$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Extension du parc: </td><td align=left><input type=text name=park_ext size=10 maxlength=10 value=\"$row[9]\"> - Filename: <input type=text name=park_file_name size=10 maxlength=10 value=\"$row[10]\">$NWB#vicidial_campaigns-park_ext$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Formulaire Web: </td><td align=left><input type=text name=web_form_address size=70 maxlength=255 value=\"$web_form_address\">$NWB#vicidial_campaigns-web_form_address$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Formulaire Web Public: </td><td align=left><input type=text name=web_form_target size=25 maxlength=255 value=\"$web_form_target\">$NWB#vicidial_campaigns-web_form_target$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Autoriser les closers: </td><td align=left><select size=1 name=allow_closers><option>Y</option><option>N</option><option SELECTED>$allow_closers</option></select>$NWB#vicidial_campaigns-allow_closers$NWE</td></tr>\n";
|
|
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Permettez d'arrivée et mélangé :</td><td align=left><select size=1 name=campaign_allow_inbound><option>Y</option><option>N</option><option SELECTED>$campaign_allow_inbound</option></select>$NWB#vicidial_campaigns-campaign_allow_inbound$NWE</td></tr>\n";
|
|
|
|
$o=0;
|
|
while ($Ds_to_print > $o)
|
|
{
|
|
$o++;
|
|
$Dstatus = $Dstatuses[$o];
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Statut d'appel$o: </td><td align=left> \n";
|
|
|
|
if ($DEFstatusDISABLED > 0)
|
|
{
|
|
echo "<font color=grey><DEL><b>$Dstatus</b> - $statname_list[$Dstatus] <font size=2>\n";
|
|
echo "REMOVE</DEL></td></tr>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<b>$Dstatus</b> - $statname_list[$Dstatus] <font size=2>\n";
|
|
echo "<a href=\"$PHP_SELF?ADD=68&campaign_id=$campaign_id&status=$Dstatuses[$o]\">SUPPRIMER</a></td></tr>\n";
|
|
}
|
|
}
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Add A Dial Etat: </td><td align=left><select size=1 name=dial_status $DEFlistDISABLE>\n";
|
|
echo "<option value=\"\"> - NONE - </option>\n";
|
|
|
|
echo "$dial_statuses_list";
|
|
echo "</select> \n";
|
|
echo "<input type=submit name=submit value=AJOUTER> $NWB#vicidial_campaigns-dial_status$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Ordre de la liste: </td><td align=left><select size=1 name=lead_order ><option>DOWN</option><option>UP</option><option>DOWN PHONE</option><option>UP PHONE</option><option>DOWN LAST NAME</option><option>UP LAST NAME</option><option>DOWN COUNT</option><option>UP COUNT</option><option>DOWN 2nd NEW</option><option>DOWN 3rd NEW</option><option>DOWN 4th NEW</option><option>DOWN 5th NEW</option><option>DOWN 6th NEW</option><option>UP 2nd NEW</option><option>UP 3rd NEW</option><option>UP 4th NEW</option><option>UP 5th NEW</option><option>UP 6th NEW</option><option>DOWN PHONE 2nd NEW</option><option>DOWN PHONE 3rd NEW</option><option>DOWN PHONE 4th NEW</option><option>DOWN PHONE 5th NEW</option><option>DOWN PHONE 6th NEW</option><option>UP PHONE 2nd NEW</option><option>UP PHONE 3rd NEW</option><option>UP PHONE 4th NEW</option><option>UP PHONE 5th NEW</option><option>UP PHONE 6th NEW</option><option>DOWN LAST NAME 2nd NEW</option><option>DOWN LAST NAME 3rd NEW</option><option>DOWN LAST NAME 4th NEW</option><option>DOWN LAST NAME 5th NEW</option><option>DOWN LAST NAME 6th NEW</option><option>UP LAST NAME 2nd NEW</option><option>UP LAST NAME 3rd NEW</option><option>UP LAST NAME 4th NEW</option><option>UP LAST NAME 5th NEW</option><option>UP LAST NAME 6th NEW</option><option>DOWN COUNT 2nd NEW</option><option>DOWN COUNT 3rd NEW</option><option>DOWN COUNT 4th NEW</option><option>DOWN COUNT 5th NEW</option><option>DOWN COUNT 6th NEW</option><option>UP COUNT 2nd NEW</option><option>UP COUNT 3rd NEW</option><option>UP COUNT 4th NEW</option><option>UP COUNT 5th NEW</option><option>UP COUNT 6th NEW</option><option SELECTED>$lead_order</option></select>$NWB#vicidial_campaigns-lead_order$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right><a href=\"$PHP_SELF?ADD=31&SUB=29&campaign_id=$campaign_id&vcl_id=$list_order_mix\">Liste Mix</a>: </td><td align=left><select size=1 name=list_order_mix>\n";
|
|
echo "$mixes_list";
|
|
if (ereg("DISABLED",$list_order_mix))
|
|
{echo "<option selected value=\"$list_order_mix\">$list_order_mix - $mixname_list[$list_order_mix]</option>\n";}
|
|
else
|
|
{echo "<option selected value=\"ACTIVE\">ACTIVE ($mixname_list[ACTIVE])</option>\n";}
|
|
echo "</select>$NWB#vicidial_campaigns-list_order_mix$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right><a href=\"$PHP_SELF?ADD=31111111&lead_filter_id=$lead_filter_id\">Filtre de la fiche</a>: </td><td align=left><select size=1 name=lead_filter_id>\n";
|
|
echo "$filters_list";
|
|
echo "<option selected value=\"$lead_filter_id\">$lead_filter_id - $filtername_list[$lead_filter_id]</option>\n";
|
|
echo "</select>$NWB#vicidial_campaigns-lead_filter_id$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Niveau du distributeur de fiches: </td><td align=left><select size=1 name=hopper_level><option>1</option><option>5</option><option>10</option><option>20</option><option>50</option><option>100</option><option>200</option><option>500</option><option>700</option><option>1000</option><option>2000</option><option SELECTED>$hopper_level</option></select>$NWB#vicidial_campaigns-hopper_level$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Forcer la réinitialisation du distributeur de fiches: </td><td align=left><select size=1 name=reset_hopper><option>Y</option><option SELECTED>N</option></select>$NWB#vicidial_campaigns-force_reset_hopper$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#BDFFBD><td align=right>Méthode d'appel: </td><td align=left><select size=1 name=dial_method><option >MANUAL</option><option>RATIO</option><option>ADAPT_HARD_LIMIT</option><option>ADAPT_TAPERED</option><option>ADAPT_AVERAGE</option><option>ENTRANT_MAN</option><option SELECTED>$dial_method</option></select>$NWB#vicidial_campaigns-dial_method$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#BDFFBD><td align=right>Niveau de l'appel automatique: </td><td align=left><select size=1 name=auto_dial_level><option >0</option><option>1</option><option>1.1</option><option>1.2</option><option>1.3</option><option>1.4</option><option>1.5</option><option>1.6</option><option>1.7</option><option>1.8</option><option>1.9</option><option>2.0</option><option>2.2</option><option>2.5</option><option>2.7</option><option>3.0</option><option>3.5</option><option>4.0</option><option SELECTED>$auto_dial_level</option></select>(0 = off)$NWB#vicidial_campaigns-auto_dial_level$NWE <input type=checkbox name=dial_level_override value=\"1\">ADAPTER LE DEPASSEMENT</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#BDFFBD><td align=right>Valable seulement pour les contrôles: </td><td align=left><select size=1 name=available_only_ratio_tally><option >Y</option><option>N</option><option SELECTED>$available_only_ratio_tally</option></select>$NWB#vicidial_campaigns-available_only_ratio_tally$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#BDFFBD><td align=right>Pourcentage limite d'abandon: </td><td align=left><select size=1 name=adaptive_dropped_percentage>\n";
|
|
$n=100;
|
|
while ($n>=1)
|
|
{
|
|
echo "<option>$n</option>\n";
|
|
$n--;
|
|
}
|
|
echo "<option SELECTED>$adaptive_dropped_percentage</option></select>% $NWB#vicidial_campaigns-adaptive_dropped_percentage$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#BDFFBD><td align=right>Adaptation maximum du niveau de l'appel: </td><td align=left><input type=text name=adaptive_maximum_level size=6 maxlength=6 value=\"$adaptive_maximum_level\"><i>number only</i> $NWB#vicidial_campaigns-adaptive_maximum_level$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#BDFFBD><td align=right>Heure max du serveur: </td><td align=left><input type=text name=adaptive_latest_server_time size=6 maxlength=4 value=\"$adaptive_latest_server_time\"><i>4 chiffres seulement</i> $NWB#vicidial_campaigns-adaptive_latest_server_time$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#BDFFBD><td align=right>Adapter le modificateur d'intensité: </td><td align=left><select size=1 name=adaptive_intensity>\n";
|
|
$n=40;
|
|
while ($n>=-40)
|
|
{
|
|
$dtl = 'Balanced';
|
|
if ($n<0) {$dtl = 'Less Intense';}
|
|
if ($n>0) {$dtl = 'More Intense';}
|
|
if ($n == $adaptive_intensity)
|
|
{echo "<option SELECTED value=\"$n\">$n - $dtl</option>\n";}
|
|
else
|
|
{echo "<option value=\"$n\">$n - $dtl</option>\n";}
|
|
$n--;
|
|
}
|
|
echo "</select> $NWB#vicidial_campaigns-adaptive_intensity$NWE</td></tr>\n";
|
|
|
|
|
|
|
|
echo "<tr bgcolor=#BDFFBD><td align=right>Différence cible du niveau d'appel: </td><td align=left><select size=1 name=adaptive_dl_diff_target>\n";
|
|
$n=40;
|
|
while ($n>=-40)
|
|
{
|
|
$nabs = abs($n);
|
|
$dtl = 'Balanced';
|
|
if ($n<0) {$dtl = 'Agents Waiting for Calls';}
|
|
if ($n>0) {$dtl = 'Calls Waiting for Agents';}
|
|
if ($n == $adaptive_dl_diff_target)
|
|
{echo "<option SELECTED value=\"$n\">$n --- $nabs $dtl</option>\n";}
|
|
else
|
|
{echo "<option value=\"$n\">$n --- $nabs $dtl</option>\n";}
|
|
$n--;
|
|
}
|
|
echo "</select> $NWB#vicidial_campaigns-adaptive_dl_diff_target$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#BDFFBD><td align=right>Transferts concurents: </td><td align=left><select size=1 name=concurrent_transfers><option >AUTO</option><option>1</option><option>2</option><option>3</option><option>4</option><option>5</option><option>6</option><option>7</option><option>8</option><option>9</option><option>10<option SELECTED>$concurrent_transfers</option></select>$NWB#vicidial_campaigns-concurrent_transfers$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#BDFFBD><td align=right>File d'attente de priorité:</td><td align=left><select size=1 name=queue_priority>\n";
|
|
$n=99;
|
|
while ($n>=-99)
|
|
{
|
|
$dtl = 'Even';
|
|
if ($n<0) {$dtl = 'Lower';}
|
|
if ($n>0) {$dtl = 'Higher';}
|
|
if ($n == $queue_priority)
|
|
{echo "<option SELECTED value=\"$n\">$n - $dtl</option>\n";}
|
|
else
|
|
{echo "<option value=\"$n\">$n - $dtl</option>\n";}
|
|
$n--;
|
|
}
|
|
echo "</select> $NWB#vicidial_campaigns-queue_priority$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Appeler automatiquement le numéro alternatif: </td><td align=left><select size=1 name=auto_alt_dial><option >NONE</option><option>ALT_ONLY</option><option>ADDR3_ONLY</option><option>ALT_AND_ADDR3</option><option>ALT_AND_EXTENDED</option><option>ALT_AND_ADDR3_AND_EXTENDED</option><option>EXTENDED_ONLY</option><option SELECTED>$auto_alt_dial</option></select>$NWB#vicidial_campaigns-auto_alt_dial$NWE</td></tr>\n";
|
|
}
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Appeler l'agent suivant : </td><td align=left><select size=1 name=next_agent_call><option >random</option><option>oldest_call_start</option><option>oldest_call_finish</option><option>overall_user_level</option><option>campaign_rank</option><option>fewest_calls</option><option SELECTED>$next_agent_call</option></select>$NWB#vicidial_campaigns-next_agent_call$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right><a href=\"$PHP_SELF?ADD=311111111&call_time_id=$local_call_time\">Heure d'appel locale: </a></td><td align=left><select size=1 name=local_call_time>\n";
|
|
echo "$call_times_list";
|
|
echo "<option selected value=\"$local_call_time\">$local_call_time - $call_timename_list[$local_call_time]</option>\n";
|
|
echo "</select>$NWB#vicidial_campaigns-local_call_time$NWE</td></tr>\n";
|
|
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Délai de tentative d'appel: </td><td align=left><input type=text name=dial_timeout size=3 maxlength=3 value=\"$dial_timeout\"> <i>in seconds</i>$NWB#vicidial_campaigns-dial_timeout$NWE</td></tr>\n";
|
|
}
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Préfixe de numérotation: </td><td align=left><input type=text name=dial_prefix size=20 maxlength=20 value=\"$dial_prefix\"> <font size=1>for 91NXXNXXXXXX value would be 9, for no dial prefix use X</font>$NWB#vicidial_campaigns-dial_prefix$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Omettre le phone code: </td><td align=left><select size=1 name=omit_phone_code><option>Y</option><option>N</option><option SELECTED>$omit_phone_code</option></select>$NWB#vicidial_campaigns-omit_phone_code$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>CallerID de la campagne: </td><td align=left><input type=text name=campaign_cid size=20 maxlength=20 value=\"$campaign_cid\">$NWB#vicidial_campaigns-campaign_cid$NWE</td></tr>\n";
|
|
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Exten VDAD de la campagne: </td><td align=left><input type=text name=campaign_vdad_exten size=10 maxlength=20 value=\"$campaign_vdad_exten\">$NWB#vicidial_campaigns-campaign_vdad_exten$NWE</td></tr>\n";
|
|
}
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Extension d'enregistrement de la campagne: </td><td align=left><input type=text name=campaign_rec_exten size=10 maxlength=10 value=\"$campaign_rec_exten\">$NWB#vicidial_campaigns-campaign_rec_exten$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Enregistrement de la campagne: </td><td align=left><select size=1 name=campaign_recording><option>NEVER</option><option>ONDEMAND</option><option>ALLCALLS</option><option>ALLFORCE</option><option SELECTED>$campaign_recording</option></select>$NWB#vicidial_campaigns-campaign_recording$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom du fichier d'enregistrement de la campagne: </td><td align=left><input type=text name=campaign_rec_filename size=50 maxlength=50 value=\"$campaign_rec_filename\">$NWB#vicidial_campaigns-campaign_rec_filename$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Délai d'enregistrement: </td><td align=left><input type=text name=allcalls_delay size=3 maxlength=3 value=\"$allcalls_delay\"> <i>in seconds</i>$NWB#vicidial_campaigns-allcalls_delay$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right><a href=\"$PHP_SELF?ADD=3111111&script_id=$script_id\">Script</a>: </td><td align=left><select size=1 name=script_id>\n";
|
|
echo "$scripts_list";
|
|
echo "<option selected value=\"$script_id\">$script_id - $scriptname_list[$script_id]</option>\n";
|
|
echo "</select>$NWB#vicidial_campaigns-campaign_script$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Lancer l'appel: </td><td align=left><select size=1 name=get_call_launch><option selected>NONE</option><option>SCRIPT</option><option>WEBFORM</option><option selected>$get_call_launch</option></select>$NWB#vicidial_campaigns-get_call_launch$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Message de répondeur: </td><td align=left><input type=text name=am_message_exten size=10 maxlength=20 value=\"$am_message_exten\">$NWB#vicidial_campaigns-am_message_exten$NWE</td></tr>\n";
|
|
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>AMD envoyé au VM exten: </td><td align=left><select size=1 name=amd_send_to_vmx><option>Y</option><option>N</option><option SELECTED>$amd_send_to_vmx</option></select>$NWB#vicidial_campaigns-amd_send_to_vmx$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>CPD AMD Action: </td><td align=left><select size=1 name=cpd_amd_action><option>DISABLED</option><option>DISPO</option><option>MESSAGE</option><option SELECTED>$cpd_amd_action</option></select>$NWB#vicidial_campaigns-cpd_amd_action$NWE</td></tr>\n";
|
|
}
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>DTMF Transfert-Conf 1: </td><td align=left><input type=text name=xferconf_a_dtmf size=20 maxlength=50 value=\"$xferconf_a_dtmf\">$NWB#vicidial_campaigns-xferconf_a_dtmf$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>numéro de Transfer-Conf 1: </td><td align=left><input type=text name=xferconf_a_number size=20 maxlength=50 value=\"$xferconf_a_number\">$NWB#vicidial_campaigns-xferconf_a_dtmf$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>DTMF Transfert-Conf 2: </td><td align=left><input type=text name=xferconf_b_dtmf size=20 maxlength=50 value=\"$xferconf_b_dtmf\">$NWB#vicidial_campaigns-xferconf_a_dtmf$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>numéro de Transfer-Conf 2: </td><td align=left><input type=text name=xferconf_b_number size=20 maxlength=50 value=\"$xferconf_b_number\">$NWB#vicidial_campaigns-xferconf_a_dtmf$NWE</td></tr>\n";
|
|
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Appel du numéro alternatif: </td><td align=left><select size=1 name=alt_number_dialing><option>Y</option><option>N</option><option SELECTED>$alt_number_dialing</option></select>$NWB#vicidial_campaigns-alt_number_dialing$NWE</td></tr>\n";
|
|
}
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Rappels de service programmés: </td><td align=left><select size=1 name=scheduled_callbacks><option>Y</option><option>N</option><option SELECTED>$scheduled_callbacks</option></select>$NWB#vicidial_campaigns-scheduled_callbacks$NWE</td></tr>\n";
|
|
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Temps avant abandon de l'appel: </td><td align=left><input type=text name=drop_call_seconds size=5 maxlength=2 value=\"$drop_call_seconds\">$NWB#vicidial_campaigns-drop_call_seconds$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Drop d'action:</td><td align=left><select size=1 name=drop_action><option>HANGUP</option><option>MESSAGE</option><option>VOICEMAIL</option><option>IN_GROUP</option><option SELECTED>$drop_action</option></select>$NWB#vicidial_campaigns-drop_action$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Extension du port sûr: </td><td align=left><input type=text name=safe_harbor_exten size=10 maxlength=20 value=\"$safe_harbor_exten\">$NWB#vicidial_campaigns-safe_harbor_exten$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Boîte vocale: </td><td align=left><input type=text name=voicemail_ext size=10 maxlength=10 value=\"$voicemail_ext\">$NWB#vicidial_campaigns-voicemail_ext$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Drop de transfert du Groupe:</td><td align=left><select size=1 name=drop_inbound_group>";
|
|
echo "$Dgroups_menu";
|
|
echo "</select>$NWB#vicidial_campaigns-drop_inbound_group$NWE</td></tr>\n";
|
|
}
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Temps de conclusion: </td><td align=left><input type=text name=wrapup_seconds size=5 maxlength=3 value=\"$wrapup_seconds\">$NWB#vicidial_campaigns-wrapup_seconds$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Message de conclusion: </td><td align=left><input type=text name=wrapup_message size=40 maxlength=255 value=\"$wrapup_message\">$NWB#vicidial_campaigns-wrapup_message$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Utiliser la liste DNC interne: </td><td align=left><select size=1 name=use_internal_dnc><option>Y</option><option>N</option><option SELECTED>$use_internal_dnc</option></select>$NWB#vicidial_campaigns-use_internal_dnc$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Utilisez la liste de campagne DNC: </td><td align=left><select size=1 name=use_campaign_dnc><option>Y</option><option>N</option><option SELECTED>$use_campaign_dnc</option></select>$NWB#vicidial_campaigns-use_campaign_dnc$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>AgentCodes De PauseActif: </td><td align=left><select size=1 name=agent_pause_codes_active><option>FORCE</option><option>Y</option><option>N</option><option SELECTED>$agent_pause_codes_active</option></select>$NWB#vicidial_campaigns-agent_pause_codes_active$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Campagne Stats Refresh: </td><td align=left><select size=1 name=campaign_stats_refresh><option>Y</option><option>N</option><option SELECTED>$campaign_stats_refresh</option></select>$NWB#vicidial_campaigns-campaign_stats_refresh$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Désactiver la modification des données d'un client</td><td align=left><select size=1 name=disable_alter_custdata><option>Y</option><option>N</option><option SELECTED>$disable_alter_custdata</option></select>$NWB#vicidial_campaigns-disable_alter_custdata$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Désactiver Alter clientèle Téléphone:</td><td align=left><select size=1 name=disable_alter_custphone><option>Y</option><option>N</option><option SELECTED>$disable_alter_custphone</option></select>$NWB#vicidial_campaigns-disable_alter_custphone$NWE</td></tr>\n";
|
|
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Autoriser la connection dans les distributeurs vides: </td><td align=left><select size=1 name=no_hopper_leads_logins><option>Y</option><option>N</option><option SELECTED>$no_hopper_leads_logins</option></select>$NWB#vicidial_campaigns-no_hopper_leads_logins$NWE</td></tr>\n";
|
|
}
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Agent Chef de file d'attente d'affichage:</td><td align=left><select size=1 name=display_queue_count><option>Y</option><option>N</option><option SELECTED>$display_queue_count</option></select>$NWB#vicidial_campaigns-display_queue_count$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Identification Manuelle De Liste De Cadran :</td><td align=left><input type=text name=manual_dial_list_id size=15 maxlength=12 value=\"$manual_dial_list_id\">$NWB#vicidial_campaigns-manual_dial_list_id$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Manuelle Filter:</td><td align=left><select size=1 name=manual_dial_filter><option>NONE</option><option>DNC_ONLY</option><option>CAMPLISTES_ONLY</option><option>DNC_AND_CAMPLISTES</option><option SELECTED>$manual_dial_filter</option></select>$NWB#vicidial_campaigns-manual_dial_filter$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Agent de copie d'écran du Presse-papiers: </td><td align=left><select size=1 name=agent_clipboard_copy><option>NONE</option><option>lead_id</option><option>list_id</option><option>title</option><option>first_name</option><option>middle_initial</option><option>last_name</option><option>phone_code</option><option>phone_number</option><option>address1</option><option>address2</option><option>address3</option><option>city</option><option>state</option><option>province</option><option>postal_code</option><option>country_code</option><option>alt_phone</option><option>comments</option><option>date_of_birth</option><option>email</option><option>gender</option><option>gmt_offset_now</option><option>security_phrase</option><option>vendor_lead_code</option><option SELECTED>$agent_clipboard_copy</option></select>$NWB#vicidial_campaigns-agent_clipboard_copy$NWE</td></tr>\n";
|
|
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Agent Screen Extended Alt Dial: </td><td align=left><select size=1 name=agent_extended_alt_dial><option>Y</option><option>N</option><option SELECTED>$agent_extended_alt_dial</option></select>$NWB#vicidial_campaigns-agent_extended_alt_dial$NWE</td></tr>\n";
|
|
}
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>3-Way Outbound Call CallerID: </td><td align=left><select size=1 name=three_way_call_cid><option>CAMPAIGN</option><option>CUSTOMER</option><option>AGENT_PHONE</option><option>AGENT_CHOOSE</option><option SELECTED>$three_way_call_cid</option></select>$NWB#vicidial_campaigns-three_way_call_cid$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>3-Way Call Préfixe de numérotation: </td><td align=left><input type=text name=three_way_dial_prefix size=15 maxlength=20 value=\"$three_way_dial_prefix\">$NWB#vicidial_campaigns-three_way_dial_prefix$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Groupe Alias permis: </td><td align=left><select size=1 name=agent_allow_group_alias><option>Y</option><option>N</option><option SELECTED>$agent_allow_group_alias</option></select>$NWB#vicidial_campaigns-agent_allow_group_alias$NWE</td></tr>\n";
|
|
|
|
if ($agent_allow_group_alias == 'Y')
|
|
{
|
|
##### get groups_alias listings for dynamic default group alias pulldown list menu
|
|
$stmt="SELECT group_alias_id,group_alias_name from groups_alias where active='Y' order by group_alias_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$group_alias_to_print = mysql_num_rows($rslt);
|
|
$group_alias_menu='';
|
|
$group_alias_selected=0;
|
|
$o=0;
|
|
while ($group_alias_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$group_alias_menu .= "<option ";
|
|
if ($default_group_alias == "$rowx[0]")
|
|
{
|
|
$group_alias_menu .= "SELECTED ";
|
|
$group_alias_selected++;
|
|
}
|
|
$group_alias_menu .= "value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Groupe par défaut Alias: </td><td align=left><select size=1 name=default_group_alias>";
|
|
echo "<option value=\"\">NONE</option>";
|
|
echo "$group_alias_menu";
|
|
echo "</select>$NWB#vicidial_campaigns-default_group_alias$NWE</td></tr>\n";
|
|
}
|
|
|
|
if ($SSenable_vtiger_integration > 0)
|
|
{
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Vtiger Recherche Catégorie: </td><td align=left><select size=1 name=vtiger_search_category><option>LEAD</option><option>ACCOUNT</option><option>VENDOR</option><option>LEAD_ACCOUNT</option><option>LEAD_ACCOUNT_VENDOR</option><option>ACCTID</option><option>ACCTID_ACCOUNT</option><option>ACCTID_ACCOUNT_LEAD_VENDOR</option><option SELECTED>$vtiger_search_category</option></select>$NWB#vicidial_campaigns-vtiger_search_category$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Vtiger Créer Enregistrement d'appel: </td><td align=left><select size=1 name=vtiger_create_call_record><option>Y</option><option>N</option><option SELECTED>$vtiger_create_call_record</option></select>$NWB#vicidial_campaigns-vtiger_create_call_record$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Vtiger Créer Lead Enregistrement: </td><td align=left><select size=1 name=vtiger_create_lead_record><option>Y</option><option>N</option><option SELECTED>$vtiger_create_lead_record</option></select>$NWB#vicidial_campaigns-vtiger_create_lead_record$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Vtiger Screen Login: </td><td align=left><select size=1 name=vtiger_screen_login><option>Y</option><option>N</option><option SELECTED>$vtiger_screen_login</option></select>$NWB#vicidial_campaigns-vtiger_screen_login$NWE</td></tr>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<input type=hidden name=vtiger_search_category value=\"$vtiger_search_category\">\n";
|
|
echo "<input type=hidden name=vtiger_create_call_record value=\"$vtiger_create_call_record\">\n";
|
|
echo "<input type=hidden name=vtiger_create_lead_record value=\"$vtiger_create_lead_record\">\n";
|
|
echo "<input type=hidden name=vtiger_screen_login value=\"$vtiger_screen_login\">\n";
|
|
}
|
|
|
|
if ($campaign_allow_inbound == 'Y')
|
|
{
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Groupes entrants autorisés: <BR>";
|
|
echo " $NWB#vicidial_campaigns-closer_campaigns$NWE</td><td align=left>\n";
|
|
echo "$groups_list";
|
|
echo "</td></tr>\n";
|
|
}
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Groupe De Transfert De Défaut :</td><td align=left><select size=1 name=default_xfer_group>";
|
|
echo "$Xgroups_menu";
|
|
echo "</select>$NWB#vicidial_campaigns-default_xfer_group$NWE</td></tr>\n";
|
|
|
|
if ($allow_closers == 'Y')
|
|
{
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Groupes Laissés De Transfert :<BR>";
|
|
echo " $NWB#vicidial_campaigns-xfer_groups$NWE</td><td align=left>\n";
|
|
echo "$XFERgroups_list";
|
|
echo "</td></tr>\n";
|
|
}
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center></FORM>\n";
|
|
|
|
echo "<center>\n";
|
|
|
|
echo "<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=41>\n";
|
|
echo "<input type=hidden name=DB value=$DB>\n";
|
|
echo "<input type=hidden name=stage value=list_activation>\n";
|
|
echo "<input type=hidden name=campaign_id value=\"$campaign_id\">\n";
|
|
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
echo "<br><b>LISTES DANS CETTE CAMPAGNE: $NWB#vicidial_campaign_lists$NWE</b>\n";
|
|
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$LISTlink='stage=LISTIDDOWN';
|
|
$TALLYlink='stage=TALLYDOWN';
|
|
$ACTIVElink='stage=ACTIVEDOWN';
|
|
$CAMPAIGNlink='stage=CAMPAIGNDOWN';
|
|
$CALLDATElink='stage=CALLDATEDOWN';
|
|
$SQLorder='order by list_id';
|
|
if (eregi("LISTIDUP",$stage)) {$SQLorder='order by list_id asc'; $LISTlink='stage=LISTIDDOWN';}
|
|
if (eregi("LISTIDDOWN",$stage)) {$SQLorder='order by list_id desc'; $LISTlink='stage=LISTIDUP';}
|
|
if (eregi("TALLYUP",$stage)) {$SQLorder='order by tally asc'; $TALLYlink='stage=TALLYDOWN';}
|
|
if (eregi("TALLYDOWN",$stage)) {$SQLorder='order by tally desc'; $TALLYlink='stage=TALLYUP';}
|
|
if (eregi("ACTIVEUP",$stage)) {$SQLorder='order by active asc'; $ACTIVElink='stage=ACTIVEDOWN';}
|
|
if (eregi("ACTIVEDOWN",$stage)) {$SQLorder='order by active desc'; $ACTIVElink='stage=ACTIVEUP';}
|
|
if (eregi("CAMPAIGNUP",$stage)) {$SQLorder='order by campaign_id asc'; $CAMPAIGNlink='stage=CAMPAIGNDOWN';}
|
|
if (eregi("CAMPAIGNDOWN",$stage)) {$SQLorder='order by campaign_id desc'; $CAMPAIGNlink='stage=CAMPAIGNUP';}
|
|
if (eregi("CALLDATEUP",$stage)) {$SQLorder='order by list_lastcalldate asc'; $CALLDATElink='stage=CALLDATEDOWN';}
|
|
if (eregi("CALLDATEDOWN",$stage)) {$SQLorder='order by list_lastcalldate desc'; $CALLDATElink='stage=CALLDATEUP';}
|
|
$stmt="SELECT vls.list_id,list_name,list_description,count(*) as tally,active,list_lastcalldate,campaign_id from vicidial_lists vls,vicidial_list vl where vls.list_id=vl.list_id and campaign_id='$campaign_id' group by list_id $SQLorder";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$lists_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<TR BGCOLOR=BLACK>";
|
|
echo "<TD><a href=\"$PHP_SELF?ADD=31&campaign_id=$campaign_id&$LISTlink\"><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>ID DE LA LISTE</B></a></TD>";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>NOM DE LA LISTE</B></TD>";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>DESCRIPTION</B></TD>\n";
|
|
echo "<TD><a href=\"$PHP_SELF?ADD=31&campaign_id=$campaign_id&$TALLYlink\"><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>ABOUTIT COUNT</B></a></TD>\n";
|
|
echo "<TD COLSPAN=2><a href=\"$PHP_SELF?ADD=31&campaign_id=$campaign_id&$ACTIVElink\"><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>ACTIF</B></a></TD>";
|
|
echo "<TD><a href=\"$PHP_SELF?ADD=31&campaign_id=$campaign_id&$CALLDATElink\"><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>LAST CALL DATE</B></a></TD>";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>MODIFIER</TD>\n";
|
|
echo "</TR>\n";
|
|
|
|
$o=0;
|
|
while ($lists_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=311&list_id=$row[0]\">$row[0]</a></td>";
|
|
echo "<td><font size=1> $row[1]</td>";
|
|
echo "<td><font size=1> $row[2]</td>";
|
|
echo "<td><font size=1> $row[3]</td>";
|
|
echo "<td><font size=1> $row[4]</td>";
|
|
echo "<td>";
|
|
|
|
if (ereg('Y',$row[4]))
|
|
{
|
|
$active_lists++;
|
|
$camp_lists .= "'$row[0]',";
|
|
echo "<input type=\"checkbox\" name=\"list_active_change[]\" value=\"$row[0]\" CHECKED>";
|
|
}
|
|
else
|
|
{
|
|
$inactive_lists++;
|
|
echo "<input type=\"checkbox\" name=\"list_active_change[]\" value=\"$row[0]\"";
|
|
}
|
|
|
|
echo "</td>";
|
|
echo "<td><font size=1> $row[5]</td>";
|
|
echo "<td><font size=1><a href=\"$PHP_SELF?ADD=311&list_id=$row[0]\">MODIFIER</a></td></tr>\n";
|
|
|
|
$o++;
|
|
}
|
|
|
|
echo "<TR><TD COLSPAN=7 ALIGN=CENTER><input type=submit value=\"VALIDER ACTIVE LISTE DES CHANGEMENTS\"></TD></TR>\n";
|
|
echo "</TABLE></center><BR></FORM>\n";
|
|
|
|
echo "<center><b>\n";
|
|
|
|
$filterSQL = $filtersql_list[$lead_filter_id];
|
|
$filterSQL = eregi_replace("^and|and$|^or|or$","",$filterSQL);
|
|
if (strlen($filterSQL)>4)
|
|
{$fSQL = "and $filterSQL";}
|
|
else
|
|
{$fSQL = '';}
|
|
|
|
$camp_lists = eregi_replace(".$","",$camp_lists);
|
|
echo "Cette campagne a $active_lists listes actives et $inactive_lists listes inactives<br><br>\n";
|
|
|
|
if ($display_dialable_count == 'Y')
|
|
{
|
|
### call function to calculate and print dialable leads
|
|
dialable_leads($DB,$link,$local_call_time,$dial_statuses,$camp_lists,$fSQL);
|
|
echo " - <font size=1><a href=\"$PHP_SELF?ADD=31&campaign_id=$campaign_id&stage=hide_dialable\">CACHER</a></font><BR><BR>";
|
|
}
|
|
else
|
|
{
|
|
echo "<a href=\"$PHP_SELF?ADD=73&campaign_id=$campaign_id\" target=\"_blank\">Popup Dialable Leads Count</a>";
|
|
echo " - <font size=1><a href=\"$PHP_SELF?ADD=31&campaign_id=$campaign_id&stage=show_dialable\">MONTRER</a></font><BR><BR>";
|
|
}
|
|
|
|
$stmt="SELECT count(*) FROM vicidial_hopper where campaign_id='$campaign_id' and status IN('READY')";
|
|
if ($DB) {echo "$stmt\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$hopper_leads = "$rowx[0]";
|
|
|
|
echo "Cette campagne a $hopper_leads fiches dans le distributeur de fiches<br><br>\n";
|
|
echo "<a href=\"./AST_VICIDIAL_hopperlist.php?group=$campaign_id\">Cliquez ici pour voir quelles fiches sont dans le distributeur à l'instant</a><br><br>\n";
|
|
echo "<a href=\"./AST_VDADstats.php?group=$campaign_id\">Cliquez ici pour voir une VDAD rapport de cette campagne</a><BR><BR>\n";
|
|
}
|
|
echo "<a href=\"$PHP_SELF?ADD=81&campaign_id=$campaign_id\">Cliquez ici pour voir les rappels réservés de cette campagne</a><BR><BR>\n";
|
|
if ($LOGuser_level >= 9)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=720000000000000&category=CAMPAIGNS&stage=$campaign_id\">Cliquez ici pour voir Admin chages à cette campagne</FONT>\n";
|
|
}
|
|
echo "</b></center>\n";
|
|
}
|
|
|
|
|
|
##### CAMPAIGN CUSTOM STATUSES #####
|
|
if ($SUB==22)
|
|
{
|
|
|
|
##### get status category listings for dynamic pulldown
|
|
$stmt="SELECT vsc_id,vsc_name from vicidial_status_categories order by vsc_id desc";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$cats_to_print = mysql_num_rows($rslt);
|
|
$cats_list="";
|
|
|
|
$o=0;
|
|
while ($cats_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$cats_list .= "<option value=\"$rowx[0]\">$rowx[0] - " . substr($rowx[1],0,20) . "</option>\n";
|
|
$catsname_list["$rowx[0]"] = substr($rowx[1],0,20);
|
|
$o++;
|
|
}
|
|
|
|
|
|
echo "<center>\n";
|
|
echo "<br><b>STATUTS PERSONNALISES DANS CETTE CAMPAGNE: $NWB#vicidial_campaign_statuses$NWE</b><br>\n";
|
|
echo "<TABLE width=500 cellspacing=3>\n";
|
|
echo "<tr><td>ETAT</td><td>DESCRIPTION</td><td>SELECTIONABLE</td><td>RÉPONSE HUMAINE</td><td>SUPPRIMER</td></tr>\n";
|
|
|
|
$stmt="SELECT * from vicidial_campaign_statuses where campaign_id='$campaign_id'";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$statuses_to_print = mysql_num_rows($rslt);
|
|
$o=0;
|
|
while ($statuses_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$AScategory = $rowx[5];
|
|
$o++;
|
|
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
|
|
echo "<tr $bgcolor><td><form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=42>\n";
|
|
echo "<input type=hidden name=stage value=modify>\n";
|
|
echo "<input type=hidden name=status value=\"$rowx[0]\">\n";
|
|
echo "<input type=hidden name=campaign_id value=\"$campaign_id\">\n";
|
|
echo "<font size=2><B>$rowx[0]</B></td>\n";
|
|
echo "<td><input type=text name=status_name size=20 maxlength=30 value=\"$rowx[1]\"></td>\n";
|
|
echo "<td><select size=1 name=selectable><option>Y</option><option>N</option><option selected>$rowx[2]</option></select></td>\n";
|
|
echo "<td><select size=1 name=human_answered><option>Y</option><option>N</option><option selected>$rowx[4]</option></select></td>\n";
|
|
echo "<td>\n";
|
|
echo "<select size=1 name=category>\n";
|
|
echo "$cats_list";
|
|
echo "<option selected value=\"$AScategory\">$AScategory - $catsname_list[$AScategory]</option>\n";
|
|
echo "</select>\n";
|
|
echo "</td>\n";
|
|
echo "<td align=center nowrap><font size=1><input type=submit name=submit value=MODIFY> \n";
|
|
echo " \n";
|
|
echo "<a href=\"$PHP_SELF?ADD=42&campaign_id=$campaign_id&status=$rowx[0]&stage=delete\">SUPPRIMER</a>\n";
|
|
echo "</form></td></tr>\n";
|
|
}
|
|
|
|
echo "</table>\n";
|
|
|
|
echo "<br>AJOUTER UN NOUVEAU STATUT DE CAMPAGNE PERSONNALISE<BR><form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=22>\n";
|
|
echo "<input type=hidden name=campaign_id value=\"$campaign_id\">\n";
|
|
echo "Etat: <input type=text name=status size=10 maxlength=8> \n";
|
|
echo "Description: <input type=text name=status_name size=20 maxlength=30> \n";
|
|
echo "Selectionnable: <select size=1 name=selectable><option>Y</option><option>N</option></select> \n";
|
|
echo "Réponse de l'homme: <select size=1 name=human_answered><option>Y</option><option>N</option></select> \n";
|
|
echo "Catégorie :\n";
|
|
echo "<select size=1 name=category>\n";
|
|
echo "$cats_list";
|
|
echo "<option selected value=\"$AScategory\">$AScategory - $catsname_list[$AScategory]</option>\n";
|
|
echo "</select> <BR>\n";
|
|
echo "<input type=submit name=submit value=AJOUTER><BR>\n";
|
|
|
|
echo "</FORM><br>\n";
|
|
}
|
|
|
|
##### CAMPAIGN HOTKEYS #####
|
|
if ($SUB==23)
|
|
{
|
|
echo "<br><b>PERSONNALISER LES RACCOURCIS CLAVIER DE CETTE CAMPAGNE: $NWB#vicidial_campaign_hotkeys$NWE</b><br>\n";
|
|
echo "<TABLE width=400 cellspacing=3>\n";
|
|
echo "<tr><td>RACCOURCI CLAVIER</td><td>ETAT</td><td>DESCRIPTION</td><td>SUPPRIMER</td></tr>\n";
|
|
|
|
$stmt="SELECT * from vicidial_campaign_hotkeys where campaign_id='$campaign_id' order by hotkey";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$statuses_to_print = mysql_num_rows($rslt);
|
|
$o=0;
|
|
while ($statuses_to_print > $o) {
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$o++;
|
|
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
|
|
echo "<tr $bgcolor><td><font size=1>$rowx[1]</td><td><font size=1>$rowx[0]</td><td><font size=1>$rowx[2]</td><td><font size=1><a href=\"$PHP_SELF?ADD=43&campaign_id=$campaign_id&status=$rowx[0]&hotkey=$rowx[1]&action=DELETE\">SUPPRIMER</a></td></tr>\n";
|
|
|
|
}
|
|
|
|
echo "</table>\n";
|
|
|
|
echo "<br>AJOUTER UN NOUVEAU RACCOURCI CLAVIER PERSONNALISE<BR><form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=23>\n";
|
|
echo "<input type=hidden name=selectable value=Y>\n";
|
|
echo "<input type=hidden name=campaign_id value=\"$campaign_id\">\n";
|
|
echo "Hotkey: <select size=1 name=hotkey>\n";
|
|
echo "<option>1</option>\n";
|
|
echo "<option>2</option>\n";
|
|
echo "<option>3</option>\n";
|
|
echo "<option>4</option>\n";
|
|
echo "<option>5</option>\n";
|
|
echo "<option>6</option>\n";
|
|
echo "<option>7</option>\n";
|
|
echo "<option>8</option>\n";
|
|
echo "<option>9</option>\n";
|
|
echo "</select> \n";
|
|
echo "Etat: <select size=1 name=HKstatus>\n";
|
|
echo "$HKstatuses_list\n";
|
|
echo "<option value=\"ALTPH2-----Alternate Phone Hot Dial\">ALTPH2 - Alternate Phone Hot Dial</option>\n";
|
|
echo "<option value=\"ADDR3-----Address3 Hot Dial\">ADDR3 - Address3 Hot Dial</option>\n";
|
|
echo "</select> \n";
|
|
echo "<input type=submit name=submit value=AJOUTER><BR>\n";
|
|
echo "</form><BR>\n";
|
|
}
|
|
|
|
##### CAMPAIGN LEAD RECYCLING #####
|
|
if ($SUB==25)
|
|
{
|
|
### display counts on leads that have hit the limit in this campaign
|
|
$stmt="SELECT list_id,active,list_name from vicidial_lists where campaign_id='$campaign_id'";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$lists_to_print = mysql_num_rows($rslt);
|
|
$camp_lists='';
|
|
$o=0;
|
|
while ($lists_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
if (ereg("Y", $rowx[1])) {$camp_lists .= "'$rowx[0]',";}
|
|
$o++;
|
|
}
|
|
$camp_lists = eregi_replace(".$","",$camp_lists);
|
|
|
|
$stmt="SELECT * from vicidial_lead_recycle where campaign_id='$campaign_id' order by status";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$recycle_to_print = mysql_num_rows($rslt);
|
|
$o=0;
|
|
while ($recycle_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$RECYCLE_status[$o] = $rowx[2];
|
|
$RECYCLE_delay[$o] = $rowx[3];
|
|
$RECYCLE_attempt[$o] = $rowx[4];
|
|
$RECYCLE_active[$o] = $rowx[5];
|
|
$RECYCLE_count[$o] = "'Y','Y1','Y2','Y3','Y4','Y5','Y6','Y7','Y8','Y9','Y10'";
|
|
if ($RECYCLE_attempt[$o]==1) {$RECYCLE_count[$o] = "'Y1','Y2','Y3','Y4','Y5','Y6','Y7','Y8','Y9','Y10'";}
|
|
if ($RECYCLE_attempt[$o]==2) {$RECYCLE_count[$o] = "'Y2','Y3','Y4','Y5','Y6','Y7','Y8','Y9','Y10'";}
|
|
if ($RECYCLE_attempt[$o]==3) {$RECYCLE_count[$o] = "'Y3','Y4','Y5','Y6','Y7','Y8','Y9','Y10'";}
|
|
if ($RECYCLE_attempt[$o]==4) {$RECYCLE_count[$o] = "'Y4','Y5','Y6','Y7','Y8','Y9','Y10'";}
|
|
if ($RECYCLE_attempt[$o]==5) {$RECYCLE_count[$o] = "'Y5','Y6','Y7','Y8','Y9','Y10'";}
|
|
if ($RECYCLE_attempt[$o]==6) {$RECYCLE_count[$o] = "'Y6','Y7','Y8','Y9','Y10'";}
|
|
if ($RECYCLE_attempt[$o]==7) {$RECYCLE_count[$o] = "'Y7','Y8','Y9','Y10'";}
|
|
if ($RECYCLE_attempt[$o]==8) {$RECYCLE_count[$o] = "'Y8','Y9','Y10'";}
|
|
if ($RECYCLE_attempt[$o]==9) {$RECYCLE_count[$o] = "'Y9','Y10'";}
|
|
if ($RECYCLE_attempt[$o]>9) {$RECYCLE_count[$o] = "'Y10'";}
|
|
$o++;
|
|
}
|
|
$o=0;
|
|
|
|
echo "<br><br><b>FICHES EN RECYCLAGES DANS CETTE CAMPAGNE: $NWB#vicidial_lead_recycle$NWE</b><br>\n";
|
|
echo "<TABLE width=700 cellspacing=3>\n";
|
|
echo "<tr><td>ETAT</td><td>DELAI DE TENTATIVE</td><td>NOMBRE MAX DE TENTATIVES</td><td>LIMITE AU FILS</td><td>ACTIF</td><td> </td><td>SUPPRIMER</td></tr>\n";
|
|
|
|
while ($recycle_to_print > $o)
|
|
{
|
|
$recycle_limit=0;
|
|
if (strlen($camp_lists) > 2)
|
|
{
|
|
$stmt="SELECT count(*) from vicidial_list where status='$RECYCLE_status[$o]' and list_id IN($camp_lists) and called_since_last_reset IN($RECYCLE_count[$o]);";
|
|
if ($DB) {echo "|$stmt|\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
$counts_to_print = mysql_num_rows($rslt);
|
|
if ($counts_to_print > 0)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$recycle_limit = $rowx[0];
|
|
}
|
|
}
|
|
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
|
|
echo "<tr $bgcolor><td><font size=2> $RECYCLE_status[$o]<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=status value=\"$RECYCLE_status[$o]\">\n";
|
|
echo "<input type=hidden name=campaign_id value=\"$campaign_id\">\n";
|
|
echo "<input type=hidden name=ADD value=45></td>\n";
|
|
echo "<td><font size=1><input type=text size=7 maxlength=5 name=attempt_delay value=\"$RECYCLE_delay[$o]\"></td>\n";
|
|
echo "<td><font size=1><input type=text size=5 maxlength=3 name=attempt_maximum value=\"$RECYCLE_attempt[$o]\"></td>\n";
|
|
echo "<td align=right><font size=2>$recycle_limit </td>\n";
|
|
echo "<td><select size=1 name=active><option>Y</option><option>N</option><option SELECTED>$RECYCLE_active[$o]</option></select></td>\n";
|
|
echo "<td><font size=1><input type=submit name=submit value=MODIFY></form></td>\n";
|
|
echo "<td><font size=1><a href=\"$PHP_SELF?ADD=65&campaign_id=$campaign_id&status=$RECYCLE_status[$o]\">SUPPRIMER</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</table>\n";
|
|
|
|
echo "<br>AJOUTER UN NOUVEAU RECYCLAGE DE FICHES DE LA CAMAPGNE<BR><form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=25>\n";
|
|
echo "<input type=hidden name=active value=\"N\">\n";
|
|
echo "<input type=hidden name=campaign_id value=\"$campaign_id\">\n";
|
|
echo "Etat: <select size=1 name=status>\n";
|
|
echo "$LRstatuses_list\n";
|
|
echo "</select> \n";
|
|
echo "Délai d'attente: <input type=text size=7 maxlength=5 name=attempt_delay>\n";
|
|
echo "Nombre max de tentatives: <input type=text size=5 maxlength=3 name=attempt_maximum>\n";
|
|
echo "<input type=submit name=submit value=AJOUTER><BR>\n";
|
|
|
|
echo "</FORM><br>\n";
|
|
echo "<br>\n";
|
|
echo "* Lead compte active des listes de prises dans la campagne ne.\n";
|
|
}
|
|
|
|
##### CAMPAIGN AUTO-ALT-NUMBER DIALING #####
|
|
if ($SUB==26)
|
|
{
|
|
echo "<br><br><b>APPEL AUTOMATIQUE DU NUMERO ALTERNATIF POUR CETTE CAMPAGNE: $NWB#vicidial_auto_alt_dial_statuses$NWE</b><br>\n";
|
|
echo "<TABLE width=500 cellspacing=3>\n";
|
|
echo "<tr><td>STATUSES</td><td>SUPPRIMER</td></tr>\n";
|
|
|
|
$auto_alt_dial_statuses = preg_replace("/ -$/","",$auto_alt_dial_statuses);
|
|
$AADstatuses = explode(" ", $auto_alt_dial_statuses);
|
|
$AADs_to_print = (count($AADstatuses) -1);
|
|
|
|
$o=0;
|
|
while ($AADs_to_print > $o)
|
|
{
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
$o++;
|
|
|
|
echo "<tr $bgcolor><td><font size=1>$AADstatuses[$o]</td>\n";
|
|
echo "<td><font size=1><a href=\"$PHP_SELF?ADD=66&campaign_id=$campaign_id&status=$AADstatuses[$o]\">SUPPRIMER</a></td></tr>\n";
|
|
}
|
|
|
|
echo "</table>\n";
|
|
|
|
echo "<br>AJOUTER UN NOUVEAU STATUT D'APPEL AUTOMATIQUE DU NUMERO ALTERNATIF<BR><form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=26>\n";
|
|
echo "<input type=hidden name=campaign_id value=\"$campaign_id\">\n";
|
|
echo "Etat: <select size=1 name=status>\n";
|
|
echo "$LRstatuses_list\n";
|
|
echo "</select> \n";
|
|
echo "<input type=submit name=submit value=AJOUTER><BR>\n";
|
|
|
|
echo "</FORM><br>\n";
|
|
}
|
|
|
|
##### CAMPAIGN CODES DE PAUSE #####
|
|
if ($SUB==27)
|
|
{
|
|
echo "<br><br><b>CODES DE PAUSE DES AGENTS POUR CETTE CAMPAGNE: $NWB#vicidial_pause_codes$NWE</b><br>\n";
|
|
echo "<TABLE width=500 cellspacing=3>\n";
|
|
echo "<tr><td>CODES DE PAUSE</td><td>FACTURABLE</td><td>MODIFIER</td><td>SUPPRIMER</td></tr>\n";
|
|
|
|
$stmt="SELECT * from vicidial_pause_codes where campaign_id='$campaign_id' order by pause_code";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$pause_codes_to_print = mysql_num_rows($rslt);
|
|
$o=0;
|
|
while ($pause_codes_to_print > $o) {
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$o++;
|
|
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
|
|
echo "<tr $bgcolor><td><form action=$PHP_SELF method=POST><font size=1>$rowx[0]\n";
|
|
echo "<input type=hidden name=ADD value=47>\n";
|
|
echo "<input type=hidden name=campaign_id value=\"$campaign_id\">\n";
|
|
echo "<input type=hidden name=pause_code value=\"$rowx[0]\"> \n";
|
|
echo "<input type=text size=20 maxlength=30 name=pause_code_name value=\"$rowx[1]\"></td>\n";
|
|
echo "<td><select size=1 name=billable><option>YES</option><option>NO</option><option>HALF</option><option SELECTED>$rowx[2]</option></select></td>\n";
|
|
echo "<td><font size=1><input type=submit name=submit value=MODIFY></form></td>\n";
|
|
echo "<td><font size=1><a href=\"$PHP_SELF?ADD=67&campaign_id=$campaign_id&pause_code=$rowx[0]\">SUPPRIMER</a></td></tr>\n";
|
|
}
|
|
|
|
echo "</table>\n";
|
|
|
|
echo "<br>AJOUTER UN NOUVEAU CODE DE PAUSE<BR><form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=27>\n";
|
|
echo "<input type=hidden name=campaign_id value=\"$campaign_id\">\n";
|
|
echo "Code de pause: <input type=text size=8 maxlength=6 name=pause_code>\n";
|
|
echo "Nom du code de pause: <input type=text size=20 maxlength=30 name=pause_code_name>\n";
|
|
echo " Facturable: <select size=1 name=billable><option>YES</option><option>NO</option><option>HALF</option></select>\n";
|
|
echo "<input type=submit name=submit value=AJOUTER><BR>\n";
|
|
|
|
echo "</center></FORM><br>\n";
|
|
}
|
|
|
|
##### CAMPAIGN QC SETTINGS #####
|
|
if ( ($SUB==28) and ($SSqc_features_active > 0) )
|
|
{
|
|
$stmt="SELECT list_id,list_name,active from vicidial_lists where campaign_id='$campaign_id'";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$lists_to_print = mysql_num_rows($rslt);
|
|
$qc_lists_list='';
|
|
|
|
$p=0;
|
|
while ($lists_to_print > $p)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$qc_lists_list .= "<input type=\"checkbox\" name=\"qc_lists[]\" value=\"$rowx[0]\"";
|
|
$r=0;
|
|
while ($r < $QCL_to_print)
|
|
{
|
|
if ($rowx[0] == $QClists[$r])
|
|
{
|
|
$qc_lists_list .= " CHECKED";
|
|
}
|
|
$r++;
|
|
}
|
|
$qc_lists_list .= "> $rowx[0] - $rowx[1] - $rowx[2]<BR>\n";
|
|
|
|
$p++;
|
|
}
|
|
|
|
##### get scripts listings for pulldown
|
|
$stmt="SELECT script_id,script_name from vicidial_scripts order by script_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$scripts_to_print = mysql_num_rows($rslt);
|
|
$QCscripts_list="";
|
|
$o=0;
|
|
while ($scripts_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$QCscripts_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$scriptname_list["$rowx[0]"] = "$rowx[1]";
|
|
$o++;
|
|
}
|
|
##### get shifts listings for pulldown
|
|
$stmt="SELECT shift_id,shift_name from vicidial_shifts order by shift_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$shifts_to_print = mysql_num_rows($rslt);
|
|
$QCshifts_list="";
|
|
$o=0;
|
|
while ($shifts_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$QCshifts_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$shiftname_list["$rowx[0]"] = "$rowx[1]";
|
|
$o++;
|
|
}
|
|
|
|
echo "<br><br><b>QC SETTINGS pour cette campagne:</b><br>\n";
|
|
echo "<form action=$PHP_SELF method=POST><center><TABLE width=700 cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right><input type=hidden name=ADD value=48>\n";
|
|
echo "<input type=hidden name=campaign_id value=\"$campaign_id\">\n";
|
|
echo "QC Enabled:</td><td><select size=1 name=qc_enabled><option>Y</option><option>N</option><option SELECTED>$qc_enabled</option></select> $NWB#vicidial_campaigns-qc_enabled$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#9BB9FB><td align=right>QC Statut:<BR> $NWB#vicidial_campaigns-qc_statuses$NWE</td><td>$qc_statuses_list</td></tr>\n";
|
|
# echo "<tr bgcolor=#B9CBFD><td align=right>QC Lists: <BR> $NWB#vicidial_campaigns-qc_lists$NWE</td><td>$qc_lists_list</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>QC WebForm:</td><td align=left><input type=text name=qc_web_form_address size=70 maxlength=255 value=\"$qc_web_form_address\">$NWB#vicidial_campaigns-qc_web_form_address$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B9CBFD><td align=right><a href=\"$PHP_SELF?ADD=3111111&script_id=$script_id\">QC Script</a>: </td><td align=left><select size=1 name=qc_script>\n";
|
|
echo "$QCscripts_list";
|
|
echo "<option selected value=\"$qc_script\">$qc_script - $scriptname_list[$qc_script]</option>\n";
|
|
echo "</select>$NWB#vicidial_campaigns-qc_script$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B9CBFD><td align=right><a href=\"$PHP_SELF?ADD=331111111&shift_id=$qc_shift_id\">QC Shift</a>: </td><td align=left><select size=1 name=qc_shift_id>\n";
|
|
echo "$QCshifts_list";
|
|
echo "<option selected value=\"$qc_shift_id\">$qc_shift_id - $shiftname_list[$qc_shift_id]</option>\n";
|
|
echo "</select>$NWB#vicidial_campaigns-qc_shift_id$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Get Lancement Record QC: </td><td><select size=1 name=qc_get_record_launch><option>NONE</option><option>SCRIPT</option><option>WEBFORM</option><option>QCSCRIPT</option><option>QCWEBFORM</option><option SELECTED>$qc_get_record_launch</option></select> $NWB#vicidial_campaigns-qc_get_record_launch$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>QC Voir l'enregistrement: </td><td><select size=1 name=qc_show_recording><option>Y</option><option>N</option><option SELECTED>$qc_show_recording</option></select> $NWB#vicidial_campaigns-qc_show_recording$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B9CBFD><td align=center colspan=2><input type=submit name=submit value=VALIDER></td></tr>\n";
|
|
echo "</table>\n";
|
|
echo "<BR></center></FORM><br>\n";
|
|
}
|
|
|
|
##### CAMPAIGN SURVEY SETTINGS #####
|
|
if ($SUB=='20A')
|
|
{
|
|
|
|
echo "<center><br><b>SONDAGE SETTINGS pour cette campagne:</b><br>\n";
|
|
echo "<form action=$PHP_SELF method=POST><center><TABLE width=750 cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right><input type=hidden name=ADD value=40A>\n";
|
|
echo "<input type=hidden name=campaign_id value=\"$campaign_id\">\n";
|
|
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Enquête Premier fichier audio: </td><td><input type=text size=50 maxlength=50 name=survey_first_audio_file value=\"$survey_first_audio_file\"> $NWB#vicidial_campaigns-survey_first_audio_file$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Enquête DTMF Digits: </td><td><input type=text size=16 maxlength=16 name=survey_dtmf_digits value=\"$survey_dtmf_digits\"> $NWB#vicidial_campaigns-survey_dtmf_digits$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Enquête Non Intéressé Digit: </td><td><input type=text size=5 maxlength=1 name=survey_ni_digit value=\"$survey_ni_digit\"> $NWB#vicidial_campaigns-survey_ni_digit$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Enquête sur Opt-in audio de dossier: </td><td><input type=text size=50 maxlength=50 name=survey_opt_in_audio_file value=\"$survey_opt_in_audio_file\"> $NWB#vicidial_campaigns-survey_opt_in_audio_file$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Enquête Non Intéressé fichier audio: </td><td><input type=text size=50 maxlength=50 name=survey_ni_audio_file value=\"$survey_ni_audio_file\"> $NWB#vicidial_campaigns-survey_ni_audio_file$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Enquête sur la méthode: </td><td><select size=1 name=survey_method><option>AGENT_XFER</option><option>VOICEMAIL</option><option>EXTENSION</option><option>HANGUP</option><option>CAMPREC_60_WAV</option><option SELECTED>$survey_method</option></select> $NWB#vicidial_campaigns-survey_method$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Etude de non-réponse de l'action: </td><td><select size=1 name=survey_no_response_action><option>OPTIN</option><option>OPTOUT</option><option SELECTED>$survey_no_response_action</option></select> $NWB#vicidial_campaigns-survey_no_response_action$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Enquête Non Intéressé Etat: </td><td><select name=survey_ni_status>$survey_ni_status_list</select> $NWB#vicidial_campaigns-survey_ni_status$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Enquête sur la carte réponse Digit: </td><td><input type=text size=70 maxlength=100 name=survey_response_digit_map value=\"$survey_response_digit_map\"> $NWB#vicidial_campaigns-survey_response_digit_map$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Sondage Enquête Xfer Extension:</td><td><input type=text size=12 maxlength=20 name=survey_xfer_exten value=\"$survey_xfer_exten\"> $NWB#vicidial_campaigns-survey_xfer_exten$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Enquête sur la campagne d'enregistrement du répertoire: </td><td><input type=text size=70 maxlength=255 name=survey_camp_record_dir value=\"$survey_camp_record_dir\"> $NWB#vicidial_campaigns-survey_camp_record_dir$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Boîte vocale: </td><td><input type=text size=12 maxlength=20 name=voicemail_ext value=\"$voicemail_ext\"> $NWB#vicidial_campaigns-voicemail_ext$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B9CBFD><td align=center colspan=2><input type=submit name=submit value=VALIDER></td></tr>\n";
|
|
echo "</table>\n";
|
|
echo "<BR></center></FORM><br>\n";
|
|
}
|
|
|
|
|
|
if ($SUB < 1)
|
|
{
|
|
echo "<BR><BR>\n";
|
|
echo "<a href=\"$PHP_SELF?ADD=52&campaign_id=$campaign_id\">DECONNECTER TOUS LES AGENTS DE CETTE CAMPAGNE</a><BR><BR>\n";
|
|
echo "<a href=\"$PHP_SELF?ADD=53&campaign_id=$campaign_id\">EMERGENCY VDAC CLEAR FOR THIS CAMPAIGN</a><BR><BR>\n";
|
|
|
|
if ($LOGdelete_campaigns > 0)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=51&campaign_id=$campaign_id\">SUPPRIMER CETTE CAMPAGNE</a>\n";
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=34 modify campaign info in the system - Basic View
|
|
######################
|
|
|
|
if ( ($ADD==34) and ( (!eregi("$campaign_id",$LOGallowed_campaigns)) and (!eregi("ALL-CAMPAIGNS",$LOGallowed_campaigns)) ) )
|
|
{$ADD=30;} # send to not allowed screen if not in vicidial_user_groups allowed_campaigns list
|
|
|
|
if ($ADD==34)
|
|
{
|
|
if ($LOGmodify_campaigns==1)
|
|
{
|
|
if ($stage=='show_dialable')
|
|
{
|
|
$stmt="UPDATE vicidial_campaigns set display_dialable_count='Y' where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
if ($stage=='hide_dialable')
|
|
{
|
|
$stmt="UPDATE vicidial_campaigns set display_dialable_count='N' where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
}
|
|
|
|
$stmt="SELECT * from vicidial_campaigns where campaign_id='$campaign_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$dial_status_a = $row[3];
|
|
$dial_status_b = $row[4];
|
|
$dial_status_c = $row[5];
|
|
$dial_status_d = $row[6];
|
|
$dial_status_e = $row[7];
|
|
$lead_order = $row[8];
|
|
$hopper_level = $row[13];
|
|
$auto_dial_level = $row[14];
|
|
$next_agent_call = $row[15];
|
|
$local_call_time = $row[16];
|
|
$voicemail_ext = $row[17];
|
|
$dial_timeout = $row[18];
|
|
$dial_prefix = $row[19];
|
|
$campaign_cid = $row[20];
|
|
$campaign_vdad_exten = $row[21];
|
|
$script_id = $row[25];
|
|
$get_call_launch = $row[26];
|
|
$lead_filter_id = $row[35];
|
|
if ($lead_filter_id=='') {$lead_filter_id='NONE';}
|
|
$display_dialable_count = $row[39];
|
|
$dial_method = $row[46];
|
|
$adaptive_intensity = $row[51];
|
|
$campaign_description = $row[57];
|
|
$campaign_changedate = $row[58];
|
|
$campaign_stats_refresh = $row[59];
|
|
$campaign_logindate = $row[60];
|
|
$dial_statuses = $row[61];
|
|
$list_order_mix = $row[64];
|
|
$default_xfer_group = $row[67];
|
|
$campaign_allow_inbound = $row[65];
|
|
$default_xfer_group = $row[67];
|
|
|
|
if (ereg("DISABLED",$list_order_mix))
|
|
{$DEFlistDISABLE = ''; $DEFstatusDISABLED=0;}
|
|
else
|
|
{$DEFlistDISABLE = 'disabled'; $DEFstatusDISABLED=1;}
|
|
|
|
$stmt="SELECT * from vicidial_statuses order by status";
|
|
$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]))
|
|
{$HKstatuses_list .= "<option value=\"$rowx[0]-----$rowx[1]\">$rowx[0] - $rowx[1]</option>\n";}
|
|
$o++;
|
|
}
|
|
|
|
$stmt="SELECT * from vicidial_campaign_statuses where campaign_id='$campaign_id' order by status";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$Cstatuses_to_print = mysql_num_rows($rslt);
|
|
|
|
$o=0;
|
|
while ($Cstatuses_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]))
|
|
{$HKstatuses_list .= "<option value=\"$rowx[0]-----$rowx[1]\">$rowx[0] - $rowx[1]</option>\n";}
|
|
$o++;
|
|
}
|
|
|
|
$dial_statuses = preg_replace("/ -$/","",$dial_statuses);
|
|
$Dstatuses = explode(" ", $dial_statuses);
|
|
$Ds_to_print = (count($Dstatuses) -1);
|
|
|
|
$stmt="SELECT count(*) from vicidial_campaigns_list_mix where campaign_id='$campaign_id' and status='ACTIVE'";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$rowx=mysql_fetch_row($rslt);
|
|
if ($rowx[0] < 1)
|
|
{
|
|
$mixes_list="<option SELECTED value=\"DISABLED\">DISABLED</option>\n";
|
|
$mixname_list["DISABLED"] = "DISABLED";
|
|
}
|
|
else
|
|
{
|
|
##### get list_mix listings for dynamic pulldown
|
|
$stmt="SELECT vcl_id,vcl_name from vicidial_campaigns_list_mix where campaign_id='$campaign_id' and status='ACTIVE' limit 1";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$mixes_to_print = mysql_num_rows($rslt);
|
|
$mixes_list="<option value=\"DISABLED\">DISABLED</option>\n";
|
|
|
|
$o=0;
|
|
while ($mixes_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$mixes_list .= "<option value=\"ACTIVE\">ACTIVE ($rowx[0] - $rowx[1])</option>\n";
|
|
$mixname_list["ACTIVE"] = "$rowx[0] - $rowx[1]";
|
|
$o++;
|
|
}
|
|
}
|
|
|
|
if ($SUB<1) {$camp_detail_color=$subcamp_color;}
|
|
else {$camp_detail_color=$campaigns_color;}
|
|
if ($SUB==22) {$camp_statuses_color=$subcamp_color;}
|
|
else {$camp_statuses_color=$campaigns_color;}
|
|
if ($SUB==23) {$camp_hotkeys_color=$subcamp_color;}
|
|
else {$camp_hotkeys_color=$campaigns_color;}
|
|
if ($SUB==25) {$camp_recycle_color=$subcamp_color;}
|
|
else {$camp_recycle_color=$campaigns_color;}
|
|
if ($SUB==26) {$camp_autoalt_color=$subcamp_color;}
|
|
else {$camp_autoalt_color=$campaigns_color;}
|
|
if ($SUB==27) {$camp_pause_color=$subcamp_color;}
|
|
else {$camp_pause_color=$campaigns_color;}
|
|
if ($SUB==29) {$camp_listmix_color=$subcamp_color;}
|
|
else {$camp_listmix_color=$campaigns_color;}
|
|
echo "<TABLE WIDTH=$page_width CELLPADDING=2 CELLSPACING=0><TR BGCOLOR=\"$campaigns_color\">\n";
|
|
echo "<TD><font size=2 color=$subcamp_font face=\"ARIAL,HELVETICA\"> <B>$row[0]</B>: </font></TD>";
|
|
echo "<TD BGCOLOR=\"$camp_detail_color\"><a href=\"$PHP_SELF?ADD=34&campaign_id=$campaign_id\"><font size=2 color=$subcamp_font face=\"ARIAL,HELVETICA\">Vue basique </font></a></TD>";
|
|
echo "<TD> <a href=\"$PHP_SELF?ADD=31&campaign_id=$campaign_id\"><font size=2 color=$subcamp_font face=\"ARIAL,HELVETICA\">Vue détaillée</font></a> </TD>";
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
echo "<TD BGCOLOR=\"$camp_listmix_color\"> <a href=\"$PHP_SELF?ADD=34&SUB=29&campaign_id=$campaign_id\"><font size=2 color=$subcamp_font face=\"ARIAL,HELVETICA\">Liste Mix</font></a> </TD>";
|
|
}
|
|
echo "<TD> <a href=\"./AST_timeonVDADall.php?RR=4&DB=0&group=$row[0]\"><font size=2 color=$subcamp_font face=\"ARIAL,HELVETICA\">Ecran temps réel</font></a></TD>\n";
|
|
echo "<TD WIDTH=300><font size=2 color=$subcamp_font face=\"ARIAL,HELVETICA\"> </font></TD>\n";
|
|
if ($SSoutbound_autodial_active < 1)
|
|
{
|
|
echo "<TD></TD>";
|
|
}
|
|
echo "</TR></TABLE>\n";
|
|
|
|
if ($SUB < 1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
echo "<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=44>\n";
|
|
echo "<input type=hidden name=campaign_id value=\"$campaign_id\">\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>ID de la campagne: </td><td align=left><b>$row[0]</b>$NWB#vicidial_campaigns-campaign_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom de la campagne: </td><td align=left><input type=text name=campaign_name size=40 maxlength=40 value=\"$row[1]\">$NWB#vicidial_campaigns-campaign_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Description de la campagne: </td><td align=left>$row[57]$NWB#vicidial_campaigns-campaign_description$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Campagne Changement Date: </td><td align=left>$campaign_changedate $NWB#vicidial_campaigns-campaign_changedate$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Campagne Login Date: </td><td align=left>$campaign_logindate $NWB#vicidial_campaigns-campaign_logindate$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Actif: </td><td align=left><select size=1 name=active><option>Y</option><option>N</option><option SELECTED>$row[2]</option></select>$NWB#vicidial_campaigns-active$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Extension du parc: </td><td align=left>$row[9] - $row[10]$NWB#vicidial_campaigns-park_ext$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Formulaire Web: </td><td align=left>$row[11]$NWB#vicidial_campaigns-web_form_address$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Autoriser les closers: </td><td align=left>$row[12] $NWB#vicidial_campaigns-allow_closers$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Groupe De Transfert De Défaut :</td><td align=left>$default_xfer_group $NWB#vicidial_campaigns-default_xfer_group$NWE</td></tr>\n";
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Permettez d'arrivée et mélangé :</td><td align=left>$campaign_allow_inbound $NWB#vicidial_campaigns-campaign_allow_inbound$NWE</td></tr>\n";
|
|
|
|
$o=0;
|
|
while ($Ds_to_print > $o)
|
|
{
|
|
$o++;
|
|
$Dstatus = $Dstatuses[$o];
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Statut d'appel$o: </td><td align=left> \n";
|
|
if ($DEFstatusDISABLED > 0)
|
|
{
|
|
echo "<font color=grey><DEL><b>$Dstatus</b> - $statname_list[$Dstatus] <font size=2>\n";
|
|
echo "REMOVE</DEL></td></tr>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<b>$Dstatus</b> - $statname_list[$Dstatus] <font size=2>\n";
|
|
echo "<a href=\"$PHP_SELF?ADD=68&campaign_id=$campaign_id&status=$Dstatuses[$o]\">SUPPRIMER</a></td></tr>\n";
|
|
}
|
|
}
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Add A Dial Etat: </td><td align=left><select size=1 name=dial_status $DEFlistDISABLE>\n";
|
|
echo "<option value=\"\"> - NONE - </option>\n";
|
|
|
|
echo "$dial_statuses_list";
|
|
echo "</select> \n";
|
|
echo "<input type=submit name=submit value=AJOUTER> $NWB#vicidial_campaigns-dial_status$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Ordre de la liste: </td><td align=left><select size=1 name=lead_order><option>DOWN</option><option>UP</option><option>DOWN PHONE</option><option>UP PHONE</option><option>DOWN LAST NAME</option><option>UP LAST NAME</option><option>DOWN COUNT</option><option>UP COUNT</option><option>DOWN 2nd NEW</option><option>DOWN 3rd NEW</option><option>DOWN 4th NEW</option><option>DOWN 5th NEW</option><option>DOWN 6th NEW</option><option>UP 2nd NEW</option><option>UP 3rd NEW</option><option>UP 4th NEW</option><option>UP 5th NEW</option><option>UP 6th NEW</option><option>DOWN PHONE 2nd NEW</option><option>DOWN PHONE 3rd NEW</option><option>DOWN PHONE 4th NEW</option><option>DOWN PHONE 5th NEW</option><option>DOWN PHONE 6th NEW</option><option>UP PHONE 2nd NEW</option><option>UP PHONE 3rd NEW</option><option>UP PHONE 4th NEW</option><option>UP PHONE 5th NEW</option><option>UP PHONE 6th NEW</option><option>DOWN LAST NAME 2nd NEW</option><option>DOWN LAST NAME 3rd NEW</option><option>DOWN LAST NAME 4th NEW</option><option>DOWN LAST NAME 5th NEW</option><option>DOWN LAST NAME 6th NEW</option><option>UP LAST NAME 2nd NEW</option><option>UP LAST NAME 3rd NEW</option><option>UP LAST NAME 4th NEW</option><option>UP LAST NAME 5th NEW</option><option>UP LAST NAME 6th NEW</option><option>DOWN COUNT 2nd NEW</option><option>DOWN COUNT 3rd NEW</option><option>DOWN COUNT 4th NEW</option><option>DOWN COUNT 5th NEW</option><option>DOWN COUNT 6th NEW</option><option>UP COUNT 2nd NEW</option><option>UP COUNT 3rd NEW</option><option>UP COUNT 4th NEW</option><option>UP COUNT 5th NEW</option><option>UP COUNT 6th NEW</option><option SELECTED>$lead_order</option></select>$NWB#vicidial_campaigns-lead_order$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right><a href=\"$PHP_SELF?ADD=31&SUB=29&campaign_id=$campaign_id&vcl_id=$list_order_mix\">Liste Mix</a>: </td><td align=left><select size=1 name=list_order_mix>\n";
|
|
echo "$mixes_list";
|
|
if (ereg("DISABLED",$list_order_mix))
|
|
{echo "<option selected value=\"$list_order_mix\">$list_order_mix - $mixname_list[$list_order_mix]</option>\n";}
|
|
else
|
|
{echo "<option selected value=\"ACTIVE\">ACTIVE ($mixname_list[ACTIVE])</option>\n";}
|
|
echo "</select>$NWB#vicidial_campaigns-list_order_mix$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right><a href=\"$PHP_SELF?ADD=31111111&lead_filter_id=$lead_filter_id\">Filtre de la fiche</a>: </td><td align=left><select size=1 name=lead_filter_id>\n";
|
|
echo "$filters_list";
|
|
echo "<option selected value=\"$lead_filter_id\">$lead_filter_id - $filtername_list[$lead_filter_id]</option>\n";
|
|
echo "</select>$NWB#vicidial_campaigns-lead_filter_id$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Niveau du distributeur de fiches: </td><td align=left><select size=1 name=hopper_level><option>1</option><option>5</option><option>10</option><option>20</option><option>50</option><option>100</option><option>200</option><option>500</option><option>700</option><option>1000</option><option>2000</option><option SELECTED>$hopper_level</option></select>$NWB#vicidial_campaigns-hopper_level$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Forcer la réinitialisation du distributeur de fiches: </td><td align=left><select size=1 name=reset_hopper><option>Y</option><option SELECTED>N</option></select>$NWB#vicidial_campaigns-force_reset_hopper$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#BDFFBD><td align=right>Méthode d'appel: </td><td align=left><select size=1 name=dial_method><option >MANUAL</option><option>RATIO</option><option>ADAPT_HARD_LIMIT</option><option>ADAPT_TAPERED</option><option>ADAPT_AVERAGE</option><option>ENTRANT_MAN</option><option SELECTED>$dial_method</option></select>$NWB#vicidial_campaigns-dial_method$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#BDFFBD><td align=right>Niveau de l'appel automatique: </td><td align=left><select size=1 name=auto_dial_level><option >0</option><option>1</option><option>1.1</option><option>1.2</option><option>1.3</option><option>1.4</option><option>1.5</option><option>1.6</option><option>1.7</option><option>1.8</option><option>1.9</option><option>2.0</option><option>2.2</option><option>2.5</option><option>2.7</option><option>3.0</option><option>3.5</option><option>4.0</option><option SELECTED>$auto_dial_level</option></select>(0 = off)$NWB#vicidial_campaigns-auto_dial_level$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#BDFFBD><td align=right>Adapter le modificateur d'intensité: </td><td align=left><select size=1 name=adaptive_intensity>\n";
|
|
$n=40;
|
|
while ($n>=-40)
|
|
{
|
|
$dtl = 'Balanced';
|
|
if ($n<0) {$dtl = 'Less Intense';}
|
|
if ($n>0) {$dtl = 'More Intense';}
|
|
if ($n == $adaptive_intensity)
|
|
{echo "<option SELECTED value=\"$n\">$n - $dtl</option>\n";}
|
|
else
|
|
{echo "<option value=\"$n\">$n - $dtl</option>\n";}
|
|
$n--;
|
|
}
|
|
echo "</select> $NWB#vicidial_campaigns-adaptive_intensity$NWE</td></tr>\n";
|
|
}
|
|
echo "<tr bgcolor=#B6D3FC><td align=right><a href=\"$PHP_SELF?ADD=3111111&script_id=$script_id\">Script</a>: </td><td align=left>$script_id</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Lancer l'appel: </td><td align=left>$get_call_launch</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center></FORM>\n";
|
|
|
|
echo "<center>\n";
|
|
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
echo "<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=44>\n";
|
|
echo "<input type=hidden name=DB value=$DB>\n";
|
|
echo "<input type=hidden name=stage value=list_activation>\n";
|
|
echo "<input type=hidden name=campaign_id value=\"$campaign_id\">\n";
|
|
echo "<br><b>LISTES DANS CETTE CAMPAGNE: $NWB#vicidial_campaign_lists$NWE</b>\n";
|
|
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$LISTlink='stage=LISTIDDOWN';
|
|
$TALLYlink='stage=TALLYDOWN';
|
|
$ACTIVElink='stage=ACTIVEDOWN';
|
|
$CAMPAIGNlink='stage=CAMPAIGNDOWN';
|
|
$CALLDATElink='stage=CALLDATEDOWN';
|
|
$SQLorder='order by list_id';
|
|
if (eregi("LISTIDUP",$stage)) {$SQLorder='order by list_id asc'; $LISTlink='stage=LISTIDDOWN';}
|
|
if (eregi("LISTIDDOWN",$stage)) {$SQLorder='order by list_id desc'; $LISTlink='stage=LISTIDUP';}
|
|
if (eregi("TALLYUP",$stage)) {$SQLorder='order by tally asc'; $TALLYlink='stage=TALLYDOWN';}
|
|
if (eregi("TALLYDOWN",$stage)) {$SQLorder='order by tally desc'; $TALLYlink='stage=TALLYUP';}
|
|
if (eregi("ACTIVEUP",$stage)) {$SQLorder='order by active asc'; $ACTIVElink='stage=ACTIVEDOWN';}
|
|
if (eregi("ACTIVEDOWN",$stage)) {$SQLorder='order by active desc'; $ACTIVElink='stage=ACTIVEUP';}
|
|
if (eregi("CAMPAIGNUP",$stage)) {$SQLorder='order by campaign_id asc'; $CAMPAIGNlink='stage=CAMPAIGNDOWN';}
|
|
if (eregi("CAMPAIGNDOWN",$stage)) {$SQLorder='order by campaign_id desc'; $CAMPAIGNlink='stage=CAMPAIGNUP';}
|
|
if (eregi("CALLDATEUP",$stage)) {$SQLorder='order by list_lastcalldate asc'; $CALLDATElink='stage=CALLDATEDOWN';}
|
|
if (eregi("CALLDATEDOWN",$stage)) {$SQLorder='order by list_lastcalldate desc'; $CALLDATElink='stage=CALLDATEUP';}
|
|
$stmt="SELECT vls.list_id,list_name,list_description,count(*) as tally,active,list_lastcalldate,campaign_id from vicidial_lists vls,vicidial_list vl where vls.list_id=vl.list_id and campaign_id='$campaign_id' group by list_id $SQLorder";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$lists_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<TR BGCOLOR=BLACK>";
|
|
echo "<TD><a href=\"$PHP_SELF?ADD=31&campaign_id=$campaign_id&$LISTlink\"><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>ID DE LA LISTE</B></a></TD>";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>NOM DE LA LISTE</B></TD>";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>DESCRIPTION</B></TD>\n";
|
|
echo "<TD><a href=\"$PHP_SELF?ADD=31&campaign_id=$campaign_id&$TALLYlink\"><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>ABOUTIT COUNT</B></a></TD>\n";
|
|
echo "<TD COLSPAN=2><a href=\"$PHP_SELF?ADD=31&campaign_id=$campaign_id&$ACTIVElink\"><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>ACTIF</B></a></TD>";
|
|
echo "<TD><a href=\"$PHP_SELF?ADD=31&campaign_id=$campaign_id&$CALLDATElink\"><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>LAST CALL DATE</B></a></TD>";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>MODIFIER</TD>\n";
|
|
echo "</TR>\n";
|
|
|
|
$o=0;
|
|
while ($lists_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=311&list_id=$row[0]\">$row[0]</a></td>";
|
|
echo "<td><font size=1> $row[1]</td>";
|
|
echo "<td><font size=1> $row[2]</td>";
|
|
echo "<td><font size=1> $row[3]</td>";
|
|
echo "<td><font size=1> $row[4]</td>";
|
|
echo "<td>";
|
|
|
|
if (ereg('Y',$row[4]))
|
|
{
|
|
$active_lists++;
|
|
$camp_lists .= "'$row[0]',";
|
|
echo "<input type=\"checkbox\" name=\"list_active_change[]\" value=\"$row[0]\" CHECKED>";
|
|
}
|
|
else
|
|
{
|
|
$inactive_lists++;
|
|
echo "<input type=\"checkbox\" name=\"list_active_change[]\" value=\"$row[0]\"";
|
|
}
|
|
|
|
echo "</td>";
|
|
echo "<td><font size=1> $row[5]</td>";
|
|
echo "<td><font size=1><a href=\"$PHP_SELF?ADD=311&list_id=$row[0]\">MODIFIER</a></td></tr>\n";
|
|
|
|
$o++;
|
|
}
|
|
|
|
echo "<TR><TD COLSPAN=7 ALIGN=CENTER><input type=submit value=\"VALIDER ACTIVE LISTE DES CHANGEMENTS\"></TD></TR>\n";
|
|
echo "</TABLE></center><BR></FORM>\n";
|
|
echo "<center><b>\n";
|
|
|
|
$filterSQL = $filtersql_list[$lead_filter_id];
|
|
$filterSQL = eregi_replace("^and|and$|^or|or$","",$filterSQL);
|
|
if (strlen($filterSQL)>4)
|
|
{$fSQL = "and $filterSQL";}
|
|
else
|
|
{$fSQL = '';}
|
|
|
|
$camp_lists = eregi_replace(".$","",$camp_lists);
|
|
echo "Cette campagne a $active_lists listes actives et $inactive_lists listes inactives<br><br>\n";
|
|
|
|
|
|
if ($display_dialable_count == 'Y')
|
|
{
|
|
### call function to calculate and print dialable leads
|
|
dialable_leads($DB,$link,$local_call_time,$dial_statuses,$camp_lists,$fSQL);
|
|
echo " - <font size=1><a href=\"$PHP_SELF?ADD=34&campaign_id=$campaign_id&stage=hide_dialable\">CACHER</a></font><BR><BR>";
|
|
}
|
|
else
|
|
{
|
|
echo "<a href=\"$PHP_SELF?ADD=73&campaign_id=$campaign_id\" target=\"_blank\">Popup Dialable Leads Count</a>";
|
|
echo " - <font size=1><a href=\"$PHP_SELF?ADD=31&campaign_id=$campaign_id&stage=show_dialable\">MONTRER</a></font><BR><BR>";
|
|
}
|
|
|
|
|
|
|
|
$stmt="SELECT count(*) FROM vicidial_hopper where campaign_id='$campaign_id' and status IN('READY')";
|
|
if ($DB) {echo "$stmt\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$hopper_leads = "$rowx[0]";
|
|
|
|
echo "Cette campagne a $hopper_leads fiches dans le distributeur de fiches<br><br>\n";
|
|
echo "<a href=\"./AST_VICIDIAL_hopperlist.php?group=$campaign_id\">Cliquez ici pour voir quelles fiches sont dans le distributeur à l'instant</a><br><br>\n";
|
|
echo "<a href=\"./AST_VDADstats.php?group=$campaign_id\">Cliquez ici pour voir une VDAD rapport de cette campagne</a><BR><BR>\n";
|
|
}
|
|
echo "<a href=\"$PHP_SELF?ADD=81&campaign_id=$campaign_id\">Cliquez ici pour voir les rappels réservés de cette campagne</a><BR><BR>\n";
|
|
if ($LOGuser_level >= 9)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=720000000000000&category=CAMPAIGNS&stage=$campaign_id\">Cliquez ici pour voir Admin chages à cette campagne</FONT>\n";
|
|
}
|
|
|
|
echo "</b></center>\n";
|
|
|
|
echo "<br>\n";
|
|
|
|
### list of agent rank or skill-level for this campaign
|
|
echo "<center>\n";
|
|
echo "<br><b>GRADES D'AGENT POUR CETTE CAMPAGNE :</b><br>\n";
|
|
echo "<TABLE width=400 cellspacing=3>\n";
|
|
echo "<tr><td>USER</td><td> RANK</td><td> CALLS TODAY</td></tr>\n";
|
|
|
|
$stmt="SELECT user,campaign_rank,calls_today from vicidial_campaign_agents where campaign_id='$campaign_id'";
|
|
$rsltx=mysql_query($stmt, $link);
|
|
$users_to_print = mysql_num_rows($rsltx);
|
|
|
|
$o=0;
|
|
while ($users_to_print > $o) {
|
|
$rowx=mysql_fetch_row($rsltx);
|
|
$o++;
|
|
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=3&user=$rowx[0]\">$rowx[0]</a></td><td><font size=1>$rowx[1]</td><td><font size=1>$rowx[2]</td></tr>\n";
|
|
}
|
|
|
|
echo "</table></center><br>\n";
|
|
|
|
|
|
echo "<a href=\"$PHP_SELF?ADD=52&campaign_id=$campaign_id\">DECONNECTER TOUS LES AGENTS DE CETTE CAMPAGNE</a><BR><BR>\n";
|
|
|
|
|
|
if ($LOGdelete_campaigns > 0)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=51&campaign_id=$campaign_id\">SUPPRIMER CETTE CAMPAGNE</a>\n";
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=31 or 34 and SUB=29 for list mixes
|
|
######################
|
|
if ( ( ($ADD==34) or ($ADD==31) ) and ( (!eregi("$campaign_id",$LOGallowed_campaigns)) and (!eregi("ALL-CAMPAIGNS",$LOGallowed_campaigns)) ) )
|
|
{$ADD=30;} # send to not allowed screen if not in vicidial_user_groups allowed_campaigns list
|
|
|
|
if ( ($ADD==34) or ($ADD==31) )
|
|
{
|
|
if ($LOGmodify_campaigns==1)
|
|
{
|
|
##### CAMPAIGN LIST MIX SETTINGS #####
|
|
if ($SUB==29)
|
|
{
|
|
##### get list_id listings for dynamic pulldown
|
|
$stmt="SELECT list_id,list_name from vicidial_lists where campaign_id='$campaign_id' order by list_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$mixlists_to_print = mysql_num_rows($rslt);
|
|
$mixlists_list="";
|
|
|
|
$o=0;
|
|
while ($mixlists_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$mixlists_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$mixlistsname_list["$rowx[0]"] = "$rowx[1]";
|
|
$o++;
|
|
}
|
|
|
|
|
|
echo "<br><br><b>MÉLANGES DE LISTE POUR CETTE CAMPAGNE : $NWB#vicidial_campaigns-list_order_mix$NWE</b><br>\n";
|
|
|
|
echo "<br><br><b>Experimental Feature in development!!! NON-FUNCTIONAL</b><br>\n";
|
|
|
|
|
|
$stmt="SELECT * from vicidial_campaigns_list_mix where campaign_id='$campaign_id' order by status, vcl_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$listmixes = mysql_num_rows($rslt);
|
|
$o=0;
|
|
while ($listmixes > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$vcl_id=$rowx[0];
|
|
$o++;
|
|
|
|
if ($o < 2)
|
|
{$tablecolor='bgcolor="#99FF99"'; $bgcolor='bgcolor="#CCFFCC"';}
|
|
else
|
|
{
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$tablecolor='bgcolor="#B9CBFD"'; $bgcolor='bgcolor="#9BB9FB"';}
|
|
else
|
|
{$tablecolor='bgcolor="#9BB9FB"'; $bgcolor='bgcolor="#B9CBFD"';}
|
|
}
|
|
echo "<a name=\"$vcl_id\"><BR>\n";
|
|
echo "<span id=\"LISTMIX$US$vcl_id$US$o\">";
|
|
echo "<TABLE width=740 cellspacing=3 $tablecolor>\n";
|
|
echo "<tr><td colspan=6>\n";
|
|
echo "<form action=\"$PHP_SELF#$vcl_id\" method=POST name=$vcl_id id=$vcl_id>\n";
|
|
echo "<input type=hidden name=ADD value=49>\n";
|
|
echo "<input type=hidden name=SUB value=29>\n";
|
|
echo "<input type=hidden name=stage value=\"MODIFY\">\n";
|
|
echo "<input type=hidden name=vcl_id value=\"$vcl_id\">\n";
|
|
echo "<input type=hidden name=campaign_id value=\"$campaign_id\">\n";
|
|
echo "<input type=hidden name=list_mix_container$US$vcl_id id=list_mix_container$US$vcl_id value=\"\">\n";
|
|
echo "<B>$vcl_id:</B>\n";
|
|
echo "<input type=text size=40 maxlength=50 name=vcl_name$US$vcl_id id=vcl_name$US$vcl_id value=\"$rowx[1]\">\n";
|
|
echo " <a href=\"$PHP_SELF?ADD=49&SUB=29&stage=DELMIX&campaign_id=$campaign_id&vcl_id=$vcl_id\">DELETE LIST MIX</a></td></tr>\n";
|
|
echo "<tr><td colspan=3>Etat: \n";
|
|
if ($rowx[5]=='INACTIVE')
|
|
{
|
|
echo "<B>$rowx[5]</B>\n";
|
|
echo "<a href=\"$PHP_SELF?ADD=49&SUB=29&stage=SETACTIVE&campaign_id=$campaign_id&vcl_id=$vcl_id\"><font size=1>PLACEZ À ACTIF</font></a></td>\n";
|
|
}
|
|
else
|
|
{echo "<B>$rowx[5]</B></td>\n";}
|
|
echo "<td colspan=3>Method:\n";
|
|
echo "<select size=1 name=mix_method$US$vcl_id id=method$US$vcl_id><option value=\"EVEN_MIX\">EVEN_MIX</option><option value=\"IN_ORDER\">IN_ORDER</option><option value=\"RANDOM\">RANDOM</option><option SELECTED value=\"$rowx[4]\">$rowx[4]</option></select></td></tr>\n";
|
|
echo "<tr><td>ID DE LA LISTE</td><td>PRIORITÉ</td><td>% MIX</td><td>STATUSES</td><td></td></tr>\n";
|
|
|
|
# list_id|order|percent|statuses|:list_id|order|percent|statuses|:...
|
|
# 101|1|40| A B NA -|:102|2|25| NEW -|:103|3|30| DROP CALLBK -|:101|4|5| DROP -|
|
|
# INSERT INTO vicidial_campaigns_list_mix values('TESTMIX','TESTCAMP List Mix','TESTCAMP','101|1|40| A B NA -|:102|2|25| NEW -|:103|3|30| DROP CALLBK -|:101|4|5| DROP -|','IN_ORDER','ACTIVE');
|
|
# INSERT INTO vicidial_campaigns_list_mix values('TESTMIX2','TESTCAMP List Mix2','TESTCAMP','101|1|20| A B -|:102|2|45| NEW -|:103|3|30| DROP CALLBK -|:101|4|5| DROP -|','IN_ORDER','ACTIVE');
|
|
# INSERT INTO vicidial_campaigns_list_mix values('TESTMIX3','TESTCAMP List Mix3','TESTCAMP','101|1|30| A NA -|:102|2|35| NEW -|:103|3|30| DROP CALLBK -|:101|4|5| DROP -|','IN_ORDER','ACTIVE');
|
|
|
|
$MIXentries = $MT;
|
|
$MIXentries = explode(":", $rowx[3]);
|
|
$Ms_to_print = (count($MIXentries) - 0);
|
|
$q=0;
|
|
while ($Ms_to_print > $q)
|
|
{
|
|
$MIXdetails = explode('|', $MIXentries[$q]);
|
|
$MIXdetailsLIST = $MIXdetails[0];
|
|
|
|
$dial_statuses = preg_replace("/ -$/","",$dial_statuses);
|
|
$Dstatuses = explode(" ", $dial_statuses);
|
|
$Ds_to_print = (count($Dstatuses) - 0);
|
|
$Dsql = '';
|
|
$r=0;
|
|
while ($Ds_to_print > $r)
|
|
{
|
|
$r++;
|
|
$Dsql .= "'$Dstatuses[$r]',";
|
|
}
|
|
$Dsql = preg_replace("/,$/","",$Dsql);
|
|
|
|
echo "<tr $bgcolor><td NOWRAP><font size=3>\n";
|
|
echo "<input type=hidden name=list_id$US$q$US$vcl_id id=list_id$US$q$US$vcl_id value=$MIXdetailsLIST>\n";
|
|
echo "<a href=\"$PHP_SELF?ADD=311&list_id=$MIXdetailsLIST\">List</a>: $MIXdetailsLIST <font size=1><a href=\"$PHP_SELF?ADD=49&SUB=29&stage=REMOVE&campaign_id=$campaign_id&vcl_id=$vcl_id&mix_container_item=$q&list_id=$MIXdetailsLIST#$vcl_id\">SUPPRIMER</a></font></td>\n";
|
|
|
|
echo "<td><select size=1 name=priority$US$q$US$vcl_id id=priority$US$q$US$vcl_id>\n";
|
|
$n=10;
|
|
while ($n>=1)
|
|
{
|
|
echo "<option value=\"$n\">$n</option>\n";
|
|
$n = ($n-1);
|
|
}
|
|
echo "<option SELECTED value=\"$MIXdetails[1]\">$MIXdetails[1]</option></select></td>\n";
|
|
|
|
echo "<td><select size=1 name=\"percentage$US$q$US$vcl_id\" id=\"percentage$US$q$US$vcl_id\" onChange=\"mod_mix_percent('$vcl_id','$Ms_to_print')\">\n";
|
|
$n=100;
|
|
while ($n>=0)
|
|
{
|
|
echo "<option value=\"$n\">$n</option>\n";
|
|
$n = ($n-5);
|
|
}
|
|
echo "<option SELECTED value=\"$MIXdetails[2]\">$MIXdetails[2]</option></select></td>\n";
|
|
|
|
|
|
echo "<td><input type=hidden name=status$US$q$US$vcl_id id=status$US$q$US$vcl_id value=\"$MIXdetails[3]\"><input type=text size=20 maxlength=255 name=ROstatus$US$q$US$vcl_id id=ROstatus$US$q$US$vcl_id value=\"$MIXdetails[3]\" READONLY></td>\n";
|
|
echo "<td NOWRAP>\n";
|
|
|
|
|
|
|
|
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 "$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;\">SUPPRIMER</a>\n";
|
|
echo "</font></B></td></tr>\n";
|
|
|
|
|
|
echo "</td></tr>\n";
|
|
|
|
|
|
$q++;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
echo "<tr $bgcolor><td colspan=3 align=right><font size=2>\n";
|
|
echo "Difference %: <input type=text size=4 name=PCT_DIFF_$vcl_id id=PCT_DIFF_$vcl_id value=0 readonly>\n";
|
|
echo "</td>\n";
|
|
|
|
echo "<td colspan=2><input type=button name=submit_$vcl_id id=submit_$vcl_id value=\"VALIDER\" onClick=\"submit_mix('$vcl_id','$Ms_to_print')\"> \n";
|
|
echo "<span id=ERROR_$vcl_id></span>\n";
|
|
echo "</form></td></tr>\n";
|
|
|
|
|
|
echo "<tr $bgcolor><td colspan=4 align=right><font size=2>\n";
|
|
echo "<form action=\"$PHP_SELF#$vcl_id\" method=POST name=$vcl_id id=$vcl_id>\n";
|
|
echo "<input type=hidden name=ADD value=49>\n";
|
|
echo "<input type=hidden name=SUB value=29>\n";
|
|
echo "<input type=hidden name=stage value=\"ADD\">\n";
|
|
echo "<input type=hidden name=vcl_id value=\"$vcl_id\">\n";
|
|
echo "<input type=hidden name=campaign_id value=\"$campaign_id\">\n";
|
|
echo "List: <select size=1 name=list_id>\n";
|
|
echo "$mixlists_list";
|
|
echo "<option selected value=\"\">ADD ANOTHER ENTRY</option>\n";
|
|
echo "</select></td>\n";
|
|
|
|
if ($q > 9) {$AE_disabled = 'DISABLED';}
|
|
else {$AE_disabled = '';}
|
|
echo "<td><input type=submit name=submit value=\"ADD ENTRY\" $AE_disabled>\n";
|
|
echo "</form></td></tr>\n";
|
|
echo "</table></span>\n";
|
|
}
|
|
|
|
|
|
echo "<br><br><B>AJOUTER UNE NOUVELLE LISTE MIX</B><BR><form action=$PHP_SELF method=POST>\n";
|
|
echo "<table border=0>\n";
|
|
echo "<tr $bgcolor><td><form action=\"$PHP_SELF#$vcl_id\" method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=49>\n";
|
|
echo "<input type=hidden name=SUB value=29>\n";
|
|
echo "<input type=hidden name=stage value=\"NEWMIX\">\n";
|
|
echo "<input type=hidden name=campaign_id value=\"$campaign_id\">\n";
|
|
echo "Mix ID: <input type=text size=20 maxlength=20 name=vcl_id value=\"\"></td>\n";
|
|
echo "<td>Mix Name: <input type=text size=30 maxlength=50 name=vcl_name value=\"\"></td>\n";
|
|
echo "<td>Mix Method: ";
|
|
echo "<select size=1 name=mix_method><option value=\"EVEN_MIX\">EVEN_MIX</option><option value=\"IN_ORDER\">IN_ORDER</option><option value=\"RANDOM\">RANDOM</option></select></td></tr>\n";
|
|
echo "<tr $bgcolor><td>List: <select size=1 name=list_id>\n";
|
|
echo "$mixlists_list";
|
|
echo "</select></td>\n";
|
|
echo "<td>Dial Etat: <select size=1 name=status>\n";
|
|
echo "$dial_statuses_list";
|
|
echo "</select></td>\n";
|
|
echo "<td> <input type=submit name=submit value=VALIDER></form></td>\n";
|
|
echo "</tr>\n";
|
|
echo "</table>\n";
|
|
|
|
echo "<br>\n";
|
|
|
|
}
|
|
}
|
|
echo "</TD></TR></TABLE></center>\n";
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=30 campaign not allowed
|
|
######################
|
|
|
|
if ($ADD==30)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
echo "You do not have permission to view campaign $campaign_id\n";
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=32 display all campaign statuses
|
|
######################
|
|
if ($ADD==32)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>LISTES FAITES SUR COMMANDE DE STATUTS DE CAMPAGNE :\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<tr>\n";
|
|
echo "<td><B>CAMPAIGN</B></td>\n";
|
|
echo "<td><B>NOM</B></td>\n";
|
|
echo "<td><B>STATUSES</B></td>\n";
|
|
echo "<td><B>MODIFIER</B></td>\n";
|
|
echo "</tr>\n";
|
|
|
|
$stmt="SELECT campaign_id,campaign_name from vicidial_campaigns order by campaign_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$campaigns_to_print = mysql_num_rows($rslt);
|
|
|
|
$o=0;
|
|
while ($campaigns_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$campaigns_id_list[$o] = $row[0];
|
|
$campaigns_name_list[$o] = $row[1];
|
|
$o++;
|
|
}
|
|
|
|
$o=0;
|
|
while ($campaigns_to_print > $o)
|
|
{
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=31&SUB=22&campaign_id=$campaigns_id_list[$o]\">$campaigns_id_list[$o]</a></td>";
|
|
echo "<td><font size=1> $campaigns_name_list[$o] </td>";
|
|
echo "<td><font size=1> ";
|
|
|
|
$stmt="SELECT status from vicidial_campaign_statuses where campaign_id='$campaigns_id_list[$o]' order by status";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$campstatus_to_print = mysql_num_rows($rslt);
|
|
$p=0;
|
|
while ( ($campstatus_to_print > $p) and ($p < 10) )
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
echo "$row[0] ";
|
|
$p++;
|
|
}
|
|
if ($p<1)
|
|
{echo "<font color=grey><DEL>NONE</DEL></font>";}
|
|
echo "</td>";
|
|
echo "<td><font size=1><a href=\"$PHP_SELF?ADD=31&SUB=22&campaign_id=$campaigns_id_list[$o]\">MODIFY STATUSES</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=33 display all campaign hotkeys
|
|
######################
|
|
if ($ADD==33)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>LISTES DE LA CAMPAGNE HOTKEYS :\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<tr>\n";
|
|
echo "<td><B>CAMPAIGN</B></td>\n";
|
|
echo "<td><B>NOM</B></td>\n";
|
|
echo "<td><B>HOTKEYS</B></td>\n";
|
|
echo "<td><B>MODIFIER</B></td>\n";
|
|
echo "</tr>\n";
|
|
|
|
$stmt="SELECT campaign_id,campaign_name from vicidial_campaigns order by campaign_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$campaigns_to_print = mysql_num_rows($rslt);
|
|
|
|
$o=0;
|
|
while ($campaigns_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$campaigns_id_list[$o] = $row[0];
|
|
$campaigns_name_list[$o] = $row[1];
|
|
$o++;
|
|
}
|
|
|
|
$o=0;
|
|
while ($campaigns_to_print > $o)
|
|
{
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=31&SUB=23&campaign_id=$campaigns_id_list[$o]\">$campaigns_id_list[$o]</a></td>";
|
|
echo "<td><font size=1> $campaigns_name_list[$o] </td>";
|
|
echo "<td><font size=1> ";
|
|
|
|
$stmt="SELECT status from vicidial_campaign_hotkeys where campaign_id='$campaigns_id_list[$o]' order by status";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$campstatus_to_print = mysql_num_rows($rslt);
|
|
$p=0;
|
|
while ( ($campstatus_to_print > $p) and ($p < 10) )
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
echo "$row[0] ";
|
|
$p++;
|
|
}
|
|
if ($p<1)
|
|
{echo "<font color=grey><DEL>NONE</DEL></font>";}
|
|
echo "</td>";
|
|
echo "<td><font size=1><a href=\"$PHP_SELF?ADD=31&SUB=23&campaign_id=$campaigns_id_list[$o]\">MODIFY HOTKEYS</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=35 display all campaign lead recycle entries
|
|
######################
|
|
if ($ADD==35)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>LE FIL DE CAMPAGNE RÉUTILISENT DES LISTES :\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<tr>\n";
|
|
echo "<td><B>CAMPAIGN</B></td>\n";
|
|
echo "<td><B>NOM</B></td>\n";
|
|
echo "<td><B>LE FIL RÉUTILISE</B></td>\n";
|
|
echo "<td><B>MODIFIER</B></td>\n";
|
|
echo "</tr>\n";
|
|
|
|
$stmt="SELECT campaign_id,campaign_name from vicidial_campaigns order by campaign_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$campaigns_to_print = mysql_num_rows($rslt);
|
|
|
|
$o=0;
|
|
while ($campaigns_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$campaigns_id_list[$o] = $row[0];
|
|
$campaigns_name_list[$o] = $row[1];
|
|
$o++;
|
|
}
|
|
|
|
$o=0;
|
|
while ($campaigns_to_print > $o)
|
|
{
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=31&SUB=25&campaign_id=$campaigns_id_list[$o]\">$campaigns_id_list[$o]</a></td>";
|
|
echo "<td><font size=1> $campaigns_name_list[$o] </td>";
|
|
echo "<td><font size=1> ";
|
|
|
|
$stmt="SELECT status from vicidial_lead_recycle where campaign_id='$campaigns_id_list[$o]' order by status";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$campstatus_to_print = mysql_num_rows($rslt);
|
|
$p=0;
|
|
while ( ($campstatus_to_print > $p) and ($p < 10) )
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
echo "$row[0] ";
|
|
$p++;
|
|
}
|
|
if ($p<1)
|
|
{echo "<font color=grey><DEL>NONE</DEL></font>";}
|
|
echo "</td>";
|
|
echo "<td><font size=1><a href=\"$PHP_SELF?ADD=31&SUB=25&campaign_id=$campaigns_id_list[$o]\">MODIFY LE FIL RÉUTILISE</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=36 display all campaign auto-alt dial entries
|
|
######################
|
|
if ($ADD==36)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>LISTES DE CADRAN DU FIL AUTO-ALT DE CAMPAGNE :\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<tr>\n";
|
|
echo "<td><B>CAMPAIGN</B></td>\n";
|
|
echo "<td><B>NOM</B></td>\n";
|
|
echo "<td><B>AUTO-ALT DIAL</B></td>\n";
|
|
echo "<td><B>MODIFIER</B></td>\n";
|
|
echo "</tr>\n";
|
|
|
|
$stmt="SELECT campaign_id,campaign_name from vicidial_campaigns order by campaign_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$campaigns_to_print = mysql_num_rows($rslt);
|
|
|
|
$o=0;
|
|
while ($campaigns_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$campaigns_id_list[$o] = $row[0];
|
|
$campaigns_name_list[$o] = $row[1];
|
|
$o++;
|
|
}
|
|
|
|
$o=0;
|
|
while ($campaigns_to_print > $o)
|
|
{
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=31&SUB=26&campaign_id=$campaigns_id_list[$o]\">$campaigns_id_list[$o]</a></td>";
|
|
echo "<td><font size=1> $campaigns_name_list[$o] </td>";
|
|
echo "<td><font size=1> ";
|
|
|
|
$stmt="SELECT auto_alt_dial_statuses from vicidial_campaigns where campaign_id='$campaigns_id_list[$o]';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$campstatus_to_print = mysql_num_rows($rslt);
|
|
$p=0;
|
|
while ( ($campstatus_to_print > $p) and ($p < 10) )
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
echo "$row[0] ";
|
|
$p++;
|
|
}
|
|
if (strlen($row[0])<3)
|
|
{echo "<font color=grey><DEL>NONE</DEL></font>";}
|
|
echo "</td>";
|
|
echo "<td><font size=1><a href=\"$PHP_SELF?ADD=31&SUB=26&campaign_id=$campaigns_id_list[$o]\">MODIFY AUTO-ALT DIAL</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=37 display all campaign agent pause codes
|
|
######################
|
|
if ($ADD==37)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>LISTES DES CODES DE PAUSE D'AGENT DE CAMPAGNE :\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<tr>\n";
|
|
echo "<td><B>CAMPAIGN</B></td>\n";
|
|
echo "<td><B>NOM</B></td>\n";
|
|
echo "<td><B>CODES DE PAUSE</B></td>\n";
|
|
echo "<td><B>MODIFIER</B></td>\n";
|
|
echo "</tr>\n";
|
|
|
|
$stmt="SELECT campaign_id,campaign_name from vicidial_campaigns order by campaign_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$campaigns_to_print = mysql_num_rows($rslt);
|
|
|
|
$o=0;
|
|
while ($campaigns_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$campaigns_id_list[$o] = $row[0];
|
|
$campaigns_name_list[$o] = $row[1];
|
|
$o++;
|
|
}
|
|
|
|
$o=0;
|
|
while ($campaigns_to_print > $o)
|
|
{
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=31&SUB=27&campaign_id=$campaigns_id_list[$o]\">$campaigns_id_list[$o]</a></td>";
|
|
echo "<td><font size=1> $campaigns_name_list[$o] </td>";
|
|
echo "<td><font size=1> ";
|
|
|
|
$stmt="SELECT pause_code from vicidial_pause_codes where campaign_id='$campaigns_id_list[$o]' order by pause_code;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$campstatus_to_print = mysql_num_rows($rslt);
|
|
$p=0;
|
|
while ( ($campstatus_to_print > $p) and ($p < 10) )
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
echo "$row[0] ";
|
|
$p++;
|
|
}
|
|
if ($p<1)
|
|
{echo "<font color=grey><DEL>NONE</DEL></font>";}
|
|
echo "</td>";
|
|
echo "<td><font size=1><a href=\"$PHP_SELF?ADD=31&SUB=27&campaign_id=$campaigns_id_list[$o]\">MODIFY CODES DE PAUSE</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=39 display all campaign list mixes
|
|
######################
|
|
if ($ADD==39)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>LISTES DE MÉLANGE DE LISTE DE CAMPAGNE :\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<tr>\n";
|
|
echo "<td><B>CAMPAIGN</B></td>\n";
|
|
echo "<td><B>NOM</B></td>\n";
|
|
echo "<td><B>LIST MIX</B></td>\n";
|
|
echo "<td><B>MODIFIER</B></td>\n";
|
|
echo "</tr>\n";
|
|
|
|
$stmt="SELECT campaign_id,campaign_name from vicidial_campaigns order by campaign_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$campaigns_to_print = mysql_num_rows($rslt);
|
|
|
|
$o=0;
|
|
while ($campaigns_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$campaigns_id_list[$o] = $row[0];
|
|
$campaigns_name_list[$o] = $row[1];
|
|
$o++;
|
|
}
|
|
|
|
$o=0;
|
|
while ($campaigns_to_print > $o)
|
|
{
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=31&SUB=29&campaign_id=$campaigns_id_list[$o]\">$campaigns_id_list[$o]</a></td>";
|
|
echo "<td><font size=1> $campaigns_name_list[$o] </td>";
|
|
echo "<td><font size=1> ";
|
|
|
|
$stmt="SELECT vcl_id from vicidial_campaigns_list_mix where campaign_id='$campaigns_id_list[$o]' order by status,vcl_id;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$campstatus_to_print = mysql_num_rows($rslt);
|
|
$p=0;
|
|
while ( ($campstatus_to_print > $p) and ($p < 10) )
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
echo "$row[0] ";
|
|
$p++;
|
|
}
|
|
if ($p<1)
|
|
{echo "<font color=grey><DEL>NONE</DEL></font>";}
|
|
echo "</td>";
|
|
echo "<td><font size=1><a href=\"$PHP_SELF?ADD=31&SUB=29&campaign_id=$campaigns_id_list[$o]\">MODIFY LIST MIX</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
######################
|
|
# ADD=311 modify list info in the system
|
|
######################
|
|
|
|
if ($ADD==311)
|
|
{
|
|
if ($LOGmodify_lists==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT * from vicidial_lists where list_id='$list_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$campaign_id = $row[2];
|
|
$active = $row[3];
|
|
$list_description = $row[4];
|
|
$list_changedate = $row[5];
|
|
$list_lastcalldate = $row[6];
|
|
|
|
# grab names of global statuses and statuses in the selected campaign
|
|
$stmt="SELECT * from vicidial_statuses order by status";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$statuses_to_print = mysql_num_rows($rslt);
|
|
|
|
$o=0;
|
|
while ($statuses_to_print > $o) {
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$statuses_list["$rowx[0]"] = "$rowx[1]";
|
|
$o++;
|
|
}
|
|
|
|
$stmt="SELECT * from vicidial_campaign_statuses where campaign_id='$campaign_id' order by status";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$Cstatuses_to_print = mysql_num_rows($rslt);
|
|
|
|
$o=0;
|
|
while ($Cstatuses_to_print > $o) {
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$statuses_list["$rowx[0]"] = "$rowx[1]";
|
|
$o++;
|
|
}
|
|
# end grab status names
|
|
|
|
|
|
echo "<br>MODIFIER UN ENREGISTREMENT DE LA LISTE: $row[0]<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=411>\n";
|
|
echo "<input type=hidden name=list_id value=\"$row[0]\">\n";
|
|
echo "<input type=hidden name=old_campaign_id value=\"$row[2]\">\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>ID de la liste: </td><td align=left><b>$row[0]</b>$NWB#vicidial_lists-list_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom de la liste: </td><td align=left><input type=text name=list_name size=20 maxlength=20 value=\"$row[1]\">$NWB#vicidial_lists-list_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Description de la liste: </td><td align=left><input type=text name=list_description size=30 maxlength=255 value=\"$list_description\">$NWB#vicidial_lists-list_description$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right><a href=\"$PHP_SELF?ADD=34&campaign_id=$campaign_id\">Campagne</a>: </td><td align=left><select size=1 name=campaign_id>\n";
|
|
|
|
$stmt="SELECT campaign_id,campaign_name from vicidial_campaigns order by campaign_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$campaigns_to_print = mysql_num_rows($rslt);
|
|
$campaigns_list='';
|
|
$o=0;
|
|
while ($campaigns_to_print > $o) {
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$campaigns_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
echo "$campaigns_list";
|
|
echo "<option SELECTED>$campaign_id</option>\n";
|
|
echo "</select>$NWB#vicidial_lists-campaign_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Actif: </td><td align=left><select size=1 name=active><option>Y</option><option>N</option><option SELECTED>$active</option></select>$NWB#vicidial_lists-active$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Réinitialiser les statuts des fiches appelées pour cette liste: </td><td align=left><select size=1 name=reset_list><option>Y</option><option SELECTED>N</option></select>$NWB#vicidial_lists-reset_list$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Date de changement de la liste: </td><td align=left>$list_changedate $NWB#vicidial_lists-list_changedate$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Liste Date Last Call: </td><td align=left>$list_lastcalldate $NWB#vicidial_lists-list_lastcalldate$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
|
|
echo "<center>\n";
|
|
echo "<br><b>STATUTS DANS CETTE LISTE:</b><br>\n";
|
|
echo "<TABLE width=500 cellspacing=3>\n";
|
|
echo "<tr><td>ETAT</td><td>NOM DU STATUT</td><td>APPELE</td><td>NON APPELE</td></tr>\n";
|
|
|
|
$leads_in_list = 0;
|
|
$leads_in_list_N = 0;
|
|
$leads_in_list_Y = 0;
|
|
$stmt="SELECT status,called_since_last_reset,count(*) from vicidial_list where list_id='$list_id' group by status,called_since_last_reset order by status,called_since_last_reset";
|
|
if ($DB) {echo "$stmt\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
$statuses_to_print = mysql_num_rows($rslt);
|
|
|
|
$o=0;
|
|
$lead_list['count'] = 0;
|
|
$lead_list['Y_count'] = 0;
|
|
$lead_list['N_count'] = 0;
|
|
while ($statuses_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
|
|
$lead_list['count'] = ($lead_list['count'] + $rowx[2]);
|
|
if ($rowx[1] == 'N')
|
|
{
|
|
$since_reset = 'N';
|
|
$since_resetX = 'Y';
|
|
}
|
|
else
|
|
{
|
|
$since_reset = 'Y';
|
|
$since_resetX = 'N';
|
|
}
|
|
$lead_list[$since_reset][$rowx[0]] = ($lead_list[$since_reset][$rowx[0]] + $rowx[2]);
|
|
$lead_list[$since_reset.'_count'] = ($lead_list[$since_reset.'_count'] + $rowx[2]);
|
|
#If opposite side is not set, it may not in the future so give it a value of zero
|
|
if (!isset($lead_list[$since_resetX][$rowx[0]]))
|
|
{
|
|
$lead_list[$since_resetX][$rowx[0]]=0;
|
|
}
|
|
$o++;
|
|
}
|
|
|
|
$o=0;
|
|
if ($lead_list['count'] > 0)
|
|
{
|
|
while (list($dispo,) = each($lead_list[$since_reset]))
|
|
{
|
|
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
|
|
if ($dispo == 'CBHOLD')
|
|
{
|
|
$CLB="<a href=\"$PHP_SELF?ADD=811&list_id=$list_id\">";
|
|
$CLE="</a>";
|
|
}
|
|
else
|
|
{
|
|
$CLB='';
|
|
$CLE='';
|
|
}
|
|
|
|
echo "<tr $bgcolor><td><font size=1>$CLB$dispo$CLE</td><td><font size=1>$statuses_list[$dispo]</td><td><font size=1>".$lead_list['Y'][$dispo]."</td><td><font size=1>".$lead_list['N'][$dispo]." </td></tr>\n";
|
|
$o++;
|
|
}
|
|
}
|
|
|
|
echo "<tr><td colspan=2><font size=1>SOUS TOTAUX</td><td><font size=1>$lead_list[Y_count]</td><td><font size=1>$lead_list[N_count]</td></tr>\n";
|
|
echo "<tr bgcolor=\"#9BB9FB\"><td><font size=1>TOTAL</td><td colspan=3 align=center><font size=1>$lead_list[count]</td></tr>\n";
|
|
|
|
echo "</table></center><br>\n";
|
|
unset($lead_list);
|
|
|
|
|
|
echo "<center>\n";
|
|
echo "<br><b>ZONES DE TEMPS DANS CETTE LISTE:</b><br>\n";
|
|
echo "<TABLE width=500 cellspacing=3>\n";
|
|
echo "<tr><td>GMT OFFSET NOW (heure locale)</td><td>APPELE</td><td>NON APPELE</td></tr>\n";
|
|
|
|
$stmt="SELECT gmt_offset_now,called_since_last_reset,count(*) from vicidial_list where list_id='$list_id' group by gmt_offset_now,called_since_last_reset order by gmt_offset_now,called_since_last_reset";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$statuses_to_print = mysql_num_rows($rslt);
|
|
|
|
$o=0;
|
|
$plus='+';
|
|
$lead_list['count'] = 0;
|
|
$lead_list['Y_count'] = 0;
|
|
$lead_list['N_count'] = 0;
|
|
while ($statuses_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
|
|
$lead_list['count'] = ($lead_list['count'] + $rowx[2]);
|
|
if ($rowx[1] == 'N')
|
|
{
|
|
$since_reset = 'N';
|
|
$since_resetX = 'Y';
|
|
}
|
|
else
|
|
{
|
|
$since_reset = 'Y';
|
|
$since_resetX = 'N';
|
|
}
|
|
$lead_list[$since_reset][$rowx[0]] = ($lead_list[$since_reset][$rowx[0]] + $rowx[2]);
|
|
$lead_list[$since_reset.'_count'] = ($lead_list[$since_reset.'_count'] + $rowx[2]);
|
|
#If opposite side is not set, it may not in the future so give it a value of zero
|
|
if (!isset($lead_list[$since_resetX][$rowx[0]]))
|
|
{
|
|
$lead_list[$since_resetX][$rowx[0]]=0;
|
|
}
|
|
$o++;
|
|
}
|
|
|
|
if ($lead_list['count'] > 0)
|
|
{
|
|
while (list($tzone,) = each($lead_list[$since_reset]))
|
|
{
|
|
$LOCALzone=3600 * $tzone;
|
|
$LOCALdate=gmdate("D M Y H:i", time() + $LOCALzone);
|
|
|
|
if ($tzone >= 0) {$DISPtzone = "$plus$tzone";}
|
|
else {$DISPtzone = "$tzone";}
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
|
|
echo "<tr $bgcolor><td><font size=1>".$DISPtzone." ($LOCALdate)</td><td><font size=1>".$lead_list['Y'][$tzone]."</td><td><font size=1>".$lead_list['N'][$tzone]."</td></tr>\n";
|
|
}
|
|
}
|
|
|
|
echo "<tr><td><font size=1>SOUS TOTAUX</td><td><font size=1>$lead_list[Y_count]</td><td><font size=1>$lead_list[N_count]</td></tr>\n";
|
|
echo "<tr bgcolor=\"#9BB9FB\"><td><font size=1>TOTAL</td><td colspan=2 align=center><font size=1>$lead_list[count]</td></tr>\n";
|
|
|
|
echo "</table></center><br>\n";
|
|
unset($lead_list);
|
|
|
|
|
|
|
|
$leads_in_list = 0;
|
|
$leads_in_list_N = 0;
|
|
$leads_in_list_Y = 0;
|
|
$stmt="SELECT status,called_count,count(*) from vicidial_list where list_id='$list_id' group by status,called_count order by status,called_count";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$status_called_to_print = mysql_num_rows($rslt);
|
|
|
|
$o=0;
|
|
$sts=0;
|
|
$first_row=1;
|
|
$all_called_first=1000;
|
|
$all_called_last=0;
|
|
while ($status_called_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$leads_in_list = ($leads_in_list + $rowx[2]);
|
|
$count_statuses[$o] = "$rowx[0]";
|
|
$count_called[$o] = "$rowx[1]";
|
|
$count_count[$o] = "$rowx[2]";
|
|
$all_called_count[$rowx[1]] = ($all_called_count[$rowx[1]] + $rowx[2]);
|
|
|
|
if ( (strlen($status[$sts]) < 1) or ($status[$sts] != "$rowx[0]") )
|
|
{
|
|
if ($first_row) {$first_row=0;}
|
|
else {$sts++;}
|
|
$status[$sts] = "$rowx[0]";
|
|
$status_called_first[$sts] = "$rowx[1]";
|
|
if ($status_called_first[$sts] < $all_called_first) {$all_called_first = $status_called_first[$sts];}
|
|
}
|
|
$leads_in_sts[$sts] = ($leads_in_sts[$sts] + $rowx[2]);
|
|
$status_called_last[$sts] = "$rowx[1]";
|
|
if ($status_called_last[$sts] > $all_called_last) {$all_called_last = $status_called_last[$sts];}
|
|
|
|
$o++;
|
|
}
|
|
|
|
|
|
|
|
|
|
echo "<center>\n";
|
|
echo "<br><b>NOMBRE D'APPELES DANS CETTE LISTE:</b><br>\n";
|
|
echo "<TABLE width=500 cellspacing=1>\n";
|
|
echo "<tr><td align=left><font size=1>ETAT</td><td align=center><font size=1>NOM DU STATUT</td>";
|
|
$first = $all_called_first;
|
|
while ($first <= $all_called_last)
|
|
{
|
|
if (eregi("1$|3$|5$|7$|9$", $first)) {$AB='bgcolor="#AFEEEE"';}
|
|
else{$AB='bgcolor="#E0FFFF"';}
|
|
echo "<td align=center $AB><font size=1>$first</td>";
|
|
$first++;
|
|
}
|
|
echo "<td align=center><font size=1>SOUS TOTAL</td></tr>\n";
|
|
|
|
$sts=0;
|
|
$statuses_called_to_print = count($status);
|
|
while ($statuses_called_to_print > $sts)
|
|
{
|
|
$Pstatus = $status[$sts];
|
|
if (eregi("1$|3$|5$|7$|9$", $sts))
|
|
{$bgcolor='bgcolor="#B9CBFD"'; $AB='bgcolor="#9BB9FB"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"'; $AB='bgcolor="#B9CBFD"';}
|
|
# echo "$status[$sts]|$status_called_first[$sts]|$status_called_last[$sts]|$leads_in_sts[$sts]|\n";
|
|
# echo "$status[$sts]|";
|
|
echo "<tr $bgcolor><td><font size=1>$Pstatus</td><td><font size=1>$statuses_list[$Pstatus]</td>";
|
|
|
|
$first = $all_called_first;
|
|
while ($first <= $all_called_last)
|
|
{
|
|
if (eregi("1$|3$|5$|7$|9$", $sts))
|
|
{
|
|
if (eregi("1$|3$|5$|7$|9$", $first)) {$AB='bgcolor="#9BB9FB"';}
|
|
else{$AB='bgcolor="#B9CBFD"';}
|
|
}
|
|
else
|
|
{
|
|
if (eregi("0$|2$|4$|6$|8$", $first)) {$AB='bgcolor="#9BB9FB"';}
|
|
else{$AB='bgcolor="#B9CBFD"';}
|
|
}
|
|
|
|
$called_printed=0;
|
|
$o=0;
|
|
while ($status_called_to_print > $o)
|
|
{
|
|
if ( ($count_statuses[$o] == "$Pstatus") and ($count_called[$o] == "$first") )
|
|
{
|
|
$called_printed++;
|
|
echo "<td $AB><font size=1> $count_count[$o]</td>";
|
|
}
|
|
|
|
|
|
$o++;
|
|
}
|
|
if (!$called_printed)
|
|
{echo "<td $AB><font size=1> </td>";}
|
|
$first++;
|
|
}
|
|
echo "<td><font size=1>$leads_in_sts[$sts]</td></tr>\n\n";
|
|
|
|
$sts++;
|
|
}
|
|
|
|
echo "<tr><td align=center colspan=2><b><font size=1>TOTAL</td>";
|
|
$first = $all_called_first;
|
|
while ($first <= $all_called_last)
|
|
{
|
|
if (eregi("1$|3$|5$|7$|9$", $first)) {$AB='bgcolor="#AFEEEE"';}
|
|
else{$AB='bgcolor="#E0FFFF"';}
|
|
echo "<td align=center $AB><b><font size=1>$all_called_count[$first]</td>";
|
|
$first++;
|
|
}
|
|
echo "<td align=center><b><font size=1>$leads_in_list</td></tr>\n";
|
|
|
|
echo "</table></center><br>\n";
|
|
|
|
|
|
|
|
|
|
|
|
echo "<center><b>\n";
|
|
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=811&list_id=$list_id\">Cliquez ici pour voir tous les CallBack Détient dans cette liste</a><BR><BR>\n";
|
|
echo "<br><br><a href=\"./list_download.php?list_id=$list_id\">Cliquez ici pour télécharger la liste</a><BR><BR>\n";
|
|
|
|
if ($LOGdelete_lists > 0)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=511&list_id=$list_id\">SUPPRIMER CETTE LISTE</a>\n";
|
|
}
|
|
if ($LOGuser_level >= 9)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=720000000000000&category=LISTES&stage=$list_id\">Cliquez ici pour voir Admin chages à cette liste</FONT>\n";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
######################
|
|
# ADD=3111 modify in-group info in the system
|
|
######################
|
|
|
|
if ($ADD==3111)
|
|
{
|
|
if ($LOGmodify_ingroups==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT * from vicidial_inbound_groups where group_id='$group_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$group_name = $row[1];
|
|
$group_color = $row[2];
|
|
$active = $row[3];
|
|
$web_form_address = stripslashes($row[4]);
|
|
$voicemail_ext = $row[5];
|
|
$next_agent_call = $row[6];
|
|
$fronter_display = $row[7];
|
|
$script_id = $row[8];
|
|
$get_call_launch = $row[9];
|
|
$xferconf_a_dtmf = $row[10];
|
|
$xferconf_a_number = $row[11];
|
|
$xferconf_b_dtmf = $row[12];
|
|
$xferconf_b_number = $row[13];
|
|
$drop_call_seconds = $row[14];
|
|
$drop_action = $row[15];
|
|
$drop_exten = $row[16];
|
|
$call_time_id = $row[17];
|
|
$after_hours_action = $row[18];
|
|
$after_hours_message_filename = $row[19];
|
|
$after_hours_exten = $row[20];
|
|
$after_hours_voicemail = $row[21];
|
|
$welcome_message_filename = $row[22];
|
|
$moh_context = $row[23];
|
|
$onhold_prompt_filename = $row[24];
|
|
$prompt_interval = $row[25];
|
|
$agent_alert_exten = $row[26];
|
|
$agent_alert_delay = $row[27];
|
|
$default_xfer_group = $row[28];
|
|
$queue_priority = $row[29];
|
|
$drop_inbound_group = $row[30];
|
|
$ingroup_recording_override = $row[31];
|
|
$ingroup_rec_filename = $row[32];
|
|
$afterhours_xfer_group = $row[33];
|
|
$qc_enabled = $row[34];
|
|
$qc_statuses = $row[35];
|
|
$qc_shift_id = $row[36];
|
|
$qc_get_record_launch = $row[37];
|
|
$qc_show_recording = $row[38];
|
|
$qc_web_form_address = stripslashes($row[39]);
|
|
$qc_script = $row[40];
|
|
$play_place_in_line = $row[41];
|
|
$play_estimate_hold_time = $row[42];
|
|
$hold_time_option = $row[43];
|
|
$hold_time_option_seconds = $row[44];
|
|
$hold_time_option_exten = $row[45];
|
|
$hold_time_option_voicemail = $row[46];
|
|
$hold_time_option_xfer_group = $row[47];
|
|
$hold_time_option_callback_filename = $row[48];
|
|
$hold_time_option_callback_list_id = $row[49];
|
|
$hold_recall_xfer_group = $row[50];
|
|
$no_delay_call_route = $row[51];
|
|
$play_welcome_message = $row[52];
|
|
$answer_sec_pct_rt_stat_one = $row[53];
|
|
$answer_sec_pct_rt_stat_two = $row[54];
|
|
$default_group_alias = $row[55];
|
|
|
|
|
|
##### get in-groups listings for dynamic pulldown
|
|
$stmt="SELECT group_id,group_name from vicidial_inbound_groups where group_id NOT IN('AGENTDIRECT') order by group_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$Xgroups_to_print = mysql_num_rows($rslt);
|
|
$Xgroups_menu='';
|
|
$Xgroups_selected=0;
|
|
$Dgroups_menu='';
|
|
$Dgroups_selected=0;
|
|
$Agroups_menu='';
|
|
$Agroups_selected=0;
|
|
$Hgroups_menu='';
|
|
$Hgroups_selected=0;
|
|
$Tgroups_menu='';
|
|
$Tgroups_selected=0;
|
|
$o=0;
|
|
while ($Xgroups_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$Xgroups_menu .= "<option ";
|
|
$Dgroups_menu .= "<option ";
|
|
$Agroups_menu .= "<option ";
|
|
$Tgroups_menu .= "<option ";
|
|
$Hgroups_menu .= "<option ";
|
|
if ($default_xfer_group == "$rowx[0]")
|
|
{
|
|
$Xgroups_menu .= "SELECTED ";
|
|
$Xgroups_selected++;
|
|
}
|
|
if ($drop_inbound_group == "$rowx[0]")
|
|
{
|
|
$Dgroups_menu .= "SELECTED ";
|
|
$Dgroups_selected++;
|
|
}
|
|
if ($afterhours_xfer_group == "$rowx[0]")
|
|
{
|
|
$Agroups_menu .= "SELECTED ";
|
|
$Agroups_selected++;
|
|
}
|
|
if ($hold_time_option_xfer_group == "$rowx[0]")
|
|
{
|
|
$Tgroups_menu .= "SELECTED ";
|
|
$Tgroups_selected++;
|
|
}
|
|
if ($hold_recall_xfer_group == "$rowx[0]")
|
|
{
|
|
$Hgroups_menu .= "SELECTED ";
|
|
$Hgroups_selected++;
|
|
}
|
|
$Xgroups_menu .= "value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$Dgroups_menu .= "value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
if ($group_id!=$rowx[0])
|
|
{
|
|
$Agroups_menu .= "value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$Tgroups_menu .= "value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$Hgroups_menu .= "value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
}
|
|
$o++;
|
|
}
|
|
if ($Xgroups_selected < 1)
|
|
{$Xgroups_menu .= "<option SELECTED value=\"---NONE---\">---NONE---</option>\n";}
|
|
else
|
|
{$Xgroups_menu .= "<option value=\"---NONE---\">---NONE---</option>\n";}
|
|
if ($Dgroups_selected < 1)
|
|
{$Dgroups_menu .= "<option SELECTED value=\"---NONE---\">---NONE---</option>\n";}
|
|
else
|
|
{$Dgroups_menu .= "<option value=\"---NONE---\">---NONE---</option>\n";}
|
|
if ($Agroups_selected < 1)
|
|
{$Agroups_menu .= "<option SELECTED value=\"---NONE---\">---NONE---</option>\n";}
|
|
else
|
|
{$Agroups_menu .= "<option value=\"---NONE---\">---NONE---</option>\n";}
|
|
if ($Tgroups_selected < 1)
|
|
{$Tgroups_menu .= "<option SELECTED value=\"---NONE---\">---NONE---</option>\n";}
|
|
else
|
|
{$Tgroups_menu .= "<option value=\"---NONE---\">---NONE---</option>\n";}
|
|
if ($Hgroups_selected < 1)
|
|
{$Hgroups_menu .= "<option SELECTED value=\"---NONE---\">---NONE---</option>\n";}
|
|
else
|
|
{$Hgroups_menu .= "<option value=\"---NONE---\">---NONE---</option>\n";}
|
|
|
|
|
|
echo "<br>MODIFIER UN ENREGISTREMENT DE GROUPES: $row[0]<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=4111>\n";
|
|
echo "<input type=hidden name=group_id value=\"$row[0]\">\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>ID du groupe: </td><td align=left><b>$row[0]</b>$NWB#vicidial_inbound_groups-group_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom du groupe: </td><td align=left><input type=text name=group_name size=30 maxlength=30 value=\"$row[1]\">$NWB#vicidial_inbound_groups-group_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Couleur du groupe: </td><td align=left bgcolor=\"$row[2]\" id=\"group_color_td\"><input type=text name=group_color size=7 maxlength=7 value=\"$row[2]\">$NWB#vicidial_inbound_groups-group_color$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Actif: </td><td align=left><select size=1 name=active><option>Y</option><option>N</option><option SELECTED>$active</option></select>$NWB#vicidial_inbound_groups-active$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Formulaire Web: </td><td align=left><input type=text name=web_form_address size=70 maxlength=255 value=\"$web_form_address\">$NWB#vicidial_inbound_groups-web_form_address$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Appeler l'agent suivant : </td><td align=left><select size=1 name=next_agent_call><option >random</option><option>oldest_call_start</option><option>oldest_call_finish</option><option>overall_user_level</option><option>inbound_group_rank</option><option>campaign_rank</option><option>fewest_calls</option><option>fewest_calls_campaign</option><option SELECTED>$next_agent_call</option></select>$NWB#vicidial_inbound_groups-next_agent_call$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#BDFFBD><td align=right>File d'attente de priorité:</td><td align=left><select size=1 name=queue_priority>\n";
|
|
$n=99;
|
|
while ($n>=-99)
|
|
{
|
|
$dtl = 'Even';
|
|
if ($n<0) {$dtl = 'Lower';}
|
|
if ($n>0) {$dtl = 'Higher';}
|
|
if ($n == $queue_priority)
|
|
{echo "<option SELECTED value=\"$n\">$n - $dtl</option>\n";}
|
|
else
|
|
{echo "<option value=\"$n\">$n - $dtl</option>\n";}
|
|
$n--;
|
|
}
|
|
echo "</select> $NWB#vicidial_inbound_groups-queue_priority$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Affichage de l'enseigne: </td><td align=left><select size=1 name=fronter_display><option>Y</option><option>N</option><option SELECTED>$fronter_display</option></select>$NWB#vicidial_inbound_groups-fronter_display$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right><a href=\"$PHP_SELF?ADD=3111111&script_id=$script_id\">Script</a>: </td><td align=left><select size=1 name=script_id>\n";
|
|
echo "$scripts_list";
|
|
echo "<option selected value=\"$script_id\">$script_id - $scriptname_list[$script_id]</option>\n";
|
|
echo "</select>$NWB#vicidial_inbound_groups-ingroup_script$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Lancer l'appel: </td><td align=left><select size=1 name=get_call_launch><option selected>NONE</option><option>SCRIPT</option><option>WEBFORM</option><option selected>$get_call_launch</option></select>$NWB#vicidial_inbound_groups-get_call_launch$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>DTMF Transfert-Conf 1: </td><td align=left><input type=text name=xferconf_a_dtmf size=20 maxlength=50 value=\"$xferconf_a_dtmf\">$NWB#vicidial_inbound_groups-xferconf_a_dtmf$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>numéro de Transfer-Conf 1: </td><td align=left><input type=text name=xferconf_a_number size=20 maxlength=50 value=\"$xferconf_a_number\">$NWB#vicidial_inbound_groups-xferconf_a_dtmf$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>DTMF Transfert-Conf 2: </td><td align=left><input type=text name=xferconf_b_dtmf size=20 maxlength=50 value=\"$xferconf_b_dtmf\">$NWB#vicidial_inbound_groups-xferconf_a_dtmf$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>numéro de Transfer-Conf 2: </td><td align=left><input type=text name=xferconf_b_number size=20 maxlength=50 value=\"$xferconf_b_number\">$NWB#vicidial_inbound_groups-xferconf_a_dtmf$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#99FFCC><td align=right>Temps avant abandon de l'appel: </td><td align=left><input type=text name=drop_call_seconds size=5 maxlength=4 value=\"$drop_call_seconds\">$NWB#vicidial_inbound_groups-drop_call_seconds$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#99FFCC><td align=right>Drop d'action:</td><td align=left><select size=1 name=drop_action><option>HANGUP</option><option>MESSAGE</option><option>VOICEMAIL</option><option>IN_GROUP</option><option SELECTED>$drop_action</option></select>$NWB#vicidial_inbound_groups-drop_action$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#99FFCC><td align=right>Extension d'abandon: </td><td align=left><input type=text name=drop_exten size=10 maxlength=20 value=\"$drop_exten\">$NWB#vicidial_inbound_groups-drop_exten$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#99FFCC><td align=right>Boîte vocale: </td><td align=left><input type=text name=voicemail_ext size=10 maxlength=10 value=\"$voicemail_ext\">$NWB#vicidial_inbound_groups-voicemail_ext$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#99FFCC><td align=right>Drop de transfert du Groupe:</td><td align=left><select size=1 name=drop_inbound_group>";
|
|
echo "$Dgroups_menu";
|
|
echo "</select>$NWB#vicidial_inbound_groups-drop_inbound_group$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right><a href=\"$PHP_SELF?ADD=311111111&call_time_id=$call_time_id\">Temps D'Appel :</a></td><td align=left><select size=1 name=call_time_id>\n";
|
|
echo "$call_times_list";
|
|
echo "<option selected value=\"$call_time_id\">$call_time_id - $call_timename_list[$call_time_id]</option>\n";
|
|
echo "</select>$NWB#vicidial_inbound_groups-call_time_id$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#CCFFFF><td align=right>Après Action D'Heures :</td><td align=left><select size=1 name=after_hours_action><option>HANGUP</option><option>MESSAGE</option><option>EXTENSION</option><option>VOICEMAIL</option><option>IN_GROUP</option><option SELECTED>$after_hours_action</option></select>$NWB#vicidial_inbound_groups-after_hours_action$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#CCFFFF><td align=right>Après Nom de fichier De Message D'Heures :</td><td align=left><input type=text name=after_hours_message_filename size=20 maxlength=50 value=\"$after_hours_message_filename\">$NWB#vicidial_inbound_groups-after_hours_message_filename$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#CCFFFF><td align=right>Après Prolongation D'Heures :</td><td align=left><input type=text name=after_hours_exten size=10 maxlength=20 value=\"$after_hours_exten\">$NWB#vicidial_inbound_groups-after_hours_exten$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#CCFFFF><td align=right>Après Des Heures Boîte vocale :</td><td align=left><input type=text name=after_hours_voicemail size=10 maxlength=20 value=\"$after_hours_voicemail\">$NWB#vicidial_inbound_groups-after_hours_voicemail$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#CCFFFF><td align=right>Après les heures d'ouverture de transfert de Groupe:</td><td align=left><select size=1 name=afterhours_xfer_group>";
|
|
echo "$Agroups_menu";
|
|
echo "</select>$NWB#vicidial_inbound_groups-afterhours_xfer_group$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom de fichier Bienvenu De Message :</td><td align=left><input type=text name=welcome_message_filename size=20 maxlength=50 value=\"$welcome_message_filename\">$NWB#vicidial_inbound_groups-welcome_message_filename$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Play Message de bienvenue:</td><td align=left><select size=1 name=play_welcome_message><option>ALWAYS</option><option>NEVER</option><option>IF_WAIT_ONLY</option><option>YES_UNLESS_NODELAY</option><option SELECTED>$play_welcome_message</option></select>$NWB#vicidial_inbound_groups-play_welcome_message$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Musique Sur Le Contexte De Prise :</td><td align=left><input type=text name=moh_context size=10 maxlength=20 value=\"$moh_context\">$NWB#vicidial_inbound_groups-moh_context$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Sur Le Nom de fichier De Message de sollicitation De Prise :</td><td align=left><input type=text name=onhold_prompt_filename size=20 maxlength=50 value=\"$onhold_prompt_filename\">$NWB#vicidial_inbound_groups-onhold_prompt_filename$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Sur L'Intervalle De Message de sollicitation De Prise :</td><td align=left><input type=text name=prompt_interval size=5 maxlength=5 value=\"$prompt_interval\">$NWB#vicidial_inbound_groups-prompt_interval$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Jouer en ligne Lieu:</td><td align=left><select size=1 name=play_place_in_line><option>Y</option><option>N</option><option SELECTED>$play_place_in_line</option></select>$NWB#vicidial_inbound_groups-play_place_in_line$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Hold estimée Play Time:</td><td align=left><select size=1 name=play_estimate_hold_time><option>Y</option><option>N</option><option SELECTED>$play_estimate_hold_time</option></select>$NWB#vicidial_inbound_groups-play_estimate_hold_time$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#CCFFFF><td align=right>Hold Time Option:</td><td align=left><select size=1 name=hold_time_option><option>NONE</option><option>EXTENSION</option><option>VOICEMAIL</option><option>IN_GROUP</option><option>CALLERID_CALLBACK</option><option>DROP_ACTION</option><option>PRESS_VMAIL</option><option SELECTED>$hold_time_option</option></select>$NWB#vicidial_inbound_groups-hold_time_option$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#CCFFFF><td align=right>Hold Time Option Seconds:</td><td align=left><input type=text name=hold_time_option_seconds size=5 maxlength=5 value=\"$hold_time_option_seconds\">$NWB#vicidial_inbound_groups-hold_time_option_seconds$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#CCFFFF><td align=right>Hold Time Option Extension:</td><td align=left><input type=text name=hold_time_option_exten size=20 maxlength=20 value=\"$hold_time_option_exten\">$NWB#vicidial_inbound_groups-hold_time_option_exten$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#CCFFFF><td align=right>Hold Time Option de messagerie vocale:</td><td align=left><input type=text name=hold_time_option_voicemail size=20 maxlength=20 value=\"$hold_time_option_voicemail\">$NWB#vicidial_inbound_groups-hold_time_option_voicemail$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#CCFFFF><td align=right>Hold Time Option de transfert en groupe:</td><td align=left><select size=1 name=hold_time_option_xfer_group>";
|
|
echo "$Tgroups_menu";
|
|
echo "</select>$NWB#vicidial_inbound_groups-hold_time_option_xfer_group$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#CCFFFF><td align=right>Hold Time Option Callback Filename:</td><td align=left><input type=text name=hold_time_option_callback_filename size=20 maxlength=20 value=\"$hold_time_option_callback_filename\">$NWB#vicidial_inbound_groups-hold_time_option_callback_filename$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#CCFFFF><td align=right>Hold Time Option Callback Liste ID:</td><td align=left><input type=text name=hold_time_option_callback_list_id size=14 maxlength=14 value=\"$hold_time_option_callback_list_id\">$NWB#vicidial_inbound_groups-hold_time_option_callback_list_id$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Prolongation Alerte D'Agent :</td><td align=left><input type=text name=agent_alert_exten size=10 maxlength=20 value=\"$agent_alert_exten\">$NWB#vicidial_inbound_groups-agent_alert_exten$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>L'Alerte D'Agent Retardent :</td><td align=left><input type=text name=agent_alert_delay size=6 maxlength=6 value=\"$agent_alert_delay\">$NWB#vicidial_inbound_groups-agent_alert_delay$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Groupe De Transfert De Défaut :</td><td align=left><select size=1 name=default_xfer_group>";
|
|
echo "$Xgroups_menu";
|
|
echo "</select>$NWB#vicidial_inbound_groups-default_xfer_group$NWE</td></tr>\n";
|
|
|
|
##### get groups_alias listings for dynamic default group alias pulldown list menu
|
|
$stmt="SELECT group_alias_id,group_alias_name from groups_alias where active='Y' order by group_alias_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$group_alias_to_print = mysql_num_rows($rslt);
|
|
$group_alias_menu='';
|
|
$group_alias_selected=0;
|
|
$o=0;
|
|
while ($group_alias_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$group_alias_menu .= "<option ";
|
|
if ($default_group_alias == "$rowx[0]")
|
|
{
|
|
$group_alias_menu .= "SELECTED ";
|
|
$group_alias_selected++;
|
|
}
|
|
$group_alias_menu .= "value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Groupe par défaut Alias: </td><td align=left><select size=1 name=default_group_alias>";
|
|
echo "<option value=\"\">NONE</option>";
|
|
echo "$group_alias_menu";
|
|
echo "</select>$NWB#vicidial_inbound_groups-default_group_alias$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Hold Recall transfert en groupe:</td><td align=left><select size=1 name=hold_recall_xfer_group>";
|
|
echo "$Hgroups_menu";
|
|
echo "</select>$NWB#vicidial_inbound_groups-hold_recall_xfer_group$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Pas de délai d'appel Route:</td><td align=left><select size=1 name=no_delay_call_route><option>Y</option><option>N</option><option SELECTED>$no_delay_call_route</option></select>$NWB#vicidial_inbound_groups-no_delay_call_route$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>En groupe enregistrement Override:</td><td align=left><select size=1 name=ingroup_recording_override><option>DISABLED</option><option>NEVER</option><option>ONDEMAND</option><option>ALLCALLS</option><option>ALLFORCE</option><option SELECTED>$ingroup_recording_override</option></select>$NWB#vicidial_inbound_groups-ingroup_recording_override$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>En groupe d'enregistrement du fichier:</td><td align=left><input type=text name=ingroup_rec_filename size=50 maxlength=50 value=\"$ingroup_rec_filename\">$NWB#vicidial_inbound_groups-ingroup_rec_filename$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Stats Pourcentage des appels dans les X secondes 1: </td><td align=left><input type=text name=answer_sec_pct_rt_stat_one size=5 maxlength=5 value=\"$answer_sec_pct_rt_stat_one\">$NWB#vicidial_inbound_groups-answer_sec_pct_rt_stat_one$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Stats Pourcentage des appels dans les X secondes 2: </td><td align=left><input type=text name=answer_sec_pct_rt_stat_two size=5 maxlength=5 value=\"$answer_sec_pct_rt_stat_two\">$NWB#vicidial_inbound_groups-answer_sec_pct_rt_stat_one$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
|
|
if ($SSqc_features_active > 0)
|
|
{
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2> </td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2> Inbound Groupe QC Paramètres: </td></tr>\n";
|
|
|
|
##### get status listings for dynamic pulldown
|
|
$qc_statuses = preg_replace("/^ | -$/","",$qc_statuses);
|
|
$QCstatuses = explode(" ", $qc_statuses);
|
|
$QCs_to_print = (count($QCstatuses) -0);
|
|
$stmt="SELECT * from vicidial_statuses where status NOT IN('QUEUE','INCALL') order by status";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$statuses_to_print = mysql_num_rows($rslt);
|
|
$qc_statuses_list='';
|
|
|
|
$o=0;
|
|
while ($statuses_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$qc_statuses_list .= "<input type=\"checkbox\" name=\"qc_statuses[]\" value=\"$rowx[0]\"";
|
|
$p=0;
|
|
while ($p < $QCs_to_print)
|
|
{
|
|
if ($rowx[0] == $QCstatuses[$p])
|
|
{
|
|
$qc_statuses_list .= " CHECKED";
|
|
}
|
|
$p++;
|
|
}
|
|
$qc_statuses_list .= "> $rowx[0] - $rowx[1]<BR>\n";
|
|
|
|
$o++;
|
|
}
|
|
|
|
$stmt="SELECT distinct(status),status_name from vicidial_campaign_statuses order by status";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$Cstatuses_to_print = mysql_num_rows($rslt);
|
|
|
|
$o=0;
|
|
while ($Cstatuses_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
if (!ereg("\"$rowx[0]\"",$qc_statuses_list))
|
|
{
|
|
$qc_statuses_list .= "<input type=\"checkbox\" name=\"qc_statuses[]\" value=\"$rowx[0]\"";
|
|
$p=0;
|
|
while ($p < $QCs_to_print)
|
|
{
|
|
if ($rowx[0] == $QCstatuses[$p])
|
|
{
|
|
$qc_statuses_list .= " CHECKED";
|
|
}
|
|
$p++;
|
|
}
|
|
$qc_statuses_list .= "> $rowx[0] - $rowx[1]<BR>\n";
|
|
}
|
|
$o++;
|
|
}
|
|
|
|
##### get scripts listings for pulldown
|
|
$stmt="SELECT script_id,script_name from vicidial_scripts order by script_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$scripts_to_print = mysql_num_rows($rslt);
|
|
$QCscripts_list="";
|
|
$o=0;
|
|
while ($scripts_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$QCscripts_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$scriptname_list["$rowx[0]"] = "$rowx[1]";
|
|
$o++;
|
|
}
|
|
##### get shifts listings for pulldown
|
|
$stmt="SELECT shift_id,shift_name from vicidial_shifts order by shift_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$shifts_to_print = mysql_num_rows($rslt);
|
|
$QCshifts_list="";
|
|
$o=0;
|
|
while ($shifts_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$QCshifts_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$shiftname_list["$rowx[0]"] = "$rowx[1]";
|
|
$o++;
|
|
}
|
|
|
|
echo "<tr bgcolor=#9BB9FB><td align=right>QC Enabled:</td><td><select size=1 name=qc_enabled><option>Y</option><option>N</option><option SELECTED>$qc_enabled</option></select> $NWB#vicidial_inbound_groups-qc_enabled$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#9BB9FB><td align=right>QC Statut:<BR> $NWB#vicidial_inbound_groups-qc_statuses$NWE</td><td>$qc_statuses_list</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>QC WebForm:</td><td align=left><input type=text name=qc_web_form_address size=70 maxlength=255 value=\"$qc_web_form_address\">$NWB#vicidial_inbound_groups-qc_web_form_address$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B9CBFD><td align=right><a href=\"$PHP_SELF?ADD=3111111&script_id=$script_id\">QC Script</a>: </td><td align=left><select size=1 name=qc_script>\n";
|
|
echo "$QCscripts_list";
|
|
echo "<option selected value=\"$qc_script\">$qc_script - $scriptname_list[$qc_script]</option>\n";
|
|
echo "</select>$NWB#vicidial_inbound_groups-qc_script$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B9CBFD><td align=right><a href=\"$PHP_SELF?ADD=331111111&shift_id=$qc_shift_id\">QC Shift</a>: </td><td align=left><select size=1 name=qc_shift_id>\n";
|
|
echo "$QCshifts_list";
|
|
echo "<option selected value=\"$qc_shift_id\">$qc_shift_id - $shiftname_list[$qc_shift_id]</option>\n";
|
|
echo "</select>$NWB#vicidial_inbound_groups-qc_shift_id$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>Get Lancement Record QC: </td><td><select size=1 name=qc_get_record_launch><option>NONE</option><option>SCRIPT</option><option>WEBFORM</option><option>QCSCRIPT</option><option>QCWEBFORM</option><option SELECTED>$qc_get_record_launch</option></select> $NWB#vicidial_inbound_groups-qc_get_record_launch$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=right>QC Voir l'enregistrement: </td><td><select size=1 name=qc_show_recording><option>Y</option><option>N</option><option SELECTED>$qc_show_recording</option></select> $NWB#vicidial_inbound_groups-qc_show_recording$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B9CBFD><td align=center colspan=2><input type=submit name=submit value=VALIDER></td></tr>\n";
|
|
}
|
|
|
|
echo "</table>\n";
|
|
echo "<BR></center></FORM><br>\n";
|
|
|
|
|
|
### list of agent rank or skill-level for this inbound group
|
|
echo "<center>\n";
|
|
echo "<br><b>AGENT RANKS FOR THIS ENTRANT GROUP:</b><br>\n";
|
|
echo "<TABLE width=400 cellspacing=3>\n";
|
|
echo "<tr><td>USER</td><td> RANK</td><td> CALLS TODAY</td></tr>\n";
|
|
|
|
$stmt="SELECT user,group_rank,calls_today from vicidial_inbound_group_agents where group_id='$group_id'";
|
|
$rsltx=mysql_query($stmt, $link);
|
|
$users_to_print = mysql_num_rows($rsltx);
|
|
|
|
$o=0;
|
|
while ($users_to_print > $o) {
|
|
$rowx=mysql_fetch_row($rsltx);
|
|
$o++;
|
|
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=3&user=$rowx[0]\">$rowx[0]</a></td><td><font size=1>$rowx[1]</td><td><font size=1>$rowx[2]</td></tr>\n";
|
|
}
|
|
|
|
echo "</table></center><br>\n";
|
|
|
|
echo "</table></center><br>\n";
|
|
|
|
echo "<a href=\"./AST_CLOSERstats.php?group[]=$group_id\">Cliquez ici pour voir un rapport de ce groupe d'entrants</a><BR><BR>\n";
|
|
|
|
echo "<center><b>\n";
|
|
|
|
if ($LOGdelete_ingroups > 0)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=53&campaign_id=$group_id&stage=IN\">EMERGENCY VDAC CLEAR FOR THIS IN-GROUP</a><BR><BR>\n";
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=5111&group_id=$group_id\">SUPPRIMER CE IN-GROUP</a>\n";
|
|
}
|
|
if ($LOGuser_level >= 9)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=720000000000000&category=INGROUPS&stage=$group_id\">Cliquez ici pour voir Admin chages à ce groupe en</FONT>\n";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
######################
|
|
# ADD=3311 modify did info in the system
|
|
######################
|
|
|
|
if ($ADD==3311)
|
|
{
|
|
if ($LOGmodify_dids==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT * from vicidial_inbound_dids where did_id='$did_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$did_id = $row[0];
|
|
$did_pattern = $row[1];
|
|
$did_description = $row[2];
|
|
$did_active = $row[3];
|
|
$did_route = $row[4];
|
|
$extension = $row[5];
|
|
$exten_context = $row[6];
|
|
$voicemail_ext = $row[7];
|
|
$phone = $row[8];
|
|
$server_ip = $row[9];
|
|
$user = $row[10];
|
|
$user_unavailable_action = $row[11];
|
|
$user_route_settings_ingroup = $row[12];
|
|
$group_id = $row[13];
|
|
$call_handle_method = $row[14];
|
|
$agent_search_method = $row[15];
|
|
$list_id = $row[16];
|
|
$campaign_id = $row[17];
|
|
$phone_code = $row[18];
|
|
|
|
|
|
$stmt="SELECT campaign_id,campaign_name from vicidial_campaigns order by campaign_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$campaigns_to_print = mysql_num_rows($rslt);
|
|
$campaigns_list='';
|
|
$o=0;
|
|
while ($campaigns_to_print > $o) {
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$campaigns_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
|
|
##### get in-groups listings for dynamic pulldown
|
|
$stmt="SELECT group_id,group_name from vicidial_inbound_groups order by group_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$Xgroups_to_print = mysql_num_rows($rslt);
|
|
$Xgroups_menu='';
|
|
$Xgroups_selected=0;
|
|
$o=0;
|
|
while ($Xgroups_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$Xgroups_menu .= "<option ";
|
|
if ($user_route_settings_ingroup == "$rowx[0]")
|
|
{
|
|
$Xgroups_menu .= "SELECTED ";
|
|
$Xgroups_selected++;
|
|
}
|
|
$Xgroups_menu .= "value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
if ($Xgroups_selected < 1)
|
|
{$Xgroups_menu .= "<option SELECTED value=\"---NONE---\">---NONE---</option>\n";}
|
|
else
|
|
{$Xgroups_menu .= "<option value=\"---NONE---\">---NONE---</option>\n";}
|
|
|
|
|
|
##### get in-groups listings for dynamic pulldown
|
|
$stmt="SELECT group_id,group_name from vicidial_inbound_groups where group_id NOT IN('AGENTDIRECT') order by group_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$Dgroups_to_print = mysql_num_rows($rslt);
|
|
$Dgroups_menu='';
|
|
$Dgroups_selected=0;
|
|
$o=0;
|
|
while ($Dgroups_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$Dgroups_menu .= "<option ";
|
|
if ($group_id == "$rowx[0]")
|
|
{
|
|
$Dgroups_menu .= "SELECTED ";
|
|
$Dgroups_selected++;
|
|
}
|
|
$Dgroups_menu .= "value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
if ($Dgroups_selected < 1)
|
|
{$Dgroups_menu .= "<option SELECTED value=\"---NONE---\">---NONE---</option>\n";}
|
|
else
|
|
{$Dgroups_menu .= "<option value=\"---NONE---\">---NONE---</option>\n";}
|
|
|
|
|
|
echo "<br>Modifier un DID RECORD:$row[0]<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=4311>\n";
|
|
echo "<input type=hidden name=did_id value=\"$did_id\">\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>DID Extension:</td><td align=left><input type=text name=did_pattern size=30 maxlength=50 value=\"$did_pattern\">$NWB#vicidial_inbound_dids-did_pattern$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>A Description:</td><td align=left><input type=text name=did_description size=40 maxlength=50 value=\"$did_description\">$NWB#vicidial_inbound_dids-did_description$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Actif: </td><td align=left><select size=1 name=did_active><option>Y</option><option>N</option><option SELECTED>$did_active</option></select>$NWB#vicidial_inbound_dids-did_active$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#99FFCC><td align=right>Route de DID:</td><td align=left><select size=1 name=did_route><option>AGENT</option><option>EXTEN</option><option>VOICEMAIL</option><option>PHONE</option><option>IN_GROUP</option><option SELECTED>$did_route</option></select>$NWB#vicidial_inbound_dids-did_route$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Extension:</td><td align=left><input type=text name=extension size=40 maxlength=50 value=\"$extension\">$NWB#vicidial_inbound_dids-extension$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Extension Contexte:</td><td align=left><input type=text name=exten_context size=40 maxlength=50 value=\"$exten_context\">$NWB#vicidial_inbound_dids-exten_context$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Boîte vocale:</td><td align=left><input type=text name=voicemail_ext size=10 maxlength=10 value=\"$voicemail_ext\">$NWB#vicidial_inbound_dids-voicemail_ext$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Téléphone Extension:</td><td align=left><input type=text name=phone size=20 maxlength=100 value=\"$phone\">$NWB#vicidial_inbound_dids-phone$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>IP du serveur: </td><td align=left><select size=1 name=server_ip>\n";
|
|
echo "$servers_list";
|
|
echo "<option SELECTED>$server_ip</option>\n";
|
|
echo "</select>$NWB#vicidial_inbound_dids-server_ip$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Utilisateur Agent:</td><td align=left><input type=text name=user size=20 maxlength=20 value=\"$user\">$NWB#vicidial_inbound_dids-user$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Unavailable Action utilisateur:</td><td align=left><select size=1 name=user_unavailable_action><option>EXTEN</option><option>VOICEMAIL</option><option>PHONE</option><option>IN_GROUP</option><option SELECTED>$user_unavailable_action</option></select>$NWB#vicidial_inbound_dids-user_unavailable_action$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Utilisateur Settings En Route-Group:</td><td align=left><select size=1 name=user_route_settings_ingroup>";
|
|
echo "$Xgroups_menu";
|
|
echo "</select>$NWB#vicidial_inbound_dids-user_route_settings_ingroup$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right><a href=\"$PHP_SELF?ADD=3111&group_id=$group_id\">In-ID du groupe</a>: </td><td align=left><select size=1 name=group_id>";
|
|
echo "$Dgroups_menu";
|
|
echo "</select>$NWB#vicidial_inbound_dids-group_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>In-Call Groupe Handle Méthode:</td><td align=left><select size=1 name=call_handle_method><option>CID</option><option>CIDLOOKUP</option><option>CIDLOOKUPRL</option><option>CIDLOOKUPRC</option><option>ANI</option><option>ANILOOKUP</option><option>ANILOOKUPRL</option><option>CLOSER</option><option>3DIGITID</option><option>4DIGITID</option><option>5DIGITID</option><option>10DIGITID</option><option SELECTED>$call_handle_method</option></select>$NWB#vicidial_inbound_dids-call_handle_method$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>En groupe Agent Méthode de recherche:</td><td align=left><select size=1 name=agent_search_method><option value=\"LB\">LB - Load Balanced</option><option value=\"LO\">LO - Load Balanced Overflow</option><option value=\"SO\">SO - Server Only</option><option SELECTED>$agent_search_method</option></select>$NWB#vicidial_inbound_dids-agent_search_method$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>In-Liste du groupe ID:</td><td align=left><input type=text name=list_id size=14 maxlength=14 value=\"$list_id\">$NWB#vicidial_inbound_dids-list_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>En-groupe ID de la campagne:</td><td align=left><select size=1 name=campaign_id>\n";
|
|
echo "$campaigns_list";
|
|
echo "<option SELECTED>$campaign_id</option>\n";
|
|
echo "</select>$NWB#vicidial_inbound_dids-campaign_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>En-groupe Téléphone Code:</td><td align=left><input type=text name=phone_code size=14 maxlength=14 value=\"$phone_code\">$NWB#vicidial_inbound_dids-phone_code$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</table>\n";
|
|
echo "<BR></center></FORM><br>\n";
|
|
|
|
|
|
|
|
if ($LOGdelete_dids > 0)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=5311&did_id=$did_id\">SUPPRIMER CETTE DID</a>\n";
|
|
}
|
|
if ($LOGuser_level >= 9)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=720000000000000&category=DIDS&stage=$did_id\">Cliquez ici pour voir Admin chages à ce DID</FONT>\n";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
######################
|
|
# ADD=31111 modify remote agents info in the system
|
|
######################
|
|
|
|
if ($ADD==31111)
|
|
{
|
|
if ($LOGmodify_remoteagents==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT * from vicidial_remote_agents where remote_agent_id='$remote_agent_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$remote_agent_id = $row[0];
|
|
$user_start = $row[1];
|
|
$number_of_lines = $row[2];
|
|
$server_ip = $row[3];
|
|
$conf_exten = $row[4];
|
|
$status = $row[5];
|
|
$campaign_id = $row[6];
|
|
|
|
echo "<br>MODIFIER UN ENREGISTREMENT D'AGENT DISTANT: $row[0]<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=41111>\n";
|
|
echo "<input type=hidden name=remote_agent_id value=\"$row[0]\">\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Début des ID utilisateurs: </td><td align=left><input type=text name=user_start size=6 maxlength=6 value=\"$user_start\"> (nombres seulement, incremented)$NWB#vicidial_remote_agents-user_start$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nombre de lignes: </td><td align=left><input type=text name=number_of_lines size=3 maxlength=3 value=\"$number_of_lines\"> (nombres seulement)$NWB#vicidial_remote_agents-number_of_lines$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>IP du serveur: </td><td align=left><select size=1 name=server_ip>\n";
|
|
echo "$servers_list";
|
|
echo "<option SELECTED>$row[3]</option>\n";
|
|
echo "</select>$NWB#vicidial_remote_agents-server_ip$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Extension externe: </td><td align=left><input type=text name=conf_exten size=20 maxlength=20 value=\"$conf_exten\"> (numéro du dial plan pour atteindre les agents)$NWB#vicidial_remote_agents-conf_exten$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Etat: </td><td align=left><select size=1 name=status><option SELECTED>ACTIF</option><option>INACTIVE</option><option SELECTED>$status</option></select>$NWB#vicidial_remote_agents-status$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Campagne: </td><td align=left><select size=1 name=campaign_id>\n";
|
|
echo "$campaigns_list";
|
|
echo "<option SELECTED>$campaign_id</option>\n";
|
|
echo "</select>$NWB#vicidial_remote_agents-campaign_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Groupes entrants: </td><td align=left>\n";
|
|
echo "$groups_list";
|
|
echo "$NWB#vicidial_remote_agents-closer_campaigns$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
echo "NOTE: Il peut prendre jusqu'à 30 secondes pour que les chagements soumis sur cette écran soient pris en compte\n";
|
|
|
|
|
|
if ($LOGdelete_remote_agents > 0)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=51111&remote_agent_id=$remote_agent_id\">SUPPRIMER CET AGENT DISTANT</a>\n";
|
|
}
|
|
if ($LOGuser_level >= 9)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=720000000000000&category=REMOTEAGENTS&stage=$remote_agent_id\">Cliquez ici pour voir Admin chages à cette télécommande agent</FONT>\n";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=311111 modify user group info in the system
|
|
######################
|
|
|
|
if ($ADD==311111)
|
|
{
|
|
if ($LOGmodify_usergroups==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT * from vicidial_user_groups where user_group='$user_group';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$user_group = $row[0];
|
|
$group_name = $row[1];
|
|
$GROUP_shifts = $row[5];
|
|
$forced_timeclock_login = $row[6];
|
|
$shift_enforcement = $row[7];
|
|
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>MODIFIER UN ENREGISTREMENT DE GROUPE D'UTILISATEURS<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=411111>\n";
|
|
echo "<input type=hidden name=OLDuser_group value=\"$user_group\">\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Groupe: </td><td align=left><input type=text name=user_group size=15 maxlength=20 value=\"$user_group\"> (pas d'espace ni de ponctuation)$NWB#vicidial_user_groups-user_group$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Description: </td><td align=left><input type=text name=group_name size=40 maxlength=40 value=\"$group_name\"> (Description du groupe)$NWB#vicidial_user_groups-group_name$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Force timeclock Login: </td><td align=left><select size=1 name=forced_timeclock_login><option SELECTED>N</option><option>Y</option><option>ADMIN_EXEMPT</option><option SELECTED>$forced_timeclock_login</option></select>$NWB#vicidial_user_groups-forced_timeclock_login$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Shift exécution: </td><td align=left><select size=1 name=shift_enforcement><option SELECTED>OFF</option><option>START</option><option>ALL</option><option>ADMIN_EXEMPT</option><option SELECTED>$shift_enforcement</option></select>$NWB#vicidial_user_groups-shift_enforcement$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Campagnes autorisées: <BR>$NWB#vicidial_user_groups-allowed_campaigns$NWE</td><td align=left>\n";
|
|
echo "$campaigns_list <BR> ";
|
|
echo "</td></tr>\n";
|
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Groupe de changements:<BR>$NWB#vicidial_user_groups-group_shifts$NWE</td><td align=left>\n";
|
|
$stmt="SELECT shift_id,shift_name from vicidial_shifts order by shift_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$shifts_to_print = mysql_num_rows($rslt);
|
|
$o=0;
|
|
while ($shifts_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$shift_id_value = $rowx[0];
|
|
$shift_name_value = $rowx[1];
|
|
echo "<input type=\"checkbox\" name=\"group_shifts[]\" value=\"$shift_id_value\"";
|
|
$p=0;
|
|
while ($p<100)
|
|
{
|
|
if (ereg(" $shift_id_value ", $GROUP_shifts))
|
|
{
|
|
echo " CHECKED";
|
|
}
|
|
$p++;
|
|
}
|
|
echo "> <a href=\"$PHP_SELF?ADD=331111111&shift_id=$shift_id_value\">$shift_id_value</a> - $shift_name_value<BR>\n";
|
|
$o++;
|
|
}
|
|
echo " <BR> </td></tr>\n";
|
|
|
|
if ($SSqc_features_active > 0)
|
|
{
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>QC permis Campagnes:<BR>$NWB#vicidial_user_groups-qc_allowed_campaigns$NWE</td><td align=left>\n";
|
|
echo "$qc_campaigns_list";
|
|
echo " <BR> </td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>QC permis l'arrivée des groupes:<BR>$NWB#vicidial_user_groups-qc_allowed_inbound_groups$NWE</td><td align=left>\n";
|
|
echo "$qc_groups_list";
|
|
echo " <BR> </td></tr>\n";
|
|
}
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
|
|
|
|
### list of users in this user group
|
|
|
|
$active_confs = 0;
|
|
$stmt="SELECT user,full_name,user_level,active from vicidial_users where user_group='$user_group'";
|
|
$rsltx=mysql_query($stmt, $link);
|
|
$users_to_print = mysql_num_rows($rsltx);
|
|
|
|
echo "<center>\n";
|
|
echo "<br><b>UTILISATEURS APPARTENANT A CE GROUPE D'UTILISATEURS: $users_to_print</b><br>\n";
|
|
echo "<TABLE width=400 cellspacing=3>\n";
|
|
echo "<tr><td>USER</td><td>FULL NAME</td><td>NIVEAU</td><td>ACTIF</td></tr>\n";
|
|
|
|
$o=0;
|
|
while ($users_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rsltx);
|
|
$o++;
|
|
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
|
|
echo "<tr $bgcolor>\n";
|
|
echo "<td><font size=1><a href=\"$PHP_SELF?ADD=3&user=$rowx[0]\">$rowx[0]</a></td>\n";
|
|
echo "<td><font size=1>$rowx[1]</td>\n";
|
|
echo "<td><font size=1>$rowx[2]</td>\n";
|
|
echo "<td><font size=1>$rowx[3]</td>\n";
|
|
echo "</tr>\n";
|
|
}
|
|
|
|
echo "</table></center><br>\n";
|
|
|
|
|
|
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=8111&user_group=$user_group\">Cliquez ici pour voir tous les CallBack Détient dans ce groupe d'utilisateurs</a><BR><BR>\n";
|
|
echo "<br><br><a href=\"./timeclock_status.php?user_group=$user_group\">Cliquez ici pour voir le statut timeclock pour ce groupe d'utilisateurs</a><BR><BR>\n";
|
|
|
|
if ($LOGdelete_user_groups > 0)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=511111&user_group=$user_group\">SUPPRIMER CE GROUPE </a>\n";
|
|
}
|
|
if ($LOGuser_level >= 9)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=720000000000000&category=USERGROUPS&stage=$user_group\">Cliquez ici pour voir Admin chages à ce groupe d'utilisateurs</FONT>\n";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=3111111 modify script info in the system
|
|
######################
|
|
|
|
if ($ADD==3111111)
|
|
{
|
|
if ($LOGmodify_scripts==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT * from vicidial_scripts where script_id='$script_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$script_name = $row[1];
|
|
$script_comments = $row[2];
|
|
$script_text = $row[3];
|
|
$active = $row[4];
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>MODIFIER UN SCRIPT<form name=scriptForm action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=4111111>\n";
|
|
echo "<input type=hidden name=script_id value=\"$script_id\">\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>ID du script: </td><td align=left><B>$script_id</B>$NWB#vicidial_scripts-script_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom du script: </td><td align=left><input type=text name=script_name size=40 maxlength=50 value=\"$script_name\"> (titre du script)$NWB#vicidial_scripts-script_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Commentaires du script: </td><td align=left><input type=text name=script_comments size=50 maxlength=255 value=\"$script_comments\"> $NWB#vicidial_scripts-script_comments$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Actif: </td><td align=left><select size=1 name=active><option SELECTED>Y</option><option>N</option><option selected>$active</option></select>$NWB#vicidial_scripts-active$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Texte du script: <BR><BR><B><a href=\"javascript:openNewWindow('$PHP_SELF?ADD=7111111&script_id=$script_id')\">Prévisualisation du script</a></B> </td><td align=left>";
|
|
# BEGIN Insert Field
|
|
echo "<select id=\"selectedField\" name=\"selectedField\">";
|
|
echo "<option>vendor_lead_code</option>";
|
|
echo "<option>source_id</option>";
|
|
echo "<option>list_id</option>";
|
|
echo "<option>gmt_offset_now</option>";
|
|
echo "<option>called_since_last_reset</option>";
|
|
echo "<option>phone_code</option>";
|
|
echo "<option>phone_number</option>";
|
|
echo "<option>title</option>";
|
|
echo "<option>first_name</option>";
|
|
echo "<option>middle_initial</option>";
|
|
echo "<option>last_name</option>";
|
|
echo "<option>address1</option>";
|
|
echo "<option>address2</option>";
|
|
echo "<option>address3</option>";
|
|
echo "<option>city</option>";
|
|
echo "<option>state</option>";
|
|
echo "<option>province</option>";
|
|
echo "<option>postal_code</option>";
|
|
echo "<option>country_code</option>";
|
|
echo "<option>gender</option>";
|
|
echo "<option>date_of_birth</option>";
|
|
echo "<option>alt_phone</option>";
|
|
echo "<option>email</option>";
|
|
echo "<option>security_phrase</option>";
|
|
echo "<option>comments</option>";
|
|
echo "<option>lead_id</option>";
|
|
echo "<option>campaign</option>";
|
|
echo "<option>phone_login</option>";
|
|
echo "<option>group</option>";
|
|
echo "<option>channel_group</option>";
|
|
echo "<option>SQLdate</option>";
|
|
echo "<option>epoch</option>";
|
|
echo "<option>uniqueid</option>";
|
|
echo "<option>customer_zap_channel</option>";
|
|
echo "<option>server_ip</option>";
|
|
echo "<option>SIPexten</option>";
|
|
echo "<option>session_id</option>";
|
|
echo "</select>";
|
|
echo "<input type=\"button\" name=\"insertField\" value=\"Insert\" onClick=\"scriptInsertField();\"><BR>";
|
|
# END Insert Field
|
|
echo "<TEXTAREA NAME=script_text ROWS=20 COLS=50>$script_text</TEXTAREA> $NWB#vicidial_scripts-script_text$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
|
|
if ($LOGdelete_scripts > 0)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=5111111&script_id=$script_id\">SUPPRIMER CE SCRIPT</a>\n";
|
|
}
|
|
if ($LOGuser_level >= 9)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=720000000000000&category=SCRIPTS&stage=$script_id\">Cliquez ici pour voir Admin chages de ce script</FONT>\n";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=31111111 modify filter info in the system
|
|
######################
|
|
|
|
if ($ADD==31111111)
|
|
{
|
|
if ($LOGmodify_filters==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT * from vicidial_lead_filters where lead_filter_id='$lead_filter_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$lead_filter_name = $row[1];
|
|
$lead_filter_comments = $row[2];
|
|
$lead_filter_sql = $row[3];
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>MODIFIER UN FILTRE<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=41111111>\n";
|
|
echo "<input type=hidden name=lead_filter_id value=\"$lead_filter_id\">\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>ID du filtre:</td><td align=left><B>$lead_filter_id</B>$NWB#vicidial_lead_filters-lead_filter_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom du filtre:</td><td align=left><input type=text name=lead_filter_name size=40 maxlength=50 value=\"$lead_filter_name\"> (courte description du filtre)$NWB#vicidial_lead_filters-lead_filter_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Commentaires du filtre:</td><td align=left><input type=text name=lead_filter_comments size=50 maxlength=255 value=\"$lead_filter_comments\"> $NWB#vicidial_lead_filters-lead_filter_comments$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Filtre Sql:</td><td align=left><TEXTAREA NAME=lead_filter_sql ROWS=20 COLS=50>$lead_filter_sql</TEXTAREA> $NWB#vicidial_lead_filters-lead_filter_sql$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center></form>\n";
|
|
|
|
##### get campaigns listing for dynamic pulldown
|
|
$stmt="SELECT campaign_id,campaign_name from vicidial_campaigns order by campaign_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$campaigns_to_print = mysql_num_rows($rslt);
|
|
$campaigns_list='';
|
|
|
|
$o=0;
|
|
while ($campaigns_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$campaigns_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "<BR><BR>";
|
|
echo "<br>TEST SUR LA CAMPAGNE: <form action=$PHP_SELF method=POST target=\"_blank\">\n";
|
|
echo "<input type=hidden name=lead_filter_id value=\"$lead_filter_id\">\n";
|
|
echo "<input type=hidden name=ADD value=\"73\">\n";
|
|
echo "<select size=1 name=campaign_id>\n";
|
|
echo "$campaigns_list";
|
|
echo "</select>\n";
|
|
echo "<input type=submit name=VALIDER value=VALIDER>\n";
|
|
|
|
|
|
if ($LOGdelete_filters > 0)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=51111111&lead_filter_id=$lead_filter_id\">SUPPRIMER CE FILTRE</a>\n";
|
|
}
|
|
if ($LOGuser_level >= 9)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=720000000000000&category=FILTRES&stage=$lead_filter_id\">Cliquez ici pour voir Admin chages à ce filtre</FONT>\n";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=321111111 modify call time definition info in the system
|
|
######################
|
|
|
|
if ($ADD==321111111)
|
|
{
|
|
if ($LOGmodify_call_times==1)
|
|
{
|
|
|
|
if ( ($stage=="ADD") and (strlen($state_rule)>0) )
|
|
{
|
|
$stmt="SELECT ct_state_call_times from vicidial_call_times where call_time_id='$call_time_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$ct_state_call_times = $row[0];
|
|
|
|
if (eregi("\|$",$ct_state_call_times))
|
|
{$ct_state_call_times = "$ct_state_call_times$state_rule\|";}
|
|
else
|
|
{$ct_state_call_times = "$ct_state_call_times\|$state_rule\|";}
|
|
$stmt="UPDATE vicidial_call_times set ct_state_call_times='$ct_state_call_times' where call_time_id='$call_time_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
echo "Règle d'état ajoutée: $state_rule<BR>\n";
|
|
}
|
|
if ( ($stage=="REMOVE") and (strlen($state_rule)>0) )
|
|
{
|
|
$stmt="SELECT ct_state_call_times from vicidial_call_times where call_time_id='$call_time_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$ct_state_call_times = $row[0];
|
|
|
|
$ct_state_call_times = eregi_replace("\|$state_rule\|",'|',$ct_state_call_times);
|
|
$stmt="UPDATE vicidial_call_times set ct_state_call_times='$ct_state_call_times' where call_time_id='$call_time_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
echo "Règle d'état supprimée: $state_rule<BR>\n";
|
|
}
|
|
|
|
$ADD=311111111;
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'êtes pas autorisé à voir cette page. Veuillez revenir en arrière.";
|
|
}
|
|
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=311111111 modify call time definition info in the system
|
|
######################
|
|
|
|
if ($ADD==311111111)
|
|
{
|
|
|
|
if ($LOGmodify_call_times==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT * from vicidial_call_times where call_time_id='$call_time_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$call_time_name = $row[1];
|
|
$call_time_comments = $row[2];
|
|
$ct_default_start = $row[3];
|
|
$ct_default_stop = $row[4];
|
|
$ct_sunday_start = $row[5];
|
|
$ct_sunday_stop = $row[6];
|
|
$ct_monday_start = $row[7];
|
|
$ct_monday_stop = $row[8];
|
|
$ct_tuesday_start = $row[9];
|
|
$ct_tuesday_stop = $row[10];
|
|
$ct_wednesday_start = $row[11];
|
|
$ct_wednesday_stop = $row[12];
|
|
$ct_thursday_start = $row[13];
|
|
$ct_thursday_stop = $row[14];
|
|
$ct_friday_start = $row[15];
|
|
$ct_friday_stop = $row[16];
|
|
$ct_saturday_start = $row[17];
|
|
$ct_saturday_stop = $row[18];
|
|
$ct_state_call_times = $row[19];
|
|
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>MODIFIER UNE PERIODE D'APPELS<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=411111111>\n";
|
|
echo "<input type=hidden name=call_time_id value=\"$call_time_id\">\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Identifiant de la période d'appels: </td><td align=left colspan=3><B>$call_time_id</B>$NWB#vicidial_call_times-call_time_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom de la période d'appels: </td><td align=left colspan=3><input type=text name=call_time_name size=40 maxlength=50 value=\"$call_time_name\"> (courte description de la période d'appel)$NWB#vicidial_call_times-call_time_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Commentaires de la période d'appels: </td><td align=left colspan=3><input type=text name=call_time_comments size=50 maxlength=255 value=\"$call_time_comments\"> $NWB#vicidial_call_times-call_time_comments$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Début par défaut:</td><td align=left><input type=text name=ct_default_start size=5 maxlength=4 value=\"$ct_default_start\"> </td><td align=right>Fin par défaut:</td><td align=left><input type=text name=ct_default_stop size=5 maxlength=4 value=\"$ct_default_stop\"> $NWB#vicidial_call_times-ct_default_start$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Début le dimanche:</td><td align=left><input type=text name=ct_sunday_start size=5 maxlength=4 value=\"$ct_sunday_start\"> </td><td align=right>Fin le dimanche:</td><td align=left><input type=text name=ct_sunday_stop size=5 maxlength=4 value=\"$ct_sunday_stop\"> $NWB#vicidial_call_times-ct_sunday_start$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Début le lundi:</td><td align=left><input type=text name=ct_monday_start size=5 maxlength=4 value=\"$ct_monday_start\"> </td><td align=right>Fin le lundi:</td><td align=left><input type=text name=ct_monday_stop size=5 maxlength=4 value=\"$ct_monday_stop\"> $NWB#vicidial_call_times-ct_sunday_start$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Début le mardi:</td><td align=left><input type=text name=ct_tuesday_start size=5 maxlength=4 value=\"$ct_tuesday_start\"> </td><td align=right>Fin le mardi:</td><td align=left><input type=text name=ct_tuesday_stop size=5 maxlength=4 value=\"$ct_tuesday_stop\"> $NWB#vicidial_call_times-ct_sunday_start$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Début le mercredi:</td><td align=left><input type=text name=ct_wednesday_start size=5 maxlength=4 value=\"$ct_wednesday_start\"> </td><td align=right>Fin le mercredi:</td><td align=left><input type=text name=ct_wednesday_stop size=5 maxlength=4 value=\"$ct_wednesday_stop\"> $NWB#vicidial_call_times-ct_sunday_start$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Jeudi Start:</td><td align=left><input type=text name=ct_thursday_start size=5 maxlength=4 value=\"$ct_thursday_start\"> </td><td align=right>Fin le jeudi:</td><td align=left><input type=text name=ct_thursday_stop size=5 maxlength=4 value=\"$ct_thursday_stop\"> $NWB#vicidial_call_times-ct_sunday_start$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Début le vendredi:</td><td align=left><input type=text name=ct_friday_start size=5 maxlength=4 value=\"$ct_friday_start\"> </td><td align=right>Fin le vendredi:</td><td align=left><input type=text name=ct_friday_stop size=5 maxlength=4 value=\"$ct_friday_stop\"> $NWB#vicidial_call_times-ct_sunday_start$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Début le samedi:</td><td align=left><input type=text name=ct_saturday_start size=5 maxlength=4 value=\"$ct_saturday_start\"> </td><td align=right>Fin le samedi:</td><td align=left><input type=text name=ct_saturday_stop size=5 maxlength=4 value=\"$ct_saturday_stop\"> $NWB#vicidial_call_times-ct_sunday_start$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=4><input type=submit name=VALIDER value=VALIDER></FORM></td></tr>\n";
|
|
|
|
$ct_srs=1;
|
|
$b=0;
|
|
$srs_SQL ='';
|
|
if (strlen($ct_state_call_times)>2)
|
|
{
|
|
$state_rules = explode('|',$ct_state_call_times);
|
|
$ct_srs = ((count($state_rules)) - 1);
|
|
}
|
|
echo "<tr bgcolor=#B6D3FC><td align=center rowspan=$ct_srs>Activer les définitions des états des périodes d'appels pour cet enregistrement: </td>\n";
|
|
echo "<td align=center colspan=3> </td></tr>\n";
|
|
while($ct_srs >= $b)
|
|
{
|
|
if (strlen($state_rules[$b])>0)
|
|
{
|
|
$stmt="SELECT state_call_time_state,state_call_time_name from vicidial_state_call_times where state_call_time_id='$state_rules[$b]';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
echo "<tr bgcolor=#B6D3FC><td align=right><a href=\"$PHP_SELF?ADD=3111111111&call_time_id=$state_rules[$b]\">$state_rules[$b] </a> - <a href=\"$PHP_SELF?ADD=321111111&call_time_id=$call_time_id&state_rule=$state_rules[$b]&stage=REMOVE\">REMOVE </a></td><td align=left colspan=2>$row[0] - $row[1]</td></tr>\n";
|
|
$srs_SQL .= "'$state_rules[$b]',";
|
|
$srs_state_SQL .= "'$row[0]',";
|
|
}
|
|
$b++;
|
|
}
|
|
if (strlen($srs_SQL)>2)
|
|
{
|
|
$srs_SQL = "$srs_SQL''";
|
|
$srs_state_SQL = "$srs_state_SQL''";
|
|
$srs_SQL = "where state_call_time_id NOT IN($srs_SQL) and state_call_time_state NOT IN($srs_state_SQL)";
|
|
}
|
|
else
|
|
{$srs_SQL='';}
|
|
$stmt="SELECT state_call_time_id,state_call_time_name from vicidial_state_call_times $srs_SQL order by state_call_time_id;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$sct_to_print = mysql_num_rows($rslt);
|
|
$sct_list='';
|
|
|
|
$o=0;
|
|
while ($sct_to_print > $o) {
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$sct_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
echo "<tr bgcolor=#B6D3FC><td align=right><form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=321111111>\n";
|
|
echo "<input type=hidden name=stage value=\"ADD\">\n";
|
|
echo "<input type=hidden name=call_time_id value=\"$call_time_id\">\n";
|
|
echo "Add state call time rule: </td><td align=left colspan=2><select size=1 name=state_rule>\n";
|
|
echo "$sct_list";
|
|
echo "</select></td>\n";
|
|
echo "<td align=center colspan=4><input type=submit name=VALIDER value=VALIDER></FORM></td></tr>\n";
|
|
|
|
echo "</TABLE><BR><BR>\n";
|
|
echo "<B>CAMPAGNES UTILISANT CETTE PERIODE D'APPELS:</B><BR>\n";
|
|
echo "<TABLE>\n";
|
|
|
|
$stmt="SELECT campaign_id,campaign_name from vicidial_campaigns where local_call_time='$call_time_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$camps_to_print = mysql_num_rows($rslt);
|
|
$o=0;
|
|
while ($camps_to_print > $o) {
|
|
$row=mysql_fetch_row($rslt);
|
|
echo "<TR><TD><a href=\"$PHP_SELF?ADD=31&campaign_id=$row[0]\">$row[0] </a></TD><TD> $row[1]<BR></TD></TR>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE>\n";
|
|
echo "<B>ENTRANT GROUPS USING THIS CALL TIME:</B><BR>\n";
|
|
echo "<TABLE>\n";
|
|
|
|
$stmt="SELECT group_id,group_name from vicidial_inbound_groups where call_time_id='$call_time_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$camps_to_print = mysql_num_rows($rslt);
|
|
$o=0;
|
|
while ($camps_to_print > $o) {
|
|
$row=mysql_fetch_row($rslt);
|
|
echo "<TR><TD><a href=\"$PHP_SELF?ADD=3111&group_id=$row[0]\">$row[0] </a></TD><TD> $row[1]<BR></TD></TR>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE>\n";
|
|
echo "</center><BR><BR>\n";
|
|
|
|
if ($LOGdelete_call_times > 0)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=511111111&call_time_id=$call_time_id\">SUPPRIMER CETTE DEFINITION DE PERIODE D'APPEL</a>\n";
|
|
}
|
|
if ($LOGuser_level >= 9)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=720000000000000&category=CALLTIMES&stage=$call_time_id\">Cliquez ici pour voir Admin chages à ce temps de garde</FONT>\n";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'êtes pas autorisé à voir cette page. Veuillez revenir en arrière.";
|
|
}
|
|
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=3111111111 modify state call time definition info in the system
|
|
######################
|
|
|
|
if ($ADD==3111111111)
|
|
{
|
|
|
|
if ($LOGmodify_call_times==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT * from vicidial_state_call_times where state_call_time_id='$call_time_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$state_call_time_state =$row[1];
|
|
$call_time_name = $row[2];
|
|
$call_time_comments = $row[3];
|
|
$ct_default_start = $row[4];
|
|
$ct_default_stop = $row[5];
|
|
$ct_sunday_start = $row[6];
|
|
$ct_sunday_stop = $row[7];
|
|
$ct_monday_start = $row[8];
|
|
$ct_monday_stop = $row[9];
|
|
$ct_tuesday_start = $row[10];
|
|
$ct_tuesday_stop = $row[11];
|
|
$ct_wednesday_start = $row[12];
|
|
$ct_wednesday_stop = $row[13];
|
|
$ct_thursday_start = $row[14];
|
|
$ct_thursday_stop = $row[15];
|
|
$ct_friday_start = $row[16];
|
|
$ct_friday_stop = $row[17];
|
|
$ct_saturday_start = $row[18];
|
|
$ct_saturday_stop = $row[19];
|
|
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>MODIFIER UNE PERIODE D'APPELS D'ETAT<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=4111111111>\n";
|
|
echo "<input type=hidden name=call_time_id value=\"$call_time_id\">\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Identifiant de la période d'appels: </td><td align=left colspan=3><B>$call_time_id</B>$NWB#vicidial_call_times-call_time_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>State Call Time State: </td><td align=left colspan=3><input type=text name=state_call_time_state size=4 maxlength=2 value=\"$state_call_time_state\"> $NWB#vicidial_call_times-state_call_time_state$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom de la période d'appels d'état: </td><td align=left colspan=3><input type=text name=call_time_name size=40 maxlength=50 value=\"$call_time_name\"> (courte description de la période d'appel)$NWB#vicidial_call_times-call_time_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Commentaires de la période d'appels d'état: </td><td align=left colspan=3><input type=text name=call_time_comments size=50 maxlength=255 value=\"$call_time_comments\"> $NWB#vicidial_call_times-call_time_comments$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Début par défaut:</td><td align=left><input type=text name=ct_default_start size=5 maxlength=4 value=\"$ct_default_start\"> </td><td align=right>Fin par défaut:</td><td align=left><input type=text name=ct_default_stop size=5 maxlength=4 value=\"$ct_default_stop\"> $NWB#vicidial_call_times-ct_default_start$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Début le dimanche:</td><td align=left><input type=text name=ct_sunday_start size=5 maxlength=4 value=\"$ct_sunday_start\"> </td><td align=right>Fin le dimanche:</td><td align=left><input type=text name=ct_sunday_stop size=5 maxlength=4 value=\"$ct_sunday_stop\"> $NWB#vicidial_call_times-ct_sunday_start$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Début le lundi:</td><td align=left><input type=text name=ct_monday_start size=5 maxlength=4 value=\"$ct_monday_start\"> </td><td align=right>Fin le lundi:</td><td align=left><input type=text name=ct_monday_stop size=5 maxlength=4 value=\"$ct_monday_stop\"> $NWB#vicidial_call_times-ct_sunday_start$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Début le mardi:</td><td align=left><input type=text name=ct_tuesday_start size=5 maxlength=4 value=\"$ct_tuesday_start\"> </td><td align=right>Fin le mardi:</td><td align=left><input type=text name=ct_tuesday_stop size=5 maxlength=4 value=\"$ct_tuesday_stop\"> $NWB#vicidial_call_times-ct_sunday_start$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Début le mercredi:</td><td align=left><input type=text name=ct_wednesday_start size=5 maxlength=4 value=\"$ct_wednesday_start\"> </td><td align=right>Fin le mercredi:</td><td align=left><input type=text name=ct_wednesday_stop size=5 maxlength=4 value=\"$ct_wednesday_stop\"> $NWB#vicidial_call_times-ct_sunday_start$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Jeudi Start:</td><td align=left><input type=text name=ct_thursday_start size=5 maxlength=4 value=\"$ct_thursday_start\"> </td><td align=right>Fin le jeudi:</td><td align=left><input type=text name=ct_thursday_stop size=5 maxlength=4 value=\"$ct_thursday_stop\"> $NWB#vicidial_call_times-ct_sunday_start$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Début le vendredi:</td><td align=left><input type=text name=ct_friday_start size=5 maxlength=4 value=\"$ct_friday_start\"> </td><td align=right>Fin le vendredi:</td><td align=left><input type=text name=ct_friday_stop size=5 maxlength=4 value=\"$ct_friday_stop\"> $NWB#vicidial_call_times-ct_sunday_start$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Début le samedi:</td><td align=left><input type=text name=ct_saturday_start size=5 maxlength=4 value=\"$ct_saturday_start\"> </td><td align=right>Fin le samedi:</td><td align=left><input type=text name=ct_saturday_stop size=5 maxlength=4 value=\"$ct_saturday_stop\"> $NWB#vicidial_call_times-ct_sunday_start$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=4><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</TABLE><BR><BR>\n";
|
|
echo "<B>PERIODE D'APPELS UTILISANT CET ETAT DE PERIODE D'APPELS:</B><BR>\n";
|
|
echo "<TABLE>\n";
|
|
|
|
$stmt="SELECT call_time_id,call_time_name from vicidial_call_times where ct_state_call_times LIKE \"%|$call_time_id|%\";";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$camps_to_print = mysql_num_rows($rslt);
|
|
$o=0;
|
|
while ($camps_to_print > $o) {
|
|
$row=mysql_fetch_row($rslt);
|
|
echo "<TR><TD><a href=\"$PHP_SELF?ADD=311111111&call_time_id=$row[0]\">$row[0] </a></TD><TD> $row[1]<BR></TD></TR>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE>\n";
|
|
echo "</center><BR><BR>\n";
|
|
|
|
if ($LOGdelete_call_times > 0)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=5111111111&call_time_id=$call_time_id\">SUPPRIMER CETTE DEFINITION DE PERIODE D'APPEL D'ETAT</a>\n";
|
|
}
|
|
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'êtes pas autorisé à voir cette page. Veuillez revenir en arrière.";
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
######################
|
|
# ADD=331111111 modify shift definition info in the system
|
|
######################
|
|
|
|
if ($ADD==331111111)
|
|
{
|
|
|
|
if ($LOGmodify_call_times==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT * from vicidial_shifts where shift_id='$shift_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$shift_name = $row[1];
|
|
$shift_start_time = $row[2];
|
|
$shift_length = $row[3];
|
|
$shift_weekdays = $row[4];
|
|
|
|
$shift_start_hour = substr($shift_start_time,0,2);
|
|
$shift_start_min = substr($shift_start_time,2,2);
|
|
$shift_length_hour = substr($shift_length,0,2);
|
|
$shift_length_min = substr($shift_length,3,2);
|
|
$shift_end_hour = ($shift_start_hour + $shift_length_hour);
|
|
$shift_end_min = ($shift_start_min + $shift_length_min);
|
|
if ($shift_end_min >=60)
|
|
{
|
|
$shift_end_min = ($shift_end_min - 60);
|
|
$shift_end_hour++;
|
|
}
|
|
if ($shift_end_hour >=24)
|
|
{
|
|
$shift_end_hour = ($shift_end_hour - 24);
|
|
}
|
|
$shift_end_hour = sprintf("%02s", $shift_end_hour);
|
|
$shift_end_min = sprintf("%02s", $shift_end_min);
|
|
$shift_end = "$shift_end_hour$shift_end_min";
|
|
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>MODIFIER UN DEPLACEMENT<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=431111111>\n";
|
|
echo "<input type=hidden name=shift_id value=\"$shift_id\">\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Shift ID:</td><td align=left><B>$shift_id</B></td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Shift Nom:</td><td align=left><input type=text name=shift_name size=50 maxlength=50 value=\"$shift_name\"> (brève description de l'évolution)$NWB#vicidial_shifts-shift_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Start Time Shift:</td><td align=left><input type=text name=shift_start_time size=5 maxlength=4 id=shift_start_time value=\"$shift_start_time\">\n";
|
|
echo " End Time Shift:<input type=text name=shift_end_time size=5 maxlength=4 id=shift_end_time value=\"$shift_end\">\n";
|
|
echo "<input type=button name=shift_calc value=\"Calculate Longueur Shift\" onClick=\"shift_time();\"> $NWB#vicidial_shifts-shift_start_time$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Longueur Shift: </td><td align=left><input type=text name=shift_length id=shift_length size=6 maxlength=5 value=\"$shift_length\"> $NWB#vicidial_shifts-shift_length$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Shift-Ven:<BR>$NWB#vicidial_shifts-shift_weekdays$NWE</td><td align=left>\n";
|
|
echo "<input type=\"checkbox\" name=\"shift_weekdays[]\" value=\"0\"";
|
|
if (ereg('0',$shift_weekdays)) {echo " CHECKED";}
|
|
echo ">Dimanche<BR>\n";
|
|
echo "<input type=\"checkbox\" name=\"shift_weekdays[]\" value=\"1\"";
|
|
if (ereg('1',$shift_weekdays)) {echo " CHECKED";}
|
|
echo ">Lundi<BR>\n";
|
|
echo "<input type=\"checkbox\" name=\"shift_weekdays[]\" value=\"2\"";
|
|
if (ereg('2',$shift_weekdays)) {echo " CHECKED";}
|
|
echo ">Mardi<BR>\n";
|
|
echo "<input type=\"checkbox\" name=\"shift_weekdays[]\" value=\"3\"";
|
|
if (ereg('3',$shift_weekdays)) {echo " CHECKED";}
|
|
echo ">Mercredi<BR>\n";
|
|
echo "<input type=\"checkbox\" name=\"shift_weekdays[]\" value=\"4\"";
|
|
if (ereg('4',$shift_weekdays)) {echo " CHECKED";}
|
|
echo ">Jeudi<BR>\n";
|
|
echo "<input type=\"checkbox\" name=\"shift_weekdays[]\" value=\"5\"";
|
|
if (ereg('5',$shift_weekdays)) {echo " CHECKED";}
|
|
echo ">Vendredi<BR>\n";
|
|
echo "<input type=\"checkbox\" name=\"shift_weekdays[]\" value=\"6\"";
|
|
if (ereg('6',$shift_weekdays)) {echo " CHECKED";}
|
|
echo ">Samedi<BR>\n";
|
|
echo "</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=VALIDER value=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
|
|
echo "</TABLE><BR><BR>\n";
|
|
echo "<B>Groupes d'utilisateurs UTILISANT CE SHIFT:</B><BR>\n";
|
|
echo "<TABLE>\n";
|
|
|
|
|
|
$stmt="SELECT user_group,group_name from vicidial_user_groups where group_shifts LIKE\"% $shift_id %\";";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$camps_to_print = mysql_num_rows($rslt);
|
|
$o=0;
|
|
while ($camps_to_print > $o) {
|
|
$row=mysql_fetch_row($rslt);
|
|
echo "<TR><TD><a href=\"$PHP_SELF?ADD=311111&user_group=$row[0]\">$row[0] </a></TD><TD> $row[1]<BR></TD></TR>\n";
|
|
$o++;
|
|
}
|
|
|
|
|
|
echo "</TABLE>\n";
|
|
echo "</center><BR><BR>\n";
|
|
|
|
if ($LOGdelete_call_times > 0)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=531111111&shift_id=$shift_id\">SUPPRIMER CETTE DEFINITION SHIFT</a>\n";
|
|
}
|
|
if ($LOGuser_level >= 9)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=720000000000000&category=SHIFTS&stage=$shift_id\">Cliquez ici pour voir Admin chages à ce changement</FONT>\n";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'êtes pas autorisé à voir cette page. Veuillez revenir en arrière.";
|
|
}
|
|
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=31111111111 modify phone record in the system
|
|
######################
|
|
|
|
if ($ADD==31111111111)
|
|
{
|
|
if ($LOGast_admin_access==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT * from phones where extension='$extension' and server_ip='$server_ip';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
|
|
echo "<br>MODIFIER UN TELEPHONE: $row[1]<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=41111111111>\n";
|
|
echo "<input type=hidden name=old_extension value=\"$row[0]\">\n";
|
|
echo "<input type=hidden name=old_server_ip value=\"$row[5]\">\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Extension du téléphone: </td><td align=left><input type=text name=extension size=20 maxlength=100 value=\"$row[0]\">$NWB#phones-extension$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nuémro dans le dial plan: </td><td align=left><input type=text name=dialplan_number size=15 maxlength=20 value=\"$row[1]\"> (chiffres seulement)$NWB#phones-dialplan_number$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Boîte vocale:</td><td align=left><input type=text name=voicemail_id size=10 maxlength=10 value=\"$row[2]\"> (chiffres seulement)$NWB#phones-voicemail_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>CallerID sortant: </td><td align=left><input type=text name=outbound_cid size=10 maxlength=20 value=\"$row[65]\"> (chiffres seulement)$NWB#phones-outbound_cid$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Adresse IP du téléphone: </td><td align=left><input type=text name=phone_ip size=20 maxlength=15 value=\"$row[3]\"> (optional)$NWB#phones-phone_ip$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Adresse IP de l'ordinateur: </td><td align=left><input type=text name=computer_ip size=20 maxlength=15 value=\"$row[4]\"> (optional)$NWB#phones-computer_ip$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right><a href=\"$PHP_SELF?ADD=311111111111&server_ip=$row[5]\">IP du serveur</a>: </td><td align=left><select size=1 name=server_ip>\n";
|
|
|
|
echo "$servers_list";
|
|
echo "<option SELECTED>$row[5]</option>\n";
|
|
echo "</select>$NWB#phones-server_ip$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Login: </td><td align=left><input type=text name=login size=10 maxlength=10 value=\"$row[6]\">$NWB#phones-login$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Mot de passe:</td><td align=left><input type=text name=pass size=10 maxlength=10 value=\"$row[7]\">$NWB#phones-pass$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Etat: </td><td align=left><select size=1 name=status><option>ACTIF</option><option>SUSPENDED</option><option>CLOSED</option><option>PENDING</option><option>ADMIN</option><option selected>$row[8]</option></select>$NWB#phones-status$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Compte actif: </td><td align=left><select size=1 name=active><option>Y</option><option>N</option><option selected>$row[9]</option></select>$NWB#phones-active$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Type de téléphone: </td><td align=left><input type=text name=phone_type size=20 maxlength=50 value=\"$row[10]\">$NWB#phones-phone_type$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom complet: </td><td align=left><input type=text name=fullname size=20 maxlength=50 value=\"$row[11]\">$NWB#phones-fullname$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Email:</td><td align=left><input type=text name=email size=50 maxlength=100 value=\"$row[67]\"> $NWB#phones-email$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Compagnie: </td><td align=left><input type=text name=company size=10 maxlength=10 value=\"$row[12]\">$NWB#phones-company$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Image: </td><td align=left><input type=text name=picture size=20 maxlength=19 value=\"$row[13]\">$NWB#phones-picture$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nouveaux messages: </td><td align=left><b>$row[14]</b>$NWB#phones-messages$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Anciens messages: </td><td align=left><b>$row[15]</b>$NWB#phones-old_messages$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Protocole client: </td><td align=left><select size=1 name=protocol><option>SIP</option><option>Zap</option><option>IAX2</option><option>EXTERNAL</option><option selected>$row[16]</option></select>$NWB#phones-protocol$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>GMT local: </td><td align=left><select size=1 name=local_gmt><option>12.75</option><option>12.00</option><option>11.00</option><option>10.00</option><option>9.50</option><option>9.00</option><option>8.00</option><option>7.00</option><option>6.50</option><option>6.00</option><option>5.75</option><option>5.50</option><option>5.00</option><option>4.50</option><option>4.00</option><option>3.50</option><option>3.00</option><option>2.00</option><option>1.00</option><option>0.00</option><option>-1.00</option><option>-2.00</option><option>-3.00</option><option>-3.50</option><option>-4.00</option><option>-5.00</option><option>-6.00</option><option>-7.00</option><option>-8.00</option><option>-9.00</option><option>-10.00</option><option>-11.00</option><option>-12.00</option><option selected>$row[17]</option></select> (Ne PAS ajuster pour DST)$NWB#phones-local_gmt$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Login du manager: </td><td align=left><input type=text name=ASTmgrUSERNAME size=20 maxlength=20 value=\"$row[18]\">$NWB#phones-ASTmgrUSERNAME$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Mot de passe du manager: </td><td align=left><input type=text name=ASTmgrSECRET size=20 maxlength=20 value=\"$row[19]\">$NWB#phones-ASTmgrSECRET$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Utilisateur par défaut de VICIDIAL: </td><td align=left><input type=text name=login_user size=20 maxlength=20 value=\"$row[20]\">$NWB#phones-login_user$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Mot de passe par défaut de VICIDIAL: </td><td align=left><input type=text name=login_pass size=20 maxlength=20 value=\"$row[21]\">$NWB#phones-login_pass$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Campagne par défaut de VICIDIAL: </td><td align=left><input type=text name=login_campaign size=10 maxlength=10 value=\"$row[22]\">$NWB#phones-login_campaign$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Extension du parc: </td><td align=left><input type=text name=park_on_extension size=10 maxlength=10 value=\"$row[23]\">$NWB#phones-park_on_extension$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Extension de la conférence: </td><td align=left><input type=text name=conf_on_extension size=10 maxlength=10 value=\"$row[24]\">$NWB#phones-conf_on_extension$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Extension du parc VICIDIAL: </td><td align=left><input type=text name=VICIDIAL_park_on_extension size=10 maxlength=10 value=\"$row[25]\">$NWB#phones-VICIDIAL_park_on_extension$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Fichier du parc VICIDIAL: </td><td align=left><input type=text name=VICIDIAL_park_on_filename size=10 maxlength=10 value=\"$row[26]\">$NWB#phones-VICIDIAL_park_on_filename$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Préfixe du moniteur: </td><td align=left><input type=text name=monitor_prefix size=10 maxlength=10 value=\"$row[27]\">$NWB#phones-monitor_prefix$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Extension d'enregistrement: </td><td align=left><input type=text name=recording_exten size=10 maxlength=10 value=\"$row[28]\">$NWB#phones-recording_exten$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Extension de la boîte vocale: </td><td align=left><input type=text name=voicemail_exten size=10 maxlength=10 value=\"$row[29]\">$NWB#phones-voicemail_exten$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Extension de VmailDump: </td><td align=left><input type=text name=voicemail_dump_exten size=20 maxlength=20 value=\"$row[30]\">$NWB#phones-voicemail_dump_exten$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Extension du context: </td><td align=left><input type=text name=ext_context size=20 maxlength=20 value=\"$row[31]\">$NWB#phones-ext_context$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Cannal d'envoi DTMF: </td><td align=left><input type=text name=dtmf_send_extension size=40 maxlength=100 value=\"$row[32]\">$NWB#phones-dtmf_send_extension$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Groupe d'appels sortants: </td><td align=left><input type=text name=call_out_number_group size=40 maxlength=100 value=\"$row[33]\">$NWB#phones-call_out_number_group$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Localisation du navigateur: </td><td align=left><input type=text name=client_browser size=40 maxlength=100 value=\"$row[34]\">$NWB#phones-client_browser$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Répertoire d'installation: </td><td align=left><input type=text name=install_directory size=40 maxlength=100 value=\"$row[35]\">$NWB#phones-install_directory$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>URL du CallerID: </td><td align=left><input type=text name=local_web_callerID_URL size=40 maxlength=255 value=\"$row[36]\">$NWB#phones-local_web_callerID_URL$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>URL par défaut de VICIDIAL: </td><td align=left><input type=text name=VICIDIAL_web_URL size=40 maxlength=255 value=\"$row[37]\">$NWB#phones-VICIDIAL_web_URL$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Log des appels: </td><td align=left><select size=1 name=AGI_call_logging_enabled><option>1</option><option>0</option><option selected>$row[38]</option></select>$NWB#phones-AGI_call_logging_enabled$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Changement d'utilisateur: </td><td align=left><select size=1 name=user_switching_enabled><option>1</option><option>0</option><option selected>$row[39]</option></select>$NWB#phones-user_switching_enabled$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>En conférence: </td><td align=left><select size=1 name=conferencing_enabled><option>1</option><option>0</option><option selected>$row[40]</option></select>$NWB#phones-conferencing_enabled$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Raccrochage administrateur: </td><td align=left><select size=1 name=admin_hangup_enabled><option>1</option><option>0</option><option selected>$row[41]</option></select>$NWB#phones-admin_hangup_enabled$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Détournement administrateur: </td><td align=left><select size=1 name=admin_hijack_enabled><option>1</option><option>0</option><option selected>$row[42]</option></select>$NWB#phones-admin_hijack_enabled$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Moniteur administrateur: </td><td align=left><select size=1 name=admin_monitor_enabled><option>1</option><option>0</option><option selected>$row[43]</option></select>$NWB#phones-admin_monitor_enabled$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Parc d'appel: </td><td align=left><select size=1 name=call_parking_enabled><option>1</option><option>0</option><option selected>$row[44]</option></select>$NWB#phones-call_parking_enabled$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Contrôle de mise à jour: </td><td align=left><select size=1 name=updater_check_enabled><option>1</option><option>0</option><option selected>$row[45]</option></select>$NWB#phones-updater_check_enabled$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Log AF: </td><td align=left><select size=1 name=AFLogging_enabled><option>1</option><option>0</option><option selected>$row[46]</option></select>$NWB#phones-AFLogging_enabled$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Queue activée: </td><td align=left><select size=1 name=QUEUE_ACTION_enabled><option>1</option><option>0</option><option selected>$row[47]</option></select>$NWB#phones-QUEUE_ACTION_enabled$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Popup du CallerID: </td><td align=left><select size=1 name=CallerID_popup_enabled><option>1</option><option>0</option><option selected>$row[48]</option></select>$NWB#phones-CallerID_popup_enabled$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Bouton de la boîte vocale: </td><td align=left><select size=1 name=voicemail_button_enabled><option>1</option><option>0</option><option selected>$row[49]</option></select>$NWB#phones-voicemail_button_enabled$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Rafraichissement rapide: </td><td align=left><select size=1 name=enable_fast_refresh><option>1</option><option>0</option><option selected>$row[50]</option></select>$NWB#phones-enable_fast_refresh$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Taux du rafraichissement rapide: </td><td align=left><input type=text size=5 name=fast_refresh_rate value=\"$row[51]\">(in ms)$NWB#phones-fast_refresh_rate$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>MySQL persistant: </td><td align=left><select size=1 name=enable_persistant_mysql><option>1</option><option>0</option><option selected>$row[52]</option></select>$NWB#phones-enable_persistant_mysql$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Appel automatique du numéro suivant: </td><td align=left><select size=1 name=auto_dial_next_number><option>1</option><option>0</option><option selected>$row[53]</option></select>$NWB#phones-auto_dial_next_number$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Arrêter l'enregistrement après chaque appel: </td><td align=left><select size=1 name=VDstop_rec_after_each_call><option>1</option><option>0</option><option selected>$row[54]</option></select>$NWB#phones-VDstop_rec_after_each_call$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Activer les messages SIPSAK: </td><td align=left><select size=1 name=enable_sipsak_messages><option>1</option><option>0</option><option selected>$row[66]</option></select>$NWB#phones-enable_sipsak_messages$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Serveur DBX: </td><td align=left><input type=text name=DBX_server size=15 maxlength=15 value=\"$row[55]\"> (PrimaireDB Server)$NWB#phones-DBX_server$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Base de données DBX: </td><td align=left><input type=text name=DBX_database size=15 maxlength=15 value=\"$row[56]\"> (PrimaireServer Database)$NWB#phones-DBX_database$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Utilisateur DBX: </td><td align=left><input type=text name=DBX_user size=15 maxlength=15 value=\"$row[57]\"> (PrimaireDB Login)$NWB#phones-DBX_user$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Mot de passe DBX: </td><td align=left><input type=text name=DBX_pass size=15 maxlength=15 value=\"$row[58]\"> (PrimaireDB Secret)$NWB#phones-DBX_pass$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Port DBX: </td><td align=left><input type=text name=DBX_port size=6 maxlength=6 value=\"$row[59]\"> (PrimaireDB Port)$NWB#phones-DBX_port$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Serveur DBY: </td><td align=left><input type=text name=DBY_server size=15 maxlength=15 value=\"$row[60]\"> (SecondaireDB Server)$NWB#phones-DBY_server$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Base de données DBY: </td><td align=left><input type=text name=DBY_database size=15 maxlength=15 value=\"$row[61]\"> (SecondaireServer Database)$NWB#phones-DBY_database$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Utilisateur DBY: </td><td align=left><input type=text name=DBY_user size=15 maxlength=15 value=\"$row[62]\"> (SecondaireDB Login)$NWB#phones-DBY_user$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Mot de passe DBY: </td><td align=left><input type=text name=DBY_pass size=15 maxlength=15 value=\"$row[63]\"> (SecondaireDB Secret)$NWB#phones-DBY_pass$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Port DBY: </td><td align=left><input type=text name=DBY_port size=6 maxlength=6 value=\"$row[64]\"> (SecondaireDB Port)$NWB#phones-DBY_port$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right><a href=\"$PHP_SELF?ADD=331111111111&template_id=$row[68]\">Template ID</a>: </td><td align=left><select size=1 name=template_id>\n";
|
|
$stmt="SELECT template_id,template_name from vicidial_conf_templates order by template_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$templates_to_print = mysql_num_rows($rslt);
|
|
$templates_list='<option SELECTED>--NONE--</option>';
|
|
$o=0;
|
|
while ($templates_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$templates_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
echo "$templates_list";
|
|
echo "<option SELECTED>$row[68]</option>\n";
|
|
echo "</select>$NWB#phones-template_id$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Conf Override: </td><td align=left><TEXTAREA NAME=conf_override ROWS=10 COLS=70>$row[69]</TEXTAREA> $NWB#phones-conf_override$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=submit VALUE=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
|
|
echo "<br><br><a href=\"./phone_stats.php?extension=$row[0]&server_ip=$row[5]\">Cliquez ici pour les statistiques des téléphones</a>\n";
|
|
|
|
if ($LOGast_delete_phones > 0)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=51111111111&extension=$extension&server_ip=$server_ip\">SUPPRIMER CE TELEPHONE</a>\n";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=32111111111 modify phone alias record in the system
|
|
######################
|
|
|
|
if ($ADD==32111111111)
|
|
{
|
|
if ($LOGast_admin_access==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT * from phones_alias where alias_id='$alias_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
|
|
echo "<br>A MODIFIER TELEPHONE ALIAS RECORD: $row[0]<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=42111111111>\n";
|
|
echo "<input type=hidden name=alias_id value=\"$row[0]\">\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Alias ID:</td><td align=left><B>$row[0]</B> $NWB#phones-alias_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Alias Nom:</td><td align=left><input type=text name=alias_name size=30 maxlength=50 value=\"$row[1]\"> $NWB#phones-alias_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Téléphones Logins List: </td><td align=left><input type=text name=logins_list size=50 maxlength=255 value=\"$row[2]\"> (comma separated)$NWB#phones-logins_list$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=submit VALUE=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
|
|
|
|
### list of phones in this phones alias
|
|
$phone_alias_SQL = ereg_replace(',',"','",$row[2]);
|
|
|
|
echo "<center>\n";
|
|
echo "<br><b>TELEPHONES PORTABLES DANS CETTE ALIAS:</b><br>\n";
|
|
echo "<TABLE width=600 cellspacing=3>\n";
|
|
echo "<tr><td>LOGIN</td><td>EXTENSION</td><td>SERVER</td><td>PROTOCOL</td><td>IP</td></tr>\n";
|
|
|
|
$stmt="SELECT login,extension,server_ip,protocol,phone_ip from phones where login IN ('$phone_alias_SQL');";
|
|
if ($DB) {echo "|$stmt|";}
|
|
$rsltx=mysql_query($stmt, $link);
|
|
$lists_to_print = mysql_num_rows($rsltx);
|
|
|
|
$o=0;
|
|
while ($lists_to_print > $o) {
|
|
$rowx=mysql_fetch_row($rsltx);
|
|
$o++;
|
|
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=31111111111&extension=$rowx[1]&server_ip=$rowx[2]\">$rowx[0]</a></td><td><font size=1>$rowx[1]</td><td><font size=1>$rowx[2]</td><td><font size=1>$rowx[3]</td><td><font size=1>$rowx[4]</td></tr>\n";
|
|
}
|
|
|
|
echo "</table></center><br>\n";
|
|
|
|
if ($LOGast_delete_phones > 0)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=52111111111&alias_id=$row[0]\">SUPPRIMER CETTE PHONE ALIAS</a>\n";
|
|
}
|
|
if ($LOGuser_level >= 9)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=720000000000000&category=PHONEALIASES&stage=$alias_id\">Cliquez ici pour voir Admin chages à ce téléphone alias</FONT>\n";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=33111111111 modify group alias record in the system
|
|
######################
|
|
|
|
if ($ADD==33111111111)
|
|
{
|
|
if ($LOGast_admin_access==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT group_alias_id,group_alias_name,caller_id_number,caller_id_name,active from groups_alias where group_alias_id='$group_alias_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
|
|
echo "<br>Modifier un groupe ALIAS RECORD: $row[0]<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=43111111111>\n";
|
|
echo "<input type=hidden name=group_alias_id value=\"$row[0]\">\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Alias Groupe ID: </td><td align=left><B>$row[0]</B> $NWB#phones-group_alias_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom du groupe Alias: </td><td align=left><input type=text name=group_alias_name size=30 maxlength=50 value=\"$row[1]\"> $NWB#phones-group_alias_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nombre CallerID: </td><td align=left><input type=text name=caller_id_number size=20 maxlength=20 value=\"$row[2]\"> $NWB#phones-caller_id_number$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>CallerID Nom: </td><td align=left><input type=text name=caller_id_name size=20 maxlength=20 value=\"$row[3]\"> $NWB#phones-caller_id_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Actif: </td><td align=left><select size=1 name=active><option>Y</option><option>N</option><option selected>$row[4]</option></select></td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=submit VALUE=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
|
|
|
|
if ($LOGast_delete_phones > 0)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=53111111111&group_alias_id=$row[0]\">Supprimer ce groupe ALIAS</a>\n";
|
|
}
|
|
if ($LOGuser_level >= 9)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=720000000000000&category=GROUPALIASES&stage=$group_alias_id\">Cliquez ici pour voir Admin chages à ce groupe alias</FONT>\n";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=311111111111 modify server record in the system
|
|
######################
|
|
|
|
if ($ADD==311111111111)
|
|
{
|
|
if ($LOGmodify_servers==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT server_id,server_description,server_ip,active,asterisk_version,max_vicidial_trunks,telnet_host,telnet_port,ASTmgrUSERNAME,ASTmgrSECRET,ASTmgrUSERNAMEupdate,ASTmgrUSERNAMElisten,ASTmgrUSERNAMEsend,local_gmt,voicemail_dump_exten,answer_transfer_agent,ext_context,sys_perf_log,vd_server_logs,agi_output,vicidial_balance_active,balance_trunks_offlimits,recording_web_link,alt_server_ip,active_asterisk_server,generate_vicidial_conf,rebuild_conf_files,outbound_calls_per_second,sysload,channels_total,cpu_idle_percent,disk_usage from servers where server_id='$server_id' or server_ip='$server_ip';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$server_id = $row[0];
|
|
$server_description = $row[1];
|
|
$server_ip = $row[2];
|
|
$active = $row[3];
|
|
$asterisk_version = $row[4];
|
|
$max_vicidial_trunks = $row[5];
|
|
$telnet_host = $row[6];
|
|
$telnet_port = $row[7];
|
|
$ASTmgrUSERNAME = $row[8];
|
|
$ASTmgrSECRET = $row[9];
|
|
$ASTmgrUSERNAMEupdate = $row[10];
|
|
$ASTmgrUSERNAMElisten = $row[11];
|
|
$ASTmgrUSERNAMEsend = $row[12];
|
|
$local_gmt = $row[13];
|
|
$voicemail_dump_exten = $row[14];
|
|
$answer_transfer_agent = $row[15];
|
|
$ext_context = $row[16];
|
|
$sys_perf_log = $row[17];
|
|
$vd_server_logs = $row[18];
|
|
$agi_output = $row[19];
|
|
$vicidial_balance_active = $row[20];
|
|
$balance_trunks_offlimits = $row[21];
|
|
$recording_web_link = $row[22];
|
|
$alt_server_ip = $row[23];
|
|
$active_asterisk_server = $row[24];
|
|
$generate_vicidial_conf = $row[25];
|
|
$rebuild_conf_files = $row[26];
|
|
$outbound_calls_per_second = $row[27];
|
|
$sysload = $row[28];
|
|
$channels_total = $row[29];
|
|
$cpu_idle_percent = $row[30];
|
|
$disk_usage = $row[31];
|
|
|
|
$cpu = (100 - $cpu_idle_percent);
|
|
$disk_usage = preg_replace("/ /"," - ",$disk_usage);
|
|
$disk_usage = preg_replace("/\|/","% ",$disk_usage);
|
|
|
|
echo "<br>MODIFIER UN SERVEUR: $row[0]<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=411111111111>\n";
|
|
echo "<input type=hidden name=old_server_id value=\"$server_id\">\n";
|
|
echo "<input type=hidden name=old_server_ip value=\"$server_ip\">\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>ID du serveur: </td><td align=left><input type=text name=server_id size=10 maxlength=10 value=\"$server_id\">$NWB#servers-server_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Description du serveur: </td><td align=left><input type=text name=server_description size=30 maxlength=255 value=\"$server_description\">$NWB#servers-server_description$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Adresse IP du serveur: </td><td align=left><input type=text name=server_ip size=20 maxlength=15 value=\"$server_ip\">$NWB#servers-server_ip$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Actif: </td><td align=left><select size=1 name=active><option>Y</option><option>N</option><option selected>$active</option></select>$NWB#servers-active$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Système de charge: </td><td align=left>$sysload - $cpu% $NWB#servers-sysload$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Live Chaînes: </td><td align=left>$channels_total $NWB#servers-channels_total$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Disk Usage: </td><td align=left>$disk_usage $NWB#servers-disk_usage$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Version d'Asterisk: </td><td align=left><input type=text name=asterisk_version size=20 maxlength=20 value=\"$asterisk_version\">$NWB#servers-asterisk_version$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nombre max de trunks VICIDIAL: </td><td align=left><input type=text name=max_vicidial_trunks size=5 maxlength=4 value=\"$max_vicidial_trunks\">$NWB#servers-max_vicidial_trunks$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Max demande par seconde: </td><td align=left><input type=text name=outbound_calls_per_second size=5 maxlength=4 value=\"$outbound_calls_per_second\">$NWB#servers-outbound_calls_per_second$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Equilibrage des appels VICIDIAL: </td><td align=left><select size=1 name=vicidial_balance_active><option>Y</option><option>N</option><option selected>$vicidial_balance_active</option></select>$NWB#servers-vicidial_balance_active$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Limite de l'équilibrage VICIDIAL: </td><td align=left><input type=text name=balance_trunks_offlimits size=5 maxlength=4 value=\"$balance_trunks_offlimits\">$NWB#servers-balance_trunks_offlimits$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Hôte telnet: </td><td align=left><input type=text name=telnet_host size=20 maxlength=20 value=\"$telnet_host\">$NWB#servers-telnet_host$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Port telnet: </td><td align=left><input type=text name=telnet_port size=6 maxlength=5 value=\"$telnet_port\">$NWB#servers-telnet_port$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Utilisateur manager: </td><td align=left><input type=text name=ASTmgrUSERNAME size=20 maxlength=20 value=\"$ASTmgrUSERNAME\">$NWB#servers-ASTmgrUSERNAME$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Mot de passe du manager: </td><td align=left><input type=text name=ASTmgrSECRET size=20 maxlength=20 value=\"$ASTmgrSECRET\">$NWB#servers-ASTmgrSECRET$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Utilisateur de mise à jour manager: </td><td align=left><input type=text name=ASTmgrUSERNAMEupdate size=20 maxlength=20 value=\"$ASTmgrUSERNAMEupdate\">$NWB#servers-ASTmgrUSERNAMEupdate$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Utilisateur manager pour l'écoute: </td><td align=left><input type=text name=ASTmgrUSERNAMElisten size=20 maxlength=20 value=\"$ASTmgrUSERNAMElisten\">$NWB#servers-ASTmgrUSERNAMElisten$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Utilisateur manager pour l'envoi: </td><td align=left><input type=text name=ASTmgrUSERNAMEsend size=20 maxlength=20 value=\"$ASTmgrUSERNAMEsend\">$NWB#servers-ASTmgrUSERNAMEsend$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>GMT local: </td><td align=left><select size=1 name=local_gmt><option>12.75</option><option>12.00</option><option>11.00</option><option>10.00</option><option>9.50</option><option>9.00</option><option>8.00</option><option>7.00</option><option>6.50</option><option>6.00</option><option>5.75</option><option>5.50</option><option>5.00</option><option>4.50</option><option>4.00</option><option>3.50</option><option>3.00</option><option>2.00</option><option>1.00</option><option>0.00</option><option>-1.00</option><option>-2.00</option><option>-3.00</option><option>-3.50</option><option>-4.00</option><option>-5.00</option><option>-6.00</option><option>-7.00</option><option>-8.00</option><option>-9.00</option><option>-10.00</option><option>-11.00</option><option>-12.00</option><option selected>$local_gmt</option></select> (Ne PAS ajuster pour DST)$NWB#servers-local_gmt$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>VMail Dump Exten: </td><td align=left><input type=text name=voicemail_dump_exten size=20 maxlength=20 value=\"$voicemail_dump_exten\">$NWB#servers-voicemail_dump_exten$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Extension AD de VICIDIAL: </td><td align=left><input type=text name=answer_transfer_agent size=20 maxlength=20 value=\"$answer_transfer_agent\">$NWB#servers-answer_transfer_agent$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Contexte par défaut: </td><td align=left><input type=text name=ext_context size=20 maxlength=20 value=\"$ext_context\">$NWB#servers-ext_context$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Performances du système: </td><td align=left><select size=1 name=sys_perf_log><option>Y</option><option>N</option><option selected>$sys_perf_log</option></select>$NWB#servers-sys_perf_log$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Logs du serveur: </td><td align=left><select size=1 name=vd_server_logs><option>Y</option><option>N</option><option selected>$vd_server_logs</option></select>$NWB#servers-vd_server_logs$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Sortie des AGI: </td><td align=left><select size=1 name=agi_output><option>NONE</option><option>STDERR</option><option>FILE</option><option>BOTH</option><option selected>$agi_output</option></select>$NWB#servers-agi_output$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Enregistrement Web Link: </td><td align=left><select size=1 name=recording_web_link><option>SERVER_IP</option><option>ALT_IP</option><option selected>$recording_web_link</option></select>$NWB#servers-recording_web_link$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Alternate Recording IP du serveur: </td><td align=left><input type=text name=alt_server_ip size=30 maxlength=100 value=\"$alt_server_ip\">$NWB#servers-alt_server_ip$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Active Server Asterisk: </td><td align=left><select size=1 name=active_asterisk_server><option>Y</option><option>N</option><option selected>$active_asterisk_server</option></select>$NWB#servers-active_asterisk_server$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Générer des fichiers de conf: </td><td align=left><select size=1 name=generate_vicidial_conf><option>Y</option><option>N</option><option selected>$generate_vicidial_conf</option></select>$NWB#servers-generate_vicidial_conf$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Reconstruire les fichiers de configuration: </td><td align=left><select size=1 name=rebuild_conf_files><option>Y</option><option>N</option><option selected>$rebuild_conf_files</option></select>$NWB#servers-rebuild_conf_files$NWE</td></tr>\n";
|
|
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=submit VALUE=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center></form>\n";
|
|
|
|
|
|
### vicidial server trunk records for this server
|
|
echo "<br><br><b>LES MallesVICIDIAL POUR CE SERVEUR: $NWB#vicidial_server_trunks$NWE</b><br>\n";
|
|
echo "<TABLE width=500 cellspacing=3>\n";
|
|
echo "<tr><td> CAMPAGNE</td><td> Malles</td><td> RESTRICTION </td><td> </td><td> DELETE </td></tr>\n";
|
|
|
|
$stmt="SELECT * from vicidial_server_trunks where server_ip='$server_ip' order by campaign_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$recycle_to_print = mysql_num_rows($rslt);
|
|
$o=0;
|
|
while ($recycle_to_print > $o) {
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$o++;
|
|
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
|
|
echo "<tr $bgcolor><td><font size=1>$rowx[1]<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=server_ip value=\"$server_ip\">\n";
|
|
echo "<input type=hidden name=campaign_id value=\"$rowx[1]\">\n";
|
|
echo "<input type=hidden name=ADD value=421111111111></td>\n";
|
|
echo "<td><font size=1><input size=6 maxlength=4 name=dedicated_trunks value=\"$rowx[2]\"></td>\n";
|
|
echo "<td><select size=1 name=trunk_restriction><option>MAXIMUM_LIMIT</option><option>OVERFLOW_ALLOWED</option><option SELECTED>$rowx[3]</option></select></td>\n";
|
|
echo "<td><font size=1><input type=submit name=submit value=MODIFY></form></td>\n";
|
|
echo "<td><font size=1><a href=\"$PHP_SELF?ADD=621111111111&campaign_id=$rowx[1]&server_ip=$server_ip\">SUPPRIMER</a></td></tr>\n";
|
|
}
|
|
|
|
echo "</table>\n";
|
|
|
|
echo "<br><b>AJOUTER UN NOUVEAU TRUNK SERVEUR VICIDIAL</b><BR><form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=221111111111>\n";
|
|
echo "<input type=hidden name=server_ip value=\"$server_ip\">\n";
|
|
echo "Malles: <input size=6 maxlength=4 name=dedicated_trunks><BR>\n";
|
|
echo "CAMPAGNE: <select size=1 name=campaign_id>\n";
|
|
echo "$campaigns_list\n";
|
|
echo "</select><BR>\n";
|
|
echo "RESTRICTION: <select size=1 name=trunk_restriction><option>MAXIMUM_LIMIT</option><option>OVERFLOW_ALLOWED</option></select><BR>\n";
|
|
echo "<input type=submit name=submit value=AJOUTER><BR>\n";
|
|
|
|
echo "</center></FORM><br>\n";
|
|
|
|
|
|
### list of carriers on this server
|
|
echo "<center>\n";
|
|
echo "<br><b>SUPPORTS DE CE SERVEUR:</b><br>\n";
|
|
echo "<TABLE width=600 cellspacing=3>\n";
|
|
echo "<tr><td>CARRIER ID</td><td>NOM</td><td>REGISTRATION</td><td>ACTIF</td></tr>\n";
|
|
|
|
$active_carriers = 0;
|
|
$inactive_carriers = 0;
|
|
$stmt="SELECT carrier_id,carrier_name,registration_string,active from vicidial_server_carriers where server_ip='$row[2]'";
|
|
$rsltx=mysql_query($stmt, $link);
|
|
$carriers_to_print = mysql_num_rows($rsltx);
|
|
$camp_lists='';
|
|
|
|
$o=0;
|
|
while ($carriers_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rsltx);
|
|
$o++;
|
|
if (ereg("Y", $rowx[3])) {$active_carriers++;}
|
|
if (ereg("N", $rowx[3])) {$inactive_carriers++;}
|
|
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=341111111111&carrier_id=$rowx[0]\">$rowx[0]</a></td><td><font size=1>$rowx[1]</td><td><font size=1>$rowx[2]</td><td><font size=1>$rowx[3]</td></tr>\n";
|
|
}
|
|
|
|
echo "</table></center><br>\n";
|
|
|
|
|
|
### list of phones on this server
|
|
echo "<center>\n";
|
|
echo "<br><b>TELEPHONES SUR CE SERVEUR:</b><br>\n";
|
|
echo "<TABLE width=400 cellspacing=3>\n";
|
|
echo "<tr><td>EXTENSION</td><td>NOM</td><td>ACTIF</td></tr>\n";
|
|
|
|
$active_phones = 0;
|
|
$inactive_phones = 0;
|
|
$stmt="SELECT extension,active,fullname from phones where server_ip='$row[2]'";
|
|
$rsltx=mysql_query($stmt, $link);
|
|
$lists_to_print = mysql_num_rows($rsltx);
|
|
$camp_lists='';
|
|
|
|
$o=0;
|
|
while ($lists_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rsltx);
|
|
$o++;
|
|
if (ereg("Y", $rowx[1])) {$active_phones++; $camp_lists .= "'$rowx[0]',";}
|
|
if (ereg("N", $rowx[1])) {$inactive_phones++;}
|
|
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=31111111111&extension=$rowx[0]&server_ip=$row[2]\">$rowx[0]</a></td><td><font size=1>$rowx[2]</td><td><font size=1>$rowx[1]</td></tr>\n";
|
|
}
|
|
|
|
echo "</table></center><br>\n";
|
|
|
|
|
|
### list of conferences on this server
|
|
echo "<center>\n";
|
|
echo "<br><b>CONFERENCES WITHIN THIS SERVER:</b><br>\n";
|
|
echo "<TABLE width=400 cellspacing=3>\n";
|
|
echo "<tr><td>CONFERENCE</td><td>EXTENSION</td></tr>\n";
|
|
|
|
$active_confs = 0;
|
|
$stmt="SELECT conf_exten,extension from conferences where server_ip='$row[2]'";
|
|
$rsltx=mysql_query($stmt, $link);
|
|
$lists_to_print = mysql_num_rows($rsltx);
|
|
$camp_lists='';
|
|
|
|
$o=0;
|
|
while ($lists_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rsltx);
|
|
$o++;
|
|
$active_confs++;
|
|
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=3111111111111&conf_exten=$rowx[0]&server_ip=$row[2]\">$rowx[0]</a></td><td><font size=1>$rowx[2]</td></tr>\n";
|
|
}
|
|
|
|
echo "</table></center><br>\n";
|
|
|
|
|
|
### list of vicidial conferences on this server
|
|
echo "<center>\n";
|
|
echo "<br><b>VICIDIAL CONFERENCES WITHIN THIS SERVER:</b><br>\n";
|
|
echo "<TABLE width=400 cellspacing=3>\n";
|
|
echo "<tr><td>VD CONFERENCE</td><td>EXTENSION</td></tr>\n";
|
|
|
|
$active_vdconfs = 0;
|
|
$stmt="SELECT conf_exten,extension from vicidial_conferences where server_ip='$row[2]'";
|
|
$rsltx=mysql_query($stmt, $link);
|
|
$lists_to_print = mysql_num_rows($rsltx);
|
|
$camp_lists='';
|
|
|
|
$o=0;
|
|
while ($lists_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rsltx);
|
|
$o++;
|
|
$active_vdconfs++;
|
|
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=31111111111111&conf_exten=$rowx[0]&server_ip=$row[2]\">$rowx[0]</a></td><td><font size=1>$rowx[2]</td></tr>\n";
|
|
}
|
|
|
|
echo "</table></center><br>\n";
|
|
|
|
|
|
echo "<center><b>\n";
|
|
|
|
$camp_lists = eregi_replace(".$","",$camp_lists);
|
|
echo "Ce serveur a $active_carriers active carriers and $inactive_carriers inactive carriers<br><br>\n";
|
|
echo "Ce serveur a $active_phones téléphones actifs et $inactive_phones téléphones inactifs<br><br>\n";
|
|
echo "Ce serveur a $active_confs active conferences<br><br>\n";
|
|
echo "Ce serveur a $active_vdconfs active vicidial conferences<br><br>\n";
|
|
echo "</b></center>\n";
|
|
if ($LOGast_delete_phones > 0)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=511111111111&server_id=$server_id&server_ip=$server_ip\">SUPPRIMER CE SERVEUR</a>\n";
|
|
}
|
|
if ($LOGuser_level >= 9)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=720000000000000&category=SERVERS&stage=$server_id\">Cliquez ici pour voir Admin chages à ce serveur</FONT>\n";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=331111111111 modify conf template record in the system
|
|
######################
|
|
|
|
if ($ADD==331111111111)
|
|
{
|
|
if ($LOGast_admin_access==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT template_id,template_name,template_contents from vicidial_conf_templates where template_id='$template_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$template_id = $row[0];
|
|
$template_name = $row[1];
|
|
$template_contents = $row[2];
|
|
|
|
echo "<br>A MODIFIER CONF TEMPLATE RECORD: $row[0]<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=431111111111>\n";
|
|
echo "<input type=hidden name=template_id value=\"$template_id\">\n";
|
|
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Template ID: </td><td align=left><B>$template_id</B></td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom du modèle: </td><td align=left><input type=text name=template_name size=40 maxlength=50 value=\"$template_name\">$NWB#vicidial_conf_templates-template_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Template Sommaire: </td><td align=left><TEXTAREA NAME=template_contents ROWS=10 COLS=70>$template_contents</TEXTAREA> $NWB#vicidial_conf_templates-template_contents$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=submit VALUE=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
|
|
echo "<center><b>\n";
|
|
|
|
### list of phones using this conf template
|
|
echo "<center>\n";
|
|
echo "<br><b>PHONES UTILISANT CE CONF TEMPLATE:</b><br>\n";
|
|
echo "<TABLE width=500 cellspacing=3>\n";
|
|
echo "<tr><td>EXTENSION</td><td>NOM</td><td>SERVER</td><td>ACTIF</td></tr>\n";
|
|
|
|
$active_phones = 0;
|
|
$inactive_phones = 0;
|
|
$stmt="SELECT extension,active,fullname,server_ip from phones where template_id='$template_id'";
|
|
$rsltx=mysql_query($stmt, $link);
|
|
$lists_to_print = mysql_num_rows($rsltx);
|
|
$camp_lists='';
|
|
|
|
$o=0;
|
|
while ($lists_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rsltx);
|
|
$o++;
|
|
if (ereg("Y", $rowx[1])) {$active_phones++; $camp_lists .= "'$rowx[0]',";}
|
|
if (ereg("N", $rowx[1])) {$inactive_phones++;}
|
|
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=31111111111&extension=$rowx[0]&server_ip=$rowx[3]\">$rowx[0]</a></td><td><font size=1>$rowx[2]</td><td><font size=1>$rowx[3]</td><td><font size=1>$rowx[1]</td></tr>\n";
|
|
}
|
|
|
|
echo "</table></center><br>\n";
|
|
|
|
### list of carriers using this conf template
|
|
echo "<center>\n";
|
|
echo "<br><b>SUPPORTS UTILISANT CE CONF TEMPLATE:</b><br>\n";
|
|
echo "<TABLE width=500 cellspacing=3>\n";
|
|
echo "<tr><td>CARRIER</td><td>NOM</td><td>SERVER</td><td>ACTIF</td></tr>\n";
|
|
|
|
$active_phones = 0;
|
|
$inactive_phones = 0;
|
|
$stmt="SELECT carrier_id,active,carrier_name,server_ip from vicidial_server_carriers where template_id='$template_id'";
|
|
$rsltx=mysql_query($stmt, $link);
|
|
$lists_to_print = mysql_num_rows($rsltx);
|
|
$camp_lists='';
|
|
|
|
$o=0;
|
|
while ($lists_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rsltx);
|
|
$o++;
|
|
if (ereg("Y", $rowx[1])) {$active_phones++; $camp_lists .= "'$rowx[0]',";}
|
|
if (ereg("N", $rowx[1])) {$inactive_phones++;}
|
|
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=341111111111&carrier_id=$rowx[0]\">$rowx[0]</a></td><td><font size=1>$rowx[2]</td><td><font size=1>$rowx[3]</td><td><font size=1>$rowx[1]</td></tr>\n";
|
|
}
|
|
|
|
echo "</table></center><br>\n";
|
|
|
|
|
|
|
|
if ($LOGast_delete_phones > 0)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=531111111111&template_id=$template_id&template_name=$template_name\">SUPPRIMER CETTE CONF TEMPLATE</a>\n";
|
|
}
|
|
if ($LOGuser_level >= 9)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=720000000000000&category=CONFTEMPLATES&stage=$template_id\">Cliquez ici pour voir Admin chages à ce modèle de conf</FONT>\n";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=341111111111 modify carrier record in the system
|
|
######################
|
|
|
|
if ($ADD==341111111111)
|
|
{
|
|
if ($LOGast_admin_access==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT carrier_id,carrier_name,registration_string,template_id,account_entry,protocol,globals_string,dialplan_entry,server_ip,active from vicidial_server_carriers where carrier_id='$carrier_id';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$carrier_id = $row[0];
|
|
$carrier_name = $row[1];
|
|
$registration_string = $row[2];
|
|
$template_id = $row[3];
|
|
$account_entry = $row[4];
|
|
$protocol = $row[5];
|
|
$globals_string = $row[6];
|
|
$dialplan_entry = $row[7];
|
|
$server_ip = $row[8];
|
|
$active = $row[9];
|
|
|
|
echo "<br>MODIFIER UN SUPPORT D'ENREGISTREMENT: $row[0]<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=441111111111>\n";
|
|
echo "<input type=hidden name=carrier_id value=\"$carrier_id\">\n";
|
|
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Carrier ID: </td><td align=left><B>$carrier_id</B></td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom du transporteur: </td><td align=left><input type=text name=carrier_name size=40 maxlength=50 value=\"$carrier_name\">$NWB#vicidial_server_carriers-carrier_name$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Inscription à cordes: </td><td align=left><input type=text name=registration_string size=50 maxlength=255 value=\"$registration_string\">$NWB#vicidial_server_carriers-registration_string$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right><a href=\"$PHP_SELF?ADD=331111111111&template_id=$template_id\">Template ID</a>: </td><td align=left><select size=1 name=template_id>\n";
|
|
$stmt="SELECT template_id,template_name from vicidial_conf_templates order by template_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$templates_to_print = mysql_num_rows($rslt);
|
|
$templates_list='<option SELECTED>--NONE--</option>';
|
|
$o=0;
|
|
while ($templates_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$templates_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
echo "$templates_list";
|
|
echo "<option SELECTED>$template_id</option>\n";
|
|
echo "</select>$NWB#vicidial_server_carriers-template_id$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Entrée de compte: </td><td align=left><TEXTAREA NAME=account_entry ROWS=10 COLS=70>$account_entry</TEXTAREA> $NWB#vicidial_server_carriers-account_entry$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Protocole: </td><td align=left><select size=1 name=protocol><option>SIP</option><option>Zap</option><option>IAX2</option><option>EXTERNAL</option><option SELECTED>$protocol</option></select>$NWB#vicidial_server_carriers-protocol$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Globals String: </td><td align=left><input type=text name=globals_string size=50 maxlength=255 value=\"$globals_string\">$NWB#vicidial_server_carriers-globals_string$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Dialplan Entrée: </td><td align=left><TEXTAREA NAME=dialplan_entry ROWS=10 COLS=70>$dialplan_entry</TEXTAREA> $NWB#vicidial_server_carriers-dialplan_entry$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>IP du serveur: </td><td align=left><select size=1 name=server_ip>\n";
|
|
##### get server listing for dynamic pulldown
|
|
$stmt="SELECT server_ip,server_description from servers order by server_ip";
|
|
$rsltx=mysql_query($stmt, $link);
|
|
$servers_to_print = mysql_num_rows($rsltx);
|
|
$servers_list='';
|
|
|
|
$o=0;
|
|
while ($servers_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rsltx);
|
|
$servers_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "$servers_list";
|
|
echo "<option SELECTED>$server_ip</option>\n";
|
|
echo "</select>$NWB#vicidial_server_carriers-server_ip$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Actif: </td><td align=left><select size=1 name=active><option>Y</option><option>N</option><option SELECTED>$active</option></select>$NWB#vicidial_server_carriers-active$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=submit VALUE=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
|
|
echo "<center><b>\n";
|
|
if ($LOGast_delete_phones > 0)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=541111111111&carrier_id=$carrier_id&carrier_name=$carrier_name\">SUPPRIMER CETTE CARRIER</a>\n";
|
|
}
|
|
if ($LOGuser_level >= 9)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=720000000000000&category=CARRIERS&stage=$carrier_id\">Cliquez ici pour voir Admin chages à ce transporteur</FONT>\n";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=3111111111111 modify conference record in the system
|
|
######################
|
|
|
|
if ($ADD==3111111111111)
|
|
{
|
|
if ($LOGast_admin_access==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT * from conferences where conf_exten='$conf_exten' and server_ip='$server_ip';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$conf_exten = $row[0];
|
|
$server_ip = $row[1];
|
|
|
|
echo "<br>MODIFIER UNE CONFERENCE: $row[0]<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=4111111111111>\n";
|
|
echo "<input type=hidden name=old_conf_exten value=\"$row[0]\">\n";
|
|
echo "<input type=hidden name=old_server_ip value=\"$row[1]\">\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Conférence: </td><td align=left><input type=text name=conf_exten size=10 maxlength=7 value=\"$row[0]\">$NWB#conferences-conf_exten$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right><a href=\"$PHP_SELF?ADD=311111111111&server_ip=$row[1]\">IP du serveur</a>: </td><td align=left><select size=1 name=server_ip>\n";
|
|
|
|
echo "$servers_list";
|
|
echo "<option SELECTED>$row[1]</option>\n";
|
|
echo "</select>$NWB#conferences-server_ip$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Extension courante: </td><td align=left><input type=text name=extension size=20 maxlength=20 value=\"$row[2]\"></td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=submit VALUE=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
|
|
echo "<center><b>\n";
|
|
if ($LOGast_delete_phones > 0)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=5111111111111&conf_exten=$conf_exten&server_ip=$server_ip\">SUPPRIMER CETTE CONFERENCE</a>\n";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=31111111111111 modify vicidial conference record in the system
|
|
######################
|
|
|
|
if ($ADD==31111111111111)
|
|
{
|
|
if ($LOGast_admin_access==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT * from vicidial_conferences where conf_exten='$conf_exten' and server_ip='$server_ip';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$conf_exten = $row[0];
|
|
$server_ip = $row[1];
|
|
|
|
echo "<br>MODIFY A VICIDIAL CONFERENCE RECORD: $row[0]<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=41111111111111>\n";
|
|
echo "<input type=hidden name=old_conf_exten value=\"$row[0]\">\n";
|
|
echo "<input type=hidden name=old_server_ip value=\"$row[1]\">\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Conférence: </td><td align=left><input type=text name=conf_exten size=10 maxlength=7 value=\"$row[0]\">$NWB#conferences-conf_exten$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right><a href=\"$PHP_SELF?ADD=311111111111&server_ip=$row[1]\">IP du serveur</a>: </td><td align=left><select size=1 name=server_ip>\n";
|
|
|
|
echo "$servers_list";
|
|
echo "<option SELECTED>$row[1]</option>\n";
|
|
echo "</select>$NWB#conferences-server_ip$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Extension courante: </td><td align=left><input type=text name=extension size=20 maxlength=20 value=\"$row[2]\"></td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=submit VALUE=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
|
|
echo "<center><b>\n";
|
|
if ($LOGast_delete_phones > 0)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=51111111111111&conf_exten=$conf_exten&server_ip=$server_ip\">SUPPRIMER CETTE CONFERENCE VICIDIAL</a>\n";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
######################
|
|
# ADD=311111111111111 modify vicidial system settings
|
|
######################
|
|
|
|
if ($ADD==311111111111111)
|
|
{
|
|
if ($LOGmodify_servers==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT version,install_date,use_non_latin,webroot_writable,enable_queuemetrics_logging,queuemetrics_server_ip,queuemetrics_dbname,queuemetrics_login,queuemetrics_pass,queuemetrics_url,queuemetrics_log_id,queuemetrics_eq_prepend,vicidial_agent_disable,allow_sipsak_messages,admin_home_url,enable_agc_xfer_log,db_schema_version,auto_user_add_value,timeclock_end_of_day,timeclock_last_reset_date,vdc_header_date_format,vdc_customer_date_format,vdc_header_phone_format,vdc_agent_api_active,qc_last_pull_time,enable_vtiger_integration,vtiger_server_ip,vtiger_dbname,vtiger_login,vtiger_pass,vtiger_url,qc_features_active,outbound_autodial_active,outbound_calls_per_second from system_settings;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$version = $row[0];
|
|
$install_date = $row[1];
|
|
$use_non_latin = $row[2];
|
|
$webroot_writable = $row[3];
|
|
$enable_queuemetrics_logging = $row[4];
|
|
$queuemetrics_server_ip = $row[5];
|
|
$queuemetrics_dbname = $row[6];
|
|
$queuemetrics_login = $row[7];
|
|
$queuemetrics_pass = $row[8];
|
|
$queuemetrics_url = $row[9];
|
|
$queuemetrics_log_id = $row[10];
|
|
$queuemetrics_eq_prepend = $row[11];
|
|
$vicidial_agent_disable = $row[12];
|
|
$allow_sipsak_messages = $row[13];
|
|
$admin_home_url = $row[14];
|
|
$enable_agc_xfer_log = $row[15];
|
|
$db_schema_version = $row[16];
|
|
$auto_user_add_value = $row[17];
|
|
$timeclock_end_of_day = $row[18];
|
|
$timeclock_last_reset_date = $row[19];
|
|
$vdc_header_date_format = $row[20];
|
|
$vdc_customer_date_format = $row[21];
|
|
$vdc_header_phone_format = $row[22];
|
|
$vdc_agent_api_active = $row[23];
|
|
$qc_last_pull_time = $row[24];
|
|
$enable_vtiger_integration = $row[25];
|
|
$vtiger_server_ip = $row[26];
|
|
$vtiger_dbname = $row[27];
|
|
$vtiger_login = $row[28];
|
|
$vtiger_pass = $row[29];
|
|
$vtiger_url = $row[30];
|
|
$qc_features_active = $row[31];
|
|
$outbound_autodial_active = $row[32];
|
|
$outbound_calls_per_second = $row[33];
|
|
|
|
echo "<br>MODIFIER LES REGLAGES DU SYSTEME VICIDIAL<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=411111111111111>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Version: </td><td align=left> $version</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>DB Schema Version: </td><td align=left> $db_schema_version</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Auto Utilisateur-add Value: </td><td align=left> $auto_user_add_value</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Date d'installation: </td><td align=left> $install_date</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Utiliser Non-Latin: </td><td align=left><select size=1 name=use_non_latin><option>1</option><option>0</option><option selected>$use_non_latin</option></select>$NWB#settings-use_non_latin$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Webroot éditable: </td><td align=left><select size=1 name=webroot_writable><option>1</option><option>0</option><option selected>$webroot_writable</option></select>$NWB#settings-webroot_writable$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Affichage de la désactivation d'un agent VICIDIAL: </td><td align=left><select size=1 name=vicidial_agent_disable>\n";
|
|
echo "<option value=\"NOT_ACTIVE\">NOT_ACTIVE</option>\n";
|
|
echo "<option value=\"LIVE_AGENT\">LIVE_AGENT</option>\n";
|
|
echo "<option value=\"EXTERNAL\">EXTERNAL</option>\n";
|
|
echo "<option value=\"ALL\">ALL</option>\n";
|
|
echo "<option selected value=\"$vicidial_agent_disable\">$vicidial_agent_disable</option>\n";
|
|
echo "</select>$NWB#settings-vicidial_agent_disable$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Autoriser les messages SIPSAK: </td><td align=left><select size=1 name=allow_sipsak_messages><option>1</option><option>0</option><option selected>$allow_sipsak_messages</option></select>$NWB#settings-allow_sipsak_messages$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>URL de l'accueil de l'administration: </td><td align=left><input type=text name=admin_home_url size=50 maxlength=255 value=\"$admin_home_url\">$NWB#settings-admin_home_url$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Permettez Le Fichier journal De Transfert D'Agent: </td><td align=left><select size=1 name=enable_agc_xfer_log><option>1</option><option>0</option><option selected>$enable_agc_xfer_log</option></select>$NWB#settings-enable_agc_xfer_log$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Horloge en temps Fin de la journée:</td><td align=left><input type=text name=timeclock_end_of_day size=5 maxlength=4 value=\"$timeclock_end_of_day\">$NWB#settings-timeclock_end_of_day$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Dernière timeclock Auto Déconnection:</td><td align=left> $timeclock_last_reset_date</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Pull QC Dernière Heure:</td><td align=left> $qc_last_pull_time</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Agent Header Screen Format Date: </td><td align=left><select size=1 name=vdc_header_date_format>\n";
|
|
echo "<option>MS_DASH_24HR 2008-06-24 23:59:59</option>\n";
|
|
echo "<option>US_SLASH_24HR 06/24/2008 23:59:59</option>\n";
|
|
echo "<option>EU_SLASH_24HR 24/06/2008 23:59:59</option>\n";
|
|
echo "<option>AL_TEXT_24HR JUN 24 23:59:59</option>\n";
|
|
echo "<option>MS_DASH_AMPM 2008-06-24 11:59:59 PM</option>\n";
|
|
echo "<option>US_SLASH_AMPM 06/24/2008 11:59:59 PM</option>\n";
|
|
echo "<option>EU_SLASH_AMPM 24/06/2008 11:59:59 PM</option>\n";
|
|
echo "<option>AL_TEXT_AMPM JUN 24 11:59:59 PM</option>\n";
|
|
echo "<option selected value=\"$vdc_header_date_format\">$vdc_header_date_format</option>\n";
|
|
echo "</select>$NWB#settings-vdc_header_date_format$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Agent client Screen Format Date: </td><td align=left><select size=1 name=vdc_customer_date_format>\n";
|
|
echo "<option>MS_DASH_24HR 2008-06-24 23:59:59</option>\n";
|
|
echo "<option>US_SLASH_24HR 06/24/2008 23:59:59</option>\n";
|
|
echo "<option>EU_SLASH_24HR 24/06/2008 23:59:59</option>\n";
|
|
echo "<option>AL_TEXT_24HR JUN 24 23:59:59</option>\n";
|
|
echo "<option>MS_DASH_AMPM 2008-06-24 11:59:59 PM</option>\n";
|
|
echo "<option>US_SLASH_AMPM 06/24/2008 11:59:59 PM</option>\n";
|
|
echo "<option>EU_SLASH_AMPM 24/06/2008 11:59:59 PM</option>\n";
|
|
echo "<option>AL_TEXT_AMPM JUN 24 11:59:59 PM</option>\n";
|
|
echo "<option selected value=\"$vdc_customer_date_format\">$vdc_customer_date_format</option>\n";
|
|
echo "</select>$NWB#settings-vdc_customer_date_format$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Agent Client Téléphone Screen Format: </td><td align=left><select size=1 name=vdc_header_phone_format>\n";
|
|
echo "<option>US_DASH 000-000-0000</option>\n";
|
|
echo "<option>US_PARN (000)000-0000</option>\n";
|
|
echo "<option>MS_NODS 0000000000</option>\n";
|
|
echo "<option>UK_DASH 00 0000-0000</option>\n";
|
|
echo "<option>AU_SPAC 000 000 000</option>\n";
|
|
echo "<option>IT_DASH 0000-000-000</option>\n";
|
|
echo "<option>FR_SPAC 00 00 00 00 00</option>\n";
|
|
echo "<option selected value=\"$vdc_header_phone_format\">$vdc_header_phone_format</option>\n";
|
|
echo "</select>$NWB#settings-vdc_header_phone_format$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Agent API Active:</td><td align=left><select size=1 name=vdc_agent_api_active><option>1</option><option>0</option><option selected>$vdc_agent_api_active</option></select>$NWB#settings-vdc_agent_api_active$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>QC Active Caractéristiques: </td><td align=left><select size=1 name=qc_features_active><option>1</option><option>0</option><option selected>$qc_features_active</option></select>$NWB#settings-qc_features_active$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Auto Outbound Dial-Actif: </td><td align=left><select size=1 name=outbound_autodial_active><option>1</option><option>0</option><option selected>$outbound_autodial_active</option></select>$NWB#settings-outbound_autodial_active$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Max REMPLISSAGE demande par seconde: </td><td align=left><input type=text name=outbound_calls_per_second size=4 maxlength=3 value=\"$outbound_calls_per_second\">$NWB#settings-outbound_calls_per_second$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#99FFCC><td align=right>Activer le log des QueueMetrics: </td><td align=left><select size=1 name=enable_queuemetrics_logging><option>1</option><option>0</option><option selected>$enable_queuemetrics_logging</option></select>$NWB#settings-enable_queuemetrics_logging$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#99FFCC><td align=right>IP du serveur QueueMetrics: </td><td align=left><input type=text name=queuemetrics_server_ip size=18 maxlength=15 value=\"$queuemetrics_server_ip\">$NWB#settings-queuemetrics_server_ip$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#99FFCC><td align=right>Nom de la base de données QueueMetrics: </td><td align=left><input type=text name=queuemetrics_dbname size=18 maxlength=50 value=\"$queuemetrics_dbname\">$NWB#settings-queuemetrics_dbname$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#99FFCC><td align=right>Login de la base de données QueueMetrics: </td><td align=left><input type=text name=queuemetrics_login size=18 maxlength=50 value=\"$queuemetrics_login\">$NWB#settings-queuemetrics_login$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#99FFCC><td align=right>Mot de passe de la base de données QueueMetrics: </td><td align=left><input type=text name=queuemetrics_pass size=18 maxlength=50 value=\"$queuemetrics_pass\">$NWB#settings-queuemetrics_pass$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#99FFCC><td align=right>QueueMetrics URL: </td><td align=left><input type=text name=queuemetrics_url size=50 maxlength=255 value=\"$queuemetrics_url\">$NWB#settings-queuemetrics_url$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#99FFCC><td align=right>Identifiant des log de QueueMetrics: </td><td align=left><input type=text name=queuemetrics_log_id size=12 maxlength=10 value=\"$queuemetrics_log_id\">$NWB#settings-queuemetrics_log_id$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#99FFCC><td align=right>Préfixe EnterQueue QueueMetrics: </td><td align=left><select size=1 name=queuemetrics_eq_prepend>\n";
|
|
echo "<option value=\"NONE\">NONE</option>\n";
|
|
echo "<option value=\"lead_id\">lead_id</option>\n";
|
|
echo "<option value=\"list_id\">list_id</option>\n";
|
|
echo "<option value=\"source_id\">source_id</option>\n";
|
|
echo "<option value=\"vendor_lead_code\">vendor_lead_code</option>\n";
|
|
echo "<option value=\"address3\">address3</option>\n";
|
|
echo "<option value=\"security_phrase\">security_phrase</option>\n";
|
|
echo "<option selected value=\"$queuemetrics_eq_prepend\">$queuemetrics_eq_prepend</option>\n";
|
|
echo "</select>$NWB#settings-queuemetrics_eq_prepend$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#CCFFFF><td align=right>Activer Vtiger Integration: </td><td align=left><select size=1 name=enable_vtiger_integration><option>1</option><option>0</option><option selected>$enable_vtiger_integration</option></select>$NWB#settings-enable_vtiger_integration$NWE\n";
|
|
echo " <a href=\"./vtiger_user.php\" target=\"_blank\">Cliquez ici pour synchroniser les utilisateurs avec Vtiger</a>\n";
|
|
echo "</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#CCFFFF><td align=right>Vtiger DB IP du serveur: </td><td align=left><input type=text name=vtiger_server_ip size=18 maxlength=15 value=\"$vtiger_server_ip\">$NWB#settings-vtiger_server_ip$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#CCFFFF><td align=right>Vtiger DB Name: </td><td align=left><input type=text name=vtiger_dbname size=18 maxlength=50 value=\"$vtiger_dbname\">$NWB#settings-vtiger_dbname$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#CCFFFF><td align=right>Vtiger DB Login: </td><td align=left><input type=text name=vtiger_login size=18 maxlength=50 value=\"$vtiger_login\">$NWB#settings-vtiger_login$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#CCFFFF><td align=right>Vtiger DB Mot de passe:</td><td align=left><input type=text name=vtiger_pass size=18 maxlength=50 value=\"$vtiger_pass\">$NWB#settings-vtiger_pass$NWE</td></tr>\n";
|
|
echo "<tr bgcolor=#CCFFFF><td align=right>Vtiger Web: </td><td align=left><input type=text name=vtiger_url size=50 maxlength=255 value=\"$vtiger_url\">$NWB#settings-vtiger_url$NWE</td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=submit VALUE=VALIDER></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
echo "</form>\n";
|
|
if ($LOGuser_level >= 9)
|
|
{
|
|
echo "<br><br><a href=\"$PHP_SELF?ADD=720000000000000&category=SYSTEM\">Cliquez ici pour voir Admin chages pour les réglages du système</FONT>\n";
|
|
}
|
|
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
######################
|
|
# ADD=321111111111111 modify vicidial system statuses
|
|
######################
|
|
|
|
if ($ADD==321111111111111)
|
|
{
|
|
if ($LOGmodify_servers==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br><center>\n";
|
|
echo "<b>STATUTS DE VICIDIAL DANS CE SYSTÈME : $NWB#vicidial_statuses$NWE</b><br>\n";
|
|
echo "<TABLE width=700 cellspacing=3>\n";
|
|
echo "<tr><td>ETAT</td><td>DESCRIPTION</td><td>SELECT-<BR>ABLE</td><td>L'HOMME<BR>REPONSE</td><td>CATÉGORIE</td><td>MODIFY/DELETE</td></tr>\n";
|
|
|
|
##### get status category listings for dynamic pulldown
|
|
$stmt="SELECT vsc_id,vsc_name from vicidial_status_categories order by vsc_id desc";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$cats_to_print = mysql_num_rows($rslt);
|
|
$cats_list="";
|
|
|
|
$o=0;
|
|
while ($cats_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$cats_list .= "<option value=\"$rowx[0]\">$rowx[0] - " . substr($rowx[1],0,20) . "</option>\n";
|
|
$catsname_list["$rowx[0]"] = substr($rowx[1],0,20);
|
|
$o++;
|
|
}
|
|
|
|
|
|
$stmt="SELECT * from vicidial_statuses order by status;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$statuses_to_print = mysql_num_rows($rslt);
|
|
$o=0;
|
|
while ($statuses_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$AScategory = $rowx[4];
|
|
$o++;
|
|
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
|
|
echo "<tr $bgcolor><td><form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=421111111111111>\n";
|
|
echo "<input type=hidden name=stage value=modify>\n";
|
|
echo "<input type=hidden name=status value=\"$rowx[0]\">\n";
|
|
echo "<font size=2><B>$rowx[0]</B></td>\n";
|
|
echo "<td><input type=text name=status_name size=20 maxlength=30 value=\"$rowx[1]\"></td>\n";
|
|
echo "<td><select size=1 name=selectable><option>Y</option><option>N</option><option selected>$rowx[2]</option></select></td>\n";
|
|
echo "<td><select size=1 name=human_answered><option>Y</option><option>N</option><option selected>$rowx[3]</option></select></td>\n";
|
|
echo "<td>\n";
|
|
echo "<select size=1 name=category>\n";
|
|
echo "$cats_list";
|
|
echo "<option selected value=\"$AScategory\">$AScategory - $catsname_list[$AScategory]</option>\n";
|
|
echo "</select>\n";
|
|
echo "</td>\n";
|
|
echo "<td align=center nowrap><font size=1><input type=submit name=submit value=MODIFY> \n";
|
|
echo " \n";
|
|
|
|
if (preg_match("/^B$|^NA$|^DNC$|^NA$|^DROP$|^INCALL$|^QUEUE$|^NEW$/i",$rowx[0]))
|
|
{
|
|
echo "<DEL>SUPPRIMER</DEL>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<a href=\"$PHP_SELF?ADD=421111111111111&status=$rowx[0]&stage=delete\">SUPPRIMER</a>\n";
|
|
}
|
|
echo "</form></td></tr>\n";
|
|
}
|
|
|
|
echo "</table>\n";
|
|
|
|
echo "<br>AJOUTEZ LE NOUVEAU STATUT DE SYSTÈME<BR><form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=221111111111111>\n";
|
|
echo "Etat: <input type=text name=status size=7 maxlength=6> \n";
|
|
echo "Description: <input type=text name=status_name size=30 maxlength=30><BR>\n";
|
|
echo "Selectionnable: <select size=1 name=selectable><option>Y</option><option>N</option></select> \n";
|
|
echo "Réponse de l'homme: <select size=1 name=human_answered><option>Y</option><option>N</option></select> \n";
|
|
echo "Catégorie :\n";
|
|
echo "<select size=1 name=category>\n";
|
|
echo "$cats_list";
|
|
echo "<option selected value=\"$AScategory\">$AScategory - $catsname_list[$AScategory]</option>\n";
|
|
echo "</select> <BR>\n";
|
|
echo "<input type=submit name=submit value=AJOUTER><BR>\n";
|
|
|
|
echo "</FORM><br>\n";
|
|
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
######################
|
|
# ADD=331111111111111 modify vicidial status categories
|
|
######################
|
|
|
|
if ($ADD==331111111111111)
|
|
{
|
|
if ($LOGmodify_servers==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br><center>\n";
|
|
echo "<b>VICIDIAL ÉTAT CATEGORIES: $NWB#vicidial_status_categories$NWE</b><br>\n";
|
|
echo "<TABLE width=700 cellspacing=3>\n";
|
|
echo "<tr><td>CATÉGORIE</td><td>NOM</td><td>STATUTS DE CETTE CATEGORIE</td></tr>\n";
|
|
|
|
$stmt="SELECT * from vicidial_status_categories order by vsc_id;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$statuses_to_print = mysql_num_rows($rslt);
|
|
$o=0;
|
|
while ($statuses_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$Avsc_id[$o] = $rowx[0];
|
|
$Avsc_name[$o] = $rowx[1];
|
|
$Avsc_description[$o] = $rowx[2];
|
|
$Atovdad_display[$o] = $rowx[3];
|
|
$Asale_category[$o] = $rowx[4];
|
|
$Adead_lead_category[$o] = $rowx[5];
|
|
$o++;
|
|
}
|
|
$p=0;
|
|
while ($o > $p)
|
|
{
|
|
if (eregi("1$|3$|5$|7$|9$", $p))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
|
|
$CATstatuses='';
|
|
$stmt="SELECT status from vicidial_statuses where category='$Avsc_id[$p]' order by status;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$statuses_to_print = mysql_num_rows($rslt);
|
|
$q=0;
|
|
while ($statuses_to_print > $q)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$CATstatuses.=" $rowx[0]";
|
|
$q++;
|
|
}
|
|
$stmt="SELECT status from vicidial_campaign_statuses where category='$Avsc_id[$p]' order by status;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$statuses_to_print = mysql_num_rows($rslt);
|
|
$q=0;
|
|
while ($statuses_to_print > $q)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$CATstatuses.=" $rowx[0]";
|
|
$q++;
|
|
}
|
|
|
|
echo "<tr $bgcolor><td><form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=431111111111111>\n";
|
|
echo "<input type=hidden name=stage value=modify>\n";
|
|
echo "<input type=hidden name=vsc_id value=\"$Avsc_id[$p]\">\n";
|
|
echo "<font size=2><B>$Avsc_id[$p]</B></td>\n";
|
|
echo "<td><input type=text name=vsc_name size=30 maxlength=50 value=\"$Avsc_name[$p]\"></td>\n";
|
|
echo "<td><font size=1>\n";
|
|
echo "$CATstatuses";
|
|
echo "</td></tr>\n";
|
|
echo "<tr $bgcolor>\n";
|
|
echo "<td colspan=3>TO VDAD Afficher: <select size=1 name=tovdad_display><option>Y</option><option>N</option><option selected>$Atovdad_display[$p]</option></select> Vente Catégorie:<select size=1 name=sale_category><option>Y</option><option>N</option><option selected>$Asale_category[$p]</option></select> Dead Lead Catégorie:<select size=1 name=dead_lead_category><option>Y</option><option>N</option><option selected>$Adead_lead_category[$p]</option></select> </td></tr>\n";
|
|
echo "<tr $bgcolor><td colspan=3><font size=1>Description: <input type=text name=vsc_description size=90 maxlength=255 value=\"$Avsc_description[$p]\"></td></tr>\n";
|
|
echo "<tr $bgcolor><td colspan=3 align=center><font size=1><input type=submit name=submit value=MODIFY> \n";
|
|
echo " <a href=\"$PHP_SELF?ADD=431111111111111&vsc_id=$Avsc_id[$p]&stage=delete\">SUPPRIMER</a></td></tr>\n";
|
|
echo "<tr><td colspan=4><font size=1> </form></td></tr>\n";
|
|
|
|
$p++;
|
|
}
|
|
|
|
echo "</table>\n";
|
|
|
|
echo "<br>AJOUTEZ LA NOUVELLE CATÉGORIE DE STATUT<BR><form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=231111111111111>\n";
|
|
echo "Category ID: <input type=text name=vsc_id size=20 maxlength=20> \n";
|
|
echo "Name: <input type=text name=vsc_name size=20 maxlength=50> <BR>\n";
|
|
echo "TimeOnVDAD Afficher: <select size=1 name=tovdad_display><option>Y</option><option selected>N</option></select> \n";
|
|
echo "Vente Catégorie:<select size=1 name=sale_category><option>Y</option><option selected>N</option></select> \n";
|
|
echo "Dead Lead Catégorie:<select size=1 name=dead_lead_category><option>Y</option><option selected>N</option></select> <BR>\n";
|
|
echo "Description: <input type=text name=vsc_description size=80 maxlength=255> \n";
|
|
echo "<input type=submit name=submit value=AJOUTER><BR>\n";
|
|
|
|
echo "</FORM><br>\n";
|
|
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
######################
|
|
# ADD=341111111111111 modify vicidial QC status code
|
|
######################
|
|
|
|
if ($ADD==341111111111111)
|
|
{
|
|
if ( ($LOGmodify_servers==1) and ($SSqc_features_active > 0) )
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br><center>\n";
|
|
echo "<b>VICIDIAL QC ÉTAT DANS CE SYSTEME DE CODES: $NWB#vicidial_qc_status_codes$NWE</b><br>\n";
|
|
echo "<TABLE width=600 cellspacing=3>\n";
|
|
echo "<tr><td>STATUS CODE</td><td>DESCRIPTION</td><td>MODIFY/DELETE</td></tr>\n";
|
|
|
|
##### go through each QC status code
|
|
$stmt="SELECT count(*) from vicidial_qc_codes;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$rowx=mysql_fetch_row($rslt);
|
|
if ($rowx[0] > 0)
|
|
{
|
|
$stmt="SELECT code,code_name from vicidial_qc_codes order by code;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$statuses_to_print = mysql_num_rows($rslt);
|
|
$o=0;
|
|
while ($statuses_to_print > $o)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$o++;
|
|
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
|
|
echo "<tr $bgcolor><td><form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=441111111111111>\n";
|
|
echo "<input type=hidden name=stage value=modify>\n";
|
|
echo "<input type=hidden name=code value=\"$rowx[0]\">\n";
|
|
echo "<font size=2><B>$rowx[0]</B></td>\n";
|
|
echo "<td><input type=text name=code_name size=20 maxlength=30 value=\"$rowx[1]\"></td>\n";
|
|
echo "<td align=center nowrap><font size=1><input type=submit name=submit value=MODIFY> \n";
|
|
echo " \n";
|
|
|
|
if (preg_match("/^B$|^NA$|^DNC$|^NA$|^DROP$|^INCALL$|^QUEUE$|^NEW$/i",$rowx[0]))
|
|
{
|
|
echo "<DEL>SUPPRIMER</DEL>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "<a href=\"$PHP_SELF?ADD=441111111111111&status=$rowx[0]&stage=delete\">SUPPRIMER</a>\n";
|
|
}
|
|
echo "</form></td></tr>\n";
|
|
}
|
|
}
|
|
echo "</table>\n";
|
|
|
|
echo "<br>ADD NEW QC Code de statut<BR><form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=241111111111111>\n";
|
|
echo "Etat: <input type=text name=code size=9 maxlength=8> \n";
|
|
echo "Description: <input type=text name=code_name size=30 maxlength=30><BR>\n";
|
|
echo "<input type=submit name=submit value=AJOUTER><BR>\n";
|
|
|
|
echo "</FORM><br>\n";
|
|
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
######################
|
|
# ADD=550 search form
|
|
######################
|
|
|
|
if ($ADD==550)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
echo "<br>RECHERCHER UN UTILISATEUR<form action=$PHP_SELF method=POST>\n";
|
|
echo "<input type=hidden name=ADD value=660>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Numéro d'utilisateur : </td><td align=left><input type=text name=user size=20 maxlength=20></td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Nom complet: </td><td align=left><input type=text name=full_name size=30 maxlength=30></td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Niveau de l'utilisateur: </td><td align=left><select size=1 name=user_level><option selected>0</option><option>1</option><option>2</option><option>3</option><option>4</option><option>5</option><option>6</option><option>7</option><option>8</option><option>9</option></select></td></tr>\n";
|
|
echo "<tr bgcolor=#B6D3FC><td align=right>Groupe utilisateur: </td><td align=left><select size=1 name=user_group>\n";
|
|
|
|
$stmt="SELECT * from vicidial_user_groups order by user_group";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$groups_to_print = mysql_num_rows($rslt);
|
|
$o=0;
|
|
$groups_list='';
|
|
while ($groups_to_print > $o) {
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$groups_list .= "<option value=\"$rowx[0]\">$rowx[0] - $rowx[1]</option>\n";
|
|
$o++;
|
|
}
|
|
echo "$groups_list</select></td></tr>\n";
|
|
|
|
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=search value=search></td></tr>\n";
|
|
echo "</TABLE></center>\n";
|
|
|
|
}
|
|
|
|
######################
|
|
# ADD=660 user search results
|
|
######################
|
|
|
|
if ($ADD==660)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$SQL = '';
|
|
if ($user) {$SQL .= " user LIKE \"%$user%\" and";}
|
|
if ($full_name) {$SQL .= " full_name LIKE \"%$full_name%\" and";}
|
|
if ($user_level > 0) {$SQL .= " user_level LIKE \"%$user_level%\" and";}
|
|
if ($user_group) {$SQL .= " user_group = '$user_group' and";}
|
|
$SQL = eregi_replace(" and$", "", $SQL);
|
|
if (strlen($SQL)>5) {$SQL = "where $SQL";}
|
|
|
|
$stmt="SELECT * from vicidial_users $SQL order by full_name desc;";
|
|
# echo "\n|$stmt|\n";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$people_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<br>RESULTATS DE LA RECHERCHE:\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
|
|
$o=0;
|
|
while ($people_to_print > $o) {
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1>$row[1]</td><td><font size=1>$row[3]</td><td><font size=1>$row[4]</td><td><font size=1>$row[5]</td>";
|
|
echo "<td><font size=1><a href=\"$PHP_SELF?ADD=3&user=$row[1]\">MODIFIER</a> | <a href=\"./user_stats.php?user=$row[1]\">STATISTIQUES</a> | <a href=\"./user_status.php?user=$row[1]\">ETAT</a> | <a href=\"./AST_agent_time_sheet.php?agent=$row[1]\">TIME</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
|
|
}
|
|
|
|
|
|
######################################################################################################
|
|
######################################################################################################
|
|
####### 8 series, Callback lists
|
|
######################################################################################################
|
|
######################################################################################################
|
|
|
|
######################
|
|
# ADD=8 find all callbacks on hold by a User
|
|
######################
|
|
if ($ADD==8)
|
|
{
|
|
if ($LOGmodify_users==1)
|
|
{
|
|
if ($SUB==89)
|
|
{
|
|
$stmt="UPDATE vicidial_callbacks SET status='INACTIVE' where user='$user' and status='LIVE' and callback_time < '$past_month_date';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
echo "<br>Utilisateur($user) callback listings LIVE for more than one month have been made INACTIVE\n";
|
|
}
|
|
if ($SUB==899)
|
|
{
|
|
$stmt="UPDATE vicidial_callbacks SET status='INACTIVE' where user='$user' and status='LIVE' and callback_time < '$past_week_date';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
echo "<br>Utilisateur($user) callback listings LIVE for more than one week have been made INACTIVE\n";
|
|
}
|
|
}
|
|
$CBinactiveLINK = "<BR><a href=\"$PHP_SELF?ADD=8&SUB=89&user=$user\">Remove LIVE Callbacks older than one month for this user</a><BR><a href=\"$PHP_SELF?ADD=8&SUB=899&user=$user\">Remove LIVE Callbacks older than one week for this user</a><BR>";
|
|
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$CBquerySQLwhere = "and user='$user'";
|
|
|
|
echo "<br>USER CALLBACK HOLD LISTINGS: $user\n";
|
|
$oldADD = "ADD=8&user=$user";
|
|
$ADD='82';
|
|
}
|
|
|
|
######################
|
|
# ADD=81 find all callbacks on hold within a Campaign
|
|
######################
|
|
if ($ADD==81)
|
|
{
|
|
if ($LOGmodify_campaigns==1)
|
|
{
|
|
if ($SUB==89)
|
|
{
|
|
$stmt="UPDATE vicidial_callbacks SET status='INACTIVE' where campaign_id='$campaign_id' and status='LIVE' and callback_time < '$past_month_date';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
echo "<br>campaign($campaign_id) callback listings LIVE for more than one month have been made INACTIVE\n";
|
|
}
|
|
if ($SUB==899)
|
|
{
|
|
$stmt="UPDATE vicidial_callbacks SET status='INACTIVE' where campaign_id='$campaign_id' and status='LIVE' and callback_time < '$past_week_date';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
echo "<br>campaign($campaign_id) callback listings LIVE for more than one week have been made INACTIVE\n";
|
|
}
|
|
}
|
|
$CBinactiveLINK = "<BR><a href=\"$PHP_SELF?ADD=81&SUB=89&campaign_id=$campaign_id\">Remove LIVE Callbacks older than one month for this campaign</a><BR><a href=\"$PHP_SELF?ADD=81&SUB=899&campaign_id=$campaign_id\">Remove LIVE Callbacks older than one week for this campaign</a><BR>";
|
|
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$CBquerySQLwhere = "and campaign_id='$campaign_id'";
|
|
|
|
echo "<br>CAMPAIGN CALLBACK HOLD LISTINGS: $campaign_id\n";
|
|
$oldADD = "ADD=81&campaign_id=$campaign_id";
|
|
$ADD='82';
|
|
}
|
|
|
|
######################
|
|
# ADD=811 find all callbacks on hold within a List
|
|
######################
|
|
if ($ADD==811)
|
|
{
|
|
if ($LOGmodify_lists==1)
|
|
{
|
|
if ($SUB==89)
|
|
{
|
|
$stmt="UPDATE vicidial_callbacks SET status='INACTIVE' where list_id='$list_id' and status='LIVE' and callback_time < '$past_month_date';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
echo "<br>list($list_id) callback listings LIVE for more than one month have been made INACTIVE\n";
|
|
}
|
|
if ($SUB==899)
|
|
{
|
|
$stmt="UPDATE vicidial_callbacks SET status='INACTIVE' where list_id='$list_id' and status='LIVE' and callback_time < '$past_week_date';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
echo "<br>list($list_id) callback listings LIVE for more than one week have been made INACTIVE\n";
|
|
}
|
|
}
|
|
$CBinactiveLINK = "<BR><a href=\"$PHP_SELF?ADD=811&SUB=89&list_id=$list_id\">Remove LIVE Callbacks older than one month for this list</a><BR><a href=\"$PHP_SELF?ADD=811&SUB=899&list_id=$list_id\">Remove LIVE Callbacks older than one week for this list</a><BR>";
|
|
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$CBquerySQLwhere = "and list_id='$list_id'";
|
|
|
|
echo "<br>LIST CALLBACK HOLD LISTINGS: $list_id\n";
|
|
$oldADD = "ADD=811&list_id=$list_id";
|
|
$ADD='82';
|
|
}
|
|
|
|
######################
|
|
# ADD=8111 find all callbacks on hold within a user group
|
|
######################
|
|
if ($ADD==8111)
|
|
{
|
|
if ($LOGmodify_usergroups==1)
|
|
{
|
|
if ($SUB==89)
|
|
{
|
|
$stmt="UPDATE vicidial_callbacks SET status='INACTIVE' where user_group='$user_group' and status='LIVE' and callback_time < '$past_month_date';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
echo "<br>user group($user_group) callback listings LIVE for more than one month have been made INACTIVE\n";
|
|
}
|
|
if ($SUB==899)
|
|
{
|
|
$stmt="UPDATE vicidial_callbacks SET status='INACTIVE' where user_group='$user_group' and status='LIVE' and callback_time < '$past_week_date';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
echo "<br>user group($user_group) callback listings LIVE for more than one week have been made INACTIVE\n";
|
|
}
|
|
}
|
|
$CBinactiveLINK = "<BR><a href=\"$PHP_SELF?ADD=8111&SUB=89&user_group=$user_group\">Remove LIVE Callbacks older than one month for this user group</a><BR><a href=\"$PHP_SELF?ADD=8111&SUB=899&user_group=$user_group\">Remove LIVE Callbacks older than one week for this user group</a><BR>";
|
|
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$CBquerySQLwhere = "and user_group='$user_group'";
|
|
|
|
echo "<br>GROUPE D'UTILISATEURS CALLBACK HOLD LISTINGS: $list_id\n";
|
|
$oldADD = "ADD=8111&user_group=$user_group";
|
|
$ADD='82';
|
|
}
|
|
|
|
######################
|
|
# ADD=82 display all callbacks on hold
|
|
######################
|
|
if ($ADD==82)
|
|
{
|
|
|
|
$USERlink='stage=USERIDDOWN';
|
|
$GROUPlink='stage=GROUPDOWN';
|
|
$ENDATElink='stage=ENDATEDOWN';
|
|
$SQLorder='order by ';
|
|
if (eregi("USERIDDOWN",$stage)) {$SQLorder='order by user desc,'; $USERlink='stage=USERIDUP';}
|
|
if (eregi("GROUPDOWN",$stage)) {$SQLorder='order by user_group desc,'; $NAMElink='stage=NAMEUP';}
|
|
if (eregi("ENDATEDOWN",$stage)) {$SQLorder='order by entry_time desc,'; $NIVEAUlink='stage=NIVEAUUP';}
|
|
|
|
$stmt="SELECT * from vicidial_callbacks where status IN('ACTIVE','LIVE') $CBquerySQLwhere $SQLorder recipient,status desc,callback_time";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$cb_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<tr bgcolor=black>\n";
|
|
echo "<td><font size=1 color=white>LEAD</td><td><font size=1 color=white>LIST</td>\n";
|
|
echo "<td><font size=1 color=white> CAMPAGNE</td>\n";
|
|
echo "<td><a href=\"$PHP_SELF?$oldADD&$ENDATElink\"><font size=1 color=white><B>ENTRY DATE</B></a></td>\n";
|
|
echo "<td><font size=1 color=white>CALLBACK DATE</td>\n";
|
|
echo "<td><a href=\"$PHP_SELF?$oldADD&$USERlink\"><font size=1 color=white><B>USER</B></a></td>\n";
|
|
echo "<td><font size=1 color=white>RECIPIENT</td>\n";
|
|
echo "<td><font size=1 color=white>ETAT</td>\n";
|
|
echo "<td><a href=\"$PHP_SELF?$oldADD&$GROUPlink\"><font size=1 color=white><B>GROUP</B></a></td></tr>\n";
|
|
|
|
$o=0;
|
|
while ($cb_to_print > $o) {
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor>";
|
|
echo "<td><font size=1><A HREF=\"admin_modify_lead.php?lead_id=$row[1]\" target=\"_blank\">$row[1]</A></td>";
|
|
echo "<td><font size=1><A HREF=\"$PHP_SELF?ADD=311&list_id=$row[2]\">$row[2]</A></td>";
|
|
echo "<td><font size=1><A HREF=\"$PHP_SELF?ADD=31&campaign_id=$row[3]\">$row[3]</A></td>";
|
|
echo "<td><font size=1>$row[5]</td>";
|
|
echo "<td><font size=1>$row[6]</td>";
|
|
echo "<td><font size=1><A HREF=\"$PHP_SELF?ADD=3&user=$row[8]\">$row[8]</A></td>";
|
|
echo "<td><font size=1>$row[9]</td>";
|
|
echo "<td><font size=1>$row[4]</td>";
|
|
echo "<td><font size=1><A HREF=\"$PHP_SELF?ADD=311111&user_group=$row[11]\">$row[11]</A></td>";
|
|
echo "</tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
|
|
echo "$CBinactiveLINK";
|
|
}
|
|
|
|
|
|
|
|
######################################################################################################
|
|
######################################################################################################
|
|
####### 0 series, displays and searches
|
|
######################################################################################################
|
|
######################################################################################################
|
|
|
|
######################
|
|
# ADD=0 display all active users
|
|
######################
|
|
if ($ADD==0)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
echo "<br>LISTE DES UTILISATEURS: ";
|
|
if (ereg('display_all',$status))
|
|
{
|
|
$SQLstatus = '';
|
|
echo " <a href=\"$PHP_SELF?ADD=0\"><font size=1 color=black>Afficher uniquement les utilisateurs actifs</a>\n";
|
|
}
|
|
else
|
|
{
|
|
$SQLstatus = "where active='Y'";
|
|
echo " <a href=\"$PHP_SELF?ADD=0&status=display_all\"><font size=1 color=black>Afficher tous les utilisateurs</a>\n";
|
|
}
|
|
|
|
$USERlink='stage=USERIDDOWN';
|
|
$NAMElink='stage=NAMEDOWN';
|
|
$NIVEAUlink='stage=NIVEAUDOWN';
|
|
$GROUPlink='stage=GROUPDOWN';
|
|
$SQLorder='order by full_name';
|
|
if (eregi("USERIDUP",$stage)) {$SQLorder='order by user asc'; $USERlink='stage=USERIDDOWN';}
|
|
if (eregi("USERIDDOWN",$stage)) {$SQLorder='order by user desc'; $USERlink='stage=USERIDUP';}
|
|
if (eregi("NAMEUP",$stage)) {$SQLorder='order by full_name asc'; $NAMElink='stage=NAMEDOWN';}
|
|
if (eregi("NAMEDOWN",$stage)) {$SQLorder='order by full_name desc'; $NAMElink='stage=NAMEUP';}
|
|
if (eregi("NIVEAUUP",$stage)) {$SQLorder='order by user_level asc'; $NIVEAUlink='stage=NIVEAUDOWN';}
|
|
if (eregi("NIVEAUDOWN",$stage)) {$SQLorder='order by user_level desc'; $NIVEAUlink='stage=NIVEAUUP';}
|
|
if (eregi("GROUPUP",$stage)) {$SQLorder='order by user_group asc'; $GROUPlink='stage=GROUPDOWN';}
|
|
if (eregi("GROUPDOWN",$stage)) {$SQLorder='order by user_group desc'; $GROUPlink='stage=GROUPUP';}
|
|
$stmt="SELECT user,full_name,user_level,user_group,active from vicidial_users $SQLstatus $SQLorder";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$people_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<tr bgcolor=black>";
|
|
echo "<td><a href=\"$PHP_SELF?ADD=0&status=$status&$USERlink\"><font size=1 color=white><B>USER ID</B></a></td>";
|
|
echo "<td><a href=\"$PHP_SELF?ADD=0&status=$status&$NAMElink\"><font size=1 color=white><B>FULL NAME</B></a></td>";
|
|
echo "<td><a href=\"$PHP_SELF?ADD=0&status=$status&$NIVEAUlink\"><font size=1 color=white><B>NIVEAU</B></a></td>";
|
|
echo "<td><a href=\"$PHP_SELF?ADD=0&status=$status&$GROUPlink\"><font size=1 color=white><B>GROUP</B></a></td>";
|
|
echo "<td><font size=1 color=white><B>ACTIF</B></td>";
|
|
echo "<td align=center><font size=1 color=white><B>LIENS</B></td></tr>\n";
|
|
|
|
$o=0;
|
|
while ($people_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><a href=\"$PHP_SELF?ADD=3&user=$row[0]\"><font size=1 color=black>$row[0]</a></td>";
|
|
echo "<td><font size=1>$row[1]</td>";
|
|
echo "<td><font size=1>$row[2]</td>";
|
|
echo "<td><font size=1>$row[3]</td>";
|
|
echo "<td><font size=1>$row[4]</td>";
|
|
echo "<td><font size=1><CENTER><a href=\"$PHP_SELF?ADD=3&user=$row[0]\">MODIFIER</a> | <a href=\"./user_stats.php?user=$row[0]\">STATISTIQUES</a> | <a href=\"./user_status.php?user=$row[0]\">ETAT</a> | <a href=\"./AST_agent_time_sheet.php?agent=$row[0]\">TIME</a></CENTER></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
######################
|
|
# ADD=10 display all campaigns
|
|
######################
|
|
if ($ADD==10)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT campaign_id,campaign_name,active,dial_method,auto_dial_level,lead_order,dial_statuses from vicidial_campaigns order by campaign_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$campaigns_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<br>LISTE DES CAMPAGNES:\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<tr bgcolor=black>";
|
|
echo "<td><font size=1 color=white align=left><B>CAMPAIGN ID</B></td>";
|
|
echo "<td><font size=1 color=white><CENTER><B>NOM</B></CENTER></td>";
|
|
echo "<td><font size=1 color=white><B>ACTIVE </B></td>";
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
echo "<td><font size=1 color=white><B>DIAL PROCEDE </B></td>";
|
|
echo "<td><font size=1 color=white><B> NIVEAU </B></td>";
|
|
echo "<td><font size=1 color=white><B>RESPONSABLE DE COMMANDE </B></td>";
|
|
echo "<td><font size=1 color=white><B>DIAL STATUTS </B></td>";
|
|
}
|
|
echo "<td align=center><font size=1 color=white><B>MODIFIER</B></td></tr>\n";
|
|
|
|
$o=0;
|
|
while ($campaigns_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=34&campaign_id=$row[0]\">$row[0]</a> </td>";
|
|
echo "<td><font size=1>$row[1] </td>";
|
|
echo "<td><font size=1>$row[2] </td>";
|
|
if ($SSoutbound_autodial_active > 0)
|
|
{
|
|
echo "<td><font size=1>$row[3] </td>";
|
|
echo "<td><font size=1>$row[4] </td>";
|
|
echo "<td><font size=1>$row[5] </td>";
|
|
echo "<td><font size=1>$row[6]</td>";
|
|
}
|
|
echo "<td><font size=1><a href=\"$PHP_SELF?ADD=31&campaign_id=$row[0]\">MODIFIER</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=100 display all lists
|
|
######################
|
|
if ($ADD==100)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$LISTlink='stage=LISTIDDOWN';
|
|
$TALLYlink='stage=TALLYDOWN';
|
|
$ACTIVElink='stage=ACTIVEDOWN';
|
|
$CAMPAIGNlink='stage=CAMPAIGNDOWN';
|
|
$CALLDATElink='stage=CALLDATEDOWN';
|
|
$SQLorder='order by list_id';
|
|
if (eregi("LISTIDUP",$stage)) {$SQLorder='order by list_id asc'; $LISTlink='stage=LISTIDDOWN';}
|
|
if (eregi("LISTIDDOWN",$stage)) {$SQLorder='order by list_id desc'; $LISTlink='stage=LISTIDUP';}
|
|
if (eregi("TALLYUP",$stage)) {$SQLorder='order by tally asc'; $TALLYlink='stage=TALLYDOWN';}
|
|
if (eregi("TALLYDOWN",$stage)) {$SQLorder='order by tally desc'; $TALLYlink='stage=TALLYUP';}
|
|
if (eregi("ACTIVEUP",$stage)) {$SQLorder='order by active asc'; $ACTIVElink='stage=ACTIVEDOWN';}
|
|
if (eregi("ACTIVEDOWN",$stage)) {$SQLorder='order by active desc'; $ACTIVElink='stage=ACTIVEUP';}
|
|
if (eregi("CAMPAIGNUP",$stage)) {$SQLorder='order by campaign_id asc'; $CAMPAIGNlink='stage=CAMPAIGNDOWN';}
|
|
if (eregi("CAMPAIGNDOWN",$stage)) {$SQLorder='order by campaign_id desc'; $CAMPAIGNlink='stage=CAMPAIGNUP';}
|
|
if (eregi("CALLDATEUP",$stage)) {$SQLorder='order by list_lastcalldate asc'; $CALLDATElink='stage=CALLDATEDOWN';}
|
|
if (eregi("CALLDATEDOWN",$stage)) {$SQLorder='order by list_lastcalldate desc'; $CALLDATElink='stage=CALLDATEUP';}
|
|
$stmt="SELECT vls.list_id,list_name,list_description,count(*) as tally,active,list_lastcalldate,campaign_id from vicidial_lists vls,vicidial_list vl where vls.list_id=vl.list_id group by list_id $SQLorder";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$lists_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<br>LISTE DES LISTES:\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<TR BGCOLOR=BLACK>";
|
|
echo "<TD><a href=\"$PHP_SELF?ADD=100&$LISTlink\"><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>ID DE LA LISTE</B></a></TD>";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>NOM DE LA LISTE</B></TD>";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>DESCRIPTION</B></TD>\n";
|
|
echo "<TD><a href=\"$PHP_SELF?ADD=100&$TALLYlink\"><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>ABOUTIT COUNT</B></a></TD>\n";
|
|
echo "<TD><a href=\"$PHP_SELF?ADD=100&$ACTIVElink\"><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>ACTIF</B></a></TD>";
|
|
echo "<TD><a href=\"$PHP_SELF?ADD=100&$CALLDATElink\"><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>LAST CALL DATE</B></a></TD>";
|
|
echo "<TD><a href=\"$PHP_SELF?ADD=100&$CAMPAIGNlink\"><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>CAMPAIGN</B></a></TD>\n";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>MODIFIER</TD>\n";
|
|
echo "</TR>\n";
|
|
|
|
$lists_printed = '';
|
|
$o=0;
|
|
while ($lists_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=311&list_id=$row[0]\">$row[0]</a></td>";
|
|
echo "<td><font size=1> $row[1]</td>";
|
|
echo "<td><font size=1> $row[2]</td>";
|
|
echo "<td><font size=1> $row[3]</td>";
|
|
echo "<td><font size=1> $row[4]</td>";
|
|
echo "<td><font size=1> $row[5]</td>";
|
|
echo "<td><font size=1> $row[6]</td>";
|
|
echo "<td><font size=1><a href=\"$PHP_SELF?ADD=311&list_id=$row[0]\">MODIFIER</a></td></tr>\n";
|
|
$lists_printed .= "'$row[0]',";
|
|
$o++;
|
|
}
|
|
|
|
$stmt="SELECT list_id,list_name,list_description,0,active,list_lastcalldate,campaign_id from vicidial_lists where list_id NOT IN($lists_printed'');";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$lists_to_print = mysql_num_rows($rslt);
|
|
$o=0;
|
|
while ($lists_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=311&list_id=$row[0]\">$row[0]</a></td>";
|
|
echo "<td><font size=1> $row[1]</td>";
|
|
echo "<td><font size=1> $row[2]</td>";
|
|
echo "<td><font size=1> $row[3]</td>";
|
|
echo "<td><font size=1> $row[4]</td>";
|
|
echo "<td><font size=1> $row[5]</td>";
|
|
echo "<td><font size=1> $row[6]</td>";
|
|
echo "<td><font size=1><a href=\"$PHP_SELF?ADD=311&list_id=$row[0]\">MODIFIER</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
|
|
|
|
######################
|
|
# ADD=1000 display all inbound groups
|
|
######################
|
|
if ($ADD==1000)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT group_id,group_name,queue_priority,active,call_time_id,group_color from vicidial_inbound_groups order by group_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$ingroups_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<br>LISTE DES GROUPES ENTRANTS:\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<TR BGCOLOR=BLACK>";
|
|
echo "<TD><font size=1 color=white>IN-GROUP</TD>";
|
|
echo "<TD><font size=1 color=white>NOM</TD>";
|
|
echo "<TD><font size=1 color=white>PRIORITÉ</TD>\n";
|
|
echo "<TD><font size=1 color=white>ACTIF</TD>";
|
|
echo "<TD><font size=1 color=white>TIME</TD>";
|
|
echo "<TD><font size=1 color=white>COLOR</TD>\n";
|
|
echo "<TD><font size=1 color=white>MODIFIER</TD>\n";
|
|
echo "</TR>\n";
|
|
|
|
$o=0;
|
|
while ($ingroups_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=3111&group_id=$row[0]\">$row[0]</a></td>";
|
|
echo "<td><font size=1> $row[1]</td>";
|
|
echo "<td><font size=1> $row[2]</td>";
|
|
echo "<td><font size=1> $row[3]</td>";
|
|
echo "<td><font size=1> $row[4]</td>";
|
|
echo "<td bgcolor=\"$row[5]\"><font size=1> </td>";
|
|
echo "<td><font size=1><a href=\"$PHP_SELF?ADD=3111&group_id=$row[0]\">MODIFIER</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=1300 display all inbound dids
|
|
######################
|
|
if ($ADD==1300)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT did_id,did_pattern,did_description,did_active,did_route from vicidial_inbound_dids order by did_pattern";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$dids_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<br>ENTRANT DID LISTINGS:\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<TR BGCOLOR=BLACK>";
|
|
echo "<TD><font size=1 color=white>#</TD>";
|
|
echo "<TD><font size=1 color=white>DID</TD>";
|
|
echo "<TD><font size=1 color=white>DESCRIPTION</TD>\n";
|
|
echo "<TD><font size=1 color=white>ACTIF</TD>";
|
|
echo "<TD><font size=1 color=white>ROUTE</TD>";
|
|
echo "<TD><font size=1 color=white>MODIFIER</TD>\n";
|
|
echo "</TR>\n";
|
|
|
|
$o=0;
|
|
while ($dids_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=3311&did_id=$row[0]\">$row[0]</a></td>";
|
|
echo "<td><font size=1> $row[1]</td>";
|
|
echo "<td><font size=1> $row[2]</td>";
|
|
echo "<td><font size=1> $row[3]</td>";
|
|
echo "<td><font size=1> $row[4]</td>";
|
|
echo "<td><font size=1><a href=\"$PHP_SELF?ADD=3311&did_id=$row[0]\">MODIFIER</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=10000 display all remote agents
|
|
######################
|
|
if ($ADD==10000)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT remote_agent_id,user_start,number_of_lines,server_ip,conf_exten,status,campaign_id from vicidial_remote_agents order by server_ip,campaign_id,user_start";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$remoteagents_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<br>LISTE DES AGENTS DISTANTS:\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<tr bgcolor=black>";
|
|
echo "<td><font size=1 color=white align=left><B>USER</B></td>";
|
|
echo "<td><font size=1 color=white><B>LINES</B></td>";
|
|
echo "<td><font size=1 color=white><B>SERVEUR </B></td>";
|
|
echo "<td><font size=1 color=white><B>CONF-EXTEN </B></td>";
|
|
echo "<td><font size=1 color=white><B>STATUS </B></td>";
|
|
echo "<td><font size=1 color=white><B>CAMPAIGN </B></td>";
|
|
echo "<td align=center><font size=1 color=white><B>MODIFIER</B></td></tr>\n";
|
|
|
|
$o=0;
|
|
while ($remoteagents_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=31111&remote_agent_id=$row[0]\">$row[1]</a></td>";
|
|
echo "<td><font size=1> $row[2]</td>";
|
|
echo "<td><font size=1> $row[3]</td>";
|
|
echo "<td><font size=1> $row[4]</td>";
|
|
echo "<td><font size=1> $row[5]</td>";
|
|
echo "<td><font size=1> $row[6]</td>";
|
|
echo "<td align=center><font size=1><a href=\"$PHP_SELF?ADD=31111&remote_agent_id=$row[0]\">MODIFIER</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=100000 display all user groups
|
|
######################
|
|
if ($ADD==100000)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT user_group,group_name,forced_timeclock_login from vicidial_user_groups order by user_group";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$usergroups_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<br>LISTE DES GROUPES D'UTILISATEURS:\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<tr bgcolor=black>";
|
|
echo "<td><font size=1 color=white align=left><B>GROUPE D'UTILISATEURS</B></td>";
|
|
echo "<td><font size=1 color=white><B>GROUP NAME</B></td>";
|
|
echo "<td><font size=1 color=white><B>Force timeclock </B></td>";
|
|
echo "<td align=center><font size=1 color=white><B>MODIFIER</B></td></tr>\n";
|
|
|
|
$o=0;
|
|
while ($usergroups_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=311111&user_group=$row[0]\">$row[0]</a></td>";
|
|
echo "<td><font size=1> $row[1]</td>";
|
|
echo "<td><font size=1> $row[2]</td>";
|
|
echo "<td align=center><font size=1><a href=\"$PHP_SELF?ADD=311111&user_group=$row[0]\">MODIFIER</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=1000000 display all scripts
|
|
######################
|
|
if ($ADD==1000000)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT script_id,script_name,active from vicidial_scripts order by script_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$scripts_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<br>LISTE DES SCRIPTS:\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<tr bgcolor=black>";
|
|
echo "<td><font size=1 color=white align=left><B>SCRIPT ID</B></td>";
|
|
echo "<td><font size=1 color=white><B>Nom du script</B></td>";
|
|
echo "<td><font size=1 color=white><B>ACTIVE </B></td>";
|
|
echo "<td align=center><font size=1 color=white><B>MODIFIER</B></td></tr>\n";
|
|
|
|
$o=0;
|
|
while ($scripts_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=3111111&script_id=$row[0]\">$row[0]</a></td>";
|
|
echo "<td><font size=1> $row[1]</td>";
|
|
echo "<td><font size=1> $row[2]</td>";
|
|
echo "<td align=center><font size=1><a href=\"$PHP_SELF?ADD=3111111&script_id=$row[0]\">MODIFIER</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=10000000 display all filters
|
|
######################
|
|
if ($ADD==10000000)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT lead_filter_id,lead_filter_name from vicidial_lead_filters order by lead_filter_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$filters_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<br>LISTE DES FILTRES DE FICHES:\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<tr bgcolor=black>";
|
|
echo "<td><font size=1 color=white align=left><B>FILTER ID</B></td>";
|
|
echo "<td><font size=1 color=white><B>FILTER NAME</B></td>";
|
|
echo "<td align=center><font size=1 color=white><B>MODIFIER</B></td></tr>\n";
|
|
|
|
$o=0;
|
|
while ($filters_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=31111111&lead_filter_id=$row[0]\">$row[0]</a></td>";
|
|
echo "<td><font size=1> $row[1]</td>";
|
|
echo "<td align=center><font size=1><a href=\"$PHP_SELF?ADD=31111111&lead_filter_id=$row[0]\">MODIFIER</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=100000000 display all call times
|
|
######################
|
|
if ($ADD==100000000)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT call_time_id,call_time_name,ct_default_start,ct_default_stop from vicidial_call_times order by call_time_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$calltimes_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<br>LISTE DES PERIODES D'APPELS:\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<tr bgcolor=black>";
|
|
echo "<td><font size=1 color=white align=left><B>CALLTIME ID</B></td>";
|
|
echo "<td><font size=1 color=white><B>CALLTIME NOM</B></td>";
|
|
echo "<td><font size=1 color=white><B>Démarrage par défaut</B></td>";
|
|
echo "<td><font size=1 color=white><B>DEFAULT STOP</B></td>";
|
|
echo "<td align=center><font size=1 color=white><B>MODIFIER</B></td></tr>\n";
|
|
|
|
$o=0;
|
|
while ($calltimes_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=311111111&call_time_id=$row[0]\">$row[0]</a></td>";
|
|
echo "<td><font size=1> $row[1]</td>";
|
|
echo "<td><font size=1> $row[2] </td>";
|
|
echo "<td><font size=1> $row[3] </td>";
|
|
echo "<td align=center><font size=1><a href=\"$PHP_SELF?ADD=311111111&call_time_id=$row[0]\">MODIFIER</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
######################
|
|
# ADD=1000000000 display all state call times
|
|
######################
|
|
if ($ADD==1000000000)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT state_call_time_id,state_call_time_state,state_call_time_name,sct_default_start,sct_default_stop from vicidial_state_call_times order by state_call_time_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$statecalltimes_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<br>LISTE DES PERIODES D'APPELS D'ETAT:\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<tr bgcolor=black>";
|
|
echo "<td><font size=1 color=white align=left><B>CALLTIME ID</B></td>";
|
|
echo "<td><font size=1 color=white><B>CALLTIME STATE</B></td>";
|
|
echo "<td><font size=1 color=white><B>CALLTIME NOM</B></td>";
|
|
echo "<td><font size=1 color=white><B>Démarrage par défaut</B></td>";
|
|
echo "<td><font size=1 color=white><B>DEFAULT STOP</B></td>";
|
|
echo "<td align=center><font size=1 color=white><B>MODIFIER</B></td></tr>\n";
|
|
|
|
|
|
$o=0;
|
|
while ($statecalltimes_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=3111111111&call_time_id=$row[0]\">$row[0]</a></td>";
|
|
echo "<td><font size=1> $row[1]</td>";
|
|
echo "<td><font size=1> $row[2]</td>";
|
|
echo "<td><font size=1> $row[3] </td>";
|
|
echo "<td><font size=1> $row[4] </td>";
|
|
echo "<td align=center><font size=1><a href=\"$PHP_SELF?ADD=3111111111&call_time_id=$row[0]\">MODIFIER</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
######################
|
|
# ADD=130000000 display all shifts
|
|
######################
|
|
if ($ADD==130000000)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT shift_id,shift_name,shift_start_time,shift_length,shift_weekdays from vicidial_shifts order by shift_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$shifts_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<br>SHIFT inscriptions:\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<tr bgcolor=black>";
|
|
echo "<td><font size=1 color=white align=left><B>SHIFT ID</B></td>";
|
|
echo "<td><font size=1 color=white><B>SHIFT NOM</B></td>";
|
|
echo "<td><font size=1 color=white><B>SHIFT START</B></td>";
|
|
echo "<td><font size=1 color=white><B>SHIFT LONGUEUR</B></td>";
|
|
echo "<td><font size=1 color=white><B>SEMAINE</B></td>";
|
|
echo "<td align=center><font size=1 color=white><B>MODIFIER</B></td></tr>\n";
|
|
|
|
$o=0;
|
|
while ($shifts_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=331111111&shift_id=$row[0]\">$row[0]</a></td>";
|
|
echo "<td><font size=1> $row[1]</td>";
|
|
echo "<td><font size=1> $row[2] </td>";
|
|
echo "<td><font size=1> $row[3] </td>";
|
|
echo "<td><font size=1> $row[4] </td>";
|
|
echo "<td align=center><font size=1><a href=\"$PHP_SELF?ADD=331111111&shift_id=$row[0]\">MODIFIER</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
######################
|
|
# ADD=10000000000 display all phones
|
|
######################
|
|
if ($ADD==10000000000)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$EXTENlink='stage=EXTENDOWN';
|
|
$PROTOlink='stage=PROTODOWN';
|
|
$SERVERlink='stage=SERVERDOWN';
|
|
$STATUSlink='stage=STATUSDOWN';
|
|
$SQLorder='order by extension,server_ip';
|
|
if (eregi("EXTENUP",$stage)) {$SQLorder='order by extension asc'; $EXTENlink='stage=EXTENDOWN';}
|
|
if (eregi("EXTENDOWN",$stage)) {$SQLorder='order by extension desc'; $EXTENlink='stage=EXTENUP';}
|
|
if (eregi("PROTOUP",$stage)) {$SQLorder='order by protocol asc'; $PROTOlink='stage=PROTODOWN';}
|
|
if (eregi("PROTODOWN",$stage)) {$SQLorder='order by protocol desc'; $PROTOlink='stage=PROTOUP';}
|
|
if (eregi("SERVERUP",$stage)) {$SQLorder='order by server_ip asc'; $SERVERlink='stage=SERVERDOWN';}
|
|
if (eregi("SERVERDOWN",$stage)) {$SQLorder='order by server_ip desc'; $SERVERlink='stage=SERVERUP';}
|
|
if (eregi("STATUSUP",$stage)) {$SQLorder='order by status asc'; $STATUSlink='stage=STATUSDOWN';}
|
|
if (eregi("STATUSDOWN",$stage)) {$SQLorder='order by status desc'; $STATUSlink='stage=STATUSUP';}
|
|
$stmt="SELECT extension,protocol,server_ip,dialplan_number,voicemail_id,status,fullname,messages,old_messages from phones $SQLorder";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$phones_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<br>LISTE DES TELEPHONES:\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<tr bgcolor=black>";
|
|
echo "<td><a href=\"$PHP_SELF?ADD=10000000000&$EXTENlink\"><font size=1 color=white><B>EXTEN</B></a></td>";
|
|
echo "<td><a href=\"$PHP_SELF?ADD=10000000000&$PROTOlink\"><font size=1 color=white><B>PROTO</B></a></td>";
|
|
echo "<td><a href=\"$PHP_SELF?ADD=10000000000&$SERVERlink\"><font size=1 color=white><B>SERVER</B></a></td>";
|
|
echo "<td colspan=2><font size=1 color=white><B>DIAL PLAN</B></td>";
|
|
echo "<td><a href=\"$PHP_SELF?ADD=10000000000&$STATUSlink\"><font size=1 color=white><B>ETAT</B></a></td>";
|
|
echo "<td><font size=1 color=white><B>NOM</B></td>";
|
|
echo "<td colspan=2><font size=1 color=white><B>VMAIL</B></td>";
|
|
echo "<td align=center><font size=1 color=white><B>LIENS</B></td></tr>\n";
|
|
|
|
$o=0;
|
|
while ($phones_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><a href=\"$PHP_SELF?ADD=31111111111&extension=$row[0]&server_ip=$row[2]\"><font size=1 color=black>$row[0]</font></a></td>
|
|
<td><font size=1>$row[1]</td>
|
|
<td><font size=1>$row[2]</td>
|
|
<td><font size=1>$row[3]</td>
|
|
<td><font size=1>$row[4]</td>
|
|
<td><font size=1>$row[5]</td>
|
|
<td><font size=1>$row[6]</td>
|
|
<td><font size=1>$row[7]</td>
|
|
<td><font size=1>$row[8]</td>";
|
|
echo "<td><font size=1><a href=\"$PHP_SELF?ADD=31111111111&extension=$row[0]&server_ip=$row[2]\">MODIFIER</a> | <a href=\"./phone_stats.php?extension=$row[0]&server_ip=$row[2]\">STATISTIQUES</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
######################
|
|
# ADD=12000000000 display all phones alias
|
|
######################
|
|
if ($ADD==12000000000)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT alias_id,alias_name,logins_list from phones_alias order by alias_id;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$phonealias_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<br>TÉLÉLISTE DE TELEPHONESE ALIASAGES:\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<tr bgcolor=black>";
|
|
echo "<td><font size=1 color=white><B>ALIAS ID</B></a></td>";
|
|
echo "<td><font size=1 color=white><B>Alias</B></a></td>";
|
|
echo "<td><font size=1 color=white><B>TÉLÉLISTE DE TELEPHONESE Connexions</B></a></td>";
|
|
echo "<td align=center><font size=1 color=white><B>MODIFIER</B></td></tr>\n";
|
|
|
|
$o=0;
|
|
while ($phonealias_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><a href=\"$PHP_SELF?ADD=32111111111&alias_id=$row[0]\"><font size=1 color=black>$row[0]</font></a></td>";
|
|
echo "<td><font size=1>$row[1]</td>";
|
|
echo "<td><font size=1>$row[2]</td>";
|
|
echo "<td align=center><font size=1><a href=\"$PHP_SELF?ADD=32111111111&alias_id=$row[0]\">MODIFIER</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
######################
|
|
# ADD=13000000000 display all group alias
|
|
######################
|
|
if ($ADD==13000000000)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT group_alias_id,group_alias_name,caller_id_number,caller_id_name,active from groups_alias order by group_alias_id;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$phonealias_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<br>GROUPE ALIAS LISTAGES:\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<tr bgcolor=black>";
|
|
echo "<td><font size=1 color=white><B>ALIAS ID GROUP</B></a></td>";
|
|
echo "<td><font size=1 color=white><B>GROUPE NOM ALIAS</B></a></td>";
|
|
echo "<td><font size=1 color=white><B>CID NUMÉRO</B></a></td>";
|
|
echo "<td><font size=1 color=white><B>CID NOM</B></a></td>";
|
|
echo "<td><font size=1 color=white><B>ACTIF</B></a></td>";
|
|
echo "<td align=center><font size=1 color=white><B>MODIFIER</B></td></tr>\n";
|
|
|
|
$o=0;
|
|
while ($phonealias_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><a href=\"$PHP_SELF?ADD=33111111111&group_alias_id=$row[0]\"><font size=1 color=black>$row[0]</font></a></td>";
|
|
echo "<td><font size=1>$row[1]</td>";
|
|
echo "<td><font size=1>$row[2]</td>";
|
|
echo "<td><font size=1>$row[3]</td>";
|
|
echo "<td><font size=1>$row[4]</td>";
|
|
echo "<td align=center><font size=1><a href=\"$PHP_SELF?ADD=33111111111&group_alias_id=$row[0]\">MODIFIER</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
######################
|
|
# ADD=100000000000 display all servers
|
|
######################
|
|
if ($ADD==100000000000)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT server_id,server_description,server_ip,active,asterisk_version,max_vicidial_trunks,local_gmt from servers order by server_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$servers_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<br>LISTE DES SERVEURS:\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<tr bgcolor=black>";
|
|
echo "<td><font size=1 color=white align=left><B>SERVEUR ID</B></td>";
|
|
echo "<td><font size=1 color=white><B>NOM</B></td>";
|
|
echo "<td><font size=1 color=white><B>SERVEUR IP</B></td>";
|
|
echo "<td><font size=1 color=white><B>ACTIF</B></td>";
|
|
echo "<td><font size=1 color=white><B>ASTERISK</B></td>";
|
|
echo "<td><font size=1 color=white><B>Malles</B></td>";
|
|
echo "<td><font size=1 color=white><B>GMT</B></td>";
|
|
echo "<td align=center><font size=1 color=white><B>MODIFIER</B></td></tr>\n";
|
|
|
|
$o=0;
|
|
while ($servers_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=311111111111&server_id=$row[0]\">$row[0]</a></td>";
|
|
echo "<td><font size=1>$row[1]</td>";
|
|
echo "<td><font size=1>$row[2]</td>";
|
|
echo "<td><font size=1>$row[3]</td>";
|
|
echo "<td><font size=1>$row[4]</td>";
|
|
echo "<td><font size=1>$row[5]</td>";
|
|
echo "<td><font size=1>$row[6]</td>";
|
|
echo "<td align=center><font size=1><a href=\"$PHP_SELF?ADD=311111111111&server_id=$row[0]\">MODIFIER</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
######################
|
|
# ADD=130000000000 display all conf templates
|
|
######################
|
|
if ($ADD==130000000000)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT template_id,template_name from vicidial_conf_templates order by template_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$templates_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<br>CONF TEMPLATE LISTEAGES:\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<tr bgcolor=black>";
|
|
echo "<td><font size=1 color=white align=left><B>Template ID</B></td>";
|
|
echo "<td><font size=1 color=white><B>Nom du modèle</B></td>";
|
|
echo "<td align=center><font size=1 color=white><B>MODIFIER</B></td></tr>\n";
|
|
|
|
$o=0;
|
|
while ($templates_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=331111111111&template_id=$row[0]\">$row[0]</a></td>";
|
|
echo "<td><font size=1>$row[1]</td>";
|
|
echo "<td align=center><font size=1><a href=\"$PHP_SELF?ADD=331111111111&template_id=$row[0]\">MODIFIER</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
######################
|
|
# ADD=140000000000 display all carriers
|
|
######################
|
|
if ($ADD==140000000000)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT carrier_id,carrier_name,server_ip,protocol,registration_string,active from vicidial_server_carriers order by carrier_id";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$carriers_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<br>CARRIER LISTEAGES:\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<tr bgcolor=black>";
|
|
echo "<td><font size=1 color=white align=left><B>Carrier ID</B></td>";
|
|
echo "<td><font size=1 color=white><B>Nom du transporteur</B></td>";
|
|
echo "<td><font size=1 color=white><B>IP du serveur</B></td>";
|
|
echo "<td><font size=1 color=white><B>Protocol</B></td>";
|
|
echo "<td><font size=1 color=white><B>Inscription</B></td>";
|
|
echo "<td><font size=1 color=white><B>Active</B></td>";
|
|
echo "<td align=center><font size=1 color=white><B>MODIFIER</B></td></tr>\n";
|
|
|
|
$o=0;
|
|
while ($carriers_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=341111111111&carrier_id=$row[0]\">$row[0]</a></td>";
|
|
echo "<td><font size=1>$row[1]</td>";
|
|
echo "<td><font size=1>$row[2]</td>";
|
|
echo "<td><font size=1>$row[3]</td>";
|
|
echo "<td><font size=1>$row[4]</td>";
|
|
echo "<td><font size=1>$row[5]</td>";
|
|
echo "<td align=center><font size=1><a href=\"$PHP_SELF?ADD=341111111111&carrier_id=$row[0]\">MODIFIER</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
######################
|
|
# ADD=1000000000000 display all conferences
|
|
######################
|
|
if ($ADD==1000000000000)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT conf_exten,server_ip,extension from conferences order by conf_exten";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$conferences_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<br>LISTE DES CONFERENCES:\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<tr bgcolor=black>";
|
|
echo "<td><font size=1 color=white align=left><B>CONFERENCE</B></td>";
|
|
echo "<td><font size=1 color=white><B>SERVEUR IP</B></td>";
|
|
echo "<td><font size=1 color=white><B>EXTENSION</B></td>";
|
|
echo "<td align=center><font size=1 color=white><B>MODIFIER</B></td></tr>\n";
|
|
|
|
$o=0;
|
|
while ($conferences_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=3111111111111&conf_exten=$row[0]&server_ip=$row[1]\">$row[0]</a></td>";
|
|
echo "<td><font size=1>$row[1]</td>";
|
|
echo "<td><font size=1>$row[2]</td>";
|
|
echo "<td align=center><font size=1><a href=\"$PHP_SELF?ADD=3111111111111&conf_exten=$row[0]&server_ip=$row[1]\">MODIFIER</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
######################
|
|
# ADD=10000000000000 display all vicidial conferences
|
|
######################
|
|
if ($ADD==10000000000000)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT conf_exten,server_ip,extension from vicidial_conferences order by conf_exten";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$vicidialconf_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<br>VICIDIAL LISTE DES CONFERENCES:\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<tr bgcolor=black>";
|
|
echo "<td><font size=1 color=white align=left><B>CONFERENCE</B></td>";
|
|
echo "<td><font size=1 color=white><B>SERVEUR IP</B></td>";
|
|
echo "<td><font size=1 color=white><B>EXTENSION</B></td>";
|
|
echo "<td align=center><font size=1 color=white><B>MODIFIER</B></td></tr>\n";
|
|
|
|
$o=0;
|
|
while ($vicidialconf_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=31111111111111&conf_exten=$row[0]&server_ip=$row[1]\">$row[0]</a></td>";
|
|
echo "<td><font size=1> $row[1]</td>";
|
|
echo "<td><font size=1> $row[2]</td>";
|
|
echo "<td align=center><font size=1><a href=\"$PHP_SELF?ADD=31111111111111&conf_exten=$row[0]&server_ip=$row[1]\">MODIFIER</a></td></tr>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE></center>\n";
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
######################
|
|
# ADD=700000000000000 view all activity in the admin log
|
|
######################
|
|
|
|
if ($ADD==700000000000000)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
if ($stage > 9999)
|
|
{
|
|
$next_limit = ($stage + 10000);
|
|
$limitSQL = "10000 offset $stage";
|
|
}
|
|
else
|
|
{
|
|
$next_limit = "10000";
|
|
$limitSQL = "10000";
|
|
}
|
|
|
|
$stmt="SELECT admin_log_id,event_date,user,ip_address,event_section,event_type,record_id,event_code from vicidial_admin_log order by event_date desc limit $limitSQL;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$logs_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<br>ADMIN CHANGE LOG: (Mise à 10.000 dossiers)\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<TR BGCOLOR=BLACK>";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>ID</B></TD>";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>DATE TIME</B></TD>";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>USER</B></TD>\n";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>IP</TD>\n";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>SECTION</TD>\n";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>TYPE</TD>\n";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>RECORD ID</TD>\n";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>DESCRIPTION</TD>\n";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>GOTO</TD>\n";
|
|
echo "</TR>\n";
|
|
|
|
$logs_printed = '';
|
|
$o=0;
|
|
while ($logs_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
if (eregi("USER|AGENT",$row[4])) {$record_link = "ADD=3&user=$row[6]";}
|
|
if (eregi('CAMPAIGN',$row[4])) {$record_link = "ADD=31&campaign_id=$row[6]";}
|
|
if (eregi('LIST',$row[4])) {$record_link = "ADD=311&list_id=$row[6]";}
|
|
if (eregi('SCRIPT',$row[4])) {$record_link = "ADD=3111111&script_id=$row[6]";}
|
|
if (eregi('FILTER',$row[4])) {$record_link = "ADD=31111111&lead_filter_id=$row[6]";}
|
|
if (eregi('INGROUP',$row[4])) {$record_link = "ADD=3111&group_id=$row[6]";}
|
|
if (eregi('DID',$row[4])) {$record_link = "ADD=3311&did_id=$row[6]";}
|
|
if (eregi('USERGROUP',$row[4])) {$record_link = "ADD=311111&user_group=$row[6]";}
|
|
if (eregi('REMOTEAGENT',$row[4])) {$record_link = "ADD=31111&remote_agent_id=$row[6]";}
|
|
if (eregi('PHONE',$row[4])) {$record_link = "ADD=10000000000";}
|
|
if (eregi('CALLTIME',$row[4])) {$record_link = "ADD=311111111&call_time_id=$row[6]";}
|
|
if (eregi('SHIFT',$row[4])) {$record_link = "ADD=331111111&shift_id=$row[6]";}
|
|
if (eregi('CONFTEMPLATE',$row[4])) {$record_link = "ADD=331111111111&template_id=$row[6]";}
|
|
if (eregi('CARRIER',$row[4])) {$record_link = "ADD=341111111111&carrier_id=$row[6]";}
|
|
if (eregi('SERVER',$row[4])) {$record_link = "ADD=311111111111&server_id=$row[6]";}
|
|
if (eregi('CONFERENCE',$row[4])) {$record_link = "ADD=1000000000000";}
|
|
if (eregi('SYSTEM',$row[4])) {$record_link = "ADD=311111111111111";}
|
|
if (eregi('CATEGOR',$row[4])) {$record_link = "ADD=331111111111111";}
|
|
if (eregi('GROUPALIAS',$row[4])) {$record_link = "ADD=33111111111&group_alias_id=$row[6]";}
|
|
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=730000000000000&stage=$row[0]\">$row[0]</a></td>";
|
|
echo "<td><font size=1> $row[1]</td>";
|
|
echo "<td><font size=1> <a href=\"$PHP_SELF?ADD=710000000000000&stage=$row[2]\">$row[2]</a></td>";
|
|
echo "<td><font size=1> $row[3]</td>";
|
|
echo "<td><font size=1> $row[4]</td>";
|
|
echo "<td><font size=1> $row[5]</td>";
|
|
echo "<td><font size=1> <a href=\"$PHP_SELF?ADD=720000000000000&category=$row[4]&stage=$row[6]\">$row[6]</a></td>";
|
|
echo "<td><font size=1> $row[7]</td>";
|
|
echo "<td><font size=1> <a href=\"$PHP_SELF?$record_link\">GOTO</a></td>";
|
|
echo "</tr>\n";
|
|
$logs_printed .= "'$row[0]',";
|
|
$o++;
|
|
}
|
|
echo "</TABLE><BR><BR>\n";
|
|
echo "<a href=\"$PHP_SELF?ADD=700000000000000&stage=$next_limit\">NEXT</a>\n";
|
|
echo "</center>\n";
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=710000000000000 view all activity in the admin log made by one user
|
|
######################
|
|
|
|
if ($ADD==710000000000000)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT full_name from vicidial_users where user='$stage';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$names_to_print = mysql_num_rows($rslt);
|
|
if ($names_to_print > 0)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$user_name = $row[0];
|
|
}
|
|
|
|
$stmt="SELECT admin_log_id,event_date,user,ip_address,event_section,event_type,record_id,event_code from vicidial_admin_log where user='$stage' order by event_date desc limit 10000;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$logs_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<br>ADMIN CHANGE LOG: Les modifications apportées par $stage - $user_name\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<TR BGCOLOR=BLACK>";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>ID</B></TD>";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>DATE TIME</B></TD>";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>USER</B></TD>\n";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>IP</TD>\n";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>SECTION</TD>\n";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>TYPE</TD>\n";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>RECORD ID</TD>\n";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>DESCRIPTION</TD>\n";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>GOTO</TD>\n";
|
|
echo "</TR>\n";
|
|
|
|
$logs_printed = '';
|
|
$o=0;
|
|
while ($logs_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
|
|
if (eregi("USER|AGENT",$row[4])) {$record_link = "ADD=3&user=$row[6]";}
|
|
if (eregi('CAMPAIGN',$row[4])) {$record_link = "ADD=31&campaign_id=$row[6]";}
|
|
if (eregi('LIST',$row[4])) {$record_link = "ADD=311&list_id=$row[6]";}
|
|
if (eregi('SCRIPT',$row[4])) {$record_link = "ADD=3111111&script_id=$row[6]";}
|
|
if (eregi('FILTER',$row[4])) {$record_link = "ADD=31111111&lead_filter_id=$row[6]";}
|
|
if (eregi('INGROUP',$row[4])) {$record_link = "ADD=3111&group_id=$row[6]";}
|
|
if (eregi('DID',$row[4])) {$record_link = "ADD=3311&did_id=$row[6]";}
|
|
if (eregi('USERGROUP',$row[4])) {$record_link = "ADD=311111&user_group=$row[6]";}
|
|
if (eregi('REMOTEAGENT',$row[4])) {$record_link = "ADD=31111&remote_agent_id=$row[6]";}
|
|
if (eregi('PHONE',$row[4])) {$record_link = "ADD=10000000000";}
|
|
if (eregi('CALLTIME',$row[4])) {$record_link = "ADD=311111111&call_time_id=$row[6]";}
|
|
if (eregi('SHIFT',$row[4])) {$record_link = "ADD=331111111&shift_id=$row[6]";}
|
|
if (eregi('CONFTEMPLATE',$row[4])) {$record_link = "ADD=331111111111&template_id=$row[6]";}
|
|
if (eregi('CARRIER',$row[4])) {$record_link = "ADD=341111111111&carrier_id=$row[6]";}
|
|
if (eregi('SERVER',$row[4])) {$record_link = "ADD=311111111111&server_id=$row[6]";}
|
|
if (eregi('CONFERENCE',$row[4])) {$record_link = "ADD=1000000000000";}
|
|
if (eregi('SYSTEM',$row[4])) {$record_link = "ADD=311111111111111";}
|
|
if (eregi('CATEGOR',$row[4])) {$record_link = "ADD=331111111111111";}
|
|
if (eregi('GROUPALIAS',$row[4])) {$record_link = "ADD=33111111111&group_alias_id=$row[6]";}
|
|
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=730000000000000&stage=$row[0]\">$row[0]</a></td>";
|
|
echo "<td><font size=1> $row[1]</td>";
|
|
echo "<td><font size=1> <a href=\"$PHP_SELF?ADD=710000000000000&stage=$row[2]\">$row[2]</a></td>";
|
|
echo "<td><font size=1> $row[3]</td>";
|
|
echo "<td><font size=1> $row[4]</td>";
|
|
echo "<td><font size=1> $row[5]</td>";
|
|
echo "<td><font size=1> <a href=\"$PHP_SELF?ADD=720000000000000&category=$row[4]&stage=$row[6]\">$row[6]</a></td>";
|
|
echo "<td><font size=1> $row[7]</td>";
|
|
echo "<td><font size=1> <a href=\"$PHP_SELF?$record_link\">GOTO</a></td>";
|
|
echo "</tr>\n";
|
|
$logs_printed .= "'$row[0]',";
|
|
$o++;
|
|
}
|
|
echo "</TABLE><BR><BR>\n";
|
|
echo "\n";
|
|
echo "</center>\n";
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=720000000000000 view all activity in the admin log made to one section/value
|
|
######################
|
|
|
|
if ($ADD==720000000000000)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT admin_log_id,event_date,user,ip_address,event_section,event_type,record_id,event_code from vicidial_admin_log where event_section='$category' and record_id='$stage' order by event_date desc limit 10000;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$logs_to_print = mysql_num_rows($rslt);
|
|
|
|
echo "<br>ADMIN CHANGE LOG: Section Records - $category - $stage\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=0 cellpadding=1>\n";
|
|
echo "<TR BGCOLOR=BLACK>";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>ID</B></TD>";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>DATE TIME</B></TD>";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>USER</B></TD>\n";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>IP</TD>\n";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>SECTION</TD>\n";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>TYPE</TD>\n";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>RECORD ID</TD>\n";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>DESCRIPTION</TD>\n";
|
|
echo "<TD><B><FONT FACE=\"Arial,Helvetica\" size=1 color=white>GOTO</TD>\n";
|
|
echo "</TR>\n";
|
|
|
|
$logs_printed = '';
|
|
$o=0;
|
|
while ($logs_to_print > $o)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
|
|
if (eregi("USER|AGENT",$row[4])) {$record_link = "ADD=3&user=$row[6]";}
|
|
if (eregi('CAMPAIGN',$row[4])) {$record_link = "ADD=31&campaign_id=$row[6]";}
|
|
if (eregi('LIST',$row[4])) {$record_link = "ADD=311&list_id=$row[6]";}
|
|
if (eregi('SCRIPT',$row[4])) {$record_link = "ADD=3111111&script_id=$row[6]";}
|
|
if (eregi('FILTER',$row[4])) {$record_link = "ADD=31111111&lead_filter_id=$row[6]";}
|
|
if (eregi('INGROUP',$row[4])) {$record_link = "ADD=3111&group_id=$row[6]";}
|
|
if (eregi('DID',$row[4])) {$record_link = "ADD=3311&did_id=$row[6]";}
|
|
if (eregi('USERGROUP',$row[4])) {$record_link = "ADD=311111&user_group=$row[6]";}
|
|
if (eregi('REMOTEAGENT',$row[4])) {$record_link = "ADD=31111&remote_agent_id=$row[6]";}
|
|
if (eregi('PHONE',$row[4])) {$record_link = "ADD=10000000000";}
|
|
if (eregi('CALLTIME',$row[4])) {$record_link = "ADD=311111111&call_time_id=$row[6]";}
|
|
if (eregi('SHIFT',$row[4])) {$record_link = "ADD=331111111&shift_id=$row[6]";}
|
|
if (eregi('CONFTEMPLATE',$row[4])) {$record_link = "ADD=331111111111&template_id=$row[6]";}
|
|
if (eregi('CARRIER',$row[4])) {$record_link = "ADD=341111111111&carrier_id=$row[6]";}
|
|
if (eregi('SERVER',$row[4])) {$record_link = "ADD=311111111111&server_id=$row[6]";}
|
|
if (eregi('CONFERENCE',$row[4])) {$record_link = "ADD=1000000000000";}
|
|
if (eregi('SYSTEM',$row[4])) {$record_link = "ADD=311111111111111";}
|
|
if (eregi('CATEGOR',$row[4])) {$record_link = "ADD=331111111111111";}
|
|
if (eregi('GROUPALIAS',$row[4])) {$record_link = "ADD=33111111111&group_alias_id=$row[6]";}
|
|
|
|
if (eregi("1$|3$|5$|7$|9$", $o))
|
|
{$bgcolor='bgcolor="#B9CBFD"';}
|
|
else
|
|
{$bgcolor='bgcolor="#9BB9FB"';}
|
|
echo "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=730000000000000&stage=$row[0]\">$row[0]</a></td>";
|
|
echo "<td><font size=1> $row[1]</td>";
|
|
echo "<td><font size=1> <a href=\"$PHP_SELF?ADD=710000000000000&stage=$row[2]\">$row[2]</a></td>";
|
|
echo "<td><font size=1> $row[3]</td>";
|
|
echo "<td><font size=1> $row[4]</td>";
|
|
echo "<td><font size=1> $row[5]</td>";
|
|
echo "<td><font size=1> $row[6]</td>";
|
|
echo "<td><font size=1> $row[7]</td>";
|
|
echo "<td><font size=1> <a href=\"$PHP_SELF?$record_link\">GOTO</a></td>";
|
|
echo "</tr>\n";
|
|
$logs_printed .= "'$row[0]',";
|
|
$o++;
|
|
}
|
|
echo "</TABLE><BR><BR>\n";
|
|
echo "\n";
|
|
echo "</center>\n";
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=730000000000000 detail view of one admin log entry
|
|
######################
|
|
|
|
if ($ADD==730000000000000)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="SELECT admin_log_id,event_date,val.user,ip_address,event_section,event_type,record_id,event_code,event_notes,event_sql,full_name from vicidial_admin_log val, vicidial_users vu where admin_log_id='$stage' and val.user=vu.user;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$logs_to_print = mysql_num_rows($rslt);
|
|
|
|
if ($logs_to_print > 0)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
echo "<br>ADMIN CHANGE LOG: Record Détail - $stage<BR><BR>\n";
|
|
echo "<center><TABLE width=$section_width cellspacing=5 cellpadding=0>\n";
|
|
echo "<TR>";
|
|
echo "<TD ALIGN=RIGHT><B><FONT FACE=\"Arial,Helvetica\" size=2>ID: </B></TD>";
|
|
echo "<TD ALIGN=LEFT><FONT FACE=\"Arial,Helvetica\" size=2>$row[0]</TD>";
|
|
echo "</TR><TR>\n";
|
|
echo "<TD ALIGN=RIGHT><B><FONT FACE=\"Arial,Helvetica\" size=2>DATE TIME: </B></TD>";
|
|
echo "<TD ALIGN=LEFT><FONT FACE=\"Arial,Helvetica\" size=2>$row[1]</TD>";
|
|
echo "</TR><TR>\n";
|
|
echo "<TD ALIGN=RIGHT><B><FONT FACE=\"Arial,Helvetica\" size=2>USER: </B></TD>";
|
|
echo "<TD ALIGN=LEFT><FONT FACE=\"Arial,Helvetica\" size=2>$row[2] - $row[10]</TD>";
|
|
echo "</TR><TR>\n";
|
|
echo "<TD ALIGN=RIGHT><B><FONT FACE=\"Arial,Helvetica\" size=2>IP: </B></TD>";
|
|
echo "<TD ALIGN=LEFT><FONT FACE=\"Arial,Helvetica\" size=2>$row[3]</TD>";
|
|
echo "</TR><TR>\n";
|
|
echo "<TD ALIGN=RIGHT><B><FONT FACE=\"Arial,Helvetica\" size=2>SECTION: </B></TD>";
|
|
echo "<TD ALIGN=LEFT><FONT FACE=\"Arial,Helvetica\" size=2>$row[4]</TD>";
|
|
echo "</TR><TR>\n";
|
|
echo "<TD ALIGN=RIGHT><B><FONT FACE=\"Arial,Helvetica\" size=2>TYPE: </B></TD>";
|
|
echo "<TD ALIGN=LEFT><FONT FACE=\"Arial,Helvetica\" size=2>$row[5]</TD>";
|
|
echo "</TR><TR>\n";
|
|
echo "<TD ALIGN=RIGHT><B><FONT FACE=\"Arial,Helvetica\" size=2>RECORD ID: </B></TD>";
|
|
echo "<TD ALIGN=LEFT><FONT FACE=\"Arial,Helvetica\" size=2>$row[6]</TD>";
|
|
echo "</TR><TR>\n";
|
|
echo "<TD ALIGN=RIGHT><B><FONT FACE=\"Arial,Helvetica\" size=2>DESCRIPTION: </B></TD>";
|
|
echo "<TD ALIGN=LEFT><FONT FACE=\"Arial,Helvetica\" size=1>$row[7]</TD>";
|
|
echo "</TR><TR>\n";
|
|
echo "<TD ALIGN=RIGHT><B><FONT FACE=\"Arial,Helvetica\" size=2>NOTES: </B></TD>";
|
|
echo "<TD ALIGN=LEFT><FONT FACE=\"Arial,Helvetica\" size=1>$row[8]</TD>";
|
|
echo "</TR><TR>\n";
|
|
$row[9] = eregi_replace("',","' ,",$row[9]);
|
|
echo "<TD ALIGN=RIGHT><B><FONT FACE=\"Arial,Helvetica\" size=2>SQL: </B></TD>";
|
|
echo "<TD ALIGN=LEFT width=700><p style=\"width: 700; text-wrap: normal; word-wrap: break-word\"><FONT FACE=\"Arial,Helvetica\" size=1>$row[9]</TD>";
|
|
echo "</TR>\n";
|
|
echo "</TABLE><BR><BR>\n";
|
|
echo "\n";
|
|
echo "</center>\n";
|
|
}
|
|
}
|
|
|
|
|
|
######################
|
|
# ADD=999999 display reports section
|
|
######################
|
|
if ($ADD==999999)
|
|
{
|
|
if ($LOGview_reports==1)
|
|
{
|
|
echo "<TABLE><TR><TD>\n";
|
|
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
|
|
|
|
$stmt="select server_id,server_description,server_ip,active,sysload,channels_total,cpu_idle_percent,disk_usage from servers;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
if ($DB) {echo "$stmt\n";}
|
|
$servers_to_print = mysql_num_rows($rslt);
|
|
$i=0;
|
|
while ($i < $servers_to_print)
|
|
{
|
|
$row=mysql_fetch_row($rslt);
|
|
$server_id[$i] = $row[0];
|
|
$server_description[$i] = $row[1];
|
|
$server_ip[$i] = $row[2];
|
|
$active[$i] = $row[3];
|
|
$sysload[$i] = $row[4];
|
|
$channels_total[$i] = $row[5];
|
|
$cpu_idle_percent[$i] = $row[6];
|
|
$disk_usage[$i] = $row[7];
|
|
$i++;
|
|
}
|
|
|
|
$stmt="SELECT queuemetrics_url,vtiger_url from system_settings;";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$queuemetrics_url_LU = $row[0];
|
|
$vtiger_url_LU = $row[1];
|
|
|
|
?>
|
|
|
|
<HTML>
|
|
<HEAD>
|
|
|
|
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
|
<TITLE>VICIDIAL: Stats Rapports Server et</TITLE></HEAD><BODY BGCOLOR=WHITE>
|
|
<FONT SIZE=4><B>VICIDIAL: Stats Rapports Server et</B></font><BR><BR>
|
|
<UL>
|
|
<LI><a href="AST_timeonVDADall.php"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=2>TIME ON VDAD (par campagne)</a> <a href="AST_timeonVDADallSUMMARY.php"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=2>(toutes les campagnes SUMMARY)</a> SIP <a href="AST_timeonVDADall.php?SIPmonitorLINK=1"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=2>Listen</a> - <a href="AST_timeonVDADall.php?SIPmonitorLINK=2"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=2>Barge</a> IAX <a href="AST_timeonVDADall.php?IAXmonitorLINK=1"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=2>Listen</a> - <a href="AST_timeonVDADall.php?IAXmonitorLINK=2"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=2>Barge</a></FONT>
|
|
|
|
<LI><a href="AST_VDADstats.php"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=2>VDAD CAMPAIGN SORTANT REPORT</a></FONT>
|
|
<LI><a href="AST_CLOSERstats.php"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=2>ENTRANT/RAPPORT SUR LES CLOSERS</a></FONT>
|
|
<LI><a href="AST_CLOSER_service_level.php"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=2>ENTRANT/CLOSER SERVICE_NIVEAU REPORT</a></FONT>
|
|
<LI><a href="AST_agent_performance_detail.php"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=2>AGENT PERFORMANCE DETAIL</a></FONT>
|
|
<a href="AST_agent_status_detail.php"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=2>AGENT STATUS DETAIL</a></FONT>
|
|
<a href="AST_agent_days_detail.php"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=2>SINGLE AGENT DAILY</a></FONT>
|
|
|
|
<LI><a href="fcstats.php"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=2>FRONTER - RAPPORT SUR LES CLOSERS</a></FONT>
|
|
<LI><a href="vicidial_sales_viewer.php"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=2>AGENT SPREADSHEET PERFORMANCE</a></FONT>
|
|
<LI><a href="timeclock_report.php"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=2>USER TIMECLOCK REPORT</a></FONT>
|
|
<a href="timeclock_status.php"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=2>GROUPE D'UTILISATEURS timeclock STATUS REPORT</a></FONT>
|
|
|
|
<LI><a href="AST_server_performance.php"><FONT FACE="ARIAL,HELVETICA" COLOR=BLACK SIZE=2>SERVEUR PERFORMANCE</a></FONT>
|
|
<?
|
|
if ($LOGexport_reports >= 1)
|
|
{
|
|
echo "<LI><a href=\"call_report_export.php\"><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>EXPORTATION DE RAPPORT ENGAGE</a></FONT>\n";
|
|
}
|
|
if ($LOGuser_level >= 9)
|
|
{
|
|
echo "<LI><a href=\"$PHP_SELF?ADD=700000000000000\"><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>ADMIN CHANGE LOG</a></FONT>\n";
|
|
}
|
|
if ($SSenable_queuemetrics_logging > 0)
|
|
{
|
|
echo "<LI><a href=\"$queuemetrics_url_LU\"><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>QUEUEMETRICS RAPPORTS</a></FONT>\n";
|
|
}
|
|
if ($SSenable_vtiger_integration > 0)
|
|
{
|
|
echo "<LI><a href=\"$vtiger_url_LU\"><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>VTIGER ACCUEIL</a></FONT>\n";
|
|
}
|
|
?>
|
|
</UL>
|
|
<PRE><TABLE BORDER=1 CELLPADDING=2 cellspacing=0>
|
|
<TR><TD>SERVER</TD><TD>DESCRIPTION</TD><TD>IP</TD><TD>ACT</TD><TD>LOAD</TD><TD>CHAN</TD><TD>DISK</TD><TD>SORTANT</TD><TD>ENTRANT</TD></TR>
|
|
<?
|
|
|
|
$o=0;
|
|
while ($servers_to_print > $o)
|
|
{
|
|
$cpu = (100 - $cpu_idle_percent[$o]);
|
|
$disk = '';
|
|
$disk_ary = explode('|',$disk_usage[$o]);
|
|
$disk_ary_ct = count($disk_ary);
|
|
$k=0;
|
|
while ($k < $disk_ary_ct)
|
|
{
|
|
$disk_ary[$k] = preg_replace("/^\d* /","",$disk_ary[$k]);
|
|
if ($k<1) {$disk = "$disk_ary[$k]";}
|
|
else
|
|
{
|
|
if ($disk_ary[$k] > $disk) {$disk = "$disk_ary[$k]";}
|
|
}
|
|
$k++;
|
|
}
|
|
$disk = "$disk%";
|
|
echo "<TR>\n";
|
|
echo "<TD>$server_id[$o]</TD>\n";
|
|
echo "<TD>$server_description[$o]</TD>\n";
|
|
echo "<TD>$server_ip[$o]</TD>\n";
|
|
echo "<TD>$active[$o]</TD>\n";
|
|
echo "<TD>$sysload[$o] - $cpu%</TD>\n";
|
|
echo "<TD>$channels_total[$o]</TD>\n";
|
|
echo "<TD ALIGN=RIGHT>$disk</TD>\n";
|
|
echo "<TD><a href=\"AST_timeonVDAD.php?server_ip=$server_ip[$o]\">LINK</a></TD>\n";
|
|
echo "<TD><a href=\"AST_timeonVDAD.php?server_ip=$server_ip[$o]&closer_display=1\">LINK</a></TD>\n";
|
|
echo "</TR>\n";
|
|
$o++;
|
|
}
|
|
|
|
echo "</TABLE>\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Vous n'avez pas la permission de voir cette page\n";
|
|
exit;
|
|
}
|
|
}
|
|
|
|
|
|
echo "</TD></TR></TABLE></center>\n";
|
|
echo "</TD></TR></TABLE></center>\n";
|
|
|
|
$ENDtime = date("U");
|
|
|
|
$RUNtime = ($ENDtime - $STARTtime);
|
|
|
|
echo "</TD></TR>\n";
|
|
echo "<TR><TD BGCOLOR=#015B91 ALIGN=CENTER>\n";
|
|
echo "<font size=0 color=white><br><br><!-- RUNTIME: $RUNtime seconds<BR> -->";
|
|
echo "VERSION: $admin_version<BR>";
|
|
echo "CONSTRUCTION: $build</font>\n";
|
|
|
|
?>
|
|
|
|
</TD><TD BGCOLOR=#D9E6FE>
|
|
</TD></TR><TABLE>
|
|
</body>
|
|
</html>
|
|
|
|
<?
|
|
|
|
exit;
|
|
|
|
|
|
|
|
|
|
##### CALCULATE DIALABLE LEADS #####
|
|
function dialable_leads($DB,$link,$local_call_time,$dial_statuses,$camp_lists,$fSQL)
|
|
{
|
|
##### BEGIN calculate what gmt_offset_now values are within the allowed local_call_time setting ###
|
|
if (isset($camp_lists))
|
|
{
|
|
if (strlen($camp_lists)>1)
|
|
{
|
|
if (strlen($dial_statuses)>2)
|
|
{
|
|
$g=0;
|
|
$p='13';
|
|
$GMT_gmt[0] = '';
|
|
$GMT_hour[0] = '';
|
|
$GMT_day[0] = '';
|
|
while ($p > -13)
|
|
{
|
|
$pzone=3600 * $p;
|
|
$pmin=(gmdate("i", time() + $pzone));
|
|
$phour=( (gmdate("G", time() + $pzone)) * 100);
|
|
$pday=gmdate("w", time() + $pzone);
|
|
$tz = sprintf("%.2f", $p);
|
|
$GMT_gmt[$g] = "$tz";
|
|
$GMT_day[$g] = "$pday";
|
|
$GMT_hour[$g] = ($phour + $pmin);
|
|
$p = ($p - 0.25);
|
|
$g++;
|
|
}
|
|
|
|
$stmt="SELECT * FROM vicidial_call_times where call_time_id='$local_call_time';";
|
|
if ($DB) {echo "$stmt\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$Gct_default_start = "$rowx[3]";
|
|
$Gct_default_stop = "$rowx[4]";
|
|
$Gct_sunday_start = "$rowx[5]";
|
|
$Gct_sunday_stop = "$rowx[6]";
|
|
$Gct_monday_start = "$rowx[7]";
|
|
$Gct_monday_stop = "$rowx[8]";
|
|
$Gct_tuesday_start = "$rowx[9]";
|
|
$Gct_tuesday_stop = "$rowx[10]";
|
|
$Gct_wednesday_start = "$rowx[11]";
|
|
$Gct_wednesday_stop = "$rowx[12]";
|
|
$Gct_thursday_start = "$rowx[13]";
|
|
$Gct_thursday_stop = "$rowx[14]";
|
|
$Gct_friday_start = "$rowx[15]";
|
|
$Gct_friday_stop = "$rowx[16]";
|
|
$Gct_saturday_start = "$rowx[17]";
|
|
$Gct_saturday_stop = "$rowx[18]";
|
|
$Gct_state_call_times = "$rowx[19]";
|
|
|
|
$ct_states = '';
|
|
$ct_state_gmt_SQL = '';
|
|
$ct_srs=0;
|
|
$b=0;
|
|
if (strlen($Gct_state_call_times)>2)
|
|
{
|
|
$state_rules = explode('|',$Gct_state_call_times);
|
|
$ct_srs = ((count($state_rules)) - 2);
|
|
}
|
|
while($ct_srs >= $b)
|
|
{
|
|
if (strlen($state_rules[$b])>1)
|
|
{
|
|
$stmt="SELECT * from vicidial_state_call_times where state_call_time_id='$state_rules[$b]';";
|
|
$rslt=mysql_query($stmt, $link);
|
|
$row=mysql_fetch_row($rslt);
|
|
$Gstate_call_time_id = "$row[0]";
|
|
$Gstate_call_time_state = "$row[1]";
|
|
$Gsct_default_start = "$row[4]";
|
|
$Gsct_default_stop = "$row[5]";
|
|
$Gsct_sunday_start = "$row[6]";
|
|
$Gsct_sunday_stop = "$row[7]";
|
|
$Gsct_monday_start = "$row[8]";
|
|
$Gsct_monday_stop = "$row[9]";
|
|
$Gsct_tuesday_start = "$row[10]";
|
|
$Gsct_tuesday_stop = "$row[11]";
|
|
$Gsct_wednesday_start = "$row[12]";
|
|
$Gsct_wednesday_stop = "$row[13]";
|
|
$Gsct_thursday_start = "$row[14]";
|
|
$Gsct_thursday_stop = "$row[15]";
|
|
$Gsct_friday_start = "$row[16]";
|
|
$Gsct_friday_stop = "$row[17]";
|
|
$Gsct_saturday_start = "$row[18]";
|
|
$Gsct_saturday_stop = "$row[19]";
|
|
|
|
$ct_states .="'$Gstate_call_time_state',";
|
|
|
|
$r=0;
|
|
$state_gmt='';
|
|
while($r < $g)
|
|
{
|
|
if ($GMT_day[$r]==0) #### Dimanche heure locale
|
|
{
|
|
if (($Gsct_sunday_start==0) and ($Gsct_sunday_stop==0))
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gsct_default_start) and ($GMT_hour[$r]<$Gsct_default_stop) )
|
|
{$state_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
else
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gsct_sunday_start) and ($GMT_hour[$r]<$Gsct_sunday_stop) )
|
|
{$state_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
}
|
|
if ($GMT_day[$r]==1) #### Lundi heure locale
|
|
{
|
|
if (($Gsct_monday_start==0) and ($Gsct_monday_stop==0))
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gsct_default_start) and ($GMT_hour[$r]<$Gsct_default_stop) )
|
|
{$state_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
else
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gsct_monday_start) and ($GMT_hour[$r]<$Gsct_monday_stop) )
|
|
{$state_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
}
|
|
if ($GMT_day[$r]==2) #### Mardi heure locale
|
|
{
|
|
if (($Gsct_tuesday_start==0) and ($Gsct_tuesday_stop==0))
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gsct_default_start) and ($GMT_hour[$r]<$Gsct_default_stop) )
|
|
{$state_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
else
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gsct_tuesday_start) and ($GMT_hour[$r]<$Gsct_tuesday_stop) )
|
|
{$state_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
}
|
|
if ($GMT_day[$r]==3) #### Mercredi heure locale
|
|
{
|
|
if (($Gsct_wednesday_start==0) and ($Gsct_wednesday_stop==0))
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gsct_default_start) and ($GMT_hour[$r]<$Gsct_default_stop) )
|
|
{$state_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
else
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gsct_wednesday_start) and ($GMT_hour[$r]<$Gsct_wednesday_stop) )
|
|
{$state_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
}
|
|
if ($GMT_day[$r]==4) #### Jeudi heure locale
|
|
{
|
|
if (($Gsct_thursday_start==0) and ($Gsct_thursday_stop==0))
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gsct_default_start) and ($GMT_hour[$r]<$Gsct_default_stop) )
|
|
{$state_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
else
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gsct_thursday_start) and ($GMT_hour[$r]<$Gsct_thursday_stop) )
|
|
{$state_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
}
|
|
if ($GMT_day[$r]==5) #### Vendredi heure locale
|
|
{
|
|
if (($Gsct_friday_start==0) and ($Gsct_friday_stop==0))
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gsct_default_start) and ($GMT_hour[$r]<$Gsct_default_stop) )
|
|
{$state_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
else
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gsct_friday_start) and ($GMT_hour[$r]<$Gsct_friday_stop) )
|
|
{$state_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
}
|
|
if ($GMT_day[$r]==6) #### Samedi heure locale
|
|
{
|
|
if (($Gsct_saturday_start==0) and ($Gsct_saturday_stop==0))
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gsct_default_start) and ($GMT_hour[$r]<$Gsct_default_stop) )
|
|
{$state_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
else
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gsct_saturday_start) and ($GMT_hour[$r]<$Gsct_saturday_stop) )
|
|
{$state_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
}
|
|
$r++;
|
|
}
|
|
$state_gmt = "$state_gmt'99'";
|
|
$ct_state_gmt_SQL .= "or (state='$Gstate_call_time_state' and gmt_offset_now IN($state_gmt)) ";
|
|
}
|
|
|
|
$b++;
|
|
}
|
|
if (strlen($ct_states)>2)
|
|
{
|
|
$ct_states = eregi_replace(",$",'',$ct_states);
|
|
$ct_statesSQL = "and state NOT IN($ct_states)";
|
|
}
|
|
else
|
|
{
|
|
$ct_statesSQL = "";
|
|
}
|
|
|
|
$r=0;
|
|
$default_gmt='';
|
|
while($r < $g)
|
|
{
|
|
if ($GMT_day[$r]==0) #### Dimanche heure locale
|
|
{
|
|
if (($Gct_sunday_start==0) and ($Gct_sunday_stop==0))
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gct_default_start) and ($GMT_hour[$r]<$Gct_default_stop) )
|
|
{$default_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
else
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gct_sunday_start) and ($GMT_hour[$r]<$Gct_sunday_stop) )
|
|
{$default_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
}
|
|
if ($GMT_day[$r]==1) #### Lundi heure locale
|
|
{
|
|
if (($Gct_monday_start==0) and ($Gct_monday_stop==0))
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gct_default_start) and ($GMT_hour[$r]<$Gct_default_stop) )
|
|
{$default_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
else
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gct_monday_start) and ($GMT_hour[$r]<$Gct_monday_stop) )
|
|
{$default_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
}
|
|
if ($GMT_day[$r]==2) #### Mardi heure locale
|
|
{
|
|
if (($Gct_tuesday_start==0) and ($Gct_tuesday_stop==0))
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gct_default_start) and ($GMT_hour[$r]<$Gct_default_stop) )
|
|
{$default_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
else
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gct_tuesday_start) and ($GMT_hour[$r]<$Gct_tuesday_stop) )
|
|
{$default_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
}
|
|
if ($GMT_day[$r]==3) #### Mercredi heure locale
|
|
{
|
|
if (($Gct_wednesday_start==0) and ($Gct_wednesday_stop==0))
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gct_default_start) and ($GMT_hour[$r]<$Gct_default_stop) )
|
|
{$default_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
else
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gct_wednesday_start) and ($GMT_hour[$r]<$Gct_wednesday_stop) )
|
|
{$default_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
}
|
|
if ($GMT_day[$r]==4) #### Jeudi heure locale
|
|
{
|
|
if (($Gct_thursday_start==0) and ($Gct_thursday_stop==0))
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gct_default_start) and ($GMT_hour[$r]<$Gct_default_stop) )
|
|
{$default_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
else
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gct_thursday_start) and ($GMT_hour[$r]<$Gct_thursday_stop) )
|
|
{$default_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
}
|
|
if ($GMT_day[$r]==5) #### Vendredi heure locale
|
|
{
|
|
if (($Gct_friday_start==0) and ($Gct_friday_stop==0))
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gct_default_start) and ($GMT_hour[$r]<$Gct_default_stop) )
|
|
{$default_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
else
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gct_friday_start) and ($GMT_hour[$r]<$Gct_friday_stop) )
|
|
{$default_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
}
|
|
if ($GMT_day[$r]==6) #### Samedi heure locale
|
|
{
|
|
if (($Gct_saturday_start==0) and ($Gct_saturday_stop==0))
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gct_default_start) and ($GMT_hour[$r]<$Gct_default_stop) )
|
|
{$default_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
else
|
|
{
|
|
if ( ($GMT_hour[$r]>=$Gct_saturday_start) and ($GMT_hour[$r]<$Gct_saturday_stop) )
|
|
{$default_gmt.="'$GMT_gmt[$r]',";}
|
|
}
|
|
}
|
|
$r++;
|
|
}
|
|
|
|
$default_gmt = "$default_gmt'99'";
|
|
$all_gmtSQL = "(gmt_offset_now IN($default_gmt) $ct_statesSQL) $ct_state_gmt_SQL";
|
|
|
|
|
|
$dial_statuses = preg_replace("/ -$/","",$dial_statuses);
|
|
$Dstatuses = explode(" ", $dial_statuses);
|
|
$Ds_to_print = (count($Dstatuses) - 0);
|
|
$Dsql = '';
|
|
$o=0;
|
|
while ($Ds_to_print > $o)
|
|
{
|
|
$o++;
|
|
$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;
|
|
if ($DB) {echo "$stmt\n";}
|
|
$rslt=mysql_query($stmt, $link);
|
|
$rslt_rows = mysql_num_rows($rslt);
|
|
if ($rslt_rows)
|
|
{
|
|
$rowx=mysql_fetch_row($rslt);
|
|
$active_leads = "$rowx[0]";
|
|
}
|
|
else {$active_leads = '0';}
|
|
|
|
echo "|$DB|\n";
|
|
echo "Cette campagne a $active_leads fiches à appeler dans ces listes\n";
|
|
}
|
|
else
|
|
{
|
|
echo "aucun statut d'appel selectionnés pour cette campagne\n";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "pas de listes actives pour cette campagne\n";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
echo "pas de listes actives pour cette campagne\n";
|
|
}
|
|
##### END calculate what gmt_offset_now values are within the allowed local_call_time setting ###
|
|
}
|
|
?>
|