📁
SKYSHELL MANAGER
PHP v8.2.31
Create
Create
Path:
root
/
home
/
thevaxnx
/
nativize.com
/
staging
/
wp-includes
/
js
/
tinymce
/
themes
/
Name
Size
Perm
Actions
📁
inlite
-
0755
🗑️
🏷️
🔒
📁
modern
-
0755
🗑️
🏷️
🔒
📄
wp-links-opml.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: trends.tpl
<div class="form-horizontal controls-block controls-block-leftm"> <div class="row"> <div class="col-xs-12 col-sm-12 col-md-6"> <div class="row"> <div class="col-xs-12"> <div class="form-group"> <div class="col-xs-12 col-sm-9 col-md-12 col-lg-12"> <label>Select Campaign</label> {include file='partControlSelectCampaign.tpl'} </div> <div class="col-xs-12 col-sm-3 hidden-md hidden-lg padding-as-label"> {include file='partControlEditCampaign.tpl'} </div> </div> </div> </div> <div class="row"> <div class="col-xs-12"> <div class="form-group"> <div class="col-xs-12 clearfix"> <div class="pull-left"> <label>Date Range</label> <div class="form-inline-always"> {include file='partControlIntervalJs.tpl'} {include file='partControlIntervalFrom.tpl' dateInputWidth=136 showTextFrom=true} to {include file='partControlIntervalTo.tpl' dateInputWidth=136 showTextTo=true} {include file='partControlIntervalRefreshBtn.tpl' showText=false} {include file='partControlIntervalSelect.tpl' intervalSelectWidth=124} </div> </div> <div class="pull-right"> <label>View Type</label> <div> <select name="ddlViewType" id="ddlViewType" onchange="changeCampaign(true)" class="form-control" style="width: 124px;"> {html_options options=$viewTypes selected=$reportTypeID} </select> </div> </div> </div> </div> </div> {if $reportTypeID != 18} <div class="col-xs-12"> <div class="form-group"> <div class="col-xs-12"> <label>Chart View</label> <div> <div class="form-inline-always"> <select id="ddlChartColumns{$reportTypeID}" name="ddlChartColumns{$reportTypeID}" onchange="ajaxLoadChartTrends(this)" class="form-control"> {html_options options=$chartColumnsArray selected=$selectedColumn} </select> and <select id="ddlChartColumnsS{$reportTypeID}" name="ddlChartColumnsS{$reportTypeID}" onchange="ajaxLoadChartTrends(this)" class="form-control"> {html_options options=$chartColumnsSArray selected=$selectedColumnS} </select> <img src="images/spinner.gif" alt="Working..." id="spinc{$reportTypeID}" style="display:none"/> </div> </div> </div> </div> </div> {/if} </div> </div> <div class="col-xs-12 col-sm-12 col-md-6"> <div class="row"> <div class="col-xs-12 clearfix"> <div class="pull-left hidden-xs hidden-sm" style="margin-right: 30px; margin-top: 27px;"> {include file='partControlEditCampaign.tpl' extraClass='btn-sm'} </div> <div class="pull-left" style="margin-top: -5px;"> {if $reportTypeID != 8 && $reportTypeID != 18} <div class="form-group"> <label>Filter by Day</label> <div> <label for="chkDayAll" class="cpv-checkbox font-weight-normal"> <input type="checkbox" name="chkDayAll" id="chkDayAll" onchange="clickDayAll()" /> <i></i> All Days<span class="display-inline-block" style="width: 9px;"></span> </label> <label for="chkDayMonday" class="cpv-checkbox font-weight-normal"> <input type="checkbox" name="chkDayMonday" id="chkDayMonday" {if $dayMonday}checked="checked"{/if}/> <i></i> Monday </label> <label for="chkDayTuesday" class="cpv-checkbox font-weight-normal"> <input type="checkbox" name="chkDayTuesday" id="chkDayTuesday" {if $dayTuesday}checked="checked"{/if}/> <i></i> Tuesday<span class="display-inline-block" style="width: 5px;"></span> </label> <label for="chkDayWednesday" class="cpv-checkbox font-weight-normal"> <input type="checkbox" name="chkDayWednesday" id="chkDayWednesday" {if $dayWednesday}checked="checked"{/if}/> <i></i> Wednesday </label> <br/> <div style="margin-top: -6px; margin-bottom: -18px;"> <label for="chkDayThursday" class="cpv-checkbox font-weight-normal"> <input type="checkbox" name="chkDayThursday" id="chkDayThursday" {if $dayThursday}checked="checked"{/if}/> <i></i> Thursday </label> <label for="chkDayFriday" class="cpv-checkbox font-weight-normal"> <input type="checkbox" name="chkDayFriday" id="chkDayFriday" {if $dayFriday}checked="checked"{/if}/> <i></i> Friday<span class="display-inline-block" style="width: 12px;"></span> </label> <label for="chkDaySaturday" class="cpv-checkbox font-weight-normal"> <input type="checkbox" name="chkDaySaturday" id="chkDaySaturday" {if $daySaturday}checked="checked"{/if}/> <i></i> Saturday<span class="display-inline-block" style="width: 2px;"></span> </label> <label for="chkDaySunday" class="cpv-checkbox font-weight-normal"> <input type="checkbox" name="chkDaySunday" id="chkDaySunday" {if $daySunday}checked="checked"{/if}/> <i></i> Sunday </label> </div> </div> </div> {/if} </div> </div> </div> <div class="row"> <div class="col-xs-12"> <div class="form-group" style="margin-top: {if $reportTypeID != 8 && $reportTypeID != 18}-8{else}22{/if}px;"> <div class="col-xs-12"> <label>Filters</label> <div> {include file='partFiltersSection.tpl' controlWidth=180} </div> </div> </div> </div> </div> </div> </div> </div> {if $reportTypeID != 18} <div> <div class="chart-container-trends" style="margin-top: 0;"> <div id="chartplaceholder{$reportTypeID}" class="chart-placeholder"></div> </div> <div id="charttip{$reportTypeID}" class="charttip"></div> </div> {/if} {if $reportTypeID == 18} <br/> <div class="powerwidget cold-grey" data-widget-editbutton="false" data-widget-deletebutton="false" data-widget-sortable="false" data-widget-icon="entypo entypo-thermometer" id="wdgTrendsHeatmap"> <header> <h2>Trends Heatmap</h2> </header> <div class="inner-spacer"> <div> <div class="form-horizontal"> <div class="form-group" style="margin-bottom: 0px;"> <label class="control-label col-md-2">Data Type</label> <div class="col-md-2"> <select name="ddlDataType" id="ddlDataType" onchange="changeCampaign(true)" class="form-control"> {html_options options=$availableDataTypesArray selected=$dataType} </select> </div> <div class="col-md-8"> <div class="text-right"> <span style="display: inline-block; font-weight: bold; margin-bottom: 10px;" class="text-center"> Color Scale<br/> Cold <img src="images/trends-color-scale.png" alt="Color Scale"/> Hot </span> </div> </div> </div> </div> <table class="table table-bordered table-hover tbl-responsive"> <thead> <tr> <th>Day/Hour</th> <th>Sun</th> <th>Mon</th> <th>Tue</th> <th>Wed</th> <th>Thu</th> <th>Fri</th> <th>Sat</th> <th>Total</th> </tr> </thead> <tbody> {for $i = 0 to 24} <tr> <th style="padding: 2px 8px;">{$reportRows[$i][0]}</th> {for $j=1 to 8} <td class="{$reportRows[$i][$j]["Color"]}" style="padding: 2px 8px;">{$reportRows[$i][$j]["Value"]}</td> {/for} </tr> {/for} </tbody> </table> </div> </div> </div> {else} <div class="powerwidget dark-blue" data-widget-icon="fa fa-search" data-widget-sortable="false" data-widget-deletebutton="false" data-widget-editbutton="false" id="wdgTrendsStats"> <header> <h2>Trend Stats</h2> </header> <div class="inner-spacer padding-0"> <div> <table id="tbl{$selectedCampaignID}-{$reportTypeID}" class="draggable {$theme_table_classes} tbl-responsive{* tbl-responsive-fixed-col*} margin-top-1px margin-bottom-0"> {include file='partHeaderRow.tpl' columns=$visibleColumns} {include file='partNormalRows.tpl' columns=$visibleColumns rows=$reportRows} {include file='partTotalsRow.tpl' columns=$visibleColumns totals=$totalsRow} </table> </div> </div> </div> {/if} <div class="row exportrow"> {if $reportTypeID == 13} <button onclick="window.location.href = '{$exportAllLink}'; return false" class="btn btn-primary" data-toggle="tooltip" data-placement="right" title="Export Table as CSV">{$icon_export nofilter} Export All - CSV</button> {/if} <button onclick="window.location.href = '{$exportLink}'; return false" class="btn btn-primary" data-toggle="tooltip" data-placement="right" title="Export Table as CSV">{$icon_export nofilter} Export CSV</button> </div> <br/><br/><br/><br/> <input type="hidden" id="hidSelectedCampaignID" value="{$selectedCampaignID}"/> <input type="hidden" id="hidReportTypeID" value="{$reportTypeID}"/> <input type="hidden" id="hidWhereClause" value="{$whereClause}"/> <input type="hidden" id="hidIntervalWhere" value="{$intervalFrom}|{$intervalTo}"/> <input type="hidden" id="hidExcludeDays" value="{if $reportTypeID == 13}{implode(',', $excludeDays)}{/if}"/> <script type="text/javascript"> {literal} $(document).ready(function(){ /* var iframe = $('#divChart > iframe'); iframe.css('height', Math.round(iframe.width() * 0.48)+'px'); */ /* setTimeout(function(){ $('.table').each(function(){ var id = 0; ++id; var tbl = $(this); tbl.css('layout-table', 'fixed'); //var tbl_w = tbl.width(); //var tbl_par_w = tbl.parent().width(); if (1) { tbl.wrap('<div id="cpvlab_sc_'+id+'" class="cpvlab_scrollable_cont"></div>'); //tbl.parent().before('<div style="overflow-x: auto;"><div id="cpvlab_sic_'+id+'" style="width: '+tbl.width()+'px;"> </div></div>'); } //$(window).resize(function(){ // $('#cpvlab_sic_'+id).css('width', $('#cpvlab_sc_'+id+' > table').width()+'px'); //}); //tbl.find('tr > td:first-child, tr > th:first-child').css('position', 'absolute'); var col1_w = tbl.find('> tbody > tr > td:eq(0)').width(); tbl.children('thead, tbody, tfoot').each(function(){ $(this).children('tr').each(function(){ var row_ch = $(this).children('th, td'); var col1 = row_ch.filter(':eq(0)'); var col2 = row_ch.filter(':eq(1)'); var w = col1_w; //col1.innerWidth(); var h = $(this).height(); var pt = col1.css('padding-top'); var pb = col1.css('padding-bottom'); if (col1.css('background-color') == 'transparent') { col1.css('background-color', '#ffa'); } col1.css('position', 'absolute'); col1.css('top', 'auto'); col2.css('width', (w+col2.width())+'px'); col2.css('padding-left', w+'px'); col1.css('width', w+'px'); col1.css('padding-top', pt); col1.css('padding-bottom', pb); col1.css('height', col2.height()+'px'); col1.css('background-color', col2.css('background-color')); }); }); }); }, 1000); */ }); function changeCampaign(withFilters) { var redirectUrl = 'trends.php?camp=' + $("#ddlCampaigns").val() + "&type=" + $("#ddlViewType").val() + "&int=" + $("#ddlInterval").val() + ($("#ddlInterval").val() == 4 ? "&intfrom=" + encodeURIComponent($("#txtIntervalFrom").val()) + "&intto=" + encodeURIComponent($("#txtIntervalTo").val()) : ''); if ($("#ddlViewType").val() != 8 && $("#ddlViewType").val() != 18) { var daysNumber = ($('#chkDayMonday').prop("checked") ? 1 : 0) + ($('#chkDayTuesday').prop("checked") ? 2 : 0) + ($('#chkDayWednesday').prop("checked") ? 4 : 0) + ($('#chkDayThursday').prop("checked") ? 8 : 0) + ($('#chkDayFriday').prop("checked") ? 16 : 0) + ($('#chkDaySaturday').prop("checked") ? 32 : 0) + ($('#chkDaySunday').prop("checked") ? 64 : 0); if (daysNumber <= 0 || daysNumber > 127) daysNumber = 127; redirectUrl += "&days=" + daysNumber; } if ($("#ddlViewType").val() == 18 && $("#ddlDataType").length > 0) { redirectUrl += "&data=" + $("#ddlDataType").val(); } if (typeof withFilters !== 'undefined' && withFilters) { $selectedOptions = $('#ddlFilterTarget').find("option:selected").length; if ($selectedOptions != 0 && $selectedOptions != $('#hidFilterTargetTotal').val()) redirectUrl += '&ft=' + $('#ddlFilterTarget').val(); $selectedOptions = $('#ddlFilterLP').find("option:selected").length; if ($selectedOptions != 0 && $selectedOptions != $('#hidFilterLPTotal').val()) redirectUrl += '&fl=' + $('#ddlFilterLP').val(); $selectedOptions = $('#ddlFilterOffer').find("option:selected").length; if ($selectedOptions != 0 && $selectedOptions != $('#hidFilterOfferTotal').val()) redirectUrl += '&fo=' + $('#ddlFilterOffer').val(); } window.location.href = redirectUrl; } function clickDayAll() { $('#chkDayMonday').prop("checked", true); $('#chkDayTuesday').prop("checked", true); $('#chkDayWednesday').prop("checked", true); $('#chkDayThursday').prop("checked", true); $('#chkDayFriday').prop("checked", true); $('#chkDaySaturday').prop("checked", true); $('#chkDaySunday').prop("checked", true); $('#chkDayAll').prop("checked", false); } {/literal} {if $reportTypeID != 18} $(document).ready(function() { ajaxLoadChartTrends(); }); {/if} </script> <style> {literal} .controls-block { max-width: 1300px !important; } .tbl-responsive-container { margin-bottom: 0 !important; } {/literal} </style>
Save