14 while(
$zr =
$z->Fetch())
19 array(
"DONT_USE_CONTRACT",
GetMessage(
"AD_DONT_USE_CONTRACT"), Array(
"checkbox",
"Y")),
20 array(
"DONT_FIX_BANNER_SHOWS",
GetMessage(
"AD_OPT_DONT_FIX_BANNER_SHOWS"), Array(
"checkbox",
"Y")),
21 array(
"USE_HTML_EDIT",
GetMessage(
"AD_USE_HTML_EDIT"), Array(
"checkbox",
"Y")),
22 Array(
"SHOW_COMPONENT_PREVIEW",
GetMessage(
"AD_SHOW_COMPONENT_PREVIEW"), Array(
"checkbox",
"Y")),
23 Array(
"BANNER_DAYS",
GetMessage(
"AD_BANNER_DAYS"), Array(
"text", 5),
"CAdvBanner::CleanUpAllDynamics",
"b_adv_banner_2_day"),
24 Array(
"BANNER_GRAPH_WEIGHT",
GetMessage(
"AD_BANNER_GRAPH_WEIGHT"), Array(
"text", 5)),
25 Array(
"BANNER_GRAPH_HEIGHT",
GetMessage(
"AD_BANNER_GRAPH_HEIGHT"), Array(
"text", 5)),
26 Array(
"BANNER_DIAGRAM_DIAMETER",
GetMessage(
"AD_BANNER_DIAGRAM_DIAMETER"), Array(
"text", 5)),
27 Array(
"COOKIE_DAYS",
GetMessage(
"AD_COOKIE_DAYS"), Array(
"text", 5)),
31 array(
"DIV" =>
"edit1",
"TAB" =>
GetMessage(
"MAIN_TAB_SET"),
"ICON" =>
"ad_settings",
"TITLE" =>
GetMessage(
"MAIN_TAB_TITLE_SET")),
32 array(
"DIV" =>
"edit2",
"TAB" =>
GetMessage(
"MAIN_TAB_RIGHTS"),
"ICON" =>
"ad_settings",
"TITLE" =>
GetMessage(
"MAIN_TAB_TITLE_RIGHTS")),
39 $old_subdir = COption::GetOptionString(
$module_id,
"UPLOAD_SUBDIR");
40 $new_subdir = $_POST[
"UPLOAD_SUBDIR"];
42 if($old_subdir != $new_subdir)
70 require_once(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/main/admin/group_rights.php");
83<form method=
"POST" action=
"<?echo $APPLICATION->GetCurPage()?>?mid=<?=htmlspecialcharsbx($mid)?>&lang=<?=LANGUAGE_ID?>">
94 <td valign=
"top" width=
"50%"><?
if(
$type[0]==
"checkbox")
95 echo
"<label for=\"".htmlspecialcharsbx(
$Option[0]).
"\">".
$Option[1].
"</label>";
98 <td valign=
"top" width=
"50%"><?
99 if(
$type[0]==
"checkbox"):?>
100 <input type=
"checkbox" name=
"<?echo htmlspecialcharsbx($Option[0])?>" id=
"<?echo htmlspecialcharsbx($Option[0])?>" value=
"Y"<?
if(
$val==
"Y")echo
" checked";?>>
107 foreach(
$arr as $table)
109 $strSql =
"SELECT count(*) as COUNT FROM ".$table;
110 $z =
$DB->Query($strSql,
false,$err_mess.__LINE__);
116 <input type=
"text" size=
"<?=$type[1]?>" maxlength=
"255" value=
"<?=htmlspecialcharsbx($val)?>" name=
"<?=htmlspecialcharsbx($Option[0])?>">
121 <label
for=
"<?=htmlspecialcharsbx($Option[0])?>_clear">
124 <input type=
"checkbox" name=
"<?=htmlspecialcharsbx($Option[0])?>_clear" id=
"<?=htmlspecialcharsbx($Option[0])?>_clear" value=
"Y">
130 echo
'('.GetMessage(
"AD_RECORDS").
' '.
$count.
')';
134 <textarea rows=
"<?echo $type[1]?>" cols=
"<?echo $type[2]?>" name=
"<?echo htmlspecialcharsbx($Option[0])?>"><?echo
htmlspecialcharsbx(
$val)?></textarea>
142 <td valign=
"top"><?=
GetMessage(
"AD_UPLOAD_SUBDIR")?></td>
143 <td valign=
"middle"><input type=
"text" size=
"30" maxlength=
"255" value=
"<?=htmlspecialcharsbx($UPLOAD_SUBDIR)?>" name=
"UPLOAD_SUBDIR"></td>
146<?require_once(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/main/admin/group_rights.php");?>
149function RestoreDefaults()
151 if(confirm(
'<?echo AddSlashes(GetMessage("MAIN_HINT_RESTORE_DEFAULTS_WARNING"))?>'))
152 window.location =
"<?echo $APPLICATION->GetCurPage()?>?RestoreDefaults=Y&lang=<?=LANGUAGE_ID?>&mid=<?echo urlencode($mid)?>&<?echo bitrix_sessid_get()?>";
155 <?
if(
$_REQUEST[
"back_url_settings"] <>
''):?>
156 <input type=
"submit" name=
"Update" value=
"<?=GetMessage("MAIN_SAVE
")?>" title=
"<?=GetMessage("MAIN_OPT_SAVE_TITLE
")?>"<?
if (
$ADV_RIGHT<
"W") echo
" disabled" ?>>
158 <input type=
"submit" name=
"Apply" value=
"<?=GetMessage("MAIN_OPT_APPLY
")?>" title=
"<?=GetMessage("MAIN_OPT_APPLY_TITLE
")?>"<?
if (
$ADV_RIGHT<
"W") echo
" disabled" ?>>
159 <?
if(
$_REQUEST[
"back_url_settings"] <>
''):?>
160 <input type=
"button" name=
"Cancel" value=
"<?=GetMessage("MAIN_OPT_CANCEL
")?>" title=
"<?=GetMessage("MAIN_OPT_CANCEL_TITLE
")?>" onclick=
"window.location='<?echo htmlspecialcharsbx(CUtil::JSEscape($_REQUEST["back_url_settings
"]))?>'">
161 <input type=
"hidden" name=
"back_url_settings" value=
"<?=htmlspecialcharsbx($_REQUEST["back_url_settings
"])?>">
163 <input type=
"button" title=
"<?echo GetMessage("MAIN_HINT_RESTORE_DEFAULTS
")?>" OnClick=
"RestoreDefaults();" value=
"<?echo GetMessage("MAIN_RESTORE_DEFAULTS
")?>"<?
if (
$ADV_RIGHT<
"W") echo
" disabled" ?>>
if($REQUEST_METHOD=="POST" && $Update. $Apply<> '' && $ADV_RIGHT >="W" &&check_bitrix_sessid() $UPLOAD_SUBDIR)
if($_SERVER $arAllOptions['REQUEST_METHOD']=='GET' &&!empty($_REQUEST['RestoreDefaults']) &&! $bReadOnly &&check_bitrix_sessid())
static GetList($by='c_sort', $order='asc', $arFilter=[], $SHOW_USERS_AMOUNT="N")
static SetOptionString($module_id, $name, $value="", $desc=false, $site="")
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)
$_SERVER["DOCUMENT_ROOT"]
bitrix_sessid_post($varname='sessid', $returnInvocations=false)
check_bitrix_sessid($varname='sessid')
htmlspecialcharsbx($string, $flags=ENT_COMPAT, $doubleEncode=true)
IncludeModuleLangFile($filepath, $lang=false, $bReturnArray=false)
GetMessage($name, $aReplace=null)
LocalRedirect($url, $skip_security_check=false, $status="302 Found")
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
<? endif;?> window document title
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"