<p style="margin-left: 20; margin-right: 20; margin-top: 2; margin-bottom: 2"><font size="2"><a href="index.phtml" class="cap2">главная</a>
:: <b><a href="?page=list" class="cap2">список билетов</a></b></font></p>

<?
 If ($send2 == "ok") {
  $flist = file($base);
  $i = 0;
  $t = 1;
  $clr = "#EBEBEB";
  ?>
  <p align="center" style="margin-left: 20; margin-top: 2; margin-bottom: 2"><font size="2">ID
  <b><? echo $wmid ?></b></font></p>
  <p align="center">
  <table border="0" width="203" cellspacing="0" cellpadding="0">
  <tr>
    <td width="99" align="center" style="border-bottom: 1 solid #000000" bgcolor="#F5F5F5"><font size="2"><b>№</b></font></td>
    <td width="104" align="center" style="border-left: 1 solid #000000; border-bottom: 1 solid #000000" bgcolor="#F5F5F5"><font size="2"><b>билет</b></font></td>
  </tr>
  <?
  while ($flist[$i] <> null) {
   $findst = explode("^", $flist[$i]);
   If ($findst[0] == $wmid) {
    ?>
    <tr>
     <td width="99" align="center" bgcolor="<? echo $clr?>"><font size="2"><? echo $t?></font></td>
     <td width="104" align="center" bgcolor="<? echo $clr?>" style="border-left: 1 solid #000000"><font size="2"><? echo $findst[4] ?></font></td>
    </tr>
    <?
    $t++;
    If ($clr == "#F5F5F5") {
     $clr = "#EBEBEB";}
    Else {
     $clr = "#F5F5F5";}
   }
   $i++;
  }
  ?>
  </table>
  </p>
 <?
 }
 Else {
  ?>
  <p style="margin-left: 20; margin-top: 2; margin-bottom: 2">&nbsp;</p>
  <?
  If ($from == "buy") {
  ?>
  <p style="margin-left: 20; margin-top: 2; margin-bottom: 2"><font size="2">Поздравляем! Билет успешно куплен!</font></p>
  <?
  }
  ?>
  <p style="margin-left: 20; margin-top: 2; margin-bottom: 2"><font size="2">Для выведения полного списка ваших билетов, введите Web Money ID.</font></p>
  <form method="POST">
   <input type="hidden" name="send2" value="ok">
   <p style="margin-left: 20; margin-top: 2; margin-bottom: 2"><font size="2">WebMoney
    ID: </font><input type="text" name="wmid" size="28" style="border-style: solid; border-width: 1">
  <input type="submit" value="Продолжить!" name="B1" style="border-style: solid; border-width: 1"></p>
  </form>
 <?
 }
?>