<title>{$lang['Search_Results']}
 - {$_CONF['info_row']['title']}</title>
{template}address_bar_part1{/template}
{$lang['Search_Results']}
{template}address_bar_part2{/template}
<br />
{if !{$ReplyList['id']}}
<table border="0" cellspacing="1" class="border" width="98%" align="center">
	<tr>
		<td width="100%" class="tcat small_text" align="center" colspan="6">
 <div class="r-right">{$lang['Search_results_for']}
     {$keyword}</div>
			{if {$username_nm}}
			<div class="l-left"> {$lang['Number_of_results']}
			({$username_nm})
			 {$lang['result']}</div>
			{/if}

			{if {$nm}}
			<div class="l-left"> {$lang['Number_of_results']}
			({$nm})
			  {$lang['result']}</div>
			{/if}

		</td>
	</tr>
	    <tr>
       <td width="30%" class="thead" align="center" colspan="2">
          {$lang['subject_title']}
       </td>
{if !{$search_username_subjects} }
       <td width="20%" class="thead" align="center">
          {$lang['subject_writer']}
       </td>
{/if}
       <td width="10%" class="thead" align="center">
          {$lang['reply_num']}
       </td>
       <td width="10%" class="thead" align="center">
          {$lang['subject_visitor']}
       </td>
       <td width="28%" class="thead" align="center">
{$lang['date']}
       </td>
    </tr>
	{Des::while}{SubjectList}
	<tr>
		<td width="3%" class="row1" align="center">
			<img src="{$_CONF['ReplyList_row']['icon_path']}{$SubjectList['icon']}" alt="" />
		</td>
		<td width="30%" class="row2">
					{if {$SubjectList['stick']}}
					<b><font color="#FF0000">{$lang['sticky']} : </font></b>
					{/if}
                      {if {$_CONF['info_row']['rewriterule']} == '1'}
			         <a href="t{$SubjectList['id']}&amp;{$password}highlight={$keyword}">
			        {$SubjectList['title']}</a>
                      {else}
			          <a href="index.php?page=topic&amp;show=1&amp;highlight={$keyword}&amp;id={$SubjectList['id']}{$password}">
			         {$SubjectList['title']}</a>
                     {/if}
			</a>
			{if {$SubjectList['close']}}
			{$lang['subject_close']}
			{/if}
			<br />
			<font class="small">{$SubjectList['subject_describe']}</font>
		</td>
{if !{$search_username_subjects} }
       <td width="20%" class="row1" align="center">
          <a href="index.php?page=profile&amp;show=1&amp;username={$SubjectList['writer']}">{$SubjectList['writer']}</a>       </td>
	</td>
{/if}
		<td width="10%" class="row2" align="center">
			{if {$SubjectList['reply_number']} <= 0}
			{$lang['no_replys']}
			{else}
			{$SubjectList['reply_number']}
			{/if}
		</td>
		<td width="10%" class="row1" align="center">
			{$SubjectList['visitor']}
		</td>
		<td width="28%" class="row2" align="center">
			{$SubjectList['reply_date']}
		</td>
	</tr>
{/Des::while}

	{Des::while}{SubjectTitleList}
	<tr>
		<td width="3%" class="row1" align="center">
			<img src="{$_CONF['ReplyList_row']['icon_path']}{$SubjectTitleList['icon']}" alt="" />
		</td>
		<td width="30%" class="row2">
					{if {$SubjectTitleList['stick']}}
					<b><font color="#FF0000">{$lang['sticky']} : </font></b>
					{/if}
                      {if {$_CONF['info_row']['rewriterule']} == '1'}
			         <a href="t{$SubjectTitleList['id']}&amp;{$password}highlight={$keyword}">
			        {$SubjectTitleList['title']}</a>
                      {else}
			          <a href="index.php?page=topic&amp;show=1&amp;highlight={$keyword}&amp;id={$SubjectTitleList['id']}{$password}">
			         {$SubjectTitleList['title']}</a>
                     {/if}
			{if {$SubjectTitleList['close']}}
			{$lang['subject_close']}
			{/if}
			<br />
			<font class="small">{$SubjectTitleList['subject_describe']}</font>
		</td>
{if !{$search_username_subjects} }
       <td width="20%" class="row1" align="center">
          <a href="index.php?page=profile&amp;show=1&amp;username={$SubjectTitleList['writer']}">{$SubjectTitleList['writer']}</a><br />
          {$SubjectTitleList['write_date']}
       </td>
{/if}
		<td width="10%" class="row2" align="center">
			{if {$SubjectTitleList['reply_number']} <= 0}
			{$lang['no_replys']}
			{else}
			{$SubjectTitleList['reply_number']}
			{/if}
			</td>
		<td width="10%" class="row1" align="center">
			{$SubjectTitleList['visitor']}
		</td>
		<td width="28%" class="row2" align="center">
			{$SubjectTitleList['reply_date']}
		</td>
	</tr>
{/Des::while}
{Des::while}{MembersListSubject}
	<tr>
		<td width="3%" class="row1" align="center">
			<img src="{$_CONF['ReplyList_row']['icon_path']}{$MembersListSubject['icon']}" alt="" />
		</td>
		<td width="30%" class="row2">
					{if {$MembersListSubject['stick']}}
					<b><font color="#FF0000">{$lang['sticky']} : </font></b>
					{/if}
                      {if {$_CONF['info_row']['rewriterule']} == '1'}
			         <a href="t{$MembersListSubject['id']}&amp;{$password}highlight={$keyword}">
			        {$MembersListSubject['title']}</a>
                      {else}
			          <a href="index.php?page=topic&amp;show=1&amp;highlight={$keyword}&amp;id={$MembersListSubject['id']}{$password}">
			         {$MembersListSubject['title']}</a>
                     {/if}
			{if {$MembersListSubject['close']}}
			{$lang['subject_close']}
			{/if}
			<br />
			<font class="small">{$MembersListSubject['subject_describe']}</font>
		</td>
{if !{$search_username_subjects}}
       <td width="20%" class="row1" align="center">
          <a href="index.php?page=profile&amp;show=1&amp;username={$MembersListSubject['writer']}">{$MembersListSubject['writer']}</a><br />
          {$MembersListSubject['write_date']}
       </td>
{/if}
		<td width="8%" class="row2" align="center">
			{if {$MembersListSubject['reply_number']} <= 0}
			{$lang['no_replys']}
			{else}
			{$MembersListSubject['reply_number']}
			{/if}
		</td>
		<td width="8%" class="row1" align="center">
			{$MembersListSubject['visitor']}
		</td>
		<td width="28%" class="row2" align="center">
			{$MembersListSubject['reply_date']}
		</td>
	</tr>
{/Des::while}
</table>

{else}
<br />
<table border="0" cellspacing="1" class="border" width="98%" align="center">
	<tr>
		<td width="100%" class="tcat small_text" align="center" colspan="4">
 <div class="r-right">{$lang['Search_results_for']}
  {$keyword}</div>
			{if {$username_nm}}
			<div class="l-left"> {$lang['Number_of_results']}
			 ({$username_nm})
			  {$lang['result']}</div>
			{/if}

			{if {$nm}}
			<div class="l-left"> {$lang['Number_of_results']}
			 ({$nm})
			  {$lang['result']}</div>
			{/if}

		</td>
	</tr>
	<tr>
		<td width="40%" class="thead" align="center" colspan="2">
			{$lang['subject_title']}
		</td>
		<td width="20%" class="thead" align="center">
			{$lang['subject_writer']}
		</td>
		<td width="10%" class="thead" align="center">
{$lang['date']}
		</td>
	</tr>
{Des::while}{ReplyList}
<tr>
		<td width="3%" class="row1" align="center">
		{if {$ReplyList['icon']} !=''}
		<img src="{$_CONF['ReplyList_row']['icon_path']}{$ReplyList['icon']}" alt="" />
		{else}
		 <img src="look/images/icons/i1.gif" alt="" />
		{/if}

		</td>
		<td width="40%" class="row2">
				{$lang['bY_reply']}
                      {if {$_CONF['info_row']['rewriterule']} == '1'}
			         <a href="t{$ReplyList['subject_id']}.html#{$ReplyList['id']}">
			    {if {$ReplyList['title']} !=''}
				{$ReplyList['title']}
				{else}
			<?php echo substr($PowerBB->_CONF['template']['while']['ReplyList'][$this->x_loop]['text'],0,35); ?>
				{/if}</a>
                      {else}
			          <a href="index.php?page=topic&amp;show=1&amp;highlight={$keyword}&amp;id={$ReplyList['subject_id']}#{$ReplyList['id']}">
			   {if {$ReplyList['title']} !=''}
				{$ReplyList['title']}
				{else}
			<?php echo substr($PowerBB->_CONF['template']['while']['ReplyList'][$this->x_loop]['text'],0,35); ?>
				{/if}</a>
                     {/if}
			{if {$ReplyList['close']}}
			{$lang['subject_close']}
			{/if}
			<br />
			<font class="small">{$ReplyList['subject_describe']}</font>
		</td>
		<td width="20%" class="row1" align="center">
			<a href="index.php?page=profile&amp;show=1&amp;username={$ReplyList['writer']}">{$ReplyList['writer']}</a>
		</td>
		<td width="10%" class="row2" align="center">
         {$ReplyList['reply_date']}
		</td>
	</tr>
{/Des::while}
</table>
{/if}
<br />
<table align="center" border="0" width="98%" cellspacing="0" style="border-collapse: collapse">
    <tr>
        <td width="2%" align="right">
        {if {$pager}}
<table width="6%" border="0" cellpadding="1" class="pager" align="left">
    <tr align="center">
      <td width="2%" class="pager">
 <a href="javascript:switchMenuNone('pager_top')">
<img border="0" src="{$image_path}/menu_open.gif"
 title="{$lang['Jump_between_pages']}" /></a>
<div style="display:none;position: absolute; z-index: 10" id="pager_top">
        <table width="120" border="0" cellspacing="1" class="border">
           <tr align="center">
             <td class="tbar">
           {$lang['Go_to_the_page']}
             </td>
           </tr>
           <tr align="center">
             <td class="menu_popup">
              <a href="javascript:switchMenuNone('pager_top')">
             <form name="misc" method="post" action="index.php?page=misc&pagenav_search=1">
             <input name="location" type="hidden" value="{$PagerLocation}">
             <input class="bginput" name="count" style="font-size: 11px;" size="4" type="text">
             <input class="button" type="submit" value="{$lang['Go']}" name="page_button">
             </form>
             </a>
             </td>
           </tr>
           </table>
        </div>
        </td>
      <td align="left">{$pager}</td>
    </tr>
</table>
{/if}
        </td>
        </tr>
      </table>
<br />
<br />