-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathoptions_menu.php
More file actions
107 lines (102 loc) · 4.91 KB
/
options_menu.php
File metadata and controls
107 lines (102 loc) · 4.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?php
namespace Fi1a\UserSettings;
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
/**
* @var array $languages
* @var array $allowParentMenu
* @var array $menu
*/
use Bitrix\Main\Localization\Loc;
?>
<tr>
<td valign="top" width="100%">
<table class="adm-detail-content-table edit-table">
<tbody>
<tr>
<td width="40%" class="adm-detail-content-cell-l">
<label for="fus-parent-menu"><?= Loc::getMessage('FUS_PARENT_MENU')?>:</label>
</td>
<td width="60%" class="adm-detail-content-cell-r">
<select class="b-fus-select" id="fus-parent-menu" name="MENU[PARENT_MENU]">
<?php foreach ($allowParentMenu as $parentMenu => $parentMenuTitle) { ?>
<option<?php if ($parentMenu == $menu['PARENT_MENU']) { ?> selected<?php } ?> value="<?= $parentMenu?>"><?= $parentMenuTitle?></option>
<?php } ?>
<?php
unset($parentMenu, $parentMenuTitle);
?>
</select>
</td>
</tr>
<tr>
<td class="adm-detail-content-cell-l">
<label for="fus-sort"><?= Loc::getMessage('FUS_LIST_SORT')?>:</label>
</td>
<td class="adm-detail-content-cell-r">
<input type="text" id="fus-sort" name="MENU[SORT]" size="6" value="<?= (int)$menu['SORT']?>">
</td>
</tr>
<tr>
<td class="adm-detail-content-cell-l">
<?= Loc::getMessage('FUS_MENU_TEXT')?>:
</td>
<td class="adm-detail-content-cell-r">
<table class="b-fus-table">
<tbody>
<?php foreach ($languages as $language) { ?>
<tr>
<td style="width: 5px;"><?= $language['LID']?></td>
<td><input class="b-fus-field" type="text" name="MENU[LOCALIZATION][<?= $language['LID']?>][MENU_TEXT]" value="<?= \htmlspecialcharsbx($menu['LOCALIZATION'][$language['LID']]['MENU_TEXT'])?>"></td>
</tr>
<?php } ?>
<?php
unset($language);
?>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="adm-detail-content-cell-l">
<?= Loc::getMessage('FUS_MENU_TITLE')?>:
</td>
<td class="adm-detail-content-cell-r">
<table class="b-fus-table">
<tbody>
<?php foreach ($languages as $language) { ?>
<tr>
<td style="width: 5px;"><?= $language['LID']?></td>
<td><input class="b-fus-field" type="text" name="MENU[LOCALIZATION][<?= $language['LID']?>][MENU_TITLE]" value="<?= \htmlspecialcharsbx($menu['LOCALIZATION'][$language['LID']]['MENU_TITLE'])?>"></td>
</tr>
<?php } ?>
<?php
unset($language);
?>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="adm-detail-content-cell-l">
<?= Loc::getMessage('FUS_PAGE_TITLE')?>:
</td>
<td class="adm-detail-content-cell-r">
<table class="b-fus-table">
<tbody>
<?php foreach ($languages as $language) { ?>
<tr>
<td style="width: 5px;"><?= $language['LID']?></td>
<td><input class="b-fus-field" type="text" name="MENU[LOCALIZATION][<?= $language['LID']?>][PAGE_TITLE]" value="<?= \htmlspecialcharsbx($menu['LOCALIZATION'][$language['LID']]['PAGE_TITLE'])?>"></td>
</tr>
<?php } ?>
<?php
unset($language);
?>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<?php