1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
admin_tab.php
См. документацию.
1
<?
2
\Bitrix\Main\Localization\Loc::loadMessages
(__FILE__);
3
4
$count
= 0;
5
$extCount
= 0;
6
$hndlCount
= 0;
7
$con
=
\Bitrix\Main\Application::getConnection
();
8
9
$res
= \Bitrix\Sale\Location\LocationTable::getList(
array
(
10
'runtime'
=>
array
(
new
\
Bitrix
\Main\Entity\ExpressionField(
'CNT'
,
'COUNT(1)'
)),
11
'select'
=>
array
(
'CNT'
)
12
));
13
14
if
($loc =
$res
->fetch())
15
$count
= $loc[
'CNT'
];
16
17
$res
=
$con
->query(
"SELECT COUNT(1) AS CNT FROM b_sale_hdale"
);
18
19
if
($loc =
$res
->fetch())
20
$hndlCount
= $loc[
'CNT'
];
21
22
$res
= \Bitrix\Sale\Location\ExternalTable::getList(
array
(
23
'filter'
=>
array
(
'=SERVICE_ID'
=> \Sale\Handlers\Delivery\Additional\Location::getExternalServiceId()),
24
'runtime'
=>
array
(
new
\
Bitrix
\Main\Entity\ExpressionField(
'CNT'
,
'COUNT(1)'
)),
25
'select'
=>
array
(
'CNT'
)
26
));
27
28
if
($loc =
$res
->fetch())
29
$extCount
= $loc[
'CNT'
];
30
31
?>
32
<tr>
33
<td
width
=
"40%"
><?=
\Bitrix\Main\Localization\Loc::getMessage
(
'SALE_DLVRS_ADDL_LOC_TAB_COUNT'
)?>:</td>
34
<td
width
=
"60%"
id
=
"b_sale_hndl_dlv_add_loc_count"
><?=
$count
?></td>
35
</tr>
36
<tr>
37
<td
width
=
"40%"
><?=
\Bitrix\Main\Localization\Loc::getMessage
(
'SALE_DLVRS_ADDL_LOC_TAB_COUNT_H'
)?>:</td>
38
<td
width
=
"60%"
id
=
"b_sale_hndl_dlv_add_loc_hount"
><?=
$hndlCount
?></td>
39
</tr>
40
<tr>
41
<td
width
=
"40%"
><?=
\Bitrix\Main\Localization\Loc::getMessage
(
'SALE_DLVRS_ADDL_LOC_TAB_COUNT_COMP'
)?>:</td>
42
<td
width
=
"60%"
id
=
"b_sale_hndl_dlv_add_loc_ecount"
><?=
$extCount
?></td>
43
</tr>
44
<tr>
45
<td
width
=
"40%"
>&
nbsp
;</td>
46
<td
width
=
"60%"
><input type=
"button"
value=
"<?=\Bitrix\Main\Localization\Loc::getMessage('SALE_DLVRS_ADDL_LOC_TAB_B_COMP')?>"
onclick=
"BX.Sale.Handler.Delivery.Additional.startLocationsCompare();"
><br></td>
47
</tr>
48
<script>
49
BX.message({
50
SALE_DLVRS_ADD_LOC_COMP_TITLE:
'<?=\Bitrix\Main\Localization\Loc::getMessage("SALE_DLVRS_ADD_LOC_COMP_TITLE")?>'
,
51
SALE_DLVRS_ADD_LOC_COMP_CLOSE:
'<?=\Bitrix\Main\Localization\Loc::getMessage("SALE_DLVRS_ADD_LOC_COMP_CLOSE")?>'
,
52
SALE_DLVRS_ADD_LOC_COMP_AJAX_ERROR:
'<?=\Bitrix\Main\Localization\Loc::getMessage("SALE_DLVRS_ADD_LOC_COMP_AJAX_ERROR")?>'
,
53
SALE_DLVRS_ADD_LOC_COMP_PREPARE:
'<?=\Bitrix\Main\Localization\Loc::getMessage("SALE_DLVRS_ADD_LOC_COMP_PREPARE")?>'
,
54
SALE_DLVRS_ADD_SP_SAVE:
'<?=\Bitrix\Main\Localization\Loc::getMessage("SALE_DLVRS_ADD_SP_SAVE")?>'
,
55
SALE_DLVRS_ADD_SP_CHOOSE_TITLE:
'<?=\Bitrix\Main\Localization\Loc::getMessage("SALE_DLVRS_ADD_SP_CHOOSE_TITLE")?>'
56
});
57
</script>
$con
$con
Определения
admin_tab.php:7
$extCount
$extCount
Определения
admin_tab.php:5
$hndlCount
$hndlCount
Определения
admin_tab.php:6
$count
$count
Определения
admin_tab.php:4
Bitrix\Main\Application\getConnection
static getConnection($name="")
Определения
application.php:638
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Определения
loc.php:65
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Определения
loc.php:30
nbsp
& nbsp
Определения
epilog_main_admin.php:38
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
$res
$res
Определения
filter_act.php:7
Bitrix
bitrix
modules
sale
handlers
delivery
additional
location
admin_tab.php
Создано системой
1.14.0