SourceTable; $Total = TableCount($table,"",0); $Active = TableCount($table,"Status=1",0); $Pending = TableCount($table,"Status=2",0); $Disabled = TableCount($table,"Status=0",0); $Pick = TableCount($table,"EditorsPick=1",0); $Locked = TableCount($table,"Status=3",0); $PopVal = $objTopicList->GetPopValue(); $Pop = TableCount($table,"CachedVotesQty >=".$PopVal.' OR PopItem = 1',0); $HotVal = $objTopicList->GetHotValue(); $Hot = TableCount($table,"Views >=".$HotVal.' OR HotItem = 1',0); $NewVal = adodb_date("U") - ($objConfig->Get("Topic_NewDays") * 86400); $where = "(CreatedOn > ".$NewVal." AND NewItem=".AUTO.") OR NewItem=".ALWAYS; $New = TableCount($table,$where ,0); $ConfigVar = "Topic_View"; $CurrentVal = $objConfig->Get($ConfigVar); $TabName = "topics"; $iconURL = $rootURL."in-bulletin/admin/images"; print <<

$lang_Topics  ($Total)
$lang_Active ($Active) $lang_New ($New)
$lang_Pending ($Pending) $lang_Hot ($Hot)
$lang_Disabled ($Disabled) $lang_Pop ($Pop)
  $lang_EdPick ($Pick)
END; ?>