                              
if (!empty ($a['name'])) {
echo '<dl class="dl-horizontal"><dt>Имя в реале</dt><dd> ' . $a['name'] . ' ' . $a['family'] . '</dd></dl>'; 
}
if (!empty ($a['city'])) {
echo '<dl class="dl-horizontal"><dt>Город</dt><dd> ' . $a['country'] . '/' . $a['city'] . '</dd></dl>';
}
echo '<dl class="dl-horizontal"><dt>Дата рождения</dt><dd> ' . $a['birthday'] . ' ('.calc_age($a['birthday']).')</dd></dl>';
if (!empty ($a['rodz'])) {
echo '<dl class="dl-horizontal"><dt>Род занятий</dt><dd> ' . text($a['rodz']) . '</dd></dl>';
}
if (!empty ($a['about'])) {
echo '<dl class="dl-horizontal"><dt>О себе</dt><dd> ' . text($a['about']) . '</dd></dl>';
}
if (!empty ($a['inter'])) {
echo '<dl class="dl-horizontal"><dt>Интересы</dt><dd> ' . text($a['inter']) . '</dd></dl>';
}
if (!empty ($a['oper'])) {
echo '<dl class="dl-horizontal"><dt>Оператор</dt><dd> ' . $a['oper'] . '</dd></dl>';
}
if (!empty ($a['model'])) {
echo '<dl class="dl-horizontal"><dt>Модель телефона</dt><dd> ' . $a['model'] . '</dd></dl>';
}

                    
                     

echo'<div class="user_brief" data-login="' . $a['nick'].'" style="padding:20px; word-wrap: break-word;"><div class="userpic">';
$online = ($a['last']>time()-3600 ? '<span class="online">'. vr($a['last']).'</span>':'<span class="offline">'.($a['id'] == 1 ? $visit.'' : vr($a['last']).'').'</span>');

echo'<div class="text-muted" id="online_' . $a['nick'] . '">'.$online.'</div>
<div class="text-muted" id="reg_' . $a['nick'] . '"> Зарегистрирован: ' . ($a['sex']=='Муж'?'':'а') . ' '.vr($a['reg']).'</div>
<div class="text-muted">Провел' . ($a['sex']=='Муж'?'':'а') . ' на сайте '.timecount($a['total_onl']).'</div><div style="margin-top: 5px; word-wrap: break-word;"></div></div></div>';

echo '&#187;   Награды ' . $a['nick'].': ';
$medals = DB::$dbs->query("SELECT * FROM medals WHERE user_id = ? ORDER BY time DESC",[$a['id']]);
if ($medals->rowCount()>0) {
echo'<a href="/info/medals.html?id='.$a['id'].'"><b>'.DB::$dbs->querySingle("SELECT COUNT(id) FROM medals WHERE user_id = ?",[$a['id']]).'</b></a> ';
} else { echo' Не награжден!';
}
echo'</br>&#187;  <b>Виртуальный счёт</b>: Всего Gears: <b>' . $a['gears'] . '</b>
</div>';

echo '</div></div>';
echo'<div class="catSides"><i class="md-format-list-bulleted"></i> Личные данные</div>';
echo'<div class="row text_box"><div class="slide" style="padding: 0px;cursor: pointer; "> <i class="md-shuffle"></i> Платежные реквизиты</a></div>
if($a['wmid'] == NULL){
echo '<div class="error">WMID не заполнен! Не рекомендуем проводить денежные операции! </div>';
} else {
echo '&#187;   WMID: <a href="https://passport.webmoney.ru/asp/certView.asp?wmid='.$a['wmid'].'">'.$a['wmid'].' </a><br/>
&#187;   BL <img src="https://bl.wmtransfer.com/img/bl/'.$a['wmid'].'?w=35&h=18" /><br/>
&#187;   Претензии/Отзывы: <img src="http://arbitrage.webmoney.ru/xml/AL.aspx?wmid='.$a['wmid'].'" /><br/>
&#187;   WMR: <a href="http://search.wmtransfer.com/?w=w&q=R'.$a['wmr'].'">'.$a['wmr'].'</a><br/>
&#187;   <b>'.($a['wm']==0?'<font color="red">WMID Не подтвержден!</font>':'<font color="green">WMID подтвержден!</font>').'</b>';
}
echo'</div></div>';
echo '<div class="row text_box"><a href="/info/rating.html?id='.$a['id'].'"><i class="md-shuffle"></i> Репутация мастера (<b><font color="green">'.DB :: $dbs -> querySingle("SELECT COUNT(id) FROM arbitage WHERE user_id = ? AND status = ? AND type = ?",[$a['id'],0,1]).'</font></b>/<b><font color="red">'.DB :: $dbs -> querySingle("SELECT COUNT(id) FROM arbitage WHERE user_id = ? AND status = ? AND type = ?",[$a['id'],0,2]).'</font></b>)</div></a>';

if (DB :: $dbs ->querySingle ("SELECT COUNT(id) FROM `codes_code` WHERE (`user_id` = '" . $a['id'] . "')") > 0) echo'<a href="/info/codes.html?id='.$a['id'].'"><div class="row text_box"><i class="md-shuffle"></i>  Добавил полезных кодов:  ' . DB :: $dbs -> querySingle ("SELECT COUNT(*) FROM `codes_code` WHERE (`user_id` = '" . $a['id'] . "')") . '</a></div>';
if (DB :: $dbs ->querySingle ("SELECT COUNT(id) FROM `downs` WHERE (`user_id` = '" . $a['id'] . "')") > 0) echo'<a href="/info/files.html?id='.$a['id'].'"><div class="row text_box"><i class="md-shuffle"></i>  Загрузил скриптов: ' . DB :: $dbs -> querySingle ("SELECT COUNT(*) FROM `downs` WHERE (`user_id` = '" . $a['id'] . "')") . ' </a></div>';
if (DB :: $dbs ->querySingle ("SELECT COUNT(id) FROM `magazin_file` WHERE (`user_id` = '" . $a['id'] . "')") > 0) echo '<a href="/info/tovars.html?id='.$a['id'].'"><div class="row text_box"><i class="md-shuffle"></i>   Товаров в магазине: ' . DB :: $dbs ->querySingle ("SELECT COUNT(id) FROM `magazin_file` WHERE (`user_id` = '" . $a['id'] . "')") . '</a></div>';
echo'<a href="/info/viewposts.html?id='.$a['id'].'"><div class="row text_box"><i class="md-shuffle"></i>   Сообщений на форумe:  ' . DB :: $dbs -> querySingle("SELECT COUNT(*) FROM `forum_mess` WHERE (`user_id`='" . $a['id'] . "')") . '</a></div>';
echo'<div class="list-group-item media"><a href="/info/viewthems.html?id='.$a['id'].'"><i class="md-shuffle"></i>   Темы на форуме:  ' . DB :: $dbs -> querySingle ("SELECT COUNT(*) FROM `forum_topic` WHERE (`user_id` = '" . $a['id'] . "')") . '</a></div>';
