Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
addcpm-json
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Александр Чаплыгин
addcpm-json
Commits
723d395c
Commit
723d395c
authored
Apr 15, 2019
by
Александр Чаплыгин
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Инфо сообщение об отсутствии истории по клику, правка ширины ячеек
parent
0ccd5763
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
90 additions
and
80 deletions
+90
-80
styles-feeds-stat.css
src/public/css/styles-feeds-stat.css
+25
-12
cabinet-feed-click-history.phtml
src/templates/app/user/cabinet-feed-click-history.phtml
+65
-68
No files found.
src/public/css/styles-feeds-stat.css
View file @
723d395c
...
...
@@ -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
:
100
px
;
width
:
1
px
;
}
.table.table-striped.admin
thead
tr
th
.Timestamp
{
width
:
1
00
px
;
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
src/templates/app/user/cabinet-feed-click-history.phtml
View file @
723d395c
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment