<?php if(!defined("C_URL")) die('Can`t access file directly!'); ?>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="6">
    <TR> 
     <TD ALIGN="CENTER" VALIGN="TOP">     
<?if(SHOW_FORM){?>     
<form action="<?=C_URL?>/online.php" method="get">
<input type="hidden" name="l" value="<?=LANGUAGE?>">
<input type="hidden" name="set_cookies" value="asd">
<Table CellSpacing="<?=C_BORDER?>" CellPadding="0" width="<?=C_BWIDTH?>" bgcolor="<?=C_TBCOLOR?>">
<Tr>
  <Td>
  <Table Border=0 CellSpacing="0" CellPadding="<?=C_CELLP?>" width="<?=C_BWIDTH?>" class=mes>
  <Tr bgcolor="<?=COLOR1?>">
<?if(SHOW_COUNTRY) {?>    
		<Td>
    <?=COUNTRY?><BR>
		<select name="country" class="minput">
      <?=COUNTRY_VALUE?>
    </select>
    </td>
<?}?>    
<?if(SHOW_CITY) {?>    
    <Td>
    <?=CITY?><BR>
    <input type="text" name="city" class="minput" value="<?=CITY_VALUE?>">
    </td>
<?}?>    
<?if(SHOW_AGE) {?>    
    <Td colspan=2>
    <?=AGE?><BR><input name="agef" class="sinput" value="<?=AGEF_VALUE?>"> -  <input name="aget" class="sinput" value="<?=AGET_VALUE?>">
    </td>
<?}?>    
  </tr>
  <Tr bgcolor="<?=COLOR1?>">
<?if(SHOW_GENDER) {?>    
		<Td>
    <?=GENDER?><BR>
		<select name="gender" class="minput">
      <?=GENDER_VALUE?>
    </select>
    </td>
<?}?>    
<?if(SHOW_PICTURE) {?>    
    <Td>
    <?=SEARCH_USERS_WITH?><BR>
    <?=PHOTO?> <input type="checkbox" name="picture" <?=PHOTO_CHECKED?>>
    </td>
<?}?>    
     <td align=right>
      <input type="submit" value="<?=SEARCH?>" class=button>
      </td>

  </tr>

  </table>
  </td>
</tr>
</table>
</form>
<?}?>

<br><br><br>


<br>
<Table CellSpacing="<?=C_BORDER?>" CellPadding="0" width="<?=C_BWIDTH?>" bgcolor="<?=C_TBCOLOR?>">
<Tr>
  <Td width="<?=C_BWIDTH?>" bgcolor="<?=COLOR1?>" valign="top">
  <Table Border=0 CellSpacing="<?=C_IBORDER?>" CellPadding="<?=C_CELLP?>" width="<?=C_BWIDTH?>" class=mes>
  <Tr align="center" bgcolor="<?=COLORH?>">
    <Td>
    <span class=head><?=SEARCH_RESULTS?></span>
    <?if(HAVE_HIDDEN_USERS){?>
    <br>(<?=HIDDEN_USERS?>)
    <?}?>
    </Td>
  </Tr>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="<?=C_ALIGN?>" bgcolor="<?=COLOR1?>">
    <Td>
    <table width="100%" class=tr>
    <Tr align="center" bgcolor="<?=COLORH?>">
      <Td><?=USERNAME?></td>
      <Td><?=PURPOSES?></td>
      <Td><?=AGE?></td>
      <Td><?=COUNTRY?></td>
      <Td><?=CITY?></td>
      <Td><?=PAGE?></td>
      <Td><?=PHOTO?></td>
    </Tr>
<? while(isset($ids[$p])) { /* Search results - begin */?>  
    <Tr align="center" bgcolor="<?=$colors[$p]?>">
      <Td>
      <a href="<?=GenLink('UserProfile',array(LANGUAGE,$ids[$p]))?>">
      <?=$names[$p]?></a>
      </td>
      <Td><?=$purposes[$p]?></td>
      <Td><?=$ages[$p]?></td>
      <Td><?=$countries[$p]?></td>
      <Td><?=$cities[$p]?></td>
      <Td><?=$pages[$p]?></td>
      <Td><?=$pictures[$p]?></td>
    </Tr>
<? $p++;} /* Search results - end */?>
<?=PAGES?>
    </table>
    </Td>
  </Tr>
  </Table>
  </Td>
</Tr>
</Table>



<br><br><br><br>

     </TD>
    </TR>
   </TABLE>
