Инфо сообщение об отсутствии истории по клику, правка ширины ячеек

parent 0ccd5763
......@@ -209,7 +209,15 @@ input[type="checkbox"]
border-bottom: 2px solid red;
}
.table.table-striped.admin.transactions thead tr th.OrderSum
.table.table-striped.admin.transactions thead tr th.ViewID,
.table.table-striped.admin.transactions thead tr th.OrderSum,
.table.table-striped.admin.transactions thead tr th.AdMoney
{
width: 1px;
}
.table.table-striped.admin.transactions thead tr th.OrderSum,
.table.table-striped.admin.transactions thead tr th.AdMoney
{
text-align: right;
}
......@@ -228,12 +236,12 @@ input[type="checkbox"]
/* .b-basket-content */
.table.table-striped.admin.transactions thead tr th.period
{
min-width: 100px;
width: 1px;
}
.table.table-striped.admin thead tr th.Timestamp
{
width: 100px;
width: 1px;
line-height: 14px;
}
......@@ -242,6 +250,11 @@ input[type="checkbox"]
line-height: 13px;
}
.table.table-striped.admin tbody td.Timestamp span
{
white-space: nowrap;
}
.table.table-striped.admin thead tr th.Basket
{
line-height: 14px;
......@@ -276,13 +289,6 @@ input[type="checkbox"]
text-align: center;
width: 55px;
}
.table.table-striped.admin.transactions thead tr th.OrderSum
{
width: 100px;
}
.table.table-striped.admin td.Basket
{
......@@ -469,4 +475,11 @@ input[type="checkbox"]
.b-filter__switch-item a:hover
{
text-decoration: none;
}
\ No newline at end of file
}
.click-history-info
{
height: 400px;
padding-top: 200px;
text-align: center;
}
\ No newline at end of file
......@@ -45,10 +45,8 @@ $src = $sxml['src'];
$error = $this->error;
if (!$error) {
$viewIdStats = $this->viewIdStats;
$cats = $this->cats;
}
?>
......@@ -67,79 +65,78 @@ if (!$error) {
<section class="b-content__work">
<div class="wrapp" style="position: relative;">
<div class="b-feeds-stat_data-loading"></div>
<?php //var_dump($viewIdStats) ?>
<?php if(!$viewIdStats): ?>
<?php //print_r($viewIdStats) ?>
<div class="click-history-info">
<h2>Извините, история по клику недоступна</h2>
</div>
<div class="chart-graph-stat-info">
<h2>По заданным параметрам статистика отсутствует</h2>
</div>
<div class="chart-graph-stat-error">
<h2>Ошибка в статистике</h2>
<div class="message"></div>
</div>
<?php else: ?>
<?php /* Таблица */ ?>
<div id="table-stat" class="b-table_wrapp">
<div class="b-content__loading"></div>
<table id="table-line" class="table table-striped admin transactions viewid">
<thead class="metric sortable">
<tr>
<?php foreach($cats as $name => $title): ?>
<th class="<?= $name ?>" data-id="<?= $name ?>">
<?php if ($name == 'Basket'): ?>
<b class="cat not-sorted" id="<?= $name ?>"><?= _t($title)?></b><br />
<b class="basket-link not-sorted">Товар</b> <b class="quantity not-sorted">Кол-во</b> <b class="price not-sorted">Цена</b>
<?php /* Таблица */ ?>
<div id="table-stat" class="b-table_wrapp">
<div class="b-content__loading"></div>
<table id="table-line" class="table table-striped admin transactions viewid">
<thead class="metric sortable">
<tr>
<?php foreach($cats as $name => $title): ?>
<th class="<?= $name ?>" data-id="<?= $name ?>">
<?php if ($name == 'Basket'): ?>
<b class="cat not-sorted" id="<?= $name ?>"><?= _t($title)?></b><br />
<b class="basket-link not-sorted">Товар</b> <b class="quantity not-sorted">Кол-во</b> <b class="price not-sorted">Цена</b>
<?php else: ?>
<b class="cat" id="<?= $name ?>"><?= _t($title)?></b>
<?php endif; ?>
</th>
<?php endforeach; ?>
</tr>
</thead>
<tbody>
<?php foreach($viewIdStats as $view_id): ?>
<tr>
<?php foreach($cats as $name => $title): ?>
<td class="<?= $name ?>" data-id="<?= $name ?>">
<?php if($name == 'StartTime' || $name == 'EndTime'): ?>
<?php
$date_time = explode(" ", $view_id[$name]);
?>
<span style="white-space: nowrap;">
<b><?= $date_time[1] ?></b>
<span><?= $date_time[0] ?></span>
</span>
<?php elseif($name == 'Basket'): ?>
<div class="b-basket-content">
<a class="view-id-url" href="<?=$view_id['URL'] ?>" target="_blank"><?= $view_id['URL'] ?></a>
<?php if(count($view_id[$name])>0): ?>
<table>
<tbody>
<?php foreach($view_id[$name] as $item): ?>
<tr>
<td><a class="basket-link" href="<?=$item['URL'] ?>" target="_blank"><?=$item['Title'] ?></a></td>
<td><span class="quantity"><?=$item['Quantity'] ?></span></td>
<td><span class="price"><?=$item['Price'] ?></span></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
</div>
<?php else: ?>
<b class="cat" id="<?= $name ?>"><?= _t($title)?></b>
<span class="cat"><?= $view_id[$name] ?></span>
<?php endif; ?>
</th>
<?php endforeach; ?>
</tr>
</thead>
<tbody>
<?php foreach($viewIdStats as $view_id): ?>
<tr>
<?php foreach($cats as $name => $title): ?>
<td class="<?= $name ?>" data-id="<?= $name ?>">
<?php if($name == 'StartTime' || $name == 'EndTime'): ?>
<?php
$date_time = explode(" ", $view_id[$name]);
?>
<span style="white-space: nowrap;">
<b><?= $date_time[1] ?></b>
<span><?= $date_time[0] ?></span>
</span>
<?php elseif($name == 'Basket'): ?>
<div class="b-basket-content">
<a class="view-id-url" href="<?=$view_id['URL'] ?>" target="_blank"><?= $view_id['URL'] ?></a>
<?php if(count($view_id[$name])>0): ?>
<table>
<tbody>
<?php foreach($view_id[$name] as $item): ?>
<tr>
<td><a class="basket-link" href="<?=$item['URL'] ?>" target="_blank"><?=$item['Title'] ?></a></td>
<td><span class="quantity"><?=$item['Quantity'] ?></span></td>
<td><span class="price"><?=$item['Price'] ?></span></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
</div>
<?php else: ?>
<span class="cat"><?= $view_id[$name] ?></span>
<?php endif; ?>
</td>
</td>
<?php endforeach; ?>
</tr>
<?php endforeach; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</tbody>
</table>
</div>
<?php endif; ?>
</div>
</section>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment