} else { $row->AddViewField("FILE_NAME", '<a href="' . htmlspecialcharsbx($obBucket->GetFileSRC(array("URN" => $path . $arRes["NAME"]))) . '">' . htmlspecialcharsex($arRes["NAME"]) . '</a>'); $row->AddViewField("FILE_SIZE", CFile::FormatSize((double) $arRes["SIZE"])); $total_size += $arRes["SIZE"]; $total_count++; } $arActions = array(); if ($USER->CanDoOperation("clouds_upload")) { $arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("CLO_STORAGE_FILE_DELETE"), "ACTION" => "if(confirm('" . GetMessage("CLO_STORAGE_FILE_DELETE_CONF") . "')) " . $lAdmin->ActionDoGroup($arRes["ID"], "delete", 'bucket=' . urlencode($obBucket->ID) . '&path=' . urlencode($path))); } if (!empty($arActions)) { $row->AddActions($arActions); } } if ($_GET["size"] === "y" && is_array($arFiles) && (round($total_size / 1024) != round($obBucket->FILE_SIZE / 1024) || $total_count != $obBucket->FILE_COUNT)) { $obBucket->SetFileCounter($total_size, $total_count); } $arFooter = array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $path === "/" ? $rsData->SelectedRowsCount() : $rsData->SelectedRowsCount() - 1), array("title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => 0, "counter" => true)); if ($total_size > 0) { $arFooter[] = array("title" => GetMessage("CLO_STORAGE_FILE_SIZE") . ":", "value" => CFile::FormatSize($total_size)); } $lAdmin->AddFooter($arFooter); $arGroupActions = array(); if ($USER->CanDoOperation("clouds_upload")) { $arGroupActions["delete"] = GetMessage("MAIN_ADMIN_LIST_DELETE"); } $lAdmin->AddGroupActionTable($arGroupActions); $chain = $lAdmin->CreateChain(); $arPath = explode("/", $path); $curPath = "/"; foreach ($arPath as $dir) {