diff --git a/www/vicidial/AST_agent_debug_log_report.php b/www/vicidial/AST_agent_debug_log_report.php
index 2f265ed3..6161dc5f 100644
--- a/www/vicidial/AST_agent_debug_log_report.php
+++ b/www/vicidial/AST_agent_debug_log_report.php
@@ -7,6 +7,7 @@
# 150724-0740 - First build
# 150727-2111 - Added different colors for higher run times, added user variable, code cleanup
# 170409-1547 - Added IP List validation code
+# 170818-0751 - Added HTML display option
#
$startMS = microtime();
@@ -37,6 +38,8 @@ if (isset($_GET["DB"])) {$DB=$_GET["DB"];}
elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];}
if (isset($_GET["submit"])) {$submit=$_GET["submit"];}
elseif (isset($_POST["submit"])) {$submit=$_POST["submit"];}
+if (isset($_GET["report_display_type"])) {$report_display_type=$_GET["report_display_type"];}
+ elseif (isset($_POST["report_display_type"])) {$report_display_type=$_POST["report_display_type"];}
if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];}
elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];}
@@ -202,6 +205,45 @@ if (strlen($query_date_D) < 6) {$query_date_D = "00:00:00";}
if (strlen($query_date_T) < 6) {$query_date_T = "23:59:59";}
if (!isset($query_date)) {$query_date = $NOW_DATE;}
+
+##### BEGIN Define colors and logo #####
+$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='FFFFFF';
+$SSalt_row1_background='BDFFBD';
+$SSalt_row2_background='99FF99';
+$SSalt_row3_background='CCFFCC';
+
+$screen_color_stmt="select admin_screen_colors from system_settings";
+$screen_color_rslt=mysql_to_mysqli($screen_color_stmt, $link);
+$screen_color_row=mysqli_fetch_row($screen_color_rslt);
+$agent_screen_colors="$screen_color_row[0]";
+
+if ($agent_screen_colors != 'default')
+ {
+ $asc_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,web_logo FROM vicidial_screen_colors where colors_id='$agent_screen_colors';";
+ $asc_rslt=mysql_to_mysqli($stmt, $link);
+ $qm_conf_ct = mysqli_num_rows($rslt);
+ if ($qm_conf_ct > 0)
+ {
+ $asc_row=mysqli_fetch_row($asc_rslt);
+ $SSmenu_background = $asc_row[0];
+ $SSframe_background = $asc_row[1];
+ $SSstd_row1_background = $asc_row[2];
+ $SSstd_row2_background = $asc_row[3];
+ $SSstd_row3_background = $asc_row[4];
+ $SSstd_row4_background = $asc_row[5];
+ $SSstd_row5_background = $asc_row[6];
+ $SSalt_row1_background = $asc_row[7];
+ $SSalt_row2_background = $asc_row[8];
+ $SSalt_row3_background = $asc_row[9];
+ $SSweb_logo = $asc_row[10];
+ }
+ }
/*
$server_ip_string='|';
$server_ip_ct = count($server_ip);
@@ -301,6 +343,12 @@ $MAIN.=" ";
+$MAIN.=_QXZ("Display as:");
+$MAIN.=" \n";
+
+
/*
$MAIN.="
"._QXZ("Server IP").": \n";
$MAIN.=" |