Skip to content

Commit

Permalink
fix date
Browse files Browse the repository at this point in the history
  • Loading branch information
CB9TOIIIA committed Nov 16, 2016
1 parent 4d965f7 commit a85e022
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 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>2.5</version>
<version>2.5.1</version>
<description><![CDATA[MyJBZooStat - это компонент статистики и менеджер системы комментирования Disqus.<br><br><iframe frameborder='0' allowtransparency='true' scrolling='no' src='https://tpv.sr/1QoBNn1/' width='510' height='300'></iframe>]]> </description>
<creationDate>28 June 2016</creationDate>
<administration>
Expand Down
8 changes: 7 additions & 1 deletion views/articles/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
});
</script>';


//JUST DO IT 😹 $this->app ----> $app

?>
Expand Down Expand Up @@ -335,9 +336,14 @@ function rdate($param, $time=0) {
echo "</thead>";
echo "<tbody>";

usort($datearraydate);
foreach ($datearraydate as $valtagdate => $valuecount ) {
$newdate = "01.".$valtagdate;
$dateformat = date("Y-m-d", strtotime("+0 seconds", strtotime($newdate)));
$dateformat2 = $dateformat.' 00:00';
$dateorder = strtotime($newdate);
echo "<tr>";
echo "<td>";
echo "<td data-order='{$dateorder}'>";
echo $datearraydate[] = ''.$valtagdate. '</td><td>'. $valuecount.'</td>';
echo "</tr>";

Expand Down
9 changes: 6 additions & 3 deletions views/auhorsprofile/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -707,13 +707,16 @@ function rdate($param, $time=0) {
echo "<td>Количество публикаций <img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABmUlEQVQ4T6WTPUgcURDHZ2bX7w+0VLCwFPQu4e27AxvPpLIQrQWtBFNoZ2NiJxj7NFGsBC2vsNFC9JLO213Wvc7OQrRUBA3q2xlZYWEjZj3M697Mm9/M/OcNwn8eTMeXSiX76ub2lxCu17zqVto3WCzmLJHFsFqdSdv/AiilGgzSgyB8rbnu9+ShUqrnUeAUiToIaS1wj5cS35uAONggHYJwPyA1AYAIwrckQSbgOVjoiIF7iHAHAL8A8zYQTQnIcs3zVjMBecfZY5Zhy6IxBhhBgdXb66vm9q6uDQGcJoTRTMCg1n3E3Fvz/eOc1ksxwBZu9H0/yms9Gbpu+U0NErFeAB7rFrEuwAfHmTjxvF2llJ0eY95xChRF50EQXPyzgpzWn1HgAAA2zJ+7Bbul9T7+BxZixZhonyz6HbrueGYLea1XQGBZIthEC2YB5CezTBHQJYn5lFlB0mMCie8ifI9CZ0lwbKtLxI+Fwg9mmWfhG5t5IM5cl4jp5RhSqkzGrIRhGKTtOacwgyxz3Z1tI5VKxbw6xvds9hPRaxT6nhWaoAAAAABJRU5ErkJggg=='></td>";
echo "</tr>";
echo "</thead>";

usort($datearraydate);
foreach ($datearraydate as $valtagdate => $valuecount ) {

$newdate = "01.".$valtagdate;
$dateformat = date("Y-m-d", strtotime("+0 seconds", strtotime($newdate)));
$dateformat2 = $dateformat.' 00:00';
$dateorder = strtotime($newdate);
$datearraydate[] = '<li>'.$valtagdate. ' ('. $valuecount.')</li>';

echo "<tr>";
echo "<td>{$valtagdate}</td>";
echo "<td data-order='{$dateorder}'>{$valtagdate}</td>";
echo "<td>{$valuecount}</td>";
echo "</tr>";
}
Expand Down

0 comments on commit a85e022

Please sign in to comment.