- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
//! Массив типов пользователей
$UserTypes = array();
$result = $db->Query("SELECT 'Физ.лицо' AS type_user_rus, 'human' AS type_user FROM DUAL
UNION ALL
SELECT 'Юр.лицо' AS type_user_rus, 'firm' AS type_user FROM DUAL");
if( $db->isError( $result ) ){
die( $result->getMessage() . " at line " . __LINE__ . " in file " . __FILE__ );
}
while( $row = $result->fetchRow( DB_FETCHMODE_ASSOC ) )
{
$UserTypes[$row['TYPE_USER']] = $row['TYPE_USER_RUS'];
}