$jsPath = ""; if (intval($find_section_section) > 0) { $nav = CIBlockSection::GetNavChain($IBLOCK_ID, $find_section_section); while ($ar_nav = $nav->GetNext()) { $strPath .= htmlspecialcharsbx($ar_nav["~NAME"], ENT_QUOTES) . " / "; $jsPath .= htmlspecialcharsbx(CUtil::JSEscape($ar_nav["~NAME"]), ENT_QUOTES) . " / "; } } $arUsersCache = array(); while ($arRes = $rsData->NavNext(true, "f_")) { $sec_list_url = '/bitrix/admin/cat_section_search.php?IBLOCK_ID=' . $IBLOCK_ID . '&lang=' . LANGUAGE_ID . '&find_section_section=' . $f_ID . '&n=' . urlencode($n) . '&k=' . urlencode($k) . ($m ? "&m=y" : ""); $row =& $lAdmin->AddRow($f_ID, $arRes); if ($entity_id) { $USER_FIELD_MANAGER->AddUserFields($entity_id, $arRes, $row); } $row->AddViewField("NAME", '<a href="' . $sec_list_url . '" onclick="' . $lAdmin->ActionAjaxReload($sec_list_url) . '; return false;" title="' . GetMessage("BX_MOD_CATALOG_ADMIN_CSS_LIST") . '">' . $f_NAME . '</a><div style="display:none" id="name_' . $f_ID . '">' . $strPath . $f_NAME . ' / ' . '</div>'); $row->AddCheckField("ACTIVE"); if (array_key_exists("ELEMENT_CNT", $arVisibleColumnsMap)) { $row->AddViewField("ELEMENT_CNT", $f_ELEMENT_CNT . '(' . intval(CIBlockSection::GetSectionElementsCount($f_ID, array("CNT_ALL" => "Y"))) . ')'); } if (array_key_exists("SECTION_CNT", $arVisibleColumnsMap)) { $arFilter = array("IBLOCK_ID" => $IBLOCK_ID, "SECTION_ID" => $f_ID); $row->AddViewField("SECTION_CNT", '<a href="' . $sec_list_url . '" onclick="' . $lAdmin->ActionAjaxReload($sec_list_url) . '; return false;" title="' . GetMessage("BX_MOD_CATALOG_ADMIN_CSS_LIST") . '">' . intval(CIBlockSection::GetCount($arFilter)) . '</a>'); } if (array_key_exists("MODIFIED_BY", $arVisibleColumnsMap) && intval($f_MODIFIED_BY) > 0) { if (!array_key_exists($f_MODIFIED_BY, $arUsersCache)) { $rsUser = CUser::GetByID($f_MODIFIED_BY); $arUsersCache[$f_MODIFIED_BY] = $rsUser->Fetch(); } if ($arUser = $arUsersCache[$f_MODIFIED_BY]) { $row->AddViewField("MODIFIED_BY", '[<a href="/bitrix/admin/user_edit.php?lang=' . LANGUAGE_ID . '&ID=' . $f_MODIFIED_BY . '" title="' . GetMessage("BX_MOD_CATALOG_ADMIN_CSS_HEAD_USERINFO") . '">' . $f_MODIFIED_BY . "</a>] (" . $arUser["LOGIN"] . ") " . $arUser["NAME"] . " " . $arUser["LAST_NAME"]);
$arActions["unlock"] = GetMessage("IBLIST_A_UNLOCK_ACTION"); } $lAdmin->AddGroupActionTable($arActions, $arParams); } $sLastFolder = ''; $sSectionUrl = CIBlock::GetAdminSectionListLink($IBLOCK_ID, array('find_section_section'=>0)); $chain = $lAdmin->CreateChain(); if(!defined("CATALOG_PRODUCT")) { $chain->AddItem(array( "TEXT" => htmlspecialcharsex($arIBlock["NAME"]), "LINK" => htmlspecialcharsbx($sSectionUrl), "ONCLICK" => $lAdmin->ActionAjaxReload($sSectionUrl).';return false;', )); } if($find_section_section > 0) { $sLastFolder = $sSectionUrl; $nav = CIBlockSection::GetNavChain($IBLOCK_ID, $find_section_section, array('ID', 'NAME')); while($ar_nav = $nav->GetNext()) { $sSectionUrl = CIBlock::GetAdminSectionListLink($IBLOCK_ID, array('find_section_section'=>$ar_nav["ID"])); $chain->AddItem(array( "TEXT" => $ar_nav["NAME"], "LINK" => htmlspecialcharsbx($sSectionUrl), "ONCLICK" => $lAdmin->ActionAjaxReload($sSectionUrl).';return false;',
// "value" => $strHTML // ); // } if ($logical != "Y") { $lAdmin->AddGroupActionTable($arGrActionAr, array()); } $defaultEdit = COption::GetOptionString("fileman", "default_edit", "text"); if ($USER->CanDoOperation('view_groups') && $USER->CanDoFileOperation('fm_view_permission', $arPath)) { $arDDMenu = array(); $isB = false; $dbRes = CGroup::GetDropDownList(); while ($arRes = $dbRes->Fetch()) { if ($show_perms_for == $arRes["REFERENCE_ID"]) { $isB = true; } $arDDMenu[] = array("TEXT" => $arRes["REFERENCE"], "ACTION" => $lAdmin->ActionAjaxReload("fileman_admin.php?" . $addUrl_s . "&site=" . urlencode($site) . "&path=" . urlencode($path) . "&show_perms_for=" . $arRes["REFERENCE_ID"]) . ';return false;', "ICON" => $show_perms_for == $arRes["REFERENCE_ID"] ? "checked" : ""); } $arDDMenu[] = array("TEXT" => GetMessage("FILEMAN_ADM_CUR_USER"), "ACTION" => $lAdmin->ActionAjaxReload("fileman_admin.php?" . $addUrl_s . "&site=" . urlencode($site) . "&path=" . urlencode($path) . "&show_perms_for=0") . ';return false;', "ICON" => !$isB ? "checked" : ""); } $aContext = array(); if (!$bSearch) { if ($USER->CanDoOperation('fileman_admin_folders') && $USER->CanDoFileOperation('fm_create_new_folder', $arPath)) { $aContext[] = array("TEXT" => GetMessage("FILEMAN_ADMIN_ADD_FOLDER"), "ICON" => "btn_new_folder", "LINK" => "fileman_newfolder.php?" . $addUrl . "&site=" . $site . "&path=" . urlencode($path) . "", "TITLE" => GetMessage("FILEMAN_ADMIN_ADD_FOLDER")); } if ($USER->CanDoOperation('fileman_admin_files') && $USER->CanDoFileOperation('fm_create_new_file', $arPath)) { $aContext[] = array("TEXT" => GetMessage("FILEMAN_ADMIN_ADD_FILE"), "ICON" => "btn_new_file", "LINK" => $defaultEdit == 'html' ? "fileman_html_edit.php?" . $addUrl . "&site=" . $site . "&path=" . urlencode($path) . "&new=y" : ($defaultEdit == 'php' && $USER->IsAdmin() ? "fileman_file_edit.php?" . $addUrl . "&site=" . $site . "&full_src=Y&path=" . urlencode($path) . "&new=y" : "fileman_file_edit.php?" . $addUrl . "&site=" . $site . "&path=" . urlencode($path) . "&new=y"), "TITLE" => GetMessage("FILEMAN_ADMIN_ADD_FILE")); } if ($USER->CanDoOperation('fileman_add_element_to_menu') && $USER->CanDoFileOperation('fm_add_to_menu', $arPath)) { $aContext[] = array("TEXT" => GetMessage("FILEMAN_ADMIN_MENU_ADD"), "ICON" => "btn_new_menu", "LINK" => "fileman_menu_edit.php?" . $addUrl . "&site=" . $site . "&path=" . urlencode($path), "TITLE" => GetMessage("FILEMAN_ADMIN_MENU_ADD")); } if (count($aContext) > 1) {
$arActions = Array(); $arActions[] = array( "ICON"=>"edit", "DEFAULT" => "Y", "TEXT"=>GetMessage("SUP_EDIT"), "ACTION"=>$lAdmin->ActionRedirect($TICKET_EDIT_URL.'?ID='.$f_ID.'&lang='.LANG) ); $arActions[] = array("SEPARATOR" => true); if (strlen($f_DATE_CLOSE)<=0) { $arActions[] = array( "TEXT" => GetMessage("SUP_CLOSE"), "ACTION"=>$lAdmin->ActionAjaxReload("/bitrix/admin/ticket_list.php?ID=".$f_ID."&action=close&lang=".LANGUAGE_ID."&".bitrix_sessid_get()), ); } else { $arActions[] = array( "TEXT" => GetMessage("SUP_OPEN"), //"LINK" => "/bitrix/admin/ticket_edit.php?ID=".$ID."&action=open&lang=".LANGUAGE_ID."&".bitrix_sessid_get(), "ACTION"=>$lAdmin->ActionAjaxReload("/bitrix/admin/ticket_list.php?ID=".$f_ID."&action=open&lang=".LANGUAGE_ID."&".bitrix_sessid_get()) ); } if ($bSupportTeam=="Y" || $bAdmin=="Y") { if (strlen($f_IS_SPAM)>0) {
$arActions["unlock"] = GetMessage("IBLIST_A_UNLOCK_ACTION"); $arActions["lock"] = GetMessage("IBLIST_A_LOCK_ACTION"); $statuses = '<div id="wf_status_id" style="display:none">' . SelectBox("wf_status_id", CWorkflowStatus::GetDropDownList("N", "desc")) . '</div>'; $arActions["wf_status"] = GetMessage("IBLIST_A_WF_STATUS_CHANGE"); $arActions["wf_status_chooser"] = array("type" => "html", "value" => $statuses); $arParams["select_onchange"] .= "BX('wf_status_id').style.display = (this.value == 'wf_status'? 'block':'none');"; } elseif ($bBizproc) { $arActions["unlock"] = GetMessage("IBLIST_A_UNLOCK_ACTION"); } $lAdmin->AddGroupActionTable($arActions, $arParams); } $sLastFolder = ''; $sSectionUrl = CIBlock::GetAdminSectionListLink($IBLOCK_ID, array('find_section_section' => 0)); $chain = $lAdmin->CreateChain(); if (!defined("CATALOG_PRODUCT")) { $chain->AddItem(array("TEXT" => htmlspecialcharsex($arIBlock["NAME"]), "LINK" => htmlspecialcharsbx($sSectionUrl), "ONCLICK" => $lAdmin->ActionAjaxReload($sSectionUrl) . ';return false;')); } if ($find_section_section > 0) { $sLastFolder = $sSectionUrl; $nav = CIBlockSection::GetNavChain($IBLOCK_ID, $find_section_section, array('ID', 'NAME')); while ($ar_nav = $nav->GetNext()) { $sSectionUrl = CIBlock::GetAdminSectionListLink($IBLOCK_ID, array('find_section_section' => $ar_nav["ID"])); $chain->AddItem(array("TEXT" => $ar_nav["NAME"], "LINK" => htmlspecialcharsbx($sSectionUrl), "ONCLICK" => $lAdmin->ActionAjaxReload($sSectionUrl) . ';return false;')); if ($ar_nav["ID"] != $find_section_section) { $sLastFolder = $sSectionUrl; } } } $lAdmin->ShowChain($chain); // toolbar $boolBtnNew = false;
} } $str .= '<a href="mail_message_view.php?lang=' . LANG . '&ID=' . $f_ID . '">' . (strlen($f_SUBJECT) > 0 ? $f_SUBJECT : GetMessage("MAIL_MSG_ADM_NOSUBJ")); $row->AddViewField("SUBJECT", $str); $str = $f_MAILBOX_NAME . ' [<a title="' . GetMessage("MAIL_MSG_ADM_CHANGE_MBOX") . '" href="mail_mailbox_edit.php?ID=' . $f_MAILBOX_ID . '&lang=' . LANG . '">' . $f_MAILBOX_ID . '</a>]'; $row->AddViewField("MAILBOX_NAME", $str); $row->AddViewField("MESSAGE_SIZE", CFile::FormatSize($f_MESSAGE_SIZE)); $arRes["SPAM_RATING"] = CMailMessage::GetSpamRating($f_ID, $arRes); $str = Round($arRes["SPAM_RATING"], 2) . "%"; $row->AddViewField("SPAM_RATING", $str); $arActions = array(); $arActions[] = array("DEFAULT" => "Y", "TEXT" => GetMessage("MAIL_MSG_ADM_VIEW"), "ACTION" => $lAdmin->ActionRedirect('mail_message_view.php?lang=' . LANG . '&ID=' . $f_ID)); if ($MOD_RIGHT == "W") { $arActions[] = array("SEPARATOR" => true); if ($f_SPAM != "Y") { $arActions[] = array("TEXT" => GetMessage("MAIL_MSG_ADM_PROC_ACT_SPAM"), "ACTION" => $lAdmin->ActionAjaxReload($APPLICATION->GetCurPage() . "?action=mark_as_spam&ID=" . $f_ID . "&lang=" . LANG . "&" . bitrix_sessid_get())); } if ($f_SPAM != "N") { $arActions[] = array("TEXT" => GetMessage("MAIL_MSG_ADM_PROC_ACT_NOTSPAM"), "ACTION" => $lAdmin->ActionAjaxReload($APPLICATION->GetCurPage() . "?action=mark_as_notspam&ID=" . $f_ID . "&lang=" . LANG . "&" . bitrix_sessid_get())); } if ($f_NEW_MESSAGE == "Y") { $arActions[] = array("TEXT" => GetMessage("MAIL_MSG_ADM_PROC_ACT_READ"), "ACTION" => $lAdmin->ActionAjaxReload($APPLICATION->GetCurPage() . "?action=mark_as_read&ID=" . $f_ID . "&lang=" . LANG . "&" . bitrix_sessid_get())); } else { $arActions[] = array("TEXT" => GetMessage("MAIL_MSG_ADM_PROC_ACT_NOTREAD"), "ACTION" => $lAdmin->ActionAjaxReload($APPLICATION->GetCurPage() . "?action=mark_as_unread&ID=" . $f_ID . "&lang=" . LANG . "&" . bitrix_sessid_get())); } $arActions[] = array("SEPARATOR" => true); $arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("MAIL_MSG_ADM_PROC_ACT_DELETE"), "ACTION" => "if(confirm('" . GetMessage('MAIL_MSG_ADM_FILTER_CONFIRM10') . "')) " . $lAdmin->ActionDoGroup($f_ID, "delete")); } $row->AddActions($arActions); } $lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $rsData->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0")));
while ($arRes = $rsData->NavNext(true, "f_")) { $el_list_url = htmlspecialcharsbx(CIBlock::GetAdminElementListLink($IBLOCK_ID, array('find_section_section' => $f_ID))); $el_add_url = htmlspecialcharsbx(CIBlock::GetAdminElementEditLink($IBLOCK_ID, 0, array('IBLOCK_SECTION_ID' => $arRes["ID"], 'from' => 'iblock_section_admin_inc', 'find_section_section' => $find_section_section))); $sec_list_url = htmlspecialcharsbx(CIBlock::GetAdminSectionListLink($IBLOCK_ID, array('find_section_section' => $f_ID, 'tree' => $_GET["tree"] == "Y" ? 'Y' : null))); $sec_add_url = htmlspecialcharsbx(CIBlock::GetAdminSectionEditLink($IBLOCK_ID, 0, array('IBLOCK_SECTION_ID' => $arRes["ID"], 'from' => 'iblock_section_admin', 'find_section_section' => $find_section_section))); $edit_url = htmlspecialcharsbx(CIBlock::GetAdminSectionEditLink($IBLOCK_ID, $arRes["ID"], array('from' => 'iblock_section_admin', 'find_section_section' => $find_section_section))); $arRows[$f_ID] = $row = $lAdmin->AddRow($f_ID, $arRes, $sec_list_url, GetMessage("IBSEC_A_LIST")); $USER_FIELD_MANAGER->AddUserFields($entity_id, $arRes, $row); $row->AddViewField("ID", '<a href="' . $edit_url . '" title="' . GetMessage("IBSEC_A_EDIT") . '">' . $f_ID . '</a>'); $row->AddViewField("NAME", '<a href="' . $sec_list_url . '" ' . ($_GET["tree"] == "Y" ? 'style="padding-left:' . ($f_DEPTH_LEVEL - 1) * 22 . 'px"' : '') . ' class="adm-list-table-icon-link" title="' . GetMessage("IBSEC_A_LIST") . '"><span class="adm-submenu-item-link-icon adm-list-table-icon iblock-section-icon"></span><span class="adm-list-table-link">' . $f_NAME . '</span></a>'); if (array_key_exists("ELEMENT_CNT", $arVisibleColumnsMap)) { $row->AddViewField("ELEMENT_CNT", '<a href="' . $el_list_url . '&find_el_subsections=N" title="' . GetMessage("IBSEC_A_ELLIST") . '">' . $f_ELEMENT_CNT . '</a>(' . '<a href="' . $el_list_url . '&find_el_subsections=Y" title="' . GetMessage("IBSEC_A_ELLIST_TITLE") . '">' . IntVal(CIBlockSection::GetSectionElementsCount($f_ID, array("CNT_ALL" => "Y"))) . '</a>) [<a href="' . $el_add_url . '" title="' . GetMessage("IBSEC_A_ELADD_TITLE") . '">+</a>]'); } if (array_key_exists("SECTION_CNT", $arVisibleColumnsMap)) { $arFilter = array("IBLOCK_ID" => $IBLOCK_ID, "SECTION_ID" => $f_ID); $row->AddViewField("SECTION_CNT", '<a href="' . $sec_list_url . '" onclick="' . $lAdmin->ActionAjaxReload($sec_list_url) . '; return false;" title="' . GetMessage("IBSEC_A_LIST") . '">' . IntVal(CIBlockSection::GetCount($arFilter)) . '</a> [<a href="' . $sec_add_url . '" title="' . GetMessage("IBSEC_A_SECTADD_TITLE") . '">+</a>]'); } if (array_key_exists("MODIFIED_BY", $arVisibleColumnsMap)) { if ($html = GetUserProfileLink($f_MODIFIED_BY, GetMessage("IBSEC_A_USERINFO"))) { $row->AddViewField("MODIFIED_BY", $html); } } if (array_key_exists("CREATED_BY", $arVisibleColumnsMap)) { if ($html = GetUserProfileLink($f_CREATED_BY, GetMessage("IBSEC_A_USERINFO"))) { $row->AddViewField("CREATED_BY", $html); } } } $arSectionOps = CIBlockSectionRights::UserHasRightTo($IBLOCK_ID, array_keys($arRows), "", CIBlockRights::RETURN_OPERATIONS); foreach ($arRows as $id => $row) { if (isset($arSectionOps[$id]) && isset($arSectionOps[$id]["section_edit"])) {
$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) { if ($dir != "") { $curPath .= $dir . "/"; $url = "clouds_file_list.php?lang=" . urlencode(LANGUAGE_ID) . "&bucket=" . urlencode($obBucket->ID) . "&path=" . urlencode($curPath); $chain->AddItem(array("TEXT" => htmlspecialcharsex($dir), "LINK" => htmlspecialcharsbx($url), "ONCLICK" => $lAdmin->ActionAjaxReload($url) . ';return false;')); } } $lAdmin->ShowChain($chain); $aContext = array(); if ($obBucket->ACTIVE === "Y" && $obBucket->READ_ONLY === "N" && $USER->CanDoOperation("clouds_upload")) { $aContext[] = array("TEXT" => GetMessage("CLO_STORAGE_FILE_UPLOAD"), "LINK" => "javascript:show_upload_form()", "TITLE" => GetMessage("CLO_STORAGE_FILE_UPLOAD_TITLE"), "ICON" => "btn_new"); } $aContext[] = array("TEXT" => GetMessage("CLO_STORAGE_FILE_SHOW_DIR_SIZE"), "LINK" => "/bitrix/admin/clouds_file_list.php?lang=" . urlencode(LANGUAGE_ID) . '&bucket=' . urlencode($obBucket->ID) . '&path=' . urlencode($path) . '&size=y', "TITLE" => GetMessage("CLO_STORAGE_FILE_SHOW_DIR_SIZE_TITLE")); $lAdmin->AddAdminContextMenu($aContext, false); $lAdmin->BeginPrologContent(); if (is_object($message)) { echo $message->Show(); } $lAdmin->EndPrologContent(); $lAdmin->CheckListMode();
} if (strlen($f_STATUS_NAME) > 0) { $row->AddViewField("STATUS_ID", $f_STATUS_NAME); } else { $row->AddViewField("STATUS_ID", ' '); } if (strlen($f_MARK_NAME) > 0) { $row->AddViewField("MARK_ID", $f_MARK_NAME); } else { $row->AddViewField("MARK_ID", ' '); } $arActions = array(); $arActions[] = array("ICON" => "edit", "DEFAULT" => "Y", "TEXT" => GetMessage("SUP_EDIT"), "ACTION" => $lAdmin->ActionRedirect($TICKET_EDIT_URL . '?ID=' . $f_ID . '&lang=' . LANG)); $arActions[] = array("SEPARATOR" => true); if (strlen($f_DATE_CLOSE) <= 0) { $arActions[] = array("TEXT" => GetMessage("SUP_CLOSE"), "ACTION" => $lAdmin->ActionAjaxReload("/bitrix/admin/ticket_list.php?ID=" . $f_ID . "&action=close&lang=" . LANGUAGE_ID . "&" . bitrix_sessid_get())); } else { $arActions[] = array("TEXT" => GetMessage("SUP_OPEN"), "ACTION" => $lAdmin->ActionAjaxReload("/bitrix/admin/ticket_list.php?ID=" . $f_ID . "&action=open&lang=" . LANGUAGE_ID . "&" . bitrix_sessid_get())); } if ($bSupportTeam == "Y" || $bAdmin == "Y") { if (strlen($f_IS_SPAM) > 0) { $arActions[] = array("TEXT" => GetMessage("SUP_UNMARK_SPAM"), "ACTION" => $lAdmin->ActionAjaxReload("/bitrix/admin/ticket_list.php?ID=" . $f_ID . "&action=unmark_spam&lang=" . LANGUAGE_ID . "&" . bitrix_sessid_get())); } if ($f_IS_SPAM != "N") { $arActions[] = array("TEXT" => GetMessage("SUP_MAYBE_SPAM"), "ACTION" => $lAdmin->ActionAjaxReload("/bitrix/admin/ticket_list.php?ID=" . $f_ID . "&action=maybe_spam&lang=" . LANGUAGE_ID . "&" . bitrix_sessid_get())); } if ($f_IS_SPAM != "Y" && $bAdmin == "Y") { $arActions[] = array("TEXT" => GetMessage("SUP_MARK_SPAM"), "ACTION" => $lAdmin->ActionAjaxReload("/bitrix/admin/ticket_list.php?ID=" . $f_ID . "&action=mark_spam&lang=" . LANGUAGE_ID . "&" . bitrix_sessid_get())); } if ($bAdmin == "Y" || $bDemo == "Y") { $arActions[] = array("TEXT" => GetMessage("SUP_MARK_SPAM_DELETE"), "ACTION" => "if(confirm('" . GetMessage('SUP_CONF_ACTION_MARK_AS_SPAM_DELETE') . "')) " . $lAdmin->ActionDoGroup($f_ID, "mark_spam_delete"));
$arActions[] = array( "DEFAULT" => "Y", "TEXT"=>GetMessage("MAIL_MSG_ADM_VIEW"), "ACTION"=>$lAdmin->ActionRedirect('mail_message_view.php?lang='.LANG.'&ID='.$f_ID) ); if ($MOD_RIGHT=="W") { $arActions[] = Array("SEPARATOR" => true); if ($f_SPAM != "Y") { $arActions[] = array( "TEXT"=>GetMessage("MAIL_MSG_ADM_PROC_ACT_SPAM"), "ACTION"=>$lAdmin->ActionAjaxReload($APPLICATION->GetCurPage()."?action=mark_as_spam&ID=".$f_ID."&lang=".LANG."&".bitrix_sessid_get()) ); } if ($f_SPAM != "N") { $arActions[] = array( "TEXT"=>GetMessage("MAIL_MSG_ADM_PROC_ACT_NOTSPAM"), "ACTION"=>$lAdmin->ActionAjaxReload($APPLICATION->GetCurPage()."?action=mark_as_notspam&ID=".$f_ID."&lang=".LANG."&".bitrix_sessid_get()) ); } if ($f_NEW_MESSAGE == "Y") { $arActions[] = array( "TEXT"=>GetMessage("MAIL_MSG_ADM_PROC_ACT_READ"),
$jsPath .= htmlspecialcharsbx(CUtil::JSEscape($ar_nav["~NAME"]), ENT_QUOTES)." / "; } } $arUsersCache = array(); while($arRes = $rsData->NavNext(true, "f_")) { $sec_list_url = 'iblock_section_search.php?IBLOCK_ID='.$IBLOCK_ID.'&lang='.LANG.'&find_section_section='.$f_ID.'&n='.urlencode($n).'&k='.urlencode($k).($m? "&m=y": ""); $row =& $lAdmin->AddRow($f_ID, $arRes); if($entity_id) $USER_FIELD_MANAGER->AddUserFields($entity_id, $arRes, $row); $row->AddViewField("NAME", '<a href="'.$sec_list_url.'" onclick="'.$lAdmin->ActionAjaxReload($sec_list_url).'; return false;" title="'.GetMessage("IBLOCK_SECSEARCH_LIST").'">'.$f_NAME.'</a><div style="display:none" id="name_'.$f_ID.'">'.$strPath.$f_NAME.' / '.'</div>'); $row->AddCheckField("ACTIVE"); if(array_key_exists("ELEMENT_CNT", $arVisibleColumnsMap)) $row->AddViewField("ELEMENT_CNT", $f_ELEMENT_CNT.'('.IntVal(CIBlockSection::GetSectionElementsCount($f_ID, Array("CNT_ALL"=>"Y"))).')'); if(array_key_exists("SECTION_CNT", $arVisibleColumnsMap)) { $arFilter = Array("IBLOCK_ID"=>$IBLOCK_ID, "SECTION_ID"=>$f_ID); $row->AddViewField("SECTION_CNT", '<a href="'.$sec_list_url.'" onclick="'.$lAdmin->ActionAjaxReload($sec_list_url).'; return false;" title="'.GetMessage("IBLOCK_SECSEARCH_LIST").'">'.IntVal(CIBlockSection::GetCount($arFilter)).'</a>'); } if(array_key_exists("MODIFIED_BY", $arVisibleColumnsMap) && intval($f_MODIFIED_BY) > 0) { if(!array_key_exists($f_MODIFIED_BY, $arUsersCache))
$USER_FIELD_MANAGER->AddUserFields($entity_id, $arRes, $row); $row->AddViewField("ID", '<a href="'.$edit_url.'" title="'.GetMessage("IBSEC_A_EDIT").'">'.$f_ID.'</a>'); $row->AddViewField("NAME", '<a href="'.$sec_list_url.'" '.($_GET["tree"] == "Y" ? 'style="padding-left:'.(($f_DEPTH_LEVEL - 1) * 22).'px"' : '').' class="adm-list-table-icon-link" title="'.GetMessage("IBSEC_A_LIST").'"><span class="adm-submenu-item-link-icon adm-list-table-icon iblock-section-icon"></span><span class="adm-list-table-link">'.$f_NAME.'</span></a>'); if (array_key_exists("ELEMENT_CNT", $arVisibleColumnsMap)) $row->AddViewField("ELEMENT_CNT", '<a href="'.$el_list_url.'&find_el_subsections=N" title="'.GetMessage("IBSEC_A_ELLIST").'">'.$f_ELEMENT_CNT.'</a>('.'<a href="'.$el_list_url.'&find_el_subsections=Y" title="'.GetMessage("IBSEC_A_ELLIST_TITLE").'">'.IntVal(CIBlockSection::GetSectionElementsCount($f_ID, array( "CNT_ALL" => "Y", ))).'</a>) [<a href="'.$el_add_url.'" title="'.GetMessage("IBSEC_A_ELADD_TITLE").'">+</a>]'); if (array_key_exists("SECTION_CNT", $arVisibleColumnsMap)) { $arFilter = array( "IBLOCK_ID" => $IBLOCK_ID, "SECTION_ID" => $f_ID, ); $row->AddViewField("SECTION_CNT", '<a href="'.$sec_list_url.'" onclick="'.$lAdmin->ActionAjaxReload($sec_list_url).'; return false;" title="'.GetMessage("IBSEC_A_LIST").'">'.IntVal(CIBlockSection::GetCount($arFilter)).'</a> [<a href="'.$sec_add_url.'" title="'.GetMessage("IBSEC_A_SECTADD_TITLE").'">+</a>]'); } if (array_key_exists("MODIFIED_BY", $arVisibleColumnsMap)) { if ($html = GetUserProfileLink($f_MODIFIED_BY, GetMessage("IBSEC_A_USERINFO"))) $row->AddViewField("MODIFIED_BY", $html); } if (array_key_exists("CREATED_BY", $arVisibleColumnsMap)) { if ($html = GetUserProfileLink($f_CREATED_BY, GetMessage("IBSEC_A_USERINFO"))) $row->AddViewField("CREATED_BY", $html); } } $arSectionOps = CIBlockSectionRights::UserHasRightTo( $IBLOCK_ID,
} $defaultEdit = COption::GetOptionString("fileman", "default_edit", "text"); if($USER->CanDoOperation('view_groups') && $USER->CanDoFileOperation('fm_view_permission', $arPath)) { $arDDMenu = array(); $isB = false; $dbRes = CGroup::GetDropDownList(); while ($arRes = $dbRes->Fetch()) { if($show_perms_for == $arRes["REFERENCE_ID"]) $isB = true; $arDDMenu[] = array( "TEXT" => $arRes["REFERENCE"], "ACTION" => $lAdmin->ActionAjaxReload("fileman_admin.php?".$addUrl_s."&site=".urlencode($site)."&path=".urlencode($path)."&show_perms_for=".$arRes["REFERENCE_ID"]).';return false;', "ICON" => ($show_perms_for == $arRes["REFERENCE_ID"] ? "checked" : "" ), ); } $arDDMenu[] = array( "TEXT" => GetMessage("FILEMAN_ADM_CUR_USER"), "ACTION" => $lAdmin->ActionAjaxReload("fileman_admin.php?".$addUrl_s."&site=".urlencode($site)."&path=".urlencode($path)."&show_perms_for=0").';return false;', "ICON" => (!$isB ? "checked" : "" ), ); } $aContext = Array(); if (!$bSearch) // Only for dir viewing, hide for search result mode { if($USER->CanDoOperation('fileman_admin_folders') && $USER->CanDoFileOperation('fm_create_new_folder',$arPath))