Файл: my.net.ru/users/account/page/plugins/info_form.php
Строк: 52
<div class='profile_info'>
<?php
$c_f = db::get_string("SELECT `ID` FROM `COUNTRY` WHERE `NAME` = ? LIMIT 1", [esc($settings['COUNTRY'])]);
if ($account['SEX'] == 2){
if ($settings['FAMILY'] == 1){
$family = lg('Не важно');
}elseif ($settings['FAMILY'] == 2){
$family = lg('Не замужем');
}elseif ($settings['FAMILY'] == 3){
$family = lg('Разведена');
}elseif ($settings['FAMILY'] == 4){
$family = lg('Влюблена');
}elseif ($settings['FAMILY'] == 5){
$family = lg('Помолвлена');
}elseif ($settings['FAMILY'] == 6){
$family = lg('Всё сложно');
}else{
$family = lg('не указано');
}
}else{
if ($settings['FAMILY'] == 1){
$family = lg('Не важно');
}elseif ($settings['FAMILY'] == 2){
$family = lg('Не женат');
}elseif ($settings['FAMILY'] == 3){
$family = lg('Разведен');
}elseif ($settings['FAMILY'] == 4){
$family = lg('Влюблен');
}elseif ($settings['FAMILY'] == 5){
$family = lg('Помолвлен');
}elseif ($settings['FAMILY'] == 6){
$family = lg('Всё сложно');
}else{
$family = lg('не указано');
}
}
if ($settings['G_R'] == 0 || $settings['M_R'] == 0 || $settings['D_R'] == 0){
$date = lg('не указан');
}else{
$date = (str($settings['D_R']) > 1 ? $settings['D_R'] : '0'.$settings['D_R']).".".(str($settings['M_R']) > 1 ? $settings['M_R'] : '0'.$settings['M_R']).".".$settings['G_R'];
}
?>
<div class='profile_info_list'>
<?=icons('map-marker', 20, 'fa-fw')?> <span><?=lg('Проживание')?>: <?=(str($settings['COUNTRY'].$settings['CITY']) > 0 ? tabs($settings['CITY']).', '.tabs($settings['COUNTRY']).' <img src="/style/country/'.$c_f['ID'].'.png">' : lg('не указано'))?></span>
</div>
<div class='profile_info_list'>
<?=icons('heart-o', 20, 'fa-fw')?> <span><?=lg('Положение')?>: <?=$family?></span>
</div>
<div class='profile_info_list'>
<?=icons('gift', 20, 'fa-fw')?> <span><?=lg('День рождения')?>: <?=$date?></span>
</div>
<a href='/account/form/?id=<?=$account['ID']?>'>
<div class='profile_info_list_'>
<?=icons('info-circle', 20, 'fa-fw')?> <span><?=lg('Подробная информация')?></span>
</div>
</a>
</div>