<?
$ex_us_money = explode( '.', $config_user['money'], 2 );
$us_moneyl = '' . $ex_us_money[0] . ',<span>' . $ex_us_money[1] . '</span>';

$ex_us_money_outl = explode( '.', $config_user['money_out'], 2 );
$us_money_outl = '' . $ex_us_money_outl[0] . ',<span>' . $ex_us_money_outl[1] . '</span>';

$ex_us_money_partl = explode( '.', $config_user['money_part'], 2 );
$us_money_partl = '' . $ex_us_money_partl[0] . ',<span>' . $ex_us_money_partl[1] . '</span>';

$ex_us_money_reytl = explode( '.', $config_user['reyt'], 2 );
$us_money_reytl = '' . $ex_us_money_reytl[0] . ',<span>' . $ex_us_money_reytl[1] . '</span>';
?>
<div class="menu_title"><b>Здравствуйте! <?=$login?></b></div>
<?
$sql = $pdo->Query("SELECT * FROM `php_tovar` WHERE `user` = '" . $_SESSION['id'] . "'");
$numpays = $sql->RowCount();

$sqlb = $pdo->Query("SELECT * FROM `php_buy` WHERE `email` = '" . $config_user['email'] . "'");
$numbuy = $sqlb->RowCount();

$sqlb = $pdo->Query("SELECT * FROM `php_user` WHERE `partner` = '" . $_SESSION['id'] . "'");
$numpart = $sqlb->RowCount();
?>
 <div class="us_left_menu2">
    <ul>
        <li><a href="/new"><i class="fa fa-upload" style="font-size: 14px;"></i>&nbsp Добавить товар</a></li>
        <li><a href="/my"><i class="fa fa-shopping-bag" style="font-size: 14px;"></i>&nbsp Мои товары <div class="stat_user1"><div class="count_mess"><?=$numpays?></div></div></a></li>
        <li><a href="/mybuy"><i class="fa fa-shopping-basket" style="font-size: 14px;"></i>&nbsp Мои покупки <div class="stat_user1"><div class="count_mess"><?=$numbuy?></div></div></a></li>
         <li><a href="/set"><i class="fa fa-bars" style="font-size: 14px;"></i>&nbsp Настройки аккаунта</a></li>
        <li><a href="/payment"><i class="fa fa-undo" style="font-size: 14px;"></i>&nbsp Пополнить счет</a><div class="stat_user1"><div class="count_mess"><?=$us_moneyl?> <i class="fa fa-rouble"></i></div></div></a></li>
		<li><a href="/vivod"><i class="fa fa-repeat" style="font-size: 14px;"></i>&nbsp Вывод денег <div class="stat_user1"><div class="count_mess"><?=$us_moneyl?> <i class="fa fa-rouble"></i></div></div></a></li>
        <li><a href="/msg=inbox"><i class="fa fa-envelope-o" style="font-size: 14px;"></i>&nbsp Входящие сообщения <div class="stat_user1"><?=$count_mess?></div></a></li>
        <li><a href="/partner"><i class="fa fa-users" style="font-size: 14px;"></i>&nbsp Партнерская программа <div class="stat_user1"><div class="count_mess"><?=$numpart?></div></div></a></li>
  
	  </ul>
 </div>



       
