<?php if(!defined("C_URL")) die('Can`t access file directly!'); ?>
<Table CellSpacing="<?=C_BORDER?>" CellPadding="0" width="<?=C_WIDTH?>" bgcolor="<?=C_TBCOLOR?>">
<Tr>
  
  <Td width="<?=C_WIDTHL?>" bgcolor="<?=COLOR1?>" valign="top">
  <Table Border=0 CellSpacing="<?=C_IBORDER?>" CellPadding="<?=C_CELLP?>" width="<?=C_WIDTHL?>" class=mes>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="center" bgcolor="<?=COLORH?>">
    <Td>
    <?=FOR_MEMBERS?>
    </Td>
  </Tr>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="<?=C_ALIGN?>" bgcolor="<?=COLOR1?>" class=desc>
    <Td>
    <form action="<?=C_URL?>/login.php" method="post">
    <input type="hidden" name="l" value="<?=LANGUAGE?>">
    <input type="hidden" name="p" value="s">
    <?=LOGIN_NAME?> <input class=minput type=text name=id><br>
    <?=PASSWORD?> <input class=minput type=password name=password><br>
    <?if (VERIFY_ALLOW) {?><div align="right"><img src=img.php height=24 border=0></div>
<?=VERIFICATION?><INPUT  CLASS="minput" TYPE="text" NAME="verifyimage"><BR><?}?>   
    <input class=minput type=submit value="<?=ENTER?>"><br>
		
    <a href="<?=C_URL?>/add.php?l=<?=$l?>" class=desc>[<?=REGISTER?>]</a> 
    <a href="<?=C_URL?>/remind.php?l=<?=$l?>" class=desc>[<?=FORGOT_PASSWORD?>]</a>
    </Td></form>
  </Tr>
<?if(C_TOP_MANS){ /* If Top Man is allowed - Begin */?>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="center" bgcolor="<?=COLORH?>">
    <Td>
    <?=THE_BEST_MANS?>
    </Td>
  </Tr>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="<?=C_ALIGN?>" bgcolor="<?=COLOR1?>">
    <Td class=desc align=center>
    <?=NOT_AVAILABLE_MANS?>
    <?while(isset($tmids[$p])) { /* Top Mans show - Begin */ ?>
    <table width="100%" class=tr>
    <tr class=desc bgcolor="<?=$tmcolors[$p]?>" align=center>
      <td>
      <a href="<?=GenLink('UserProfile',array(LANGUAGE,$tmids[$p]))?>" class=desc><img src="<?=$tmpics[$p]?>" width="120" border="0" vspace="2" hspace="2"></a>
      </td>
    </tr>
    <tr class=mes bgcolor="<?=COLORH?>" align=center>
      <td>
      <?=$tmnames[$p]?>, <?=$tmages[$p]?>, <?=$tmcountries[$p]?> : <?=$tmhits[$p]?>
      </td>
    </tr>
    </table>
    <?$p++;}$p=0; /* Top Mans show - End */ ?>	 
	<?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 */?>
<?if(C_RECOMMENDED){ /* If Recommend is allow - Begin */?>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="center" bgcolor="<?=COLORH?>">
    <Td>
    <?=RECOMMEND_US?>
    </Td>
  </Tr>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="<?=C_ALIGN?>" bgcolor="<?=COLOR1?>">
    <Td class=desc>
    <form action="<?=C_URL?>/recommend.php" method="post" OnSubmit="javascript:open_win('','recommend');" target='recommend' name='recommend'>
    <input type="hidden" name="l" value="<?=LANGUAGE?>">
    <?=FIRSTNAME?> <input class=msinput type=text name=yname><br>
    <?=EMAIL?> <input class=msinput type=text name=ymail><br>
    <?while(isset($friends_emails[$k])) { /* Show several friends emails - Begin */?> 
    <?=$friend_emails[$k]?> <input class=msinput type=text name="mail[<?=$k?>]">
    <br>
    <?$k++;}$k=1; /* Show several friends emails - End */?>
    <input class=minput type=submit value="<?=RECOMMEND_US?>">
    </Td></form>
  </Tr>
<?} /* If Recommend is allow - End */?>
<?if(C_BIRTHDAY) { /* If Birthdays is allow - Begin */?>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="center" bgcolor="<?=COLORH?>">
    <Td>
    <?=TODAY_BIRTHDAYS?>
    </Td>
  </Tr>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="<?=C_ALIGN?>" bgcolor="<?=COLOR1?>">
    <Td class=desc>
<?if(BIRTHDAYS_EXIST) echo NO_BIRTHDAYS; else {  ?>
    <table width="100%" class=tr>
    <tr class=mes bgcolor="<?=COLORH?>" align=center>
      <td>
      <?=USERNAME?>
      </td>
      <td>
      <?=GENDER?>
      </td>
      <td>
      <?=AGE?>
      </td>
    </tr>
<?while(isset($bids[$p])) { /* Show all birthdays - Begin */ ?>
    <tr class=desc bgcolor="<?=$bcolors[$p]?>" align=center>
      <td>
      <a href="<?=GenLink('UserProfile',array(LANGUAGE,$bids[$p]))?>" class=desc><?=$bnames[$p]?></a>
      </td>
      <td>
      <?=$bgenders[$p]?>
      </td>
      <td>
      <?=$bages[$p]?>
      </td>
    </tr>
<?$p++;}$p=0; /* Show all birthdays - End */ ?>
    </table>
			<br>
		<a href="birthday.php?l=<?=LANGUAGE?>" class="desc" target="_blank"><?=MORE_RESULTS?></a>
<?} /* Show birthdays - End */ ?>
    </Td>
  </Tr>
<?} /* If Birthdays is allow - End */?>

<?if(IsAccess(C_OPTIONS_TEMPLATE)) {?>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="center" bgcolor="<?=COLORH?>">
    <Td>
    <?=CHANGE_DESIGN?>
    </Td>
  </Tr>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="center" bgcolor="<?=COLOR1?>">
    <Td class=desc>
		 <form name="ChangeTemplate"> 
			<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> 
    </Td>
  </Tr></form> 

<?}?>
  </Table>
  </Td>
  
  
  
  <Td width="<?=C_WIDTHR?>" valign="top" bgcolor="<?=COLOR1?>">
  <Table Border=0 CellSpacing="<?=C_IBORDER?>" CellPadding="<?=C_CELLP?>" width="<?=C_WIDTHC?>" class=mes>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="center" bgcolor="<?=COLORH?>">
    <Td>
    <?=WELCOME_TITLE?> <br> <?=ShowWelcomeBackMessage()?>
    </Td>
  </Tr>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="<?=C_ALIGN?>" bgcolor="<?=COLOR1?>">
    <Td>
    <span class=mes><?=WELCOME_MESSAGE?></span>
    </Td>
  </Tr>
<?if(C_NEWS_ALLOW) { /* If News is allowed - Begin */ ?> 
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="center" bgcolor="<?=COLORH?>">
    <Td>
    <?=NEWS?>
    </Td>
  </Tr>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="<?=C_ALIGN?>" bgcolor="<?=COLOR1?>">
    <Td align=center>
<?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%" class=tr>
    <tr class=mes bgcolor="<?=COLORH?>" align=center>
      <td width="75%">
      <?=$nsubjects[$p]?>
      </td>
      <td>
      <?=$ndates[$p]?>
      </td>
    </tr>
    <tr>
      <td colspan="2" class=mes>
      <?=$nnews[$p]?>
      </td>
    </tr>
    </table><br>
<?$p++;}$p=0; /* Show news messages - End */ ?>
<?if(SHOW_ARCHIVE) { /* If show archive  - Begin */ ?>
<a href="javascript:open_win('<?=C_URL?>/news.php?l=<?=LANGUAGE?>','news');" class=desc>[<?=NEWS_ARCHIVE?>]</a>
<?}} /* If show archive  - End */ ?>
    </Td>
  </Tr>
<?} /* If News is allowed - End */ ?>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>

  <?if(C_LASTREG_BG){?>  
<? /* Last Registered Mens */ ?>  
  <Tr align="center" bgcolor="<?=COLORH?>">
    <Td>
    <?=LAST_REGISTERED1?>
    </Td>
  </Tr>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="<?=C_ALIGN?>" bgcolor="<?=COLOR1?>">
    <Td>
    <table width="100%" class=tr>
    <tr class=mes bgcolor="<?=COLORH?>" align=center>
      <td>
      <?=USERNAME?>
      </td>
      <td>
      <?=REGDATE?>
      </td>
      <td>
      <?=AGE?>
      </td>
      <td>
      <?=PHOTO?>
      </td>
    </tr>
<?while(isset($lids[1][$p])) { /* Show last registered users - Begin */ ?>      
    <tr class=desc bgcolor="<?=$lcolors[1][$p]?>" align=center>
      <td>
      <a href="<?=GenLink('UserProfile',array(LANGUAGE,$lids[1][$p]))?>" class=desc><?=$lnames[1][$p]?></a>
      </td>
      <td>
      <?=$lregdate[1][$p]?>
      </td>
      <td>
      <?=$lages[1][$p]?>
      </td>
      <td>
      <?if(IsAccess(C_LAST_SHOW_PHOTOS)) {?><?=$lpics[1][$p]?><?} else {?><?=$lphotos[1][$p]?><?}?>  
      </td>
    </tr>
<?$p++;}$p=0; /* Show last registered users - Begin */ ?>   
    </table><div align="center"><a href="<?=GenLink('Last',array(LANGUAGE,'0','1'))?>" class="link3"><?=MORE_RESULTS?></a>		</div>
    </Td>
  </Tr>  
<? /* Last Registered WoMens */ ?>  
  <Tr align="center" bgcolor="<?=COLORH?>">
    <Td>
    <?=LAST_REGISTERED2?>
    </Td>
  </Tr>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="<?=C_ALIGN?>" bgcolor="<?=COLOR1?>">
    <Td>
    <table width="100%" class=tr>
    <tr class=mes bgcolor="<?=COLORH?>" align=center>
      <td>
      <?=USERNAME?>
      </td>
      <td>
      <?=REGDATE?>
      </td>
      <td>
      <?=AGE?>
      </td>
      <td>
      <?=PHOTO?>
      </td>
    </tr>
<?while(isset($lids[2][$p])) { /* Show last registered users - Begin */ ?>      
    <tr class=desc bgcolor="<?=$lcolors[2][$p]?>" align=center>
      <td>
      <a href="<?=GenLink('UserProfile',array(LANGUAGE,$lids[2][$p]))?>" class=desc><?=$lnames[2][$p]?></a>
      </td>
      <td>
      <?=$lregdate[2][$p]?>
      </td>
      <td>
      <?=$lages[2][$p]?>
      </td>
      <td>
      <?if(IsAccess(C_LAST_SHOW_PHOTOS)) {?><?=$lpics[2][$p]?><?} else {?><?=$lphotos[2][$p]?><?}?>  
      </td>
    </tr>
<?$p++;}$p=0; /* Show last registered users - Begin */ ?>   
    </table><div align="center"><a href="<?=GenLink('Last',array(LANGUAGE,'0','2'))?>" class="link3"><?=MORE_RESULTS?></a>		</div>
    </Td>
  </Tr>    
<? } else {  ?>
  <Tr align="center" bgcolor="<?=COLORH?>">
    <Td>
    <?=LAST_REGISTERED0?>
    </Td>
  </Tr>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="<?=C_ALIGN?>" bgcolor="<?=COLOR1?>">
    <Td>
    <table width="100%" class=tr>
    <tr class=mes bgcolor="<?=COLORH?>" align=center>
      <td>
      <?=USERNAME?>
      </td>
      <td>
      <?=REGDATE?>
      </td>
      <td>
      <?=AGE?>
      </td>
      <td>
      <?=PHOTO?>
      </td>
    </tr>
<?while(isset($lids[0][$p])) { /* Show last registered users - Begin */ ?>      
    <tr class=desc bgcolor="<?=$lcolors[0][$p]?>" align=center>
      <td>
      <a href="<?=GenLink('UserProfile',array(LANGUAGE,$lids[0][$p]))?>" class=desc><?=$lnames[0][$p]?></a>
      </td>
      <td>
      <?=$lregdate[0][$p]?>
      </td>
      <td>
      <?=$lages[0][$p]?>
      </td>
      <td>
      <?if(IsAccess(C_LAST_SHOW_PHOTOS)) {?><?=$lpics[0][$p]?><?} else {?><?=$lphotos[0][$p]?><?}?>  
      </td>
    </tr>
<?$p++;}$p=0; /* Show last registered users - Begin */ ?>   
    </table><div align="center"><a href="<?=GenLink('Last',array(LANGUAGE,'0','0'))?>" class="link3"><?=MORE_RESULTS?></a>		</div>
    </Td>
  </Tr>  

<? } ?>
<?if(C_MOST_POPULAR) { /* If show popular users is allow - Begin */ ?>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="center" bgcolor="<?=COLORH?>">
    <Td>
    <?=MOST_POPULAR?>
    </Td>
  </Tr>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="<?=C_ALIGN?>" bgcolor="<?=COLOR1?>">
    <Td>
    <table width="100%" class=tr>
    <tr class=mes bgcolor="<?=COLORH?>" align=center>
      <td>
      <?=USERNAME?>
      </td>
      <td>
      <?=GENDER?>
      </td>
      <td>
      <?=AGE?>
      </td>
      <td>
      <?=POPULARITY?>
      </td>
    </tr>
<?while(isset($pids[$p])) { /* If popular users exist - Begin */ ?>        
    <tr class=desc bgcolor="<?=$pcolors[$p]?>" align=center>
      <td>
      <a href="<?=GenLink('UserProfile',array(LANGUAGE,$pids[$p]))?>" class=desc><?=$pnames[$p]?></a>
      </td>
      <td>
      <?=$pgenders[$p]?>
      </td>
      <td>
      <?=$pages[$p]?>
      </td>
      <td>
      <?=$phits[$p]?>
      </td>
    </tr>
<?$p++;}$p=0; /* If popular users exist - Begin */ ?>        
    </table>  
	<?if(SHOW_MORE_RESULTS){?>
<center><a href="<?=GenLink('Top',array(LANGUAGE,0,0,0))?>" class="link3"><?=MORE_RESULTS?></a></center>
<?}?>
<?} /* If show popular users is allow - End */ ?>
    <Tr>
      <Td bgcolor="<?=C_TBCOLOR?>"></Td>
    </Tr>
    <Tr align="center" bgcolor="<?=COLORH?>">
      <Td>
      <?=TOTAL_USERS?>
      </Td>
    </Tr>
    <Tr>
      <Td bgcolor="<?=C_TBCOLOR?>"></Td>
    </Tr>
    </Td>
  </Tr>
  </Table>
  </Td>
      
      
      
  <Td width="<?=C_WIDTHR?>" bgcolor="<?=COLOR1?>" valign="top">
  <Table Border=0 CellSpacing="<?=C_IBORDER?>" CellPadding="<?=C_CELLP?>" width="<?=C_WIDTHR?>" class=mes>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="center" bgcolor="<?=COLORH?>">
    <Td>
    <?=QUICK_SEARCH?>
    </Td>
  </Tr>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="<?=C_ALIGN?>" bgcolor="<?=COLOR1?>">
    <Td>
    <form action="<?=C_URL?>/qsearch.php" method="get">
    <input type="hidden" name="l" value="<?=LANGUAGE?>">
    <input type="hidden" name="a" value="s">
    <Table Border=0 CellSpacing="<?=C_IBORDER?>" CellPadding="<?=C_CELLP?>" width="<?=C_WIDTHR?>" class=mes>
<?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="minput">
        <?=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>
</table>
<?if(ALLOW_BSEARCH) { /* If Birthday search is require - Begin */ ?>
    <?=BIRTHDAY?> 
    <select name="month" class="minput">
      <option selected value=0>-- 
      <?=MONTH_VALUE?>
    </select>
    <select name="day" class="sinput">
      <option selected value=0>--
      <?=DAY_VALUE?>
    </select>
    <select name="year" class="sinput">
      <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 */ ?>
    <input class=minput type=submit value="<?=QUICK_SEARCH?>">
    <br>
    <a href="<?=C_URL?>/search.php?l=<?=LANGUAGE?>" class=desc>[<?=SEARCH?>]</a> 
    <a href="<?=C_URL?>/advsearch.php?l=<?=LANGUAGE?>" class=desc>[<?=ADV_SEARCH?>]</a>
    </Td></form>
  </Tr>
<?if(C_TOP_WOMANS){ /* If Top Woman is allowed - Begin */?>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="center" bgcolor="<?=COLORH?>">
    <Td>
    <?=THE_BEST_WOMANS?>
    </Td>
  </Tr>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="<?=C_ALIGN?>" bgcolor="<?=COLOR1?>">
    <Td class=desc align=center>
    <?=NOT_AVAILABLE_WOMANS?>
    <?while(isset($twids[$p])) { /* Top Womans show - Begin */ ?>
    <table width="100%" class=tr>
    <tr class=desc bgcolor="<?=$twcolors[$p]?>" align=center>
      <td>
      <a href="<?=GenLink('UserProfile',array(LANGUAGE,$twids[$p]))?>" class=desc><img src="<?=$twpics[$p]?>" width="120" border="0" vspace="2" hspace="2"></a>
      </td>
    </tr>
    <tr class=mes bgcolor="<?=COLORH?>" align=center>
      <td>
      <?=$twnames[$p]?>, <?=$twages[$p]?>, <?=$twcountries[$p]?> : <?=$twhits[$p]?>
      </td>
    </tr>
    </table>
    <?$p++;}$p=0; /* Top Womans show - End */ ?>	
	<?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 */?>
<?if(HAVE_USER_WITH_PHOTO) { /* If User with photo exist - Begin */ ?>  
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="center" bgcolor="<?=COLORH?>">
    <Td>
    <?=PHOTO_OF_DAY?>
    </Td>
  </Tr>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="<?=C_ALIGN?>" bgcolor="<?=COLOR1?>">
    <Td>
    <a href="<?=GenLink('UserProfile',array(LANGUAGE,PHOTO_ID))?>" class=desc><img src="<?=PHOTO_NAME?>" width="120" alt="<?=PHOTO_OF_DAY?>" border="<?=C_IMG_BRDR?>" vspace="4" hspace="4"></a>
    </Td>
  </Tr>
<?} /* If User with photo exist - End */ ?>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="center" bgcolor="<?=COLORH?>">
    <Td>
    <?=SIMPLE_STATISTICS?>
    </Td>
  </Tr>
  <Tr>
    <Td bgcolor="<?=C_TBCOLOR?>"></Td>
  </Tr>
  <Tr align="<?=C_ALIGN?>" bgcolor="<?=COLOR1?>">
    <Td>
    <table width="100%" class=tr>
<?while(isset($scolors[$p])) { /* Genders statistics - Begin */ ?>
    <tr class=desc bgcolor="<?=$scolors[$p]?>">
      <td>
      <?=$sgenders[$p]?>
      <td>
      <?=$sgencount[$p]?>
      </td>
    </tr> 
<?$p++;}$p=0; /* Genders statistics - End */ ?>   
    <tr class=desc bgcolor="<?=COLORH?>">
      <td>
      <?=TOTAL_GENDER?>
      </td>
      <td>
      <?=TOTAL_GENDER_COUNT?>
      </td>
    </tr>
    </table>
    </Td>
  </Tr>
  </Table>
	<?ShowVote()?>
  </Td>
</Tr>
</Table>
