Added 5 more fields to Contacts
Added code to help prevent API transfer duplicates lengthened the web_form_address in admin.php to 9999 characters git-svn-id: svn://192.168.202.10@1744 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> MOBILE </font></TD>";
|
||||
echo "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> OTHER 1 </font></TD>";
|
||||
echo "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> OTHER 2 </font></TD>";
|
||||
echo "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> BU NAME </font></TD>";
|
||||
echo "</TR>";
|
||||
|
||||
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 "<tr $bgcolor>";
|
||||
echo "<td><font size=1>$u</td>";
|
||||
echo "<td align=right><font size=2>$ALLfirst[$i] </td>\n";
|
||||
echo "<td align=right><font size=2>$ALLlast[$i] </td>\n";
|
||||
echo "<td align=right><font size=2> <a href=\"#\" onclick=\"PresetSelect_submit('$ALLfirst[$i] $ALLlast[$i]','$ALLoffice_num[$i]','','N','Y');return false;\">$ALLoffice_num[$i]</a> </td>\n";
|
||||
echo "<td align=right><font size=2> <a href=\"#\" onclick=\"PresetSelect_submit('$ALLfirst[$i] $ALLlast[$i]','$ALLcell_num[$i]','','N','Y');return false;\">$ALLcell_num[$i]</a> </td>\n";
|
||||
echo "<td align=right><font size=2> <a href=\"#\" onclick=\"PresetSelect_submit('$ALLfirst[$i] $ALLlast[$i]','$ALLother_num1[$i]','','N','Y');return false;\">$ALLother_num1[$i]</a> </td>\n";
|
||||
echo "<td align=right><font size=2> <a href=\"#\" onclick=\"PresetSelect_submit('$ALLfirst[$i] $ALLlast[$i]','$ALLother_num2[$i]','','N','Y');return false;\">$ALLother_num2[$i]</a> </td>\n";
|
||||
echo "<td><font size=1>$u </td>";
|
||||
echo "<td align=left> <font size=3>$ALLfirst[$i] </td>\n";
|
||||
echo "<td align=left> <font size=3>$ALLlast[$i] </td>\n";
|
||||
echo "<td align=left> <font size=3> <a href=\"#\" onclick=\"PresetSelect_submit('$ALLfirst[$i] $ALLlast[$i]','$ALLoffice_num[$i]','','N','Y');return false;\">$ALLoffice_num[$i]</a> </td>\n";
|
||||
echo "<td align=left> <font size=3> <a href=\"#\" onclick=\"PresetSelect_submit('$ALLfirst[$i] $ALLlast[$i]','$ALLcell_num[$i]','','N','Y');return false;\">$ALLcell_num[$i]</a> </td>\n";
|
||||
echo "<td align=left> <font size=3> <a href=\"#\" onclick=\"PresetSelect_submit('$ALLfirst[$i] $ALLlast[$i]','$ALLother_num1[$i]','','N','Y');return false;\">$ALLother_num1[$i]</a> </td>\n";
|
||||
echo "<td align=left> <font size=3> <a href=\"#\" onclick=\"PresetSelect_submit('$ALLfirst[$i] $ALLlast[$i]','$ALLother_num2[$i]','','N','Y');return false;\">$ALLother_num2[$i]</a> </td>\n";
|
||||
echo "<td align=left> <font size=3>$ALLbu_name[$i] </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr $bgcolor>";
|
||||
echo "<td colspan=8><font size=2> <B>Dept:</B> $ALLdepartment[$i] <B>Group:</B> $ALLgroup_name[$i] <B>Job:</B> $ALLjob_title[$i] <B>Location:</B> $ALLlocation[$i]</td>";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
|
||||
|
||||
@@ -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='<?php echo $status_display_LISTID ?>';
|
||||
var qm_extension='<?php echo $qm_extension ?>';
|
||||
var hide_dispo_list='<?php echo $hide_dispo_list ?>';
|
||||
var external_transferconf_count=0;
|
||||
var DiaLControl_auto_HTML = "<img src=\"./images/vdc_LB_pause_OFF.gif\" border=\"0\" alt=\" Pause \" /><a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADready');\"><img src=\"./images/vdc_LB_resume.gif\" border=\"0\" alt=\"Resume\" /></a>";
|
||||
var DiaLControl_auto_HTML_ready = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADpause');\"><img src=\"./images/vdc_LB_pause.gif\" border=\"0\" alt=\" Pause \" /></a><img src=\"./images/vdc_LB_resume_OFF.gif\" border=\"0\" alt=\"Resume\" />";
|
||||
var DiaLControl_auto_HTML_OFF = "<img src=\"./images/vdc_LB_pause_OFF.gif\" border=\"0\" alt=\" Pause \" /><img src=\"./images/vdc_LB_resume_OFF.gif\" border=\"0\" alt=\"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=<?php echo $HCwidth ?>";
|
||||
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=<?php echo $HCwidth ?>";
|
||||
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: <span id="AgentXferViewSelect"></span></center></font
|
||||
<td align="right"> Last Name: </td><td align="left"><input type="text" size="18" maxlength="20" name="contacts_last_name" id="contacts_last_name"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"> BU Name: </td><td align="left"><input type="text" size="18" maxlength="20" name="contacts_bu_name" id="contacts_bu_name"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"> Department: </td><td align="left"><input type="text" size="18" maxlength="20" name="contacts_department" id="contacts_department"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"> Group Name: </td><td align="left"><input type="text" size="18" maxlength="20" name="contacts_group_name" id="contacts_group_name"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"> Job Title: </td><td align="left"><input type="text" size="18" maxlength="20" name="contacts_job_title" id="contacts_job_title"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"> Location: </td><td align="left"><input type="text" size="18" maxlength="20" name="contacts_location" id="contacts_location"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" colspan="2"><br /> <a href="#" onclick="ContactSearchSubmit();return false;">SUBMIT SEARCH</a> <a href="#" onclick="ContactSearchReset();return false;">reset form</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -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 "<tr bgcolor=#B6D3FC><td align=right>Campaign Description: </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>Active: </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>Park Music-on-Hold: </td><td align=left><input type=text name=park_file_name id=park_file_name size=20 maxlength=100> <a href=\"javascript:launch_moh_chooser('park_file_name','moh',200);\">moh chooser</a> $NWB#vicidial_campaigns-park_ext$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Web Form: </td><td align=left><input type=text name=web_form_address size=70 maxlength=1055>$NWB#vicidial_campaigns-web_form_address$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Web Form: </td><td align=left><input type=text name=web_form_address size=70 maxlength=9999>$NWB#vicidial_campaigns-web_form_address$NWE</td></tr>\n";
|
||||
if ($SSoutbound_autodial_active > 0)
|
||||
{
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Allow 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";
|
||||
@@ -9189,7 +9203,7 @@ if ($ADD==1111)
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Group Name: </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>Group Color: </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>Active: </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>Web Form: </td><td align=left><input type=text name=web_form_address size=70 maxlength=1055 value=\"$web_form_address\">$NWB#vicidial_inbound_groups-web_form_address$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Web Form: </td><td align=left><input type=text name=web_form_address size=70 maxlength=9999 value=\"$web_form_address\">$NWB#vicidial_inbound_groups-web_form_address$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Voicemail: </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>Next Agent Call: </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>oldest_inbound_call_start</option><option>oldest_inbound_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>longest_wait_time</option><option>ring_all</option></select>$NWB#vicidial_inbound_groups-next_agent_call$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Fronter Display: </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";
|
||||
@@ -10321,6 +10335,11 @@ if ($ADD==191111111111)
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Cell Number: </td><td align=left><input type=text name=cell_num size=20 maxlength=20>$NWB#contact_information$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Other Number 1: </td><td align=left><input type=text name=other_num1 size=20 maxlength=20>$NWB#contact_information$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Other Number 2: </td><td align=left><input type=text name=other_num2 size=20 maxlength=20>$NWB#contact_information$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>BU Name: </td><td align=left><input type=text name=bu_name size=50 maxlength=100>$NWB#contact_information$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Department: </td><td align=left><input type=text name=department size=50 maxlength=100>$NWB#contact_information$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Group: </td><td align=left><input type=text name=group_name size=50 maxlength=100>$NWB#contact_information$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Job Title: </td><td align=left><input type=text name=job_title size=50 maxlength=100>$NWB#contact_information$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Location: </td><td align=left><input type=text name=location size=50 maxlength=100>$NWB#contact_information$NWE</td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=submit VALUE=SUBMIT></td></tr>\n";
|
||||
echo "</TABLE></center>\n";
|
||||
@@ -13090,7 +13109,7 @@ if ($ADD==291111111111)
|
||||
{
|
||||
echo "<br>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 "<br>CONTACT MODIFIED: $contact_id\n";
|
||||
@@ -20190,10 +20209,10 @@ if ($ADD==31)
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Campaign Call Date: </td><td align=left>$campaign_calldate $NWB#vicidial_campaigns-campaign_calldate$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#8EBCFD><td align=right>Active: </td><td align=left><select size=1 name=active><option>Y</option><option>N</option><option SELECTED>$campaign_active</option></select>$NWB#vicidial_campaigns-active$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Park Music-on-Hold: </td><td align=left><input type=text name=park_file_name id=park_file_name size=20 maxlength=100 value=\"$row[10]\"> <a href=\"javascript:launch_moh_chooser('park_file_name','moh',200);\">moh chooser</a> $NWB#vicidial_campaigns-park_ext$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Web Form: </td><td align=left><input type=text name=web_form_address size=70 maxlength=1055 value=\"$web_form_address\">$NWB#vicidial_campaigns-web_form_address$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Web Form: </td><td align=left><input type=text name=web_form_address size=70 maxlength=9999 value=\"$web_form_address\">$NWB#vicidial_campaigns-web_form_address$NWE</td></tr>\n";
|
||||
if ($SSenable_second_webform > 0)
|
||||
{
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Web Form Two: </td><td align=left><input type=text name=web_form_address_two size=70 maxlength=1055 value=\"$web_form_address_two\">$NWB#vicidial_campaigns-web_form_address$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Web Form Two: </td><td align=left><input type=text name=web_form_address_two size=70 maxlength=9999 value=\"$web_form_address_two\">$NWB#vicidial_campaigns-web_form_address$NWE</td></tr>\n";
|
||||
}
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Web Form Target: </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>Allow 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";
|
||||
@@ -23578,10 +23597,10 @@ if ($ADD==311)
|
||||
echo "$Dgroups_menu";
|
||||
echo "</select>$NWB#vicidial_lists-drop_inbound_group_override$NWE</td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#8EBCFD><td align=right>Web Form: </td><td align=left><input type=text name=web_form_address size=70 maxlength=1055 value=\"$web_form_address\">$NWB#vicidial_lists-web_form_address$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#8EBCFD><td align=right>Web Form: </td><td align=left><input type=text name=web_form_address size=70 maxlength=9999 value=\"$web_form_address\">$NWB#vicidial_lists-web_form_address$NWE</td></tr>\n";
|
||||
if ($SSenable_second_webform > 0)
|
||||
{
|
||||
echo "<tr bgcolor=#8EBCFD><td align=right>Web Form Two: </td><td align=left><input type=text name=web_form_address_two size=70 maxlength=1055 value=\"$web_form_address_two\">$NWB#vicidial_lists-web_form_address$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#8EBCFD><td align=right>Web Form Two: </td><td align=left><input type=text name=web_form_address_two size=70 maxlength=9999 value=\"$web_form_address_two\">$NWB#vicidial_lists-web_form_address$NWE</td></tr>\n";
|
||||
}
|
||||
|
||||
echo "<tr bgcolor=#8EBCFD><td align=right>Transfer-Conf Number 1 Override: </td><td align=left><input type=text name=xferconf_a_number size=20 maxlength=50 value=\"$xferconf_a_number\">$NWB#vicidial_lists-xferconf_a_dtmf$NWE</td></tr>\n";
|
||||
@@ -24357,10 +24376,10 @@ if ($ADD==3111)
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Group Color: </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>Active: </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>In-Group Calldate: </td><td align=left>$group_calldate$NWB#vicidial_inbound_groups-group_calldate$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Web Form: </td><td align=left><input type=text name=web_form_address size=70 maxlength=1055 value=\"$web_form_address\">$NWB#vicidial_inbound_groups-web_form_address$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Web Form: </td><td align=left><input type=text name=web_form_address size=70 maxlength=9999 value=\"$web_form_address\">$NWB#vicidial_inbound_groups-web_form_address$NWE</td></tr>\n";
|
||||
if ($SSenable_second_webform > 0)
|
||||
{
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Web Form Two: </td><td align=left><input type=text name=web_form_address_two size=70 maxlength=1055 value=\"$web_form_address_two\">$NWB#vicidial_inbound_groups-web_form_address$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Web Form Two: </td><td align=left><input type=text name=web_form_address_two size=70 maxlength=9999 value=\"$web_form_address_two\">$NWB#vicidial_inbound_groups-web_form_address$NWE</td></tr>\n";
|
||||
}
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Next Agent Call: </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>oldest_inbound_call_start</option><option>oldest_inbound_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>longest_wait_time</option><option>ring_all</option><option SELECTED>$next_agent_call</option></select>$NWB#vicidial_inbound_groups-next_agent_call$NWE</td></tr>\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 "<br>MODIFY CONTACT: $tts_id<form action=$PHP_SELF method=POST>\n";
|
||||
echo "<input type=hidden name=ADD value=491111111111>\n";
|
||||
@@ -28365,13 +28389,17 @@ if ($ADD==391111111111)
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Cell Number: </td><td align=left><input type=text name=cell_num value=\"$cell_num\" size=20 maxlength=20>$NWB#contact_information$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Other Number 1: </td><td align=left><input type=text name=other_num1 value=\"$other_num1\" size=20 maxlength=20>$NWB#contact_information$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Other Number 2: </td><td align=left><input type=text name=other_num2 value=\"$other_num2\" size=20 maxlength=20>$NWB#contact_information$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>BU Name: </td><td align=left><input type=text name=bu_name value=\"$bu_name\" size=50 maxlength=100>$NWB#contact_information$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Department: </td><td align=left><input type=text name=department value=\"$department\" size=50 maxlength=100>$NWB#contact_information$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Group: </td><td align=left><input type=text name=group_name value=\"$group_name\" size=50 maxlength=100>$NWB#contact_information$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Job Title: </td><td align=left><input type=text name=job_title value=\"$job_title\" size=50 maxlength=100>$NWB#contact_information$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>Location: </td><td align=left><input type=text name=location value=\"$location\" size=50 maxlength=100>$NWB#contact_information$NWE</td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><input type=submit name=submit VALUE=SUBMIT></td></tr>\n";
|
||||
echo "</TABLE></center>\n";
|
||||
|
||||
echo "<center><b>\n";
|
||||
|
||||
|
||||
if ($LOGast_delete_phones > 0)
|
||||
{
|
||||
echo "<br><br><a href=\"$PHP_SELF?ADD=591111111111&contact_id=$contact_id&first_name=$first_name&last_name=$last_name\">DELETE THIS CONTACT</a>\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 "<br>Contacts:\n";
|
||||
echo "<center><TABLE width=400 cellspacing=0 cellpadding=1>\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>NAME</B></td>";
|
||||
echo "<td><font size=1 color=white><B>Office Number</B></td>";
|
||||
echo "<td><font size=1 color=white><B>BU Name</B></td>";
|
||||
echo "<td><font size=1 color=white><B>Department</B></td>";
|
||||
echo "<td><font size=1 color=white><B>Group</B></td>";
|
||||
echo "<td><font size=1 color=white><B>Job Title</B></td>";
|
||||
echo "<td><font size=1 color=white><B>Location</B></td>";
|
||||
echo "<td align=center><font size=1 color=white><B>MODIFY</B></td></tr>\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 "<tr $bgcolor><td><font size=1><a href=\"$PHP_SELF?ADD=391111111111&contact_id=$row[0]\">$row[1] $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>$row[8]</td>";
|
||||
echo "<td align=center><font size=1><a href=\"$PHP_SELF?ADD=391111111111&contact_id=$row[0]\">MODIFY</a></td></tr>\n";
|
||||
$o++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user