<div id="selforumsTopics" class="clsForums">
<div id="selMsgConfirm" class="clsPopupConfirmation" style="display:none;position:absolute;">
    <p id="msgConfirmText"></p>
    <form name="msgConfirmform" id="msgConfirmform" method="post" action="{$myobj->getCurrentUrl(true)}">
      <table summary="{$LANG.forumstopics_tbl_summary}">
        <tr>
          <td><input type="submit" class="clsPopSubmitButton" name="confirm" id="confirm" value="{$LANG.common_yes_option}" tabindex="{smartyTabIndex}" />
            &nbsp;
            <input type="button" class="clsPopCancelButton" name="no" id="no" value="{$LANG.common_no_option}" tabindex="{smartyTabIndex}" onClick="return hideAllBlocks()" />
            <input type="hidden" name="act" id="act" />
            <input type="hidden" name="topic_id" id="topic_id" />
            <input type="hidden" name="topic_userid" id="topic_userid" />
            {$myobj->populateHidden($myobj->confirmForm_hidden_arr)} </td>
        </tr>
      </table>
    </form>
  </div>
  <div class="clsClearfix clsProfilePageDetails">
    <div class="clsForumTitleHeading clsFloatleft">
      <h2 id="selForumTitle" class=""><a href="{$myobj->getUrl('forums')}">{$LANG.forums_alltitles}</a> - <span>{$myobj->LANG.page_title}</span></h2>
    </div>
	<div id="selQuickLinks" class="clsQuestionsLink clsFloatright ">
            <ul class="clsFloatright">
                <li class="{$myobj->displaytabs.allTopicsLI}"><span><a href="{$myobj->alltopics_link}">{$LANG.forumstopics_alltopics}</a></span></li>
                {if isMember()}
                	<li class="{$myobj->displaytabs.myTopicsLI}"><span><a href="{$myobj->mytopics_link}">{$LANG.forumstopics_mytopics}</a></span></li>
                	<li class=""><span><a href="{$myobj->forumstopiccreate_url}">{$LANG.forumstopics_post_topic}</a></span></li>
                {else}
	                <li class=""><span><a id="selMyTopic" href="{$myobj->login_mytopics_url}" onclick="{$myobj->getBrowser('selMyTopic')}">{$LANG.forumstopics_mytopics}</a></span></li>
                	<li class=""><span><a id="posttopic" href="{$myobj->login_url}" onclick="{$myobj->getBrowser('posttopic')}">{$LANG.forumstopics_post_topic}</a></span></li>
                {/if}
            </ul>
        </div>
  </div>

  {include file='../general/information.tpl'}


  {if $myobj->isShowPageBlock('form_show_topics')}



           <div class="clsForumMainContainer clsProfilePageDetails">
  <!--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="selFormTopics" id="selFormTopics" method="post" action="{$myobj->getCurrentUrl()}">
		   {if $myobj->isResultsFound()}
			  {if $CFG.admin.navigation.top}
				{include file='../general/pagination.tpl'}
			  {/if}
			<table summary="{$myobj->LANG.forumstopics_tbl_summary}"  class="clsForumTbl">
			  <tr>
				<th>{$myobj->LANG.forumstopics_topic_created}</th>
				<th>{$myobj->LANG.forumstopics_topic}</th>
				<th>{$myobj->LANG.common_total_responses}</th>
				<th>{$myobj->LANG.common_total_views}</th>
				<th class="clsNoBorders">{$myobj->LANG.forumstopics_last_responsed}</th>
			  </tr>
			  {foreach key=sftkey item=sftvalue from=$myobj->form_show_topics_arr}
			  <tr>
				<td class="clsClearfix">

				<div class="clsFloatleft">
				{if isUserImageAllowed()}
				  {$myobj->displayForumUserSmallImage($sftvalue.topicUserDetails)}
				  {/if}
				  </div>
				  <div class="clsFloatleft"><span class="clsFormUserName"><a href="{$sftvalue.myanswers_user.url}">{$sftvalue.myanswers_user.title}</a></span></div></td>
				<td>
					<p class="clsFormTitleHead"><a href="{$sftvalue.forum_responses.url}"> {$sftvalue.forum_responses.title} </a> </p>
					<div class="clsClearfix clsUserSubLinks">
						<div class="clsUserLinkName clsNoLeftBgPadngMrgn"> <a href="{$sftvalue.myanswers_user.url}">{$sftvalue.myanswers_user.title}</a></div>
						<div class="clsUserLinkDate">{$myobj->LANG.forumstopics_on} {$sftvalue.record.date_add} </div>
					 </div>
				  {if $sftvalue.record.rating_count and $sftvalue.record.rating_total} <p> <span class="clsBold"> {$myobj->LANG.forumstopics_average_rating}</span> {section name=pri1 loop=$sftvalue.average_rating start=1 step=1} <img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-ratehover.gif" /> {/section}

					{section name=pri2 loop=10 start=$sftvalue.average_rating step=1} <img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-rate.gif" /> {/section}
					 </p>{/if}
				  {if $sftvalue.record.user_id == $myobj->CFG.user.user_id and ($myobj->getFormField('my'))}
					 <p class="clsUnpublishedText">{$sftvalue.publish_details.content}</p>
					{/if}
				  {if $sftvalue.forum_details.forum_ownerid == $myobj->CFG.user.user_id and $sftvalue.record.topic_status == 'ToActivate'}
				  <p class="clsStartBy"><span class="clsBold"> <a href="javascript:void(0)" id="{$sftvalue.record.topic_id}" onClick="return Confirmation('selMsgConfirm', 'msgConfirmform', Array('act','topic_id', 'topic_userid', 'msgConfirmText'), Array('publish','{$sftvalue.record.topic_id}', '{$sftvalue.record.topic_user_id}', '{$myobj->LANG.forumstopics_publish_confirm_message}'), Array('value','value', 'value', 'innerHTML'), -100, -500);">{$myobj->LANG.forumstopics_publish}</a></span> </p>
				  {/if} </td>
				<td class="clsCenter"><p>{$sftvalue.record.total_response}</p></td>
				<td class="clsCenter"><p>{$sftvalue.record.total_views}</p></td>
				<td class="clsNoBorders">
				<div class="clsFloatleft clsClearfix">
				{if isUserImageAllowed()}
				  {$myobj->displayForumUserSmallImage($sftvalue.lastPostUserDetails, 'true', 'true', 'true')}
				  {/if}
				  </div>
				  <div class="clsFloatleft">
				  <span class="clsFormUserName"><a href="{$sftvalue.myanswers_last_post_user.url}">{$sftvalue.myanswers_last_post_user.title}</a></span>
				  </div>
				  </td>
			  </tr>
			  {/foreach}
			</table>
			{if $CFG.admin.navigation.bottom}
			{include file='../general/pagination.tpl'}
				  {/if}
			  {else}
				<div id="selMsgAlert">
					<p>{$myobj->LANG.forumstopics_no_topics}</p>
					{if isMember()}
						<p class="clsMsgAdditionalText"><a href="{$myobj->forumstopiccreate_url}">{$myobj->LANG.forumstopics_click_post_topic}</a></p>
					{else}
						<p class="clsMsgAdditionalText"><a id="topiccreate_alert" href="{$myobj->login_url}" onclick="{$myobj->getBrowser('topiccreate_alert')}">{$myobj->LANG.forumstopics_click_post_topic}</a></p>
					{/if}
				</div>
			  {/if}
		  </form>
                                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  </div>
  <!--end of rounded corners-->
</div>
  {/if}
</div>