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



<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR> 
  <TD align=center VALIGN="TOP"><br><br>
<script language="JavaScript">
<!--
	if (document.form.submit.action != "") {
		document.form.submit.disabled=1;
	}

// -->
</script>
<script language="JavaScript">
<!--
function ins(prop,type)
{
	var input = document.form.message;
	var mysel;var text;
	if (window.getSelection) mysel = window.getSelection();
	else if (document.selection) mysel = document.selection.createRange().text;
	else if (document.getSelection)	mysel = document.getSelection();
	b = (type == 0) ? '['+prop+']' : prop;
	e = (type == 0) ? '[/'+prop+']' : '';
  if (input.createTextRange)
  {
	  var text;
    input.focus(input.caretPos);
    input.caretPos = document.selection.createRange().duplicate();
    input.caretPos.text = (input.caretPos.text.length>0) ? b + input.caretPos.text + e : b + mysel + e;
   }
   else input.value += b + mysel + e;
}
// -->
</script>

<form action="<?=filename()?>" method="post" name=form OnSubmit="return formCheck(this)">
<input type="hidden" name="l" value="<?=LANGUAGE?>">
<input type="hidden" name="a" value="a">

<?if(NO_TESTIMONIALS){?>
<span class=head><?=TESTIMONIALS?></span>
<br><br>
<Table CellSpacing="<?=C_BORDER?>" CellPadding="0" width="<?=C_WIDTH?>" bgcolor="<?=C_TBCOLOR?>">
<Tr>
  <Td>
  <Table Border=0 CellSpacing="<?=C_IBORDER?>" CellPadding="<?=C_CELLP?>" width="<?=C_WIDTH?>" class=mes>
  <Tr align="center" bgcolor="<?=COLOR1?>">
    <Td class=head><?=NO_TESTIMONIALS?></Td>
  </Tr>
  </table>
  </Td>
</Tr>
</Table>
<?} else {?>

<div align="center"><span class=head><?=SEARCH_RESULTS?></span></div><br><br>
<Table CellSpacing="<?=C_BORDER?>" CellPadding="0" width="<?=C_BWIDTH?>" bgcolor="<?=C_TBCOLOR?>"><Tr><Td><Table Border=0 CellSpacing="<?=C_IBORDER?>" CellPadding="<?=C_CELLP?>" width="<?=C_BWIDTH?>" class=mes>
  <Tr align="center" bgcolor="<?=COLORH?>">
    <Td width=60%><?=TESTIMONIALS?></td>
    <Td width=30%><?=ADDITIONAL_INFO?></td>
    <Td width=10%><?=PHOTO?></td>
  </Tr>
<? while(isset($ids[$p])) { /* Search results - begin */?>  
  <Tr align="center" bgcolor="<?=$colors[$p]?>">
    <Td valign=top align=left><?=$mdate[$p]?><br><br><?=$message[$p]?></td>
    <Td align=left valign=top>        
    <table Border=0 CellSpacing="1" CellPadding="1" width="100%" class=mes>
    <?if(SHOW_FNAME){?><tr><td width=50%><?=FIRSTNAME?>:</td><td width=50%><?=$fnames[$p]?></td></tr><?}?>
    <?if(SHOW_LNAME){?><tr><td><?=LASTNAME?>:</td><td><?=$lnames[$p]?></td></tr><?}?>
    <?if(SHOW_PURPOSE){?><tr><td width=50%><?=PURPOSES?>:</td><td width=50%><?=$genders[$p]?> <?=$purposes[$p]?></td></tr><?}?>
    <?if(SHOW_COUNTRY){?><tr><td width=50%><?=COUNTRY?>:</td><td width=50%><?=$countries[$p]?></td></tr><?}?>
    <?if(SHOW_AGE){?><tr><td width=50%><?=AGE?>:</td><td width=50%><?=$ages[$p]?></td></tr><?}?>
		<?if(SHOW_BODYTYPE){?><tr><td><?=BODYTYPE?>:</td><td><?=$bodytypes[$p]?></td></tr><?}?>
		<?if(SHOW_ORIENTATION){?><tr><td><?=ORIENTATION?>:</td><td><?=$orientations[$p]?></td></tr><?}?>
		<?if(SHOW_CITY){?><tr><td><?=CITY?>:</td><td><?=$cities[$p]?></td></tr><?}?>
		<?if(SHOW_HEIGHT){?><tr><td><?=HEIGHT?>:</td><td><?=$heights[$p]?></td></tr><?}?>
		<?if(SHOW_WEIGHT){?><tr><td><?=WEIGHT?>:</td><td><?=$weights[$p]?></td></tr><?}?>
		<?if(SHOW_SEEKING_GENDER){?><tr><td><?=SEEKING_GENDER?>:</td><td><?=$sgenders[$p]?></td></tr><?}?>
		<?if(SHOW_HORO){?><tr><td><?=HOROSCOPE?>:</td><td><?=$horoscopes[$p]?></td></tr><?}?>
		<?if(SHOW_REG_DATE){?><tr><td><?=REGISTER_DATE?>:</td><td><?=$regdates[$p]?></td></tr><?}?>
		<?if(SHOW_LAST_ACCESS){?><tr><td><?=LAST_ACCESS?>:</td><td><?=$editdates[$p]?></td></tr><?}?>
    <?if(SHOW_RATING){?><tr><td><?=RATING?>:</td><td><?=$rates[$p]?></td></tr><?}?>
		<?if(SHOW_USERTYPE){?><tr><td><?=USERTYPE?>:</td><td><?=$usertypes[$p]?></td></tr><?}?>
		<?if(SHOW_ONLINE_STATUS){?><tr><td><?=ONLINE_STATUS?>:</td><td>
		<?if(IsOnline($ids[$p])){?> <span style="color:green"><B><?=ONLINE?></B></span> <?}else{?> <?=OFFLINE?> <?}?>
		</td></tr><?}?>
    </table></td>
    <Td align=left valign=top><?if(SHOW_PHOTO){?><?=$pictures[$p]?><?}?><br><a class=link2 href="<?=GenLink('UserProfile',array(LANGUAGE,$ids[$p]))?>" target=_blank><?=$names[$p]?></a></td>
  </Tr>
  <?if(trim($reply[$p]) != ''){?>
    <Tr align="center" bgcolor="<?=$colors[$p]?>">
    <Td valign=top align=left><?=$rdate[$p]?><br><br><span  style='color:red;font-weight:bold;'><?=$reply[$p]?></span></td>
    <Td align=left valign=top colspan=2> <font size=+1><?=ADMINISTRATOR?></td>
  </Tr>
  <?}?>
  <Tr align="center" bgcolor="<?=COLORH?>">
  </Tr>
<? $p++;} /* Search results - end */?>
  </table>
  </td>
</tr>
</table>
<BR>
<Table CellSpacing="<?=C_BORDER?>" CellPadding="0" width="<?=C_BWIDTH?>" bgcolor="<?=C_TBCOLOR?>"><Tr><Td><Table Border=0 CellSpacing="<?=C_IBORDER?>" CellPadding="<?=C_CELLP?>" width="<?=C_BWIDTH?>" class=mes><?=PAGES?></table></td></tr></table>

<?}?>
<br>
<br>
<br>
<?if(IsAccess(C_TST_REPLY)){?>
<Table CellSpacing="<?=C_BORDER?>" CellPadding="0" width="<?=C_BWIDTH?>" bgcolor="<?=C_TBCOLOR?>" align=center>
<Tr>
  <Td>
  <Table Border=0 CellSpacing="<?=C_IBORDER?>" CellPadding="<?=C_CELLP?>" width="<?=C_BWIDTH?>" class=mes>
  <Tr align="<?=C_ALIGN?>" bgcolor="<?=COLOR1?>">
    <Td>
    <?=MESSAGE?>
        </Td>
    <Td>
   
 <?if(USE_SMILES || USE_BB){?>
    <Table Border=0 width="350" CellSpacing="2" CellPadding="6"><Tr align="left" bgcolor="<?=COLORH?>"><Td>
<?if(USE_SMILES){?><?$p=0;foreach ($smiles as $k=>$v){$p++;?><a href="javascript:ins(' <?=$k?> ',1)"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/forum/smiles/<?=$v?>" border=0 /></a>
<?if(C_SMILES_NUMBER <= $p){?><br><a href="javascript:open_win('<?=C_URL?>/forum/smiles_show.php','_blank')"><?=$w[720]?></a><br><?break;}?><?}?><?}?> 
<?if(USE_BB && USE_SMILES){?><br><br><?}?>
<?if(USE_BOLD){?><a href="javascript:ins('B',0)"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/Bold.gif" border=0 /></a><?}?>
<?if(USE_ITALIC){?><a href="javascript:ins('I',0);"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/Italic.gif" border=0 /></a><?}?>
<?if(USE_UNDERLINE){?><a href="javascript:ins('U',0);"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/Underline.gif" border=0 /></a><?}?>
<?if(USE_STRIKE){?><a href="javascript:ins('S',0);"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/Strike.gif" border=0 /></a><?}?>
<?if(USE_QUOTE){?><a href="javascript:ins('QUOTE',0);"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/Quote.gif" border=0 /></a><?}?>  
<?if(USE_URL){?><a href="javascript:ins('URL',0);"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/URL.gif" border=0 /></a><?}?>  
<?if(USE_IMG){?><a href="javascript:ins('IMG',0);"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/Image.gif" border=0 /></a><?}?>  
<?if(USE_VIDEO){?><a href="javascript:ins('VIDEO',0);"><img src="<?=C_URL?>/templates/<?=C_TEMP?>/images/Video.gif" border=0 /></a><?}?>  
</td></tr></table><?}?>
    <textarea class=forum_input cols=30 rows=12 name=message></textarea>
    </Td>
  </Tr>
  <Tr align="<?=C_ALIGN?>" bgcolor="<?=COLOR1?>">
    <td colspan=2 align=right>
    <input class=input1 type=submit value="<?=ENTER?>" name="submit">
    </Td>
  </Tr>
  </table>
  </Td>
</Tr>
</Table>
<?}?>
<br>

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

