47 global $strCondition, $arGroupsNames, $arDisplay, $arConditionTypes, $strFolder, $strUrl_param, $strUrl_value, $arSelGroups, $strPer_start, $strPer_end, $CurType;
56 "no_access" =>
"none",
69 if (preg_match(
'/^CSite::InDir\(\'([^)]+)\'\)$/', $c, $r))
72 $strFolder = stripslashes($r[1]);
74 elseif (preg_match(
'/^CSite::InGroup\(array\(([0-9, ]+)\)\)$/', $c, $r))
77 $arSelGroups = explode(
",", str_replace(
" ",
"", $r[1]));
79 elseif (preg_match(
'/^CSite::InPeriod\(([0-9]+) *, *([0-9]+)\)$/', $c, $r))
81 $strPer_start = $r[1] == 0 ?
"" : ConvertTimeStamp($r[1]);
82 $strPer_end = $r[2] == 0 ?
"" : ConvertTimeStamp($r[2]);
85 elseif (preg_match(
'/^\$_GET\[\'(.+)\'] *== *\'(.+)\'$/', $c, $r) || preg_match(
'/^\(\$_GET\[\'(.+)\'] *\?\? *""\) *== *\'(.+)\'$/', $c, $r))
88 $strUrl_param = stripslashes($r[1]);
89 $strUrl_value = stripslashes($r[2]);
93 $CurType =
'no_access';
108 $arDisplay[$CurType] =
'block';
133 global $strCondition,
$APPLICATION, $arGroupsNames, $arDisplay, $arConditionTypes, $strFolder, $strUrl_param, $strUrl_value, $arSelGroups, $strPer_start, $strPer_end, $CurType,
$USER;
136 $field_name = $arArgs[
'field_name'];
137 $form = $arArgs[
'form'];
139 <div
style=
"display:<?= $arDisplay['empty'] ?>" id=
"type_empty<?= $i ?>"><?=
GetMessage(
"TYPES_EMPTY_COND") ?></div>
140 <?
if (isset($arConditionTypes[
'false'])):?>
141 <div
style=
"display:<?= $arDisplay['false'] ?>" id=
"type_false<?= $i ?>"><?=
GetMessage(
"TYPES_FALSE_COND") ?></div>
143 <div
style=
"display:<?= $arDisplay['folder'] ?>" value=
"<?= htmlspecialcharsbx($strFolder) ?>"
144 id=
"type_folder<?= $i ?>">
147 "event" =>
"BtnClick$i",
148 "arResultDest" => [
"ELEMENT_ID" =>
"fname$i"],
149 "arPath" => [
"PATH" =>
'/'],
152 "showUploadTab" =>
true,
153 "saveConfig" =>
true,
156 ?><input
title=
"<?= GetMessage("MAIN_PATH
") ?>" type=
"text" size=
"25" id=
"fname<?= $i ?>"
157 name=
"<?= $field_name ?>[CONDITION_folder]" value=
"<?= htmlspecialcharsbx($strFolder) ?>">&
nbsp;<input
158 type=
"button" name=
"browse" value=
"..." onClick=
"BtnClick<?= $i ?>()">
160 <div
style=
"display:<?= $arDisplay['ugroups'] ?>" id=
"type_ugroups<?= $i ?>">
162 name=
"<?= $field_name ?>[CONDITION_ugroups][]"><?
163 foreach ($arGroupsNames as
$key =>
$val)
169 <div
style=
"display:<?= $arDisplay['period'] ?>" id=
"type_period<?= $i ?>">
170 <input
title=
"<?= GetMessage("MAIN_PERIOD_FROM
") ?>" type=
"text" size=
"10"
171 value=
"<?= htmlspecialcharsbx($strPer_start) ?>" name=
"<?= $field_name ?>[CONDITION_period_start]"
172 id=
"<?= $field_name ?>[CONDITION_period_start]">
173 <?= Calendar($field_name .
"[CONDITION_period_start]", $form) ?>
175 <input
title=
"<?= GetMessage("MAIN_PERIOD_TO
") ?>" type=
"text" size=
"10"
176 value=
"<?= htmlspecialcharsbx($strPer_end) ?>" name=
"<?= $field_name ?>[CONDITION_period_end]">
177 <?= Calendar($field_name .
"[CONDITION_period_end]", $form) ?>
178 <span
class=
"required"></span>
180 <div
style=
"display:<?= $arDisplay['url'] ?>" id=
"type_url<?= $i ?>">
181 <input
title=
"<?= GetMessage("MAIN_URL_FIELD
") ?>" type=
"text" size=
"10"
182 name=
"<?= $field_name ?>[CONDITION_url_param]" value=
"<?= htmlspecialcharsbx($strUrl_param) ?>">
184 <input
title=
"<?= GetMessage("MAIN_URL_VALUE
") ?>" type=
"text" size=
"10"
185 name=
"<?= $field_name ?>[CONDITION_url_value]" value=
"<?= htmlspecialcharsbx($strUrl_value) ?>">
187 <div
style=
"display:<?= $arDisplay['no_access'] ?>"
188 id=
"type_no_access<?= $i ?>"><?=
GetMessage(
"TYPES_EMPTY_COND") ?></div>
189 <div
style=
"display:<?= $arDisplay['php'] ?>" id=
"type_php<?= $i ?>"><input type=
"text" size=
"30"
190 name=
"<?= $field_name ?>[CONDITION_php]"
191 value=
"<?= htmlspecialcharsex($strCondition) ?>" <? echo((!
$USER->CanDoOperation(
'edit_php')) ?
'disabled' :
''); ?>>
ConditionCompose($arRequest, $i=0)
GetNoAccessConditionString()
ConditionShow($arArgs=[])
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
<? endif;?> window document title