Rewrote HELP display in web admin screens to function as database-driven
javascript popup. git-svn-id: svn://192.168.202.10@2979 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -308,6 +308,9 @@ OTHER CHANGES:
|
||||
83. Added SWITCH custom field type to put buttons on the agent FORM to allow for
|
||||
the form to be switched while on an active call.
|
||||
|
||||
84. Rewrote HELP display in web admin screens to function as database-driven
|
||||
javascript popup.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1766,7 +1766,8 @@ expired_lists_inactive ENUM('0','1') default '0',
|
||||
did_system_filter ENUM('0','1') default '0',
|
||||
anyone_callback_inactive_lists ENUM('default','NO_ADD_TO_HOPPER','KEEP_IN_HOPPER') default 'default',
|
||||
enable_gdpr_download_deletion ENUM('0','1','2') default '0',
|
||||
source_id_display ENUM('0','1') default '0'
|
||||
source_id_display ENUM('0','1') default '0',
|
||||
help_modification_date VARCHAR(20) default '0'
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
CREATE TABLE vicidial_campaigns_list_mix (
|
||||
@@ -3929,6 +3930,12 @@ index (lead_id),
|
||||
index (stage)
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
CREATE TABLE help_documentation (
|
||||
help_id varchar(100) PRIMARY KEY COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
|
||||
help_title text COLLATE utf8_unicode_ci,
|
||||
help_text text COLLATE utf8_unicode_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
|
||||
ALTER TABLE vicidial_email_list MODIFY message text character set utf8;
|
||||
|
||||
@@ -4216,4 +4223,4 @@ INSERT INTO vicidial_settings_containers(container_id,container_notes,container_
|
||||
|
||||
UPDATE system_settings set vdc_agent_api_active='1';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1544',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
UPDATE system_settings SET db_schema_version='1545',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
|
||||
@@ -627,3 +627,13 @@ UPDATE system_settings SET db_schema_version='1543',db_schema_update_date=NOW()
|
||||
ALTER TABLE vicidial_lists_fields MODIFY field_type ENUM('TEXT','AREA','SELECT','MULTI','RADIO','CHECKBOX','DATE','TIME','DISPLAY','SCRIPT','HIDDEN','READONLY','HIDEBLOB','SWITCH') default 'TEXT';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1544',db_schema_update_date=NOW() where db_schema_version < 1544;
|
||||
|
||||
ALTER TABLE system_settings ADD help_modification_date VARCHAR(20) default '0';
|
||||
|
||||
CREATE TABLE help_documentation (
|
||||
help_id varchar(100) PRIMARY KEY COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
|
||||
help_title text COLLATE utf8_unicode_ci,
|
||||
help_text text COLLATE utf8_unicode_ci
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1545',db_schema_update_date=NOW() where db_schema_version < 1545;
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
# 170823-2241 - Added HTML formatting and screen colors, fixed CSV output bug
|
||||
# 180206-2300 - Added option for displaying individual URL variables
|
||||
# 180301-2303 - Added DATA column to TEXT/HTML output, Added GET-AND-POST URL logging
|
||||
# 180502-2115 - Added new help display
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -539,8 +540,12 @@ if ($DB) {echo "$user_group_string|$user_group_ct|$user_groupQS|$i<BR>\n";}
|
||||
|
||||
$LINKbase = "$PHP_SELF?DB=$DB&api_date_D=$api_date_D&api_date_T=$api_date_T&api_date_end_D=$api_date_end_D&api_date_end_T=$api_date_end_T$resultQS$functionQS$agent_userQS$userQS&shift=$shift&DB=$DB&show_percentages=$show_percentages&show_urls=$show_urls&search_archived_data=$search_archived_data&SUBMIT=1";
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
|
||||
$HTML_head.="<HTML>\n";
|
||||
$HTML_head.="<HEAD>\n";
|
||||
@@ -557,6 +562,11 @@ $HTML_head.=" </STYLE>\n";
|
||||
$HTML_head.="<script language=\"JavaScript\" src=\"calendar_db.js\"></script>\n";
|
||||
$HTML_head.="<link rel=\"stylesheet\" href=\"calendar.css\">\n";
|
||||
$HTML_head.="<link rel=\"stylesheet\" href=\"horizontalbargraph.css\">\n";
|
||||
|
||||
$HTML_head.="<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
$HTML_head.="<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
$HTML_head.="<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
$HTML_text.="<script language=\"JavaScript\">\n";
|
||||
$HTML_text.="function openNewWindow(url)\n";
|
||||
$HTML_text.=" {\n";
|
||||
@@ -954,4 +964,4 @@ $stmt="UPDATE vicidial_report_log set run_time='$TOTALrun' where report_log_id='
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_CLOSER_service_level.php
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -40,6 +40,7 @@
|
||||
# 170602-1008 - Added 8am-5pm shift
|
||||
# 170829-0040 - Added screen color settings
|
||||
# 171012-2015 - Fixed javascript/apache errors with graphs
|
||||
# 180502-2115 - Added new help display
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -313,8 +314,11 @@ while ($i < $groups_to_print)
|
||||
$i++;
|
||||
}
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
#$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
#$NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$JS_text.="<script language=\"JavaScript\">\n";
|
||||
|
||||
@@ -341,6 +345,9 @@ require("chart_button.php");
|
||||
$HEADER.="<script src=\"chart/Chart.js\"></script>\n";
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"vicidial_chart_functions.js\"></script>\n";
|
||||
|
||||
$HEADER.="<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
$HEADER.="<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
$HEADER.="<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
$HEADER.="<TITLE>"._QXZ("$report_name")."</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_IVRfilter.php
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -20,6 +20,7 @@
|
||||
# 141230-1449 - Added code for on-the-fly language translations display
|
||||
# 160227-1931 - Uniform form format
|
||||
# 170409-1538 - Added IP List validation code
|
||||
# 180507-2315 - Added new help display
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -223,8 +224,12 @@ if (!isset($end_date)) {$end_date = $NOW_DATE;}
|
||||
$i=0;
|
||||
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$HTML_header.="<HTML>\n";
|
||||
$HTML_header.="<HEAD>\n";
|
||||
@@ -242,6 +247,9 @@ $HTML_header.="<TITLE>"._QXZ("VICIDIAL: VDL IVR Filter Stats")."</TITLE></HEAD><
|
||||
$HTML_header.="<script language=\"JavaScript\" src=\"calendar_db.js\"></script>\n";
|
||||
$HTML_header.="<link rel=\"stylesheet\" href=\"calendar.css\">\n";
|
||||
|
||||
$HTML_header.="<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
$HTML_header.="<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
$HTML_header.="<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
$short_header=1;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_IVRstats.php
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
# 81026-2026 - First build
|
||||
@@ -39,6 +39,7 @@
|
||||
# 170409-1555 - Added IP List validation code
|
||||
# 170829-0040 - Added screen color settings
|
||||
# 171012-2015 - Fixed javascript/apache errors with graphs
|
||||
# 180507-2315 - Added new help display
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -431,8 +432,11 @@ while ($i < $statcats_to_print)
|
||||
|
||||
require("screen_colors.php");
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$HEADER.="<HTML>\n";
|
||||
$HEADER.="<HEAD>\n";
|
||||
@@ -496,6 +500,10 @@ require("chart_button.php");
|
||||
$HEADER.="<script src='chart/Chart.js'></script>\n";
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"vicidial_chart_functions.js\"></script>\n";
|
||||
|
||||
$HEADER.="<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
$HEADER.="<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
$HEADER.="<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
$HEADER.="<TITLE>"._QXZ("$report_name")."</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_LISTS_campaign_stats.php
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# This is a list inventory report, not a calling report. This report will show
|
||||
# statistics for all of the lists in the selected campaigns
|
||||
@@ -30,6 +30,7 @@
|
||||
# 170409-1555 - Added IP List validation code
|
||||
# 170829-0040 - Added screen color settings
|
||||
# 171012-2015 - Fixed javascript/apache errors with graphs
|
||||
# 180507-2315 - Added new help display
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -436,8 +437,11 @@ else {$completed_statuses="''";}
|
||||
|
||||
require("screen_colors.php");
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$HEADER.="<HTML>\n";
|
||||
$HEADER.="<HEAD>\n";
|
||||
@@ -454,6 +458,10 @@ require("chart_button.php");
|
||||
$HEADER.="<script src='chart/Chart.js'></script>\n";
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"vicidial_chart_functions.js\"></script>\n";
|
||||
|
||||
$HEADER.="<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
$HEADER.="<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
$HEADER.="<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
$HEADER.="<TITLE>"._QXZ("$report_name")."</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_LISTS_pass_report.php
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# This is a list inventory report, not a calling report. This report will show
|
||||
# statistics for all of the lists in the selected campaigns
|
||||
@@ -20,6 +20,7 @@
|
||||
# 170409-1555 - Added IP List validation code
|
||||
# 170829-0040 - Added screen color settings
|
||||
# 171012-2015 - Fixed javascript/apache errors with graphs
|
||||
# 180507-2315 - Added new help display
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -434,8 +435,11 @@ if ($DB) {echo "<!-- SALE statuses: $sale_statuses -->";}
|
||||
|
||||
require("screen_colors.php");
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$HEADER.="<HTML>\n";
|
||||
$HEADER.="<HEAD>\n";
|
||||
@@ -452,6 +456,10 @@ require("chart_button.php");
|
||||
$HEADER.="<script src='chart/Chart.js'></script>\n";
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"vicidial_chart_functions.js\"></script>\n";
|
||||
|
||||
$HEADER.="<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
$HEADER.="<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
$HEADER.="<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
$HEADER.="<TITLE>"._QXZ("$report_name")."</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_LISTS_stats.php
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# This is a list inventory report, not a calling report. This report will show
|
||||
# statistics for all of the lists in the selected campaigns
|
||||
@@ -17,6 +17,7 @@
|
||||
# 160227-1026 - Fixed dbconnect bug, standardized form layout
|
||||
# 170409-1539 - Added IP List validation code
|
||||
# 170903-0951 - Added screen color settings
|
||||
# 180507-2315 - Added new help display
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -394,8 +395,11 @@ else {$completed_statuses="''";}
|
||||
|
||||
require("screen_colors.php");
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$HEADER.="<HTML>\n";
|
||||
$HEADER.="<HEAD>\n";
|
||||
@@ -409,6 +413,10 @@ $HEADER.="-->\n";
|
||||
$HEADER.=" </STYLE>\n";
|
||||
$HEADER.="<link rel=\"stylesheet\" href=\"horizontalbargraph.css\">\n";
|
||||
|
||||
$HEADER.="<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
$HEADER.="<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
$HEADER.="<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
$HEADER.="<TITLE>"._QXZ("$report_name")."</TITLE></HEAD><BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_OUTBOUNDsummary_interval.php
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -32,6 +32,7 @@
|
||||
# 170409-1555 - Added IP List validation code
|
||||
# 170829-0040 - Added screen color settings, fixed display bug
|
||||
# 171012-2015 - Fixed javascript/apache errors with graphs
|
||||
# 180507-2315 - Added new help display
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -524,8 +525,11 @@ $dnc_ct=count($dnc_statusesLIST);
|
||||
|
||||
require("screen_colors.php");
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$HEADER.="<HTML>\n";
|
||||
$HEADER.="<HEAD>\n";
|
||||
@@ -538,6 +542,10 @@ $HEADER.=" .purple {color: white; background-color: purple}\n";
|
||||
$HEADER.="-->\n";
|
||||
$HEADER.=" </STYLE>\n";
|
||||
|
||||
$HEADER.="<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
$HEADER.="<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"calendar_db.js\"></script>\n";
|
||||
$HEADER.="<link rel=\"stylesheet\" href=\"calendar.css\">\n";
|
||||
$HEADER.="<link rel=\"stylesheet\" href=\"horizontalbargraph.css\">\n";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_VDADstats.php
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
# 60619-1718 - Added variable filtering to eliminate SQL injection attack threat
|
||||
@@ -54,6 +54,7 @@
|
||||
# 170629-2080 - Added download option
|
||||
# 170829-0040 - Added screen color settings
|
||||
# 171012-2015 - Fixed javascript/apache errors with graphs
|
||||
# 180508-0115 - Added new help display
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -524,8 +525,11 @@ else
|
||||
|
||||
require("screen_colors.php");
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$HEADER.="<!DOCTYPE HTML>\n";
|
||||
$HEADER.="<HEAD>\n";
|
||||
@@ -538,6 +542,10 @@ $HEADER.=" .purple {color: white; background-color: purple}\n";
|
||||
$HEADER.="-->\n";
|
||||
$HEADER.=" </STYLE>\n";
|
||||
|
||||
$HEADER.="<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
$HEADER.="<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"calendar_db.js\"></script>\n";
|
||||
$HEADER.="<link rel=\"stylesheet\" href=\"calendar.css\">\n";
|
||||
$HEADER.="<link rel=\"stylesheet\" href=\"horizontalbargraph.css\">\n";
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
# 141229-2024 - Added code for on-the-fly language translations display
|
||||
# 170409-1532 - Added IP List validation code
|
||||
# 180324-0942 - Enforce User Group campaign permissions for templates based on list_id
|
||||
# 180503-2215 - Added new help display
|
||||
#
|
||||
|
||||
require("dbconnect_mysqli.php");
|
||||
@@ -60,7 +61,7 @@ $vicidial_listloader_fields = '|vendor_lead_code|source_id|phone_code|phone_numb
|
||||
$US='_';
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin,admin_web_directory,custom_fields_enabled,webroot_writable,enable_languages,language_method FROM system_settings;";
|
||||
$stmt = "SELECT use_non_latin,admin_web_directory,custom_fields_enabled,webroot_writable,enable_languages,language_method,admin_screen_colors FROM system_settings;";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$qm_conf_ct = mysqli_num_rows($rslt);
|
||||
@@ -73,6 +74,7 @@ if ($qm_conf_ct > 0)
|
||||
$webroot_writable = $row[3];
|
||||
$SSenable_languages = $row[4];
|
||||
$SSlanguage_method = $row[5];
|
||||
$SSadmin_screen_colors = $row[6];
|
||||
}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
@@ -229,14 +231,23 @@ $admDIR = "$HTTPprotocol$server_name$script_name";
|
||||
$admDIR = preg_replace('/AST_admin_template_maker\.php/i', '',$admDIR);
|
||||
$admDIR = "/vicidial/";
|
||||
$admSCR = 'admin.php';
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
require("screen_colors.php");
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title>ADMIN: Lead Loader Template Maker</title>
|
||||
</head>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="vicidial_stylesheet.php">
|
||||
<script language="JavaScript" src="help.js"></script>
|
||||
<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>
|
||||
|
||||
<script language="Javascript">
|
||||
var form_file_name='';
|
||||
|
||||
@@ -388,10 +399,10 @@ $short_header=1;
|
||||
require("admin_header.php");
|
||||
?>
|
||||
<BR/>
|
||||
<table border="2" bordercolor="#000099" cellpadding="10" width="800" align="left">
|
||||
<tr height="20"><th bgcolor="#000099"><font class="standard_bold" color="#FFFFFF"><?php echo _QXZ("Listloader Custom Template Maker"); ?><?php echo "$NWB#vicidial_template_maker$NWE"; ?></font></th></tr>
|
||||
<tr><td align="center" bgcolor="#CCFFFF">
|
||||
<table border=0 cellpadding=15 cellspacing=0 width="90%" align="center" bgcolor="#D9E6FE">
|
||||
<table border="2" bordercolor="#<?php echo $SSmenu_background; ?>" cellpadding="10" width="800" align="left">
|
||||
<tr height="20"><th bgcolor="#<?php echo $SSmenu_background; ?>"><font class="standard_bold" color="#FFFFFF"><?php echo _QXZ("Listloader Custom Template Maker"); ?><?php echo "$NWB#vicidial_template_maker$NWE"; ?></font></th></tr>
|
||||
<tr><td align="center" bgcolor="#<?php echo $SSstd_row4_background; ?>">
|
||||
<table border=0 cellpadding=15 cellspacing=0 width="90%" align="center" bgcolor="#<?php echo $SSframe_background; ?>">
|
||||
<?php
|
||||
if ($error_msg)
|
||||
{
|
||||
@@ -445,19 +456,19 @@ if (mysqli_num_rows($template_rslt)>0) {
|
||||
<tr>
|
||||
<th colspan="2" bgcolor="#330099"><font class="standard" color="white"><?php echo _QXZ("New template form"); ?></font></th>
|
||||
</tr>
|
||||
<tr bgcolor="#D9E6FE">
|
||||
<tr bgcolor="#<?php echo $SSframe_background; ?>">
|
||||
<td align="right" width='25%'><font class="standard"><?php echo _QXZ("Template ID"); ?>:</font></td>
|
||||
<td align="left" width='75%'><input type='text' name='template_id' size='15' maxlength='20'><?php echo "$NWB#template_maker-template_id$NWE"; ?></td>
|
||||
</tr>
|
||||
<tr bgcolor="#D9E6FE">
|
||||
<tr bgcolor="#<?php echo $SSframe_background; ?>">
|
||||
<td align="right" width='25%'><font class="standard"><?php echo _QXZ("Template Name"); ?>:</font></td>
|
||||
<td align="left" width='75%'><input type='text' name='template_name' size='15' maxlength='30'><?php echo "$NWB#template_maker-template_name$NWE"; ?></td>
|
||||
</tr>
|
||||
<tr bgcolor="#D9E6FE">
|
||||
<tr bgcolor="#<?php echo $SSframe_background; ?>">
|
||||
<td align="right" width='25%'><font class="standard"><?php echo _QXZ("Template Description"); ?>:</font></td>
|
||||
<td align="left" width='75%'><input type='text' name='template_description' size='50' maxlength='255'><?php echo "$NWB#template_maker-template_description$NWE"; ?></td>
|
||||
</tr>
|
||||
<tr bgcolor="#D9E6FE">
|
||||
<tr bgcolor="#<?php echo $SSframe_background; ?>">
|
||||
<td width='25%' align="right"><font class="standard"><?php echo _QXZ("List ID template will load into"); ?>:</font></td>
|
||||
<td width='75%'>
|
||||
<select id='template_list_id' name='template_list_id' onChange="DisplayTemplateFields(this.value)">
|
||||
@@ -478,7 +489,7 @@ if (mysqli_num_rows($template_rslt)>0) {
|
||||
</select></font><?php echo "$NWB#template_maker-list_id$NWE"; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="#D9E6FE">
|
||||
<tr bgcolor="#<?php echo $SSframe_background; ?>">
|
||||
<td width='25%' align="right"><font class="standard"><?php echo _QXZ("Statuses to dedupe against (optional)"); ?>:</font></td>
|
||||
<td width='75%'>
|
||||
<span id='statuses_display'>
|
||||
@@ -501,16 +512,16 @@ if (mysqli_num_rows($template_rslt)>0) {
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="#D9E6FE">
|
||||
<tr bgcolor="#<?php echo $SSframe_background; ?>">
|
||||
<th colspan='2'><input type='submit' name='submit_template' onClick="return checkForm(this.form)" value='SUBMIT TEMPLATE'></th>
|
||||
</tr>
|
||||
<tr bgcolor="#D9E6FE"><td align="center" colspan=2>
|
||||
<tr bgcolor="#<?php echo $SSframe_background; ?>"><td align="center" colspan=2>
|
||||
<table border=0 cellpadding=3 cellspacing=1 width="100%" align="center">
|
||||
<tr>
|
||||
<th colspan="2" bgcolor="#330099"><font class="standard" color="white"><?php echo _QXZ("Assign columns to file fields"); ?><BR/><font size='-2'>(<?php echo _QXZ("selecting a different list will reset columns"); ?>)</font></font><?php echo "$NWB#template_maker-assign_columns$NWE"; ?></th>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td border="1" align="center" bgcolor="#D9E6FE" width="50%"><font class="standard"><?php echo _QXZ("Standard Field"); ?></font></td>
|
||||
<td border="1" align="center" bgcolor="#<?php echo $SSframe_background; ?>" width="50%"><font class="standard"><?php echo _QXZ("Standard Field"); ?></font></td>
|
||||
<td border="0" align="center" bgcolor="#FED9D9" width="50%"><font class="standard"><?php echo _QXZ("Custom Field"); ?></font></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_inbound_forecasting.php
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com>, Joe Johnson <freewermadmin@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com>, Joe Johnson <freewermadmin@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -9,6 +9,7 @@
|
||||
# 170504-2245 - Minor bug fixes
|
||||
# 170829-0040 - Added screen color settings
|
||||
# 171012-2015 - Fixed javascript/apache errors with graphs
|
||||
# 180507-2315 - Added new help display
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -481,8 +482,11 @@ while ($i < $times_to_print)
|
||||
|
||||
require("screen_colors.php");
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
|
||||
$HEADER.="<HTML>\n";
|
||||
@@ -505,6 +509,11 @@ $HEADER.=" }\n";
|
||||
$HEADER.=".records_list_y:hover{background-color: #E6E6E6;}\n";
|
||||
$HEADER.="-->\n";
|
||||
$HEADER.=" </STYLE>\n";
|
||||
|
||||
$HEADER.="<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
$HEADER.="<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"calendar_db.js\"></script>\n";
|
||||
$HEADER.="<link rel=\"stylesheet\" href=\"calendar.css\">\n";
|
||||
$HEADER.="<link rel=\"stylesheet\" href=\"horizontalbargraph.css\">\n";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_performance_comparison_report.php
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com>, Joe Johnson <freewermadmin@gmail.com LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com>, Joe Johnson <freewermadmin@gmail.com LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -18,6 +18,7 @@
|
||||
# 170409-1542 - Added IP List validation code
|
||||
# 170829-0040 - Added screen color settings
|
||||
# 171012-2015 - Fixed javascript/apache errors with graphs
|
||||
# 180507-2315 - Added new help display
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -447,8 +448,11 @@ $LINKbase = "$PHP_SELF?query_date=$query_date&end_date=$end_date$groupQS$user_gr
|
||||
|
||||
require("screen_colors.php");
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$HTML_head.="<HTML>\n";
|
||||
$HTML_head.="<HEAD>\n";
|
||||
@@ -461,6 +465,9 @@ $HTML_head.=" .purple {color: white; background-color: purple}\n";
|
||||
$HTML_head.="-->\n";
|
||||
$HTML_head.=" </STYLE>\n";
|
||||
|
||||
$HTML_head.="<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
$HTML_head.="<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
$HTML_head.="<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
$HTML_head.="<script language=\"JavaScript\" src=\"calendar_db.js\"></script>\n";
|
||||
$HTML_head.="<link rel=\"stylesheet\" href=\"calendar.css\">\n";
|
||||
|
||||
@@ -3,13 +3,14 @@
|
||||
#
|
||||
# This report is for viewing the a report of which users accessed which recordings
|
||||
#
|
||||
# Copyright (C) 2017 Joe Johnson, Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Joe Johnson, Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
# 160115-2303 - First build
|
||||
# 170409-1538 - Added IP List validation code
|
||||
# 170824-2130 - Added HTML formatting and screen colors
|
||||
# 180507-2315 - Added new help display
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -427,8 +428,11 @@ if ($DB) {echo "$user_group_string|$user_group_ct|$user_groupQS|$i<BR>\n";}
|
||||
|
||||
$LINKbase = "$PHP_SELF?query_date=$query_date&end_date=$end_date$groupQS$user_groupQS&shift=$shift&DB=$DB&show_percentages=$show_percentages";
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$HTML_head.="<HTML>\n";
|
||||
$HTML_head.="<HEAD>\n";
|
||||
@@ -441,6 +445,9 @@ $HTML_head.=" .purple {color: white; background-color: purple}\n";
|
||||
$HTML_head.="-->\n";
|
||||
$HTML_head.=" </STYLE>\n";
|
||||
|
||||
$HTML_head.="<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
$HTML_head.="<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
$HTML_head.="<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
$HTML_head.="<script language=\"JavaScript\" src=\"calendar_db.js\"></script>\n";
|
||||
$HTML_head.="<link rel=\"stylesheet\" href=\"calendar.css\">\n";
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
<?php
|
||||
# AST_rt_monitor_log_report.php
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com>, Joe Johnson <freewermadmin@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com>, Joe Johnson <freewermadmin@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
# 170513-0040 - First build
|
||||
# 170822-2231 - Modified to use screen colors
|
||||
# 180507-2315 - Added new help display
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -444,8 +445,11 @@ else
|
||||
$manager_SQL = "and manager_user IN($manager_SQL)";
|
||||
}
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$rerun_rpt_URL="$PHP_SELF?query_date=$query_date&end_date=$end_date&report_display_type=$report_display_type$campaignQS$userQS$managerQS&SUBMIT=$SUBMIT";
|
||||
|
||||
@@ -508,6 +512,11 @@ $HEADER.=" }\n";
|
||||
$HEADER.=".records_list_y:hover{background-color: #E6E6E6;}\n";
|
||||
$HEADER.="-->\n";
|
||||
$HEADER.=" </STYLE>\n";
|
||||
|
||||
$HEADER.="<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
$HEADER.="<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"calendar_db.js\"></script>\n";
|
||||
$HEADER.="<link rel=\"stylesheet\" href=\"calendar.css\">\n";
|
||||
$HEADER.="<link rel=\"stylesheet\" href=\"horizontalbargraph.css\">\n";
|
||||
@@ -523,7 +532,7 @@ $MAIN.="<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_r
|
||||
$MAIN.="<b>"._QXZ("$report_name")."</b> $NWB#rt_monitor_log_report$NWE\n";
|
||||
|
||||
#$MAIN.="<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n";
|
||||
$MAIN.="<TABLE CELLPADDING=3 CELLSPACING=0><TR BGCOLOR=\"#e3e3ff\"><TD VALIGN=TOP> <b>"._QXZ("Dates").":</b><BR>";
|
||||
$MAIN.="<TABLE CELLPADDING=3 CELLSPACING=0><TR BGCOLOR=\"#".$SSframe_background."\"><TD VALIGN=TOP> <b>"._QXZ("Dates").":</b><BR>";
|
||||
$MAIN.="<INPUT TYPE=hidden NAME=DB VALUE=\"$DB\">\n";
|
||||
|
||||
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
<?php
|
||||
# AST_rt_whiteboard_rpt.php
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com>, Joe Johnson <freewermadmin@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com>, Joe Johnson <freewermadmin@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# Real-time report that allows users to create a customized, graphical display of various data sets
|
||||
#
|
||||
# 171027-2352 - First build
|
||||
# 180129-1745 - Translation corrections, uses vicidial_state_report_functions.php instead of vicidial_state_report_functions.js
|
||||
# 180507-2315 - Added new help display
|
||||
# 180512-0000 - Fixed slave server capability
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -79,6 +81,15 @@ if ($qm_conf_ct > 0)
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
|
||||
if ( (strlen($slave_db_server)>5) and (preg_match("/$report_name/",$reports_use_slave_db)) )
|
||||
{
|
||||
mysqli_close($link);
|
||||
$use_slave_server=1;
|
||||
$db_source = 'S';
|
||||
require("dbconnect_mysqli.php");
|
||||
$MAIN.="<!-- Using slave server $slave_db_server $db_source -->\n";
|
||||
}
|
||||
|
||||
$stmt = "SELECT local_gmt FROM servers where active='Y' limit 1;";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($DB) {$MAIN.="$stmt\n";}
|
||||
@@ -548,14 +559,21 @@ if ($admin_screen_colors != 'default')
|
||||
|
||||
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$rerun_rpt_URL="$PHP_SELF?query_date=$query_date&end_date=$end_date&report_display_type=$report_display_type$campaignQS$userQS$managerQS&SUBMIT=$SUBMIT";
|
||||
|
||||
$HEADER.="<HTML>\n";
|
||||
$HEADER.="<HEAD>\n";
|
||||
$HEADER.="<link rel=\"stylesheet\" href=\"vicidial_stylesheet.php\" type=\"text/css\">";
|
||||
|
||||
$HEADER.="<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
$HEADER.="<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"calendar_db.js\"></script>\n";
|
||||
$HEADER.="<link rel=\"stylesheet\" href=\"calendar.css\">\n";
|
||||
$HEADER.="<link rel=\"stylesheet\" href=\"horizontalbargraph.css\">\n";
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#
|
||||
# 180211-1111 - First build
|
||||
# 180214-2230 - Added column to download for VLC or source_id
|
||||
# 180507-2315 - Added new help display
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -313,8 +314,11 @@ $end_date="$end_date_D $end_date_T";
|
||||
|
||||
require("screen_colors.php");
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$HTML_head.="<HTML>\n";
|
||||
$HTML_head.="<HEAD>\n";
|
||||
@@ -327,6 +331,10 @@ $HTML_head.=" .purple {color: white; background-color: purple}\n";
|
||||
$HTML_head.="-->\n";
|
||||
$HTML_head.=" </STYLE>\n";
|
||||
|
||||
$HTML_head.="<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
$HTML_head.="<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
$HTML_head.="<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
$HTML_head.="<script language=\"JavaScript\" src=\"calendar_db.js\"></script>\n";
|
||||
$HTML_head.="<link rel=\"stylesheet\" href=\"calendar.css\">\n";
|
||||
$HTML_head.="<link rel=\"stylesheet\" href=\"horizontalbargraph.css\">\n";
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
# QC statuses of QCFAIL, QCCANC and sales are defined by the Sale=Y status
|
||||
# flags being set on those statuses.
|
||||
#
|
||||
# Copyright (C) 2017 Joe Johnson, Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Joe Johnson, Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -31,6 +31,7 @@
|
||||
# 170409-1542 - Added IP List validation code
|
||||
# 170829-0040 - Added screen color settings
|
||||
# 171012-2015 - Fixed javascript/apache errors with graphs
|
||||
# 180507-2315 - Added new help display
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -462,8 +463,11 @@ if ($DB) {$HTML_text.="$user_group_string|$user_group_ct|$user_groupQS|$i<BR>";}
|
||||
|
||||
require("screen_colors.php");
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
###########################
|
||||
|
||||
@@ -481,6 +485,10 @@ $HTML_head.=" </STYLE>\n";
|
||||
$query_date="$query_date_D $query_date_T";
|
||||
$end_date="$end_date_D $end_date_T";
|
||||
|
||||
$HTML_head.="<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
$HTML_head.="<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
$HTML_head.="<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
$HTML_head.="<script language=\"JavaScript\" src=\"calendar_db.js\"></script>\n";
|
||||
$HTML_head.="<link rel=\"stylesheet\" href=\"calendar.css\">\n";
|
||||
$HTML_head.="<link rel=\"stylesheet\" href=\"horizontalbargraph.css\">\n";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_user_group_hourly_detail.php
|
||||
#
|
||||
# Copyright (C) 2017 Joseph Johnson <freewermadmin@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Joseph Johnson <freewermadmin@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# Gives hourly count of distinct agents per user group, with totals.
|
||||
# For single days only
|
||||
@@ -11,6 +11,7 @@
|
||||
# 170409-1542 - Added IP List validation code
|
||||
# 170816-2026 - Added HTML formatting
|
||||
# 170829-0040 - Added screen color settings
|
||||
# 180507-2315 - Added new help display
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -371,8 +372,11 @@ $LINKbase = "$PHP_SELF?query_date=$query_date&end_date=$end_date&shift=$shift&DB
|
||||
|
||||
require("screen_colors.php");
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
if ($file_download < 1)
|
||||
{
|
||||
@@ -387,6 +391,10 @@ if ($file_download < 1)
|
||||
echo "-->\n";
|
||||
echo " </STYLE>\n";
|
||||
|
||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
echo "<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
echo "<div id='HelpDisplayDiv' class='help_info' style='display:none;z-index:99;'></div>";
|
||||
|
||||
echo "<script language=\"JavaScript\" src=\"calendar_db.js\"></script>\n";
|
||||
echo "<link rel=\"stylesheet\" href=\"calendar.css\">\n";
|
||||
echo "<link rel=\"stylesheet\" href=\"horizontalbargraph.css\">\n";
|
||||
@@ -404,7 +412,7 @@ if ($file_download < 1)
|
||||
|
||||
echo "</span>\n";
|
||||
echo "<span style=\"position:absolute;left:3px;top:30px;z-index:19;\" id=agent_status_stats>\n";
|
||||
echo "<b>"._QXZ("$report_name")."</b>\n";
|
||||
echo "<b>"._QXZ("$report_name")." $NWB#user_group_hourly_detail$NWE</b>\n";
|
||||
echo "<PRE><FONT SIZE=2>";
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# AST_user_group_hourly_detail.php
|
||||
#
|
||||
# Copyright (C) 2017 Liz Tejada <liz@softkyrios.com>
|
||||
# Copyright (C) 2018 Liz Tejada <liz@softkyrios.com>
|
||||
# Joseph Johnson <freewermadmin@gmail.com>
|
||||
# Matt Florell <vicidial@gmail.com>
|
||||
#
|
||||
@@ -16,6 +16,7 @@
|
||||
# 170816-2152 - Added HTML option
|
||||
# 170818-0749 - Added upgraded code, fixes and link to v1 of report
|
||||
# 170829-0040 - Added screen color settings
|
||||
# 180507-2315 - Added new help display
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -364,8 +365,11 @@ else
|
||||
|
||||
$LINKbase = "$PHP_SELF?query_date=$query_date&end_date=$end_date&shift=$shift&DB=$DB&user=$user$groupQS&search_archived_data=$search_archived_data&report_display_type=$report_display_type";
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
if ($file_download < 1)
|
||||
{
|
||||
@@ -380,6 +384,10 @@ if ($file_download < 1)
|
||||
echo "-->\n";
|
||||
echo " </STYLE>\n";
|
||||
|
||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
echo "<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
echo "<div id='HelpDisplayDiv' class='help_info' style='display:none;z-index:99;'></div>";
|
||||
|
||||
echo "<script language=\"JavaScript\" src=\"calendar_db.js\"></script>\n";
|
||||
echo "<link rel=\"stylesheet\" href=\"calendar.css\">\n";
|
||||
echo "<link rel=\"stylesheet\" href=\"horizontalbargraph.css\">\n";
|
||||
@@ -394,7 +402,7 @@ if ($file_download < 1)
|
||||
|
||||
echo "</span>\n";
|
||||
echo "<span style=\"position:absolute;left:3px;top:30px;z-index:19;\" id=agent_status_stats>\n";
|
||||
echo "<b>"._QXZ("$report_name")."</b>\n";
|
||||
echo "<b>"._QXZ("$report_name")." $NWB#user_group_hourly_detail$NWE</b>\n";
|
||||
echo "<PRE><FONT SIZE=2>";
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# This User-Group based report runs some very intensive SQL queries, so it is
|
||||
# not recommended to run this on long time periods.
|
||||
#
|
||||
# Copyright (C) 2017 Joe Johnson, Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Joe Johnson, Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -22,6 +22,7 @@
|
||||
# 160121-2218 - Added report title header, default report format, cleaned up formatting
|
||||
# 170409-1538 - Added IP List validation code
|
||||
# 170829-0040 - Added screen color settings
|
||||
# 180507-2315 - Added new help display
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -312,8 +313,11 @@ if ($DB) {$HTML_text.="$user_group_string|$user_group_ct|$user_groupQS|$i<BR>";}
|
||||
|
||||
require("screen_colors.php");
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
###########################
|
||||
|
||||
@@ -327,6 +331,11 @@ $HTML_head.=" .blue {color: white; background-color: blue}\n";
|
||||
$HTML_head.=" .purple {color: white; background-color: purple}\n";
|
||||
$HTML_head.="-->\n";
|
||||
$HTML_head.=" </STYLE>\n";
|
||||
|
||||
$HTML_head.="<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
$HTML_head.="<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
$HTML_head.="<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
$HTML_text.="<script language=\"JavaScript\">\n";
|
||||
$HTML_text.="function openNewWindow(url)\n";
|
||||
$HTML_text.=" {\n";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# Erlang_report.php
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com>, Joe Johnson <freewermadmin@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com>, Joe Johnson <freewermadmin@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -10,6 +10,7 @@
|
||||
# 170829-0040 - Added screen color settings
|
||||
# 171012-2015 - Fixed javascript/apache errors with graphs
|
||||
# 171205-2304 - Modified to include disposition seconds in C report
|
||||
# 180508-2215 - Added new help display
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -480,8 +481,11 @@ while ($i < $times_to_print)
|
||||
|
||||
require("screen_colors.php");
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
|
||||
$HEADER.="<HTML>\n";
|
||||
@@ -504,6 +508,9 @@ $HEADER.=" }\n";
|
||||
$HEADER.=".records_list_y:hover{background-color: #E6E6E6;}\n";
|
||||
$HEADER.="-->\n";
|
||||
$HEADER.=" </STYLE>\n";
|
||||
$HEADER.="<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
$HEADER.="<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"calendar_db.js\"></script>\n";
|
||||
$HEADER.="<link rel=\"stylesheet\" href=\"calendar.css\">\n";
|
||||
$HEADER.="<link rel=\"stylesheet\" href=\"horizontalbargraph.css\">\n";
|
||||
|
||||
+21
-13
@@ -4345,12 +4345,13 @@ else
|
||||
# 180411-1647 - Added DISPO_FILTER as Settings Container type
|
||||
# 180424-1521 - Added in-group populate_lead_source, populate_lead_vendor settings
|
||||
# 180430-1834 - Added in-group park_file_name override
|
||||
# 180512-0852 - New AJAX-based help interface
|
||||
#
|
||||
|
||||
# make sure you have added a user to the vicidial_users MySQL table with at least user_level 9 to access this page the first time
|
||||
|
||||
$admin_version = '2.14-671a';
|
||||
$build = '180430-1834';
|
||||
$admin_version = '2.14-672a';
|
||||
$build = '180512-0852';
|
||||
|
||||
$STARTtime = date("U");
|
||||
$SQLdate = date("Y-m-d H:i:s");
|
||||
@@ -4854,8 +4855,14 @@ echo "<META NAME=\"ROBOTS\" CONTENT=\"NONE\">\n";
|
||||
echo "<META NAME=\"COPYRIGHT\" CONTENT=\"© 2018 ViciDial Group\">\n";
|
||||
echo "<META NAME=\"AUTHOR\" CONTENT=\"ViciDial Group\">\n";
|
||||
echo "<script language=\"JavaScript\" src=\"calendar_db.js\"></script>\n";
|
||||
echo "<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
|
||||
|
||||
echo "<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
echo "<link rel=\"stylesheet\" href=\"calendar.css\">\n";
|
||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.css\" />";
|
||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
|
||||
if ($SSnocache_admin=='1')
|
||||
{
|
||||
echo "<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">\n";
|
||||
@@ -5941,8 +5948,8 @@ if ( (strlen($ADD)==11) or (strlen($ADD)>12) or ( ($ADD > 1299) and ($ADD < 9999
|
||||
|
||||
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
|
||||
|
||||
@@ -7402,7 +7409,7 @@ if ($ADD==1811)
|
||||
echo "</select>$NWB#inbound_groups-user_group$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Web Form").": </td><td align=left><input type=text name=web_form_address size=70 maxlength=9999 value=\"$web_form_address\">$NWB#inbound_groups-web_form_address$NWE</td></tr>\n";
|
||||
# echo "<tr bgcolor=#$SSstd_row4_background><td align=right>Voicemail: </td><td align=left><input type=text name=voicemail_ext size=10 maxlength=10 value=\"$voicemail_ext\">$NWB#inbound_groups-voicemail_ext$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Next Agent Email").": </td><td align=left><select size=1 name=next_agent_call><option value='random'>"._QXZ("random")."</option><option value='oldest_call_start'>"._QXZ("oldest_call_start")."</option><option value='oldest_call_finish'>"._QXZ("oldest_call_finish")."</option><option value='oldest_inbound_call_start'>"._QXZ("oldest_inbound_call_start")."</option><option value='oldest_inbound_call_finish'>"._QXZ("oldest_inbound_call_finish")."</option><option value='overall_user_level'>"._QXZ("overall_user_level")."</option><option value='inbound_group_rank'>"._QXZ("inbound_group_rank")."</option><option value='campaign_rank'>"._QXZ("campaign_rank")."</option><option value='ingroup_grade_random'>"._QXZ("ingroup_grade_random")."</option><option value='campaign_grade_random'>"._QXZ("campaign_grade_random")."</option><option value='fewest_calls'>"._QXZ("fewest_calls")."</option><option value='fewest_calls_campaign'>"._QXZ("fewest_calls_campaign")."</option><option value='longest_wait_time'>"._QXZ("longest_wait_time")."</option><option value='ring_all'>"._QXZ("ring_all")."</option></select>$NWB#inbound_groups-next_agent_call$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Next Agent Email").": </td><td align=left><select size=1 name=next_agent_call><option value='random'>"._QXZ("random")."</option><option value='oldest_call_start'>"._QXZ("oldest_call_start")."</option><option value='oldest_call_finish'>"._QXZ("oldest_call_finish")."</option><option value='oldest_inbound_call_start'>"._QXZ("oldest_inbound_call_start")."</option><option value='oldest_inbound_call_finish'>"._QXZ("oldest_inbound_call_finish")."</option><option value='overall_user_level'>"._QXZ("overall_user_level")."</option><option value='inbound_group_rank'>"._QXZ("inbound_group_rank")."</option><option value='campaign_rank'>"._QXZ("campaign_rank")."</option><option value='ingroup_grade_random'>"._QXZ("ingroup_grade_random")."</option><option value='campaign_grade_random'>"._QXZ("campaign_grade_random")."</option><option value='fewest_calls'>"._QXZ("fewest_calls")."</option><option value='fewest_calls_campaign'>"._QXZ("fewest_calls_campaign")."</option><option value='longest_wait_time'>"._QXZ("longest_wait_time")."</option><option value='ring_all'>"._QXZ("ring_all")."</option></select>$NWB#inbound_groups-next_agent_email$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Fronter Display").": </td><td align=left><select size=1 name=fronter_display><option value='Y' SELECTED>"._QXZ("Y")."</option><option value='N'>"._QXZ("N")."</option></select>$NWB#inbound_groups-fronter_display$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Script").": </td><td align=left><select size=1 name=script_id>\n";
|
||||
echo "$scripts_list";
|
||||
@@ -7468,14 +7475,14 @@ if ($ADD==18111)
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Group Name").": </td><td align=left><input type=text name=group_name size=30 maxlength=30>$NWB#inbound_groups-group_name$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Group Color").": </td><td align=left id=\"group_color_td\"><input type=text name=group_color size=7 maxlength=7>$NWB#inbound_groups-group_color$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Active").": </td><td align=left><select size=1 name=active><option value='Y' SELECTED>"._QXZ("Y")."</option><option value='N'>"._QXZ("N")."</option></select>$NWB#inbound_groups-active$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Default List ID").": </td><td align=left><input type=text name=hold_time_option_callback_list_id size=19 maxlength=19 value=0>";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Default List ID").": </td><td align=left><input type=text name=hold_time_option_callback_list_id size=19 maxlength=19 value=0>$NWB#inbound_groups-default_list_id$NWE</td></tr>";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Admin User Group").": </td><td align=left><select size=1 name=user_group>\n";
|
||||
echo "$UUgroups_list";
|
||||
echo "<option SELECTED value=\"---ALL---\">"._QXZ("All Admin User Groups")."</option>\n";
|
||||
echo "</select>$NWB#inbound_groups-user_group$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Web Form").": </td><td align=left><input type=text name=web_form_address size=70 maxlength=9999 value=\"$web_form_address\">$NWB#inbound_groups-web_form_address$NWE</td></tr>\n";
|
||||
# echo "<tr bgcolor=#$SSstd_row4_background><td align=right>Voicemail: </td><td align=left><input type=text name=voicemail_ext size=10 maxlength=10 value=\"$voicemail_ext\">$NWB#inbound_groups-voicemail_ext$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Next Agent Chat").": </td><td align=left><select size=1 name=next_agent_call><option value='random'>"._QXZ("random")."</option><option value='oldest_call_start'>"._QXZ("oldest_call_start")."</option><option value='oldest_call_finish'>"._QXZ("oldest_call_finish")."</option><option value='oldest_inbound_call_start'>"._QXZ("oldest_inbound_call_start")."</option><option value='oldest_inbound_call_finish'>"._QXZ("oldest_inbound_call_finish")."</option><option value='overall_user_level'>"._QXZ("overall_user_level")."</option><option value='inbound_group_rank'>"._QXZ("inbound_group_rank")."</option><option value='campaign_rank'>"._QXZ("campaign_rank")."</option><option value='ingroup_grade_random'>"._QXZ("ingroup_grade_random")."</option><option value='campaign_grade_random'>"._QXZ("campaign_grade_random")."</option><option value='fewest_calls'>"._QXZ("fewest_calls")."</option><option value='fewest_calls_campaign'>"._QXZ("fewest_calls_campaign")."</option><option value='longest_wait_time'>"._QXZ("longest_wait_time")."</option><option value='ring_all'>"._QXZ("ring_all")."</option></select>$NWB#inbound_groups-next_agent_call$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Next Agent Chat").": </td><td align=left><select size=1 name=next_agent_call><option value='random'>"._QXZ("random")."</option><option value='oldest_call_start'>"._QXZ("oldest_call_start")."</option><option value='oldest_call_finish'>"._QXZ("oldest_call_finish")."</option><option value='oldest_inbound_call_start'>"._QXZ("oldest_inbound_call_start")."</option><option value='oldest_inbound_call_finish'>"._QXZ("oldest_inbound_call_finish")."</option><option value='overall_user_level'>"._QXZ("overall_user_level")."</option><option value='inbound_group_rank'>"._QXZ("inbound_group_rank")."</option><option value='campaign_rank'>"._QXZ("campaign_rank")."</option><option value='ingroup_grade_random'>"._QXZ("ingroup_grade_random")."</option><option value='campaign_grade_random'>"._QXZ("campaign_grade_random")."</option><option value='fewest_calls'>"._QXZ("fewest_calls")."</option><option value='fewest_calls_campaign'>"._QXZ("fewest_calls_campaign")."</option><option value='longest_wait_time'>"._QXZ("longest_wait_time")."</option><option value='ring_all'>"._QXZ("ring_all")."</option></select>$NWB#inbound_groups-next_agent_chat$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Fronter Display").": </td><td align=left><select size=1 name=fronter_display><option value='Y' SELECTED>"._QXZ("Y")."</option><option value='N'>"._QXZ("N")."</option></select>$NWB#inbound_groups-fronter_display$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Script").": </td><td align=left><select size=1 name=script_id>\n";
|
||||
echo "$scripts_list";
|
||||
@@ -7972,7 +7979,7 @@ if ($ADD==12111)
|
||||
$n--;
|
||||
}
|
||||
echo "</select> $NWB#extension_groups-rank$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Campaigns Groups").": </td><td align=left><input type=text name=campaign_groups size=50 maxlength=255> ("._QXZ("pipe-delimited list").")$NWB#extension_groups-extension$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Campaigns Groups").": </td><td align=left><input type=text name=campaign_groups size=50 maxlength=255> ("._QXZ("pipe-delimited list").")$NWB#extension_groups-campaign_groups$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=center colspan=2><input type=submit name=SUBMIT value='"._QXZ("SUBMIT")."'></td></tr>\n";
|
||||
echo "</TABLE></center>\n";
|
||||
}
|
||||
@@ -29955,7 +29962,7 @@ if ($ADD==3911)
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Active").": </td><td align=left><select size=1 name=active><option value='Y'>"._QXZ("Y")."</option><option value='N'>"._QXZ("N")."</option><option SELECTED value='$active'>"._QXZ("$active")."</option></select>$NWB#inbound_groups-active$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("In-Group Chat Date").": </td><td align=left>$group_calldate$NWB#inbound_groups-group_chatdate$NWE</td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Default List ID").": </td><td align=left><input type=text name=hold_time_option_callback_list_id size=19 maxlength=19 value='$hold_time_option_callback_list_id'></td></tr>";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Default List ID").": </td><td align=left><input type=text name=hold_time_option_callback_list_id size=19 maxlength=19 value='$hold_time_option_callback_list_id'>$NWB#inbound_groups-default_list_id$NWE</td></tr>";
|
||||
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=center colspan=2>\n";
|
||||
$temp_chart_title = _QXZ("8 Day inbound call count for this in-group");
|
||||
@@ -31881,7 +31888,7 @@ if ($ADD==3711)
|
||||
echo "<input type=hidden name=ADD value=4711>\n";
|
||||
echo "<input type=hidden name=filter_phone_group_id value=\"$filter_phone_group_id\">\n";
|
||||
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Filter Phone Group ID").": </td><td align=left> <B>$filter_phone_group_id</B> $NWB#filter_phone_groups-user_start$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Filter Phone Group ID").": </td><td align=left> <B>$filter_phone_group_id</B> $NWB#filter_phone_groups-filter_phone_group_id$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Filter Phone Group Name").": </td><td align=left><input type=text name=filter_phone_group_name size=40 maxlength=40 value=\"$filter_phone_group_name\"> $NWB#filter_phone_groups-filter_phone_group_name$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Filter Phone Group Description").": </td><td align=left><input type=text name=filter_phone_group_description size=60 maxlength=100 value=\"$filter_phone_group_description\"> $NWB#filter_phone_groups-filter_phone_group_description$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Admin User Group").": </td><td align=left><select size=1 name=user_group>\n";
|
||||
@@ -31967,7 +31974,7 @@ if ($ADD==32111)
|
||||
{echo "<option SELECTED value=\"$rank\">$rank</option>\n";}
|
||||
|
||||
echo "</select> $NWB#extension_groups-rank$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Campaigns Groups").": </td><td align=left><input type=text name=campaign_groups size=50 maxlength=255 value=\"$campaign_groups\"> ("._QXZ("pipe-delimited list").")$NWB#extension_groups-extension$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Campaigns Groups").": </td><td align=left><input type=text name=campaign_groups size=50 maxlength=255 value=\"$campaign_groups\"> ("._QXZ("pipe-delimited list").")$NWB#extension_groups-campaign_groups$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Call Count Today").": </td><td align=left>$call_count_today</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Last Call Time").": </td><td align=left>$last_call_time</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Last Call ID").": </td><td align=left>$last_callerid</td></tr>\n";
|
||||
@@ -33757,7 +33764,7 @@ if ($ADD==31111111111)
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Agent Default Campaign").": </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=#$SSstd_row4_background><td align=right>"._QXZ("Park Exten").": </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=#$SSstd_row4_background><td align=right>"._QXZ("Conf Exten").": </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=#$SSstd_row4_background><td align=right>"._QXZ("Agent Park Exten").": </td><td align=left><input type=text name=VICIDIAL_park_on_extension size=10 maxlength=10 value=\"$row[25]\">$NWB#phones-park_on_extension$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Agent Park Exten").": </td><td align=left><input type=text name=VICIDIAL_park_on_extension size=10 maxlength=10 value=\"$row[25]\">$NWB#phones-agent_park_on_extension$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Agent Park File").": </td><td align=left><input type=text name=VICIDIAL_park_on_filename size=10 maxlength=10 value=\"$row[26]\">$NWB#phones-park_on_filename$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Monitor Prefix").": </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=#$SSstd_row4_background><td align=right>"._QXZ("Recording Exten").": </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";
|
||||
@@ -41299,6 +41306,7 @@ if ($ADD==999994)
|
||||
{
|
||||
echo "<UL>\n";
|
||||
# echo "<LI><a href=\"welcome_languages.php\"><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>"._QXZ("Welcome Languages Page")."</a></FONT>\n";
|
||||
echo "<LI><a href=\"help.php\"><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>"._QXZ("Old Help Page")."</a></FONT>\n";
|
||||
echo "<LI><a href=\"$PHP_SELF?ADD=999991\"><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>"._QXZ("Servers Versions")."</a></FONT>\n";
|
||||
echo "<BR><BR>\n";
|
||||
echo "<LI><a href=\"campaign_debug.php\"><FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>"._QXZ("Campaign Debug Page")."</a></FONT>\n";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# admin_NANPA_updater.php
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# This script is designed to launch NANPA filter batch proccesses through the
|
||||
# triggering process
|
||||
@@ -15,6 +15,7 @@
|
||||
# 160108-2300 - Changed some mysqli_query to mysql_to_mysqli for consistency
|
||||
# 170409-1536 - Added IP List validation code
|
||||
# 170822-2230 - Added screen color settings
|
||||
# 180503-2015 - Added new help display
|
||||
#
|
||||
|
||||
$version = '2.14-7';
|
||||
@@ -389,12 +390,18 @@ function openNewWindow(url)
|
||||
|
||||
</script>
|
||||
<?php
|
||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
echo "<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
echo "<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
echo "</head>\n";
|
||||
$ADMIN=$PHP_SELF;
|
||||
$short_header=1;
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
echo "\n<BODY BGCOLOR=WHITE marginheight=0 marginwidth=0 leftmargin=0 topmargin=0 onLoad='RefreshNANPA(\"$iframe_url\"); StartRefresh()'>\n";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# admin_amm_multi.php
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# this screen will control the *amd* settings needed when the Campaign setting
|
||||
# "AM Message Wildcards" is enabled. This screen allows for multiple messages
|
||||
@@ -12,6 +12,7 @@
|
||||
# 151109-1653 - First Build
|
||||
# 160801-1201 - Added colors features
|
||||
# 170409-1544 - Added IP List validation code
|
||||
# 180502-2115 - Added new help display
|
||||
#
|
||||
|
||||
$admin_version = '2.14-3';
|
||||
@@ -98,8 +99,11 @@ $date = date("r");
|
||||
$ip = getenv("REMOTE_ADDR");
|
||||
$browser = getenv("HTTP_USER_AGENT");
|
||||
$user = $PHP_AUTH_USER;
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$stmt="SELECT selected_language,qc_enabled from vicidial_users where user='$PHP_AUTH_USER';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
@@ -228,6 +232,11 @@ if ($names_to_print > 0)
|
||||
<head>
|
||||
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="vicidial_stylesheet.php">
|
||||
<script language="JavaScript" src="help.js"></script>
|
||||
<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>
|
||||
|
||||
<title><?php echo _QXZ("ADMINISTRATION: AM Message Multi Entry") . " " . $campaign_id . " - " . $camp_name; ?>
|
||||
<?php
|
||||
|
||||
|
||||
@@ -24,21 +24,25 @@
|
||||
# 180301-1538 - Fixed issue with STATE CID Groups insertion
|
||||
# 180323-1643 - Updated column labels in user copy function to add ones that had been created since script was made.
|
||||
# 180330-1427 - Added 'active' column to CID Group import
|
||||
# 180502-2115 - Added new help display
|
||||
#
|
||||
|
||||
require("dbconnect_mysqli.php");
|
||||
require("functions.php");
|
||||
|
||||
$version = '2.14-18';
|
||||
$build = '180330-1427';
|
||||
$version = '2.14-19';
|
||||
$build = '180502-2115';
|
||||
|
||||
$PHP_AUTH_USER=$_SERVER['PHP_AUTH_USER'];
|
||||
$PHP_AUTH_PW=$_SERVER['PHP_AUTH_PW'];
|
||||
$PHP_SELF=$_SERVER['PHP_SELF'];
|
||||
$ip = getenv("REMOTE_ADDR");
|
||||
$SQLdate = date("Y-m-d H:i:s");
|
||||
$NWB = " <a href=\"javascript:openNewWindow('$PHP_SELF?form_to_run=help";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('$PHP_SELF?form_to_run=help";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
$form_to_run = "NONE";
|
||||
$DB=0; # Debug flag
|
||||
$INSERTmax_limit = 5000; # Maximum number of items allowed to insert
|
||||
@@ -271,7 +275,11 @@ if ($user_level < 9)
|
||||
echo "You do not have permission to be here.";
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
echo "<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
echo "<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
################################################################################
|
||||
##### Help
|
||||
if ($form_to_run == "help")
|
||||
|
||||
@@ -23,10 +23,11 @@
|
||||
# 160508-0139 - Added screen colors feature
|
||||
# 170409-1540 - Added IP List validation code
|
||||
# 180219-1233 - Fixed translation issue #1069
|
||||
# 180502-2215 - Added new help display
|
||||
#
|
||||
|
||||
$admin_version = '2.14-17';
|
||||
$build = '180219-1233';
|
||||
$admin_version = '2.14-18';
|
||||
$build = '180502-2215';
|
||||
|
||||
$sh="emails";
|
||||
|
||||
@@ -334,6 +335,11 @@ $Mhead_color = $SSstd_row5_background;
|
||||
<html>
|
||||
<head>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="vicidial_stylesheet.php">
|
||||
<script language="JavaScript" src="help.js"></script>
|
||||
<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>
|
||||
|
||||
<title><?php echo _QXZ("ADMINISTRATION: Dialer Email Account fields"); ?>
|
||||
<?php
|
||||
|
||||
@@ -368,8 +374,11 @@ if ($SSemail_enabled < 1)
|
||||
}
|
||||
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
|
||||
if ($DB > 0)
|
||||
@@ -529,7 +538,7 @@ if ($eact == "COPY")
|
||||
echo "$accounts_list";
|
||||
echo "</select></td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("New Account ID").": </td><td align=left><input type=text name=new_account_id value='$new_account_id' size=10 maxlength=20></td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("New Account Name").": </td><td align=left><input type=text name=email_account_name size=40 maxlength=100>$NWB#email_accounts-carrier_name$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("New Account Name").": </td><td align=left><input type=text name=email_account_name size=40 maxlength=100>$NWB#email_accounts-email_account_name$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=center colspan=2><input type=submit name=SUBMIT value='"._QXZ("COPY")."'></td></tr>\n";
|
||||
echo "</TABLE></center>\n";
|
||||
echo "</TD></TR></TABLE>\n";
|
||||
|
||||
@@ -74,6 +74,7 @@
|
||||
# 170623-2113 - Changed password strength parameters
|
||||
# 170821-2010 - Fix for issue #1036
|
||||
# 180213-1657 - Added CID Groups
|
||||
# 180512-1105 - Changed to dynamic DB help
|
||||
#
|
||||
|
||||
$stmt="SELECT admin_home_url,enable_tts_integration,callcard_enabled,custom_fields_enabled,allow_emails,level_8_disable_add,allow_chats,enable_languages,admin_row_click,admin_screen_colors,user_new_lead_limit,user_territories_active,qc_features_active,agent_soundboards,enable_drop_lists,allow_ip_lists from system_settings;";
|
||||
@@ -992,7 +993,7 @@ if ( ($ADD==3511) or ($ADD==2511) or ($ADD==2611) or ($ADD==4511) or ($ADD==5511
|
||||
new_content = new_content + '' + ingroup_list + "\n" + selected_value + '<option>DYNAMIC_INGROUP_VAR</option></select>';
|
||||
new_content = new_content + " <?php echo _QXZ("Handle Method"); ?>: <select size=1 name=IGhandle_method_" + option + ' id=IGhandle_method_' + option + '>';
|
||||
new_content = new_content + '' + IGhandle_method_list + "\n" + '<option SELECTED>' + IGhandle_method + '</select>';
|
||||
new_content = new_content + ' <a href="javascript:openNewWindow(\'admin.php?ADD=99999#vicidial_call_menu-ingroup_settings\')"><IMG SRC="help.gif" WIDTH=20 HEIGHT=20 BORDER=0 ALT="HELP" ALIGN=TOP></a>';
|
||||
new_content = new_content + ' <IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, \'call_menu-ingroup_settings\')" WIDTH=20 HEIGHT=20 BORDER=0 ALT="HELP" ALIGN=TOP>';
|
||||
new_content = new_content + "<BR><?php echo _QXZ("Search Method"); ?>: <select size=1 name=IGsearch_method_" + option + ' id=IGsearch_method_' + option + '>';
|
||||
new_content = new_content + '' + IGsearch_method_list + "\n" + '<option SELECTED>' + IGsearch_method + '</select>';
|
||||
new_content = new_content + " <?php echo _QXZ("List ID"); ?>: <input type=text size=5 maxlength=14 name=IGlist_id_" + option + ' id=IGlist_id_' + option + ' value="' + IGlist_id + '">';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# admin_languages.php
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# this screen manages the optional language tables in ViciDial
|
||||
#
|
||||
@@ -17,6 +17,7 @@
|
||||
# 160508-0210 - Added screen colors feature
|
||||
# 161120-0919 - Added CHAT option
|
||||
# 170409-1547 - Added IP List validation code
|
||||
# 180502-2215 - Added new help display
|
||||
#
|
||||
|
||||
$admin_version = '2.14-11';
|
||||
@@ -439,6 +440,10 @@ if ( ($SSadmin_modify_refresh > 1) and (preg_match("/^3/",$ADD)) )
|
||||
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="vicidial_stylesheet.php">
|
||||
<script language="JavaScript" src="help.js"></script>
|
||||
<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>
|
||||
|
||||
<title><?php echo _QXZ("ADMINISTRATION: Languages"); ?>
|
||||
<?php
|
||||
|
||||
@@ -714,8 +719,11 @@ if ($ADD==163000000000) {$hh='admin'; $sh='languages'; echo _QXZ("LANGUAGE LIST"
|
||||
if ($ADD==763000000000) {$hh='admin'; $sh='languages'; echo _QXZ("ADMIN LOG");}
|
||||
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('$PHP_SELF?action=HELP";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('$PHP_SELF?action=HELP";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
|
||||
|
||||
@@ -914,7 +922,7 @@ if ($ADD==163311111111)
|
||||
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Import Action").": </td><td align=left><select size=1 name=stage><option SELECTED value='ADD'>"._QXZ("Only Add Missing Phrases")."</option><option value='UPDATE'>"._QXZ("Only Update Existing Phrases")."</option><option value='ADD_UPDATE'>"._QXZ("Add and Update Phrases")."</option></select>$NWB#languages-import_action$NWE</td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Import Data").": </td><td align=left><TEXTAREA name=\"import_data\" id=\"import_data\" ROWS=40 COLS=120></TEXTAREA>$NWB#languages-import_data$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=right>"._QXZ("Import Data").": <br>$NWB#languages-import_data$NWE</td><td align=left><TEXTAREA name=\"import_data\" id=\"import_data\" ROWS=40 COLS=120></TEXTAREA></td></tr>\n";
|
||||
|
||||
echo "<tr bgcolor=#$SSstd_row4_background><td align=center colspan=2><input type=submit name=submit VALUE='"._QXZ("SUBMIT")."'></td></tr>\n";
|
||||
echo "</TABLE></center>\n";
|
||||
|
||||
@@ -73,10 +73,11 @@
|
||||
# 171001-0908 - Fixed issue #1041
|
||||
# 171204-1517 - Fix for custom field duplicate issue, removed link to old lead loader
|
||||
# 180324-0943 - Enforce User Group campaign permissions for templates based on list_id
|
||||
# 180502-2215 - Added new help display
|
||||
#
|
||||
|
||||
$version = '2.14-71';
|
||||
$build = '180324-0943';
|
||||
$version = '2.14-72';
|
||||
$build = '180502-2215';
|
||||
|
||||
require("dbconnect_mysqli.php");
|
||||
require("functions.php");
|
||||
@@ -363,9 +364,11 @@ $admDIR = "$HTTPprotocol$server_name$script_name";
|
||||
$admDIR = preg_replace('/admin_listloader_fourth_gen\.php/i', '',$admDIR);
|
||||
$admDIR = "/vicidial/";
|
||||
$admSCR = 'admin.php';
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
$secX = date("U");
|
||||
$hour = date("H");
|
||||
$min = date("i");
|
||||
@@ -461,6 +464,9 @@ header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
echo "<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
echo "<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo "<!-- VERSION: $version BUILD: $build -->\n";
|
||||
echo "<!-- SEED TIME $secX: $year-$mon-$mday $hour:$min:$sec LOCAL GMT OFFSET NOW: $LOCAL_GMT_OFF DST: $isdst -->\n";
|
||||
|
||||
@@ -394,11 +394,11 @@ if ($SScustom_fields_enabled < 1)
|
||||
}
|
||||
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
#$NWB = "<IMG SRC=\"help.gif\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
#$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
|
||||
if ($DB > 0)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# admin_phones_bulk_insert.php
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# this screen will insert phones into your multi-server system with aliases
|
||||
#
|
||||
@@ -18,6 +18,7 @@
|
||||
# 141007-1145 - Finalized adding QXZ translation to all admin files
|
||||
# 141229-2101 - Added code for on-the-fly language translations display
|
||||
# 170409-1532 - Added IP List validation code
|
||||
# 180503-2015 - Added new help display
|
||||
#
|
||||
|
||||
$admin_version = '2.14-12';
|
||||
@@ -69,7 +70,7 @@ if (strlen($DB) < 1)
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin,webroot_writable,enable_languages,language_method FROM system_settings;";
|
||||
$stmt = "SELECT use_non_latin,webroot_writable,enable_languages,language_method,admin_screen_colors FROM system_settings;";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$ss_conf_ct = mysqli_num_rows($rslt);
|
||||
@@ -80,6 +81,7 @@ if ($ss_conf_ct > 0)
|
||||
$webroot_writable = $row[1];
|
||||
$SSenable_languages = $row[2];
|
||||
$SSlanguage_method = $row[3];
|
||||
$SSadmin_screen_colors = $row[4];
|
||||
}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
@@ -183,6 +185,10 @@ $LOGuser_level = $row[3];
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="vicidial_stylesheet.php">
|
||||
<script language="JavaScript" src="help.js"></script>
|
||||
<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>
|
||||
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
<title><?php echo _QXZ("ADMINISTRATION: Phones Bulk Insert"); ?>
|
||||
<?php
|
||||
@@ -310,9 +316,44 @@ if ($DB > 0)
|
||||
echo "$DB,$action,$servers,$phones,$conf_secret,$pass,$alias_option,$protocol,$logal_gmt,$alias_suffix\n<BR>";
|
||||
}
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('$PHP_SELF?action=HELP";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('$PHP_SELF?action=HELP";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$SSmenu_background='015B91';
|
||||
$SSframe_background='D9E6FE';
|
||||
$SSstd_row1_background='9BB9FB';
|
||||
$SSstd_row2_background='B9CBFD';
|
||||
$SSstd_row3_background='8EBCFD';
|
||||
$SSstd_row4_background='B6D3FC';
|
||||
$SSstd_row5_background='A3C3D6';
|
||||
$SSalt_row1_background='BDFFBD';
|
||||
$SSalt_row2_background='99FF99';
|
||||
$SSalt_row3_background='CCFFCC';
|
||||
|
||||
if ($SSadmin_screen_colors != 'default')
|
||||
{
|
||||
$stmt = "SELECT menu_background,frame_background,std_row1_background,std_row2_background,std_row3_background,std_row4_background,std_row5_background,alt_row1_background,alt_row2_background,alt_row3_background FROM vicidial_screen_colors where colors_id='$SSadmin_screen_colors';";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$colors_ct = mysqli_num_rows($rslt);
|
||||
if ($colors_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$SSmenu_background = $row[0];
|
||||
$SSframe_background = $row[1];
|
||||
$SSstd_row1_background = $row[2];
|
||||
$SSstd_row2_background = $row[3];
|
||||
$SSstd_row3_background = $row[4];
|
||||
$SSstd_row4_background = $row[5];
|
||||
$SSstd_row5_background = $row[6];
|
||||
$SSalt_row1_background = $row[7];
|
||||
$SSalt_row2_background = $row[8];
|
||||
$SSalt_row3_background = $row[9];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -326,24 +367,24 @@ if ($action == "BLANK")
|
||||
echo "<input type=hidden name=DB value=\"$DB\">\n";
|
||||
echo "<input type=hidden name=action value=ADD_PHONES_SUBMIT>\n";
|
||||
echo "<center><TABLE width=$section_width cellspacing=3>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>"._QXZ("Servers").": <BR><BR> ("._QXZ("one server_ip per line only").")<BR></td><td align=left><TEXTAREA name=servers ROWS=10 COLS=20></TEXTAREA> $NWB#servers$NWE </td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>"._QXZ("Phones").": <BR><BR> ("._QXZ("one extension per line only").")<BR></td><td align=left><TEXTAREA name=phones ROWS=20 COLS=20></TEXTAREA> $NWB#phones$NWE </td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>"._QXZ("Registration Password").": </td><td align=left><input type=text name=conf_secret size=20 maxlength=20> $NWB#registration_password$NWE </td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>"._QXZ("Login Password").": </td><td align=left><input type=text name=pass size=20 maxlength=20> $NWB#login_password$NWE </td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>"._QXZ("Create Alias Entries").": </td><td align=left><select size=1 name=alias_option>\n";
|
||||
echo "<tr bgcolor=#".$SSstd_row4_background."><td align=right>"._QXZ("Servers").": <BR><BR> ("._QXZ("one server_ip per line only").")<BR></td><td align=left><TEXTAREA name=servers ROWS=10 COLS=20></TEXTAREA> $NWB#admin_phones_bulk_insert-servers$NWE </td></tr>\n";
|
||||
echo "<tr bgcolor=#".$SSstd_row4_background."><td align=right>"._QXZ("Phones").": <BR><BR> ("._QXZ("one extension per line only").")<BR></td><td align=left><TEXTAREA name=phones ROWS=20 COLS=20></TEXTAREA> $NWB#admin_phones_bulk_insert-phones$NWE </td></tr>\n";
|
||||
echo "<tr bgcolor=#".$SSstd_row4_background."><td align=right>"._QXZ("Registration Password").": </td><td align=left><input type=text name=conf_secret size=20 maxlength=20> $NWB#admin_phones_bulk_insert-registration_password$NWE </td></tr>\n";
|
||||
echo "<tr bgcolor=#".$SSstd_row4_background."><td align=right>"._QXZ("Login Password").": </td><td align=left><input type=text name=pass size=20 maxlength=20> $NWB#admin_phones_bulk_insert-login_password$NWE </td></tr>\n";
|
||||
echo "<tr bgcolor=#".$SSstd_row4_background."><td align=right>"._QXZ("Create Alias Entries").": </td><td align=left><select size=1 name=alias_option>\n";
|
||||
echo "<option selected>"._QXZ("YES")."</option>";
|
||||
echo "<option>"._QXZ("NO")."</option>";
|
||||
echo "</select> $NWB#create_alias$NWE </td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>"._QXZ("Alias Suffix").": </td><td align=left><input type=text name=alias_suffix size=2 maxlength=4> $NWB#alias_suffix$NWE </td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>"._QXZ("Client Protocol").": </td><td align=left><select size=1 name=protocol><option>SIP</option><option>Zap</option><option>IAX2</option><option>EXTERNAL</option></select> $NWB#protocol$NWE </td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>"._QXZ("Local GMT").": </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> ("._QXZ("Do NOT Adjust for DST").") $NWB#gmt$NWE </td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>"._QXZ("Phone Context").": </td><td align=left><input type=text name=phone_context size=20 maxlength=20> $NWB#phone_context$NWE </td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>"._QXZ("Set As Webphone").": </td><td align=left><select size=1 name=is_webphone><option>Y</option><option selected>N</option><option>Y_API_LAUNCH</option></select>$NWB#is_webphone$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>"._QXZ("Webphone Dialpad").": </td><td align=left><select size=1 name=webphone_dialpad><option selected>Y</option><option>N</option><option>TOGGLE</option><option>TOGGLE_OFF</option></select>$NWB#webphone_dialpad$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>"._QXZ("Webphone Auto-Answer").": </td><td align=left><select size=1 name=webphone_auto_answer><option selected>Y</option><option>N</option></select>$NWB#webphone_auto_answer$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=right>"._QXZ("Use External Server IP").": </td><td align=left><select size=1 name=use_external_server_ip><option>Y</option><option selected>N</option></select>$NWB#use_external_server_ip$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2><INPUT TYPE=SUBMIT NAME=SUBMIT VALUE='"._QXZ("SUBMIT")."'></td></tr>\n";
|
||||
echo "<tr bgcolor=#B6D3FC><td align=center colspan=2>"._QXZ("NOTE: Submitting this form will NOT trigger a conf file rebuild")."</td></tr>\n";
|
||||
echo "</select> $NWB#admin_phones_bulk_insert-create_alias$NWE </td></tr>\n";
|
||||
echo "<tr bgcolor=#".$SSstd_row4_background."><td align=right>"._QXZ("Alias Suffix").": </td><td align=left><input type=text name=alias_suffix size=2 maxlength=4> $NWB#admin_phones_bulk_insert-alias_suffix$NWE </td></tr>\n";
|
||||
echo "<tr bgcolor=#".$SSstd_row4_background."><td align=right>"._QXZ("Client Protocol").": </td><td align=left><select size=1 name=protocol><option>SIP</option><option>Zap</option><option>IAX2</option><option>EXTERNAL</option></select> $NWB#admin_phones_bulk_insert-protocol$NWE </td></tr>\n";
|
||||
echo "<tr bgcolor=#".$SSstd_row4_background."><td align=right>"._QXZ("Local GMT").": </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> ("._QXZ("Do NOT Adjust for DST").") $NWB#admin_phones_bulk_insert-gmt$NWE </td></tr>\n";
|
||||
echo "<tr bgcolor=#".$SSstd_row4_background."><td align=right>"._QXZ("Phone Context").": </td><td align=left><input type=text name=phone_context size=20 maxlength=20> $NWB#admin_phones_bulk_insert-phone_context$NWE </td></tr>\n";
|
||||
echo "<tr bgcolor=#".$SSstd_row4_background."><td align=right>"._QXZ("Set As Webphone").": </td><td align=left><select size=1 name=is_webphone><option>Y</option><option selected>N</option><option>Y_API_LAUNCH</option></select>$NWB#admin_phones_bulk_insert-is_webphone$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#".$SSstd_row4_background."><td align=right>"._QXZ("Webphone Dialpad").": </td><td align=left><select size=1 name=webphone_dialpad><option selected>Y</option><option>N</option><option>TOGGLE</option><option>TOGGLE_OFF</option></select>$NWB#admin_phones_bulk_insert-webphone_dialpad$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#".$SSstd_row4_background."><td align=right>"._QXZ("Webphone Auto-Answer").": </td><td align=left><select size=1 name=webphone_auto_answer><option selected>Y</option><option>N</option></select>$NWB#admin_phones_bulk_insert-webphone_auto_answer$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#".$SSstd_row4_background."><td align=right>"._QXZ("Use External Server IP").": </td><td align=left><select size=1 name=use_external_server_ip><option>Y</option><option selected>N</option></select>$NWB#admin_phones_bulk_insert-use_external_server_ip$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#".$SSstd_row4_background."><td align=center colspan=2><INPUT TYPE=SUBMIT NAME=SUBMIT VALUE='"._QXZ("SUBMIT")."'></td></tr>\n";
|
||||
echo "<tr bgcolor=#".$SSstd_row4_background."><td align=center colspan=2>"._QXZ("NOTE: Submitting this form will NOT trigger a conf file rebuild")."</td></tr>\n";
|
||||
echo "</TABLE></center>\n";
|
||||
echo "</TD></TR></TABLE>\n";
|
||||
}
|
||||
|
||||
@@ -18,10 +18,11 @@
|
||||
# 161103-1605 - Updated code for new admin links
|
||||
# 161111-1646 - Added HIDENUMBERS display option, Font size, button type and layout options
|
||||
# 170409-1549 - Added IP List validation code
|
||||
# 180503-2215 - Added new help display
|
||||
#
|
||||
|
||||
$admin_version = '2.14-12';
|
||||
$build = '170409-1549';
|
||||
$admin_version = '2.14-13';
|
||||
$build = '180503-2215';
|
||||
|
||||
require("dbconnect_mysqli.php");
|
||||
require("functions.php");
|
||||
@@ -237,6 +238,10 @@ $LOGadmin_viewable_call_times = $row[3];
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="vicidial_stylesheet.php">
|
||||
<script language="JavaScript" src="help.js"></script>
|
||||
<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>
|
||||
|
||||
<?php
|
||||
if ($action != "HELP")
|
||||
{
|
||||
@@ -449,8 +454,11 @@ if ( (!preg_match("/soundboard/i",$SSactive_modules)) and ($SSagent_soundboards
|
||||
}
|
||||
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('$PHP_SELF?soundboard_id=$soundboard_id&action=HELP";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('$PHP_SELF?soundboard_id=$soundboard_id&action=HELP";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# admin_url_multi.php
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# this screen will control the *url* settings needed when the Campaign or
|
||||
# In-Group or List URL setting is set to "ALT". This screen allows for multiple
|
||||
@@ -15,10 +15,11 @@
|
||||
# 160508-0815 - Added colors features
|
||||
# 160801-0657 - Added lists qualifier fields
|
||||
# 170409-1545 - Added IP List validation code
|
||||
# 180503-2215 - Added new help display
|
||||
#
|
||||
|
||||
$admin_version = '2.14-5';
|
||||
$build = '170409-1545';
|
||||
$admin_version = '2.14-6';
|
||||
$build = '180503-2215';
|
||||
|
||||
require("dbconnect_mysqli.php");
|
||||
require("functions.php");
|
||||
@@ -103,8 +104,11 @@ $date = date("r");
|
||||
$ip = getenv("REMOTE_ADDR");
|
||||
$browser = getenv("HTTP_USER_AGENT");
|
||||
$user = $PHP_AUTH_USER;
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$stmt="SELECT selected_language,qc_enabled from vicidial_users where user='$PHP_AUTH_USER';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
@@ -269,6 +273,10 @@ if ($names_to_print > 0)
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="vicidial_stylesheet.php">
|
||||
<script language="JavaScript" src="help.js"></script>
|
||||
<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>
|
||||
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
<title><?php echo _QXZ("ADMINISTRATION: URL Multi Entry") . " " . $campaign_id . " - " . $camp_name; ?>
|
||||
<?php
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# admin_user_list_new.php
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# this screen will control the optional user list new limit override settings
|
||||
#
|
||||
@@ -10,6 +10,7 @@
|
||||
# 161012-1327 - First Build
|
||||
# 161031-1500 - Added overall user option
|
||||
# 170409-1546 - Added IP List validation code
|
||||
# 180503-2215 - Added new help display
|
||||
#
|
||||
|
||||
$admin_version = '2.14-3';
|
||||
@@ -83,8 +84,11 @@ $ip = getenv("REMOTE_ADDR");
|
||||
$browser = getenv("HTTP_USER_AGENT");
|
||||
#$user = $PHP_AUTH_USER;
|
||||
$US='_';
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$stmt="SELECT selected_language,qc_enabled from vicidial_users where user='$PHP_AUTH_USER';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
@@ -234,6 +238,10 @@ if ($names_to_print > 0)
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="vicidial_stylesheet.php">
|
||||
<script language="JavaScript" src="help.js"></script>
|
||||
<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>
|
||||
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
<title><?php echo _QXZ("ADMINISTRATION: User List New Lead Limits"); ?>
|
||||
<?php
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# audio_store.php
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# Central Audio Storage script
|
||||
#
|
||||
@@ -28,6 +28,7 @@
|
||||
# 170409-1555 - Added IP List validation code
|
||||
# 170602-1042 - Prevent non-wav/gsm files from being uploaded
|
||||
# 170630-1440 - Require modify_audiostore user permissions to access this page
|
||||
# 180508-0115 - Added new help display
|
||||
#
|
||||
|
||||
$version = '2.14-22';
|
||||
@@ -444,6 +445,11 @@ if ($action == "COPYFILE")
|
||||
<head>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
<!-- VERSION: <?php echo $version ?> BUILD: <?php echo $build ?> -->
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="vicidial_stylesheet.php">
|
||||
<script language="JavaScript" src="help.js"></script>
|
||||
<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>
|
||||
|
||||
<title><?php echo _QXZ("ADMINISTRATION"); ?>: <?php echo _QXZ("Audio Store"); ?>
|
||||
<?php
|
||||
|
||||
@@ -497,8 +503,11 @@ if (preg_match("/443/i",$server_port)) {$HTTPprotocol = 'https://';}
|
||||
$admDIR = "$HTTPprotocol$server_name:$server_port$script_name";
|
||||
$admDIR = preg_replace('/audio_store\.php/i', '',$admDIR);
|
||||
$admSCR = 'admin.php';
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$secX = date("U");
|
||||
$pulldate0 = "$year-$mon-$mday $hour:$min:$sec";
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
<?php
|
||||
# callbacks_bulk_move.php
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
# 150218-0923 - First build based on callbacks_bulk_change.php
|
||||
# 151025-1041 - Fixed issue with check-all
|
||||
# 161105-0056 - Added options to purge uncalled callbacks, and also to revert callbacks to their most recent non-callback-dispo based on the callback entry time and the log tables.
|
||||
# 170409-1548 - Added IP List validation code
|
||||
# 180508-0115 - Added new help display
|
||||
#
|
||||
|
||||
require("dbconnect_mysqli.php");
|
||||
@@ -342,8 +343,11 @@ else
|
||||
$group_SQL = "and ($group_SQL or selected_campaigns='|')";
|
||||
}
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
### PRELOAD ###
|
||||
$preload_campaigns=array();
|
||||
@@ -469,6 +473,11 @@ if ($user_group)
|
||||
<html>
|
||||
<head>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="vicidial_stylesheet.php">
|
||||
<script language="JavaScript" src="help.js"></script>
|
||||
<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>
|
||||
|
||||
<title><?php echo _QXZ("ADMINISTRATION: Callbacks Bulk Move"); ?>
|
||||
<?php
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# callcard_admin.php
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# This callcard script is to administer the callcard accounts in ViciDial
|
||||
# it is separate from the standard admin.php script. callcard_enabled in
|
||||
@@ -21,6 +21,7 @@
|
||||
# 160330-1551 - navigation changes and fixes
|
||||
# 170409-1539 - Added IP List validation code
|
||||
# 170829-0040 - Added screen color settings
|
||||
# 180508-0115 - Added new help display
|
||||
#
|
||||
|
||||
$version = '2.14-12';
|
||||
@@ -280,6 +281,11 @@ header ("Pragma: no-cache"); // HTTP/1.0
|
||||
<html>
|
||||
<head>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="vicidial_stylesheet.php">
|
||||
<script language="JavaScript" src="help.js"></script>
|
||||
<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>
|
||||
|
||||
<!-- VERSION: <?php echo $version ?> BUILD: <?php echo $build ?> -->
|
||||
<title>ADMINISTRATION: CallCard Admin
|
||||
<?php
|
||||
@@ -335,8 +341,11 @@ if (preg_match("/443/i",$server_port)) {$HTTPprotocol = 'https://';}
|
||||
$admDIR = "$HTTPprotocol$server_name:$server_port$script_name";
|
||||
$admDIR = preg_replace('/callcard_admin\.php/i', '',$admDIR);
|
||||
$admSCR = 'admin.php';
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$secX = date("U");
|
||||
$pulldate0 = "$year-$mon-$mday $hour:$min:$sec";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# called_counts_multilist_report.php
|
||||
#
|
||||
# Copyright (C) 2017 Joe Johnson <freewermadmin@gmail.com>, Matt Florell <mattf@vicidial.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Joe Johnson <freewermadmin@gmail.com>, Matt Florell <mattf@vicidial.com> LICENSE: AGPLv2
|
||||
#
|
||||
# This is a report designed for showing called counts similar to the results
|
||||
# at the bottom of each list detail screen, but for multiple lists and using
|
||||
@@ -17,6 +17,7 @@
|
||||
# 160227-1036 - Uniform form format
|
||||
# 170409-1539 - Added IP List validation code
|
||||
# 170829-0040 - Added screen color settings
|
||||
# 180508-0115 - Added new help display
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -466,8 +467,11 @@ else
|
||||
|
||||
require("screen_colors.php");
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$HEADER.="<!DOCTYPE HTML>\n";
|
||||
$HEADER.="<HEAD>\n";
|
||||
@@ -480,6 +484,10 @@ $HEADER.=" .purple {color: white; background-color: purple}\n";
|
||||
$HEADER.="-->\n";
|
||||
$HEADER.=" </STYLE>\n";
|
||||
|
||||
$HEADER.="<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
$HEADER.="<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"calendar_db.js\"></script>\n";
|
||||
$HEADER.="<link rel=\"stylesheet\" href=\"calendar.css\">\n";
|
||||
$HEADER.="<link rel=\"stylesheet\" href=\"horizontalbargraph.css\">\n";
|
||||
|
||||
@@ -7,31 +7,157 @@
|
||||
#
|
||||
# CHANGELOG:
|
||||
# 180501-0045 - First build
|
||||
# 180512-1055 - Added update of help_documentation.txt file if modified
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
$ip = getenv("REMOTE_ADDR");
|
||||
$help_file = './help_documentation.txt';
|
||||
$help_file_time=0;
|
||||
if ( file_exists($help_file) )
|
||||
{$help_file_time = filemtime($help_file);}
|
||||
|
||||
require("dbconnect_mysqli.php");
|
||||
require("functions.php");
|
||||
|
||||
if (isset($_GET["help_id"])) {$help_id=$_GET["help_id"];}
|
||||
elseif (isset($_POST["help_id"])) {$help_id=$_POST["help_id"];}
|
||||
if (isset($_GET["DB"])) {$DB=$_GET["DB"];}
|
||||
elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];}
|
||||
|
||||
$help_id = preg_replace('/[^-\_0-9a-zA-Z]/', '',$help_id);
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin,enable_languages,language_method,help_modification_date FROM system_settings;";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$qm_conf_ct = mysqli_num_rows($rslt);
|
||||
if ($qm_conf_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$non_latin = $row[0];
|
||||
$SSenable_languages = $row[1];
|
||||
$SSlanguage_method = $row[2];
|
||||
$help_modification_date = $row[3];
|
||||
}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
|
||||
$PHP_AUTH_USER=$_SERVER['PHP_AUTH_USER'];
|
||||
$PHP_AUTH_PW=$_SERVER['PHP_AUTH_PW'];
|
||||
|
||||
if ($non_latin < 1)
|
||||
{
|
||||
$PHP_AUTH_PW = preg_replace('/[^-_0-9a-zA-Z]/','',$PHP_AUTH_PW);
|
||||
$PHP_AUTH_USER = preg_replace('/[^-_0-9a-zA-Z]/','',$PHP_AUTH_USER);
|
||||
}
|
||||
else
|
||||
{
|
||||
$PHP_AUTH_PW = preg_replace('/\'|\"|\\\\|;/', '',$PHP_AUTH_PW);
|
||||
$PHP_AUTH_USER = preg_replace('/\'|\"|\\\\|;/', '',$PHP_AUTH_USER);
|
||||
}
|
||||
|
||||
$stmt="SELECT selected_language from vicidial_users where user='$PHP_AUTH_USER';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
$sl_ct = mysqli_num_rows($rslt);
|
||||
if ($sl_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$VUselected_language = $row[0];
|
||||
}
|
||||
|
||||
$user_auth=0;
|
||||
$auth=0;
|
||||
$reports_auth=0;
|
||||
$qc_auth=0;
|
||||
$auth_message = user_authorization($PHP_AUTH_USER,$PHP_AUTH_PW,'QC',1,0);
|
||||
if ($auth_message == 'GOOD')
|
||||
{$user_auth=1;}
|
||||
|
||||
if ($user_auth < 1)
|
||||
{
|
||||
$VDdisplayMESSAGE = "Login incorrect, please try again";
|
||||
if ($auth_message == 'LOCK')
|
||||
{
|
||||
$VDdisplayMESSAGE = "Too many login attempts, try again in 15 minutes";
|
||||
Header ("Content-type: text/html; charset=utf-8");
|
||||
echo "$VDdisplayMESSAGE: |$PHP_AUTH_USER|$auth_message|\n";
|
||||
exit;
|
||||
}
|
||||
Header("WWW-Authenticate: Basic realm=\"CONTACT-CENTER-ADMIN\"");
|
||||
Header("HTTP/1.0 401 Unauthorized");
|
||||
echo "$VDdisplayMESSAGE: |$PHP_AUTH_USER|$PHP_AUTH_PW|$auth_message|\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
### Check for new help_documentation.txt file
|
||||
if ($help_file_time > $help_modification_date)
|
||||
{
|
||||
$help_fp=fopen($help_file, "r");
|
||||
$help_contentsRAW = fread($help_fp,filesize($help_file));
|
||||
fclose($help_fp);
|
||||
$help_contents = explode("\n",$help_contentsRAW);
|
||||
$help_contents_ct = count($help_contents);
|
||||
if ($DB > 0)
|
||||
{echo "New $help_file found, loading contents: ($help_file_time <> $help_modification_date), ".filesize($help_file)."|$help_contents_ct\n";}
|
||||
|
||||
$h=0;
|
||||
$help_comment=0;
|
||||
$help_insert=0;
|
||||
$help_update=0;
|
||||
while($help_contents_ct > $h)
|
||||
{
|
||||
if (!preg_match("/^\#/",$help_contents[$h]))
|
||||
{
|
||||
$help_line = preg_replace("/\"/","'",$help_contents[$h]);
|
||||
$help_line = preg_replace("/\r|\n|\\\\/",'',$help_contents[$h]);
|
||||
$help_lineARY = explode("\t",$help_line);
|
||||
$stmt="INSERT INTO help_documentation (help_id, help_title, help_text) VALUES (\"" . mysqli_real_escape_string($link, $help_lineARY[0]) . "\",\"" . mysqli_real_escape_string($link, $help_lineARY[1]) . "\",\"" . mysqli_real_escape_string($link, $help_lineARY[2]) . "\") ON DUPLICATE KEY UPDATE help_title=\"" . mysqli_real_escape_string($link, $help_lineARY[1]) . "\", help_text=\"" . mysqli_real_escape_string($link, $help_lineARY[2]) . "\";";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
$inupdate_rows=mysqli_affected_rows($link);
|
||||
if ($inupdate_rows == 1) {$help_insert++;}
|
||||
if ($inupdate_rows == 2) {$help_update++;}
|
||||
if ($DB) {echo "$inupdate_rows|$stmt|\n";}
|
||||
}
|
||||
else
|
||||
{
|
||||
$help_comment++;
|
||||
if ($DB) {echo "Skipping comment row: $h|$help_contents[$h]|\n";}
|
||||
}
|
||||
$h++;
|
||||
}
|
||||
|
||||
$stmt="UPDATE system_settings SET help_modification_date='$help_file_time';";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
|
||||
### LOG INSERTION Admin Log Table ###
|
||||
$SQL_log = "$stmt|";
|
||||
$SQL_log = preg_replace('/;/', '', $SQL_log);
|
||||
$SQL_log = addslashes($SQL_log);
|
||||
$stmt="INSERT INTO vicidial_admin_log set event_date=NOW(), user='$PHP_AUTH_USER', ip_address='$ip', event_section='HELP', event_type='MODIFY', record_id='$PHP_AUTH_USER', event_code='UPDATE HELP DOCUMENTATION', event_sql=\"$SQL_log\", event_notes='ROWS: $h UPDATES: $help_update INSERTS: $help_insert COMMENTS: $help_comment';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
}
|
||||
|
||||
|
||||
### Lookup of help text for display
|
||||
$help_stmt="select help_title, help_text from help_documentation where help_id='$help_id'";
|
||||
$help_rslt=mysql_to_mysqli($help_stmt, $link);
|
||||
while ($help_row=mysqli_fetch_row($help_rslt)) {
|
||||
while ($help_row=mysqli_fetch_row($help_rslt))
|
||||
{
|
||||
preg_match_all("/<QXZ>(.*?)<\/QXZ>/", $help_row[1], $QXZ_matches);
|
||||
|
||||
$qxz_match=$QXZ_matches[0];
|
||||
$qxz_replace=$QXZ_matches[1];
|
||||
for ($q=0; $q<count($qxz_replace); $q++) {
|
||||
for ($q=0; $q<count($qxz_replace); $q++)
|
||||
{
|
||||
# $qxz_match[$q]=preg_replace("/\//", '\\\/', $qxz_match[$q]);
|
||||
$qxz_match[$q]=preg_quote($qxz_match[$q], '/');
|
||||
$qxz_match[$q]="/".$qxz_match[$q]."/";
|
||||
$qxz_replace[$q]=_QXZ($qxz_replace[$q]);
|
||||
}
|
||||
}
|
||||
$help_row[1]=preg_replace($qxz_match, $qxz_replace, $help_row[1]);
|
||||
|
||||
# preg_replace('/"/', '\\"', $help_row[1]);
|
||||
@@ -39,5 +165,7 @@ while ($help_row=mysqli_fetch_row($help_rslt)) {
|
||||
echo "<TR><TD VALIGN='TOP' width='280'><FONT class='help_bold'>"._QXZ("$help_row[0]")."</font></td><TD VALIGN='TOP' align='right' width='20' onClick='ClearAndHideHelpDiv()'><B>[X]</B></tr>";
|
||||
echo "<TR><TD VALIGN='TOP' colspan='2'>$help_row[1]</td></tr>";
|
||||
echo "</TABLE>";
|
||||
}
|
||||
if ($DB > 0)
|
||||
{echo "$help_file($help_file_time <> $help_modification_date)\n";}
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# fcstats.php
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -38,6 +38,7 @@
|
||||
# 170409-1555 - Added IP List validation code
|
||||
# 170829-0040 - Added screen color settings
|
||||
# 171012-2015 - Fixed javascript/apache errors with graphs
|
||||
# 180508-2215 - Added new help display
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -323,8 +324,11 @@ while ($i < $groups_to_print)
|
||||
|
||||
require("screen_colors.php");
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$HTML_head.="<HTML>\n";
|
||||
$HTML_head.="<HEAD>\n";
|
||||
@@ -337,6 +341,11 @@ $HTML_head.=" .purple {color: white; background-color: purple}\n";
|
||||
$HTML_head.="-->\n";
|
||||
$HTML_head.=" </STYLE>\n";
|
||||
$HTML_head.="\n";
|
||||
|
||||
$HTML_head.="<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
$HTML_head.="<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
$HTML_head.="<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
$HTML_head.="<script language=\"JavaScript\" src=\"calendar_db.js\"></script>\n";
|
||||
$HTML_head.="<link rel=\"stylesheet\" href=\"calendar.css\">\n";
|
||||
$HTML_head.="<link rel=\"stylesheet\" href=\"horizontalbargraph.css\">\n";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# fcstats_detail.php
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -40,6 +40,7 @@
|
||||
# 170809-2115 - Added phone and province to detail output, fixed ASCII display issues
|
||||
# 170829-0040 - Added screen color settings
|
||||
# 171012-2015 - Fixed javascript/apache errors with graphs
|
||||
# 180508-2215 - Added new help display
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -486,8 +487,11 @@ else
|
||||
|
||||
require("screen_colors.php");
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$HTML_head.="<HTML>\n";
|
||||
$HTML_head.="<HEAD>\n";
|
||||
@@ -500,6 +504,11 @@ $HTML_head.=" .purple {color: white; background-color: purple}\n";
|
||||
$HTML_head.="-->\n";
|
||||
$HTML_head.=" </STYLE>\n";
|
||||
$HTML_head.="\n";
|
||||
|
||||
$HTML_head.="<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
$HTML_head.="<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
$HTML_head.="<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
$HTML_head.="<script language=\"JavaScript\" src=\"calendar_db.js\"></script>\n";
|
||||
$HTML_head.="<link rel=\"stylesheet\" href=\"calendar.css\">\n";
|
||||
$HTML_head.="<link rel=\"stylesheet\" href=\"horizontalbargraph.css\">\n";
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
# functions for administrative scripts and reports
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
#
|
||||
# CHANGES:
|
||||
@@ -32,6 +32,7 @@
|
||||
# 170503-2130 - Patched sec_convert to fix rounding time bug, issue #1011
|
||||
# 170526-2142 - Added additional auth variable filtering, issue #1016
|
||||
# 170930-0852 - Added code for custom reports variable display
|
||||
# 180508-2215 - Added new help display
|
||||
#
|
||||
|
||||
##### BEGIN validate user login credentials, check for failed lock out #####
|
||||
@@ -318,8 +319,11 @@ function horizontal_bar_chart($campaign_id,$days_graph,$title,$link,$metric,$met
|
||||
$link_text='';
|
||||
$max_count=0;
|
||||
$i=0;
|
||||
$NWB = "$download_link <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = "$download_link <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
|
||||
### get stats for last X days
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
File diff suppressed because one or more lines are too long
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
+28
-15
@@ -1,12 +1,14 @@
|
||||
<?php
|
||||
# list_merge.php - merge smaller lists into a larger one. Part of Admin Utilities.
|
||||
#
|
||||
# Copyright (C) 2017 Matt Florell,Joseph Johnson <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell,Joseph Johnson <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
# 161004-2240 - Initial Build
|
||||
# 170409-1548 - Added IP List validation code
|
||||
# 170819-1000 - Added allow_manage_active_lists option
|
||||
# 180508-2215 - Added new help display
|
||||
|
||||
#
|
||||
|
||||
$version = '2.14-3';
|
||||
@@ -194,6 +196,11 @@ echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.css\" />";
|
||||
echo "<script language=\"JavaScript\" src=\"functions.js\"></script>\n";
|
||||
|
||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
echo "<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
echo "<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
echo "<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=utf-8'>\n";
|
||||
echo "<!-- "._QXZ("VERSION").": <?php echo $version ?> "._QXZ("BUILD").": <?php echo $build ?> -->\n";
|
||||
echo "<title>"._QXZ("ADMINISTRATION: List Merge Tool")."</title>\n";
|
||||
@@ -215,8 +222,11 @@ $SSadmin_color = '#FFFF99';
|
||||
$admin_font = 'BLACK';
|
||||
$SSadmin_color = '#E6E6E6';
|
||||
$subcamp_color = '#C6C6C6';
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$SSmenu_background='015B91';
|
||||
$SSframe_background='D9E6FE';
|
||||
@@ -376,7 +386,7 @@ if ($submit == "submit" )
|
||||
{
|
||||
echo "<p>$destination_list_id "._QXZ("is not a valid list id in the system.")."</p>\n";
|
||||
echo "<p><a href='$PHP_SELF'>"._QXZ("Click here to start over.")."</a></p>\n";
|
||||
echo "</body>\n</html>\n";
|
||||
echo "</body>\n</html>\n";
|
||||
exit;
|
||||
}
|
||||
} else {
|
||||
@@ -404,17 +414,18 @@ if ($submit == "submit" )
|
||||
echo "<center><form action=$PHP_SELF method=POST>\n";
|
||||
echo "<input type=hidden name=available_lists value='".implode("|", $available_lists)."'>\n";
|
||||
echo "<input type=hidden name=orig_count value='$orig_count'>\n";
|
||||
echo "<input type=hidden name=destination_list_id value='$destination_list_id'>\n";
|
||||
echo "<input type=hidden name=destination_list_id value='$destination_list_id'>\n";
|
||||
echo "<input type=hidden name=new_list_id value='$new_list_id'>\n";
|
||||
echo "<input type=hidden name=new_list_name value='$new_list_name'>\n";
|
||||
|
||||
echo "<input type=hidden name=new_list_name value='$new_list_name'>\n";
|
||||
echo "<input type=hidden name=new_list_description value='$new_list_description'>\n";
|
||||
echo "<input type=hidden name=campaign_id value='$campaign_id'>\n";
|
||||
echo "<input type=hidden name=active value='$active'>\n";
|
||||
echo "<input type=hidden name=create_new_list value='$create_new_list'>\n";
|
||||
echo "<input type=hidden name=retain_original_list value='$retain_original_list'>\n";
|
||||
|
||||
# keep debug active
|
||||
echo "<input type=hidden name=DB value='$DB'>\n";
|
||||
# keep debug active
|
||||
echo "<input type=hidden name=DB value='$DB'>\n";
|
||||
|
||||
echo "<input type=submit name='confirm' class='red_btn' value='CONFIRM'>\n";
|
||||
echo "</form>\n";
|
||||
@@ -458,13 +469,14 @@ if ($confirm == "CONFIRM")
|
||||
$admin_log_rslt=mysql_to_mysqli($admin_log_stmt, $link);
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
# move the leads to the new list from the old list
|
||||
$move_lead_stmt = "UPDATE vicidial_list SET list_id = '$destination_list_id' WHERE list_id in ('".implode("', '", $available_lists_array)."');";
|
||||
if ($DB) { echo "|$move_lead_stmt|\n"; }
|
||||
$move_lead_rslt = mysql_to_mysqli($move_lead_stmt, $link);
|
||||
$move_lead_count = mysqli_affected_rows($link);
|
||||
|
||||
|
||||
# insert a record into the admin change log for the mvoe into new list
|
||||
$SQL_log = "$move_lead_stmt";
|
||||
$SQL_log = preg_replace('/;/', '', $SQL_log);
|
||||
@@ -472,10 +484,11 @@ if ($confirm == "CONFIRM")
|
||||
$admin_log_stmt="INSERT INTO vicidial_admin_log set event_date='$SQLdate', user='$PHP_AUTH_USER', ip_address='$ip', event_section='LISTS', event_type='OTHER', record_id='$destination_list_id', event_code='ADMIN LIST MERGE', event_sql=\"$SQL_log\", event_notes='$move_lead_count LEADS MOVED';";
|
||||
if ($DB) {echo "|$admin_log_stmt|\n";}
|
||||
$admin_log_rslt=mysql_to_mysqli($admin_log_stmt, $link);
|
||||
|
||||
# reset the PHP max execution so this script does not exit prematurely
|
||||
|
||||
# reset the PHP max execution so this script does not exit prematurely
|
||||
set_time_limit( 120 );
|
||||
|
||||
|
||||
|
||||
echo "<p>"._QXZ("List(s)")." ".implode(", ", $available_lists_array)." "._QXZ("was merged into list")." $destination_list_id "._QXZ("with")." $move_lead_count "._QXZ("lead(s) moved.")."</p>";
|
||||
echo "<p><a href='$PHP_SELF'>"._QXZ("Click here to start over.")."</a></p>\n";
|
||||
}
|
||||
@@ -585,8 +598,8 @@ if (($submit != "submit" ) && ($confirm != "CONFIRM"))
|
||||
echo "</select>$NWB#lists-campaign_id$NWE</td></tr>\n";
|
||||
echo "<tr bgcolor=#$SSstd_row1_background><td align=right>"._QXZ("Active").": </td><td align=left><select size=1 name='active'><option value='Y'>"._QXZ("Y")."</option><option SELECTED>N</option></select>$NWB#lists-active$NWE</td></tr>\n";
|
||||
|
||||
# keep debug active
|
||||
echo "<input type=hidden name=DB value='$DB'>\n";
|
||||
# keep debug active
|
||||
echo "<input type=hidden name=DB value='$DB'>\n";
|
||||
|
||||
# Submit
|
||||
echo "<tr bgcolor=#$SSstd_row2_background><td colspan=2 align=center><input type=submit name=submit value=submit></td></tr>\n";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# manager_chat_interface.php
|
||||
#
|
||||
# Copyright (C) 2017 Joe Johnson, Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Joe Johnson, Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# This page is for managers (level 8 or higher) to chat with live agents
|
||||
#
|
||||
@@ -14,6 +14,7 @@
|
||||
# 161029-2127 - Fixed menu displays, text sizes
|
||||
# 161217-0819 - Added chat-type to allow for multi-user internal chat sessions
|
||||
# 170409-1551 - Added IP List validation code
|
||||
# 180508-2215 - Added new help display
|
||||
#
|
||||
|
||||
$admin_version = '2.14-8';
|
||||
@@ -339,7 +340,11 @@ header ("Pragma: no-cache"); // HTTP/1.0
|
||||
<head>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
</head>
|
||||
<link rel="stylesheet" href="vicidial_stylesheet.css">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="vicidial_stylesheet.php">
|
||||
<script language="JavaScript" src="help.js"></script>
|
||||
<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>
|
||||
|
||||
<script language="JavaScript">
|
||||
|
||||
function RefreshChatDisplay(manager_chat_id) {
|
||||
@@ -719,8 +724,11 @@ if ($SSallow_chats < 1)
|
||||
}
|
||||
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
echo "<span id='ManagerChatDisplay'>";
|
||||
if (!$manager_chat_id) { # DO NOT ALLOW NEW CHATS WHILE AN OLD ONE IS OPEN!!!
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# medialog_inventory_report.php
|
||||
#
|
||||
# Copyright (C) 2017 Joe Johnson <freewermadmin@gmail.com>, Matt Florell <mattf@vicidial.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Joe Johnson <freewermadmin@gmail.com>, Matt Florell <mattf@vicidial.com> LICENSE: AGPLv2
|
||||
#
|
||||
# This is a report designed for showing custom statistics based on client
|
||||
# requirements. This is not a standard VICIdial report.
|
||||
@@ -11,6 +11,7 @@
|
||||
# 160412-2022 - Callback bug fixed, modified Total count to use modify_date instead of entry_date
|
||||
# 160427-1655 - Added called count categories
|
||||
# 170409-1540 - Added IP List validation code
|
||||
# 180508-2315 - Added new help display
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -19,6 +20,7 @@ header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
require("dbconnect_mysqli.php");
|
||||
require("functions.php");
|
||||
require("screen_colors.php");
|
||||
|
||||
$PHP_AUTH_USER=$_SERVER['PHP_AUTH_USER'];
|
||||
$PHP_AUTH_PW=$_SERVER['PHP_AUTH_PW'];
|
||||
@@ -468,8 +470,11 @@ else
|
||||
}
|
||||
*/
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$HEADER.="<!DOCTYPE HTML>\n";
|
||||
$HEADER.="<HEAD>\n";
|
||||
@@ -482,6 +487,10 @@ $HEADER.=" .purple {color: white; background-color: purple}\n";
|
||||
$HEADER.="-->\n";
|
||||
$HEADER.=" </STYLE>\n";
|
||||
|
||||
$HEADER.="<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
$HEADER.="<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
$HEADER.="<script language=\"JavaScript\" src=\"calendar_db.js\"></script>\n";
|
||||
$HEADER.="<link rel=\"stylesheet\" href=\"calendar.css\">\n";
|
||||
$HEADER.="<link rel=\"stylesheet\" href=\"horizontalbargraph.css\">\n";
|
||||
@@ -573,7 +582,7 @@ $MAIN.="<b>"._QXZ("$report_name")."</b> \n";
|
||||
$MAIN.="<TABLE CELLPADDING=3 CELLSPACING=0><TR><TD>";
|
||||
|
||||
$MAIN.="<FORM ACTION=\"$PHP_SELF\" METHOD=GET name=vicidial_report id=vicidial_report>\n";
|
||||
$MAIN.="<TABLE CELLPADDING=3 CELLSPACING=0 BGCOLOR=\"#e3e3ff\"><TR><TD VALIGN=TOP>"._QXZ("Dates").":<BR>";
|
||||
$MAIN.="<TABLE CELLPADDING=3 CELLSPACING=0 BGCOLOR=\"#".$SSstd_row1_background."\"><TR><TD VALIGN=TOP>"._QXZ("Dates").":<BR>";
|
||||
$MAIN.="<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
||||
$MAIN.="<INPUT TYPE=HIDDEN NAME=outbound_rate VALUE=\"$outbound_rate\">\n";
|
||||
$MAIN.="<INPUT TYPE=TEXT NAME=query_date SIZE=10 MAXLENGTH=10 VALUE=\"$query_date\">";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# user_territories.php
|
||||
#
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# This territories script is for use with custom tables in Vtiger which is why
|
||||
# it is separate from the standard admin.php script. user_territories_active in
|
||||
@@ -23,10 +23,11 @@
|
||||
# 160429-1126 - Added admin_row_click option
|
||||
# 160508-0211 - Added screen colors feature
|
||||
# 161101-2126 - Fixed missing menu items
|
||||
# 180508-2215 - Added new help display
|
||||
#
|
||||
|
||||
$version = '2.12-15';
|
||||
$build = '161101-2126';
|
||||
$version = '2.14-16';
|
||||
$build = '180508-2215';
|
||||
|
||||
$MT[0]='';
|
||||
|
||||
@@ -177,6 +178,11 @@ if (strlen($action) < 1)
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="vicidial_stylesheet.php">
|
||||
<script language="JavaScript" src="help.js"></script>
|
||||
<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>
|
||||
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
<!-- VERSION: <?php echo $version ?> BUILD: <?php echo $build ?> -->
|
||||
<title><?php echo _QXZ("ADMINISTRATION: User Territories"); ?>
|
||||
@@ -373,8 +379,11 @@ if (preg_match("/443/i",$server_port)) {$HTTPprotocol = 'https://';}
|
||||
$admDIR = "$HTTPprotocol$server_name:$server_port$script_name";
|
||||
$admDIR = preg_replace('/user_territories\.php/i', '',$admDIR);
|
||||
$admSCR = 'admin.php';
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
$secX = date("U");
|
||||
$pulldate0 = "$year-$mon-$mday $hour:$min:$sec";
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# custom reports and make them available to user groups
|
||||
# of their choosing
|
||||
#
|
||||
# Copyright (C) 2017 Joseph Johnson <freewermadmin@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2018 Joseph Johnson <freewermadmin@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGES
|
||||
#
|
||||
@@ -15,6 +15,7 @@
|
||||
# 170823-1411 - Fixed delete bug
|
||||
# 170829-0040 - Added screen color settings
|
||||
# 171002-2140 - Added capability to add/modify preset variables
|
||||
# 180508-2215 - Added new help display
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -318,8 +319,11 @@ if ($add_custom_report=="ADD REPORT") {
|
||||
|
||||
require("screen_colors.php");
|
||||
|
||||
$NWB = " <a href=\"javascript:openNewWindow('help.php";
|
||||
$NWE = "')\"><IMG SRC=\"help.gif\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
# $NWB = " <a href=\"javascript:openNewWindow('help.php?ADD=99999";
|
||||
# $NWE = "')\"><IMG SRC=\"help.png\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP></A>";
|
||||
|
||||
$NWB = "<IMG SRC=\"help.png\" onClick=\"FillAndShowHelpDiv(event, '";
|
||||
$NWE = "')\" WIDTH=20 HEIGHT=20 BORDER=0 ALT=\"HELP\" ALIGN=TOP>";
|
||||
|
||||
echo "<HTML><HEAD>\n";
|
||||
|
||||
@@ -429,7 +433,9 @@ function RemoveConstant(array_index) {
|
||||
</script>
|
||||
<?php
|
||||
echo "<link rel=\"stylesheet\" href=\"calendar.css\">\n";
|
||||
echo "<link rel=\"stylesheet\" href=\"vicidial_stylesheet.php\">\n";
|
||||
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"vicidial_stylesheet.php\">\n";
|
||||
echo "<script language=\"JavaScript\" src=\"help.js\"></script>\n";
|
||||
echo "<div id='HelpDisplayDiv' class='help_info' style='display:none;'></div>";
|
||||
|
||||
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo "<TITLE>"._QXZ("ADMINISTRATION").": "._QXZ("Custom Reports");
|
||||
|
||||
Reference in New Issue
Block a user