<div id="selListAll">
	<h2 class="clsOpenQuestion">{$myobj->title}</h2>
        <div id="selMisNavLinks">
        <ul>
            <li><a href="{$CFG.site.relative_url}manageAnswers.php">{$LANG.back_to_questions}</a></li>
        </ul>
	</div>

{include file='information.tpl'}

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

    <div id="selMsgConfirm" class="selMsgConfirm" style="display:none;position:absolute;">
    <h3 id="confirmation_msg"></h3>
    <form name="deleteForm" id="deleteForm" method="post" action="viewAnswers.php?qid={$myobj->getFormField('qid')}" autocomplete="off">
        <table >
            <tr>
                <td>
                    <input type="submit" class="clsSubmitButton" name="delete_add" id="delete_add" value="{$LANG.common_yes_option}" tabindex="{smartyTabIndex}" /> &nbsp;
                    <input type="button" class="clsCancelButton" name="cancel" id="cancel" value="{$LANG.common_no_option}" tabindex="{smartyTabIndex}" onClick="return hideAllBlocks();" />
                    <input type="hidden" name="aid" id="aid" />
                    <input type="hidden" name="act" id="act" />
					<input type="hidden" name="comment_id" id="comment_id" />
                    {$myobj->populateHidden($myobj->form_question.delete_hidden_arr)}
                </td>
            </tr>
        </table>
    </form>
    </div>
    <div id="selDelAttachconfirm" class="clsPopupConfirmation" style="display:none;position:absolute;">
            <p id="msgAttachConfirmText"></p>
            <form name="msgAttachConfirmform" id="msgAttachConfirmform" method="post" action="{$CFG.site.relative_url}viewAnswers.php?qid={$myobj->getFormField('qid')}">
                <table summary="{$LANG.confirm_tbl_summary}">
                    <tr>
                        <td>
                            <p id="brsBtn" {$myobj->form_question.attach_style}><input type="button" class="clsSubmitButton" name="confirm" id="confirm" onclick="deleteAnswerAttachments('{$CFG.site.relative_url}viewAnswers.php?qid={$myobj->getFormField('qid')}', '&amp;ajax_page=true&amp;deletemoreattachments=1'); return hideAllBlocks();" value="{$LANG.common_yes_option}" tabindex="{smartyTabIndex}" /> &nbsp;
                                <input type="button" class="clsCancelButton" name="no" id="no" value="{$LANG.common_no_option}" tabindex="{smartyTabIndex}" onClick="return hideAllBlocks();" /></p>
                            <input type="hidden" name="attach_id" id="attach_id" />
                            <input type="hidden" name="attach_content_id" id="attach_content_id" />
                            <input type="hidden" name="attach_name" id="attach_name" />
                            <input type="hidden" name="act" id="act" />
                            {$myobj->populateHidden($myobj->form_question.attach_hidden_arr)}
                        </td>
                    </tr>
                </table>
            </form>
      </div>

{/if}

{if $myobj->isShowPageBlock('form_confirm')}
		  <div id="selMsgConfirm">
		    <form name="selFormConfirm" id="selFormConfirm" method="post" action="{$CFG.site.relative_url}viewAnswers.php?qid={$myobj->getFormField('qid')}">
				<p>{$myobj->confirm_message}</p>
		      <table summary="{$LANG.confirm_tbl_summary}" border="1">
		        <tr>
		          <td>
		            <input type="submit" class="clsSubmitButton" name="{$myobj->action}" id="{$myobj->action}" tabindex="{smartyTabIndex}" value="{$LANG.common_yes_option}" />
				  </td>
				  <td>
				  	<input type="submit" class="clsCancelButton" name="cancel" id="cancel" tabindex="{smartyTabIndex}" value="{$LANG.common_no_option}"  />
		          </td>
		        </tr>
			  </table>
			  {$myobj->populateHidden($myobj->hidden_array)}
			</form>
		  </div>
{/if}


{if $myobj->isShowPageBlock('form_search')}
    <form name="selQuestionSearchs" id="selQuestionSearch" method="post" action="{$CFG.site.relative_url}manageAnswers.php" autocomplete="off">
		    <table summary="{$LANG.answers_tbl_summary}">
		      <tr>
		        <td class="{$myobj->getCSSFormLabelCellClass('search_name')}"><label for="search_name">{$LANG.search}</label></td>
		        <td class="{$myobj->getCSSFormFieldCellClass('search_name')}">
		          <input type="text" class="clsTextBox" name="search_name" id="search_name" tabindex="{smartyTabIndex}" value="{$myobj->getFormField('search_name')}" />
                  {$myobj->getFormFieldElementErrorTip('search_name')}
                 </td>
		      </tr>
		      <tr>
		        <td class="{$myobj->getCSSFormLabelCellClass('search_cat')}"><label for="search_cat">{$LANG.answers_search_cat}</label></td>
		        <td class="{$myobj->getCSSFormFieldCellClass('search_cat')}">
		          <select name="search_cat" id="search_cat" tabindex="{smartyTabIndex}">
                  	{$myobj->generalPopulateArray($myobj->search_cat_arr, $myobj->getFormField('search_cat'))}
		          </select>
                  {$myobj->getFormFieldElementErrorTip('search_cat')}
		        </td>
		      </tr>
		      <tr>
		        <td colspan="2"  class="{$myobj->getCSSFormFieldCellClass('submit')}"><input type="submit" class="clsSubmitButton" name="go" tabindex="{smartyTabIndex}" value="{$LANG.common_go}" /></td>
		      </tr>
		    </table>
		</form>
{/if}

{if $myobj->isShowPageBlock('form_question')}
	{if $myobj->form_question.displayQuestionDetails_arr}   {*if $myobj->question_details*}

				<div id="selQuickLinks">
				{$myobj->showAnotherQuestion()}
				<form name="questionDetails" id="questionDetails" method="post" action="{$myobj->getCurrentUrl()}" autocomplete="off">
				<table summary="display question details" id="selAuthorTbl">
					<tr>
						<td class="clsForumTitle">
						<p class="clsBold"><strong>{$myobj->form_question.displayQuestionDetails_arr.question_manual}</strong></p>
						{if chkIsVideoAllowed('question') AND $myobj->question_details.video_id}
							<span><a id="{$myobj->form_question.displayQuestionDetails_arr.ans_view_video.on_click}" href="{$myobj->form_question.displayQuestionDetails_arr.ans_view_video.url}" onClick="{$myobj->getBrowser($myobj->form_question.displayQuestionDetails_arr.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}" /></a></span>
						{/if}
						{if chkIsAudioAllowed('question') AND $myobj->question_details.audio_id}
							<span><a id="{$myobj->form_question.displayQuestionDetails_arr.ans_view_audio.on_click}" href="{$myobj->form_question.displayQuestionDetails_arr.ans_view_audio.url}" onClick="{$myobj->getBrowser($myobj->form_question.displayQuestionDetails_arr.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}" /></a></span>
						{/if}
						{if chkExternalVideoAllowed('answer') AND $myobj->question_details.external_video_id}
	                       <span><a id="{$myobj->form_question.displayQuestionDetails_arr.ans_view_ext_video.on_click}" href="{$myobj->form_question.displayQuestionDetails_arr.ans_view_ext_video.url}" onClick="{$myobj->getBrowser($myobj->form_question.displayQuestionDetails_arr.ans_view_ext_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></span>
                        {/if}
                        {if chkExternalAudioAllowed('answer') AND $myobj->question_details.external_audio_id}
                           <span><a id="{$myobj->form_question.displayQuestionDetails_arr.ans_view_ext_audio.on_click}" href="{$myobj->form_question.displayQuestionDetails_arr.ans_view_ext_audio.url}" onClick="{$myobj->getBrowser($myobj->form_question.displayQuestionDetails_arr.ans_view_ext_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></span>
						{/if}

						<p class="clsDesc">{$myobj->form_question.displayQuestionDetails_arr.description_manual}</p>
						<div>
							{$myobj->form_question.displayQuestionDetails_arr.showCategoryNameInAdmin}
							<span class="clsForumAuthor">{$LANG.common_question_asked_by} <a href="{$CFG.site.url}admin/viewMembers.php?uid={$myobj->question_details.user_id}">{$myobj->question_details.asked_by}</a></span>
							&nbsp;-&nbsp;
							<span>{$myobj->question_details.total_answer}&nbsp;{$LANG.answers}</span>
							&nbsp;-&nbsp;
							{if $CFG.admin.questions_module.voting}
							<span>{$LANG.helpful}:<span class="clsNoBorder clsBold">{$myobj->question_details.votes}</span></span>
							&nbsp;-&nbsp;
							{/if}
							<span>
							{if $myobj->question_details.date_asked}
								{$myobj->getTimeDiffernceFormat($myobj->question_details.date_asked)}
                            {/if}

							</span>
							&nbsp;-&nbsp;
							<span><a href="manageAnswers.php?qid={$myobj->question_details.ques_id}&amp;f=v">{$LANG.common_edit}</a></span>
							&nbsp;-&nbsp;
							<span><a id="anchorDelQuestion"  href="#" title="{$LANG.common_delete}" onClick="return Confirmation('selMsgConfirm', 'deleteForm', Array('act','aid', 'confirmation_msg'), Array('deleteQuestion','{$myobj->form_question.displayQuestionDetails_arr.qid}', '{$LANG.confirm_deletequestion_message}'), Array('value','value', 'innerHTML'));">{$LANG.common_delete}</a></span>
							{if chkIsVideoAllowed('answer') AND $myobj->question_details.video_id}
								&nbsp;-&nbsp;
								<a id="anchorDeleteQuestionVideo"  href="#" title="{$LANG.delete_video}" onClick="return Confirmation('selMsgConfirm', 'deleteForm', Array('act','aid', 'confirmation_msg'), Array('deleteQuestionVideo','{$myobj->question_details.video_id}', '{$LANG.confirm_delete_video_message}'), Array('value','value', 'innerHTML'));">{$LANG.delete_video}</a>
							{/if}
							{if chkIsAudioAllowed('answer') AND $myobj->question_details.audio_id}
								&nbsp;-&nbsp;
								<a id="anchorDeleteQuestionAudio"  href="#" title="{$LANG.delete_audio}" onClick="return Confirmation('selMsgConfirm', 'deleteForm', Array('act','aid', 'confirmation_msg'), Array('deleteQuestionAudio','{$myobj->question_details.audio_id}', '{$LANG.confirm_delete_audio_message}'), Array('value','value', 'innerHTML'));">{$LANG.delete_audio}</a>
							{/if}
							 {if chkExternalVideoAllowed('answer') AND $myobj->question_details.external_video_id}
								&nbsp;-&nbsp;
								<a id="anchorDeleteExternalVideo"  href="#" title="{$LANG.delete_external_video}" onClick="return Confirmation('selMsgConfirm', 'deleteForm', Array('act','aid', 'confirmation_msg'), Array('deleteQuestion_ExtVideo','{$myobj->question_details.external_video_id}', '{$LANG.delete_external_video_confirmation}'), Array('value','value', 'innerHTML'));">{$LANG.delete_external_video}</a>
							{/if}
							{if chkExternalAudioAllowed('answer') AND $myobj->question_details.external_audio_id}
								&nbsp;-&nbsp;
								<a id="anchorDeleteExternalAudio"  href="#" title="{$LANG.delete_external_audio}" onClick="return Confirmation('selMsgConfirm', 'deleteForm', Array('act','aid', 'confirmation_msg'), Array('deleteQuestion_ExtAudio','{$myobj->question_details.external_audio_id}', '{$LANG.delete_external_audio_confirmation}'), Array('value','value', 'innerHTML'));">{$LANG.delete_external_audio}</a>
							{/if}
							{if $myobj->question_details.is_open}
                                <ul>
                                	<li>
										<a id="anchorResolveQuestion"  href="#" title="{$LANG.answers_resolve_question}" onClick="return Confirmation('selMsgConfirm', 'deleteForm', Array('act','qid', 'confirmation_msg'), Array('resolve','{$myobj->form_question.displayQuestionDetails_arr.qid}', '{$LANG.confirm_resolve_message}'), Array('value','value', 'innerHTML'));">{$LANG.answers_resolve_question}</a>
									</li>
								</ul>
							{/if}
						  <!--start-->
							   <div id="allAttachments">
								<div  class="clsReplies">
									{if isset($myobj->form_question.displayQuestionDetails_arr.fetchMoreAttachments.row)}
										<div class="clsViewReplies">
                                            {foreach key=fmaKey item=fmaValue from=$myobj->form_question.displayQuestionDetails_arr.fetchMoreAttachments.row}
                                                <div class="clsBlogReply">
                                                    <ul class="clsBlogDisplayLinks">
                                                        <li class="clsLastBlogInfo"></li>
                                                        <li id="attach_{$fmaValue.record.attachment_id}">
                                                            <p class="">
															<div class="clsThumbImageOuter cls90PXthumbImage">
															 <div class="clsrThumbImageMiddle">
																<div class="clsThumbImageInner">
																<a id="{$fmaValue.img_id}" href="{$fmaValue.attachment_path}" onclick="return displayImageGallery('{$fmaValue.img_id}')" title="{$fmaValue.attachment_name}" ><img src="{$fmaValue.image_path}" /></a>
															</div></div></div><img src="{$fmaValue.image_large_path}" style="display: none;" />
                                                            <a href="#" id="{$fmaValue.anchor}" onClick="return Confirmation('selDelAttachconfirm', 'msgAttachConfirmform', Array('act', 'attach_id', 'attach_content_id', 'attach_name', 'msgAttachConfirmText'), Array('deletemoreattachments', '{$fmaValue.record.attachment_id}', '{$fmaValue.record.content_id}', '{$fmaValue.attachment_file_name}', '{$LANG.confirm_remove_info_message}'), Array('value', 'value', 'value', 'value', 'innerHTML'));" class="clsAttachmentRemove">{$LANG.common_remove_attachments}</a></p>
                                                        </li>
                                                    </ul>
                                                </div>
                                            {/foreach}

                                        </div>
									{/if}
								</div>
							  </div>
						       <!--end-->
						</div>
						</td>
					</tr>

                    {if $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr}

                        <tr>
                            <td class="clsForumTitle">
                            <div class="clsAnswers">
                                <p><strong>{$LANG.best_answer}</strong></p>
                                {if chkIsVideoAllowed('answer') AND $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.record.video_id}
                                    <span><a id="{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.ans_view_video.on_click}" href="{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.ans_view_video.url}" onClick="{$myobj->getBrowser($myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.ans_view_video.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-video.png" alt="{$LANG.questions_video_available}" /></a></span>
                                {/if}
                                {if chkIsAudioAllowed('answer') AND $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.record.audio_id}
                                    <span><a id="{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.ans_view_audio.on_click}" href="{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.ans_view_audio.url}" onClick="{$myobj->getBrowser($myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.ans_view_audio.on_click)}" ><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-audio.png" alt="{$LANG.common_audio_available}" /></a></span>
                                {/if}
                                {if chkExternalVideoAllowed('answer') AND $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.record.external_video_id}
                                    <span><a id="{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.ans_view_ext_video.on_click}" href="{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.ans_view_ext_video.url}" onClick="{$myobj->getBrowser($myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.ans_view_ext_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></span>
                                {/if}
                                {if chkExternalAudioAllowed('answer') AND $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.record.external_audio_id}
                                    <span><a id="{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.ans_view_ext_audio.on_click}" href="{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.ans_view_ext_audio.url}" onClick="{$myobj->getBrowser($myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.ans_view_ext_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></span>
                                {/if}
                                <p>{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.row_answer_manual}</p>
                                {if $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.record.source}
                                    <p>{$LANG.answers_sources}:</p>
                                    <p>{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.row_source_manual}</p>
                                {/if}
                                <div>
                                	{if $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.facebook_user_details}
	                                	<div class="clsUserLinkName clsNoLeftBgPadngMrgn"><a href="{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.facebook_user_details.profile_url}">{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.facebook_user_details.name}</a></div>
	                                	<div class="clsUserLinkName clsNoLeftBgPadngMrgn"> {$LANG.common_via} <a href="http://www.facebook.com/">{$LANG.common_facebook}</a></div>
                                	{else}
                                    	<span class="clsForumAuthor">{$LANG.common_question_answered_by} <a href="{$CFG.site.url}admin/viewMembers.php?uid={$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.record.user_id}">{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.record.answered_by}</a></span>
                                    	&nbsp;-&nbsp;
                                    {/if}
									{if $CFG.admin.answers_module.voting}
										<span>{$LANG.helpful}:<span class="clsNoBorder clsBold">{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.record.votes}</span></span>
										&nbsp;-&nbsp;
								   {/if}
                                    <span>{$myobj->getTimeDiffernceFormat($myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.record.date_answered)}</span>
                                    {if chkIsVideoAllowed('answer') AND $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.record.video_id}
                                        &nbsp;-&nbsp;
                                        <a id="anchorDelVideo"  href="#" title="{$LANG.delete_video}" onClick="return Confirmation('selMsgConfirm', 'deleteForm', Array('act','aid', 'confirmation_msg'), Array('deletevideo','{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.record.video_id}', '{$LANG.confirm_delete_video_message}'), Array('value','value', 'innerHTML'), 'selListAdvertisementForm');">{$LANG.delete_video}</a>
                                    {/if}
                                    {if chkIsAudioAllowed('answer') AND $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.record.audio_id}
                                        &nbsp;-&nbsp;
                                        <a id="anchorDelAudio"  href="#" title="{$LANG.delete_audio}" onClick="return Confirmation('selMsgConfirm', 'deleteForm', Array('act','aid', 'confirmation_msg'), Array('deleteaudio','{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.record.audio_id}', '{$LANG.confirm_delete_audio_message}'), Array('value','value', 'innerHTML'));">{$LANG.delete_audio}</a>
                                    {/if}
                                    &nbsp;-&nbsp;
                                    {if chkExternalVideoAllowed('answer') AND $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.record.external_video_id}
                                        &nbsp;-&nbsp;
                                        <a id="anchorDelExtVideo"  href="#" title="{$LANG.delete_external_video}" onClick="return Confirmation('selMsgConfirm', 'deleteForm', Array('act','aid', 'confirmation_msg'), Array('deleteExtvideo','{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.record.external_video_id}', '{$LANG.delete_external_video_confirmation}'), Array('value','value', 'innerHTML'));">{$LANG.delete_external_video}</a>
                                    {/if}
                                    {if chkExternalAudioAllowed('answer') AND $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.record.external_audio_id}
                                        &nbsp;-&nbsp;
                                        <a id="anchorDelExtAudio"  href="#" title="{$LANG.delete_external_audio}" onClick="return Confirmation('selMsgConfirm', 'deleteForm', Array('act','aid', 'confirmation_msg'), Array('deleteExtaudio','{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.record.external_audio_id}', '{$LANG.delete_external_audio_confirmation}'), Array('value','value', 'innerHTML'));">{$LANG.delete_external_audio}</a>
                                    {/if}
                                    &nbsp;-&nbsp;
                                    <a id="anchorRemoveBest"  href="#" title="{$LANG.delete_best_answer}" onClick="return Confirmation('selMsgConfirm', 'deleteForm', Array('act','aid', 'confirmation_msg'), Array('deleteBestAnswer','{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.record.ans_id}', '{$LANG.confirm_delete_best_answer_message}'), Array('value','value', 'innerHTML'));">{$LANG.delete_best_answer}</a>
                                    &nbsp;-&nbsp;
                                    <a id="anchorDeleteAnswer"  href="#" title="{$LANG.common_delete}" onClick="return Confirmation('selMsgConfirm', 'deleteForm', Array('act','aid', 'confirmation_msg'), Array('deleteAnswer','{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.record.ans_id}', '{$LANG.confirm_delete_message}'), Array('value','value', 'innerHTML'));">{$LANG.common_delete}</a>

									<p class="clsAttachment">
                                    {if isset($myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.fetchMoreAttachments.row)}
										<div class="clsViewReplies">
                                            {foreach key=fmaaKey item=fmaaValue from=$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.fetchMoreAttachments.row}
                                                <div class="clsBlogReply">
                                                    <ul class="clsBlogDisplayLinks">
                                                        <li class="clsLastBlogInfo"></li>
                                                        <li id="attach_{$fmaaValue.record.attachment_id}">
                                                            <p class="">
															<div class="clsThumbImageOuter cls90PXthumbImage">
																<div class="clsrThumbImageMiddle">
																	<div class="clsThumbImageInner">
																		<a id="{$fmaaValue.img_id}" href="{$fmaaValue.attachment_path}" onclick="return displayImageGallery('{$fmaaValue.img_id}')" title="{$fmaaValue.attachment_name}" ><img src="{$fmaaValue.image_path}" /></a>
															         </div><img src="{$fmaaValue.image_large_path}" style="display: none;" />
																   </div>
																 </div>

                                                            <a href="#" id="{$fmaaValue.anchor}" onClick="return Confirmation('selDelAttachconfirm', 'msgAttachConfirmform', Array('act', 'attach_id', 'attach_content_id', 'attach_name', 'msgAttachConfirmText'), Array('deletemoreattachments', '{$fmaaValue.record.attachment_id}', '{$fmaaValue.record.content_id}', '{$fmaaValue.attachment_file_name}', '{$LANG.confirm_remove_info_message}'), Array('value', 'value', 'value', 'value', 'innerHTML'));" class="clsAttachmentRemove">{$LANG.common_remove_attachments}</a></p>
                                                        </li>
                                                    </ul>
                                                </div>
                                            {/foreach}
                                       </div>
                                    {/if}
                                    </p>

                                </div>
                            </div>
                            </td>
                        </tr>
						 <tr>
							<td>
						 {if $CFG.admin.answers_comment.allowed}
						  {if $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.populateCommentList}
							{foreach key=farlkey item=farlvalue from=$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer_arr.populateCommentList}
							  <div  class="clsCommentAnswerDisplay">
								<div id="{$farlvalue.commentSpanIDId}">
									<p><span>{$LANG.common_comment_posted_by}</span> : <a href="{$farlvalue.myanswers.url}">{$farlvalue.user_details.display_name}</a></p>
									<p><span>{$LANG.common_date_added}</span> : {$farlvalue.record.date_added|date_format}</p>
									<p>{$farlvalue.record.comment}</p>
								</div>
							  </div>
							{/foreach}
						{/if}
						{/if}
						</td>
					</tr>
				   {/if}

				</table>
				</form>
				</div>

				{if $myobj->question_details.is_open && $myobj->question_details.user_id != $CFG.user.user_id}
					<span class="clsAnswerQuestion"><a target="_blank" href="{$myobj->form_question.displayQuestionDetails_arr.reply_answer.url}">{$LANG.answers_this_question}</a></span>
				{/if}
	{/if}

{/if}

{if $myobj->isShowPageBlock('form_answers')}
    {if $myobj->isResultsFound()}

        {if $CFG.admin.navigation.top}
            {include file='pagination.tpl'}
        {/if}

            <form name="selListAdvertisementForm" id="selListAdvertisementForm" method="post" action="{$myobj->getCurrentUrl()}" autocomplete="off">
                <table summary="{$LANG.display_all_answers}">
                {foreach key=daKey item=daValue from=$myobj->form_answers.displayAllAnswers_arr}
                        <tr id="{$daValue.ans_id}">
                            <td>
                            <input type="checkbox" class="clsCheckRadio" name="aid[]" value="{$daValue.record.ans_id}" tabindex="{smartyTabIndex}" />
                            </td>
                            <td>
                            <div class="clsAnswers">
                                <p>{$daValue.row_answer_manual}</p>
                                <div>
	                                {if chkIsVideoAllowed('answer') AND $daValue.record.video_id}
	                                    <span><a id="{$daValue.ans_view_video.on_click}" href="{$daValue.ans_view_video.url}" onClick="{$myobj->getBrowser($daValue.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></span>
	                                {/if}
	                                {if chkIsAudioAllowed('answer') AND $daValue.record.audio_id}
	                                    <span><a id="{$daValue.ans_view_audio.on_click}" href="{$daValue.ans_view_audio.url}" onClick="{$myobj->getBrowser($daValue.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></span>
	                                {/if}
	                                {if chkExternalVideoAllowed('answer') AND $daValue.record.external_video_id}
	                                    <span><a id="{$daValue.ans_view_ext_video.on_click}" href="{$daValue.ans_view_ext_video.url}" onClick="{$myobj->getBrowser($daValue.ans_view_ext_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></span>
	                                {/if}
	                                {if chkExternalAudioAllowed('answer') AND $daValue.record.external_audio_id}
	                                    <span><a id="{$daValue.ans_view_ext_audio.on_click}" href="{$daValue.ans_view_ext_audio.url}" onClick="{$myobj->getBrowser($daValue.ans_view_ext_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></span>
	                                {/if}
                                </div>
                                {if $daValue.record.source}
                                    <p>{$LANG.answers_sources}:</p>
                                    <p>{$daValue.row_source_manual}</p>
                                {/if}
                                <div>
                                {if $daValue.facebook_user_details}
                                	<div class="clsUserLinkName clsNoLeftBgPadngMrgn"><a href="{$daValue.facebook_user_details.profile_url}">{$daValue.facebook_user_details.name}</a></div>
                                	<div class="clsUserLinkName clsNoLeftBgPadngMrgn"> {$LANG.common_via} <a href="http://www.facebook.com/">{$LANG.common_facebook}</a></div>
                                {else}
                                    <span class="clsForumAuthor">{$LANG.common_question_answered_by} <a href="{$CFG.site.url}admin/viewMembers.php?uid={$daValue.record.user_id}">{$daValue.row_answered_by_manual}</a></span>
                                    &nbsp;-&nbsp;
                                {/if}
                                    <span>{$myobj->getTimeDiffernceFormat($daValue.record.date_answered)}</span>
                                    {if $CFG.admin.abuse_answers.allowed AND $CFG.user.user_id != $daValue.record.user_id AND $myobj->question_details.status == 'Open'}
                                        &nbsp;-&nbsp;
                                        <span>({$LANG.common_abuse_count} <a id="selAbuseDetails" href="manageAbuseContent.php?aid={$daValue.record.ans_id}&qid={$daValue.record.ques_id}" onclick="{$myobj->getBrowser('selAbuseDetails')}">{$daValue.record.abuse_count}</a>)</span>
                                    {/if}
                                    {if $CFG.admin.answers_module.voting}
										<span>{$LANG.helpful}:<span class="clsNoBorder clsBold">{$daValue.record.votes}</span></span>
									{/if}
                                    {if $CFG.admin.best_answers.allowed AND $myobj->question_details.best_ans_id == 0 AND $daValue.record.status !='ToActivate'}
                                        &nbsp;-&nbsp;
                                        <a id="{$daValue.anchor1}"  href="#" title="{$LANG.best_answer}" onClick="return Confirmation('selMsgConfirm', 'deleteForm', Array('act','aid', 'confirmation_msg'), Array('bestanswer','{$daValue.record.ans_id}', '{$LANG.best_answer_confirm_message}'), Array('value','value', 'innerHTML'));">{$LANG.best_answer}</a>
                                    {/if}
                                    {if chkIsVideoAllowed('answer') AND  $daValue.record.video_id}
                                        &nbsp;-&nbsp;
                                        <a id="{$daValue.anchor1}"  href="#" title="{$LANG.delete_video}" onClick="return Confirmation('selMsgConfirm', 'deleteForm', Array('act','aid', 'confirmation_msg'), Array('deletevideo','{$daValue.record.video_id}', '{$LANG.confirm_delete_video_message}'), Array('value','value', 'innerHTML'));">{$LANG.delete_video}</a>
                                    {/if}
                                    {if chkIsAudioAllowed('answer') AND $daValue.record.audio_id}
                                        &nbsp;-&nbsp;
                                        <a id="{$daValue.anchor2}"  href="#" title="{$LANG.delete_audio}" onClick="return Confirmation('selMsgConfirm', 'deleteForm', Array('act','aid', 'confirmation_msg'), Array('deleteaudio','{$daValue.record.audio_id}', '{$LANG.confirm_delete_audio_message}'), Array('value','value', 'innerHTML'));">{$LANG.delete_audio}</a>
                                    {/if}
                                    {if chkExternalVideoAllowed('answer') AND  $daValue.record.external_video_id}
                                        &nbsp;-&nbsp;
                                        <a id="{$daValue.anchor3}"  href="#" title="{$LANG.delete_external_video}" onClick="return Confirmation('selMsgConfirm', 'deleteForm', Array('act','aid', 'confirmation_msg'), Array('deleteExtvideo','{$daValue.record.external_video_id}', '{$LANG.delete_external_video_confirmation}'), Array('value','value', 'innerHTML'));">{$LANG.delete_external_video}</a>
                                    {/if}
                                    {if chkExternalAudioAllowed('answer') AND $daValue.record.external_audio_id}
                                        &nbsp;-&nbsp;
                                        <a id="{$daValue.anchor4}"  href="#" title="{$LANG.delete_external_audio}" onClick="return Confirmation('selMsgConfirm', 'deleteForm', Array('act','aid', 'confirmation_msg'), Array('deleteExtaudio','{$daValue.record.external_audio_id}', '{$LANG.delete_external_audio_confirmation}'), Array('value','value', 'innerHTML'));">{$LANG.delete_external_audio}</a>
                                    {/if}
                                    {if $daValue.record.status =='ToActivate'}
                                        &nbsp;-&nbsp;
                                        <a id="{$daValue.anchor2}"  href="#" title="{$LANG.publish}" onClick="return Confirmation('selMsgConfirm', 'deleteForm', Array('act','aid', 'confirmation_msg'), Array('publishanswer','{$daValue.record.ans_id}', '{$LANG.publish_answer_confirm_message}'), Array('value','value', 'innerHTML'));">{$LANG.publish}</a>
                                    {/if}
                                    <p  class="clsAttachment">
                                    {if isset($daValue.fetchMoreAttachments.row)}
									<div class="clsViewReplies">
                                            {foreach key=fmaaKey item=fmaaValue from=$daValue.fetchMoreAttachments.row}
                                                <div class="clsBlogReply">
                                                    <ul class="clsBlogDisplayLinks">
                                                        <li class="clsLastBlogInfo"></li>
                                                        <li id="attach_{$fmaaValue.record.attachment_id}">
                                                            <p class="">
															<div class="clsThumbImageOuter cls90PXthumbImage">
																<div class="clsrThumbImageMiddle">
																	<div class="clsThumbImageInner">
																		<a id="{$fmaaValue.img_id}" href="{$fmaaValue.attachment_path}" onclick="return displayImageGallery('{$fmaaValue.img_id}')" title="{$fmaaValue.attachment_name}" ><img src="{$fmaaValue.image_path}" /></a>
															         </div><img src="{$fmaaValue.image_large_path}" style="display: none;" />
																   </div>
																 </div>
                                                            <a href="#" id="{$fmaaValue.anchor}" onClick="return Confirmation('selDelAttachconfirm', 'msgAttachConfirmform', Array('act', 'attach_id', 'attach_content_id', 'attach_name', 'msgAttachConfirmText'), Array('deletemoreattachments', '{$fmaaValue.record.attachment_id}', '{$fmaaValue.record.content_id}', '{$fmaaValue.attachment_file_name}', '{$LANG.confirm_remove_info_message}'), Array('value', 'value', 'value', 'value', 'innerHTML'));" class="clsAttachmentRemove">{$LANG.common_remove_attachments}</a></p>
                                                        </li>
                                                    </ul>
                                                </div>
                                            {/foreach}
                                       </div>
                                    {/if}
                                    </p>
                                </div>
                            </div>

							<div id="msg{$daValue.commentSpanIDId}">
							{if $CFG.admin.answers_comment.allowed}
							{if $daValue.populateCommentList}
								{foreach key=farlkey item=farlvalue from=$daValue.populateCommentList}
                                <div  class="clsCommentAnswerDisplay">
										<div id="{$farlvalue.commentSpanIDId}">
											<p><span>{$LANG.common_comment_posted_by}</span> : <a href="{$farlvalue.myanswers.url}">{$farlvalue.user_details.display_name}</a></p>
											<p><span>{$LANG.common_date_added}</span> : {$farlvalue.record.date_added|date_format}</p>
											<p>{$farlvalue.record.comment}</p>
										</div>
										<p><span id="editComment_{$daValue.record.ans_id}"><a href="{$CFG.site.url}admin/viewAnswers.php?qid={$myobj->getFormField('qid')}"  onClick="if(checkifAlreadyOpen())ajaxUpdateDiv('{$CFG.site.url}admin/viewAnswers.php?qid={$myobj->getFormField('qid')}', 'ajax_page=true&showOptionToComment=1&c_ans_id={$daValue.record.ans_id}&c_seo_title={$myobj->question_details.seo_title}&c_qid= {$myobj->getFormField('qid')}&comment_id={$farlvalue.record.comment_id}', '{$farlvalue.commentSpanIDId}'); return false;">{$LANG.edit_comment}</a></span> |
										<a  href="#" title="{$LANG.common_delete}" onClick="return Confirmation('selMsgConfirm', 'deleteForm', Array('act','comment_id', 'confirmation_msg'), Array('deletecomment','{$farlvalue.record.comment_id}', '{$LANG.confirm_delete_message_comment}'), Array('value','value', 'innerHTML'));">{$LANG.common_delete}</a>

										</p>
                                        </div>

								{/foreach}
							{/if}
							{/if}
						   </div>
                            </td>
                        </tr>

                {/foreach}

                <tr>
					<td></td>
                    <td>
                    <a href="#" id="{$myobj->da_anchor}"></a>
                    <input type="button" class="clsSubmitButton" name="delete_submit" id="delete_submit" tabindex="{smartyTabIndex}" value="{$LANG.common_delete}" onClick="if(getMultiCheckBoxValue('selListAdvertisementForm', 'check_all', '{$LANG.select_a_answer}'))Confirmation('selMsgConfirm', 'deleteForm', Array('aid', 'act', 'confirmation_msg'), Array(multiCheckValue, 'delete', '{$myobj->form_answers.confirm_delete}'), Array('value', 'value', 'innerHTML'));" />
                    </td>
                </tr>
            </table>
            </form>

        {if $CFG.admin.navigation.bottom}
            {include file='pagination.tpl'}
        {/if}

    {else}
        <div id="selMsgAlert">
            <p>{$LANG.answers_not_added}</p>
        </div>
    {/if}

{/if}
</div>
