Example #1
0
        width: 70% !important;
        margin: 1em auto !important;
    }
    .pure-g p{
        font-size: 150% !important;
    }


</style>

<h2 class="pages-title">
    <?php 
echo $translation["page"]["soutez"];
?>
</h2>

<div id="page-content" class="content pages-content">
    <?php 
$from = '2015-11-02 00:00:00';
$to = '2015-12-01 23:59:59';
$kills = getKills($db_ip, $db_port, $db_login, $db_pass, "soe-hlstats", $from, $to);
echo $translation["page"]["text"];
?>


    <?php 
echo getActivityHtml($kills, $translation);
?>
</div>

Example #2
0
                    lastDay = now;
                }else{
                    lastDay = new Date(date.getFullYear(), date.getMonth() + 1, 0);
                }

                var firstDay = new Date(date.getFullYear(), date.getMonth(), 1);

                $('input[name=from]').val(getFormattedString(firstDay));
                $('input[name=to]').val(getFormattedString(lastDay));
            }

            $("#month_left").click(function() {
                getDatesToInputs('prev');
            });

            $("#month_this").click(function() {
                getDatesToInputs('this');
            });

            $("#month_right").click(function() {
                getDatesToInputs('next');
            });
        });
    </script>
    <?php 
$activity = getActivity($db_ip, $db_port, $db_login, $db_pass, "soe-csgo", $from, $to);
echo getActivityHtml($activity, $translation);
?>
</div>