$array = array();
for ($i = 0; $i < 10; $i++) {
$array[] = new CIBlockResult("");
}
$tableId = "tbl_product_list";
$list = new CAdminList($tableId);
$data = new CAdminResult($array, $tableId);
$list->AddHeaders(
array(
array("id" => "name",
"content" => "Наименование",
"sort" => "name",
"default" => true,
),
));
while ($arRes = $data->NavNext(true, "f_")):
$row = $list->AddRow($f_ID, $arRes);
$row->AddViewField("name", "1");
endwhile;
$list->DisplayList(); |