<div id="selforumsTopics" class="clsForums">
<div class="clsClearfix">
  <h2 id="selForumTitle" class="clsFloatleft"><span> <a href="{$myobj->forums_url}">{$LANG.forumlistall_title_index}</a> &nbsp;-&nbsp; {$myobj->search_title} </span></h2>
  <p class="clsEarnPoint clsFloatright">{$LANG.common_enter_search_options}</p>
  </div>
  {include file='../general/information.tpl'}
  {if $myobj->isShowPageBlock('form_advanced_search')}
  <div class="clsCommonTopAnalystRoundedCorner">
  <!--rounded corners-->
  <div class="clsShadedBg">
  <div class="lbtopanalyst">
    <div class="rbtopanalyst">
      <div class="bbtopanalyst">
        <div class="blctopanalyst">
          <div class="brctopanalyst">
            <div class="tbtopanalyst">
              <div class="tlctopanalyst">
                <div class="trctopanalyst">

			  <form name="formAdvanceSearch" id="formAdvanceSearch" method="post" action="{$myobj->advanced_search_action}">
				<div id="moreSearchOptions">
				  <table summary="{$LANG.common_displaying_more_search_options}" class="clsAskQuestion">
					<tr>
					  <td class="{$myobj->getCSSFormLabelCellClass('forum_topic')}"><label for="forum_topic">{$LANG.forum_search_topic}</label>
					  </td>
					  <td class="{$myobj->getCSSFormFieldCellClass('forum_topic')}">{$myobj->getFormFieldErrorTip('forum_topic')}
						<input type="text" class="clsCommonTextBox" name="forum_topic" id="forum_topic" value="{$myobj->getFormField('forum_topic')}" tabindex="{smartyTabIndex}" />
					  </td>
					</tr>
					<tr>
					  <td class="{$myobj->getCSSFormLabelCellClass('forum_response')}"><label for="forum_response">{$LANG.forum_search_response}</label>
					  </td>
					  <td class="{$myobj->getCSSFormFieldCellClass('forum_response')}">{$myobj->getFormFieldErrorTip('forum_response')}
						<input type="text" class="clsCommonTextBox" name="forum_response" id="forum_response" value="{$myobj->getFormField('forum_response')}" tabindex="{smartyTabIndex}" />
					  </td>
					</tr>
					<tr>
					  <td class="{$myobj->getCSSFormLabelCellClass('dname')}"><label for="dname">{$LANG.search_username}</label>
					  </td>
					  <td class="{$myobj->getCSSFormFieldCellClass('dname')}">{$myobj->getFormFieldErrorTip('dname')}
						<p>
						  <input type="text" class="clsCommonTextBox" name="dname" id="dname" value="{$myobj->getFormField('dname')}" tabindex="{smartyTabIndex}" />
						</p></td>
					</tr>
					<tr>
					  <td class="{$myobj->getCSSFormLabelCellClass('date_limits_to')}"><label for="date_limits_to">{$LANG.forum_search_date_limits_to}</label></td>
					  <td class="{$myobj->getCSSFormFieldCellClass('date_limits_to')}">{$myobj->getFormFieldErrorTip('date_limits_to')}
						<label for="date_limits_to">
						<select name="date_limits_to" id="date_limits_to" tabindex="{smartyTabIndex}">
							{$myobj->generalPopulateArray($myobj->searchOption_arr, $myobj->getFormField('date_limits_to'))}
						</select>
						</label>
					  </td>
					</tr>
					<tr>
					<td><!----></td>
					 <td class="{$myobj->getCSSFormFieldCellClass('submitsearch')}" colspan="2">
					 <div class="clsSubmitLeft">
					<div class="clsSubmitRight">
					 <input type="submit" class="clsSubmitButton" name="adv_search" id="adv_search" value="{$LANG.search}" tabindex="{smartyTabIndex}" />
					 </div></div>
					  </td>
					</tr>
				  </table>
				</div>
			  </form>
			  </div>
               </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  </div>
  <!--end of rounded corners-->
  </div>
  {/if}
  {if $myobj->isShowPageBlock('form_show_topics')}
 	  {if $myobj->isResultsFound()}
		 
                 <div class="clsCommonTopAnalystRoundedCorner clsForumMainContainer " >
  <!--rounded corners-->
  <div class="clsShadedBg">
  <div class="lbtopanalyst">
    <div class="rbtopanalyst">
      <div class="bbtopanalyst">
        <div class="blctopanalyst">
          <div class="brctopanalyst">
            <div class="tbtopanalyst">
              <div class="tlctopanalyst">
                <div class="trctopanalyst">
 {if $CFG.admin.navigation.top}
		  	{include file='../general/pagination.tpl'}
		  {/if}
		  <table summary="{$LANG.forum_search_tbl_summary}" class="clsForumTbl">
			<tr>
			  <th>{$LANG.forum_search_topic}</th>
			  <th>{$LANG.forum_search_forum}</th>
			  <th>{$LANG.forum_search_by}</th>
			  <th class="clsLastPost">{$LANG.common_details}</th>
			</tr>
			{foreach key=fstkey item=fstvalue from=$myobj->form_show_topics_arr}
			<tr>
			  <td><p><span class="clsBold"><a href="{$fstvalue.forums_responses.url}">{$fstvalue.forums_responses.title}</a></span></p>
				<p>{$fstvalue.forums_responses2.title}</p></td>
			  <td class="clsLastCellPost">
			  	<p><a href="{$fstvalue.forums_topics.url}">{$fstvalue.forums.title}</a> </p>
				</td>
				<td class="clsClearfix">
				<div class="clsFloatleft">
			  {if isUserImageAllowed()}
					{$myobj->displayForumUserSmallImage($fstvalue.responseUserDetails)}
				{/if}
				</div>
				<div class="clsForumSearchName"><a href="{$fstvalue.user_my_answers.url}">{$fstvalue.user_my_answers.title}</a></div>
				</td>
				<td>
				<p class="clsSearchDate">{$LANG.forum_search_on}: {$fstvalue.record.date_add}</p>
				<p class="clsStartBy">{$LANG.common_total_responses}: <b>{$fstvalue.responseDetails.total_response}</b></p>
				<p class="clsStartBy">{$LANG.common_total_views}: <b>{$fstvalue.responseDetails.total_views}</b> </p>
				</td>

			</tr>
			{/foreach}
		  </table>
                    </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  </div>
  <!--end of rounded corners-->
</div>
		  {if $CFG.admin.navigation.bottom}
		  	{include file='../general/pagination.tpl'}
		  {/if}
	  {else}
		  <div id="selMsgAlert">
			<p>{$myobj->site_name_manual}</p>
        	<p class="clsMsgAdditionalText">{$LANG.forums_check_your_spelling}</p>
			<p class="clsMsgAdditionalText"><a href="{$myobj->advanced_search_action}">{$LANG.forum_search_click_advance_search}</a></p>
		  </div>
	  {/if}
  {/if}
</div>
