<?php if(!defined("C_URL")) die('Can`t access file directly!'); ?>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
    <TR VALIGN="TOP"> 
     <TD WIDTH="564"> 
      <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="6">
       <TR> 
        <TD VALIGN="TOP" CLASS="tab">
        <TABLE WIDTH="90%" BORDER="0" CELLSPACING="0" CELLPADDING="3">
             <TR VALIGN="TOP"> 
              <TD><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str1.gif" WIDTH="6" HEIGHT="10" ALIGN="BOTTOM"> 
               <FONT CLASS="font22"  COLOR="#000000"><b><?=WELCOME_TITLE?></b></FONT></TD>
             </TR>
             <TR VALIGN="TOP"> 
              <TD><FONT CLASS="font2" COLOR="#000000">
              <?=WELCOME_MESSAGE?>
              </FONT>
              </TD>
             </TR>
        </TABLE>
<br>
        
      <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
       <TR ALIGN="CENTER" VALIGN="TOP"> 
<?if(C_TOP_WOMANS){ /* If Top Woman is allowed - Begin */?>
    <?=NOT_AVAILABLE_WOMANS?>
    <tr>
    <?while(isset($twids[$p])) { /* Top Womans show - Begin */ ?>
        <TD align=left valign=top> 
         <TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" ALIGN="left" >
          <TR VALIGN="MIDDLE"> 
           <TD VALIGN="MIDDLE" BGCOLOR="#A69E85" CLASS="tabl"><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str.gif" WIDTH="6" HEIGHT="10" ALIGN="BOTTOM"> 
            <FONT CLASS="font22" COLOR="#FFFFFF"><?=THE_BEST_WOMANS?></FONT></TD>
          </TR>
          <TR VALIGN="TOP"> 
           <TD BGCOLOR="#CCC4AB" CLASS="tab"> 
            <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3">
             <TR VALIGN="TOP"> 
              <TD ALIGN="CENTER"><br>
<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="#660000"><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="110" HEIGHT="1"></TD>
             </TR>
            </TABLE>
           </TD>
          </TR>

         </TABLE>
        </TD>
  <?$p++;}$p=0; /* Top Womans show - End */ ?>
        </tr> 
                <tr><td><?if(SHOW_MORE_RESULTS){?><a href="<?=GenLink('Top',array(LANGUAGE,0,2,1))?>" class="link3"><?=MORE_RESULTS?></a><?}?>
</td></tr>   
  <?} /* If Top Woman is allowed - End */?>
                <tr><td><br>

                </td></tr>   
    <?if(C_TOP_MANS){ /* If Top Man is allowed - Begin */?>
    <?=NOT_AVAILABLE_MANS?>
    <tr>
    <?while(isset($tmids[$p])) { /* Top Mans show - Begin */ ?>
        <TD align=left valign=top>
         <TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" ALIGN="left" >
          <TR VALIGN="MIDDLE"> 
           <TD VALIGN="MIDDLE" BGCOLOR="#A69E85" CLASS="tabl"><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str.gif" WIDTH="6" HEIGHT="10" ALIGN="BOTTOM"> 
            <FONT CLASS="font22" COLOR="#FFFFFF"><?=THE_BEST_MANS?></FONT></TD>
          </TR>
          <TR VALIGN="TOP"> 
           <TD BGCOLOR="#CCC4AB" 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="#660000"><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="110" HEIGHT="1"></TD>
             </TR>
            </TABLE>
           </TD>
          </TR>
         </TABLE>
        </TD>
 <?$p++;}$p=0; /* Top Mans show - End */ ?>
        </tr> 
        <tr><td><?if(SHOW_MORE_RESULTS){?><a href="<?=GenLink('Top',array(LANGUAGE,0,1,1))?>" class="link3"><?=MORE_RESULTS?></a><?}?></td></tr>  
 <?} /* If Top Man is allowed - End */?>
                <tr><td><br>

</td></tr></TABLE>
<BR>
  
<?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="6" HEIGHT="10" ALIGN="BOTTOM"> 
            <FONT COLOR="#000000" CLASS="font22"><b><?=MOST_POPULAR?></b></FONT></TD>
          </TR>
          <TR> 
           <TD VALIGN="TOP"> 
            <TABLE WIDTH="100%" BORDER="0" CELLSPACING="1" CELLPADDING="3">
             <TR BGCOLOR="#A69E85"> 
              <TD BGCOLOR="#A69E85" CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><?=USERNAME?></FONT></TD>
              <TD BGCOLOR="#A69E85" CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><?=GENDER?></FONT></TD>
              <TD BGCOLOR="#A69E85" CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><?=AGE?></FONT></TD>
              <TD BGCOLOR="#A69E85" CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><?=POPULARITY?></FONT></TD>
             </TR>
<?while(isset($pids[$p])) { /* If popular users exist - Begin */ ?>        
             <TR BGCOLOR="#CCC4AB"> 
              <TD BGCOLOR="#CCC4AB" CLASS="tab"><A CLASS="link2" href="<?=GenLink('UserProfile',array(LANGUAGE,$pids[$p]))?>"><?=$pnames[$p]?></A></TD>
              <TD BGCOLOR="#CCC4AB" CLASS="tab"><FONT COLOR="#333333" CLASS="font2"><?=$pgenders[$p]?></FONT></TD>
              <TD BGCOLOR="#CCC4AB" CLASS="tab"><FONT COLOR="#333333" CLASS="font2"><?=$pages[$p]?></FONT></TD>
              <TD BGCOLOR="#CCC4AB" CLASS="tab"><FONT COLOR="#333333" 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>
<?}?>  
  
<br>
<br>
       
      
  <?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="6" HEIGHT="10" ALIGN="BOTTOM"> 
            <FONT COLOR="#000000" CLASS="font22"><b><?=LAST_REGISTERED1?></b></FONT></TD>
          </TR>
          <TR> 
           <TD VALIGN="TOP"> 
            <TABLE WIDTH="100%" BORDER="0" CELLSPACING="1" CELLPADDING="3">
             <TR BGCOLOR="#A69E85" > 
              <TD BGCOLOR="#A69E85"  CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><?=USERNAME?></FONT></TD>
              <TD BGCOLOR="#A69E85"  CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><?=AGE?></FONT></TD>
              <TD BGCOLOR="#A69E85" CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><?=REGDATE?></FONT></TD>
              <TD BGCOLOR="#A69E85"  CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><?=PHOTO?></FONT></TD>
             </TR>
<?while(isset($lids[1][$p])) { /* Show last registered users - Begin */ ?>      
             <TR BGCOLOR="#CCC4AB"> 
              <TD BGCOLOR="#CCC4AB" CLASS="tab"><A CLASS="link2" href="<?=GenLink('UserProfile',array(LANGUAGE,$lids[1][$p]))?>"><?=$lnames[1][$p]?></A></TD>
              <TD BGCOLOR="#CCC4AB" CLASS="tab"><FONT COLOR="#333333" CLASS="font2"><?=$lages[1][$p]?></FONT></TD>
              <TD BGCOLOR="#CCC4AB" CLASS="tab"><FONT COLOR="#333333" CLASS="font2"><?=$lregdate[1][$p]?></FONT></TD>
              <TD BGCOLOR="#CCC4AB" CLASS="tab"><FONT COLOR="#333333" 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>		<br>
				 
  
<BR>
           
         <TABLE WIDTH="90%" BORDER="0" CELLSPACING="0" CELLPADDING="6">
          <TR> 
           <TD VALIGN="TOP"><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str1.gif" WIDTH="6" HEIGHT="10" ALIGN="BOTTOM"> 
            <FONT COLOR="#000000" CLASS="font22"><b><?=LAST_REGISTERED2?></b></FONT></TD>
          </TR>
          <TR> 
           <TD VALIGN="TOP"> 
            <TABLE WIDTH="100%" BORDER="0" CELLSPACING="1" CELLPADDING="3">
             <TR BGCOLOR="#A69E85" > 
              <TD BGCOLOR="#A69E85"  CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><?=USERNAME?></FONT></TD>
              <TD BGCOLOR="#A69E85"  CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><?=AGE?></FONT></TD>
              <TD BGCOLOR="#A69E85" CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><?=REGDATE?></FONT></TD>
              <TD BGCOLOR="#A69E85"  CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><?=PHOTO?></FONT></TD>
             </TR>
<?while(isset($lids[2][$p])) { /* Show last registered users - Begin */ ?>      
             <TR BGCOLOR="#CCC4AB"> 
              <TD BGCOLOR="#CCC4AB" CLASS="tab"><A CLASS="link2" href="<?=GenLink('UserProfile',array(LANGUAGE,$lids[2][$p]))?>"><?=$lnames[2][$p]?></A></TD>
              <TD BGCOLOR="#CCC4AB" CLASS="tab"><FONT COLOR="#333333" CLASS="font2"><?=$lages[2][$p]?></FONT></TD>
              <TD BGCOLOR="#CCC4AB" CLASS="tab"><FONT COLOR="#333333" CLASS="font2"><?=$lregdate[2][$p]?></FONT></TD>
              <TD BGCOLOR="#CCC4AB" CLASS="tab"><FONT COLOR="#333333" 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>		<br>
				 
<? } 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="6" HEIGHT="10" ALIGN="BOTTOM"> 
            <FONT COLOR="#000000" CLASS="font22"><b><?=LAST_REGISTERED0?></b></FONT></TD>
          </TR>
          <TR> 
           <TD VALIGN="TOP"> 
            <TABLE WIDTH="100%" BORDER="0" CELLSPACING="1" CELLPADDING="3">
             <TR BGCOLOR="#A69E85" > 
              <TD BGCOLOR="#A69E85"  CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><?=USERNAME?></FONT></TD>
              <TD BGCOLOR="#A69E85"  CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><?=AGE?></FONT></TD>
              <TD BGCOLOR="#A69E85" CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><?=REGDATE?></FONT></TD>
              <TD BGCOLOR="#A69E85"  CLASS="tab"><FONT CLASS="font2" COLOR="#FFFFFF"><?=PHOTO?></FONT></TD>
             </TR>
<?while(isset($lids[0][$p])) { /* Show last registered users - Begin */ ?>      
             <TR BGCOLOR="#CCC4AB"> 
              <TD BGCOLOR="#CCC4AB" CLASS="tab"><A CLASS="link2" href="<?=GenLink('UserProfile',array(LANGUAGE,$lids[0][$p]))?>"><?=$lnames[0][$p]?></A></TD>
              <TD BGCOLOR="#CCC4AB" CLASS="tab"><FONT COLOR="#333333" CLASS="font2"><?=$lages[0][$p]?></FONT></TD>
              <TD BGCOLOR="#CCC4AB" CLASS="tab"><FONT COLOR="#333333" CLASS="font2"><?=$lregdate[0][$p]?></FONT></TD>
              <TD BGCOLOR="#CCC4AB" CLASS="tab"><FONT COLOR="#333333" 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>


<? } ?>
         <BR>
         <BR>
        </TD>
       </TR>
      </TABLE>
     </TD>
     <TD WIDTH="235" ALIGN="RIGHT"> 
      <TABLE WIDTH="235" BORDER="0" CELLSPACING="0" CELLPADDING="0">
       <TR> 
        <TD BGCOLOR="#CCC4AB" VALIGN="TOP"> 
         <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
          <TR> 
           <TD VALIGN="TOP" CLASS="tab">
            <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="6">
             <TR> 
              <TD VALIGN="TOP" HEIGHT="10"> 
               <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
                <TR> 
                 <TD>
            <?if(!MyID()) {?>    
            <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="6">
             <TR> 
              <TD VALIGN="TOP"> 
               <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
                <TR> 
                 <TD ALIGN="LEFT" CLASS="tab" COLSPAN="2" HEIGHT="24"><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str1.gif" WIDTH="6" HEIGHT="10" ALIGN="BOTTOM"> 
                  <FONT CLASS="font22" COLOR="#000000"><b><?=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" COLOR="#000000"><?=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" COLOR="#000000"><?=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="50%" 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" COLOR="#000000"><?=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%" colspan=2 CLASS="tab"><FONT COLOR="#660000"><A HREF="<?=REGISTER_LINK?>" CLASS="link2"><?=REGISTER?></FONT></A> &nbsp; | &nbsp; 
<FONT COLOR="#660000"><A HREF="<?=C_URL?>/remind.php?l=<?=$l?>" CLASS="link2"><?=FORGOT_PASSWORD?></FONT></A></TD>
                </TR>
               </TABLE>
              </TD>
             </TR>
            </TABLE>
            <HR SIZE="1" COLOR="#A69E85" NOSHADE>
            <BR>
<?}?>            
<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/str1.gif" WIDTH="6" HEIGHT="10" ALIGN="BOTTOM">
    <FONT CLASS="font22" COLOR="#000000"><b><?=QUICK_SEARCH?></b></FONT></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="font2" COLOR="#000000"><?=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><SPACER HEIGHT="1" WIDTH="1"  TYPE="block"></TD>
   <TD><br>
    <a CLASS="link2" href="<?=C_URL?>/search.php?l=<?=LANGUAGE?>"><?=SEARCH?></a> <FONT COLOR=#660000>/</FONT> 
    <a CLASS="link2" href="<?=C_URL?>/advsearch.php?l=<?=LANGUAGE?>"><?=ADV_SEARCH?></a>
   </TD>
 </TR>
 </FORM>
</TABLE>
              </TD>
             </TR>
            </TABLE>
<HR SIZE="1" COLOR="#A69E85" NOSHADE><BR>
<?if(C_NEWS_ALLOW) { /* If News is allowed - Begin */ ?> 
         <TABLE WIDTH="90%" BORDER="0" CELLSPACING="0" CELLPADDING="3">
             <TR VALIGN="TOP"> 
              <TD> <IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str1.gif" WIDTH="6" HEIGHT="10" ALIGN="BOTTOM"> 
               <FONT  CLASS="font22" COLOR="#000000"><b><?=NEWS?></b></FONT></TD>
             </TR>
             <TR VALIGN="TOP"> 
              <TD><FONT CLASS="font2" COLOR="#000000">
<?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><FONT CLASS="font2" COLOR="#000000"><B><?=$ndates[$p]?></B></FONT> - 
<FONT CLASS="font2" COLOR="#000000"><B><?=$nsubjects[$p]?></B></FONT></td>
    </tr>
    <tr>
      <td colspan="2"><FONT CLASS="font2" COLOR="#000000"><?=$nnews[$p]?></FONT></td>
    </tr>
    </table><br>
<?$p++;}$p=0; /* Show news messages - End */ ?>
<?if(SHOW_ARCHIVE) { /* If show archive  - Begin */ ?>
<a CLASS="link2" href="javascript:open_win('<?=C_URL?>/news.php?l=<?=LANGUAGE?>','news');"> <FONT COLOR=#660000><?=NEWS_ARCHIVE?> >></FONT></a>
<?}} /* If show archive  - End */ ?>
<BR>
</FONT>
            </TD>
             </TR>
            </TABLE>
<?} /* If News is allowed - End */ ?>
            
<HR SIZE="1" COLOR="#A69E85" NOSHADE><BR>
<IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str1.gif" WIDTH="6" HEIGHT="10" ALIGN="BOTTOM"> 
<FONT CLASS="font2" COLOR="#000000">
<b><?show_languages()?></b>
</FONT>
<HR SIZE="1" COLOR="#A69E85" NOSHADE><BR>
		 <?if(IsAccess(C_OPTIONS_TEMPLATE)) {?>
		 <form name="ChangeTemplate"> 
			<IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str1.gif" WIDTH="6" HEIGHT="10" ALIGN="BOTTOM"> <FONT  CLASS="font22" COLOR="#000000"><b><?=CHANGE_DESIGN?></b></FONT> <select name="tmp" onchange="window.location = document.ChangeTemplate.tmp.options[tmp.selectedIndex].value" class=sinput> 
<?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> 
<?}?>
<HR SIZE="1" COLOR="#A69E85" NOSHADE><BR>

         <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<?if(C_RECOMMENDED){ /* If Recommend is allow - Begin */?>
          <TR ALIGN="LEFT" VALIGN="MIDDLE"> 
           <TD HEIGHT="24" COLSPAN="2">
<IMG WIDTH="6" HEIGHT="10" ALIGN="BOTTOM" SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str1.gif"> 
<FONT  CLASS="font22" COLOR="#000000"><b><?=RECOMMEND_US?></b></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="RIGHT" COLSPAN="2" HEIGHT="10">
    <input CLASS="button2" type=submit value="<?=RECOMMEND_US?>" SIZE="7">
           </TD>
          </TR>
          </FORM>
         </TABLE>
<?} /* If Recommend is allow - End */?>
<HR SIZE="1" COLOR="#A69E85" NOSHADE><BR>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
    <TR> 

           <TD><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str1.gif" WIDTH="6" HEIGHT="10" ALIGN="BOTTOM"><FONT  CLASS="font22" COLOR="#000000"><b> <?=SIMPLE_STATISTICS?>:</b></FONT><br><br></TD>
          </TR>
<?while(isset($scolors[$p])) { /* Genders statistics - Begin */ ?>
          <TR> 
           <TD><FONT CLASS="font2" COLOR="#000000"><?=$sgenders[$p]?></FONT></TD>
           <TD><FONT CLASS="font2" COLOR="#000000"><?=$sgencount[$p]?></FONT></TD>
          </TR>
<?$p++;}$p=0; /* Genders statistics - End */ ?>   
          <TR> 
           <TD><FONT CLASS="font2" COLOR="#000000"><?=TOTAL_GENDER?></FONT></TD>
           <TD><FONT CLASS="font2" COLOR="#000000"><?=TOTAL_GENDER_COUNT?></FONT></TD>
     </TR>
</TABLE>
     
<HR SIZE="1" COLOR="#A69E85" NOSHADE><BR>
     
<?if(C_BIRTHDAY) { /* If Birthdays is allow - Begin */?>
         <TABLE CLASS="tab" WIDTH="100%"  BORDER="0" CELLSPACING="0" CELLPADDING="0">
          <TR> 
           <TD COLSPAN="2"><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str1.gif" WIDTH="6" HEIGHT="10" ALIGN="BOTTOM"><FONT  CLASS="font22" COLOR="#000000"><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="#000000">
<?if(BIRTHDAYS_EXIST) echo NO_BIRTHDAYS; else {  ?>
    <table width="100%">
    <tr align=left>
      <td><FONT CLASS="font2" COLOR="#000000"><u><?=USERNAME?></u></FONT>
      </td>
      <td><FONT CLASS="font2" COLOR="#000000"><u><?=GENDER?></u></FONT>
      </td>
      <td><FONT CLASS="font2" COLOR="#000000"><u><?=AGE?></u></FONT>
      </td>
    </tr>
<?while(isset($bids[$p])) { /* Show all birthdays - Begin */ ?>
    <tr align=left>
      <td>
      <a CLASS="link2" href="<?=GenLink('UserProfile',array(LANGUAGE,$bids[$p]))?>"><FONT COLOR="#660000"><?=$bnames[$p]?></FONT></a>
      </td>
      <td><FONT CLASS="font2" COLOR="#000000"><?=$bgenders[$p]?></FONT>
      </td>
      <td><FONT CLASS="font2" COLOR="#000000"><?=$bages[$p]?></FONT>
      </td>
    </tr>
<?$p++;}$p=0; /* Show all birthdays - End */ ?>
    </table>
<br>
		<a href="birthday.php?l=<?=LANGUAGE?>" class="link2" target="_blank"><?=MORE_RESULTS?></a>
<?} /* Show birthdays - End */ ?>
</FONT>
           </TD>
          </TR>
         </TABLE>
<?} /* If Birthdays is allow - End */?>

<HR SIZE="1" COLOR="#A69E85" NOSHADE><BR>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
    <TR> 
     <TD VALIGN="top" ALIGN="LEFT" WIDTH="35%" CLASS="tab"> 
			<?ShowVote()?>
     </TD>
     </TR>
</TABLE>

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

        </TD>
        <TD BGCOLOR="#A69E85" WIDTH="6"><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="1" HEIGHT="6"></TD>
       </TR>
      </TABLE>
     </TD>
    </TR>
   </TABLE>
  
                 </TD>
                </TR>
               </TABLE>
