Вход Регистрация
Файл: templates/shop/history.tpl
Строк: 78
<? $this->layout('app', ['title' => 'История
платежей']) ?> <? $this->start('container') ?>
<script
src="/public/assets/js/lib/liteChart.min.js"></script>
<section class="pt-120 pb-90 default-bg"> <div
class="container"> <div
class="row"> <div
class="col-lg-12"> <div class="post-content-block
contact-form parsley-validate" data-animate="fadeInUp">
<h1 class="font-weight-bold mb-3
text-center">Статистика</h1>
<div
class="form-response"></div> <div
id="container"
class="chart_wrap"></div> <script
type="text/javascript"> $.getJSON('https://www.highcharts.com/samples/data/jsonp.php?filename=usdeur.json&callback=?',
function (data) { $toolsPeriod =
$('.js-valuta-tools-period'), $toolsView =
$('.js-valuta-tools-view'), Highcharts.chart('container', {
chart: { zoomType: 'x' }, title: {
text: '' }, xAxis: { categories: [<?php for ($x=0; $x<29;
$x++){ ?> '<?=date('d.m',time()-86400*$x);?>',<?php }
?>'<?=date('d.m',time()-86400*30);?>'], tickmarkPlacement:
'on', title: { enabled: false }, gridLineColor:
'#dadada', gridLineWidth: 0, }, yAxis: { opposite:
false, endOnTick: false, gridLineColor:
'#dadada', gridLineWidth: 1, maxPadding:
0.02, tickLength: 0, labels: { style: { color:
'#888' } }, showFirstLabel: false, title:
{ text: null } }, legend: { enabled:
false }, tooltip: { crosshairs: true,
shared: true, valueSuffix: ' руб.', zIndex: 10
}, plotOptions: { area: { fillColor: { linearGradient: { x1:
0, y1: 0, x2: 0, y2: 1 }, stops: [ [0,
"#80889E"], [1, "#bdc2cd"] ] }, lineColor:
'#ffd249', marker: { radius:
2, lineColor:"#00113c", fillColor:
"#fff" }, lineWidth: 1, states: { hover:
{ lineWidth: 1 } }, threshold: null } }, series: [{ type:
'area', name: "Сумма", data: [ <?php for ($x=0;
$x<30; $x++){ ?>
<?=sum_pay(date('d.m',time()-86400*$x),$shop['id']);?>,<?php }
?> ] } ] }); }); </script> <script
src="https://code.highcharts.com/highcharts.js"></script> <script
src="https://code.highcharts.com/modules/exporting.js"></script> <br>
<label>Доход за
<?=$array[date('n')];?>:</label> <?=$month;?> RUB
<br> <label>Доход за
<?=$array[date('n',time()-86400*30)];?>:</label>
<?=$month_last;?> RUB <br>
<label>Доход за <?=date('Y');?> г. :</label>
<?=$year['sum'];?> RUB <br>
<label>Общее кол-во платежей:</label>
<?=$pay_count;?>
</div> </div> </div>
</div> </div> </section>
<section class="pt-120 pb-120 default-bg"> <div
class="container"> <div class="row
justify-content-center"> <div
class="col-xl-6 col-lg-8"> <div
class="section-title text-center"
data-animate="fadeInUp">
<h1>История платежей</h1>
</div> </div>
</div> <div class="row">
<div class="col"> <!-- features
table wrap inner --> <div
class="features-table-wrap"
data-animate="fadeInUp">
<div class="table-responsive-lg">
<table class="features-table pt-sans text-center mb-0
table"> <tbody>
<tr>
<th>Сумма</th>
<th>Дата</th> <th>Комментарий</th> <th>Способ
оплаты</th> <th>Статус</th>
</tr>
<?php foreach ($items as $row): ?>
<tr>
<td><?=$row['summa'];?>
RUB</td> <td><?=date_ru($row['time']);?></td> <td><?=desc_pay($row['desc']);?></td> <td><?=$method[$row['method']];?></td> <td><?=$status[$row['status']];?></td>
</tr>
<?php endforeach; ?>
</tbody> <!-- End Table body
--> </table>
</div> </div> <!--
features table wrap inner --> </div>
</div> </div> </section> <div
class="text-center"> <?php echo $peger->display;
?> </div> <?
$this->stop() ?>
Онлайн: 0
Реклама