57 lines
2.0 KiB
PHP
57 lines
2.0 KiB
PHP
<?php
|
|
ini_set('display_errors', 0);
|
|
|
|
/* ----------------------------------------------------------------------
|
|
01.05.2021
|
|
Выгонялка
|
|
---------------------------------------------------------------------- */
|
|
|
|
if ( $_SESSION['dostup']!='a' ) header ( 'Location: /login/' );
|
|
|
|
|
|
|
|
$org_id=\core::getSettings("main_org");
|
|
$myOrg=\DB::getAll("SELECT * FROM `org` WHERE `id`=? LIMIT 1", $org_id);
|
|
$smarty -> assign( 'myOrg', $myOrg );
|
|
|
|
|
|
/* ----------------------------------------------------------------------
|
|
25.06.2023
|
|
Получаем список банковских счетов
|
|
---------------------------------------------------------------------- */
|
|
$scheta=\DB::getAll("SELECT scheta.id, scheta.rs, scheta.ks, bic.bic, bic.txt FROM `scheta`
|
|
JOIN `bic`
|
|
ON scheta.bic=bic.id
|
|
WHERE scheta.org_id =?", $org_id);
|
|
$smarty -> assign( 'scheta', $scheta );
|
|
//print_r($scheta);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* ----------------------------------------------------------------------
|
|
15.02.2022
|
|
Получаем справочник регионов
|
|
---------------------------------------------------------------------- */
|
|
$smarty -> assign( 'region', \DB::getAll("SELECT * FROM `region` WHERE `strana_id`=1 ORDER BY `txt`") );
|
|
|
|
/* ----------------------------------------------------------------------
|
|
15.02.2022
|
|
Получаем справочник городов
|
|
---------------------------------------------------------------------- */
|
|
$smarty -> assign( 'city', \DB::getAll("SELECT * FROM `city` WHERE `strana_id`=1 ORDER BY `txt`") );
|
|
|
|
|
|
/* ----------------------------------------------------------------------
|
|
15.02.2022
|
|
Подключение модулей
|
|
---------------------------------------------------------------------- */
|
|
$smarty -> assign( 'modal_new_sklad', "api/modules/lk-my-orgs/modal_new_sklad.html" );
|
|
$smarty -> assign( 'inc_org_edit', "api/modules/edit-my-org/inc_org_edit.html" );
|
|
|
|
|
|
|
|
?>
|