示例#1
0
if (count($find_banner_id) < 2) {
    $find_banner_summa = 'Y';
}
$arrDays = CAdvBanner::GetDynamicList($arFilter, $arrLegend, $is_filtered);
$arShow = $find_what_show;
$filter_selected = 0;
if (is_array($find_banner_id) && count($find_banner_id) > 0) {
    $filter_selected++;
}
if (is_array($find_group_sid) && count($find_group_sid) > 0) {
    $filter_selected++;
}
if ($filter_selected > 0) {
    $is_filtered = true;
}
$arrStat = CAdvBanner::GetStatList($by, $order, $arFilter);
$rsData = new CAdminResult($arrStat, $sTableID);
//var_dump($arrStat);
$rsData->NavStart();
$lAdmin->NavText($rsData->GetNavPrint(GetMessage('ADV_DATE_TABLE_TITLE')));
$arHeaders = array();
$arHeaders[] = array("id" => "DATE", "content" => GetMessage('ADV_DATE'), "sort" => "s_date", "align" => "right", "default" => true);
if ($find_banner_summa == "N") {
    $arHeaders[] = array("id" => "BANNER_ID", "content" => GetMessage('ADV_BANNER_ID'), "sort" => "s_id", "align" => "right", "default" => false);
    $arHeaders[] = array("id" => "BANNER_NAME", "content" => GetMessage('ADV_BANNER'), "sort" => false, "align" => "left", "default" => true);
}
$arHeaders[] = array("id" => "VISITORS", "content" => GetMessage('AD_VISITOR'), "sort" => "s_visitors", "align" => "right", "default" => true);
$arHeaders[] = array("id" => "CLICKS", "content" => GetMessage('AD_CLICK_GRAPH'), "sort" => "s_clicks", "align" => "right", "default" => true);
$arHeaders[] = array("id" => "CTR", "content" => GetMessage('AD_CTR'), "sort" => "s_ctr", "align" => "right", "default" => true);
$arHeaders[] = array("id" => "SHOWS", "content" => GetMessage('AD_SHOW'), "sort" => "s_show", "align" => "right", "default" => true);
$lAdmin->AddHeaders($arHeaders);