Current Path : /var/www/html/clients/amz.e-nk.ru/bitrix/php_interface/include/ |
Current File : /var/www/html/clients/amz.e-nk.ru/bitrix/php_interface/include/add_top_panel.php |
<? //Example how to add a button to top panel //This file is included when function //$APPLICATION->GetPanel(); is executed in prolog /* if ($APPLICATION->GetCurPage() == LANG_DIR."partners/note.php") { $FORM_RIGHT = $APPLICATION->GetGroupRight("form"); if($FORM_RIGHT>"D") { // sorting index $main_sort = 300; // alt-text of button $alt = "Edit Web Form for this page"; // button is hyperlink $link = "Y"; // hyperlink $href = "/bitrix/admin/form_list.php"; // button image (normal) $src_0 = "/bitrix/images/fileman/panel/web_form.gif"; // button image (unavailable) $src_1 = "/bitrix/images/fileman/panel/web_form_t.gif"; // Adding button to top panel $APPLICATION->AddPanelButton(array("LINK"=>$link, "HREF"=>$href, "SRC_0"=>$src_0, "SRC_1"=>$src_1, "ALT"=>$alt, "MAIN_SORT"=>$main_sort, "SORT"=>100)); } } */ ?>