4 public static function DynamicDays($SEARCHER_ID, $date1=
"", $date2=
"")
10 while(
$zr =
$z->Fetch())
11 if(intval(
$zr[
"TOTAL_HITS"]) > 0)
19 $DB = CDatabase::GetModuleConnection(
'statistic');
20 $arSqlSearch = Array(
"D.SEARCHER_ID <> 1");
33 if( ((
string)
$val ==
'') || (
$val ===
"NOT_REF") )
45 $arSqlSearch[] =
"D.DATE_STAT>=".$DB->CharToDateFunction(
$val,
"SHORT");
49 $arSqlSearch[] =
"D.DATE_STAT<=".$DB->CharToDateFunction(
$val.
" 23:59:59",
"FULL");
57 $summa =
$arFilter[
"SUMMA"]==
"Y" ?
"Y" :
"N";
60 $rsD =
$DB->Query($strSql);
61 while ($arD = $rsD->Fetch())
63 $arrDays[$arD[
"DATE_STAT"]][
"D"] = $arD[
"DAY"];
64 $arrDays[$arD[
"DATE_STAT"]][
"M"] = $arD[
"MONTH"];
65 $arrDays[$arD[
"DATE_STAT"]][
"Y"] = $arD[
"YEAR"];
68 $arrDays[$arD[
"DATE_STAT"]][$arD[
"SEARCHER_ID"]][
"TOTAL_HITS"] = $arD[
"TOTAL_HITS"];
69 $arrLegend[$arD[
"SEARCHER_ID"]][
"COUNTER_TYPE"] =
"DETAIL";
70 $arrLegend[$arD[
"SEARCHER_ID"]][
"NAME"] = $arD[
"NAME"];
74 $arrDays[$arD[
"DATE_STAT"]][
"TOTAL_HITS"] += $arD[
"TOTAL_HITS"];
75 $arrLegend[0][
"COUNTER_TYPE"] =
"TOTAL";
80 $total =
sizeof($arrLegend);
84 $arrLegend[
$key][
"COLOR"] = $color;
92 $DB = CDatabase::GetModuleConnection(
'statistic');
93 $arSqlSearch = Array(
"P.SEARCHER_ID <> 1");
106 if( ((
string)
$val ==
'') || (
$val ===
"NOT_REF") )
109 $match_value_set = array_key_exists(
$key.
"_EXACT_MATCH",
$arFilter);
115 $match = (
$arFilter[
$key.
"_EXACT_MATCH"]==
"N" && $match_value_set) ?
"Y" :
"N";
120 $match = (
$arFilter[
$key.
"_EXACT_MATCH"]==
"Y" && $match_value_set) ?
"N" :
"Y";
127 if ($by ==
"s_id") $strSqlOrder =
"ORDER BY P.ID";
128 elseif ($by ==
"s_domain") $strSqlOrder =
"ORDER BY P.DOMAIN";
129 elseif ($by ==
"s_variable") $strSqlOrder =
"ORDER BY P.VARIABLE";
132 $strSqlOrder =
"ORDER BY P.ID";
137 $strSqlOrder .=
" desc ";
148 b_stat_searcher_params P
154 $rs =
$DB->Query($strSql);
161 $DB = CDatabase::GetModuleConnection(
'statistic');
163 $strSql =
"SELECT S.* FROM b_stat_searcher S WHERE S.ID = '$ID'";
static GetDomainList($by='s_id', $order='desc', $arFilter=[])
static DynamicDays($SEARCHER_ID, $date1="", $date2="")
static GetGraphArray($arFilter, &$arrLegend)
static GetGraphArray_SQL($strSqlSearch)
static GetDynamicList($SEARCHER_ID, $by='s_date', $order='desc', &$arMaxMin=[], $arFilter=[])
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
GetNextRGB($base_color, $total)
CheckDateTime($datetime, $format=false)
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
if(empty($signedUserToken)) $key
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"