本文整理汇总了PHP中CAdminList::ActionAjaxReload方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminList::ActionAjaxReload方法的具体用法?PHP CAdminList::ActionAjaxReload怎么用?PHP CAdminList::ActionAjaxReload使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAdminList
的用法示例。
在下文中一共展示了CAdminList::ActionAjaxReload方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: while
$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"]);
示例2: GetMessage
$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;',
示例3: array
// "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) {
示例4: Array
$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)
{
示例5: GetMessage
$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;
示例6: GetMessage
}
}
$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")));
示例7: htmlspecialcharsbx
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"])) {
示例8: array
}
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"));
示例9: 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"),
示例10: htmlspecialcharsbx
$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))
示例11: array
$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,
示例12: 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) // Only for dir viewing, hide for search result mode
{
if($USER->CanDoOperation('fileman_admin_folders') && $USER->CanDoFileOperation('fm_create_new_folder',$arPath))