<div id="selForumResponseListAll" class="clsForums">
  <h2 class="clsForumResponseTitle"><span>
		<a href="forums.php">{$LANG.forumlistall_title_index}</a>
		&nbsp;-&nbsp;
		<a href="forumsTopics.php?forum_id={$myobj->getFormField('forum_id')}">
			{$myobj->forum_details_arr.forum_title}</a>
		&nbsp;-&nbsp;
		{$myobj->forum_topic_manual}
	</span></h2>
	<div id="selMsgConfirm" class="clsPopupConfirmation" style="display:none;position:absolute;">
		<p id="confirmMessage"></p>
		<form name="msgConfirmform" id="msgConfirmform" method="post" action="{$myobj->getCurrentUrl()}" autocomplete="off">
			<table summary="{$LANG.forumsresponses_confirm_tbl_summary}">
				<tr>
					<td>
						{$myobj->populateHidden($myobj->hidden_arr)}
						<input type="submit" class="clsSubmitButton" name="forums_confirm" id="forums_confirm" tabindex="{smartyTabIndex}" value="{$LANG.common_confirm}" />
						&nbsp;
						<input type="button" class="clsCancelButton" name="forums_cancel" id="forums_cancel" tabindex="{smartyTabIndex}" value="{$LANG.common_cancel}"  onClick="return hideAllBlocks('selFormShowResponces');" />
						<input type="hidden" name="response_ids" id="response_ids" />
						<input type="hidden" name="action" id="action" />
					</td>
				</tr>
			</table>
		</form>
  	</div>
    <div id="selLeftNavigation">
    	{include file='information.tpl'}
		{if $myobj->isShowPageBlock('form_forum_title')}
			<div id="selShowGroupTitle">
				 <div class="clsForumBackIndexTopic"> <p class="clsForumBackIndex" id="selBackToForum">
					<a href="forumsTopics.php?forum_id={$myobj->getFormField('forum_id')}">{$LANG.forumlistall_back_topic}</a>
				</p>
				<p class="clsAlignRight clsForumPostTopic"" id="post"><a href="forumsResponseCreate.php?forum_id={$myobj->getFormField('forum_id')}&topic_id={$myobj->getFormField('topic_id')}"> {$LANG.forumsresponses_post_response} </a></p></div>
			</div>
		{/if}
		{if $myobj->isShowPageBlock('form_search')}
			<div id="selShowSearch">
				<form name="form_search" id="selFormSearch" method="post" action="{$CFG.site.relative_url}forumsResponses.php?forum_id={$myobj->getFormField('forum_id')}&topic_id={$myobj->getFormField('topic_id')}">
					<table cellspacing="0" summary="{$LANG.responsesearch_tbl_summary}">
						<tr>
							<td class="{$myobj->getCSSFormLabelCellClass('srch_response')}"><label for="srch_response">{$LANG.common_total_response}</label></td>
							<td class="{$myobj->getCSSFormFieldCellClass('srch_response')}"><input type="text" class="clsTextBox" name="srch_response" id="srch_response" value="{$myobj->getFormField('srch_response')}" tabindex="{smartyTabIndex}"/></td>
						</tr>
						<tr>
							<td class="{$myobj->getCSSFormLabelCellClass('srch_uname')}"><label for="srch_uname">{$LANG.login_user_name}</label></td>
							<td class="{$myobj->getCSSFormFieldCellClass('srch_uname')}"><input type="text" class="clsTextBox" name="srch_uname" id="srch_uname" value="{$myobj->getFormField('srch_uname')}" tabindex="{smartyTabIndex}"/></td>
						</tr>
						<tr>
							<td class="{$myobj->getCSSFormLabelCellClass('srch_date_from')}"><label for="srch_date">{$LANG.responsesearch_search_date_created_from}</label></td>
							<td class="{$myobj->getCSSFormFieldCellClass('srch_date_from')}">
								<select name="srch_date" id="srch_date" tabindex="{smartyTabIndex}">
									<option value="">{$LANG.responsesearch_search_date}</option>
									{$myobj->populateBWNumbers(1, 31, $myobj->getFormField('srch_date'))}
								</select>
								<select name="srch_month" id="srch_month" tabindex="{smartyTabIndex}">
									<option value="">{$LANG.common_month}</option>
									{$myobj->populateMonthsList($myobj->getFormField('srch_month'))}
								</select>
								<select name="srch_year" id="srch_year" tabindex="{smartyTabIndex}">
									<option value="">{$LANG.common_year}</option>
									{$myobj->populateBWNumbers(1920, $myobj->current_year, $myobj->getFormField('srch_year'))}
								</select>
								{$myobj->getFormFieldElementErrorTip('srch_date_from')}
							</td>
						</tr>
						<tr>
							<td class="{$myobj->getCSSFormLabelCellClass('srch_date_to')}"><label for="srch_date">{$LANG.responsesearch_search_date_created_to}</label></td>
							<td class="{$myobj->getCSSFormFieldCellClass('srch_date_to')}">
								<select name="srch_todate" id="srch_todate" tabindex="{smartyTabIndex}">
									<option value="">{$LANG.responsesearch_search_date}</option>
									{$myobj->populateBWNumbers(1, 31, $myobj->getFormField('srch_todate'))}
								</select>
								<select name="srch_tomonth" id="srch_tomonth" tabindex="{smartyTabIndex}">
									<option value="">{$LANG.common_month}</option>
									{$myobj->populateMonthsList($myobj->getFormField('srch_tomonth'))}
								</select>
								<select name="srch_toyear" id="srch_toyear" tabindex="{smartyTabIndex}">
									<option value="">{$LANG.common_year}</option>
									{$myobj->populateBWNumbers(1920, $myobj->current_year, $myobj->getFormField('srch_toyear'))}
								</select>
								{$myobj->getFormFieldElementErrorTip('srch_date_to')}
							</td>
						</tr>
						<tr>
							<td class="{$myobj->getCSSFormFieldCellClass('responsesearch_search')}">&nbsp;</td>
							<td class="{$myobj->getCSSFormFieldCellClass('responsesearch_search')}"><input type="submit" class="clsSubmitButton" value="{$LANG.search}" id="responsesearch_search" name="responsesearch_search" tabindex="{smartyTabIndex}"/></td>
						</tr>
					</table>
					<input type="hidden" name="forum_id" value="{$myobj->getFormField('forum_id')}" />
					<input type="hidden" name="topic_id" value="{$myobj->getFormField('topic_id')}" />
				  </form>
			</div>
   		{/if}
		<form name="selFormShowResponces" id="selFormShowResponces" method="post" action="{$myobj->getCurrentUrl()}" autocomplete="off">
			{if $CFG.admin.navigation.top}
				{include file='pagination.tpl'}
			{/if}
			{if $myobj->isShowPageBlock('form_show_responses')}
				<table cellspacing="0" summary="{$LANG.forumsresponses_tbl_summary}" class="clsDataTable">
					   {if $myobj->forum_topic_details_arr}
							<tr>
							  <th class="{$myobj->getCSSFormFieldCellClass('action')}" colspan="5">
								<p>{$LANG.forumsresponses_forum_topic_by}&nbsp;

										{$myobj->forum_topic_details_arr.display_name}

								{$LANG.forumsresponses_started_on} {$myobj->forum_topic_details_arr.date_added} </p></th>
							</tr>
							<tr>
								<th><input type="checkbox" class="clsCheckRadio" id="checkall" onclick="selectAll(this.form)" name="checkall" tabindex="{smartyTabIndex}" /></th>
								<th>{$LANG.forums_response_postedby}</th>
								<th>{$LANG.common_date}</th>
								<th>{$LANG.common_display_active}</th>
								<th>{$LANG.common_total_response}</th>
							</tr>
						{/if}
						{if $myobj->isResultsFound()}
							{foreach key=sfrKey item=sfrValue from=$myobj->form_show_responses.showForumResponse_arr}
								<tr>
									<td class="clsAlignCenter"><input type="checkbox" class="clsCheckRadio" name="response_ids[]" onclick="disableHeading('selFormShowResponces');" value="{$sfrValue.record.response_id}" tabindex="{smartyTabIndex}" {$sfrValue.checkbox_checked}/></td>
									<td>
										{if isUserImageAllowed()}
											{*$myobj->displayForumUserSmallImage($sfrValue.userDetails, false)*}
										{/if}
										<p>{$sfrValue.userdetails_name_manual}</p>
									</td>
									<td>
										{$sfrValue.record.date_added}
									</td>
									<td>
										{if $sfrValue.record.response_status =='Yes'}
											{$LANG.common_yes_option}
										{elseif $sfrValue.record.response_status =='No'}
											{$LANG.common_no_option}
										{else}
											{$LANG.common_unpublished}
										{/if}
									</td>
									<td>
										<p>
											{$sfrValue.row_forum_response_manual}
										</p>
										<p>
										{if chkVideoModuleAllowed('blog') and ($sfrValue.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('blog') and ($sfrValue.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('blog') and ($sfrValue.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('blog') and ($sfrValue.external_video_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}
				                    	</p>
										<p><a href="forumsResponseCreate.php?forum_id={$myobj->getFormField('forum_id')}&topic_id={$myobj->getFormField('topic_id')}&amp;response_id={$sfrValue.record.response_id}">{$LANG.common_edit}</a></p>
									</td>
								</tr>
							{/foreach}
							<tr>
								<td colspan="5" class="clsButtonAlignment {$myobj->getCSSFormFieldCellClass('action')}">
									&nbsp;&nbsp;
									<select name="action" id="action" tabindex="{smartyTabIndex}">
										<option value="">{$LANG.common_select_action}</option>
									   {$myobj->generalPopulateArray($myobj->form_show_responses.action_arr, $myobj->getFormField('action'))}
									</select>
									<a href="#" id="{$myobj->form_show_responses.anchor}"></a>
									<input type="button" class="clsSubmitButton" name="action_button" id="action_button" value="{$LANG.common_submit}" onClick="getMultiCheckBoxValue('selFormShowResponces', 'checkall', '{$LANG.forums_err_tip_select_responses}');if(multiCheckValue!='') getAction()" />
									&nbsp;&nbsp;
								</td>
							</tr>
						{else}
							<tr>
							  <td colspan="5">
								<div id="selMsgAlert">
									{$LANG.forumsresponses_no_responses}
								</div>
							  </td>
							</tr>
						{/if}
				</table>
				{$myobj->populateHidden($myobj->form_show_responses.hidden_arr)}
				{if $CFG.admin.navigation.bottom}
					{include file='pagination.tpl'}
				{/if}
			</form>
		{/if}
	</div>
</div>