Skip to content

Commit

Permalink
update - add orders stats big
Browse files Browse the repository at this point in the history
  • Loading branch information
CB9TOIIIA committed Sep 13, 2016
1 parent 39510e4 commit 00c123d
Show file tree
Hide file tree
Showing 5 changed files with 296 additions and 32 deletions.
26 changes: 26 additions & 0 deletions config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,32 @@
description="Например - Украина"
default=""/>
</fieldset>
<fieldset name="zakazi" label="Заказы">
<field
name="element_name"
type="text"
label="ELEMENT_ID - ИМЯ - в ShippingFields"
description=""
default=""/>
<field
name="element_tel"
type="text"
label="ELEMENT_ID - ТЕЛЕФОН - в ShippingFields"
description=""
default=""/>
<field
name="min_zakazov"
type="text"
label="Минимум заказов"
description="Для графика"
default=""/>
<field
name="min_money"
type="text"
label="Минимум выручка"
description="Для графика"
default=""/>
</fieldset>
<fieldset name="disqus" label="Disqus" addfieldpath="administrator/components/com_myjbzoostat/elements">
<field
name="disqus_url"
Expand Down
4 changes: 4 additions & 0 deletions elements/paramsetc.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
$rus = $params->rus;
$sng = $params->sng;
$ukr = $params->ukr;
$ElementName = $params->element_name;
$ElementTel = $params->element_tel;
$Min_Zakazov = $params->min_zakazov;
$Min_Money = $params->min_money;
$filterpopular = $params->filterpopular;
$perpagepopular = $params->perpagepopular;
$threshold = $params->threshold;
Expand Down
3 changes: 1 addition & 2 deletions myjbzoostat.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<authorUrl>http://cb9t.ru</authorUrl>
<copyright></copyright>
<license></license>
<version>1.9</version>
<version>2.0</version>
<description>MyJBZooStat - это компонент статистики и менеджер системы комментирования Disqus.</description>
<creationDate>28 June 2016</creationDate>
<administration>
Expand All @@ -19,7 +19,6 @@
<filename>composer.json</filename>
<filename>composer.lock</filename>
<filename>controller.php</filename>
<filename>.gitignore</filename>
<folder>helpers</folder>
<folder>controllers</folder>
<folder>views</folder>
Expand Down
39 changes: 21 additions & 18 deletions views/index/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -444,18 +444,21 @@

$datacurdate = json_decode($responcecurdate);

if (NULL !== $data->errors) {
$DataErrors = $data->errors;

$DataErrors = $data->errors;
foreach ($DataErrors as $DataError) {
$DataCode = $DataError->code;
$DataText = $DataError->text;
}
foreach ($DataErrors as $DataError) {
$DataCode = $DataError->code;
$DataText = $DataError->text;
}

if ($DataCode == 'ERR_NO_DATA' || $DataCode == 'ERR_TEMPORARY_UNAVAILABLE') {
echo "<h2 align='center'>Нет данных за выбранный период</h2>";
echo "<style>.row-fluid .span12 .item-page {display:none;}</style>";
if ($DataCode == 'ERR_NO_DATA' || $DataCode == 'ERR_TEMPORARY_UNAVAILABLE') {
echo "<h2 align='center'>Нет данных за выбранный период</h2>";
echo "<style>.row-fluid .span12 .item-page {display:none;}</style>";
}
}
// dump($DataCode,0,'$DataCode');



if(!is_null($data) && is_array($data->data) && count($data->data))

Expand Down Expand Up @@ -999,7 +1002,7 @@ function bd_nice_number($n) {
$gridmyrow = 'center myspan3 span3';
}

if ($CountYaBlocks == '3') {
if ($CountYaBlocks <= '3') {
$gridmyrow = 'center myspan3 span3';
}

Expand Down Expand Up @@ -1842,7 +1845,7 @@ function bd_nice_number($n) {
$gridmyrow = 'center myspan25 span2';
}

if ($CountYaBlocks == '3') {
if ($CountYaBlocks <= '3') {
$gridmyrow = 'center myspan3 span3';
}

Expand Down Expand Up @@ -2020,7 +2023,7 @@ function bd_nice_number($n) {
$gridmyrow = 'center myspan25 span2';
}

if ($CountYaBlocks == '3') {
if ($CountYaBlocks <= '3') {
$gridmyrow = 'center myspan3 span3';
}

Expand Down Expand Up @@ -2105,7 +2108,7 @@ function bd_nice_number($n) {
$gridmyrow = 'center myspan25 span2';
}

if ($CountYaBlocks == '3') {
if ($CountYaBlocks <= '3') {
$gridmyrow = 'center myspan3 span3';
}

Expand Down Expand Up @@ -2223,7 +2226,7 @@ function bd_nice_number($n) {
$gridmyrow = 'center myspan25 span2';
}

if ($CountYaBlocks == '3') {
if ($CountYaBlocks <= '3') {
$gridmyrow = 'center myspan3 span3';
}

Expand Down Expand Up @@ -2318,7 +2321,7 @@ function bd_nice_number($n) {
$gridmyrow = 'center myspan25 span2';
}

if ($CountYaBlocks == '3') {
if ($CountYaBlocks <= '3') {
$gridmyrow = 'center myspan3 span3';
}

Expand Down Expand Up @@ -2433,7 +2436,7 @@ function bd_nice_number($n) {
$gridmyrow = 'center myspan25 span2';
}

if ($CountYaBlocks == '3') {
if ($CountYaBlocks <= '3') {
$gridmyrow = 'center myspan3 span3';
}

Expand Down Expand Up @@ -2527,7 +2530,7 @@ function bd_nice_number($n) {
$gridmyrow = 'center myspan25 span2';
}

if ($CountYaBlocks == '3') {
if ($CountYaBlocks <= '3') {
$gridmyrow = 'center myspan3 span3';
}

Expand Down Expand Up @@ -2642,7 +2645,7 @@ function bd_nice_number($n) {
$gridmyrow = 'center myspan25 span2';
}

if ($CountYaBlocks == '3') {
if ($CountYaBlocks <= '3') {
$gridmyrow = 'center myspan3 span3';
}

Expand Down
Loading

0 comments on commit 00c123d

Please sign in to comment.