<?php if(!defined("C_URL")) die('Can`t access file directly!'); ?>
<TABLE BGCOLOR="#F8E5B2" WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="3">
    <TR> 
     <TD WIDTH="10" VALIGN="TOP" ALIGN="RIGHT" CLASS="vltabp"> <IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="10" HEIGHT="1"> 
     </TD>
     <TD VALIGN="TOP" CLASS="vltabs" > 
<? if(!MyID()) { ?>
               <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
                <TR> 
                 <TD VALIGN="TOP" ALIGN="LEFT" COLSPAN="2" HEIGHT="24">
<IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str.gif" WIDTH="15" HEIGHT="15" ALIGN="ABSBOTTOM"> 
            <B CLASS="link3" ><?=FOR_MEMBERS?></b></FONT> </TD>
                </TR>
       <form action="<?=C_URL?>/login.php" method="post">   
       <input type="hidden" name="l" value="<?=LANGUAGE?>">
       <input type="hidden" name="p" value="s">
                 <TR> 
                  <TD ALIGN="RIGHT"  WIDTH="30%"> <FONT CLASS="font2"><?=LOGIN_NAME?></FONT> 
                  </TD>
                  <TD WIDTH="70%" CLASS="tab"> 
          <INPUT  CLASS="textform" TYPE="text" NAME="id" SIZE="7">
                  </TD>
                 </TR>
                 <TR> 
                  <TD ALIGN="RIGHT"  WIDTH="30%"> <FONT CLASS="font2"><?=PASSWORD?></FONT> 
                  </TD>
                  <TD WIDTH="70%" CLASS="tab"> 
          <INPUT  CLASS="textform" TYPE="password" NAME="password" SIZE="7">
                  </TD>
                 </TR>
                <?if (VERIFY_ALLOW) {?><tr>
                <td align="right"  width="90%" colspan=4 colspan=2><div align="center"><img src=img.php height=24 border=0></td></tr>
                <tr><TD ALIGN="RIGHT"  WIDTH="30%"> <FONT CLASS="font2"><?=VERIFICATION?></FONT> 
                  </TD><TD WIDTH="70%" CLASS="tab"><INPUT  CLASS="textform" TYPE="text" NAME="verifyimage"></TD></tr><?}?>

                 <TR> 
                  <TD CLASS="tab" WIDTH="30%"><SPACER HEIGHT="1" WIDTH="1"  TYPE="block"></TD>
                  <TD WIDTH="70%" CLASS="tab"> 
                   <INPUT CLASS="button0"  TYPE=submit VALUE=" &nbsp;<?=ENTER?>&nbsp; ">
                  </TD>
                 </TR>
                </FORM>
                <TR> 
                 <TD ALIGN="LEFT" HEIGHT="24" WIDTH="100%" CLASS="tab" colspan=2>
<A HREF="<?=REGISTER_LINK?>" CLASS="link2">
<?=REGISTER?></A> | 
<A HREF="<?=C_URL?>/remind.php?l=<?=$l?>" CLASS="link2">
<?=FORGOT_PASSWORD?></A></TD>
                </TR>
               </TABLE>
<? } ?>
         <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3">
          <TR VALIGN="MIDDLE"> 
           <TD VALIGN="TOP" HEIGHT="24"><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str.gif" WIDTH="15" HEIGHT="15" ALIGN="ABSBOTTOM"> 
            <B CLASS="link3" ><?=WELCOME_TITLE?> <?=ShowWelcomeBackMessage()?></B></TD>
          </TR>
          <TR VALIGN="MIDDLE"> 
        <TD VALIGN="TOP" CLASS="link3">
           <?=WELCOME_MESSAGE?></TD>
          </TR>
      </TABLE>
 
  
<?if(C_NEWS_ALLOW) { /* If News is allowed - Begin */ ?>
      <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="6"> 
             <TR VALIGN="TOP"> 
              <TD> 
<IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str.gif" WIDTH="15" HEIGHT="15" ALIGN="ABSBOTTOM"> 
<B CLASS="link3" ><?=NEWS?></B></TD>
             </TR>
             <TR VALIGN="TOP"> 
              <TD>
<?if(!NEWS_NUMBER) smes(NO_NEWS) /* Message, if no news */ ?>
<?else { /* Show News - Begin */ ?>
<?while(isset($ndates[$p])) { /* Show news messages - Begin */ ?>
    <table width="100%">
    <tr align=left>
        <TD VALIGN="TOP" CLASS="link3">
<B><?=$ndates[$p]?></B> - <B><?=$nsubjects[$p]?></B></td>
    </tr>
    <tr>
      <td colspan="2" CLASS="link3"><?=$nnews[$p]?></td>
    </tr>
    </table><br>
<?$p++;}$p=0; /* Show news messages - End */ ?>
<?if(SHOW_ARCHIVE) { /* If show archive  - Begin */ ?>
<a CLASS="link3" href="javascript:open_win('<?=C_URL?>/news.php?l=<?=LANGUAGE?>','news');"><FONT COLOR="#990000"><?=NEWS_ARCHIVE?> >></FONT></a>
<?}} /* If show archive  - End */ ?>
<BR>
            </TD>
             </TR>
            </TABLE>
<br>
<?} /* If News is allowed - End */ ?>
  
   <?ShowVote()?>
	 <IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="150" HEIGHT="1"></TD>
                     
<?if(C_TOP_WOMANS){ /* If Top Woman is allowed - Begin */?>
   <TD VALIGN="TOP" CLASS="vltabs"> 
<TABLE>
<TR>
        <TD> 
         <TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" ALIGN="CENTER" >
    <?=NOT_AVAILABLE_WOMANS?>
    <?while(isset($twids[$p])) { /* Top Womans show - Begin */ ?>
          <TR VALIGN="MIDDLE"> 
           <TD VALIGN="MIDDLE" CLASS="link3">
<IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str.gif" WIDTH="15" HEIGHT="15" ALIGN="ABSBOTTOM"> 
<B><?=THE_BEST_WOMANS?></B></TD>
          </TR>
          <TR VALIGN="TOP"> 
           <TD CLASS="tab"><br> 
            <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3">
             <TR VALIGN="TOP"> 
              <TD ALIGN="CENTER">
<a href="<?=GenLink('UserProfile',array(LANGUAGE,$twids[$p]))?>"><img src="<?=$twpics[$p]?>" width="75" border="0"></a>
              </TD>
             </TR>
             <TR VALIGN="TOP"> 
              <TD WIDTH="100">
<A CLASS="link3" href="<?=GenLink('UserProfile',array(LANGUAGE,$twids[$p]))?>">
<FONT COLOR="#990000"><B><?=$twnames[$p]?></B></FONT></a>
<BR>                                                                             
               <FONT CLASS="font2" COLOR="#000000"><?=AGE?> - <B><?=$twages[$p]?></B></FONT><BR>
               <FONT CLASS="font2" COLOR="#000000"><B><?=$twcountries[$p]?></B></FONT><BR>
               <IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="130" HEIGHT="1"></TD>
             </TR>
            </TABLE>
           </TD>
          </TR>
         <tr>
          <td><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="1" HEIGHT="1">
         <br></td>
         </tr>
  <?$p++;}$p=0; /* Top Womans show - End */ ?>
<tr>
          <td><?if(SHOW_MORE_RESULTS){?>
<a href="<?=GenLink('Top',array(LANGUAGE,0,2,1))?>" class="link3"><?=MORE_RESULTS?></a>
<?}?></td>
         </tr>          
         </TABLE>
        </TD>
</TR>
</TABLE>
     </TD>
  <?} /* If Top Woman is allowed - End */?>
    <?if(C_TOP_MANS){ /* If Top Man is allowed - Begin */?>
     <TD VALIGN="TOP" CLASS="vltabs"> 
<TABLE>
<TR>
        <TD>
         <TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" ALIGN="CENTER" >
    <?=NOT_AVAILABLE_MANS?>
    <?while(isset($tmids[$p])) { /* Top Mans show - Begin */ ?>
          <TR VALIGN="MIDDLE"> 
           <TD VALIGN="MIDDLE" CLASS="link3">
<IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str.gif" WIDTH="15" HEIGHT="15" ALIGN="ABSBOTTOM"> 
            <B><?=THE_BEST_MANS?></B></TD>
          </TR>
          <TR VALIGN="TOP"> 
           <TD CLASS="tab"><br>
            <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3">
             <TR VALIGN="TOP"> 
              <TD ALIGN="CENTER">
<a href="<?=GenLink('UserProfile',array(LANGUAGE,$tmids[$p]))?>"><img src="<?=$tmpics[$p]?>" width="75" border="0"></a>
              </TD>
             </TR>
             <TR VALIGN="TOP"> 
              <TD WIDTH="100">
<A CLASS="link3" href="<?=GenLink('UserProfile',array(LANGUAGE,$tmids[$p]))?>">
<FONT COLOR="#990000"><B><?=$tmnames[$p]?></B></FONT></a>
<BR>                                                                             
               <FONT CLASS="font2" COLOR="#000000"><?=AGE?> - <B><?=$tmages[$p]?></B></FONT><BR>
               <FONT CLASS="font2" COLOR="#000000"><B><?=$tmcountries[$p]?></B></FONT><BR>
               <IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="130" HEIGHT="1"></TD>
             </TR>
            </TABLE>
           </TD>
          </TR>
          <tr>
           <td><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="1" HEIGHT="1">
           <br></td>
          </tr>
 <?$p++;}$p=0; /* Top Mans show - End */ ?>
<tr>
           <td><?if(SHOW_MORE_RESULTS){?>
<a href="<?=GenLink('Top',array(LANGUAGE,0,1,1))?>" class="link3"><?=MORE_RESULTS?></a>
<?}?>   </td>
          </tr>       
         </TABLE>
        </TD>
       </TR>
      </TABLE>
<IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="1" HEIGHT="1"> 
     </TD>
 <?} /* If Top Man is allowed - End */?>
     <TD VALIGN="TOP" CLASS="vltabs"> 
      <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
       <TR> 
        <TD VALIGN="TOP"> 
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
    <form action="<?=C_URL?>/qsearch.php" method="get">
    <input type="hidden" name="l" value="<?=LANGUAGE?>">
    <input type="hidden" name="a" value="s">
    <TR> 
    <TD COLSPAN="2">
<IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str.gif" WIDTH="15" HEIGHT="15" ALIGN="ABSBOTTOM"> 
    <FONT CLASS="link3"><b><?=QUICK_SEARCH?></b></FONT><br><br></TD>
    </TR>
<?if(I_AM_A_SHOW) { /* If is allow to show this section */ ?>
       <TR> 
        <TD VALIGN="TOP" CLASS="tab" ALIGN="RIGHT" COLSPAN="2"><br>
				<FONT CLASS="link3"><?=I_AM_A?></FONT>
				<select name="sgender" class="select1">
        <?=I_AM_A_VALUE?>
        </select>
  			</TD>
  		</TR>
<?}?>	
<?if(SEEKING_FOR_SHOW) { /* If is allow to show this section */ ?>
       <TR> 
        <TD VALIGN="TOP" CLASS="tab" ALIGN="RIGHT" COLSPAN="2">
        <FONT CLASS="link3"><?=SEEKING_FOR?></FONT> 
				<select name="gender[]" class="selectm" multiple>
        <?=SEEKING_FOR_VALUE?>
      	</select>
  			</TD>
  		</TR>
 <Tr>
<?}?>	
<?if(AGE_SHOW) { /* If is allow to show this section */ ?>
    <TD VALIGN="TOP" CLASS="tab" ALIGN="RIGHT" COLSPAN="2">
    <FONT CLASS="link3"><?=AGE?>
    <input name="agef" class="sinput" style=width:44> -  <input name="aget" class="sinput" style=width:44>
    </td>
  </tr>
<?}?>	
<?if(COUNTRY_SHOW) { /* If is allow to show this section */ ?>
  <TR> 
        <TD VALIGN="TOP" CLASS="tab" ALIGN="RIGHT" COLSPAN="2">
        <FONT CLASS="link3"><?=COUNTRY?></FONT>
				<select name="country[]" class="selectm" multiple>
      	<?=COUNTRY_VALUE?>
    		</select>
				</TD>
 			</TR>
<?}?>	
       <TR> 
        <TD VALIGN="TOP" CLASS="tab" ALIGN="RIGHT" COLSPAN="2">
<?if(PHOTO_SHOW) { /* If is allow to show this section */ ?>
    <?=SEARCH_USERS_WITH?> <?=PHOTO?> <input type="checkbox" name="photo"><br>
<?}?>	
<?if(ONLINE_USERS_ONLY_SHOW) { /* If is allow to show this section */ ?>
    <?=ONLINE_USERS_ONLY?> <input type="checkbox" name="online"> 
<?}?>	
				</TD>
 			 </TR>

        
<?if(ALLOW_BSEARCH) { /* If Birthday search is require - Begin */ ?>
 <TR>
  <TD CLASS="tab"><FONT CLASS="link3"><?=BIRTHDAY?></FONT></TD>
  <TD><select name="month" class="select1">
      <option selected value=0>-- 
      <?=MONTH_VALUE?>
      </select>
  </TD>
 </TR>
 <TR>
  <TD CLASS="tab"><SPACER HEIGHT="1" WIDTH="1"  TYPE="block"></TD>
  <TD><select name="day" class="select1">
      <option selected value=0>--
      <?=DAY_VALUE?>
    </select>
  </TD>
 </TR>
 <TR>
  <TD CLASS="tab"><SPACER HEIGHT="1" WIDTH="1"  TYPE="block"></TD>
  <TD><select name="year" class="select1">
      <option selected value=0>-- 
      <?=YEAR_VALUE?>
      </select>
<br>	 
<?} else { /* If Birthday search is NOT require - Begin */ ?>
    <input type="hidden" name="month" value="0">
    <input type="hidden" name="day" value="0">
    <input type="hidden" name="year" value="0">
<?} /* If Birthday search is NOT require - End */ ?>
 <TR>
  <TD><SPACER HEIGHT="1" WIDTH="1"  TYPE="block"></TD>
  <TD><input class="button1" type=submit value="<?=QUICK_SEARCH?>"></TD>
 </TR>
 <TR>
   <TD ALIGN=RIGHT COLSPAN=2>
   <br>
    <a CLASS="link3" href="<?=C_URL?>/search.php?l=<?=LANGUAGE?>"><FONT COLOR="#990000"><?=SEARCH?></FONT></a> <FONT COLOR="#990000">/</FONT> 
    <a CLASS="link3" href="<?=C_URL?>/advsearch.php?l=<?=LANGUAGE?>"><FONT COLOR="#990000"><?=ADV_SEARCH?></FONT></a>
   </TD>
 </TR>
 </FORM>
</TABLE>
<IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="150" HEIGHT="1"> 
<br><br>
<?if(C_BIRTHDAY) { /* If Birthdays is allow - Begin */?>
         <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
          <TR> 
           <TD COLSPAN="2">
<IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str.gif" WIDTH="15" HEIGHT="15" ALIGN="ABSBOTTOM"> 
<FONT COLOR="#660000" CLASS="font2">
<b><?=TODAY_BIRTHDAYS?>:</b></FONT><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="1" HEIGHT="1"> 
<br><br>
           </TD>
          </TR>
          <TR> 
           <TD> 
<FONT CLASS="font2" COLOR="#660000">
<?if(BIRTHDAYS_EXIST) echo NO_BIRTHDAYS; else {  ?>
    <table width="100%">
    <tr align=left>
      <td><FONT CLASS="font2" COLOR="#990000"><?=USERNAME?></FONT>
      </td>
      <td><FONT CLASS="font2" COLOR="#990000"><?=GENDER?></FONT>
      </td>
      <td><FONT CLASS="font2" COLOR="#990000"><?=AGE?></FONT>
      </td>
    </tr>
<?while(isset($bids[$p])) { /* Show all birthdays - Begin */ ?>
    <tr align=left>
      <td>
      <a CLASS="link3" href="<?=GenLink('UserProfile',array(LANGUAGE,$bids[$p]))?>"><FONT COLOR="#990000"><?=$bnames[$p]?></FONT></a>
      </td>
      <td><FONT CLASS="font2" COLOR="#990000"><?=$bgenders[$p]?></FONT>
      </td>
      <td><FONT CLASS="font2" COLOR="#990000"><?=$bages[$p]?></FONT>
      </td>
    </tr>
<?$p++;}$p=0; /* Show all birthdays - End */ ?>
    </table><br>
		<a href="birthday.php?l=<?=LANGUAGE?>" class="link3" target="_blank"><?=MORE_RESULTS?></a>
<?} /* Show birthdays - End */ ?>
</FONT>
           </TD>
          </TR>
         </TABLE>
<?} /* If Birthdays is allow - End */?>
        </TD>
       </TR>
      </TABLE>
      <IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="150" HEIGHT="1"></TD>
     <TD WIDTH="10" VALIGN="TOP" ALIGN="LEFT" CLASS="vltabl"> 
      <IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="10" HEIGHT="1"></TD>
    </TR>
   </TABLE>
<TABLE  BACKGROUND="<?=C_URL?>/templates/<?=C_TEMP?>/images/zal.gif" WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" HEIGHT="61">
    <TR VALIGN="TOP"> 
     <TD HEIGHT="4"><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="1" HEIGHT="4"></TD>
     <TD ROWSPAN="3"><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="1" HEIGHT="61"></TD>
    </TR>
    <TR VALIGN="TOP"> 
     <TD ALIGN=RIGHT CLASS="tab">
<SPAN CLASS="link3">
    <?show_languages()?>
</SPAN>
     </TD>
    </TR>
    <TR VALIGN="TOP"> 
     <TD align=right>
		 <?if(IsAccess(C_OPTIONS_TEMPLATE)) {?>
		 <form name="ChangeTemplate"> 
			<strong><?=CHANGE_DESIGN?></strong> <select name="tmp" onchange="window.location = document.ChangeTemplate.tmp.options[tmp.selectedIndex].value" class=minput> 
<?php 
$handle=opendir(C_PATH.'/templates/'); 
while (false!==($TemplateName = readdir($handle))) 
{ 
    if ($TemplateName != "." && $TemplateName != ".." && is_dir(C_PATH.'/templates/'.$TemplateName)) 
   { 
			$select_current = ((isset($_COOKIE['TemplateName']) && ( $_COOKIE['TemplateName'] == $TemplateName)) || (!isset($_COOKIE['TemplateName']) && ( C_TEMP == $TemplateName))) ? 'selected' : ''; 
?> 
<option value="<?=C_URL.'/index.php?l='.$l.'&ChangeTemplate='.$TemplateName?>" <?=$select_current?>><?=ucfirst($TemplateName)?> 
<?php 
  } 
}    
closedir($handle); 
?> 
</select> 
</form> 
<?}?>
		 </TD>
    </TR>
   </TABLE>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
    <TR> 
     <TD VALIGN="TOP" WIDTH="180" BGCOLOR="#E6E6E6"> 
      
      <TABLE WIDTH="180" BORDER="0" CELLSPACING="1" CELLPADDING="0" BGCOLOR="#E6E6E6">
       <TR> 
        <TD HEIGHT="26" CLASS="tab" BACKGROUND="<?=C_URL?>/templates/<?=C_TEMP?>/images/but1.gif" ALIGN="RIGHT"><A  CLASS="link11" HREF="<?=MAIN_PAGE_LINK?>"><?=MAIN_PAGE?></A></TD>
        <TD BGCOLOR="#E6E6E6" ><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="1" HEIGHT="26"></TD >
       </TR>
       <TR> 
        <TD HEIGHT="26" CLASS="tab" BACKGROUND="<?=C_URL?>/templates/<?=C_TEMP?>/images/but1.gif" ALIGN="RIGHT"><A  CLASS="link11" HREF="<?=REGISTER_LINK?>"><?=REGISTER?></A></TD>
        <TD BGCOLOR="#E6E6E6" ><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="1" HEIGHT="26"></TD >
       </TR>
       <TR> 
        <TD HEIGHT="26" CLASS="tab" BACKGROUND="<?=C_URL?>/templates/<?=C_TEMP?>/images/but1.gif" ALIGN="RIGHT"><A  CLASS="link11" HREF="<?=SEARCH_LINK?>"><?=SEARCH?></A></TD>
        <TD BGCOLOR="#E6E6E6" ><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="1" HEIGHT="26"></TD >
       </TR>
        <TD HEIGHT="26" CLASS="tab" BACKGROUND="<?=C_URL?>/templates/<?=C_TEMP?>/images/but1.gif" ALIGN="RIGHT"><A  CLASS="link11" HREF="<?=FEEDBACK_LINK?>"><?=FEEDBACK?></A></TD>
        <TD BGCOLOR="#E6E6E6" ><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="1" HEIGHT="26"></TD >
       </TR>
       <TR> 
        <TD HEIGHT="26" CLASS="tab" BACKGROUND="<?=C_URL?>/templates/<?=C_TEMP?>/images/but1.gif" ALIGN="RIGHT"><A  CLASS="link11" HREF="<?=FAQ_LINK?>"><?=FAQ?></A></TD>
        <TD BGCOLOR="#E6E6E6" ><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="1" HEIGHT="26"></TD >
       </TR>
       <TR> 
        <TD HEIGHT="26" CLASS="tab" BACKGROUND="<?=C_URL?>/templates/<?=C_TEMP?>/images/but1.gif" ALIGN="RIGHT"><A  CLASS="link11" HREF="<?=LINKS_LINK?>"><?=LINKS?></A></TD>
        <TD BGCOLOR="#E6E6E6" ><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="1" HEIGHT="26"></TD >
       </TR>
       <TR> 
        <TD HEIGHT="26" CLASS="tab" BACKGROUND="<?=C_URL?>/templates/<?=C_TEMP?>/images/but1.gif" ALIGN="RIGHT"><A  CLASS="link11" HREF="<?=STATISTICS_LINK?>"><?=STATISTICS?></A></TD>
        <TD BGCOLOR="#E6E6E6" ><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="1" HEIGHT="26"></TD >
       </TR>
      </TABLE>
      
      <BR>
      <BR>
         <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="3">
<?if(C_RECOMMENDED){ /* If Recommend is allow - Begin */?>
          <TR ALIGN="LEFT" VALIGN="MIDDLE"> 
           <TD HEIGHT="24" COLSPAN="2">
<IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str1.gif" WIDTH="18" HEIGHT="18" ALIGN="ABSMIDDLE"> 
<FONT CLASS="font2" COLOR="#000000"><?=RECOMMEND_US?></FONT></TD>
          </TR>
    <form action="<?=C_URL?>/recommend.php" method="post" OnSubmit="javascript:open_win('','recommend');" target='recommend' name='recommend'>
    <input type="hidden" name="l" value="<?=LANGUAGE?>">
           <TR> 
            <TD ALIGN="RIGHT" WIDTH="" CLASS="tab">
<FONT CLASS="font2" COLOR="#000000"><?=FIRSTNAME?>:</FONT></TD>
            <TD WIDTH="" CLASS="tab"> 
    <input CLASS="textform1" type=text name=yname SIZE="7">
            </TD>
           </TR>
           <TR> 
            <TD ALIGN="RIGHT" WIDTH="" CLASS="tab">
<FONT CLASS="font2" COLOR="#000000">
    <?=EMAIL?>:</FONT></TD>
            <TD WIDTH="" CLASS="tab"> 
    <input CLASS="textform1" type=text name=ymail SIZE="7">
           </TD>
           </TR>
           <TR> 
            <TD ALIGN="RIGHT" WIDTH="" CLASS="tab">
    <?while(isset($friends_emails[$k])) { /* Show several friends emails - Begin */?> 
<FONT CLASS="font2" COLOR="#000000"><?=$friend_emails[$k]?>:</FONT></TD>
            <TD WIDTH="" CLASS="tab"> 
    <input CLASS="textform1" type=text name="mail[<?=$k?>]" SIZE="7">
            </TD>
           </TR>
           <TR> 
            <TD ALIGN="RIGHT" WIDTH="" CLASS="tab">
    <?$k++;}$k=1; /* Show several friends emails - End */?></TD>
            <TD WIDTH="" CLASS="tab"></TD>
           </TR>
          <TR> 
           <TD CLASS="tab" ALIGN=CENTER COLSPAN="2" HEIGHT="10">
    <input CLASS="button2" type=submit value="<?=RECOMMEND_US?>" SIZE="7">
   <BR>
   <BR>
      <HR SIZE="1" COLOR="#CCCCCC" NOSHADE><BR>
           </TD>
          </TR>
          </FORM>
<?} /* If Recommend is allow - End */?>
         </TABLE>
      <BR>
         <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="6">
         <TR><TD>
         <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
          <TR> 
           <TD>
<IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str1.gif" WIDTH="18" HEIGHT="18" ALIGN="ABSMIDDLE"> 
<FONT CLASS="font2"><B><?=SIMPLE_STATISTICS?>:</B></FONT><br><br></TD>
          </TR>
<?while(isset($scolors[$p])) { /* Genders statistics - Begin */ ?>
          <TR> 
           <TD><FONT CLASS="font2"><?=$sgenders[$p]?></FONT></TD>
           <TD><FONT CLASS="font2"><?=$sgencount[$p]?></FONT></TD>
          </TR>
<?$p++;}$p=0; /* Genders statistics - End */ ?>   
          <TR> 
           <TD><FONT CLASS="font2"><?=TOTAL_GENDER?></FONT></TD>
           <TD><FONT CLASS="font2"><?=TOTAL_GENDER_COUNT?></FONT></TD>
          </TR>
         </TABLE>
  </TD>
  </TR>
 </TABLE>
      <BR>
      <BR>
      <BR>
      <IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="180" HEIGHT="1"> </TD>
     <TD VALIGN="TOP" BGCOLOR="#F0F0F0" CLASS="tab"> 
      <TABLE WIDTH="96%" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="CENTER">
       <TR> 
        <TD VALIGN="TOP">
 
<?if(C_MOST_POPULAR) { /* If show popular users is allow - Begin */ ?>
         <TABLE WIDTH="90%" BORDER="0" CELLSPACING="0" CELLPADDING="6">
          <TR> 
           <TD VALIGN="TOP">
<IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str1.gif" WIDTH="18" HEIGHT="18" ALIGN="ABSMIDDLE">
            <FONT COLOR="#000000" CLASS="font2"><b><?=MOST_POPULAR?></b></FONT></TD>
          </TR>
          <TR> 
           <TD VALIGN="TOP"> 
            <TABLE WIDTH="100%" BORDER="0" CELLSPACING="1" CELLPADDING="3">
             <TR BGCOLOR="#F8E5B2"> 
              <TD BGCOLOR="#F8E5B2" CLASS="tab"><FONT CLASS="font2" COLOR="#000000"><b><?=USERNAME?></b></FONT></TD>
              <TD BGCOLOR="#F8E5B2" CLASS="tab"><FONT CLASS="font2" COLOR="#000000"><b><?=GENDER?></b></FONT></TD>
              <TD BGCOLOR="#F8E5B2" CLASS="tab"><FONT CLASS="font2" COLOR="#000000"><b><?=AGE?></b></FONT></TD>
              <TD BGCOLOR="#F8E5B2" CLASS="tab"><FONT CLASS="font2" COLOR="#000000"><b><?=POPULARITY?></b></FONT></TD>
             </TR>
<?while(isset($pids[$p])) { /* If popular users exist - Begin */ ?>        
             <TR> 
              <TD BGCOLOR="#DBDBDB" CLASS="tab"><A CLASS="link3" href="<?=GenLink('UserProfile',array(LANGUAGE,$pids[$p]))?>"><?=$pnames[$p]?></A></TD>
              <TD BGCOLOR="#E6E6E6" CLASS="tab"><FONT CLASS="font2"><?=$pgenders[$p]?></FONT></TD>
              <TD BGCOLOR="#E6E6E6" CLASS="tab"><FONT CLASS="font2"><?=$pages[$p]?></FONT></TD>
              <TD BGCOLOR="#E6E6E6" CLASS="tab"><FONT CLASS="font2"><?=$phits[$p]?></FONT></TD>
             </TR>
<?$p++;}$p=0; /* If popular users exist - Begin */ ?>        
            </TABLE>
           </TD>
          </TR>
         </TABLE>
<?} /* If show popular users is allow - End */ ?>
<?if(SHOW_MORE_RESULTS){?>
<a href="<?=GenLink('Top',array(LANGUAGE,0,0,0))?>" class="link3"><?=MORE_RESULTS?></a>
<?}?>  
<?if(C_LASTREG_BG){?>
         <TABLE WIDTH="90%" BORDER="0" CELLSPACING="0" CELLPADDING="6">
          <TR> 
           <TD VALIGN="TOP">
<IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str1.gif" WIDTH="18" HEIGHT="18" ALIGN="ABSMIDDLE">
            <FONT COLOR="#000000" CLASS="font2"><B><?=LAST_REGISTERED2?></B></FONT></TD>
          </TR>
          <TR> 
           <TD VALIGN="TOP"> 
            <TABLE WIDTH="100%" BORDER="0" CELLSPACING="1" CELLPADDING="3">
             <TR BGCOLOR="#2A84BF"> 
              <TD CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><B><?=USERNAME?></B></FONT></TD>
              <TD CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><B><?=AGE?></B></FONT></TD>
              <TD CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><B><?=REGDATE?></B></FONT></TD>
              <TD CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><B><?=PHOTO?></B></FONT></TD>
             </TR>
<?while(isset($lids[2][$p])) { /* Show last registered users - Begin */ ?>      
             <TR> 
              <TD BGCOLOR="#DBDBDB" CLASS="tab"><A CLASS="link3" href="<?=GenLink('UserProfile',array(LANGUAGE,$lids[2][$p]))?>"><?=$lnames[2][$p]?></A></TD>
              <TD BGCOLOR="#E6E6E6" CLASS="tab"><FONT CLASS="font2"><?=$lages[2][$p]?></FONT></TD>
              <TD BGCOLOR="#E6E6E6" CLASS="tab"><FONT CLASS="font2"><?=$lregdate[2][$p]?></FONT></TD>
              <TD BGCOLOR="#E6E6E6" CLASS="tab"><FONT CLASS="font2"><?if(IsAccess(C_LAST_SHOW_PHOTOS)) {?><?=$lpics[2][$p]?><?} else {?><?=$lphotos[2][$p]?><?}?> </FONT></TD>
             </TR>
<?$p++;}$p=0; /* Show last registered users - Begin */ ?>   
            </TABLE>            
           </TD>
          </TR>
         </TABLE>
<a href="<?=GenLink('Last',array(LANGUAGE,'0','2'))?>" class="link3"><?=MORE_RESULTS?></a>				 
         <TABLE WIDTH="90%" BORDER="0" CELLSPACING="0" CELLPADDING="6">
          <TR> 
           <TD VALIGN="TOP">
<IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str1.gif" WIDTH="18" HEIGHT="18" ALIGN="ABSMIDDLE">
            <FONT COLOR="#000000" CLASS="font2"><B><?=LAST_REGISTERED1?></B></FONT></TD>
          </TR>
          <TR> 
           <TD VALIGN="TOP"> 
            <TABLE WIDTH="100%" BORDER="0" CELLSPACING="1" CELLPADDING="3">
             <TR BGCOLOR="#2A84BF"> 
              <TD CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><B><?=USERNAME?></B></FONT></TD>
              <TD CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><B><?=AGE?></B></FONT></TD>
              <TD CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><B><?=REGDATE?></B></FONT></TD>
              <TD CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><B><?=PHOTO?></B></FONT></TD>
             </TR>
<?while(isset($lids[1][$p])) { /* Show last registered users - Begin */ ?>      
             <TR> 
              <TD BGCOLOR="#DBDBDB" CLASS="tab"><A CLASS="link3" href="<?=GenLink('UserProfile',array(LANGUAGE,$lids[1][$p]))?>"><?=$lnames[1][$p]?></A></TD>
              <TD BGCOLOR="#E6E6E6" CLASS="tab"><FONT CLASS="font2"><?=$lages[1][$p]?></FONT></TD>
              <TD BGCOLOR="#E6E6E6" CLASS="tab"><FONT CLASS="font2"><?=$lregdate[1][$p]?></FONT></TD>
              <TD BGCOLOR="#E6E6E6" CLASS="tab"><FONT CLASS="font2"><?if(IsAccess(C_LAST_SHOW_PHOTOS)) {?><?=$lpics[1][$p]?><?} else {?><?=$lphotos[1][$p]?><?}?> </FONT></TD>
             </TR>
<?$p++;}$p=0; /* Show last registered users - Begin */ ?>   
            </TABLE>            
           </TD>
          </TR>
         </TABLE>
<a href="<?=GenLink('Last',array(LANGUAGE,'0','1'))?>" class="link3"><?=MORE_RESULTS?></a>				 

<? } else {?>
         <TABLE WIDTH="90%" BORDER="0" CELLSPACING="0" CELLPADDING="6">
          <TR> 
           <TD VALIGN="TOP">
<IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str1.gif" WIDTH="18" HEIGHT="18" ALIGN="ABSMIDDLE">
            <FONT COLOR="#000000" CLASS="font2"><B><?=LAST_REGISTERED0?></B></FONT></TD>
          </TR>
          <TR> 
           <TD VALIGN="TOP"> 
            <TABLE WIDTH="100%" BORDER="0" CELLSPACING="1" CELLPADDING="3">
             <TR BGCOLOR="#2A84BF"> 
              <TD CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><B><?=USERNAME?></B></FONT></TD>
              <TD CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><B><?=AGE?></B></FONT></TD>
              <TD CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><B><?=REGDATE?></B></FONT></TD>
              <TD CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><B><?=PHOTO?></B></FONT></TD>
             </TR>
<?while(isset($lids[0][$p])) { /* Show last registered users - Begin */ ?>      
             <TR> 
              <TD BGCOLOR="#DBDBDB" CLASS="tab"><A CLASS="link3" href="<?=GenLink('UserProfile',array(LANGUAGE,$lids[0][$p]))?>"><?=$lnames[0][$p]?></A></TD>
              <TD BGCOLOR="#E6E6E6" CLASS="tab"><FONT CLASS="font2"><?=$lages[0][$p]?></FONT></TD>
              <TD BGCOLOR="#E6E6E6" CLASS="tab"><FONT CLASS="font2"><?=$lregdate[0][$p]?></FONT></TD>
              <TD BGCOLOR="#E6E6E6" CLASS="tab"><FONT CLASS="font2"><?if(IsAccess(C_LAST_SHOW_PHOTOS)) {?><?=$lpics[0][$p]?><?} else {?><?=$lphotos[0][$p]?><?}?> </FONT></TD>
             </TR>
<?$p++;}$p=0; /* Show last registered users - Begin */ ?>   
            </TABLE>            
           </TD>
          </TR>
         </TABLE>
<a href="<?=GenLink('Last',array(LANGUAGE,'0','0'))?>" class="link3"><?=MORE_RESULTS?></a>				 

<? } ?>

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