6if(
$USER->IsAdmin() && CModule::IncludeModule(
'iblock') && CModule::IncludeModule(
'lists')):
13 "DIV" =>
"permissions",
14 "TAB" =>
GetMessage(
"LISTS_OPTIONS_TAB_PERMISSIONS"),
15 "TITLE" =>
GetMessage(
"LISTS_OPTIONS_TAB_TITLE_PERMISSIONS"),
23 "TAB" =>
GetMessage(
"LISTS_OPTIONS_TAB_SOCNET"),
24 "TITLE" =>
GetMessage(
"LISTS_OPTIONS_TAB_TITLE_SOCNET"),
30 "TAB" =>
GetMessage(
"LISTS_OPTIONS_TAB_LIVE_FEED"),
31 "TITLE" =>
GetMessage(
"LISTS_OPTIONS_TAB_TITLE_LIVE_FEED"),
48 $arIBTypes[
"REFERENCE_ID"][] = $arIBType[
"~ID"];
61 COption::RemoveOption(
"lists");
67 isset($_POST[
"type_right"]) && is_array($_POST[
"type_right"])
68 && isset($_POST[
"group_right"]) && is_array($_POST[
"group_right"])
71 $keys = array_keys($_POST[
"type_right"]);
75 array_key_exists(
$i, $_POST[
"type_right"])
76 && array_key_exists(
$i, $_POST[
"group_right"])
79 $arRights[$_POST[
"type_right"][
$i]][] = $_POST[
"group_right"][
$i];
89 COption::SetOptionString(
"lists",
"socnet_iblock_type_id", $_POST[
"socnet_iblock_type_id"]);
90 CLists::EnableSocnet($_POST[
"socnet_enable"] ===
"Y");
93 if(isset($_POST[
"livefeed_iblock_type_id"]) && isset($_POST[
"livefeed_url"]))
95 COption::SetOptionString(
"lists",
"livefeed_iblock_type_id", $_POST[
"livefeed_iblock_type_id"]);
96 COption::SetOptionString(
"lists",
"livefeed_url", $_POST[
"livefeed_url"]);
113function addNewTableRow(tableID, regexp, rindex)
115 var tbl = document.getElementById(tableID);
116 var cnt = tbl.rows.length-1;
117 var oRow = tbl.insertRow(cnt);
118 var col_count = tbl.rows[cnt-1].cells.length;
120 for(var i=0;i<col_count;i++)
122 var oCell = oRow.insertCell(i);
123 var html = tbl.rows[cnt-1].cells[i].innerHTML;
124 oCell.innerHTML = html.replace(regexp,
127 return html.replace(
'[n'+arguments[rindex]+
']',
'[n'+(1+parseInt(arguments[rindex]))+
']');
133<form method=
"post" action=
"<?= $APPLICATION->GetCurPage() ?>?mid=<?=urlencode($mid ?? 'lists')?>&lang=<?=LANGUAGE_ID?>">
139 <td valign=
"top" colspan=
"2">
140 <table border=
"0" cellspacing=
"0" cellpadding=
"0" class=
"internal" align=
"center" id=
"tblRIGHTS">
142 <td><?echo
GetMessage(
"LISTS_OPTIONS_USER_GROUPS")?></td>
143 <td><?echo
GetMessage(
"LISTS_OPTIONS_IBLOCK_TYPES")?></td>
168 <td colspan=
"2" style=
"border:none">
169 <input type=
"button" value=
"<?echo GetMessage("LISTS_OPTIONS_ADD_RIGHT
")?>" onClick=
"addNewTableRow('tblRIGHTS', /right\[(n)([0-9]*)\]/g, 2)">
183 <td
width=
"30%"><?echo
GetMessage(
"LISTS_OPTIONS_SOCNET_ENABLE")?>:</td>
184 <td
width=
"70%"><input type=
"checkbox" name=
"socnet_enable" <?
if($socnet_enable) echo
"checked"?> value=
"Y"></td>
187 <td
width=
"30%"><?echo
GetMessage(
"LISTS_OPTIONS_SOCNET_IBLOCK_TYPE")?>:</td>
198 <td
width=
"30%"><?echo
GetMessage(
"LISTS_OPTIONS_LIVE_FEED_IBLOCK_TYPE")?>:</td>
202 <td
width=
"30%"><?echo
GetMessage(
"LISTS_OPTIONS_LIVE_FEED_SEF_FOLDER")?>:</td>
204 <input type=
"text" name=
"livefeed_url" id=
"livefeed_url" value=
"<?=htmlspecialcharsbx($livefeed_url); ?>">
210 <input type=
"submit" name=
"Update" value=
"<?=GetMessage("MAIN_SAVE
")?>" title=
"<?=GetMessage("MAIN_OPT_SAVE_TITLE
")?>" class=
"adm-btn-save">
211 <input type=
"submit" name=
"Apply" value=
"<?=GetMessage("MAIN_OPT_APPLY
")?>" title=
"<?=GetMessage("MAIN_OPT_APPLY_TITLE
")?>">
212 <?
if(
$_REQUEST[
"back_url_settings"] <>
''):?>
213 <input type=
"button" name=
"Cancel" value=
"<?=GetMessage("MAIN_OPT_CANCEL
")?>" title=
"<?=GetMessage("MAIN_OPT_CANCEL_TITLE
")?>" onclick=
"window.location='<?echo htmlspecialcharsbx(CUtil::addslashes($_REQUEST["back_url_settings
"]))?>'">
214 <input type=
"hidden" name=
"back_url_settings" value=
"<?=htmlspecialcharsbx($_REQUEST["back_url_settings
"])?>">
216 <input type=
"submit" name=
"RestoreDefaults" title=
"<?echo GetMessage("MAIN_HINT_RESTORE_DEFAULTS
")?>" OnClick=
"return confirm('<?echo AddSlashes(GetMessage("MAIN_HINT_RESTORE_DEFAULTS_WARNING
"))?>')" value=
"<?echo GetMessage("MAIN_RESTORE_DEFAULTS
")?>">
static GetDropDownList($strSqlSearch="and ACTIVE='Y'", $strSqlOrder="ORDER BY C_SORT, NAME, ID")
static GetOptionString($module_id, $name, $def="", $site=false, $bExactSite=false)
static GetList($arOrder=array("SORT"=> "ASC"), $arFilter=array())
bx popup label bx width30 PAGE_NEW_MENU_NAME text width
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
foreach(CLists::GetPermission() as $type_id=> $groups)(in_array($type_id, $arIBTypes["REFERENCE_ID"]))($groups as $group)("group_right[n". $i."]", $arGroups, $group, GetMessage("LISTS_OPTIONS_CHOOSE_GROUP"))?></td >< td ><?echo SelectBoxFromArray("type_right[n". $i."]" $type_id
$_SERVER["DOCUMENT_ROOT"]
bitrix_sessid_post($varname='sessid', $returnInvocations=false)
check_bitrix_sessid($varname='sessid')
IsModuleInstalled($module_id)
IncludeModuleLangFile($filepath, $lang=false, $bReturnArray=false)
GetMessage($name, $aReplace=null)
LocalRedirect($url, $skip_security_check=false, $status="302 Found")
SelectBoxFromArray( $strBoxName, $db_array, $strSelectedVal="", $strDetText="", $field1="class='typeselect'", $go=false, $form="form1")
global_menu_<?echo $menu["menu_id"]?> adm main menu item icon adm main menu item text text adm main menu hover adm submenu menucontainer menu_id menu_id items_id items_id desktop menu_id block none adm global submenu<?=($subMenuDisplay=="block" ? " adm-global-submenu-active" :"")?> global_submenu_<?echo $menu["menu_id"]?> text MAIN_PR_ADMIN_FAV items adm submenu items wrap adm submenu items stretch wrap BX adminMenu itemsStretchScroll()"> <table class if (!empty( $menu["items"])) elseif ( $menu[ 'menu_id']=='desktop') if ( $menu[ 'menu_id']=='desktop') endforeach
<? endif;?> window document title