diff --git a/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql b/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql index 1157ad03..58261de2 100644 --- a/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql +++ b/agc_2-X/trunk/extras/MySQL_AST_CREATE_tables.sql @@ -2538,7 +2538,12 @@ last_name VARCHAR(50) default '', office_num VARCHAR(20) default '', cell_num VARCHAR(20) default '', other_num1 VARCHAR(20) default '', -other_num2 VARCHAR(20) default '' +other_num2 VARCHAR(20) default '', +bu_name VARCHAR(100) default '', +department VARCHAR(100) default '', +group_name VARCHAR(100) default '', +job_title VARCHAR(100) default '', +location VARCHAR(100) default '' ); CREATE INDEX ci_first_name on contact_information (first_name); @@ -2696,7 +2701,7 @@ CREATE TABLE vicidial_log_noanswer_archive LIKE vicidial_log_noanswer; CREATE TABLE vicidial_did_agent_log_archive LIKE vicidial_did_agent_log; CREATE UNIQUE INDEX vdala on vicidial_did_agent_log_archive (uniqueid,call_date,did_route); -UPDATE system_settings SET db_schema_version='1304',db_schema_update_date=NOW(); +UPDATE system_settings SET db_schema_version='1305',db_schema_update_date=NOW(); GRANT RELOAD ON *.* TO cron@'%'; GRANT RELOAD ON *.* TO cron@localhost; diff --git a/agc_2-X/trunk/extras/upgrade_2.4.sql b/agc_2-X/trunk/extras/upgrade_2.4.sql index fbb4cabb..4ae4e65b 100644 --- a/agc_2-X/trunk/extras/upgrade_2.4.sql +++ b/agc_2-X/trunk/extras/upgrade_2.4.sql @@ -1122,3 +1122,10 @@ CREATE INDEX ci_last_name on contact_information (last_name); UPDATE system_settings SET db_schema_version='1304',db_schema_update_date=NOW() where db_schema_version < 1304; +ALTER TABLE contact_information ADD bu_name VARCHAR(100) default ''; +ALTER TABLE contact_information ADD department VARCHAR(100) default ''; +ALTER TABLE contact_information ADD group_name VARCHAR(100) default ''; +ALTER TABLE contact_information ADD job_title VARCHAR(100) default ''; +ALTER TABLE contact_information ADD location VARCHAR(100) default ''; + +UPDATE system_settings SET db_schema_version='1305',db_schema_update_date=NOW() where db_schema_version < 1305; diff --git a/agc_2-X/trunk/www/agc/vdc_db_query.php b/agc_2-X/trunk/www/agc/vdc_db_query.php index 8828162c..112e0550 100644 --- a/agc_2-X/trunk/www/agc/vdc_db_query.php +++ b/agc_2-X/trunk/www/agc/vdc_db_query.php @@ -292,10 +292,11 @@ # 110901-1117 - Added areacode custom cid function # 111006-1425 - Added call_count_limit campaign option # 111015-2104 - Added SEARCHCONTACTSRESULTSview function +# 111018-1529 - Added more fields to contact search # -$version = '2.4-195'; -$build = '111015-2104'; +$version = '2.4-196'; +$build = '111018-1529'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=425; $one_mysql_log=0; @@ -498,6 +499,16 @@ if (isset($_GET["qm_extension"])) {$qm_extension=$_GET["qm_extension"];} elseif (isset($_POST["qm_extension"])) {$qm_extension=$_POST["qm_extension"];} 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["bu_name"])) {$bu_name=$_GET["bu_name"];} + elseif (isset($_POST["bu_name"])) {$bu_name=$_POST["bu_name"];} +if (isset($_GET["department"])) {$department=$_GET["department"];} + elseif (isset($_POST["department"])) {$department=$_POST["department"];} +if (isset($_GET["group_name"])) {$group_name=$_GET["group_name"];} + elseif (isset($_POST["group_name"])) {$group_name=$_POST["group_name"];} +if (isset($_GET["job_title"])) {$job_title=$_GET["job_title"];} + elseif (isset($_POST["job_title"])) {$job_title=$_POST["job_title"];} +if (isset($_GET["location"])) {$location=$_GET["location"];} + elseif (isset($_POST["location"])) {$location=$_POST["location"];} header ("Content-type: text/html; charset=utf-8"); @@ -8871,6 +8882,11 @@ if ($ACTION == 'SEARCHCONTACTSRESULTSview') $last_name = ereg_replace("'|\"|\\\\|;","",$last_name); $first_name = ereg_replace("'|\"|\\\\|;","",$first_name); $phone_number = ereg_replace("'|\"|\\\\|;","",$phone_number); + $bu_name = ereg_replace("'|\"|\\\\|;","",$bu_name); + $department = ereg_replace("'|\"|\\\\|;","",$department); + $group_name = ereg_replace("'|\"|\\\\|;","",$group_name); + $job_title = ereg_replace("'|\"|\\\\|;","",$job_title); + $location = ereg_replace("'|\"|\\\\|;","",$location); if (strlen($phone_number) >= 2) { @@ -8881,14 +8897,133 @@ if ($ACTION == 'SEARCHCONTACTSRESULTSview') $searchSQL = "last_name='$last_name'"; if (strlen($first_name) > 0) { - if (strlen($searchSQL) > 10) - {$searchSQL .= " and ";} + if (strlen($searchSQL) > 10) {$searchSQL .= " and ";} $searchSQL .= "first_name='$first_name'"; } + if (strlen($bu_name) > 0) + { + if (strlen($searchSQL) > 10) {$searchSQL .= " and ";} + $searchSQL .= "bu_name='$bu_name'"; + } + if (strlen($department) > 0) + { + if (strlen($searchSQL) > 10) {$searchSQL .= " and ";} + $searchSQL .= "department='$department'"; + } + if (strlen($group_name) > 0) + { + if (strlen($searchSQL) > 10) {$searchSQL .= " and ";} + $searchSQL .= "group_name='$group_name'"; + } + if (strlen($job_title) > 0) + { + if (strlen($searchSQL) > 10) {$searchSQL .= " and ";} + $searchSQL .= "job_title='$job_title'"; + } + if (strlen($location) > 0) + { + if (strlen($searchSQL) > 10) {$searchSQL .= " and ";} + $searchSQL .= "location='$location'"; + } } elseif (strlen($first_name) > 0) { $searchSQL = "first_name='$first_name'"; + if (strlen($bu_name) > 0) + { + if (strlen($searchSQL) > 10) {$searchSQL .= " and ";} + $searchSQL .= "bu_name='$bu_name'"; + } + if (strlen($department) > 0) + { + if (strlen($searchSQL) > 10) {$searchSQL .= " and ";} + $searchSQL .= "department='$department'"; + } + if (strlen($group_name) > 0) + { + if (strlen($searchSQL) > 10) {$searchSQL .= " and ";} + $searchSQL .= "group_name='$group_name'"; + } + if (strlen($job_title) > 0) + { + if (strlen($searchSQL) > 10) {$searchSQL .= " and ";} + $searchSQL .= "job_title='$job_title'"; + } + if (strlen($location) > 0) + { + if (strlen($searchSQL) > 10) {$searchSQL .= " and ";} + $searchSQL .= "location='$location'"; + } + } + elseif (strlen($bu_name) > 0) + { + $searchSQL = "bu_name='$bu_name'"; + if (strlen($department) > 0) + { + if (strlen($searchSQL) > 10) {$searchSQL .= " and ";} + $searchSQL .= "department='$department'"; + } + if (strlen($group_name) > 0) + { + if (strlen($searchSQL) > 10) {$searchSQL .= " and ";} + $searchSQL .= "group_name='$group_name'"; + } + if (strlen($job_title) > 0) + { + if (strlen($searchSQL) > 10) {$searchSQL .= " and ";} + $searchSQL .= "job_title='$job_title'"; + } + if (strlen($location) > 0) + { + if (strlen($searchSQL) > 10) {$searchSQL .= " and ";} + $searchSQL .= "location='$location'"; + } + } + elseif (strlen($department) > 0) + { + $searchSQL = "department='$department'"; + if (strlen($group_name) > 0) + { + if (strlen($searchSQL) > 10) {$searchSQL .= " and ";} + $searchSQL .= "group_name='$group_name'"; + } + if (strlen($job_title) > 0) + { + if (strlen($searchSQL) > 10) {$searchSQL .= " and ";} + $searchSQL .= "job_title='$job_title'"; + } + if (strlen($location) > 0) + { + if (strlen($searchSQL) > 10) {$searchSQL .= " and ";} + $searchSQL .= "location='$location'"; + } + } + elseif (strlen($group_name) > 0) + { + $searchSQL = "group_name='$group_name'"; + if (strlen($job_title) > 0) + { + if (strlen($searchSQL) > 10) {$searchSQL .= " and ";} + $searchSQL .= "job_title='$job_title'"; + } + if (strlen($location) > 0) + { + if (strlen($searchSQL) > 10) {$searchSQL .= " and ";} + $searchSQL .= "location='$location'"; + } + } + elseif (strlen($job_title) > 0) + { + $searchSQL = "job_title='$job_title'"; + if (strlen($location) > 0) + { + if (strlen($searchSQL) > 10) {$searchSQL .= " and ";} + $searchSQL .= "location='$location'"; + } + } + elseif (strlen($location) > 0) + { + $searchSQL = "location='$location'"; } else { @@ -8950,11 +9085,12 @@ if ($ACTION == 'SEARCHCONTACTSRESULTSview') echo "   MOBILE   "; echo "   OTHER 1   "; echo "   OTHER 2   "; + echo "   BU NAME   "; echo ""; if ($search_result_count) { - $stmt="SELECT first_name,last_name,office_num,cell_num,other_num1,other_num2 from contact_information where $searchSQL order by first_name,last_name desc limit 1000;"; + $stmt="SELECT first_name,last_name,office_num,cell_num,other_num1,other_num2,bu_name,department,group_name,job_title,location from contact_information where $searchSQL order by first_name,last_name desc limit 1000;"; $rsltALT=mysql_query($stmt, $linkALT); if ($mel > 0) {mysql_error_logging($NOW_TIME,$linkALT,$mel,$stmt,'00XXX',$user,$server_ip,$session_name,$one_mysql_log);} $out_logs_to_print = mysql_num_rows($rsltALT); @@ -8972,6 +9108,11 @@ if ($ACTION == 'SEARCHCONTACTSRESULTSview') $ALLcell_num[$g] = $row[3]; $ALLother_num1[$g] = $row[4]; $ALLother_num2[$g] = $row[5]; + $ALLbu_name[$g] = $row[6]; + $ALLdepartment[$g] = $row[7]; + $ALLgroup_name[$g] = $row[8]; + $ALLjob_title[$g] = $row[9]; + $ALLlocation[$g] = $row[10]; $g++; $u++; @@ -8993,13 +9134,17 @@ if ($ACTION == 'SEARCHCONTACTSRESULTSview') $u++; echo ""; - echo "$u"; - echo "$ALLfirst[$i] \n"; - echo "$ALLlast[$i] \n"; - echo "   $ALLoffice_num[$i] \n"; - echo "   $ALLcell_num[$i] \n"; - echo "   $ALLother_num1[$i] \n"; - echo "   $ALLother_num2[$i] \n"; + echo "$u "; + echo " $ALLfirst[$i] \n"; + echo " $ALLlast[$i] \n"; + echo "   $ALLoffice_num[$i] \n"; + echo "   $ALLcell_num[$i] \n"; + echo "   $ALLother_num1[$i] \n"; + echo "   $ALLother_num2[$i] \n"; + echo " $ALLbu_name[$i] \n"; + echo "\n"; + echo ""; + echo "             Dept: $ALLdepartment[$i]       Group: $ALLgroup_name[$i]       Job: $ALLjob_title[$i]       Location: $ALLlocation[$i]"; echo "\n"; } diff --git a/agc_2-X/trunk/www/agc/vicidial.php b/agc_2-X/trunk/www/agc/vicidial.php index f287c39f..b0db0c1b 100644 --- a/agc_2-X/trunk/www/agc/vicidial.php +++ b/agc_2-X/trunk/www/agc/vicidial.php @@ -367,10 +367,11 @@ # 110916-1514 - Fixed dial timeout to check for dial_timeout setting and greater than 49 seconds # 110919-1603 - Added Phone login load balancing grouping options # 111015-2037 - Added contact search functions +# 111018-1528 - Added more contact fields, added code to prevent API transfer duplicates # -$version = '2.4-334c'; -$build = '111015-2037'; +$version = '2.4-335c'; +$build = '111018-1528'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=75; $one_mysql_log=0; @@ -3520,6 +3521,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";} var status_display_LISTID=''; var qm_extension=''; var hide_dispo_list=''; + var external_transferconf_count=0; var DiaLControl_auto_HTML = "\"\"Resume\""; var DiaLControl_auto_HTML_ready = "\"\"Resume\""; var DiaLControl_auto_HTML_OFF = "\"\"Resume\""; @@ -4361,35 +4363,39 @@ function set_length(SLnumber,SLlength_goal,SLdirection) document.vicidial_form.xfernumber.value = api_transferconf_number; mainxfer_send_redirect('XfeRBLIND',lastcustchannel,lastcustserverip); } - if (api_transferconf_function == 'LOCAL_CLOSER') + if (external_transferconf_count < 1) { - API_selected_xfergroup = api_transferconf_group; - document.vicidial_form.xfernumber.value = api_transferconf_number; - mainxfer_send_redirect('XfeRLOCAL',lastcustchannel,lastcustserverip); - } - if (api_transferconf_function == 'DIAL_WITH_CUSTOMER') - { - if (api_transferconf_consultative=='YES') - {document.vicidial_form.consultativexfer.checked=true;} - if (api_transferconf_consultative=='NO') - {document.vicidial_form.consultativexfer.checked=false;} - if (api_transferconf_override=='YES') - {document.vicidial_form.xferoverride.checked=true;} - API_selected_xfergroup = api_transferconf_group; - document.vicidial_form.xfernumber.value = api_transferconf_number; - SendManualDial('YES'); - } - if (api_transferconf_function == 'PARK_CUSTOMER_DIAL') - { - if (api_transferconf_consultative=='YES') - {document.vicidial_form.consultativexfer.checked=true;} - if (api_transferconf_consultative=='NO') - {document.vicidial_form.consultativexfer.checked=false;} - if (api_transferconf_override=='YES') - {document.vicidial_form.xferoverride.checked=true;} - API_selected_xfergroup = api_transferconf_group; - document.vicidial_form.xfernumber.value = api_transferconf_number; - xfer_park_dial(); + if (api_transferconf_function == 'LOCAL_CLOSER') + { + API_selected_xfergroup = api_transferconf_group; + document.vicidial_form.xfernumber.value = api_transferconf_number; + mainxfer_send_redirect('XfeRLOCAL',lastcustchannel,lastcustserverip); + } + if (api_transferconf_function == 'DIAL_WITH_CUSTOMER') + { + if (api_transferconf_consultative=='YES') + {document.vicidial_form.consultativexfer.checked=true;} + if (api_transferconf_consultative=='NO') + {document.vicidial_form.consultativexfer.checked=false;} + if (api_transferconf_override=='YES') + {document.vicidial_form.xferoverride.checked=true;} + API_selected_xfergroup = api_transferconf_group; + document.vicidial_form.xfernumber.value = api_transferconf_number; + SendManualDial('YES'); + } + if (api_transferconf_function == 'PARK_CUSTOMER_DIAL') + { + if (api_transferconf_consultative=='YES') + {document.vicidial_form.consultativexfer.checked=true;} + if (api_transferconf_consultative=='NO') + {document.vicidial_form.consultativexfer.checked=false;} + if (api_transferconf_override=='YES') + {document.vicidial_form.xferoverride.checked=true;} + API_selected_xfergroup = api_transferconf_group; + document.vicidial_form.xfernumber.value = api_transferconf_number; + xfer_park_dial(); + } + external_transferconf_count=3; } Clear_API_Field('external_transferconf'); } @@ -11038,7 +11044,7 @@ function phone_number_format(formatphone) { } if (xmlhttp) { - LSview_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=SEARCHCONTACTSRESULTSview&format=text&user=" + user + "&pass=" + pass + "&conf_exten=" + session_id + "&extension=" + extension + "&protocol=" + protocol + "&phone_number=" + document.vicidial_form.contacts_phone_number.value + "&first_name=" + document.vicidial_form.contacts_first_name.value + "&last_name=" + document.vicidial_form.contacts_last_name.value + "&campaign=" + campaign + "&stage="; + LSview_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=SEARCHCONTACTSRESULTSview&format=text&user=" + user + "&pass=" + pass + "&conf_exten=" + session_id + "&extension=" + extension + "&protocol=" + protocol + "&phone_number=" + document.vicidial_form.contacts_phone_number.value + "&first_name=" + document.vicidial_form.contacts_first_name.value + "&last_name=" + document.vicidial_form.contacts_last_name.value + "&bu_name=" + document.vicidial_form.contacts_bu_name.value + "&department=" + document.vicidial_form.contacts_department.value + "&group_name=" + document.vicidial_form.contacts_group_name.value + "&job_title=" + document.vicidial_form.contacts_job_title.value + "&location=" + document.vicidial_form.contacts_location.value + "&campaign=" + campaign + "&stage="; xmlhttp.open('POST', 'vdc_db_query.php'); xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8'); xmlhttp.send(LSview_query); @@ -11055,6 +11061,7 @@ function phone_number_format(formatphone) { } + // ################################################################################ // Reset contact search form function ContactSearchReset() @@ -11062,6 +11069,11 @@ function phone_number_format(formatphone) { document.vicidial_form.contacts_phone_number.value=''; document.vicidial_form.contacts_first_name.value=''; document.vicidial_form.contacts_last_name.value=''; + document.vicidial_form.contacts_bu_name.value=''; + document.vicidial_form.contacts_department.value=''; + document.vicidial_form.contacts_group_name.value=''; + document.vicidial_form.contacts_job_title.value=''; + document.vicidial_form.contacts_location.value=''; } @@ -11777,7 +11789,6 @@ function phone_number_format(formatphone) { } else { - var WaitingForNextStep=0; if ( (CloserSelecting==1) || (TerritorySelecting==1) ) {WaitingForNextStep=1;} if (open_dispo_screen==1) @@ -11838,6 +11849,7 @@ function phone_number_format(formatphone) { if ( (custchannellive < -30) && (lastcustchannel.length > 3) && (no_empty_session_warnings < 1) ) {CustomerChanneLGone();} if ( (custchannellive < -10) && (lastcustchannel.length > 3) ) {ReChecKCustoMerChaN();} if ( (nochannelinsession > 16) && (check_n > 15) && (no_empty_session_warnings < 1) ) {NoneInSession();} + if (external_transferconf_count > 0) {external_transferconf_count = (external_transferconf_count - 1);} if (WaitingForNextStep==0) { if (trigger_ready > 0) @@ -13515,6 +13527,21 @@ Available Agents Transfer: Last Name: + BU Name: + + + Department: + + + Group Name: + + + Job Title: + + + Location: + +
SUBMIT SEARCH             reset form diff --git a/agc_2-X/trunk/www/vicidial/admin.php b/agc_2-X/trunk/www/vicidial/admin.php index aad5828e..ac11867a 100644 --- a/agc_2-X/trunk/www/vicidial/admin.php +++ b/agc_2-X/trunk/www/vicidial/admin.php @@ -1691,6 +1691,14 @@ if (isset($_GET["other_num2"])) {$other_num2=$_GET["other_num2"];} elseif (isset($_POST["other_num2"])) {$other_num2=$_POST["other_num2"];} if (isset($_GET["modify_contacts"])) {$modify_contacts=$_GET["modify_contacts"];} elseif (isset($_POST["modify_contacts"])) {$modify_contacts=$_POST["modify_contacts"];} +if (isset($_GET["bu_name"])) {$bu_name=$_GET["bu_name"];} + elseif (isset($_POST["bu_name"])) {$bu_name=$_POST["bu_name"];} +if (isset($_GET["department"])) {$department=$_GET["department"];} + elseif (isset($_POST["department"])) {$department=$_POST["department"];} +if (isset($_GET["job_title"])) {$job_title=$_GET["job_title"];} + elseif (isset($_POST["job_title"])) {$job_title=$_POST["job_title"];} +if (isset($_GET["location"])) {$location=$_GET["location"];} + elseif (isset($_POST["location"])) {$location=$_POST["location"];} if (isset($script_id)) {$script_id= strtoupper($script_id);} @@ -2501,6 +2509,11 @@ if ($non_latin < 1) $description = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$description); $first_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$first_name); $last_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$last_name); + $bu_name = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$bu_name); + $department = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$department); + $group = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$group); + $job_title = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$job_title); + $location = ereg_replace("[^ \.\,-\_0-9a-zA-Z]","",$location); ### 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); @@ -2969,12 +2982,13 @@ else # 111004-1539 - Added dtmf_field call menu option # 111006-1403 - Added several new campaign and other options, call_count_limit, status flag, shift report flag, etc... # 111015-1914 - Added Preset Contact Search options +# 111018-1535 - Added more contact fields # # make sure you have added a user to the vicidial_users MySQL table with at least user_level 8 to access this page the first time -$admin_version = '2.4-341a'; -$build = '111015-1914'; +$admin_version = '2.4-342a'; +$build = '111018-1535'; $STARTtime = date("U"); $SQLdate = date("Y-m-d H:i:s"); @@ -8663,7 +8677,7 @@ if ($ADD==11) echo "Campaign Description: $NWB#vicidial_campaigns-campaign_description$NWE\n"; echo "Active: $NWB#vicidial_campaigns-active$NWE\n"; echo "Park Music-on-Hold: moh chooser $NWB#vicidial_campaigns-park_ext$NWE\n"; - echo "Web Form: $NWB#vicidial_campaigns-web_form_address$NWE\n"; + echo "Web Form: $NWB#vicidial_campaigns-web_form_address$NWE\n"; if ($SSoutbound_autodial_active > 0) { echo "Allow Closers: $NWB#vicidial_campaigns-allow_closers$NWE\n"; @@ -9189,7 +9203,7 @@ if ($ADD==1111) echo "Group Name: $NWB#vicidial_inbound_groups-group_name$NWE\n"; echo "Group Color: $NWB#vicidial_inbound_groups-group_color$NWE\n"; echo "Active: $NWB#vicidial_inbound_groups-active$NWE\n"; - echo "Web Form: $NWB#vicidial_inbound_groups-web_form_address$NWE\n"; + echo "Web Form: $NWB#vicidial_inbound_groups-web_form_address$NWE\n"; echo "Voicemail: $NWB#vicidial_inbound_groups-voicemail_ext$NWE\n"; echo "Next Agent Call: $NWB#vicidial_inbound_groups-next_agent_call$NWE\n"; echo "Fronter Display: $NWB#vicidial_inbound_groups-fronter_display$NWE\n"; @@ -10321,6 +10335,11 @@ if ($ADD==191111111111) echo "Cell Number: $NWB#contact_information$NWE\n"; echo "Other Number 1: $NWB#contact_information$NWE\n"; echo "Other Number 2: $NWB#contact_information$NWE\n"; + echo "BU Name: $NWB#contact_information$NWE\n"; + echo "Department: $NWB#contact_information$NWE\n"; + echo "Group: $NWB#contact_information$NWE\n"; + echo "Job Title: $NWB#contact_information$NWE\n"; + echo "Location: $NWB#contact_information$NWE\n"; echo "\n"; echo "\n"; @@ -13090,7 +13109,7 @@ if ($ADD==291111111111) { echo "
CONTACT ADDED\n"; - $stmt="INSERT INTO contact_information SET first_name='$first_name',last_name='$last_name',office_num='$office_num',cell_num='$cell_num',other_num1='$other_num1',other_num2='$other_num2';"; + $stmt="INSERT INTO contact_information SET first_name='$first_name',last_name='$last_name',office_num='$office_num',cell_num='$cell_num',other_num1='$other_num1',other_num2='$other_num2',bu_name='$bu_name',department='$department',group_name='$group_name',job_title='$job_title',location='$location';"; $rslt=mysql_query($stmt, $linkALT); $contact_id = mysql_insert_id($linkALT); @@ -16558,7 +16577,7 @@ if ($ADD==491111111111) } else {$linkALT = $link;} - $stmt="UPDATE contact_information set first_name='$first_name',last_name='$last_name',office_num='$office_num',cell_num='$cell_num',other_num1='$other_num1',other_num2='$other_num2' where contact_id='$contact_id';"; + $stmt="UPDATE contact_information set first_name='$first_name',last_name='$last_name',office_num='$office_num',cell_num='$cell_num',other_num1='$other_num1',other_num2='$other_num2',bu_name='$bu_name',department='$department',group_name='$group_name',job_title='$job_title',location='$location' where contact_id='$contact_id';"; $rslt=mysql_query($stmt, $linkALT); echo "
CONTACT MODIFIED: $contact_id\n"; @@ -20190,10 +20209,10 @@ if ($ADD==31) echo "Campaign Call Date: $campaign_calldate   $NWB#vicidial_campaigns-campaign_calldate$NWE\n"; echo "Active: $NWB#vicidial_campaigns-active$NWE\n"; echo "Park Music-on-Hold: moh chooser $NWB#vicidial_campaigns-park_ext$NWE\n"; - echo "Web Form: $NWB#vicidial_campaigns-web_form_address$NWE\n"; + echo "Web Form: $NWB#vicidial_campaigns-web_form_address$NWE\n"; if ($SSenable_second_webform > 0) { - echo "Web Form Two: $NWB#vicidial_campaigns-web_form_address$NWE\n"; + echo "Web Form Two: $NWB#vicidial_campaigns-web_form_address$NWE\n"; } echo "Web Form Target: $NWB#vicidial_campaigns-web_form_target$NWE\n"; echo "Allow Closers: $NWB#vicidial_campaigns-allow_closers$NWE\n"; @@ -23578,10 +23597,10 @@ if ($ADD==311) echo "$Dgroups_menu"; echo "$NWB#vicidial_lists-drop_inbound_group_override$NWE\n"; - echo "Web Form: $NWB#vicidial_lists-web_form_address$NWE\n"; + echo "Web Form: $NWB#vicidial_lists-web_form_address$NWE\n"; if ($SSenable_second_webform > 0) { - echo "Web Form Two: $NWB#vicidial_lists-web_form_address$NWE\n"; + echo "Web Form Two: $NWB#vicidial_lists-web_form_address$NWE\n"; } echo "Transfer-Conf Number 1 Override: $NWB#vicidial_lists-xferconf_a_dtmf$NWE\n"; @@ -24357,10 +24376,10 @@ if ($ADD==3111) echo "Group Color: $NWB#vicidial_inbound_groups-group_color$NWE\n"; echo "Active: $NWB#vicidial_inbound_groups-active$NWE\n"; echo "In-Group Calldate: $group_calldate$NWB#vicidial_inbound_groups-group_calldate$NWE\n"; - echo "Web Form: $NWB#vicidial_inbound_groups-web_form_address$NWE\n"; + echo "Web Form: $NWB#vicidial_inbound_groups-web_form_address$NWE\n"; if ($SSenable_second_webform > 0) { - echo "Web Form Two: $NWB#vicidial_inbound_groups-web_form_address$NWE\n"; + echo "Web Form Two: $NWB#vicidial_inbound_groups-web_form_address$NWE\n"; } echo "Next Agent Call: $NWB#vicidial_inbound_groups-next_agent_call$NWE\n"; @@ -28345,7 +28364,7 @@ if ($ADD==391111111111) } else {$linkALT = $link;} - $stmt="SELECT first_name,last_name,office_num,cell_num,other_num1,other_num2 from contact_information where contact_id='$contact_id';"; + $stmt="SELECT first_name,last_name,office_num,cell_num,other_num1,other_num2,bu_name,department,group_name,job_title,location from contact_information where contact_id='$contact_id';"; $rslt=mysql_query($stmt, $linkALT); $row=mysql_fetch_row($rslt); $first_name = $row[0]; @@ -28354,6 +28373,11 @@ if ($ADD==391111111111) $cell_num = $row[3]; $other_num1 = $row[4]; $other_num2 = $row[5]; + $bu_name = $row[6]; + $department = $row[7]; + $group_name = $row[8]; + $job_title = $row[9]; + $location = $row[10]; echo "
MODIFY CONTACT: $tts_id
\n"; echo "\n"; @@ -28365,13 +28389,17 @@ if ($ADD==391111111111) echo "Cell Number: $NWB#contact_information$NWE\n"; echo "Other Number 1: $NWB#contact_information$NWE\n"; echo "Other Number 2: $NWB#contact_information$NWE\n"; + echo "BU Name: $NWB#contact_information$NWE\n"; + echo "Department: $NWB#contact_information$NWE\n"; + echo "Group: $NWB#contact_information$NWE\n"; + echo "Job Title: $NWB#contact_information$NWE\n"; + echo "Location: $NWB#contact_information$NWE\n"; echo "\n"; echo "\n"; echo "
\n"; - if ($LOGast_delete_phones > 0) { echo "

DELETE THIS CONTACT\n"; @@ -30798,21 +30826,31 @@ if ($ADD==190000000000) } else {$linkALT = $link;} - $stmt="SELECT contact_id,first_name,last_name,office_num from contact_information order by first_name,last_name,office_num limit 20000;"; + $stmt="SELECT contact_id,first_name,last_name,office_num,bu_name,department,group_name,job_title,location from contact_information order by first_name,last_name,office_num limit 20000;"; $rslt=mysql_query($stmt, $linkALT); $lb_to_print = mysql_num_rows($rslt); echo "
Contacts:\n"; - echo "
\n"; + echo "
\n"; echo ""; echo ""; echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; echo "\n"; $o=0; while ($lb_to_print > $o) { $row=mysql_fetch_row($rslt); + while (strlen($row[4])>20) {$row[4] = preg_replace("/.$/","",$row[4]);} + while (strlen($row[5])>20) {$row[5] = preg_replace("/.$/","",$row[5]);} + while (strlen($row[6])>20) {$row[6] = preg_replace("/.$/","",$row[6]);} + while (strlen($row[7])>20) {$row[7] = preg_replace("/.$/","",$row[7]);} + while (strlen($row[8])>20) {$row[8] = preg_replace("/.$/","",$row[8]);} if (eregi("1$|3$|5$|7$|9$", $o)) {$bgcolor='bgcolor="#B9CBFD"';} @@ -30820,6 +30858,11 @@ if ($ADD==190000000000) {$bgcolor='bgcolor="#9BB9FB"';} echo ""; echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; echo "\n"; $o++; }
NAMEOffice NumberBU NameDepartmentGroupJob TitleLocationMODIFY
$row[1] $row[2]$row[3]$row[4]$row[5]$row[6]$row[7]$row[8]MODIFY