diff options
author | jnew-gh <github@hazelden.ca> | 2021-04-01 21:31:32 +0300 |
---|---|---|
committer | jnew-gh <github@hazelden.ca> | 2021-04-01 21:31:32 +0300 |
commit | 4d78357b659c8743bffc1972a118d042c1433c69 (patch) | |
tree | 1184309d971969074ef4d8498ee019598dbac196 /dmarcts-report-viewer.php | |
parent | 5b3d9bb77f0379de42f00daec2b404c1668dac03 (diff) |
Add support for resizable divs
Diffstat (limited to 'dmarcts-report-viewer.php')
-rw-r--r-- | dmarcts-report-viewer.php | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/dmarcts-report-viewer.php b/dmarcts-report-viewer.php index f25af1d..5282abc 100644 --- a/dmarcts-report-viewer.php +++ b/dmarcts-report-viewer.php @@ -29,7 +29,7 @@ // for your database authentication and location. // // Edit the configuration variables in dmarcts-report-viewer.js with your preferences. -// +// //#################################################################### //### functions ###################################################### //#################################################################### @@ -51,9 +51,10 @@ function html ($default_hostlookup = 1, $default_dmarc_result = undef, $default_ $html[] = " <meta http-equiv=\"Content-Language\" content=\"en_US\" />"; $html[] = " </head>"; - $html[] = " <body id='body' onload=showReportlist('reportlistTbl');>"; -// $html[] = " <body id='body' onload=showReportlist('reportlistTbl');makeResizableDiv();>"; - + $html[] = " <body id='body' onload=showReportlist('reportlistTbl');set_heights(); onresize=showResizers();>"; + $html[] = "<div id='screen_overlay' onclick=\"hideMenu();\" style=\"top: 0;left: 0;height: 100%;width: 100%;position: absolute;display: none;z-index: 1;\"> + "; + $html[] = "</div>"; // Optionblock form // -------------------------------------------------------------------------- @@ -100,6 +101,7 @@ function html ($default_hostlookup = 1, $default_dmarc_result = undef, $default_ $html[] = "</div>"; } + // Domains select // -------------------------------------------------------------------------- if ( count( $domains ) >= 1 ) { @@ -152,12 +154,12 @@ function html ($default_hostlookup = 1, $default_dmarc_result = undef, $default_ // -------------------------------------------------------------------------- $html[] = "<!-- Start of report list -->"; $html[] = "<div id='title' class='title'>DMARC Reports</div>"; - $html[] = "<div id='report_list' style='overflow-y:auto; resize: vertical;'>"; + $html[] = "<div id='report_list' style='overflow-y:auto;'>"; $html[] = "</div>"; $html[] = "<!-- End of report list -->"; $html[] = "<!-- Start of report data -->"; - $html[] = "<div id='report_data' style='text-align:center;'>"; + $html[] = "<div id='report_data' style='overflow-y: hidden;text-align:center;'>"; $html[] = "</div>"; $html[] = "<!-- End of report data -->"; @@ -222,14 +224,14 @@ while($row = $query->fetch_assoc()) { // Generate Page with report list and report data (if a report is selected). // -------------------------------------------------------------------------- -echo html( - $default_hostlookup, +echo html( + $default_hostlookup, $default_dmarc_result, $default_domain, $default_reporter, - $cssfile, - $domains, - $orgs, + $cssfile, + $domains, + $orgs, $periods ); ?> |