}
- if ($option == 'update_site') {
+ if ( $option == 'update_site' ) {
// Update the website table with certain values
$vals = filter_input_array( INPUT_POST,
'color_text' => FILTER_SANITIZE_STRING,
'color_buttontext' => FILTER_SANITIZE_STRING,
'popup_border' => FILTER_SANITIZE_STRING,
- 'popup_position' => FILTER_SANITIZE_STRING
+ 'popup_position' => FILTER_SANITIZE_STRING,
+ 'popup_width' => FILTER_VALIDATE_INT,
),true
);
color_text = '".$vals['color_text']."',
color_buttontext = '".$vals['color_buttontext']."',
popup_border = '".$vals['popup_border']."',
- popup_position = '".$vals['popup_position']."'
+ popup_position = '".$vals['popup_position']."',
+ popup_width = ".$vals['popup_width']."
WHERE name = '".$currentSiteName."'
";
if (!$bwdb->query($sql)) {
printf("Error: %s\n", $bwdb->error);
}
+ }
+ if ( $option == 'update_settings' ) {
+
// Update Reporting From Contact and Title (GLM)
$glmFromContact = [
'name' => filter_input( INPUT_POST, 'report_contact_name', FILTER_SANITIZE_STRING),
// Get list of sites in the bandwidth database
$websites = $this->bandwidthLastMonthAllSites($sortBy);
- } else {
- // Get the settings for the currently selected site
- $currentSite = bandwidthGetWebsiteSettingsFromName($currentSiteName);
}
+ // Get the settings for the currently selected site
+ $currentSite = bandwidthGetWebsiteSettingsFromName($currentSiteName);
+
+ // Fix old positioning option
+ if ( $currentSite['popup_position'] == 'Top' ) {
+ $currentSite['popup_position'] = 'Top Left';
+ }
+
+
// Get bandwidth stats for the current site
$stats = $this->getStatsAndCheckTargetExceeded($currentSite);
// Default text to use if the Cookie Message text is not supplied
if (trim($currentSite['cookie_message']) == '') {
$currentSite['cookie_message'] =
- '<p>This site uses temporary "Cookies" to store limited information that\'s '
- .'required to provide you with a consistent user experience. We don\'t store '
- .'personally identifying or other sensitive information in these Cookies and '
- .'these Cookies are erased when you close your Web Browser unless otherwise '
- .'stated when you click "Show more".</p><p>If you\'re on a public computer, '
- .'be sure to close all Web Browsers when you\'re done!</p>';
+ '<p>This site uses "Cookies" to store limited information '
+ .'required to provide you with a consistent user experience. '
+ .'Click "Show more" for additional information.</p>';
+
+ $sql = "
+ UPDATE website
+ SET cookie_message = '".$currentSite['cookie_message']."'
+ WHERE name = '".$currentSiteName."'
+ ";
+ if (!$bwdb->query($sql)) {
+ printf("Error: %s\n", $bwdb->error);
+ }
+
}
// Default text to use if reporting E-Mail content is not supplied
{* Form Summary Start *}
{$ui = [
- 'id' => 'usageSettings',
- 'title' => 'Settings Summary'
+ 'id' => 'siteSettings',
+ 'title' => 'Selected Site Summary',
+ 'blockMultiEdit' => 1
]}
{include file="ui/f6/form-summary-start.html"}
<div class="cell small-12 large-12 glm-f6-ui-nowrap"><u>Usage Reporting</u></div>
- <div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Monthly Traffic Target:</b></div>
- <div class="cell small-12 large-7">{$currentSite.target|string_format:"%.1f"} GB</div>
- <div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Disk Space Usage Target:</b></div>
- <div class="cell small-12 large-7">{$currentSite.disk_target|string_format:"%.1f"} GB</div>
- <div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Show Usage Graphs:</b></div>
- <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 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 medium-4 large-5 glm-f6-ui-nowrap"><b>Monthly Traffic Target:</b></div>
+ <div class="cell small-12 medium-8 large-7">{$currentSite.target|string_format:"%.1f"} GB</div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>Disk Space Usage Target:</b></div>
+ <div class="cell small-12 medium-8 large-7">{$currentSite.disk_target|string_format:"%.1f"} GB</div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>Show Usage Graphs:</b></div>
+ <div class="cell small-12 medium-8 large-7">{if $currentSite.show_usage}Yes{else}No{/if}</div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>Send Usage Reports:</b></div>
+ <div class="cell small-12 medium-8 large-7">{if $currentSite.send_enabled}Yes{else}No{/if}</div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>Customer Contact Name:</b></div>
+ <div class="cell small-12 medium-8 large-7">{if !empty($currentSite.cust_contact_name)}{$currentSite.cust_contact_name}{else}(Not supplied){/if}</div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>Customer Contact E-Mail:</b></div>
+ <div class="cell small-12 medium-8 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">
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>Show Cookie Pop-Up:</b></div>
+ <div class="cell small-12 medium-8 large-7">
{if $currentSite.show_cookie_popup}Yes{else}No{/if}
<br><a href="http://{$currentSite.name}?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>
- <div class="cell small-12 large-7">{$currentSite.cookie_message|nl2br}</div>
-
- <div class="cell small-12 large-12 glm-f6-ui-nowrap"><br><u>Cookie Pop-Up Colors</u></div>
-
- <div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Background:</b></div>
- <div class="cell small-12 large-7">{$currentSite.color_background}</div>
- <div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Buttons:</b></div>
- <div class="cell small-12 large-7">{$currentSite.color_buttons}</div>
- <div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Text:</b></div>
- <div class="cell small-12 large-7">{$currentSite.color_text}</div>
- <div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Button Text:</b></div>
- <div class="cell small-12 large-7">{$currentSite.color_buttontext}</div>
- <div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Pop-Up Border:</b></div>
- <div class="cell small-12 large-7">{$currentSite.popup_border}</div>
- <div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Position:</b></div>
- <div class="cell small-12 large-7">{$currentSite.popup_position}</div>
-
- <div class="cell small-12 large-12 glm-f6-ui-nowrap"><br><u>Privacy/Policy Page</u></div>
-
- <div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Privacy and Policy Contact:</b></div>
- <div class="cell small-12 large-7">{if !empty($currentSite.contact_name)}{$currentSite.contact_name}{else}(Name not set){/if}</div>
- <div class="cell small-12 large-5 glm-f6-ui-nowrap"> </div>
- <div class="cell small-12 large-7">{if !empty($currentSite.contact_org)}{$currentSite.contact_org}{else}(Organization not set){/if}</div>
- <div class="cell small-12 large-5 glm-f6-ui-nowrap"> </div>
- <div class="cell small-12 large-7">{if !empty($currentSite.contact_address)}{$currentSite.contact_address}{else}(Address line 1 not set){/if}</div>
- <div class="cell small-12 large-5 glm-f6-ui-nowrap"> </div>
- <div class="cell small-12 large-7">{if !empty($currentSite.contact_address2)}{$currentSite.contact_address2}{else}(Address line 2 not set){/if}</div>
- <div class="cell small-12 large-5 glm-f6-ui-nowrap"> </div>
- <div class="cell small-12 large-7">
- {if !empty($currentSite.contact_city)}{$currentSite.contact_city}{else}(City not set){/if},
- {if !empty($currentSite.contact_state)}{$currentSite.contact_state}{else}(State not set){/if}
- {if !empty($currentSite.contact_zip)}{$currentSite.contact_zip}{else}(Zip not set){/if},
- </div>
- <div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Contact Phone:</b></div>
- <div class="cell small-12 large-7">{if !empty($currentSite.contact_phone)}{$currentSite.contact_phone}{else}(Phone not set){/if}</div>
- <div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Contact E-Mail Address:</b></div>
- <div class="cell small-12 large-7">{if !empty($currentSite.contact_email)}{$currentSite.contact_email}{else}(Email not set){/if}</div>
- <div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Privacy/Policy Page:</b></div>
- <div class="cell small-12 large-7"><a href="{$moreInfoUrl}" target="policyPage">{$policyPageSlug}</a></div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>Cookie Pop-Up Timeout:</b></div>
+ <div class="cell small-12 medium-8 large-7">{$currentSite.cookie_popup_timeout} Days</div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>Cookie Message:</b></div>
+ <div class="cell small-12 medium-8 large-7">{$currentSite.cookie_message|nl2br}</div>
{include file="ui/f6/sub-section-end.html"}
{* Sub-Section Start *}
{$ui = [
- 'title' => 'Global Settings',
+ 'title' => '',
'wrapSize' => 6
]}
{include file="ui/f6/sub-section-start.html"}
- <div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Monthly Reporting Threshold:</b></div>
- <div class="cell small-12 large-7">At or above {$threshold|string_format:"%.0f"}% of site's target levels</div>
- <div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Enable Sending Usage Reports:</b></div>
- <div class="cell small-12 large-7">{if $sendReportsEnabled}YES{else}NO{/if}</div>
-
- <div class="cell small-12 large-12 glm-f6-ui-nowrap"><br><u>Usage Report E-Mail "From:" Settings</u></div>
-
- <div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>Name:</b></div>
- <div class="cell small-12 large-7">{if !empty($glmFromContact.name)}{$glmFromContact.name}{else}(Name not set){/if}</div>
- <div class="cell small-12 large-5 glm-f6-ui-nowrap"><b>E-Mail Address:</b></div>
- <div class="cell small-12 large-7">{if !empty($glmFromContact.name)}{$glmFromContact.email}{else}(Email not set){/if}</div>
- <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>Cookie Pop-Up Appearance</u></div>
+
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>Background:</b></div>
+ <div class="cell small-12 medium-8 large-7">{$currentSite.color_background}</div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>Buttons:</b></div>
+ <div class="cell small-12 medium-8 large-7">{$currentSite.color_buttons}</div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>Text:</b></div>
+ <div class="cell small-12 medium-8 large-7">{$currentSite.color_text}</div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>Button Text:</b></div>
+ <div class="cell small-12 medium-8 large-7">{$currentSite.color_buttontext}</div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>Pop-Up Border:</b></div>
+ <div class="cell small-12 medium-8 large-7">{$currentSite.popup_border}</div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>Position:</b></div>
+ <div class="cell small-12 medium-8 large-7">{$currentSite.popup_position}</div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>Width:</b></div>
+ <div class="cell small-12 medium-8 large-7">{$currentSite.popup_width}px</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-12 glm-f6-ui-nowrap"><br><u>Privacy/Policy Page</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>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>Privacy and Policy Contact:</b></div>
+ <div class="cell small-12 medium-8 large-7">{if !empty($currentSite.contact_name)}{$currentSite.contact_name}{else}(Name not set){/if}</div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"> </div>
+ <div class="cell small-12 medium-8 large-7">{if !empty($currentSite.contact_org)}{$currentSite.contact_org}{else}(Organization not set){/if}</div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"> </div>
+ <div class="cell small-12 medium-8 large-7">{if !empty($currentSite.contact_address)}{$currentSite.contact_address}{else}(Address line 1 not set){/if}</div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"> </div>
+ <div class="cell small-12 medium-8 large-7">{if !empty($currentSite.contact_address2)}{$currentSite.contact_address2}{else}(Address line 2 not set){/if}</div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"> </div>
+ <div class="cell small-12 medium-8 large-7">
+ {if !empty($currentSite.contact_city)}{$currentSite.contact_city}{else}(City not set){/if},
+ {if !empty($currentSite.contact_state)}{$currentSite.contact_state}{else}(State not set){/if}
+ {if !empty($currentSite.contact_zip)}{$currentSite.contact_zip}{else}(Zip not set){/if},
+ </div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>Contact Phone:</b></div>
+ <div class="cell small-12 medium-8 large-7">{if !empty($currentSite.contact_phone)}{$currentSite.contact_phone}{else}(Phone not set){/if}</div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>Contact E-Mail Address:</b></div>
+ <div class="cell small-12 medium-8 large-7">{if !empty($currentSite.contact_email)}{$currentSite.contact_email}{else}(Email not set){/if}</div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>Privacy/Policy Page:</b></div>
+ <div class="cell small-12 medium-8 large-7"><a href="{$moreInfoUrl}" target="policyPage">{$policyPageSlug}</a></div>
{include file="ui/f6/sub-section-end.html"}
+
</div>
</div>
{* Form Edit Start *}
{$ui = [
- 'id' => 'usageSettings',
+ 'id' => 'siteSettings',
'title' => 'Edit Settings'
]}
{include file="ui/f6/form-edit-start.html"}
{* Sub-Section Start *}
{$ui = [
- 'title' => 'Usage Reporting'
+ 'title' => 'Usage Reporting',
+ 'wrapSize' => 6
]}
{include file="ui/f6/sub-section-start.html"}
selected below.
See "Additional Notices" to select other standard
notices to display based on what is included in Web site.
- '
+ ',
+ 'wrapSize' => 6
]}
{include file="ui/f6/sub-section-start.html"}
{* Sub-Section Start *}
{$ui = [
- 'title' => 'Cookie Pop-Up Colors and Positioning'
+ 'title' => 'Cookie Pop-Up Colors and Positioning',
+ 'wrapSize' => 6
]}
{include file="ui/f6/sub-section-start.html"}
'value' => {$currentSite.popup_position},
'default' => 'top',
'label' => 'Pop-Up Position',
- 'list' => ['Top' => 'Top', 'Bottom' => 'Bottom'],
+ 'list' => [
+ 'Top Left' => 'Top Left',
+ 'Top Right' => 'Top Right',
+ 'Bottom Left' => 'Bottom Left',
+ 'Bottom Right' => 'Bottom Right'
+ ],
'noWrap' => true
]}
{include file="ui/f6/radioButtons.html"}
+ {* popup_width *}
+ {$ui = [
+ 'field' => 'popup_width',
+ 'value' => {$currentSite.popup_width},
+ 'label' => 'Cookie Pop-Up Width in Pixels',
+ 'required' => true,
+ 'min' => 200,
+ 'max' => 2000,
+ 'width' => 5,
+ 'helpText' => 'This is the maximum width for the cookie pop-up box. Depending on the site, the box may float to the left of the page.',
+ 'errorText' => 'Must be between 200 and 2000 px.'
+ ]}
+ {include file="ui/f6/number.html"}
+
{include file="ui/f6/sub-section-end.html"}
{* Sub-Section Start *}
{$ui = [
- 'title' => 'Privacy/Policy Page Contact Information'
+ 'title' => 'Privacy/Policy Page Contact Information',
+ 'wrapSize' => 6
]}
{include file="ui/f6/sub-section-start.html"}
{include file="ui/f6/section-end.html"}
+ {* Submit Button *}
+ {$ui = [
+ 'class' => 'primary',
+ 'label' => 'Update Site Settings',
+ 'submit' => true
+ ]}
+ {include file="ui/f6/submit.html"}
+
+ {include file="ui/f6/form-edit-end.html"}
+
+ {include file="ui/f6/grid-end.html"}
+
+ {include file="ui/f6/form-end.html"}
+
+ {* Form Start *}
+ {$ui = [
+ 'action' => "{$thisUrl}?page={$thisPage}&selected_site={$currentSite.name}",
+ 'method' => 'POST',
+ 'validate' => true,
+ 'validateFocusMsg' => true,
+ 'leaveModifiedFormCheck' => true
+ ]}
+ {include file="ui/f6/form-start.html"}
+
+ <input type="hidden" name="option" value="update_settings">
+ <input type="hidden" name="site_sort" value="$site_sort">
+ <input type="hidden" name="selected_site" value="{$currentSite.name}">
+
+ {* Grid Start *}
+ {$ui = [
+ 'sectionColor' => '#ffE',
+ 'nowrap' => true
+ ]}
+ {include file="ui/f6/grid-start.html"}
+
+ {* Form Summary Start *}
+ {$ui = [
+ 'id' => 'usageSettings',
+ 'title' => 'Global Settings Summary',
+ 'blockMultiEdit' => 1
+ ]}
+ {include file="ui/f6/form-summary-start.html"}
+
+ <div class="cell small-12 callout glm-f6-ui-section-start">
+ <div class="grid-x grid-margin-x">
+
+ {* Sub-Section Start *}
+ {$ui = [
+ 'title' => '',
+ 'wrapSize' => 6
+ ]}
+ {include file="ui/f6/sub-section-start.html"}
+
+
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>Monthly Reporting Threshold:</b></div>
+ <div class="cell small-12 medium-8 large-7">At or above {$threshold|string_format:"%.0f"}% of site's target levels</div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>Enable Sending Usage Reports:</b></div>
+ <div class="cell small-12 medium-8 large-7">{if $sendReportsEnabled}YES{else}NO{/if}</div>
+
+ <div class="cell small-12 large-12 glm-f6-ui-nowrap"><br><u>Usage Report E-Mail "From:" Settings</u></div>
+
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>Name:</b></div>
+ <div class="cell small-12 medium-8 large-7">{if !empty($glmFromContact.name)}{$glmFromContact.name}{else}(Name not set){/if}</div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>E-Mail Address:</b></div>
+ <div class="cell small-12 medium-8 large-7">{if !empty($glmFromContact.name)}{$glmFromContact.email}{else}(Email not set){/if}</div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>Subject:</b></div>
+ <div class="cell small-12 medium-8 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 medium-4 large-5 glm-f6-ui-nowrap"><b>Before Report:</b></div>
+ <div class="cell small-12 medium-8 large-7">{wpautop($glmReportEmail.before_report)}</div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>After Report:</b></div>
+ <div class="cell small-12 medium-8 large-7">{wpautop($glmReportEmail.after_report)}</div>
+
+ {include file="ui/f6/sub-section-end.html"}
+
+ {* Sub-Section Start *}
+ {$ui = [
+ 'title' => '',
+ 'wrapSize' => 6
+ ]}
+ {include file="ui/f6/sub-section-start.html"}
+
+ <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 medium-4 large-5 glm-f6-ui-nowrap"><b>Before Report:</b></div>
+ <div class="cell small-12 medium-8 large-7">{wpautop($glmReportEmail.before_report_above_target)}</div>
+ <div class="cell small-12 medium-4 large-5 glm-f6-ui-nowrap"><b>After Report:</b></div>
+ <div class="cell small-12 medium-8 large-7">{wpautop($glmReportEmail.after_report_above_target)}</div>
+
+ {include file="ui/f6/sub-section-end.html"}
+ </div>
+ </div>
+
+
+
+ {include file="ui/f6/form-summary-end.html"}
+
+ {* Form Edit Start *}
+ {$ui = [
+ 'id' => 'usageSettings',
+ 'title' => 'Edit Settings'
+ ]}
+ {include file="ui/f6/form-edit-start.html"}
+
+
{* Section Start *}
{$ui = [
'title' => 'Global Settings'
{* Sub-Section Start *}
{$ui = [
- 'title' => '<b>NOTE: </b>The settings below affect all sites!'
+ 'title' => '<b>NOTE: </b>The settings below affect all sites!',
+ 'wrapSize' => 6
]}
{include file="ui/f6/sub-section-start.html"}
{* Sub-Section Start *}
{$ui = [
- 'title' => 'Usage Report E-mail "From" Information'
+ 'title' => 'Usage Report E-mail "From" Information',
+ 'wrapSize' => 6
]}
{include file="ui/f6/sub-section-start.html"}
{* Sub-Section Start *}
{$ui = [
- 'title' => 'Usage Report E-mail Text - Below Target %'
+ 'title' => 'Usage Report E-mail Text - Below Target %',
+ 'wrapSize' => 6
]}
{include file="ui/f6/sub-section-start.html"}
{* Sub-Section Start *}
{$ui = [
- 'title' => 'Usage Report E-mail Text - Above Target %'
+ 'title' => 'Usage Report E-mail Text - Above Target %',
+ 'wrapSize' => 6
]}
{include file="ui/f6/sub-section-start.html"}
{* Submit Button *}
{$ui = [
'class' => 'primary',
- 'label' => 'Update All Settings',
+ 'label' => 'Update Global Settings',
'submit' => true
]}
{include file="ui/f6/submit.html"}
- {include file="ui/f6/form-edit-end.html"}
+ {include file="ui/f6/form-edit-end.html"}
{include file="ui/f6/grid-end.html"}