From: Chuck Scott Date: Fri, 2 Nov 2018 18:06:04 +0000 (-0400) Subject: Cleanup of layout and print area for better useability. X-Git-Tag: v2.0.0~2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=2a3f4d0bfbb7e553cf8bb1ef4b8fc21a78d20452;p=WP-Plugins%2Fglm-serverstats.git Cleanup of layout and print area for better useability. --- diff --git a/js/PrintArea/jquery.PrintArea.js b/js/PrintArea/jquery.PrintArea.js old mode 100644 new mode 100755 index 23daa7a..fec36ed --- a/js/PrintArea/jquery.PrintArea.js +++ b/js/PrintArea/jquery.PrintArea.js @@ -1,5 +1,5 @@ /** - * Version 2.4.0 Copyright (C) 2013 + * Version 2.4.1 Copyright (C) 2013 * Tested in IE 11, FF 28.0 and Chrome 33.0.1750.154 * No official support for other browsers, but will TRY to accommodate challenges in other browsers. * Example: @@ -60,7 +60,7 @@ PrintArea.write( PrintAreaWindow.doc, $printSource ); - setTimeout( function () { PrintArea.print( PrintAreaWindow ); }, 1000 ); + setTimeout( function () { PrintArea.print( PrintAreaWindow ); }, 5000 ); }; var PrintArea = { @@ -139,7 +139,7 @@ var copiedInput = copiedInputs.eq( i ); if ( typeInput == "radio" || typeInput == "checkbox" ) copiedInput.attr( "checked", $(this).is(":checked") ); - else if ( typeInput == "text" ) copiedInput.attr( "value", $(this).val() ); + else if ( typeInput == "text" || typeInput == "" ) copiedInput.attr( "value", $(this).val() ); else if ( typeInput == "select" ) $(this).find( "option" ).each( function( i ) { if ( $(this).is(":selected") ) $("option", copiedInput).eq( i ).attr( "selected", true ); diff --git a/models/adminServerStats.php b/models/adminServerStats.php index 5219bb3..e3855c9 100755 --- a/models/adminServerStats.php +++ b/models/adminServerStats.php @@ -183,7 +183,7 @@ class adminServerStats extends glmServerStatsBandwidthSupport } - // echo "
".print_r($websites,1)."
"; + //echo "
".print_r($selectedSite,1)."
"; // Compile template data $templateData = array( diff --git a/views/adminServerStats.html b/views/adminServerStats.html index 7332ca7..dabe3c3 100755 --- a/views/adminServerStats.html +++ b/views/adminServerStats.html @@ -106,17 +106,16 @@
{/if} -

Customer Section

+

Customer Section

+ {/if}

 

- Date Selected: - - -     
Print
-     Explanation of Usage and Graphs + Explanation of Usage and Graphs +   Print Page + @@ -176,10 +175,10 @@
-
+

Usage statistics for site:  {$selectedSite|upper}    Date: {$thisDate}

-

Server Usage for {$website} - {$reportDate}

@@ -245,15 +244,18 @@   - {if $serverStats.trafficDiff.exceeded} - - - - {/if}
 TrafficStorage
Total Traffic Target exceeded by {$serverStats.trafficDiff.traffic|string_format:"%.3f"} Gigabytes ({$serverStats.trafficDiff.percent|string_format:"%.0f"}%).
-

- Color Key: Target, Storage, Incoming, Outgoing, Total
-

+ {if $serverStats.trafficDiff.exceeded} + Total traffic last month: {$serverStats.trafficDiff.traffic|string_format:"%.3f"} Gigabytes - {$serverStats.trafficDiff.percent|string_format:"%.0f"}% of Target ({$target} GB)
+ {/if} +
+ + Select Date for Graphs: + + + + Color Key: Target, Storage, Incoming, Outgoing, Total
+




@@ -267,13 +269,13 @@ {/if} - {/if}