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); $PopVal = $objArticleList->GetPopValue(); $Pop = TableCount($table,"CachedVotesQty >=".$PopVal.' OR PopItem = 1',0); $HotVal = $objArticleList->GetHotValue(); $Hot = TableCount($table,"Hits >=".$HotVal.' OR HotItem = 1',0); $NewVal = adodb_date("U") - ($objConfig->Get("News_NewDays") * 86400); $where = "(CreatedOn > ".$NewVal." AND NewItem=".AUTO.") OR NewItem=".ALWAYS; $New = TableCount($table,$where ,0); $ConfigVar = "News_View"; $CurrentVal = $objConfig->Get($ConfigVar); $TabName = "news"; $iconURL = $rootURL."in-news/admin/images"; $icon_basename = $iconURL."/icon16_article"; $activeicon = $icon_basename.".gif"; $newicon = $icon_basename."_new.gif"; $pendingicon = $icon_basename."_pending.gif"; $hoticon = $icon_basename."_hot.gif"; $disabledicon = $icon_basename."_disabled.gif"; $popicon = $icon_basename."_top.gif"; $pickicon = $icon_basename."_pick.gif"; print <<

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