PHP File Manager
Editing File: overview.php
<div class="row"> <div class="col-sm-3"> <div class="index-stat-box"> <span class="stat-icon"><img src="/assets/images/icons/stats/customers.png" alt="" /></span> <span class="index-change change-<?php echo ($customers_stats->change == 0) ? 'none' : (($customers_stats->change > 0) ? 'increase' : 'decrease'); ?> tooltipped" title="Compared to <?php echo $customers_stats->last_week; ?> last week"><?php echo $customers_stats->change_text; ?></span> <h4><?php echo $customers_stats->current_week; ?></h4> <p class="stat-type">New Customers</p> </div> </div> <div class="col-sm-3"> <div class="index-stat-box"> <span class="stat-icon"><img src="/assets/images/icons/stats/orders.png" alt="" /></span> <span class="index-change change-<?php echo ($orders_stats->change == 0) ? 'none' : (($orders_stats->change > 0) ? 'increase' : 'decrease'); ?> tooltipped" title="Compared to <?php echo $orders_stats->last_week; ?> last week"><?php echo $orders_stats->change_text; ?></span> <h4><?php echo $orders_stats->current_week; ?></h4> <p class="stat-type">Orders</p> </div> </div> <div class="col-sm-3"> <div class="index-stat-box"> <span class="stat-icon"><img src="/assets/images/icons/stats/lorry.png" alt="" /></span> <span class="index-change change-<?php echo ($dispatch_stats->change == 0) ? 'none' : (($dispatch_stats->change > 0) ? 'increase' : 'decrease'); ?> tooltipped" title="Compared to <?php echo $dispatch_stats->last_week; ?> last week"><?php echo $dispatch_stats->change_text; ?></span> <h4><?php echo $dispatch_stats->current_week; ?></h4> <p class="stat-type">Orders Dispatched</p> </div> </div> <div class="col-sm-3"> <div class="index-stat-box"> <span class="stat-icon"><img src="/assets/images/icons/stats/money.png" alt="" /></span> <span class="index-change change-<?php echo ($revenue_stats->change == 0) ? 'none' : (($revenue_stats->change > 0) ? 'increase' : 'decrease'); ?> tooltipped" title="Compared to <?php echo display_money($revenue_stats->last_week); ?> last week"><?php echo $revenue_stats->change_text; ?></span> <h4><?php echo display_money($revenue_stats->current_week); ?></h4> <p class="stat-type">Revenue</p> </div> </div> </div> <div class="overview-block"> <h4>Search</h4> <form action="/search" method="get"> <div class="input-group"> <input type="text" name="q" class="form-control input-lg" placeholder="search for customers, orders or an order by ID, i.e. <?php echo '#O' . rand(100, 999) . '-' . rand(100, 999); ?>" autocomplete="off" spellcheck="false" /> <div class="input-group-btn"> <button type="submit" class="btn btn-lg btn-primary"><span class="glyphicon glyphicon-search"></span></button> </div> </div> </form> </div> <div class="overview-block"> <h4>Revenue <small>- comparsion to the last three months</small></h4> <div class="chart-block" style="width: 100%; height: 600px;"> <canvas id="revenue-chart"></canvas> </div> </div> <script type="text/javascript"> $(function() { var revenueLineChartContext = $('#revenue-chart').get(0).getContext('2d'), data = { labels: <?php echo json_encode($this->stats->generateDateSuffixes()); ?>, datasets: [ { label: "3 months ago", fillColor: "rgba(51, 114, 230, 0.05)", strokeColor: "rgba(51, 114, 230, 0.12)", pointColor: "rgba(51, 114, 230, 0.12)", pointStrokeColor: "#FFF", pointHighlightFill: "#E6EEFC", pointHighlightStroke: "#E6EEFC", data: <?php echo json_encode(array_values($revenue_months->month_3_revenue)); ?> }, { label: "Last month", fillColor: 'rgba(51, 114, 230, 0.03)', strokeColor: "rgba(51, 114, 230, 0.34)", pointColor: "rgba(51, 114, 230, 0.34)", pointStrokeColor: "#FFF", pointHighlightFill: "#B9CFF6", pointHighlightStroke: "#B9CFF6", data: <?php echo json_encode(array_values($revenue_months->month_2_revenue)); ?> }, { label: "Current month", fillColor: 'rgba(51, 114, 230, 0.01)', strokeColor: "#6A99ED", pointColor: "#6A99ED", pointStrokeColor: "#FFF", pointHighlightFill: "#6A99ED", pointHighlightStroke: "#6A99ED", data: <?php echo json_encode(array_values($revenue_months->month_1_revenue)); ?> }] }, revenueLineChart = new Chart(revenueLineChartContext).Line(data, { bezierCurveTension: 0.27, pointDotStrokeWidth: 3, datasetStrokeWidth: 3, tooltipTemplate: '', scaleGridLineColor: 'rgba(0, 0, 0, 0.07)', multiTooltipTemplate: "<%= datasetLabel %> - £<%= value %>", scaleLabel: "£<%= value %>" }); }); </script>
Cancel