<table border="0" width="100%" cellspacing="0" cellpadding="0">

  <tr>

    <td width="100%" bgcolor="#F0F0F0"><p><b>&gt;&gt; Просмотр информации о продавце <? echo $name ?></b></p></td>

  </tr>

</table>

<p>&nbsp;</p>



<?

If ($name == "") {

 echo "<script> alert('Параметры заданы неверно!'); history.back();</script>";

 exit;

}



$fusr = @file("users/$name");



$d = dir("responses/");

while($tme = $d->read()) {

 If ($tme <> "." and $tme <> ".." and $tme <> ".htaccess") {

  $arresp[] = $tme;

 }

}

$d->close();



$prod = 0;

$rating = 0;

$rsp0 = 0;

$rsp1 = 0;

$d = dir("goods/");

while($tme = $d->read()) {

 If ($tme <> "." and $tme <> ".." and $tme <> ".htaccess") {

  $fr = @file("goods/$tme");

  If (trim($fr[0]) == $name) {

   $prod = $prod + (integer) trim($fr[15]);



   for ($s = 0; $s < count($arresp); $s++) {

    If ($tme == $arresp[$s]) {

     $fr2 = @file("responses/$tme");



     $m = 0;

     while ($fr2[$m] <> "") {

      $ar2 = explode("^", trim($fr2[$m]));

      If ($ar2[0] == "0") {

       $rating = $rating + 1;

       $rsp1 = $rsp1 + 1;

      }

      ElseIf ($ar2[0] == "1") {

       $rating = $rating - 1;

       $rsp0 = $rsp0 + 1;

      }

      $m++;

     }



    }

   }

  }

 }

}

$d->close();

?>



<table border="0" width="98%" cellspacing="0" cellpadding="4" bgcolor="#C0C0C0" align="center">

  <tr>

    <td width="2%" valign="middle" bgcolor="#F0F0F0" height="1" style="border-left: 1 solid #C0C0C0; border-top: 1 solid #C0C0C0; border-bottom: 1 solid #C0C0C0"><p align="center"><img border="0" src="img/pic_info.gif" width="16" height="16"></p></td>

    <td width="98%" bgcolor="#F0F0F0" height="1" style="border-right: 1 solid #C0C0C0; border-top: 1 solid #C0C0C0; border-bottom: 1 solid #C0C0C0"><p>При нажатии на кнопку 'Товары продавца' Вы увидите полный список товаров, продаваемых этим продавцом.</p></td>

  </tr>

</table>

<p>&nbsp;</p>





<div align="center">

  <center>





<table border="1" width="98%" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#FFFFFF">

  <tr>

    <td width="100%" bgcolor="#9ACE8B"><p><b>Просмотр информации о продавце <? echo trim($fusr[1]) . " ($name)" ?></b></p></td>

  </tr>

  <tr>

    <td width="100%">

          <table border="0" width="100%" cellspacing="0" cellpadding="0" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" style="border-collapse: collapse" bgcolor="#F1FFED">

            <tr>

              <td width="30%" bgcolor="#9ACE8B" height="10" bordercolorlight="#000000" bordercolordark="#FFFFFF"><p>Псевдоним продавца:</p></td>

              <td width="70%" height="10"><p><? echo $name ?></p></td>

            </tr>

            <tr>

              <td bgcolor="#F1FFED" bordercolorlight="#000000" bordercolordark="#FFFFFF">

              <img border="0" src="pixel.gif" width="1" height="1"></td>

              <td bgcolor="#FFFFFF">

              <img border="0" src="pixel.gif" width="1" height="1"></td>

            </tr>

            <tr>

              <td width="30%" bgcolor="#9ACE8B" height="8" bordercolorlight="#000000" bordercolordark="#FFFFFF"><p>Организация:</p></td>

              <td width="70%" height="8"><p><? echo trim($fusr[1]) ?></p></td>

            </tr>

            <tr>

              <td bgcolor="#F1FFED" bordercolorlight="#000000" bordercolordark="#FFFFFF">

              <img border="0" src="pixel.gif" width="1" height="1"></td>

              <td bgcolor="#FFFFFF">

              <img border="0" src="pixel.gif" width="1" height="1"></td>

            </tr>

            <tr>

              <td width="30%" bgcolor="#9ACE8B" height="8" bordercolorlight="#000000" bordercolordark="#FFFFFF"><p>Место нахождения:</p></td>

              <td width="70%" height="8"><p><? echo trim($fusr[2]) ?></p></td>

            </tr>

            <tr>

              <td bgcolor="#F1FFED" bordercolorlight="#000000" bordercolordark="#FFFFFF">

              <img border="0" src="pixel.gif" width="1" height="1"></td>

              <td bgcolor="#FFFFFF">

              <img border="0" src="pixel.gif" width="1" height="1"></td>

            </tr>

            <tr>

              <td width="30%" bgcolor="#9ACE8B" height="13" bordercolorlight="#000000" bordercolordark="#FFFFFF"><p>URL:</p></td>

              <td width="70%" height="13"><p><? echo trim($fusr[3]) ?></p></td>

            </tr>

            <tr>

              <td bgcolor="#F1FFED" bordercolorlight="#000000" bordercolordark="#FFFFFF">

              <img border="0" src="pixel.gif" width="1" height="1"></td>

              <td bgcolor="#FFFFFF">

              <img border="0" src="pixel.gif" width="1" height="1"></td>

            </tr>

            <tr>

              <td width="30%" bgcolor="#9ACE8B" height="9" bordercolorlight="#000000" bordercolordark="#FFFFFF"><p>Контактный телефон:</p></td>

              <td width="70%" height="9"><p><? echo trim($fusr[5]) ?></p></td>

            </tr>

            <tr>

              <td bgcolor="#F1FFED" bordercolorlight="#000000" bordercolordark="#FFFFFF">

              <img border="0" src="pixel.gif" width="1" height="1"></td>

              <td bgcolor="#FFFFFF">

              <img border="0" src="pixel.gif" width="1" height="1"></td>

            </tr>

            <tr>

              <td width="30%" bgcolor="#9ACE8B" height="9" bordercolorlight="#000000" bordercolordark="#FFFFFF"><p>E-mail адрес:</p></td>

              <td width="70%" height="9"><p><? echo trim($fusr[6]) ?></p></td>

            </tr>

            <tr>

              <td bgcolor="#F1FFED" bordercolorlight="#000000" bordercolordark="#FFFFFF">

              <img border="0" src="pixel.gif" width="1" height="1"></td>

              <td bgcolor="#FFFFFF">

              <img border="0" src="pixel.gif" width="1" height="1"></td>

            </tr>

            <tr>

              <td width="30%" bgcolor="#9ACE8B" height="10" bordercolorlight="#000000" bordercolordark="#FFFFFF"><p>WM - идентификатор:</p></td>

              <td width="70%" height="10"><p><? echo trim($fusr[7]) ?></p></td>

            </tr>

            <tr>

              <td bgcolor="#F1FFED" bordercolorlight="#000000" bordercolordark="#FFFFFF">

              <img border="0" src="pixel.gif" width="1" height="1"></td>

              <td bgcolor="#FFFFFF">

              <img border="0" src="pixel.gif" width="1" height="1"></td>

            </tr>

            <tr>

              <td width="30%" bgcolor="#9ACE8B" height="12" bordercolorlight="#000000" bordercolordark="#FFFFFF"><p>Аттестат:</p></td>

              <td width="70%" height="12"><p><? If (trim($fusr[10]) == "0") { echo "Не проверен или ниже персонального"; } ElseIf (trim($fusr[10]) == "1") { echo "Персональный или выше <a href='https://certsrv.webmoney.ru/certview.asp?wmid=" . trim($fusr[7]) . "' target='_blank' class='cap4'><b>просмотр сертификата</b></a>"; } ?></p></td>

            </tr>

            <tr>

              <td bgcolor="#F1FFED" bordercolorlight="#000000" bordercolordark="#FFFFFF">

              <img border="0" src="pixel.gif" width="1" height="1"></td>

              <td bgcolor="#FFFFFF">

              <img border="0" src="pixel.gif" width="1" height="1"></td>

            </tr>

            <tr>

              <td width="30%" bgcolor="#9ACE8B" height="8" bordercolorlight="#000000" bordercolordark="#FFFFFF"><p>Общее количество продаж:</p></td>

              <td width="70%" height="8"><p><? echo $prod ?></p></td>

            </tr>

            <tr>

              <td bgcolor="#F1FFED" bordercolorlight="#000000" bordercolordark="#FFFFFF">

              <img border="0" src="pixel.gif" width="1" height="1"></td>

              <td bgcolor="#FFFFFF">

              <img border="0" src="pixel.gif" width="1" height="1"></td>

            </tr>

            <tr>

              <td width="30%" bgcolor="#9ACE8B" height="9" bordercolorlight="#000000" bordercolordark="#FFFFFF"><p>Рейтинг:</p></td>

              <td width="70%" height="9"><p><? echo $rating ?></p></td>

            </tr>

            <tr>

              <td bgcolor="#F1FFED" bordercolorlight="#000000" bordercolordark="#FFFFFF">

              <img border="0" src="pixel.gif" width="1" height="1"></td>

              <td bgcolor="#FFFFFF">

              <img border="0" src="pixel.gif" width="1" height="1"></td>

            </tr>

            <tr>

              <td width="30%" bgcolor="#9ACE8B" height="10" bordercolorlight="#000000" bordercolordark="#FFFFFF"><p>Положительных отзывов:</p></td>

              <td width="70%" height="10"><p><? echo $rsp1 ?></p></td>

            </tr>

            <tr>

              <td bgcolor="#F1FFED" bordercolorlight="#000000" bordercolordark="#FFFFFF">

              <img border="0" src="pixel.gif" width="1" height="1"></td>

              <td bgcolor="#FFFFFF">

              <img border="0" src="pixel.gif" width="1" height="1"></td>

            </tr>

            <tr>

              <td width="30%" bgcolor="#9ACE8B" height="11" bordercolorlight="#000000" bordercolordark="#FFFFFF"><p>Отрицательных отзывов:</p></td>

              <td width="70%" height="11"><p><? echo $rsp0 ?></p></td>

            </tr>



            <tr>

              <td bgcolor="#F1FFED" bordercolorlight="#000000" bordercolordark="#FFFFFF" colspan="2">

              <img border="0" src="pixel.gif" width="1" height="1"></td>

              </tr>



            <tr>

              <td width="30%" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" valign="top"></td>

              <td width="70%">

                 <p>

                 <input type="button" onClick="document.location.href='/buy_sort.php?com=seller&name=<? echo $name ?>';" name="gotovars" value="Товары продавца" style="border:1px solid #9ACE8B; font-family: Verdana, Arial; font-size: 8pt; background-color:#F1FFED"> 

                 <input type="button" onClick="history.back();" name="goback" value="Возврат" style="border:1px solid #9ACE8B; font-family: Verdana, Arial; font-size: 8pt; background-color:#F1FFED"></p>

              </td>

            </tr>

          </table>



    </td>

  </tr>

</table></center>

</div>