Bitrix Site Manager

CAdminList::AddFooter

void
CAdminList::AddFooter(
  array $arFooter
)

The method AddFooter adds a footer to the report table.

The table footer data is passed in an array whose elements are associated arrays. In each array, the title keys specify the parameter names, and the value keys specify the parameter value.

The associated arrays may contain the counter keys set to true. In this case, the footer element is a counter of selected elements. The counter value will change dynamically.

Example


// table footer
$lAdmin->AddFooter(
  array(
    array("title"=>GetMessage("MAIN_ADMIN_LIST_SELECTED"), 
          // number of elements
          "value"=>$rsData->SelectedRowsCount()), 
    array("counter"=>true, 
          "title"=>GetMessage("MAIN_ADMIN_LIST_CHECKED"), 
          // counter of selected elements
          "value"=>"0"), 
  )
);