1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
options_user_settings.php
См. документацию.
1
<?
2
IncludeModuleLangFile
(
$_SERVER
[
"DOCUMENT_ROOT"
].
"/bitrix/modules/blog/options_user_settings.php"
);
3
4
if
(CModule::IncludeModule(
"blog"
)):
5
$ID
= intval(
$ID
);
6
$str_blog_AVATAR
=
""
;
7
ClearVars
(
"str_blog_"
);
8
$db_res
=
CBlogUser::GetList
(
array
(),
array
(
"USER_ID"
=>
$ID
));
9
if
(!
$db_res
->ExtractFields(
"str_blog_"
, True))
10
{
11
if
(!isset($str_blog_ALLOW_POST) || ($str_blog_ALLOW_POST!=
"Y"
&& $str_blog_ALLOW_POST!=
"N"
))
12
$str_blog_ALLOW_POST =
"Y"
;
13
}
14
15
if
($COPY_ID > 0)
16
$str_blog_AVATAR
=
""
;
17
18
if
(
$strError <>
''
)
19
{
20
$str_blog_ALLOW_POST =
htmlspecialcharsbx
($_POST[
"blog_ALLOW_POST"
]);
21
$str_blog_ALIAS =
htmlspecialcharsbx
($_POST[
"blog_ALIAS"
]);
22
$str_blog_DESCRIPTION =
htmlspecialcharsbx
($_POST[
"blog_DESCRIPTION"
]);
23
$str_blog_INTERESTS =
htmlspecialcharsbx
($_POST[
"blog_INTERESTS"
]);
24
}
25
?>
26
<input type=
"hidden"
name=
"profile_module_id[]"
value=
"blog"
>
27
<?
if
(
$USER
->IsAdmin()):?>
28
<tr>
29
<td
width
=
"40%"
><?=
GetMessage
(
"blog_ALLOW_POST"
)?></td>
30
<td
width
=
"60%"
><input type=
"checkbox"
name=
"blog_ALLOW_POST"
value=
"Y"
<?
if
($str_blog_ALLOW_POST==
"Y"
) echo
"checked"
;?>></td>
31
</tr>
32
<?
endif
;?>
33
<tr>
34
<td><?=
GetMessage
(
'blog_ALIAS'
)?></td>
35
<td>
36
<input
37
class
=
"typeinput"
38
type=
"text"
39
name=
"blog_ALIAS"
40
size
=
"30"
41
maxlength=
"255"
42
value=
"<?=$str_blog_ALIAS ?? ''?>"
43
>
44
</td>
45
</tr>
46
<tr>
47
<td><?=
GetMessage
(
'blog_DESCRIPTION'
)?></td>
48
<td>
49
<input
50
class
=
"typeinput"
51
type=
"text"
52
name=
"blog_DESCRIPTION"
53
size
=
"30"
54
maxlength=
"255"
55
value=
"<?=$str_blog_DESCRIPTION ?? ''?>"
56
>
57
</td>
58
</tr>
59
<tr>
60
<td valign=
"top"
><?=
GetMessage
(
'blog_INTERESTS'
)?></td>
61
<td>
62
<textarea
63
class
=
"typearea"
64
name=
"blog_INTERESTS"
65
rows=
"3"
66
cols=
"35
67
"
><?echo $str_blog_INTERESTS ??
''
; ?>
68
</textarea>
69
</td>
70
</tr>
71
<tr
class
=
"adm-detail-file-row"
>
72
<td><?=
GetMessage
(
"blog_AVATAR"
)?></td>
73
<td><?
74
echo CFile::InputFile(
"blog_AVATAR"
, 20,
$str_blog_AVATAR
?? 0);
75
if
(intval(
$str_blog_AVATAR
?? 0) > 0):
76
?><div
class
=
"adm-detail-file-image"
><?
77
echo CFile::ShowImage(
$str_blog_AVATAR
, 150, 150,
"border=0"
,
""
,
true
);?></div><?
78
endif
;
79
?></td>
80
</tr>
81
<?
82
endif
;
83
?>
$str_blog_AVATAR
$str_blog_AVATAR
Определения
options_user_settings.php:6
$db_res
$db_res
Определения
options_user_settings.php:8
CBlogUser\GetList
static GetList($arOrder=Array("ID"=> "DESC"), $arFilter=Array(), $arGroupBy=false, $arNavStartParams=false, $arSelectFields=array())
Определения
blog_user.php:249
width
bx popup label bx width30 PAGE_NEW_MENU_NAME text width
Определения
file_new.php:677
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$ID
if($ajaxMode) $ID
Определения
get_user.php:27
$strError
$strError
Определения
options_user_settings.php:4
$_SERVER
$_SERVER["DOCUMENT_ROOT"]
Определения
cron_frame.php:9
$USER
global $USER
Определения
csv_new_run.php:40
endif
endif
Определения
csv_new_setup.php:990
ClearVars
ClearVars($prefix="str_")
Определения
tools.php:4623
htmlspecialcharsbx
htmlspecialcharsbx($string, $flags=ENT_COMPAT, $doubleEncode=true)
Определения
tools.php:2701
IncludeModuleLangFile
IncludeModuleLangFile($filepath, $lang=false, $bReturnArray=false)
Определения
tools.php:3778
GetMessage
GetMessage($name, $aReplace=null)
Определения
tools.php:3397
size
font size
Определения
invoice.php:442
bitrix
modules
blog
options_user_settings.php
Создано системой
1.14.0