Exemplo n.º 1
0
</table>
</div>
<?php 
}
?>
<h2><?php 
echo $arrParams[$graph_type][3];
?>
</h2>
<?php 
$lAdmin->EndPrologContent();
if ($graph_type == "date") {
    $rsData = CTraffic::GetDailyList($by, $order, $arMaxMin, $arFilter, $is_filtered);
} else {
    $temp_graph_type = $graph_type;
    $rs = CTraffic::GetSumList($temp_graph_type, $arFilter);
    $ar = $rs->Fetch();
    switch ($graph_type) {
        case "hour":
            $start = 0;
            $end = 23;
            break;
        case "weekday":
            $start = 0;
            $end = 6;
            break;
        case "month":
            $start = 1;
            $end = 12;
            break;
    }
Exemplo n.º 2
0
        $find_site_id = array($_REQUEST["find_site_id"]);
    }
}
foreach ($find_site_id as $k => $v) {
    $v = trim($v);
    if (strlen($v) <= 0) {
        unset($find_site_id[$k]);
    } else {
        $find_site_id[$k] = $v;
    }
}
$site_filtered = !empty($find_site_id);
$arFilter = array("DATE1" => $find_date1, "DATE2" => $find_date2, "SITE_ID" => $find_site_id);
$arrTTF_FONT = array();
if ($find_graph_type != "date") {
    $rs = CTraffic::GetSumList($find_graph_type, $arFilter);
    $ar = $rs->Fetch();
    switch ($find_graph_type) {
        case "hour":
            $start = 0;
            $end = 23;
            break;
        case "weekday":
            $start = 0;
            $end = 6;
            if (LANGUAGE_ID != "en") {
                $arrTTF_FONT = array("X" => array("FONT_PATH" => "/bitrix/modules/statistic/ttf/verdana.ttf", "FONT_SIZE" => 8, "FONT_SHIFT" => 12));
            }
            break;
        case "month":
            $start = 1;