{literal}
	<script language="javascript">
		function calcHeight(vars)
			{
	  			var tes = vars;
	  			var the_height = document.getElementById(tes).contentWindow.document.body.scrollHeight;
	  			document.getElementById(tes).height = the_height;
				document.getElementById(tes).contentWindow.document.body.style.backgroundColor = 'transparent';
			}
	</script>
{/literal}
<div id="selForumResponseListAll" class="clsForums">
  <div class="clsClearfix">
    <div class="clsForumTitleHeading clsFloatleft">
      <h2 id="selForumTitle">
	  	<a href="{$myobj->getForumsUrl('forums')}">{$LANG.forumlistall_title_index}</a>&nbsp;-&nbsp;
		<a class="clsSecondLink" href="{$myobj->myforums_url}"> {$myobj->myforums_title}</a>&nbsp;-&nbsp;
        <span>{$myobj->topic_title}</span>
	  </h2>
    </div>
	<div>

	</div>


  </div>
  <div id="selMsgConfirm" class="selMsgConfirm" style="display:none;position:absolute;">
    <p id="msgConfirmText"></p>
    <form name="msgConfirmform" id="msgConfirmform" method="post" action="{$myobj->getCurrentUrl('true')}">
      	<table summary="{$LANG.forumsresponses_confirm_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()" />
			</td></tr>
      	</table>
    	<input type="hidden" name="act" id="act" />
    	<input type="hidden" name="response_id" id="response_id" />
    	{$myobj->populateHidden($myobj->confirmForm_hidden_arr)}
    </form>
  </div>

  {include file='../general/information.tpl'}
  <div class="">
  <!--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">
                 <div class="clsForumResponseCommonRounded">
  {if $myobj->isShowPageBlock('form_forum_title')}

	  <div id="selAnswersLink">
		<div class="clsClearfix"><div class="clsFloatleft"><ul class="clsForumInnerLinks">
		  	{if $CFG.admin.subscribe.forums}
			  	<li id="selShowFavoriteText_Forum_{$myobj->getFormField('topic_id')}" class="clsForumSubscrib">
				  	<span>
				  	{if isMember()}
						{if $myobj->isFavoriteContent($myobj->getFormField('topic_id'), 'Forum')}
							<a href="{$myobj->getCurrentUrl()}" onClick="toggleFavorites('{$myobj->form_forum_title_arr.favorite_answers.url}', 'cid={$myobj->getFormField('topic_id')}&ctype=Forum', 'selShowFavoriteText_Forum_{$myobj->getFormField('topic_id')}'); return false;">{$LANG.forum_remove_favorites}</a>
						{else}
							<a href="{$myobj->getCurrentUrl()}" onClick="toggleFavorites('{$myobj->form_forum_title_arr.favorite_answers.url}', 'cid={$myobj->getFormField('topic_id')}&amp;ctype=Forum', 'selShowFavoriteText_Forum_{$myobj->getFormField('topic_id')}'); return false;">{$LANG.forum_add_to_favorites}</a>
						{/if}
				  	{else}
					 	<a id="addfav" href="{$myobj->form_forum_title_arr.login.url}" onclick="{$myobj->getBrowser('addfav')}">{$LANG.forum_add_to_favorites}</a>
				  	{/if}
				  	</span>
			  	</li>
		  	{/if}
		  	{if $CFG.admin.email_to_friend.allowed}
			  	{if isMember()}
				  	<li class="clsForumSendMail clsFormSeperator"> <span><a id="emailforums" href="{$myobj->form_forum_title_arr.email_to_friends.url}" onclick="{$myobj->getBrowser('emailforums')}">{$LANG.common_email_to_friends}</a></span> </li>
			  	{else}
				  	<li class="clsForumSendMail clsFormSeperator"> <span><a id="emailforums" href="{$myobj->form_forum_title_arr.login.url}" onclick="{$myobj->getBrowser('emailforums')}">{$LANG.common_email_to_friends}</a></span> </li>
			  	{/if}
		  	{/if}
			{if isMember() and ($myobj->forum_topic_details_arr.user_id!=$CFG.user.user_id)}
				{if $myobj->chkIsForumAbusedAlready($myobj->getFormField('topic_id'))}
				 	<li class="clsForumAbuse clsFormSeperator"><span><a class="clsNoLink" href="{$myobj->getCurrentUrl()}" onClick="return false;">{$LANG.forums_abused_already}</a></span></li>
				{else}
					<li class="clsForumAbuse clsFormSeperator"><span><a href="{$myobj->getCurrentUrl('true')}" onClick="abuseContent('abuseforum', '{$myobj->getFormField('topic_id')}', '{$myobj->form_forum_title_arr.anchor}', '{$LANG.confirm_abuse_forum_message}'); return false;">{$LANG.report_abuse}</a></span></li>
			 	{/if}
		  	{/if}
		</ul></div>
		<div class="clsFloatright">	{$myobj->showForumDetails('responselist')}</div></div>
		{if isMember() and ($myobj->forum_topic_details_arr.user_id!=$CFG.user.user_id)} <a href="#" id="{$myobj->form_forum_title_arr.anchor}"></a>
		<div id="selMsgAbuseConfirm" class="selMsgAbuseConfirm" style="display:none;position:absolute;">
			<form name="formAbuseConfirm" id="formAbuseConfirm" method="post" action="{$myobj->getCurrentUrl('true')}">
				<p id="confirmAbuseMessage"></p>
				<table>
					<tr><td>
						<p>{$LANG.common_reason}</p>
				  		<p><textarea name="reason" id="reason" rows="5" tabindex="{smartyTabIndex}">{$myobj->getFormField('reason')}</textarea></p>
				  		<p id="validReason"></p>
					</td></tr>
			  		<tr><td>
					  	<input type="submit" class="clsPopSubmitButton" name="confirm_action" id="confirm_action" value="{$LANG.common_yes_option}" tabindex="{smartyTabIndex}" onClick="return chkIsAbuseReasonExists();" />
				  		&nbsp;
				  		<input type="button" class="clsPopCancelButton" name="cancel" id="cancel" value="{$LANG.common_no_option}" tabindex="{smartyTabIndex}" onClick="removeReasonErrors(); return hideAllBlocks();" />
					</td></tr>
				</table>
				<input type="hidden" name="content_id" id="content_id" value="" />
		  	</form>
		</div>
		{/if}
	 </div>
  {/if}
{if $myobj->isShowPageBlock('form_show_responses')}

	<div class="clsClearfix clsTopicdisplay">
	{if $myobj->forum_topic_details_arr}
		<div class="clsUsersQuestion clsFloatleft">
			<p class="clsForumNameDisplay">{$myobj->forum_topic_details_arr.forum_topic}</p>
			<div class="clsClearfix clsUserSubLinks">
				<div class="clsUserLinkBy clsNoLeftBgPadngMrgn">{$LANG.forumsresponses_forum_topic_by}</div>
				<div class="clsUserLinkImage">
						{if isUserImageAllowed()}
							{$myobj->displayProfileImage($myobj->forum_topic_details_arr.user_details, 'tiny')}
						{/if}
				</div>
				<div class="clsUserLinkName clsNoLeftBgPadngMrgn"><a href="{$myobj->form_show_responses_arr.user_myanswers.url}">{$myobj->forum_topic_details_arr.display_name}</a></div>
				 <div class="clsUserLinkDate">{$LANG.common_on}&nbsp;{$myobj->forum_topic_details_arr.date_added}</div>
			</div>
		</div>
		<div class="clsAnswerCount">
			<p><span>{$myobj->forum_topic_details_arr.total_response}</span>{$myobj->forum_topic_details_arr.response_text}</p>
		</div>
	{/if}
	</div>
	<div class="clsClearfix clsResponseHead">
		<div class="clsFloatleft">
			<h2 id="selForumTitle" class="clsFloatLeft">{$LANG.forumsresponses_responses}</h2>
		</div>
		<div class="clsFloatright">
		{if $CFG.admin.navigation.top}
			{include file='../general/pagination.tpl'}
		{/if}
		</div>
	</div>
	<form name="selFormResponse" id="selFormResponse" method="post" action="{$myobj->getCurrentUrl()}">
		{if $myobj->isResultsFound()}
		<table border="0" cellspacing="0" summary="{$LANG.forumsresponses_tbl_summary}" class="clsDataTable">

			{foreach key=sfrkey item=sfrvalue from=$myobj->form_show_responses_arr.showForumResponse}
			  	<tr>
					<td><div class="clsForumComment">
						<!--rounded corners-->
						<div class="">
							<div id="responsemore{$sfrvalue.responseId}" class="clsUserThumbDetails clsClearfix {$sfrvalue.clsNoBorder}">
								<div class="clsFloatleft clsMarginRight10">
								{if isUserImageAllowed()}
									{$myobj->displayProfileImage($sfrvalue.userDetails, 'small')}
								{/if}
								</div>
								<div class="clsUserDetails ">
									<div class="clsClearfix clsUserSubLinks">
										<div class="clsUserUploaded clsNoLeftBgPadngMrgn clsMarginLeft5">
											{if chkVideoModuleAllowed('forumresponse') and $sfrvalue.record.video_id}
					                        	<a id="{$sfrvalue.ans_view_video.on_click}" href="{$sfrvalue.ans_view_video.url}" onClick="{$myobj->getBrowser($sfrvalue.ans_view_video.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusvideo.gif" alt="{$LANG.questions_video_available}" title="{$LANG.questions_video_available}" /></a>
					                    	{/if}
					                    	{if chkAudioModuleAllowed('forumresponse') and $sfrvalue.record.audio_id}
					                        	<a id="{$sfrvalue.ans_view_audio.on_click}" href="{$sfrvalue.ans_view_audio.url}" onClick="{$myobj->getBrowser($sfrvalue.ans_view_audio.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusaudio.gif" alt="{$LANG.common_audio_available}" title="{$LANG.common_audio_available}" /></a>
					                    	{/if}
					                    	{if chkExternalVideoModuleAllowed('forumresponse') and $sfrvalue.record.external_video_id}
					                        	<a id="{$sfrvalue.ext_ans_view_video.on_click}" href="{$sfrvalue.ext_ans_view_video.url}" onClick="{$myobj->getBrowser($sfrvalue.ext_ans_view_video.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-externalvideo.gif" alt="{$LANG.external_video_available}" title="{$LANG.external_video_available}" /></a>
					                    	{/if}
					                    	{if chkExternalAudioModuleAllowed('forumresponse') and $sfrvalue.record.external_audio_id}
					                        	<a id="{$sfrvalue.ext_ans_view_audio.on_click}" href="{$sfrvalue.ext_ans_view_audio.url}" onClick="{$myobj->getBrowser($sfrvalue.ext_ans_view_audio.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-externalaudio.gif" alt="{$LANG.external_video_available}" title="{$LANG.external_video_available}" /></a>
					                    	{/if}
										</div>
										<div class="clsUserLinkName {$sfrvalue.separator_class}">
											<a href="{$sfrvalue.user_myanswers.url}">{$sfrvalue.user_myanswers.title}</a>
										</div>
										<div class="clsUserLinkDate">
											{$LANG.common_on} &nbsp;{$sfrvalue.record.date_added}
										</div>
										{if $sfrvalue.record.response_user_id == $CFG.user.user_id}
											<div class="clsAnsEdit"><a href="{$sfrvalue.forums_response_create.url}">{$LANG.common_edit}</a></div>
											<div class="clsAnsEdit"><a href="#" id="{$sfrvalue.anchor}" onClick="return Confirmation('selMsgConfirm', 'msgConfirmform', Array('act','response_id', 'msgConfirmText'), Array('delete','{$sfrvalue.record.response_id}', '{$LANG.forumsresponses_confirm_message}'), Array('value','value', 'innerHTML'));">{$LANG.common_delete}</a></div>
										{/if}
									</div>

								<div class="clsFckoverwrite">
									<iframe src="{$CFG.site.url}{$CFG.admin.index.anova_module}/iframe.php?fid={$sfrvalue.responseId}" id="fck{$sfrvalue.responseId}" height="25" frameborder="0" allowtransparency="true" onLoad="calcHeight('fck{$sfrvalue.responseId}');" scrolling="no">
									</iframe>
								</div>
								{if $sfrvalue.record.response_status=='ToActivate' and $CFG.user.user_id == $myobj->forum_topic_details_arr.user_id}
									&nbsp;&nbsp;[<a href="#" id="pub{$sfrvalue.record.response_id}" onClick="return Confirmation('selMsgConfirm', 'msgConfirmform', Array('act','response_id', 'msgConfirmText'), Array('publish','{$sfrvalue.record.response_id}', '{$LANG.forumsresponses_publish_confirm_message}'), Array('value','value', 'innerHTML'));">{$LANG.common_publish}</a>]
								{/if}
								</div>
							</div>
						</div>
						<!--end of rounded corners-->
				  	</div></td>
				</tr>
			{/foreach}
		{else}
			<tr>
				<td colspan="2">
					<div id="selMsgAlert">
						<p>{$LANG.forumsresponses_no_responses}</p>
						<p class="clsMsgAdditionalText"><a href="{$myobj->form_show_responses_arr.forums_response_create.url}">{$LANG.forumsresponses_click_post_response}</a></p>
					</div>
				</td>
			</tr>
		{/if}
		</table>
	</form>
	  	{if $CFG.admin.navigation.bottom}
		  	{if $myobj->isPagingRequired()}
				<div class="forumBottomPage">
					{include file='../general/pagination.tpl'}
				</div>
			{/if}
	  	{/if}
{/if}
<div class="clsClearfix clsForumBottomLink">
<div class="clsFloatleft">
	{if $CFG.admin.forums.addthis}
  		{$myobj->addThisOption()}
	{/if}
</div>
<div class="clsFloatright">
{if $myobj->isShowPageBlock('form_forum_title') and $myobj->forum_topic_details_arr.topic_status=='Yes'}
  	<div id="selGroupForumPost"><div class="clsForumPost">
		<p class="clsAlignRight" id="post">
	  	 	{if isMember()}
		 		<a href="{$myobj->form_forum_title_arr.forum_response_create.url}">{$LANG.forumslinks_post_response}</a>
		 	{else}
		    	<a id="postresponse_bottom" href="{$myobj->form_forum_title_arr.login_forum_response_create.url}" onclick="{$myobj->getBrowser('postresponse_bottom')}">{$LANG.forumslinks_post_response}</a>
		 	{/if}
		</p>
	</div></div>
{/if}
</div>
</div>
  </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  </div>
  <!--end of rounded corners-->
</div>
 </div>
</div>
