27 lines
895 B
PHP
27 lines
895 B
PHP
<?php
|
||
$mod = new main( BD_NAME, BD_TYPE, BD_HOST, BD_USER, BD_PWD, MOD );
|
||
|
||
/* ----------------------------------------------------------------------
|
||
06.06.2022
|
||
Подсчет итога
|
||
---------------------------------------------------------------------- */
|
||
|
||
$smarty -> assign( 'itog', $mod -> get_itog() );
|
||
|
||
/* ----------------------------------------------------------------------
|
||
07.06.2022
|
||
Получаем информацию о пользователе, организации, адреса доставки
|
||
---------------------------------------------------------------------- */
|
||
|
||
$user_info = $mod -> get_user_info();
|
||
if ( $_SESSION['user_id'] ) {
|
||
$smarty -> assign( 'user_info', $user_info );
|
||
unset( $a );
|
||
$a['user_id'] = $_SESSION['user_id'];
|
||
$smarty -> assign( 'adres', $db -> get_massiv( 'adres_dostavki', $a ) );
|
||
}
|
||
|
||
|
||
|
||
|
||
?>
|