/* Some styles are set in the print area to make them available in the print window */
.pickContainer {
margin-top: 1rem;
- width: 95%;
- min-width: 70rem;
+ width: 95%;
+ min-width: 70rem;
}
.pseudoPick {
- height: 150px;
- width: 98%;
+ height: 150px;
+ width: 98%;
overflow-y: auto;
overflow-x: hidden;
- display: inline-block;
- border: 1px #ddd solid;
+ display: inline-block;
+ border: 1px #ddd solid;
}
.pseudoPickTitles {
text-decoration: underline;
}
.pseudoPickOption:hover {
background-color: #0568B3 !important;
- color: white;
+ color: white;
}
.usage-section {
font-weight: bold;
- font-size: 1.4rem;
- clear: both;
- padding: 1rem;
- margin-top: 2rem;
+ font-size: 1.4rem;
+ clear: both;
+ padding: 1rem;
+ margin-top: 2rem;
}
.sortBy {
display: inline-block;
margin-left: 1rem;
}
.sortByTitle {
- display: inline-block;
+ display: inline-block;
font-weight: bold;
- font-size: 1.2rem;
+ font-size: 1.2rem;
}
.graphContainer {
}
.graphContainer .graphTitle {
- font-size: 1.1rem;
- font-weight: bold;
+ font-size: 1.1rem;
+ font-weight: bold;
margin-bottom: 10px;
}
.graph {
white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
white-space: -pre-wrapv; /* Opera 4-6 */
white-space: -o-pre-wrap !important; /* Opera 7 */
- word-wrap: break-word !important; /* Internet Explorer 5.5+ */
+ word-wrap: break-word !important; /* Internet Explorer 5.5+ */
}
.usage-item {
margin-top: 1rem;
}
.color-key-traffic {
- color: black !important;
+ color: black !important;
font-weight: bold;
}
.color-key-target {
- color: maroon !important;
+ color: maroon !important;
font-weight: bold;
}
.color-key-storage {
- color: gray !important;
+ color: gray !important;
font-weight: bold;
}
.color-key-incoming {
- color: red !important;
+ color: red !important;
font-weight: bold;
}
.color-key-outgoing {
- color: green !important;
+ color: green !important;
font-weight: bold;
}
.color-key-total {
- color: blue !important;
+ color: blue !important;
font-weight: bold;
}
</style>
{* Grid Start *}
{$ui = [
- 'sectionColor' => '#ffE',
- 'nowrap' => true
+ 'sectionColor' => '#ffE',
+ 'nowrap' => true
]}
{include file="ui/f6/grid-start.html"}
{* Section Start *}
{$ui = [
- 'title' => 'Site Selection'
+ 'title' => 'Site Selection'
]}
{include file="ui/f6/section-start.html"}
{* Misc Container Start *}
{include file="ui/f6/miscContainer-start.html"}
- {* Form Start *}
- {$ui = [
- 'action' => "{$thisUrl}?page={$thisPage}&selected_site={$currentSite.name}",
- 'method' => 'POST'
- ]}
- {include file="ui/f6/form-start.html"}
-
- <div class="grid-x grid-margin-x">
- <div style="whitespace: nowrap;">
- <span class="sortBy">Sort By: </span>
- <input type="radio" name="site_sort" value="site_name" {if $site_sort == 'site_name'} checked="checked"{/if} onClick="location.href='{$thisUrl}?page={$thisPage}&site_sort=site_name&selected_site={$currentSite.name}';">Site Name
- </div>
- <div style="whitespace: nowrap;">
- <span class="sortBy">Traffic: </span>
- <input type="radio" name="site_sort" value="data_total" {if $site_sort == 'data_total'} checked="checked"{/if} onClick="location.href='{$thisUrl}?page={$thisPage}&site_sort=data_total&selected_site={$currentSite.name}';">Total
- <input type="radio" name="site_sort" value="target_percent" {if $site_sort == 'target_percent'} checked="checked"{/if} onClick="location.href='{$thisUrl}?page={$thisPage}&site_sort=target_percent&selected_site={$currentSite.name}';">Percent
- </div>
- <div style="whitespace: nowrap;">
- <span class="sortBy">Storage: </span>
- <input type="radio" name="site_sort" value="storage" {if $site_sort == 'storage'} checked="checked"{/if} onClick="location.href='{$thisUrl}?page={$thisPage}&site_sort=storage&selected_site={$currentSite.name}';">Maximum
- <input type="radio" name="site_sort" value="disk_target_percent" {if $site_sort == 'disk_target_percent'} checked="checked"{/if} onClick="location.href='{$thisUrl}?page={$thisPage}&site_sort=disk_target_percent&selected_site={$currentSite.name}';">Percent
- </div>
+ <div class="grid-x grid-margin-x">
+ <div style="whitespace: nowrap;">
+ <span class="sortBy">Sort By: </span>
+ <input type="radio" name="site_sort" value="site_name" {if $site_sort == 'site_name'} checked="checked"{/if} onClick="location.href='{$thisUrl}?page={$thisPage}&site_sort=site_name&selected_site={$currentSite.name}';">Site Name
</div>
- <div style="overflow-x: auto;">
- <div class="pickContainer">
- <pre class=""> ----------------- Traffic ------------- --------------- Storage --------------</pre>
- <pre class="pseudoPickTitles">Website Last Month Target % of Target Last Month Target % of Target</pre>
- <div class="pseudoPick">
- {foreach $websites as $site}
- <pre class="pseudoPickOption"></span>{if $site.name == $currentSite.name}<a name="selectedSite"></a>{/if}<a href="{$thisUrl}?page={$thisPage}&selected_site={$site.name}&site_id={$site.id}&site_sort={$site_sort}" class="pseudoPickOption" {if $site.name == $currentSite.name}onClick="return false;"{/if}><span{if $site.name == $currentSite.name} style="background-color: LightGray;"{/if}>{$site.name|string_format:"%-50s"} {$site.data_total|string_format:"%6.1f"} GB {$site.target|string_format:"%8.1f"} GB <span {if $site.target_percent > $threshold}style="color: red;"{/if}>{$site.target_percent|string_format:"%6.0f"}%</span> {$site.storage|string_format:"%6.1f"} GB {$site.disk_target|string_format:"%8.1f"} GB <span {if $site.disk_target_percent > $threshold}style="color: red;"{/if}>{$site.disk_target_percent|string_format:"%6.0f"}%</span></span></a></pre>
- {/foreach}
- </div>
- </div>
+ <div style="whitespace: nowrap;">
+ <span class="sortBy">Traffic: </span>
+ <input type="radio" name="site_sort" value="data_total" {if $site_sort == 'data_total'} checked="checked"{/if} onClick="location.href='{$thisUrl}?page={$thisPage}&site_sort=data_total&selected_site={$currentSite.name}';">Total
+ <input type="radio" name="site_sort" value="target_percent" {if $site_sort == 'target_percent'} checked="checked"{/if} onClick="location.href='{$thisUrl}?page={$thisPage}&site_sort=target_percent&selected_site={$currentSite.name}';">Percent
</div>
- <p>Click on a site above to display settings and charts.</p>
- <div class="grid-x grid-margin-x">
- <div class="cell small-12 large-5 glm-f6-ui-nowrap">
- <b>Send Usage Report for Selected Site:</b>
- <div><a href="{$ajaxUrl}?action=glm_server_stats&glm_action=ajaxSendUsageReport&selected_site={$currentSite.name}&send_override=1" target="usageEmail" class="button button-secondary button-small button-wrappable">Send for selected site</a></div>
- </div>
- <div class="cell small-12 large-7 glm-f6-ui-nowrap">
- <b>Preview Usage Report:</b>
- <div>
- <a href="{$ajaxUrl}?action=glm_server_stats&glm_action=ajaxSendUsageReport&selected_site={$currentSite.name}&display_only=true" target="usageEmail" class="button button-secondary button-small button-wrappable">Display for site selected site</a>
- <a href="{$ajaxUrl}?action=glm_server_stats&glm_action=ajaxSendUsageReport&display_only=true" target="usageEmail" class="button button-secondary button-small button-wrappable">Display for all sites above threashold</a>
- </div>
+ <div style="whitespace: nowrap;">
+ <span class="sortBy">Storage: </span>
+ <input type="radio" name="site_sort" value="storage" {if $site_sort == 'storage'} checked="checked"{/if} onClick="location.href='{$thisUrl}?page={$thisPage}&site_sort=storage&selected_site={$currentSite.name}';">Maximum
+ <input type="radio" name="site_sort" value="disk_target_percent" {if $site_sort == 'disk_target_percent'} checked="checked"{/if} onClick="location.href='{$thisUrl}?page={$thisPage}&site_sort=disk_target_percent&selected_site={$currentSite.name}';">Percent
+ </div>
+ </div>
+ <div style="overflow-x: auto;">
+ <div class="pickContainer">
+ <pre class=""> ----------------- Traffic ------------- --------------- Storage --------------</pre>
+ <pre class="pseudoPickTitles">Website Last Month Target % of Target Last Month Target % of Target</pre>
+ <div class="pseudoPick">
+ {foreach $websites as $site}
+ <pre class="pseudoPickOption"></span>{if $site.name == $currentSite.name}<a name="selectedSite"></a>{/if}<a href="{$thisUrl}?page={$thisPage}&selected_site={$site.name}&site_id={$site.id}&site_sort={$site_sort}" class="pseudoPickOption" {if $site.name == $currentSite.name}onClick="return false;"{/if}><span{if $site.name == $currentSite.name} style="background-color: LightGray;"{/if}>{$site.name|string_format:"%-50s"} {$site.data_total|string_format:"%6.1f"} GB {$site.target|string_format:"%8.1f"} GB <span {if $site.target_percent > $threshold}style="color: red;"{/if}>{$site.target_percent|string_format:"%6.0f"}%</span> {$site.storage|string_format:"%6.1f"} GB {$site.disk_target|string_format:"%8.1f"} GB <span {if $site.disk_target_percent > $threshold}style="color: red;"{/if}>{$site.disk_target_percent|string_format:"%6.0f"}%</span></span></a></pre>
+ {/foreach}
</div>
- <div class="cell small-12 large-12 glm-f6-ui-nowrap">
- <br>Note that the "Send E-Mail" button above will send the E-Mail even if the global "Enable Sending Usage Reports" setting below is set to off.
+ </div>
+ </div>
+ <p>Click on a site above to display settings and charts.</p>
+ <div class="grid-x grid-margin-x">
+ <div class="cell small-12 large-5 glm-f6-ui-nowrap">
+ <b>Send Usage Report for Selected Site:</b>
+
+ {* Form Start *}
+ {$ui = [
+ 'action' => "{$ajaxUrl}?action=glm_server_stats&glm_action=ajaxSendUsageReport",
+ 'method' => 'POST',
+ 'leaveModifiedFormCheck' => true,
+ 'target' => 'usageEmail'
+ ]}
+ {include file="ui/f6/form-start.html"}
+
+ <input type="hidden" name="selected_site" value="{$currentSite.name}">
+ <input type="hidden" name="send_override" value="1">
+ <input type="hidden" name="selected_site" value="{$currentSite.name}">
+
+ {* Form Summary Start *}
+ {$ui = [
+ 'id' => 'usageReport',
+ 'edit_button_text' => 'Send Report'
+ ]}
+ {include file="ui/f6/form-summary-start.html"}
+
+ {* intentionally nothing here *}
+
+ {include file="ui/f6/form-summary-end.html"}
+
+ {* Form Edit Start *}
+ {$ui = [
+ 'id' => 'usageReport',
+ 'summary_button_text' => 'Cancel Sending Report'
+ ]}
+ {include file="ui/f6/form-edit-start.html"}
+
+ {* Additional Message *}
+ {$ui = [
+ 'field' => 'send_usage_report_text',
+ 'value' => '',
+ 'label' => 'Additional text for top of E-Mail (optional)',
+ 'teeny' => true,
+ 'rows' => 3
+ ]}
+ {include file="ui/f6/editor.html"}
+
+ {* Force Display *}
+ {$ui = [
+ 'field' => 'display_only',
+ 'value' => false,
+ 'label' => 'Do not send, just show sample'
+ ]}
+ {include file="ui/f6/checkbox.html"}
+
+ {* Submit Button *}
+ {$ui = [
+ 'class' => 'primary',
+ 'label' => 'Send Usage Report',
+ 'submit' => true
+ ]}
+ {include file="ui/f6/submit.html"}
+
+ <br>Note that the "Send Usage Report" button above will send the E-Mail even if the global "Enable Sending Usage Reports" setting below is set to off.
+
+ {include file="ui/f6/form-edit-end.html"}
+
+ {include file="ui/f6/form-end.html"}
+
+ </div>
+ <div class="cell small-12 large-7 glm-f6-ui-nowrap">
+ <b>Preview Usage Report:</b>
+ <div>
+ <a href="{$ajaxUrl}?action=glm_server_stats&glm_action=ajaxSendUsageReport&selected_site={$currentSite.name}&display_only=true" target="usageEmail" class="button button-secondary button-small button-wrappable">Display for site selected site</a>
+ <a href="{$ajaxUrl}?action=glm_server_stats&glm_action=ajaxSendUsageReport&display_only=true" target="usageEmail" class="button button-secondary button-small button-wrappable">Display for all sites above threashold</a>
</div>
</div>
+ </div>
- {include file="ui/f6/form-end.html"}
{include file="ui/f6/miscContainer-end.html"}
{* Grid End *}
{$ui = [
- 'noFoundationInit' => true
+ 'noFoundationInit' => true
]}
{include file="ui/f6/grid-end.html"}
{* Form Start *}
{$ui = [
- 'action' => "{$thisUrl}?page={$thisPage}&selected_site={$currentSite.name}",
- 'method' => 'POST',
- 'validate' => true,
- 'validateFocusMsg' => true,
+ 'action' => "{$thisUrl}?page={$thisPage}&selected_site={$currentSite.name}",
+ 'method' => 'POST',
+ 'validate' => true,
+ 'validateFocusMsg' => true,
'leaveModifiedFormCheck' => true
]}
{include file="ui/f6/form-start.html"}
{* Grid Start *}
{$ui = [
- 'sectionColor' => '#ffE',
- 'nowrap' => true
+ 'sectionColor' => '#ffE',
+ 'nowrap' => true
]}
{include file="ui/f6/grid-start.html"}
{* Form Summary Start *}
{$ui = [
- 'id' => 'usageSettings',
- 'title' => 'Usage Report Settings'
+ 'id' => 'usageSettings',
+ 'title' => 'Settings Summary'
]}
{include file="ui/f6/form-summary-start.html"}
{* Sub-Section Start *}
{$ui = [
- 'title' => {'Settings For: '|cat:$currentSite.name},
- 'wrapSize' => 6
+ 'title' => {'Settings For: '|cat:$currentSite.name},
+ 'wrapSize' => 6
]}
{include file="ui/f6/sub-section-start.html"}
<div class="cell small-12 large-7">{if $currentSite.show_usage}Yes{else}No{/if}</div>
<div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Send Usage Reports:</b></div>
<div class="cell small-12 large-7">{if $currentSite.send_enabled}Yes{else}No{/if}</div>
- <div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Customer Usage/Notify Address:</b></div>
+ <div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Customer Contact Name:</b></div>
+ <div class="cell small-12 large-7">{if !empty($currentSite.cust_contact_name)}{$currentSite.cust_contact_name}{else}(Not supplied){/if}</div>
+ <div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Customer Contact E-Mail:</b></div>
<div class="cell small-12 large-7">{if !empty($currentSite.cust_contact)}{$currentSite.cust_contact}{else}(Not supplied){/if}</div>
<div class="cell small-12 large-12 glm-f6-ui-nowrap"><br><u>Cookie Pop-Up</u></div>
<div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Show Cookie Pop-Up:</b></div>
- <div class="cell small-12 large-7">{if $currentSite.show_cookie_popup}Yes{else}No{/if}</div>
+ <div class="cell small-12 large-7">
+ {if $currentSite.show_cookie_popup}Yes{else}No{/if}
+ <br><a href="{$baseURL}?force_cookie=1" target="cookieTest">Click me to test Cookie Pop-Up</a>
+ </div>
<div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Cookie Pop-Up Timeout:</b></div>
<div class="cell small-12 large-7">{$currentSite.cookie_popup_timeout} Days</div>
<div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Cookie Message:</b></div>
{* Sub-Section Start *}
{$ui = [
- 'title' => 'Global Settings',
- 'wrapSize' => 6
+ 'title' => 'Global Settings',
+ 'wrapSize' => 6
]}
{include file="ui/f6/sub-section-start.html"}
<div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Subject:</b></div>
<div class="cell small-12 large-7">{if !empty($glmFromContact.subject)}{$glmFromContact.subject}{else}(Subject not set){/if}</div>
+ <div class="cell small-12 large-12 glm-f6-ui-nowrap"><br><u>Usage Report E-Mail - Below Target %</u></div>
+
+ <div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Before Report:</b></div>
+ <div class="cell small-12 large-7">{wpautop($glmReportEmail.before_report)}</div>
+ <div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>After Report:</b></div>
+ <div class="cell small-12 large-7">{wpautop($glmReportEmail.after_report)}</div>
+
+ <div class="cell small-12 large-12 glm-f6-ui-nowrap"><br><u>Usage Report E-Mail - Above Target %</u></div>
+
+ <div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Before Report:</b></div>
+ <div class="cell small-12 large-7">{wpautop($glmReportEmail.before_report_above_target)}</div>
+ <div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>After Report:</b></div>
+ <div class="cell small-12 large-7">{wpautop($glmReportEmail.after_report_above_target)}</div>
+
{include file="ui/f6/sub-section-end.html"}
</div>
</div>
{* Form Edit Start *}
{$ui = [
- 'id' => 'usageSettings',
- 'title' => 'Edit Settings'
+ 'id' => 'usageSettings',
+ 'title' => 'Edit Settings'
]}
{include file="ui/f6/form-edit-start.html"}
{* Section Start *}
{$ui = [
- 'title' => {'Settings For: '|cat:$currentSite.name}
+ 'title' => {'Settings For: '|cat:$currentSite.name}
]}
{include file="ui/f6/section-start.html"}
{* Note about site-specific settings *}
{$ui = [
- 'text' => '<b>NOTE: </b>The settings below affect only the currently selected site!'
+ 'text' => '<b>NOTE: </b>The settings below affect only the currently selected site!'
]}
{include file="ui/f6/text-line.html"}
{* Sub-Section Start *}
{$ui = [
- 'title' => 'Usage Reporting'
+ 'title' => 'Usage Reporting'
]}
{include file="ui/f6/sub-section-start.html"}
{* target *}
{$ui = [
- 'field' => 'target',
- 'value' => {$currentSite.target|string_format:"%.1f"},
- 'label' => 'Monthly Traffic Target in Gigabytes',
- 'required' => true,
- 'placeholder' => 'e.g.: 2.000 for 2 Gigabytes'
+ 'field' => 'target',
+ 'value' => {$currentSite.target|string_format:"%.1f"},
+ 'label' => 'Monthly Traffic Target in Gigabytes',
+ 'required' => true,
+ 'placeholder' => 'e.g.: 2.000 for 2 Gigabytes'
]}
{include file="ui/f6/text.html"}
{* disk_target *}
{$ui = [
- 'field' => 'disk_target',
- 'value' => {$currentSite.disk_target|string_format:"%.1f"},
- 'label' => 'Disk Space Used Target in Gigabytes',
- 'required' => true,
- 'placeholder' => 'e.g. 2.000 for 2 Gigabytes'
+ 'field' => 'disk_target',
+ 'value' => {$currentSite.disk_target|string_format:"%.1f"},
+ 'label' => 'Disk Space Used Target in Gigabytes',
+ 'required' => true,
+ 'placeholder' => 'e.g. 2.000 for 2 Gigabytes'
]}
{include file="ui/f6/text.html"}
{* show_usage *}
{$ui = [
- 'field' => 'show_usage',
- 'value' => {!empty($currentSite.show_usage)},
- 'label' => 'Show Traffic and Disk Usage Information & Graphs',
- 'helpText' => 'Turn this on to show traffic and disk ussage information on this site.'
+ 'field' => 'show_usage',
+ 'value' => {!empty($currentSite.show_usage)},
+ 'label' => 'Show Traffic and Disk Usage Information & Graphs',
+ 'helpText' => 'Turn this on to show traffic and disk ussage information on this site.'
]}
{include file="ui/f6/checkbox.html"}
{* Send Enabled *}
{$ui = [
- 'field' => 'send_enabled',
- 'value' => {$currentSite.send_enabled},
- 'label' => 'Send Usage Reports',
- 'helpText' => '
- Turn this on to have monthly notices sent to site contacts (below) when
- close to or above the reporting threashold.
- '
+ 'field' => 'send_enabled',
+ 'value' => {$currentSite.send_enabled},
+ 'label' => 'Send Usage Reports',
+ 'helpText' => '
+ Turn this on to have monthly notices sent to site contacts (below) when
+ close to or above the reporting threashold.
+ '
]}
{include file="ui/f6/checkbox.html"}
+ {* cust_contact_name *}
+ {$ui = [
+ 'field' => 'cust_contact_name',
+ 'value' => {$currentSite.cust_contact_name},
+ 'label' => 'Customer Contact Name',
+ 'required' => false,
+ 'helpText' => 'Used for salutation in reports.'
+ ]}
+ {include file="ui/f6/text.html"}
+
{* cust_contact *}
{$ui = [
- 'field' => 'cust_contact',
- 'value' => {$currentSite.cust_contact},
- 'label' => 'Customer Contact E-Mail',
- 'required' => false,
- 'helpText' => 'Leave empty to prevent any E-mail from being sent for this site.'
+ 'field' => 'cust_contact',
+ 'value' => {$currentSite.cust_contact},
+ 'label' => 'Customer Contact E-Mail',
+ 'required' => false,
+ 'helpText' => 'Leave empty to prevent any E-mail from being sent for this site.'
]}
{include file="ui/f6/text.html"}
{* Sub-Section Start *}
{$ui = [
- 'title' => 'Cookie Pop-Ups for This Site',
- 'tip' => '
- This section enables and sets parameters for the "Cookie Popup" that
- will be displayed to a front-end user until they click to confirm that they
- have read this popup. The popup will redisplay after the sent number of days
- selected below.
- See "Additional Notices" to select other standard
- notices to display based on what is included in Web site.
- '
+ 'title' => 'Cookie Pop-Ups for This Site',
+ 'tip' => '
+ This section enables and sets parameters for the "Cookie Popup" that
+ will be displayed to a front-end user until they click to confirm that they
+ have read this popup. The popup will redisplay after the sent number of days
+ selected below.
+ See "Additional Notices" to select other standard
+ notices to display based on what is included in Web site.
+ '
]}
{include file="ui/f6/sub-section-start.html"}
{* show_cookie_popup *}
{$ui = [
- 'field' => 'show_cookie_popup',
- 'value' => {!empty($currentSite.show_cookie_popup)},
- 'label' => 'Show Cookie Pop-Up'
+ 'field' => 'show_cookie_popup',
+ 'value' => {!empty($currentSite.show_cookie_popup)},
+ 'label' => 'Show Cookie Pop-Up'
]}
{include file="ui/f6/checkbox.html"}
{* cookie_popup_timeout *}
{$ui = [
- 'field' => 'cookie_popup_timeout',
- 'value' => {$currentSite.cookie_popup_timeout},
- 'label' => 'Cookie Pop-Up Re-Display Days',
- 'required' => true,
- 'min' => 0,
- 'max' => 365,
- 'width' => 5,
- 'helpText' => 'Number of days after user accepts the cookie pop-up that it will display again.
- <b>Do not set to a real high number. Consider 10-30 days. Set to 0 to test Cookie Popups.</b>',
- 'errorText' => 'Must be between 0 and 365 days!'
+ 'field' => 'cookie_popup_timeout',
+ 'value' => {$currentSite.cookie_popup_timeout},
+ 'label' => 'Cookie Pop-Up Re-Display Days',
+ 'required' => true,
+ 'min' => 0,
+ 'max' => 365,
+ 'width' => 5,
+ 'helpText' => 'Number of days after user accepts the cookie pop-up that it will display again.
+ <b>Do not set to a real high number. Consider 10-30 days. Set to 0 to test Cookie Popups.</b>',
+ 'errorText' => 'Must be between 0 and 365 days!'
]}
{include file="ui/f6/number.html"}
{* cookie_message *}
{$ui = [
- 'field' => 'cookie_message',
- 'value' => {$currentSite.cookie_message},
- 'label' => 'Cookies Pop-Up Text',
- 'required' => true,
- 'teeny' => true,
- 'rows' => 10,
- 'helpText' => '
- This is the text for the Cookie Pop-Up.
- Additional privacy and policity text is displayed on the Privacy/Policy page that is
- created automatically when this plugin is activated on a Website. That policy page
- contains standard text and may be editied using the WordPress page editor on
- the selected site.
- '
+ 'field' => 'cookie_message',
+ 'value' => {$currentSite.cookie_message},
+ 'label' => 'Cookies Pop-Up Text',
+ 'required' => true,
+ 'teeny' => true,
+ 'rows' => 10,
+ 'helpText' => '
+ This is the text for the Cookie Pop-Up.
+ Additional privacy and policity text is displayed on the Privacy/Policy page that is
+ created automatically when this plugin is activated on a Website. That policy page
+ contains standard text and may be editied using the WordPress page editor on
+ the selected site.
+ '
]}
{include file="ui/f6/editor.html"}
{* Sub-Section Start *}
{$ui = [
- 'title' => 'Cookie Pop-Up Colors and Positioning'
+ 'title' => 'Cookie Pop-Up Colors and Positioning'
]}
{include file="ui/f6/sub-section-start.html"}
{* color_backgroud *}
{$ui = [
- 'field' => 'color_background',
- 'value' => {$currentSite.color_background},
- 'default' => '#002b38',
- 'label' => 'Background',
- 'placeholder' => 'Color Code like #002b38',
- 'required' => true,
- 'maxWidth' => '6rem',
- 'maxLength' => 8,
- 'wrapSize' => 3
+ 'field' => 'color_background',
+ 'value' => {$currentSite.color_background},
+ 'default' => '#002b38',
+ 'label' => 'Background',
+ 'placeholder' => 'Color Code like #002b38',
+ 'required' => true,
+ 'maxWidth' => '6rem',
+ 'maxLength' => 8,
+ 'wrapSize' => 3
]}
{include file="ui/f6/text.html"}
{* color_buttons *}
{$ui = [
- 'field' => 'color_buttons',
- 'value' => {$currentSite.color_buttons},
- 'default' => '#073642',
- 'label' => 'Buttons',
- 'placeholder' => 'Color Code like #002b38',
- 'required' => true,
- 'maxWidth' => '6rem',
- 'maxLength' => 8,
- 'wrapSize' => 3
+ 'field' => 'color_buttons',
+ 'value' => {$currentSite.color_buttons},
+ 'default' => '#073642',
+ 'label' => 'Buttons',
+ 'placeholder' => 'Color Code like #002b38',
+ 'required' => true,
+ 'maxWidth' => '6rem',
+ 'maxLength' => 8,
+ 'wrapSize' => 3
]}
{include file="ui/f6/text.html"}
{* color_text *}
{$ui = [
- 'field' => 'color_text',
- 'value' => {$currentSite.color_text},
- 'default' => '#839496',
- 'label' => 'Text',
- 'placeholder' => 'Color Code like #002b38',
- 'required' => true,
- 'maxWidth' => '6rem',
- 'maxLength' => 8,
- 'wrapSize' => 3
+ 'field' => 'color_text',
+ 'value' => {$currentSite.color_text},
+ 'default' => '#839496',
+ 'label' => 'Text',
+ 'placeholder' => 'Color Code like #002b38',
+ 'required' => true,
+ 'maxWidth' => '6rem',
+ 'maxLength' => 8,
+ 'wrapSize' => 3
]}
{include file="ui/f6/text.html"}
{* color_buttontext *}
{$ui = [
- 'field' => 'color_buttontext',
- 'value' => {$currentSite.color_buttontext},
- 'default' => '#ffffff',
- 'label' => 'Button Text',
- 'placeholder' => 'Color Code like #002b38',
- 'required' => true,
- 'maxWidth' => '6rem',
- 'maxLength' => 8,
- 'wrapSize' => 3
+ 'field' => 'color_buttontext',
+ 'value' => {$currentSite.color_buttontext},
+ 'default' => '#ffffff',
+ 'label' => 'Button Text',
+ 'placeholder' => 'Color Code like #002b38',
+ 'required' => true,
+ 'maxWidth' => '6rem',
+ 'maxLength' => 8,
+ 'wrapSize' => 3
]}
{include file="ui/f6/text.html"}
{* popup_border *}
{$ui = [
- 'field' => 'popup_border',
- 'value' => {$currentSite.popup_border},
- 'default' => '1px solid black',
- 'label' => 'Pop-Up Border',
- 'placeholder' => 'e.g.: 1px black solid',
- 'maxWidth' => '10rem'
+ 'field' => 'popup_border',
+ 'value' => {$currentSite.popup_border},
+ 'default' => '1px solid black',
+ 'label' => 'Pop-Up Border',
+ 'placeholder' => 'e.g.: 1px black solid',
+ 'maxWidth' => '10rem'
]}
{include file="ui/f6/text.html"}
{* popup_position *}
{$ui = [
- 'field' => 'popup_position',
- 'value' => {$currentSite.popup_position},
- 'default' => 'top',
- 'label' => 'Pop-Up Position',
- 'list' => ['Top' => 'Top', 'Bottom' => 'Bottom'],
- 'noWrap' => true
+ 'field' => 'popup_position',
+ 'value' => {$currentSite.popup_position},
+ 'default' => 'top',
+ 'label' => 'Pop-Up Position',
+ 'list' => ['Top' => 'Top', 'Bottom' => 'Bottom'],
+ 'noWrap' => true
]}
{include file="ui/f6/radioButtons.html"}
{* Sub-Section Start *}
{$ui = [
- 'title' => 'Privacy/Policy Page Contact Information'
+ 'title' => 'Privacy/Policy Page Contact Information'
]}
{include file="ui/f6/sub-section-start.html"}
{* contact_name *}
{$ui = [
- 'field' => 'contact_name',
- 'value' => {$currentSite.contact_name},
- 'label' => 'Contact Name',
- 'placeholder' => 'Name of contact person/role for Pivacy/Policy questions'
+ 'field' => 'contact_name',
+ 'value' => {$currentSite.contact_name},
+ 'label' => 'Contact Name',
+ 'placeholder' => 'Name of contact person/role for Pivacy/Policy questions'
]}
{include file="ui/f6/text.html"}
{* contact_org *}
{$ui = [
- 'field' => 'contact_org',
- 'value' => {$currentSite.contact_org},
- 'label' => 'Organization',
- 'placeholder' => 'Name of contact organization for Pivacy/Policy questions'
+ 'field' => 'contact_org',
+ 'value' => {$currentSite.contact_org},
+ 'label' => 'Organization',
+ 'placeholder' => 'Name of contact organization for Pivacy/Policy questions'
]}
{include file="ui/f6/text.html"}
{* contact_address *}
{$ui = [
- 'field' => 'contact_address',
- 'value' => {$currentSite.contact_address},
- 'label' => 'Address'
+ 'field' => 'contact_address',
+ 'value' => {$currentSite.contact_address},
+ 'label' => 'Address'
]}
{include file="ui/f6/text.html"}
{* contact_address2 *}
{$ui = [
- 'field' => 'contact_address2',
- 'value' => {$currentSite.contact_address2},
- 'label' => ''
+ 'field' => 'contact_address2',
+ 'value' => {$currentSite.contact_address2},
+ 'label' => ''
]}
{include file="ui/f6/text.html"}
{* contact_city *}
{$ui = [
- 'field' => 'contact_city',
- 'value' => {$currentSite.contact_city},
- 'label' => 'City'
+ 'field' => 'contact_city',
+ 'value' => {$currentSite.contact_city},
+ 'label' => 'City'
]}
{include file="ui/f6/text.html"}
{* contact_state *}
{$ui = [
- 'field' => 'contact_state',
- 'value' => {$currentSite.contact_state},
- 'label' => 'State'
+ 'field' => 'contact_state',
+ 'value' => {$currentSite.contact_state},
+ 'label' => 'State'
]}
{include file="ui/f6/text.html"}
{* contact_zip *}
{$ui = [
- 'field' => 'contact_zip',
- 'value' => {$currentSite.contact_zip},
- 'label' => 'ZIP/Postal Code'
+ 'field' => 'contact_zip',
+ 'value' => {$currentSite.contact_zip},
+ 'label' => 'ZIP/Postal Code'
]}
{include file="ui/f6/text.html"}
{* contact_phone *}
{$ui = [
- 'field' => 'contact_phone',
- 'value' => {$currentSite.contact_phone},
- 'label' => 'Phone Number'
+ 'field' => 'contact_phone',
+ 'value' => {$currentSite.contact_phone},
+ 'label' => 'Phone Number'
]}
{include file="ui/f6/text.html"}
{* contact_email *}
{$ui = [
- 'field' => 'contact_email',
- 'value' => {$currentSite.contact_email},
- 'label' => 'E-Mail Address'
+ 'field' => 'contact_email',
+ 'value' => {$currentSite.contact_email},
+ 'label' => 'E-Mail Address'
]}
{include file="ui/f6/text.html"}
{* Policy Page Reference *}
{$ui = [
- 'text' => {'<a href="'|cat:{$moreInfoUrl}|cat:'" target="policyPage">Link to display Privacy/Policy Page</a>'}
+ 'text' => {'<a href="'|cat:{$moreInfoUrl}|cat:'" target="policyPage">Link to display Privacy/Policy Page</a>'}
]}
{include file="ui/f6/text-line.html"}
{* Section Start *}
{$ui = [
- 'title' => 'Global Settings'
+ 'title' => 'Global Settings'
]}
{include file="ui/f6/section-start.html"}
{* Sub-Section Start *}
{$ui = [
- 'title' => '<b>NOTE: </b>The settings below affect all sites!'
+ 'title' => '<b>NOTE: </b>The settings below affect all sites!'
]}
{include file="ui/f6/sub-section-start.html"}
{* Reporting Threshold *}
{$ui = [
- 'field' => 'threshold',
- 'value' => {$threshold|string_format:"%.0f"},
- 'label' => 'Monthly Reporting Threshold %',
- 'required' => true,
- 'min' => -1,
- 'max' => 1000,
- 'width' => 5,
- 'helpText' => '
- Percentage above which target percentage should be highlighted in red and site contacts will receive E-Mail reports.
- Set Reporting Threshold to -1% to block all automatic monthly reporting.
- ',
- 'errorText' => 'Please enter or select a number between -1 and 1000.'
+ 'field' => 'threshold',
+ 'value' => {$threshold|string_format:"%.0f"},
+ 'label' => 'Monthly Reporting Threshold %',
+ 'required' => true,
+ 'min' => -1,
+ 'max' => 1000,
+ 'width' => 5,
+ 'helpText' => '
+ Percentage above which target percentage should be highlighted in red and site contacts will receive E-Mail reports.
+ Set Reporting Threshold to -1% to block all automatic monthly reporting.
+ ',
+ 'errorText' => 'Please enter or select a number between -1 and 1000.'
]}
{include file="ui/f6/number.html"}
{* sent_report_enabled *}
{$ui = [
- 'field' => 'send_reports_enabled',
- 'value' => {!empty($sendReportsEnabled)},
- 'label' => 'Enable Sending Usage Reports'
+ 'field' => 'send_reports_enabled',
+ 'value' => {!empty($sendReportsEnabled)},
+ 'label' => 'Enable Sending Usage Reports'
]}
{include file="ui/f6/checkbox.html"}
{* Sub-Section Start *}
{$ui = [
- 'title' => 'Usage Report E-mail "From" Information'
+ 'title' => 'Usage Report E-mail "From" Information'
]}
{include file="ui/f6/sub-section-start.html"}
{* Report From Name *}
{$ui = [
- 'field' => 'report_contact_name',
- 'value' => {$glmFromContact.name},
- 'label' => 'Name or Role of contact',
- 'required' => true
+ 'field' => 'report_contact_name',
+ 'value' => {$glmFromContact.name},
+ 'label' => 'Name or Role of contact',
+ 'required' => true
]}
{include file="ui/f6/text.html"}
{* Report From E-Mail Address *}
{$ui = [
- 'field' => 'report_contact_email',
- 'value' => {$glmFromContact.email},
- 'label' => 'E-Mail Address',
- 'required' => true
+ 'field' => 'report_contact_email',
+ 'value' => {$glmFromContact.email},
+ 'label' => 'E-Mail Address',
+ 'required' => true
]}
{include file="ui/f6/text.html"}
{* Report E-mail Subject *}
{$ui = [
- 'field' => 'report_subject',
- 'value' => {$glmFromContact.subject},
- 'label' => 'Subject',
- 'required' => true
+ 'field' => 'report_subject',
+ 'value' => {$glmFromContact.subject},
+ 'label' => 'Subject',
+ 'required' => true
]}
{include file="ui/f6/text.html"}
{include file="ui/f6/sub-section-end.html"}
+ {* Sub-Section Start *}
+ {$ui = [
+ 'title' => 'Usage Report E-mail Text - Below Target %'
+ ]}
+ {include file="ui/f6/sub-section-start.html"}
+
+ {* before_report *}
+ {$ui = [
+ 'field' => 'before_report',
+ 'value' => {$glmReportEmail.before_report},
+ 'label' => 'Content before reported numbers',
+ 'required' => true
+ ]}
+ {include file="ui/f6/editor.html"}
+
+ {* after_report *}
+ {$ui = [
+ 'field' => 'after_report',
+ 'value' => {$glmReportEmail.after_report},
+ 'label' => 'Content after reported numbers',
+ 'required' => true
+ ]}
+ {include file="ui/f6/editor.html"}
+
+ {include file="ui/f6/sub-section-end.html"}
+
+ {* Sub-Section Start *}
+ {$ui = [
+ 'title' => 'Usage Report E-mail Text - Above Target %'
+ ]}
+ {include file="ui/f6/sub-section-start.html"}
+
+ {* before_report *}
+ {$ui = [
+ 'field' => 'before_report_above_target',
+ 'value' => {$glmReportEmail.before_report_above_target},
+ 'label' => 'Content before reported numbers',
+ 'required' => true
+ ]}
+ {include file="ui/f6/editor.html"}
+
+ {* after_report *}
+ {$ui = [
+ 'field' => 'after_report_above_target',
+ 'value' => {$glmReportEmail.after_report_above_target},
+ 'label' => 'Content after reported numbers',
+ 'required' => true
+ ]}
+ {include file="ui/f6/editor.html"}
+
+ {include file="ui/f6/sub-section-end.html"}
+
{include file="ui/f6/section-end.html"}
{* Submit Button *}
{$ui = [
- 'class' => 'primary',
- 'label' => 'Update All Settings',
- 'submit' => true
+ 'class' => 'primary',
+ 'label' => 'Update All Settings',
+ 'submit' => true
]}
{include file="ui/f6/submit.html"}
font-size: 1em;
}
.glmbw-table .glmbw-th-light {
- font-weight: bold;
- text-align: left;
+ font-weight: bold;
+ text-align: left;
vertical-align: top;
- white-space: nowrap;
+ white-space: nowrap;
}
.glmbw-table th {
- font-weight: bold;
- text-align: left;
+ font-weight: bold;
+ text-align: left;
vertical-align: top;
- white-space: nowrap;
- padding: 0px;
- padding-left: .2rem;
+ white-space: nowrap;
+ padding: 0px;
+ padding-left: .2rem;
}
.glmbw-table td {
- font-weight: normal;
- font-size: .9em;
- text-align: left;
+ font-weight: normal;
+ font-size: .9em;
+ text-align: left;
vertical-align: top;
- padding: 0px;
- padding-left: .2rem;
- margin: 0px;
+ padding: 0px;
+ padding-left: .2rem;
+ margin: 0px;
}
.glmbw-table tr {
- margin-bottom: 0px;
+ margin-bottom: 0px;
padding-bottom: 0px;
}
.glmbw-image {
max-width: 90%;
- height: auto;
- width: auto\9; /* IE8 */
+ height: auto;
+ width: auto\9; /* IE8 */
}
.print-title {
font-weight: bold;
- font-size: 1em;
- text-align: center;
+ font-size: 1em;
+ text-align: center;
}
#print-date {
font-size: 1em;
- padding: 0px;
- margin: 0px;
+ padding: 0px;
+ margin: 0px;
}
.graphContainer {
}
.graphContainer .graphTitle {
- font-weight: bold;
+ font-weight: bold;
margin-bottom: 5px;
}
.graph {
}
.color-key-traffic {
- color: black !important;
+ color: black !important;
font-weight: bold;
}
.color-key-target {
- color: maroon !important;
+ color: maroon !important;
font-weight: bold;
}
.color-key-storage {
- color: gray !important;
+ color: gray !important;
font-weight: bold;
}
.color-key-incoming {
- color: red !important;
+ color: red !important;
font-weight: bold;
}
.color-key-outgoing {
- color: green !important;
+ color: green !important;
font-weight: bold;
}
.color-key-total {
- color: blue !important;
+ color: blue !important;
font-weight: bold;
}
</style>
// Date Only Pickers
$('.glm-date-input').datetimepicker({
- format: 'm/d/Y',
- lang: 'en',
- step: 15,
- opened: false,
+ format: 'm/d/Y',
+ lang: 'en',
+ step: 15,
+ opened: false,
closeOnWithoutClick: true,
- timepicker: false,
- onChangeDateTime:function(dp,$input){
- updateGraphs($input.val())
+ timepicker: false,
+ onChangeDateTime: function(dp,$input){
+ updateGraphs($input.val());
$('#displayThisDate').html($input.val());
}
});
var areaToPrint = $(this).attr('data-areaToPrint');
var position = $(this).offset();
$('#' + areaToPrint).printArea({
- mode: 'popup', //printable window is either iframe or browser popup
- popHt: 1400, // popup window height
- popWd: 1100, // popup window width
- popX: 200, // popup window screen X position
- popY: 200, //popup window screen Y position
- popTitle: 'Server Usage', // popup window title element
- popClose: true, // popup window close after printing
- extraCss: '', // Comma separated list of extra css to include
- extraHead: '', // Comma separated list of extra elements to be appended to head tag
- strict: false // strict or loose Transitional html 4.01 document standard or undefined to not include at all only for popup option
+ mode: 'popup', //printable window is either iframe or browser popup
+ popHt: 1400, // popup window height
+ popWd: 1100, // popup window width
+ popX: 200, // popup window screen X position
+ popY: 200, //popup window screen Y position
+ popTitle: 'Server Usage', // popup window title element
+ popClose: true, // popup window close after printing
+ extraCss: '', // Comma separated list of extra css to include
+ extraHead: '', // Comma separated list of extra elements to be appended to head tag
+ strict: false // strict or loose Transitional html 4.01 document standard or undefined to not include at all only for popup option
});
$('.datePrintExclude').show();
$('.datePrintInclude').hide();