Beispiel #1
0
    }
    $row->AddActions($arActions);
}
$arPath = array($site, $path);
// arPath for current folder
// List's footer
$lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $db_DirContent->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0")));
$strHTML = "<input type=\"text\" name=\"copy_to\" size=\"18\" value=\"\" disabled>" . "<input type=\"button\" name=\"copy_to_button\" value=\"...\" onClick=\"DRList();\" disabled>" . "<input type=\"hidden\" name=\"copy_to_site\" value=\"\">";
// Show form with add buttons
$arGrActionAr = array();
if ($USER->CanDoFileOperation('fm_delete_' . $type, $arPath)) {
    $arGrActionAr["delete"] = GetMessage("MAIN_ADMIN_LIST_DELETE");
}
if ($USER->CanDoFileOperation('fm_edit_permission', $arPath)) {
    $arGrActionAr["access"] = array("action" => "setAccess('" . Cutil::JSEscape($site) . "', '" . Cutil::JSEscape(urlencode($path)) . "')", "value" => "access", "name" => GetMessage('FILEMAN_ADMIN_ACCESS_PERMS_B'));
    if (!CFileMan::IsWindows()) {
        // $arGrActionAr["server_access"] = array(
        // "action" => "setAccess('".Cutil::JSEscape($site)."', '".Cutil::JSEscape($path)."', true)",
        // "value" => "server_access",
        // "name" => GetMessage('FILEMAN_ADMIN_ACCESS_PERMS')
        // );
    }
}
if ($USER->CanDoFileOperation('fm_create_new_' . $type, $arPath)) {
    //$arGrActionAr["copy"] = GetMessage("FILEMAN_ADM_COPY");
    $arGrActionAr["copy"] = array("action" => "setCopyMove('" . Cutil::JSEscape($site) . "', '" . Cutil::JSEscape($path) . "', true, " . CUtil::PhpToJSObject($arrIsDir) . ")", "value" => "copy", "name" => GetMessage("FILEMAN_ADM_COPY"));
    $arGrActionAr["pack"] = array("action" => "setPackUnpack('" . Cutil::JSEscape($site) . "', '" . Cutil::JSEscape($path) . "', true, " . CUtil::PhpToJSObject($arrIsDir) . ")", "value" => "pack", "name" => GetMessage("FILEMAN_ADMIN_ARC_PACK"));
}
if ($USER->CanDoFileOperation('fm_create_new_' . $type, $arPath) && $USER->CanDoFileOperation('fm_delete_' . $type, $arPath)) {
    //$arGrActionAr["move"] = GetMessage("FILEMAN_ADM_MOVE");
    $arGrActionAr["move"] = array("action" => "setCopyMove('" . Cutil::JSEscape($site) . "', '" . Cutil::JSEscape($path) . "', false, " . CUtil::PhpToJSObject($arrIsDir) . ")", "value" => "move", "name" => GetMessage("FILEMAN_ADM_MOVE"));
?>
</td>
				<td></td>
				<td><?php 
echo GetMessage("FM_SA_CUR_VAL");
?>
</td>
				<td class="bxsp-status"><?php 
echo GetMessage("FM_SA_CHANGE_STATUS");
?>
</td>
			</tr>

		<?for($i = 0, $l = count($arFilesEx); $i < $l; $i++):?>
			<?
			if (CFileMan::IsWindows())
			{
				$html = $arFilesEx[$i]["PERM"][0] == '444' ? GetMessage("FM_SA_WIN_READONLY") : GetMessage("FM_SA_WIN_FULL_ACCESS");
				$title = $html;
			}
			else
			{
				$html = $arFilesEx[$i]["PERM"][0];
				$title = GetMessage("FILEMAN_SA_CUR_VAL").": ".$arFilesEx[$i]["PERM"][1];
			}
			?>
			<tr id="bxsp_file_row_<?php 
echo $i;
?>
">
				<td class="bxsp-filename">"<?php