本文整理汇总了PHP中CIBlock::GetAdminElementListLink方法的典型用法代码示例。如果您正苦于以下问题:PHP CIBlock::GetAdminElementListLink方法的具体用法?PHP CIBlock::GetAdminElementListLink怎么用?PHP CIBlock::GetAdminElementListLink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CIBlock
的用法示例。
在下文中一共展示了CIBlock::GetAdminElementListLink方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$arCatalogBtns = CCatalogAdminTools::getIBlockElementMenu(
$IBLOCK_ID, $arCatalog, array(
'IBLOCK_SECTION_ID' => $find_section_section,
'find_section_section' => $find_section_section
)
);
if (!empty($arCatalogBtns))
$aContext[] = $arCatalogBtns;
}
}
if (strlen($sLastFolder) > 0) {
$aContext[] = array(
"TEXT" => GetMessage("IBEL_A_UP"),
"LINK" => CIBlock::GetAdminElementListLink($IBLOCK_ID, array(
'find_section_section' => $lastSectionId[count($lastSectionId) - 2],
)),
"LINK_PARAM" => "",
"TITLE" => GetMessage("IBEL_A_UP_TITLE"),
);
}
if ($bBizproc && IsModuleInstalled("bizprocdesigner")) {
$bCanDoIt = CBPDocument::CanUserOperateDocumentType(
CBPCanUserOperateOperation::CreateWorkflow, $USER->GetID(), array("iblock", "CIBlockDocument", "iblock_" . $IBLOCK_ID)
);
if ($bCanDoIt) {
$aContext[] = array(
"TEXT" => GetMessage("IBEL_BTN_BP"),
"LINK" => 'iblock_bizproc_workflow_admin.php?document_type=iblock_' . $IBLOCK_ID . '&lang=' . LANGUAGE_ID . '&back_url_list=' . urlencode($REQUEST_URI),
示例2: GetMessage
case "FORUM_MESSAGE_DELETE":
$row->AddViewField("ITEM_ID", '[' . $a_ITEM_ID . '] ' . GetMessage("MAIN_EVENTLOG_FORUM_MESSAGE"));
break;
case "FORUM_TOPIC_DELETE":
$row->AddViewField("ITEM_ID", '[' . $a_ITEM_ID . '] ' . GetMessage("MAIN_EVENTLOG_FORUM_TOPIC"));
break;
case "IBLOCK_SECTION_ADD":
case "IBLOCK_SECTION_EDIT":
case "IBLOCK_SECTION_DELETE":
case "IBLOCK_ELEMENT_ADD":
case "IBLOCK_ELEMENT_EDIT":
case "IBLOCK_ELEMENT_DELETE":
case "IBLOCK_ADD":
case "IBLOCK_EDIT":
case "IBLOCK_DELETE":
$elementLink = CIBlock::GetAdminElementListLink($a_ITEM_ID, array('filter_section' => -1));
parse_str($elementLink);
if (empty($type)) {
$a_ITEM_ID = GetMessage("MAIN_EVENTLOG_IBLOCK_DELETE");
} else {
if (CModule::IncludeModule('iblock')) {
$a_ITEM_ID = '<a href="' . htmlspecialcharsbx($elementLink) . '">' . $a_ITEM_ID . '</a>';
}
}
$row->AddViewField("ITEM_ID", '[' . $a_ITEM_ID . '] ' . GetMessage("MAIN_EVENTLOG_IBLOCK"));
break;
}
}
if (strlen($a_REQUEST_URI)) {
$row->AddViewField("REQUEST_URI", htmlspecialcharsbx($a_REQUEST_URI));
}
示例3: GetMessage
$oFilter->Buttons();
?><span class="adm-btn-wrap"><input type="submit" class="adm-btn" name="set_filter" value="<? echo GetMessage("admin_lib_filter_set_butt"); ?>" title="<? echo GetMessage("admin_lib_filter_set_butt_title"); ?>" onClick="return applyFilter(this);"></span>
<span class="adm-btn-wrap"><input type="submit" class="adm-btn" name="del_filter" value="<? echo GetMessage("admin_lib_filter_clear_butt"); ?>" title="<? echo GetMessage("admin_lib_filter_clear_butt_title"); ?>" onClick="deleteFilter(this); return false;"></span>
<?
$oFilter->End();
?>
</form>
<?
$lAdmin->DisplayList();
if($bWorkFlow || $bBizproc):
echo BeginNote();?>
<span class="adm-lamp adm-lamp-green"></span> - <?echo GetMessage("IBLOCK_GREEN_ALT")?></br>
<span class="adm-lamp adm-lamp-yellow"></span> - <?echo GetMessage("IBLOCK_YELLOW_ALT")?></br>
<span class="adm-lamp adm-lamp-red"></span> - <?echo GetMessage("IBLOCK_RED_ALT")?></br>
<?echo EndNote();
endif;
if(CIBlockRights::UserHasRightTo($IBLOCK_ID, $IBLOCK_ID, "iblock_edit") && !defined("CATALOG_PRODUCT"))
{
echo
BeginNote(),
GetMessage("IBEL_A_IBLOCK_MANAGE_HINT"),
' <a href="'.htmlspecialcharsbx('iblock_edit.php?type='.urlencode($type).'&lang='.LANGUAGE_ID.'&ID='.urlencode($IBLOCK_ID).'&admin=Y&return_url='.urlencode(CIBlock::GetAdminElementListLink($IBLOCK_ID, array('find_section_section' => intval($find_section_section))))).'">',
GetMessage("IBEL_A_IBLOCK_MANAGE_HINT_HREF"),
'</a>',
EndNote()
;
}
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php");
?>
示例4: GetMessage
echo GetMessage("admin_lib_filter_clear_butt_title");
?>
" onClick="deleteFilter(this); return false;"></span>
<?php
$oFilter->End();
?>
</form>
<?php
$lAdmin->DisplayList();
if ($bWorkFlow || $bBizproc) {
echo BeginNote();
?>
<span class="adm-lamp adm-lamp-green"></span> - <?php
echo GetMessage("IBLOCK_GREEN_ALT");
?>
</br>
<span class="adm-lamp adm-lamp-yellow"></span> - <?php
echo GetMessage("IBLOCK_YELLOW_ALT");
?>
</br>
<span class="adm-lamp adm-lamp-red"></span> - <?php
echo GetMessage("IBLOCK_RED_ALT");
?>
</br>
<?php
echo EndNote();
}
if (CIBlockRights::UserHasRightTo($IBLOCK_ID, $IBLOCK_ID, "iblock_edit") && !defined("CATALOG_PRODUCT")) {
echo BeginNote(), GetMessage("IBEL_A_IBLOCK_MANAGE_HINT"), ' <a href="' . htmlspecialcharsbx('iblock_edit.php?type=' . urlencode($type) . '&lang=' . LANGUAGE_ID . '&ID=' . urlencode($IBLOCK_ID) . '&admin=Y&return_url=' . urlencode(CIBlock::GetAdminElementListLink($IBLOCK_ID, array('find_section_section' => intval($find_section_section))))) . '">', GetMessage("IBEL_A_IBLOCK_MANAGE_HINT_HREF"), '</a>', EndNote();
}
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
示例5: Array
if($arParent = $rsParent->Fetch())
{
$aContext[] = Array(
"TEXT" => GetMessage("IBSEC_A_UP"),
"LINK" => CIBlock::GetAdminSectionListLink($IBLOCK_ID, array('find_section_section'=>intval($arParent["IBLOCK_SECTION_ID"]))),
"TITLE" => GetMessage("IBSEC_A_UP_TITLE")
);
}
}
}
else
{
$aContext[] = array(
"TEXT" => htmlspecialcharsbx($arIBlock["ELEMENTS_NAME"]),
"LINK" => htmlspecialcharsbx(CIBlock::GetAdminElementListLink($IBLOCK_ID, array(
'find_section_section' => $find_section_section
))),
"TITLE" => GetMessage("IBSEC_A_LISTEL_TITLE")
);
if ($_GET["tree"] == "Y")
$aContext[] = array(
"TEXT" => GetMessage("IBSEC_A_NOT_TREE"),
"LINK" => CIBlock::GetAdminSectionListLink($IBLOCK_ID, array(
'find_section_section' => $find_section_section,
'tree' => 'N'
)),
"TITLE" => GetMessage("IBSEC_A_NOT_TREE_TITLE")
);
else
$aContext[] = array(
"TEXT" => GetMessage("IBSEC_A_TREE"),
示例6: _get_iblocks_menu
function _get_iblocks_menu($arType)
{
global $adminMenu;
$arIBlocks = array();
foreach ($arType["IBLOCKS"]["S"] as $arIBlock) {
$items_id = "menu_iblock_/" . $arType["ID"] . "/" . $arIBlock["ID"];
if ($arType["SECTIONS"] == 'Y') {
if (isset($_REQUEST["IBLOCK_ID"]) && $_REQUEST["IBLOCK_ID"] == $arIBlock["ID"]) {
$arItems = _get_sections_menu($arType, $arIBlock, 1, 0);
} elseif (isset($_REQUEST['admin_mnu_menu_id']) && strpos($_REQUEST['admin_mnu_menu_id'], $items_id) !== false) {
$arItems = _get_sections_menu($arType, $arIBlock, 1, 0);
} elseif (method_exists($adminMenu, "IsSectionActive")) {
if ($adminMenu->IsSectionActive("menu_iblock_/" . $arType["ID"]) && $adminMenu->IsSectionActive($items_id)) {
$arItems = _get_sections_menu($arType, $arIBlock, 1, 0);
} else {
$arItems = false;
}
} else {
$arItems = _get_sections_menu($arType, $arIBlock, 1, 0);
}
$urlSectionAdminPage = CIBlock::GetAdminSectionListLink($arIBlock["ID"], array("menu" => null));
$arMenuItem = array("text" => $arIBlock["NAME~"], "url" => htmlspecialcharsbx($urlSectionAdminPage . "&find_section_section=0"), "more_url" => array($urlSectionAdminPage . "&find_section_section=0", $urlSectionAdminPage . "&find_section_section=-1", "iblock_section_edit.php?IBLOCK_ID=" . $arIBlock["ID"] . "&type=" . $arType["ID"] . "&find_section_section=-1", "iblock_section_edit.php?IBLOCK_ID=" . $arIBlock["ID"] . "&type=" . $arType["ID"] . "&find_section_section=0", "iblock_element_edit.php?IBLOCK_ID=" . $arIBlock["ID"] . "&type=" . $arType["ID"] . "&find_section_section=-1", "iblock_element_edit.php?IBLOCK_ID=" . $arIBlock["ID"] . "&type=" . $arType["ID"] . "&find_section_section=0", "iblock_history_list.php?IBLOCK_ID=" . $arIBlock["ID"] . "&type=" . $arType["ID"] . "&find_section_section=-1", "iblock_start_bizproc.php?document_type=iblock_" . $arIBlock["ID"]), "title" => $arIBlock["NAME~"], "icon" => "iblock_menu_icon_iblocks", "page_icon" => "iblock_page_icon_iblocks", "skip_chain" => true, "module_id" => "iblock", "items_id" => $items_id, "dynamic" => true, "items" => $arItems);
if (!count($arItems)) {
$arMenuItem["more_url"][] = "iblock_element_edit.php?IBLOCK_ID=" . $arIBlock["ID"] . "&type=" . $arType["ID"];
$arMenuItem["more_url"][] = "iblock_history_list.php?IBLOCK_ID=" . $arIBlock["ID"] . "&type=" . $arType["ID"];
}
$arIBlocks[] = $arMenuItem;
} else {
$urlElementAdminPage = CIBlock::GetAdminElementListLink($arIBlock["ID"], array("menu" => null));
$arIBlocks[] = array("text" => $arIBlock["NAME~"], "url" => htmlspecialcharsbx($urlElementAdminPage), "more_url" => array("iblock_element_edit.php?" . $arIBlock["URL_PART"], "iblock_history_list.php?" . $arIBlock["URL_PART"], $urlElementAdminPage), "title" => $arIBlock["NAME~"], "items_id" => $items_id, "icon" => "iblock_menu_icon_iblocks", "page_icon" => "iblock_page_icon_iblocks", "skip_chain" => true, "module_id" => "iblock", "items" => array());
}
}
return $arIBlocks;
}
示例7: array
?>
&lang=<?php
echo LANGUAGE_ID;
?>
&admin=Y"><?php
echo $res["IBLOCK_TYPE_ID"];
?>
</a>]
[<?php
echo $res['ID'];
?>
] <a title="<?php
echo Loc::getMessage("CO_IB_ELEM_ALT");
?>
" href="<?php
echo CIBlock::GetAdminElementListLink($res["ID"], array('find_section_section' => '0', 'admin' => 'Y'));
?>
"><?php
echo $res["NAME"];
?>
</a> (<?php
echo $arIBlockSitesList[$res['ID']]['WITH_LINKS'];
?>
)
<input type="hidden" name="IS_OFFERS_<?php
echo $res["ID"];
?>
" value="<?php
echo $res['IS_OFFERS'];
?>
" />
示例8: array
$z = CIblockElement::GetByID($LAST_ID);
if (!($zr = $z->Fetch())) {
$APPLICATION->SetTitle(GetMessage("IBLOCK_ADM_HISTORY_TITLE", array("#ID#" => $ELEMENT_ID)));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
?>
<a href="/bitrix/admin/iblock_admin.php?type=<?php
echo htmlspecialcharsbx($type);
?>
&lang=<?php
echo LANG;
?>
"><?php
echo htmlspecialcharsex($arIBTYPE["NAME"]);
?>
</a> - <a href="<?php
echo htmlspecialcharsbx(CIBlock::GetAdminElementListLink($IBLOCK_ID, array()));
?>
"><?php
echo htmlspecialcharsbx($arIBlock["NAME"]);
?>
</a><?php
echo ShowError(GetMessage("IBLOCK_ADM_HISTORY_BAD_ELEMENT"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
die;
}
// this is uniqu ajax id
$sTableID = "tbl_iblock_history";
// sort init
$oSort = new CAdminSorting($sTableID, "ID", "desc");
// list init
$lAdmin = new CAdminList($sTableID, $oSort);
示例9: GetMessage
if ($NS["STEP"] < 6) {
$progressItems[] = GetMessage("IBLOCK_CML2_DELETE");
} elseif ($NS["STEP"] < 7) {
$progressItems[] = "<b>" . GetMessage("IBLOCK_CML2_DELETE_PROGRESS", array("#DONE#" => intval($NS["DONE"]["DEL"]))) . "</b>";
} else {
$progressItems[] = GetMessage("IBLOCK_CML2_DELETE_DONE");
}
}
}
CAdminMessage::ShowMessage(array("DETAILS" => "<p>" . implode("</p><p>", $progressItems) . "</p>", "HTML" => true, "TYPE" => "PROGRESS", "PROGRESS_TOTAL" => $progressTotal, "PROGRESS_VALUE" => $progressValue));
if ($NS["STEP"] > 0) {
echo '<script>DoNext(' . CUtil::PhpToJSObject(array("NS" => $NS)) . ');</script>';
}
} else {
$progressItems = array(GetMessage("IBLOCK_CML2_ADDED", array("#COUNT#" => intval($NS["DONE"]["ADD"]))), GetMessage("IBLOCK_CML2_UPDATED", array("#COUNT#" => intval($NS["DONE"]["UPD"]))), GetMessage("IBLOCK_CML2_DELETED", array("#COUNT#" => intval($NS["DONE"]["DEL"]))), GetMessage("IBLOCK_CML2_DEACTIVATED", array("#COUNT#" => intval($NS["DONE"]["DEA"]))), GetMessage("IBLOCK_CML2_WITH_ERRORS", array("#COUNT#" => intval($NS["DONE"]["ERR"]))));
CAdminMessage::ShowMessage(array("MESSAGE" => GetMessage("IBLOCK_CML2_DONE"), "DETAILS" => "<p>" . implode("</p><p>", $progressItems) . "</p>", "HTML" => true, "TYPE" => "PROGRESS", "BUTTONS" => array(array("VALUE" => GetMessage("IBLOCK_CML2_ELEMENTS_LIST"), "ONCLICK" => "window.location = '" . CUtil::JSEscape(CIBlock::GetAdminElementListLink($NS["IBLOCK_ID"], array('find_el_y' => 'Y'))) . "';"))));
echo '<script>EndImport();</script>';
}
}
require $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/include/epilog_admin_js.php";
}
$APPLICATION->SetTitle(GetMessage("IBLOCK_CML2_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
?>
<div id="tbl_iblock_import_result_div"></div>
<?php
$aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("IBLOCK_CML2_TAB"), "ICON" => "main_user_edit", "TITLE" => GetMessage("IBLOCK_CML2_TAB_TITLE")));
$tabControl = new CAdminTabControl("tabControl", $aTabs, true, true);
?>
<script language="JavaScript" type="text/javascript">
var running = false;
示例10: htmlspecialcharsbx
}
} else {
if ($arIBTYPE["SECTIONS"] == "Y") {
$row->AddViewField("NAME", '<a href="' . htmlspecialcharsbx(CIBlock::GetAdminSectionListLink($f_ID, array('find_section_section' => 0))) . '" title="' . GetMessage("IBLOCK_ADM_TO_SECTLIST") . '">' . $f_NAME . '</a>');
} else {
$row->AddViewField("NAME", '<a href="' . htmlspecialcharsbx(CIBlock::GetAdminElementListLink($f_ID, array('find_section_section' => -1))) . '" title="' . GetMessage("IBLOCK_ADM_TO_EL_LIST") . '">' . $f_NAME . '</a>');
}
$row->AddCheckField("ACTIVE", false);
$row->AddCheckField("INDEX_ELEMENT", false);
if ($bWorkflow) {
$row->AddCheckField("WORKFLOW", false);
}
}
if (in_array("ELEMENT_CNT", $lAdmin->GetVisibleHeaderColumns())) {
$f_ELEMENT_CNT = CIBlock::GetElementCount($f_ID);
$row->AddViewField("ELEMENT_CNT", '<a href="' . htmlspecialcharsbx(CIBlock::GetAdminElementListLink($f_ID, array('find_section_section' => -1))) . '" title="' . GetMessage("IBLOCK_ADM_TO_ELLIST") . '">' . $f_ELEMENT_CNT . '</a>');
}
if ($arIBTYPE["SECTIONS"] == "Y" && in_array("SECTION_CNT", $lAdmin->GetVisibleHeaderColumns())) {
$row->AddViewField("SECTION_CNT", '<a href="' . htmlspecialcharsbx(CIBlock::GetAdminSectionListLink($f_ID, array())) . '" title="' . GetMessage("IBLOCK_ADM_TO_SECTLIST") . '">' . IntVal(CIBlockSection::GetCount(array("IBLOCK_ID" => $f_ID))) . '</a>');
}
if ($bBizproc && $dbrs["BIZPROC"] == "Y" && in_array("WORKFLOW_TEMPLATES", $lAdmin->GetVisibleHeaderColumns()) && IsModuleInstalled("bizprocdesigner")) {
$cnt = CBPDocument::GetNumberOfWorkflowTemplatesForDocumentType(array("iblock", "CIBlockDocument", "iblock_" . $f_ID));
$row->AddViewField("WORKFLOW_TEMPLATES", '<a href="/bitrix/admin/iblock_bizproc_workflow_admin.php?document_type=iblock_' . $f_ID . '&lang=' . LANGUAGE_ID . '&back_url_list=' . urlencode($APPLICATION->GetCurPageParam("", array())) . '">' . $cnt . '</a>');
}
$arActions = array();
if ($_REQUEST["admin"] == "Y" && CIBlockRights::UserHasRightTo($f_ID, $f_ID, "iblock_edit")) {
$arActions[] = array("ICON" => "edit", "TEXT" => GetMessage("MAIN_ADMIN_MENU_EDIT"), "DEFAULT" => $_REQUEST["admin"] == "Y", "ACTION" => $lAdmin->ActionRedirect("iblock_edit.php?ID=" . $f_ID . "&type=" . urlencode($type) . "&lang=" . LANGUAGE_ID . "&admin=" . ($_REQUEST["admin"] == "Y" ? "Y" : "N")));
$arActions[] = array("ICON" => "list", "TEXT" => GetMessage("IBLOCK_ADM_MENU_PROPERTIES"), "ACTION" => $lAdmin->ActionRedirect("iblock_property_admin.php?IBLOCK_ID=" . $f_ID . "&lang=" . LANGUAGE_ID . ($_REQUEST["admin"] == "Y" ? "&admin=Y" : "&admin=N")));
}
if ($bBizproc && $dbrs["BIZPROC"] == "Y" && CIBlockRights::UserHasRightTo($f_ID, $f_ID, "iblock_edit") && IsModuleInstalled("bizprocdesigner")) {
$arActions[] = array("ICON" => "", "TEXT" => GetMessage("IBLOCK_ADM_MENU_BIZPROC"), "ACTION" => "window.location='/bitrix/admin/iblock_bizproc_workflow_admin.php?document_type=iblock_" . $f_ID . "&lang=" . LANGUAGE_ID . "';");
示例11: is_array
: <?php
echo $arIBlockElement[$code];
?>
<br><?php
}
if (strpos($code, "PROPERTY_") === 0 && is_array($arIBlockElement["DISPLAY_PROPERTIES"]) && strlen(substr($code, 9)) > 0 && array_key_exists(substr($code, 9), $arIBlockElement["DISPLAY_PROPERTIES"]) && (!is_array($arIBlockElement["DISPLAY_PROPERTIES"][substr($code, 9)]["DISPLAY_VALUE"]) && strlen($arIBlockElement["DISPLAY_PROPERTIES"][substr($code, 9)]["DISPLAY_VALUE"]) > 0 || is_array($arIBlockElement["DISPLAY_PROPERTIES"][substr($code, 9)]["DISPLAY_VALUE"]) && count($arIBlockElement["DISPLAY_PROPERTIES"][substr($code, 9)]["DISPLAY_VALUE"]) > 0)) {
$val = $arIBlockElement["DISPLAY_PROPERTIES"][substr($code, 9)]["DISPLAY_VALUE"];
echo $arIBlockElement["DISPLAY_PROPERTIES"][substr($code, 9)]["NAME"];
?>
: <?php
echo is_array($val) ? implode(" / ", $val) : $val;
?>
<br><?php
}
}
}
}
?>
</div><?php
}
$urlElementAdminPage = CIBlock::GetAdminElementListLink($arIBlock["ID"], array());
?>
<div><a href="<?php
echo $urlElementAdminPage;
?>
"><?php
echo GetMessage("GD_IBEL_NAME_ALL_ELEMENTS");
?>
</a></div><?php
}
}
示例12: switch
if ($entityId <= 0) {
$errors[] = Loc::getMessage('BX_IBLOCK_REDIRECT_ENTITY_ERR_EMPTY_ELEMENT_ID');
}
if (!isset($entityList[$entityCode])) {
$errors[] = Loc::getMessage('BX_IBLOCK_REDIRECT_ENTITY_ERR_EMPTY_ENTITY');
}
if (empty($errors)) {
$redirectUrl = '';
switch ($entityCode) {
case 'IBLOCK':
$iblockIterator = CIBlock::GetList(array(), array('ID' => $entityId, 'CHECK_PERMISSIONS' => 'Y', 'MIN_PERMISSION' => 'S'), false);
$iblock = $iblockIterator->Fetch();
if (empty($iblock)) {
$errors[] = Loc::getMessage('BX_IBLOCK_REDIRECT_ENTITY_ERR_IBLOCK_NOT_FOUND');
} else {
$redirectUrl = CIBlock::GetAdminElementListLink($iblock['ID'], array('find_section_section' => -1, 'WF' => 'Y', 'menu' => null));
}
unset($iblock, $iblockIterator);
break;
case 'ELEMENT':
$elementIterator = CIBlockElement::GetList(array(), array('ID' => $entityId, 'CHECK_PERMISSIONS' => 'Y', 'MIN_PERMISSION' => 'S'), false, false, array('ID', 'IBLOCK_ID', 'WF_PARENT_ELEMENT_ID'));
$element = $elementIterator->Fetch();
if (empty($element)) {
$errors[] = Loc::getMessage('BX_IBLOCK_REDIRECT_ENTITY_ERR_ELEMENT_NOT_FOUND');
} else {
$redirectUrl = CIBlock::GetAdminElementEditLink($element['IBLOCK_ID'], !empty($element['WF_PARENT_ELEMENT_ID']) ? $element['WF_PARENT_ELEMENT_ID'] : $element['ID'], array('find_section_section' => -1, 'WF' => 'Y', 'menu' => null));
}
unset($element, $elementIterator);
break;
}
if ($redirectUrl != '') {
示例13: GetMessage
$arLinkedProp = $rsLinkedProps->GetNext();
if($arLinkedProp)
{
$tabControl->BeginCustomField("LINKED_PROP", GetMessage("IBLOCK_ELEMENT_EDIT_LINKED"));
?>
<tr class="heading" id="tr_LINKED_PROP">
<td colspan="2"><?echo $tabControl->GetCustomLabelHTML();?></td>
</tr>
<?
do {
$elements_name = CIBlock::GetArrayByID($arLinkedProp["IBLOCK_ID"], "ELEMENTS_NAME");
if(strlen($elements_name) <= 0)
$elements_name = GetMessage("IBLOCK_ELEMENT_EDIT_ELEMENTS");
?>
<tr id="tr_LINKED_PROP<?echo $arLinkedProp["ID"]?>">
<td colspan="2"><a href="<?echo htmlspecialcharsbx(CIBlock::GetAdminElementListLink($arLinkedProp["IBLOCK_ID"], array('set_filter'=>'Y', 'find_el_property_'.$arLinkedProp["ID"]=>$ID, 'find_section_section' => -1)))?>"><?echo CIBlock::GetArrayByID($arLinkedProp["IBLOCK_ID"], "NAME").": ".$elements_name?></a></td>
</tr>
<?
} while ($arLinkedProp = $rsLinkedProps->GetNext());
$tabControl->EndCustomField("LINKED_PROP", "");
}
}
$tabControl->BeginNextFormTab();
$tabControl->BeginCustomField("PREVIEW_PICTURE", GetMessage("IBLOCK_FIELD_PREVIEW_PICTURE"), $arIBlock["FIELDS"]["PREVIEW_PICTURE"]["IS_REQUIRED"] === "Y");
if($bVarsFromForm && !array_key_exists("PREVIEW_PICTURE", $_REQUEST) && $arElement)
$str_PREVIEW_PICTURE = intval($arElement["PREVIEW_PICTURE"]);
?>
<tr id="tr_PREVIEW_PICTURE" class="adm-detail-file-row">
<td width="40%" class="adm-detail-valign-top"><?echo $tabControl->GetCustomLabelHTML()?>:</td>
<td width="60%">
示例14: array
if (empty($aContext)) {
$aContext[] = array("TEXT" => htmlspecialcharsbx($arIBlock["ELEMENT_ADD"]), "ICON" => "btn_new", "LINK" => CIBlock::GetAdminElementEditLink($IBLOCK_ID, 0, array('IBLOCK_SECTION_ID' => $find_section_section, 'find_section_section' => $find_section_section, 'from' => 'iblock_section_admin')), "TITLE" => GetMessage("IBSEC_A_ADDEL_TITLE"));
}
}
if (CIBlockSectionRights::UserHasRightTo($IBLOCK_ID, $find_section_section, "section_section_bind")) {
$aContext[] = array("TEXT" => htmlspecialcharsbx($arIBlock["SECTION_ADD"]), "ICON" => $boolBtnNew ? "" : "btn_new", "LINK" => CIBlock::GetAdminSectionEditLink($IBLOCK_ID, 0, array('IBLOCK_SECTION_ID' => $find_section_section, 'find_section_section' => $find_section_section, 'from' => 'iblock_section_admin')), "TITLE" => GetMessage("IBSEC_A_SECTADD_PRESS"));
}
if (defined("CATALOG_PRODUCT")) {
if ($find_section_section > 0) {
$rsParent = CIBlockSection::GetList(array(), array("=ID" => $find_section_section), false, array("ID", "IBLOCK_SECTION_ID"));
if ($arParent = $rsParent->Fetch()) {
$aContext[] = array("TEXT" => GetMessage("IBSEC_A_UP"), "LINK" => CIBlock::GetAdminSectionListLink($IBLOCK_ID, array('find_section_section' => intval($arParent["IBLOCK_SECTION_ID"]))), "TITLE" => GetMessage("IBSEC_A_UP_TITLE"));
}
}
} else {
$aContext[] = array("TEXT" => htmlspecialcharsbx($arIBlock["ELEMENTS_NAME"]), "LINK" => htmlspecialcharsbx(CIBlock::GetAdminElementListLink($IBLOCK_ID, array('find_section_section' => $find_section_section))), "TITLE" => GetMessage("IBSEC_A_LISTEL_TITLE"));
if ($_GET["tree"] == "Y") {
$aContext[] = array("TEXT" => GetMessage("IBSEC_A_NOT_TREE"), "LINK" => CIBlock::GetAdminSectionListLink($IBLOCK_ID, array('find_section_section' => $find_section_section, 'tree' => 'N')), "TITLE" => GetMessage("IBSEC_A_NOT_TREE_TITLE"));
} else {
$aContext[] = array("TEXT" => GetMessage("IBSEC_A_TREE"), "LINK" => CIBlock::GetAdminSectionListLink($IBLOCK_ID, array('find_section_section' => $find_section_section, 'tree' => 'Y')), "TITLE" => GetMessage("IBSEC_A_TREE_TITLE"));
}
}
$lAdmin->AddAdminContextMenu($aContext);
if (!defined("CATALOG_PRODUCT")) {
$chain = $lAdmin->CreateChain();
$sSectionUrl = CIBlock::GetAdminSectionListLink($IBLOCK_ID, array('find_section_section' => 0));
if ($_GET["tree"] == "Y") {
$sSectionUrl .= '&tree=Y';
}
$chain->AddItem(array("TEXT" => htmlspecialcharsex($arIBlock["NAME"]), "LINK" => htmlspecialcharsbx($sSectionUrl), "ONCLICK" => $lAdmin->ActionAjaxReload($sSectionUrl) . ';return false;'));
if ($find_section_section > 0) {
示例15: GetPanelButtons
//.........这里部分代码省略.........
$url = str_replace("&bxpublic=Y&from_module=iblock", "", $url);
$arButton["ACTION"] = "javascript:jsUtils.Redirect([], '" . CUtil::JSEscape($url) . "')";
unset($arButton["ONCLICK"]);
$arButtons["submenu"]["edit_element"] = $arButton;
if ($bWorkflow) {
$url = "/bitrix/admin/iblock_history_list.php?type=" . $arIBlock["IBLOCK_TYPE_ID"] . "&lang=" . LANGUAGE_ID . "&IBLOCK_ID=" . $IBLOCK_ID . "&ELEMENT_ID=" . $ELEMENT_ID . "&filter_section=" . $SECTION_ID . "&return_url=" . UrlEncode($return_url["history_element"]);
$arButton = array("TEXT" => GetMessage("IBLOCK_PANEL_HISTORY_BUTTON"), "TITLE" => GetMessage("IBLOCK_PANEL_HISTORY_BUTTON"), "ACTION" => "javascript:jsUtils.Redirect([], '" . CUtil::JSEscape($url) . "')", "ONCLICK" => "jsUtils.Redirect([], '" . CUtil::JSEscape($url) . "')", "ID" => "bx-context-toolbar-history-element");
$arButtons["submenu"]["history_element"] = $arButton;
}
}
if (CIBlockSectionRights::UserHasRightTo($IBLOCK_ID, $SECTION_ID, "section_element_bind")) {
$url = "/bitrix/admin/" . CIBlock::GetAdminElementEditLink($IBLOCK_ID, null, array("force_catalog" => $bCatalog, "filter_section" => $SECTION_ID, "IBLOCK_SECTION_ID" => $SECTION_ID, "bxpublic" => "Y", "from_module" => "iblock", "return_url" => $return_url["add_element"]));
$action = $APPLICATION->GetPopupLink(array("URL" => $url, "PARAMS" => array("width" => 700, 'height' => 400, 'resize' => false)));
$arButton = array("TEXT" => strlen($arLabels["ELEMENT_ADD_TEXT"]) ? $arLabels["ELEMENT_ADD_TEXT"] : $arIBlock["ELEMENT_ADD"], "TITLE" => strlen($arLabels["ELEMENT_ADD_TITLE"]) ? $arLabels["ELEMENT_ADD_TITLE"] : $arIBlock["ELEMENT_ADD"], "ACTION" => 'javascript:' . $action, "ACTION_URL" => $url, "ONCLICK" => $action, "ICON" => "bx-context-toolbar-create-icon", "ID" => "bx-context-toolbar-add-element");
$arButtons["edit"]["add_element"] = $arButton;
$arButtons["configure"]["add_element"] = $arButton;
$arButtons["intranet"][] = array('TEXT' => $arButton["TEXT"], 'TITLE' => $arButton["TITLE"], 'ICON' => 'add', 'ONCLICK' => $arButton["ACTION"], 'SORT' => 1000);
$url = str_replace("&bxpublic=Y&from_module=iblock", "", $url);
$arButton["ACTION"] = "javascript:jsUtils.Redirect([], '" . CUtil::JSEscape($url) . "')";
unset($arButton["ONCLICK"]);
$arButtons["submenu"]["add_element"] = $arButton;
}
if ($ELEMENT_ID > 0 && CIBlockElementRights::UserHasRightTo($IBLOCK_ID, $ELEMENT_ID, "element_delete")) {
//Delete Element
if (!empty($arButtons["edit"])) {
$arButtons["edit"][] = array("SEPARATOR" => "Y", "HREF" => "");
}
if (!empty($arButtons["configure"])) {
$arButtons["configure"][] = array("SEPARATOR" => "Y", "HREF" => "");
}
if (!empty($arButtons["submenu"])) {
$arButtons["submenu"][] = array("SEPARATOR" => "Y", "HREF" => "");
}
$url = CIBlock::GetAdminElementListLink($IBLOCK_ID, array('action' => 'delete'));
if ($bSessID) {
$url .= '&' . bitrix_sessid_get();
}
$url .= '&ID=' . (preg_match('/^iblock_list_admin\\.php/', $url) ? "E" : "") . $ELEMENT_ID . "&return_url=" . UrlEncode($return_url["delete_element"]);
$url = "/bitrix/admin/" . $url;
$arButton = array("TEXT" => strlen($arLabels["ELEMENT_DELETE_TEXT"]) ? $arLabels["ELEMENT_DELETE_TEXT"] : $arIBlock["ELEMENT_DELETE"], "TITLE" => strlen($arLabels["ELEMENT_DELETE_TITLE"]) ? $arLabels["ELEMENT_DELETE_TITLE"] : $arIBlock["ELEMENT_DELETE"], "ACTION" => "javascript:if(confirm('" . GetMessageJS("IBLOCK_PANEL_ELEMENT_DEL_CONF") . "'))jsUtils.Redirect([], '" . CUtil::JSEscape($url) . "')", "ACTION_URL" => $url, "ONCLICK" => "if(confirm('" . GetMessageJS("IBLOCK_PANEL_ELEMENT_DEL_CONF") . "'))jsUtils.Redirect([], '" . CUtil::JSEscape($url) . "')", "ICON" => "bx-context-toolbar-delete-icon", "ID" => "bx-context-toolbar-delete-element");
$arButtons["edit"]["delete_element"] = $arButton;
$arButtons["configure"]["delete_element"] = $arButton;
$arButtons["submenu"]["delete_element"] = $arButton;
}
if ($ELEMENT_ID <= 0 && $bSectionButtons) {
$rsIBTYPE = CIBlockType::GetByID($arIBlock["IBLOCK_TYPE_ID"]);
if (($arIBTYPE = $rsIBTYPE->Fetch()) && $arIBTYPE["SECTIONS"] == "Y") {
if ($SECTION_ID > 0 && CIBlockSectionRights::UserHasRightTo($IBLOCK_ID, $SECTION_ID, "section_edit")) {
if (!empty($arButtons["edit"])) {
$arButtons["edit"][] = array("SEPARATOR" => "Y", "HREF" => "");
}
if (!empty($arButtons["configure"])) {
$arButtons["configure"][] = array("SEPARATOR" => "Y", "HREF" => "");
}
if (!empty($arButtons["submenu"])) {
$arButtons["submenu"][] = array("SEPARATOR" => "Y", "HREF" => "");
}
$url = "/bitrix/admin/" . CIBlock::GetAdminSectionEditLink($IBLOCK_ID, $SECTION_ID, array("force_catalog" => $bCatalog, "filter_section" => $SECTION_ID, "bxpublic" => "Y", "from_module" => "iblock", "return_url" => $return_url["edit_section"]));
$action = $APPLICATION->GetPopupLink(array("URL" => $url, "PARAMS" => array("width" => 700, 'height' => 400, 'resize' => false)));
$arButton = array("TEXT" => strlen($arLabels["SECTION_EDIT_TEXT"]) ? $arLabels["SECTION_EDIT_TEXT"] : $arIBlock["SECTION_EDIT"], "TITLE" => strlen($arLabels["SECTION_EDIT_TITLE"]) ? $arLabels["SECTION_EDIT_TITLE"] : $arIBlock["SECTION_EDIT"], "ACTION" => 'javascript:' . $action, "ACTION_URL" => $url, "ICON" => "bx-context-toolbar-edit-icon", "ONCLICK" => $action, "DEFAULT" => $APPLICATION->GetPublicShowMode() != 'configure' ? true : false, "ID" => "bx-context-toolbar-edit-section");
$arButtons["edit"]["edit_section"] = $arButton;
$arButtons["configure"]["edit_section"] = $arButton;
$url = str_replace("&bxpublic=Y&from_module=iblock", "", $url);
$arButton["ACTION"] = "javascript:jsUtils.Redirect([], '" . CUtil::JSEscape($url) . "')";
unset($arButton["ONCLICK"]);
$arButtons["submenu"]["edit_section"] = $arButton;