<?php if(!defined("C_URL")) die('Can`t access file directly!'); ?>

<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>
   </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 BACKGROUND="<?=C_URL?>/templates/<?=C_TEMP?>/images/but0.gif" HEIGHT="26" ALIGN="RIGHT" CLASS="tab" VALIGN="MIDDLE"><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="1" HEIGHT="26"></TD>
        <TD BGCOLOR="#E6E6E6" ><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="1" HEIGHT="26"></TD >
       </TR>
       <TR> 
        <TD VALIGN="TOP">
            <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" COLSPAN="2" HEIGHT="24">
<IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/str1.gif" WIDTH="18" HEIGHT="18" ALIGN="ABSMIDDLE"> 
                  <FONT CLASS="font2"><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"><?=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="CENTER" HEIGHT="24" CLASS="tab" WIDTH="30%"><SPACER HEIGHT="1" WIDTH="1"  TYPE="block"></TD>
                 <TD ALIGN="LEFT" HEIGHT="24" WIDTH="70%" CLASS="tab">
<A HREF="<?=C_URL?>/remind.php?l=<?=$l?>" CLASS="link2">
<?=FORGOT_PASSWORD?></A></TD>
                </TR>
               </TABLE>
              </TD>
             </TR>
            </TABLE>
            
        </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="<?=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="<?=LOGIN_LINK?>"><?=LOGIN?></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>
<?if(C_FORUM) { /* If Forum is enabled - Begin */?>
       <TR> 
        <TD HEIGHT="26" CLASS="tab" BACKGROUND="<?=C_URL?>/templates/<?=C_TEMP?>/images/but1.gif" ALIGN="RIGHT"><A  CLASS="link11" HREF="<?=FORUM_LINK?>"><?=FORUM?></A></TD>
        <TD BGCOLOR="#E6E6E6" ><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="1" HEIGHT="26"></TD >
       </TR>
<?} /* If Forum is enabled - end */?>
<?if(C_ALLOW_CHAT) { /* If Chat is enabled - Begin */?>
       <TR> 
        <TD HEIGHT="26" CLASS="tab" BACKGROUND="<?=C_URL?>/templates/<?=C_TEMP?>/images/but1.gif" ALIGN="RIGHT"><A  CLASS="link11" HREF="<?=CHAT_LINK?>"><?=CHAT?></A></TD>
        <TD BGCOLOR="#E6E6E6" ><IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="1" HEIGHT="26"></TD >
       </TR>
<?} /* If Chat is enabled - end */?>			 
       <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="<?=SUBSCRIBE_LINK?>"><?=SUBSCRIPTION?></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>
      
      </TD>
     <TD VALIGN="TOP" BGCOLOR="#F0F0F0" CLASS="tab" WIDTH="100%"> 
      <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="CENTER">
       <TR> 
        <TD VALIGN="TOP">

<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" WIDTH="60%"> 
 
         <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 */ ?>
  

	 <IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="150" HEIGHT="1"></TD>
                     

     <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="select1" 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="select1" 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>

        </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/str.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>
      <IMG SRC="<?=C_URL?>/templates/<?=C_TEMP?>/images/h.gif" WIDTH="180" HEIGHT="1"> 
        </TD>
       </TR>
      </TABLE>
     </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>