<div id="selMembers">
  <h2 class="clsManageAnswers">{$LANG.member_title}</h2>

  {include file='information.tpl'}


{if $myobj->isShowPageBlock('show_form_confirm')}
  <div id="selMsgError">
    <form name="form_delete_event" id="selFormselDeleteEvents" method="post" action="{$myobj->getCurrentUrl()}" autocomplete="off">
      <table class="clsCommonTable" summary="{$LANG.member_tbl_summary}" >
        <tr>
          <td colspan="2">{$LANG.confirm_message}</td>
        </tr>
        <tr>
          <td class="clsButtonAlignment">{$myobj->populateHidden($myobj->getFormField('ques_ids'))}
            <input type="hidden" name="action" value="{$myobj->getFormField('action')}" />
            <input type="submit" class="clsSubmitButton" name="cdelete" id="cdelete" value="{$LANG.common_yes_option}" tabindex="{smartyTabIndex}" />
          </td>
          <td><input type="submit" class="clsCancelButton" name="dcancel" id="dcancel" value="{$LANG.common_no_option}" tabindex="{smartyTabIndex}" />
          	{$myobj->populateHidden($myobj->show_form_confirm.hidden_arr)}
          </td>
        </tr>
      </table>
    </form>
  </div>
{/if}
<!-- Confirmation Div -->
  <div id="selMsgConfirmList" class="selMsgConfirm" style="display:none;position:absolute;">
    <form name="formConfirm" id="formConfirm" method="post" action="{$myobj->getCurrentUrl()}">
      <p id="confirmMessage"></p>
      <table summary="{$LANG.container_to_get_confirmation}">
        <tr>
          <td><input type="button" class="clsSubmitButton" name="confirm_action" id="confirm_action" value="{$LANG.common_yes_option}" tabindex="{$myobj->getTabIndex()}" onClick="hideAllBlocks(); doRemoveAction();"/>
            &nbsp;
            <input type="button" class="clsCancelButton" name="cancel" id="cancel" value="{$LANG.common_no_option}" tabindex="{$myobj->getTabIndex()}" onClick="return hideAllBlocks();" />
          </td>
        </tr>
      </table>
      <input type="hidden" name="action" />
    </form>
  </div>

	<div id="selDelInfoconfirm" class="clsPopupConfirmation" style="display:none;position:absolute;">
		<p id="msgInfoConfirmText"></p>
      	<form name="msgInfoConfirmform" id="msgInfoConfirmform" method="post" action="{$myobj->getCurrentUrl()}">
        	<table summary="{$LANG.container_to_get_confirmation}">
	          	<tr>
	            		<td>
					  	<input type="button" class="clsSubmitButton" name="confirm" id="confirm" onclick="deleteQuestionAttachments('{ $CFG.site.relative_url}manageAnswers.php?qid={$myobj->getFormField('qid')}', '&amp;ajax_page=true&amp;deletemoreattachments=1');chkLimit(); 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();" />
						<input type="hidden" name="info_id" id="info_id" />
						<input type="hidden" name="ques_id" id="ques_id" />
						<input type="hidden" name="filename" id="filename" />
						<input type="hidden" name="act" id="act" />
				</td>
	          	</tr>
        	</table>
      	</form>
  </div>

{if $myobj->isShowPageBlock('form_edit')}
	<form name="selFormAskQuestion" id="selFormAskQuestion" method="post" action="{$myobj->getCurrentUrl(true)}" autocomplete="off" enctype="multipart/form-data">
	<div id="selQuestionEdit">
		{$myobj->populateHidden($myobj->form_edit.hidden_arr)}
		<table class="clsCommonTable" summary="{$LANG.post_your_question}">
			<tr>
				<td class="{$myobj->getCSSFormLabelCellClass('question')}"><label for="question">{$LANG.question}</label></td>
				<td class="{$myobj->getCSSFormFieldCellClass('question')}">
					<input type="text" class="clsTextBox" name="question" id="question" maxlength="250" tabindex="{smartyTabIndex}" value="{$myobj->getFormField('question')}" />
                    {$myobj->getFormFieldElementErrorTip('question')}
				</td>
			</tr>
			<!-- add documents block1 -->
			{if $CFG.admin.attachments_questions.allowed && $CFG.admin.attachments_allowed.count > 0}
			<tr>
			      <td class="{$myobj->getCSSFormLabelCellClass('attachments')}">
			        <label for="attachments">{$LANG.questions_your_attachments}</label>
			       </td>
			      <td id="tdID" class="{$myobj->getCSSFormFieldCellClass('attachments')}">
			      <div ></div> 
                   
				  <p id="brsBtn"></p>
                  {$myobj->getFormFieldElementErrorTip('attachments')}
			      <p>{$myobj->form_edit.attachment_allowed_tip_manual}</p>
			      <p>{$myobj->form_edit.attachment_format_tip_manual}</p>
				  <p>{$myobj->form_edit.attachment_size_tip_manual}</p>
                  {if $myobj->getFormField('qid')}
  				   <div id="uploaded_images" class="uploadOverflow">
                        {foreach key=gAkey item=gAvalue from=$myobj->form_edit.getAttachments_arr}

                            <span class="clsEditAttachment clsAskUploadImg" id="attach_{$gAvalue.record.attachment_id}">
							<div class="clsThumbImageOuter cls90PXthumbImage">
							<div class="clsrThumbImageMiddle">
							<div class="clsThumbImageInner">
                                <a id="{$gAvalue.img_id}" href="{$gAvalue.attachment_path}" target="_blank" onclick="return displayImageGallery('{$gAvalue.img_id}')"><img src="{$gAvalue.attachment.url_thumb}"  alt="{$gAvalue.record.attachment_name}" /></a>
								</div></div></div>
                                <span><a href="#" id="{$gAvalue.anchor}" onClick="return Confirmation('selDelInfoconfirm', 'msgInfoConfirmform', Array('act','info_id', 'ques_id', 'filename', 'msgInfoConfirmText'), Array('deletemoreattachments','{$gAvalue.record.attachment_id}','{$myobj->getFormField('qid')}', '{$gAvalue.attachment_file_name}', '{$LANG.confirm_remove_info_message}'), Array('value','value','value', 'value','innerHTML'));" class="clsAttachmentRemove"></a></span>
                            </span><img src="{$gAvalue.image_large_path}" style="display: none;" />
                        {/foreach}
				   </div>
                  {/if}


			<div id="content">
				<div id="image_uploads" class="{$myobj->getCSSFormFieldCellClass('attachments')}" style="display:block;">
					<span id="spanButtonPlaceholder"></span>
				</div>
				<div id="divFileProgressContainer" class="clsThumbMsgDisplay" style="display:none;"></div>
				<div id="thumbnails"></div>
				<div id="hiddenvals"></div>
				<div id="hiddenoriginalvals"></div>
			</div>
			</td>
		</tr>
		{/if}
			   <!-- ends add document block1 -->
			<tr>
				<td class="{$myobj->getCSSFormLabelCellClass('descriptions')}"><label for="descriptions">{$LANG.add_details}</label></td>
				<td class="{$myobj->getCSSFormFieldCellClass('descriptions')}">
					<textarea name="descriptions" id="descriptions" maxlength="{$CFG.admin.description.limit}" tabindex="{smartyTabIndex}" onFocus="updatelength(this);" onKeyUp="updatelength(this);">{$myobj->form_edit.description_manual}</textarea>
                    {$myobj->getFormFieldElementErrorTip('descriptions')}
					 <div id="ss" class="clsZeroColour"><span> {$LANG.header_remainig} :</span> <span class="clsCharacterLimit">{literal}<script>var c = ques_des_max_len - document.getElementById('descriptions').value.length;document.write(c);</script>{/literal}</span></div>
				</td>
			</tr>
			{if  chkIsVideoAllowed('question') || chkExternalVideoAllowed('question')}
			<tr>
      			<td class="{$myobj->getCSSFormLabelCellClass('video')}"><label for="video">{$LANG.questions_add_video_details}</label></td>
      			<td class="{$myobj->getCSSFormFieldCellClass('video')}">
				  {if chkIsVideoAllowed('question')}
					<div class="clsVideoUpload clsClearfix" id="video_first" {$myobj->form_edit.video.style_add_video}>
						<div class="clsVideoContainer">
						<a id="video_add" href="{$myobj->form_edit.video_upload_url}" onClick="{$myobj->getBrowser('video_add')}"></a>
        				{$myobj->getFormFieldErrorTip('question_video')}
						</div>
						<div class="clsVideoDetails">
							<a href="{$myobj->form_edit.video_upload_url}" onClick="{$myobj->getBrowser('video_add')}">
								<p>{$LANG.common_record_video}</p>
								<p>{$LANG.common_using_webcams}</p>
							</a>
						</div>
					</div>
					<div class="clsAudioUpload clsClearfix" id="video_secnd" {if $myobj->form_edit.video.style_add_video==''} style="display:none;" {/if}>

						<div class="clsAudioDetails clsAudioOptions">
							<div >
								<p class="clsAVDelete"><a {$myobj->form_edit.video.style_delete_video} id="video_delete" href="{$myobj->getCurrentUrl()}" onClick="return confrimRemove('video', 'video_delete', '{$LANG.are_you_sure_to_delete}');">{$LANG.delete_video}</a></p>
								<p class="clsAVPreview"><a {$myobj->form_edit.video.style_preview_video} id="video_preview" href="{$myobj->form_edit.video.video_preview_url}" onClick="{$myobj->getBrowser('video_preview')}">{$LANG.preview_video}</a></p>
							</div>
						</div>
					</div>
				{/if}
				{if chkExternalVideoAllowed('question')}
					<div class="clsExternalUploadBox">
						<div class="clsVideoUpload clsClearfix" id="external_video_add1" {$myobj->form_edit.video.style_add_external_video}>
							<div class="clsExternalVideoContainer">
								<a {$myobj->form_edit.video.style_add_external_video} id="external_video_add" href="{$myobj->form_edit.externalvideoupload_url}" onClick="{$myobj->getBrowser('external_video_add')}">{$LANG.add_external_video}</a>
	        					{$myobj->getFormFieldErrorTip('audio')}
							</div>

						</div>
						<div class="clsAudioUpload clsClearfix" id="external_video_add2" {if $myobj->form_edit.video.style_add_external_video==''} style="display:none;" {/if}>
							<div class="clsAudioDetails clsAudioOptions">
								<div >
									<p class="clsAVDelete"><a {$myobj->form_edit.video.style_delete_external_video} id="external_video_delete" href="{$myobj->getCurrentUrl()}" onClick="return confrimRemove('external_video', 'external_video_delete','{$LANG.are_you_sure_to_delete}');">{$LANG.delete_external_video}</a></p>
									<p class="clsAVPreview"><a {$myobj->form_edit.video.style_preview_external_video} id="external_video_preview" href="{$myobj->form_edit.video.external_video_preview_url}" onClick="{$myobj->getBrowser('external_video_preview')}">{$LANG.preview_external_video}</a></p>
								</div>
							</div>
						</div>
					</div>
				{/if}
                {$myobj->getFormFieldElementErrorTip('video')}
                </td>
    		</tr>
    		{/if}
			{if  chkIsAudioAllowed('question') || chkExternalAudioAllowed('question')}
		    <tr>
		      <td class="{$myobj->getCSSFormLabelCellClass('audio')}"><label for="audio">{$LANG.questions_add_audio_details}</label></td>
		      <td class="{$myobj->getCSSFormFieldCellClass('audio')}">
				  {if chkIsAudioAllowed('question')}
					<div class="clsAudioUpload clsClearfix" id="audio_first" {$myobj->form_edit.audio.style_add_audio}>
						<div class="clsAudioContainer">
							<a id="audio_add" href="{$myobj->form_edit.audio_upload_url}" onClick="{$myobj->getBrowser('audio_add')}"></a>
        					{$myobj->getFormFieldErrorTip('audio')}
						</div>
						<div class="clsAudioDetails">
							<div>
								<a href="{$myobj->form_edit.audio_upload_url}" onClick="{$myobj->getBrowser('audio_add')}">
									<p>{$LANG.common_record_audio}</p>
									<p>{$LANG.common_using_recorder}</p>
								</a>
							</div>
						</div>
					</div>
					<div class="clsAudioUpload clsClearfix" id="audio_secnd" {if $myobj->form_edit.audio.style_add_audio==''} style="display:none;" {/if}>
						<div class="clsAudioDetails clsAudioOptions">
							<div >
								<p class="clsAVDelete"><a {$myobj->form_edit.audio.style_delete_audio} id="audio_delete" href="{$myobj->getCurrentUrl()}" onClick="return confrimRemove('audio', 'audio_delete', '{$LANG.are_you_sure_to_delete}');">{$LANG.delete_audio}</a></p>
								<p class="clsAVPreview"><a {$myobj->form_edit.audio.style_preview_audio} id="audio_preview" href="{$myobj->form_edit.audio.audio_preview_url}"  onClick="{$myobj->getBrowser('audio_preview')}">{$LANG.preview_audio}</a></p>
							</div>
						</div>
					</div>
				{/if}
				{if chkExternalAudioAllowed('question')}
					<div class="clsExternalUploadBox">
						<div class="clsAudioUpload clsClearfix" id="external_audio_add1" {$myobj->form_edit.audio.style_add_external_audio}>
							<div class="clsExternalAudioContainer">
								<a id="external_audio_add" href="{$myobj->form_edit.externalaudioupload_url}" onClick="{$myobj->getBrowser('external_audio_add')}">{$LANG.add_external_audio}</a>
	        					{$myobj->getFormFieldErrorTip('audio')}
							</div>
						</div>
						<div class="clsAudioUpload clsClearfix" id="external_audio_add2" {if $myobj->form_edit.audio.style_add_external_audio==''} style="display:none;" {/if}>
							<div class="clsAudioDetails clsAudioOptions">
								<div >
									<p class="clsAVDelete"><a {$myobj->form_edit.audio.style_delete_external_audio} id="external_audio_delete" href="{$myobj->getCurrentUrl()}" onClick="return confrimRemove('external_audio', 'external_audio_delete', '{$LANG.are_you_sure_to_delete}');">{$LANG.delete_external_audio}</a></p>
									<p class="clsAVPreview"><a {$myobj->form_edit.audio.style_preview_external_audio} id="external_audio_preview" href="{$myobj->form_edit.audio.external_audio_preview_url}"  onClick="{$myobj->form_add.askQuestions_arr.external_audio_onclick}">{$LANG.preview_external_audio}</a></p>
								</div>
							</div>
						</div>
					</div>
				{/if}
              {$myobj->getFormFieldElementErrorTip('audio')}
              </td>
		    </tr>
		    {if chkIsPaymentAllowed('payment_questions') or isAdmin()}
	            <tr>
	              <td class="{$myobj->getCSSFormLabelCellClass('featured')}"><label for="featured">{$LANG.questions_featured}</label></td>
	              <td class="{$myobj->getCSSFormFieldCellClass('featured')}">
	               	<input type="checkbox" name="featured" id="featured"  tabindex="{smartyTabIndex}" value="Yes" {if $myobj->getFormField('featured') eq 'Yes'} "checked" {/if}>{$LANG.questions_add_featured}
	              {$myobj->getFormFieldErrorTip('featured')} </td>
	            </tr>
            {/if}

		    {/if}

		   	<tr id="selCategoryBlock">
				<td class="{$myobj->getCSSFormLabelCellClass('category')}"><label for="category">{$LANG.select_category_for_question}</label></td>
				<td class="{$myobj->getCSSFormFieldCellClass('category')}">
								<div id="selGeneralCategory">
									<select name="category" id="category" tabindex="{smartyTabIndex}" onchange="addNewStatusMessage(this);return call_ajax_populate_sub_categories('{$CFG.site.url}{$CFG.admin.index.anova_module}/questions_ajax.php', 'new=1&amp;t={smartyTabIndex}','subCatDiv');" onBlur="manualLiveValidation(this);return false;">
									<option value="">{$LANG.common_select_choose}</option>
                                    {$myobj->generalPopulateArray($myobj->categories_arr, $myobj->getFormField('category'))}
									{if $CFG.admin.question.category_create}
									<optgroup label="{$LANG.account_profile_status_new_optgroup}">
									<option value="add">{$LANG.account_profile_status_custom_add}</option>
									</optgroup>
									{/if}
									</select>
								</div>
								{$myobj->getFormFieldElementErrorTip('category','select')}
								<input type="hidden" name="new_status_hidden" id="new_status_hidden" />
							</td>
			</tr>
			<tr>
				<td class="{$myobj->getCSSFormLabelCellClass('sub_category')}"><label for="sub_category">{$LANG.select_sub_category_for_question}</label></td>
				<td id="subCatDiv" class="{$myobj->getCSSFormFieldCellClass('sub_category')}">
								<div id="selGeneralCategory">
									<select name="sub_category" id="sub_category" tabindex="{smartyTabIndex}" onchange="addNewSubStatusMessage(this);">
									<option value="">{$LANG.common_select_choose}</option>
                                    {if $myobj->getFormField('category')}
	                                    {$myobj->generalPopulateArray($myobj->sub_categories_arr, $myobj->getFormField('sub_category'))}
                                    {/if}
									{if $CFG.admin.question.category_create}
										<optgroup label="{$LANG.account_profile_status_new_optsubgroup}">
										<option value="add">{$LANG.account_profile_status_custom_subadd}</option>
										</optgroup>
									{/if}
									</select>
								</div>
                                {$myobj->getFormFieldErrorTip('sub_category')}
								<input type="hidden" name="new_substatus_hidden" id="new_substatus_hidden" />
								<input type="hidden" name="option_length" id="option_length" value="{$myobj->populateSubCategoriesCount($myobj->getFormField('category'), $myobj->getFormField('sub_category'))}" />
							</td>
			</tr>
			<tr>
				<td class="{$myobj->getCSSFormLabelCellClass('tags')}"><label for="tags">{$LANG.tags_for_questions}</label></td>
				<td class="{$myobj->getCSSFormFieldCellClass('tags')}">
					<input type="text" class="clsTextBox" name="tags" id="tags" maxlength="20" tabindex="{smartyTabIndex}" value="{$myobj->getFormField('tags')}" />
                    {$myobj->getFormFieldElementErrorTip('tags')}
				</td>
			</tr>
			{if $CFG.admin.answer_publish_option.allowed and !$CFG.admin.question_auto_publish.allowed}
                <tr>
                    <td class="{$myobj->getCSSFormLabelCellClass('publish')}"><label for="publish">{$LANG.question_publish_allanswers}</label></td>
                    <td class="{$myobj->getCSSFormFieldCellClass('publish')}">
                        <input type="radio" name="publish" id="status_yes" value="Yes"{$myobj->isCheckedRadio('publish', 'Yes')} /><label for="status_yes">{$LANG.common_yes_option}</label>
                        <input type="radio" name="publish" id="status_no" value="No"{$myobj->isCheckedRadio('publish', 'No')} /><label for="status_no">{$LANG.common_no_option}</label>
                        {$myobj->getFormFieldElementErrorTip('publish')}
                    </td>
                </tr>
			{/if}
			<tr>
				<td></td>
				<td class="{$myobj->getCSSFormFieldCellClass('submit')}">
					<input type="hidden" name="ques_user_id" value="{$myobj->getFormField('ques_user_id')}" tabindex="{smartyTabIndex}" />
					<input type="submit" class="clsSubmitButton" name="submit" id="submit" tabindex="{smartyTabIndex}" value="{$LANG.common_update}" />
					&nbsp;&nbsp;
					<input type="submit" class="clsCancelButton" name="cancel" id="cancel" tabindex="{smartyTabIndex}" value="{$LANG.common_cancel}" />
				</td>
			</tr>
		</table>
		<input type="hidden" name="qid" value="{$myobj->getFormField('qid')}" />
	</div>
	</form>
    {literal}
		<script language="javascript" type="text/javascript">
			needLiveValidation('question',Array('Presence'));
			needLiveValidation('descriptions',Array('Presence'));
			var videoPreviewUrl = '{/literal}{$myobj->form_edit.video.video_default_preview_url}{literal}';
			var audioPreviewUrl = '{/literal}{$myobj->form_edit.audio.audio_default_preview_url}{literal}';
			var video_not_encoded_info = '{/literal}{$myobj->form_edit.video.video_not_encoded_info}{literal}';
			var externalVideoPreviewUrl = '{/literal}{$myobj->form_edit.video.external_video_preview_url}{literal}';
            var audio_not_encoded_info = "{/literal}{$myobj->form_edit.audio.audio_not_encoded_info}{literal}";
			var externalAudioPreviewUrl = '{literal}{$myobj->form_edit.audio.external_audio_preview_url}{literal}';
        </script>
    {/literal}
{/if}

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

		 <form name="searchMemberForum" id="searchMemberForum" method="post" action="{$myobj->getCurrentUrl(false)}" autocomplete="off">
   			 <table class="clsCommonTable" summary="{$LANG.member_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.member_search_cat}</label></td>
					<td class="{$myobj->getCSSFormFieldCellClass('search_cat')}">
					  <select class="clsCommonListBox" name="search_cat" id="search_cat" tabindex="{smartyTabIndex}" >
                        {$myobj->generalPopulateArray($myobj->populateSearchOptions_arr, $myobj->getFormField('search_cat'))}
					  </select>{$myobj->getFormFieldElementErrorTip('search_cat')}
					</td>
				  </tr>
				  <tr>
					<td></td>
					<td class="{$myobj->getCSSFormFieldCellClass('submit')}">
						<input type="submit" class="clsSubmitButton" name="go" tabindex="{smartyTabIndex}" value="{$LANG.common_go}" />
						<input type="reset" class="clsCancelButton" name="reset" tabindex="{smartyTabIndex}" value="{$LANG.common_reset}" />
					</td>
				  </tr>
				</table>
  </form>

{/if}
{if $myobj->isShowPageBlock('list_records')}

  <div id="selMsgConfirm" class="clsPopupConfirmation" style="display:none;position:absolute;">
      <p id="msgConfirmText"></p>
      <form name="msgConfirmform" id="msgConfirmform" method="post" action="{$myobj->getCUrrentUrl()}" autocomplete="off">
        <table class="clsCommonTable" summary="{$LANG.member_tbl_summary}">
          <tr>
            <td>
		 	<input type="submit" class="clsSubmitButton" name="yes" id="yes" 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('selMemberForum')" />
            </td>
          </tr>
        </table>
      	<input type="hidden" name="act" id="act" />
      	<input type="hidden" name="qid" id="qid" />
      	<input type="hidden" name="ques_ids" id="ques_id" />
		<input type="hidden" name="sort_act" id="sort_act" value="1" />
		<input type="hidden" name="action" id="action" />
      	<input type="hidden" name="search_name" id="search_name" value="{$myobj->getFormField('search_name')}"/>
      	<input type="hidden" name="search_cat" id="search_cat" value="{$myobj->getFormField('search_cat')}" />
		{$myobj->populateHidden($myobj->list_records_confirm_arr)}
      </form>
  </div>

    {if $myobj->isResultsFound()}
         <form name="selMemberForum" id="selMemberForum" method="post" action="{$myobj->getCUrrentUrl()}" autocomplete="off">

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

        <a href="#" id="dAltMlti"></a>
        <table class="clsCommonTable" summary="{$LANG.member_tbl_summary}" border="1">
	          <tr>
	            <th>&nbsp;<input type="checkbox" class="clsCheckRadio" id="checkall" onclick="selectAll(this.form)" name="checkall" tabindex="{smartyTabIndex}" /></th>
	            <th class="clsQuestions{$myobj->getOrderCss('question')}"><a href="#" onclick="return changeOrderbyElements('selMemberForum','question')">{$LANG.question}</a></th>
	            <th>{$LANG.common_category}</th>
	            <th class="clsTags{$myobj->getOrderCss('tags')}"><a href="#" onclick="return changeOrderbyElements('selMemberForum','tags')">{$LANG.search_type_tags}</a></th>
				{if $CFG.admin.questions_module.voting}
					<th class="clsVotes{$myobj->getOrderCss('votes')}"><a href="#" onclick="return changeOrderbyElements('selMemberForum','votes')">{$LANG.helpful}</a></th>
				{/if}
	            <th class="clsMembers{$myobj->getOrderCss('display_name')}"><a href="#" onclick="return changeOrderbyElements('selMemberForum','display_name')">{$LANG.common_question_asked_by}</a></th>
	            <th class="clsAnswers{$myobj->getOrderCss('total_answer')}"><a href="#" onclick="return changeOrderbyElements('selMemberForum','total_answer')">{$LANG.answers}</a></th>
	            <th class="clsAbuse{$myobj->getOrderCss('abuse_count')}"><a href="#" onclick="return changeOrderbyElements('selMemberForum','abuse_count')">{$LANG.common_abuse_count}</a></th>
	            <th class="clsPortCount{$myobj->getOrderCss('status')}"><a href="#" onclick="return changeOrderbyElements('selMemberForum','status')">{$LANG.common_status}</a></th>
	            <th class="clsDate{$myobj->getOrderCss('date_asked')}"><a href="#" onclick="return changeOrderbyElements('selMemberForum','date_asked')">{$LANG.member_date_asked}</a></th>
	            <th>{$LANG.manage}</th>
	          </tr>
            	{foreach key=lrKey item=lrValue from=$myobj->list_records}
                  <tr>
                    <td class="clsSelectAllMember"><input type="checkbox" class="clsCheckRadio" name="ques_ids[]" tabindex="{smartyTabIndex}" value="{$lrValue.ques_id}" onClick="disableHeading('selMemberForum');"/></td>
                    <td>
                        <a href="{$CFG.site.relative_url}viewAnswers.php?qid={$lrValue.ques_id}">{$lrValue.question_manual}</a>
                        {if chkIsVideoAllowed('question') and $lrValue.video_id}
                            <span><a id="{$lrValue.ans_view_video.on_click}" href="{$lrValue.ans_view_video.url}" onClick="{$myobj->getBrowser($lrValue.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('question') and $lrValue.audio_id}
                            <span><a id="{$lrValue.ans_view_audio.on_click}" href="{$lrValue.ans_view_audio.url}" onClick="{$myobj->getBrowser($lrValue.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('question') && $lrValue.external_video_id}
							<span><a href="{$CFG.site.relative_url}viewAnswers.php?qid={$lrValue.ques_id}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-external-video.png" alt="{$LANG.questions_video_available}" /></a></span>
						{/if}
						{if chkExternalAudioAllowed('question') && $lrValue.external_audio_id}
							<span><a href="{$CFG.site.relative_url}viewAnswers.php?qid={$lrValue.ques_id}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-external-audio.png" alt="{$LANG.common_audio_available}" /></a></span>
						{/if}

                    </td>
                    <td>{$lrValue.getCategoryName}</td>
                    <td>{$lrValue.tags}</td>
					{if $CFG.admin.questions_module.voting}
					 <td>{$lrValue.votes}</td>
					{/if}
                    <td>{$lrValue.display_name_manual}</td>
                    <td>
                        {$lrValue.total_answer}<p>
                        {if (chkIsVideoAllowed('answer') or chkExternalVideoAllowed('answer')) and $lrValue.total_videos > 0}
                            <span><a href="{$CFG.site.relative_url}viewAnswers.php?qid={$lrValue.ques_id}"><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') or chkExternalAudioAllowed('answer')) and $lrValue.total_audios > 0}
                            <span><a href="{$CFG.site.relative_url}viewAnswers.php?qid={$lrValue.ques_id}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-audio.png" alt="{$LANG.common_audio_available}" /></a></span>
                        {/if}</p>
                    </td>
                    <td><a id="selAbuseDetails{$lrValue.ques_id}" href="manageAbuseContent.php?qid={$lrValue.ques_id}" onclick="return openAnovaAjaxWindow('selAbuseDetails{$lrValue.ques_id}');">{$lrValue.abuse_count}</a></td>
                    <td class="clsPortCount">{$lrValue.status}</td>
                    <td>
                        {if $lrValue.date_asked}
                            {$myobj->getTimeDiffernceFormat($lrValue.date_asked)}
                        {/if}
                    </td>
                    <td class="clsEditDeleteVideoAudio">
                      <p>  <a href="manageAnswers.php?qid={$lrValue.ques_id}">{$LANG.common_edit}</a></p>
                    </td>
                  </tr>
            	{/foreach}

              <tr>
                <td colspan="11"  class="clsButtonAlignment {$myobj->getCSSFormFieldCellClass('submit')}">
                    <select class="clsCommonListBox" name="action" id="action" tabindex="{smartyTabIndex}" >
                        {$myobj->generalPopulateArray($myobj->action_arr, $myobj->getFormField('action'))}
                  </select>
                  &nbsp;
                  <input type="button" class="clsSubmitButton" name="todo" id="todo" onclick="getMultiCheckBoxValue('selMemberForum', 'checkall', '{$LANG.select_a_question}');if(multiCheckValue!='')getAction()" value="{$LANG.common_go}" tabindex="{smartyTabIndex}" />
                </td>
              </tr>
            </table>
			{$myobj->populateHiddenFormFields($myobj->list_records_confirm_arr)}
            {if $CFG.admin.navigation.bottom}
                {include file='pagination.tpl'}
            {/if}
		</form>
    {else}
          <div id="selMsgAlert">
                <p>{$LANG.common_no_records_found}</p>
          </div>
    {/if}
{/if}
</div>
{if $myobj->isShowPageBlock('form_edit') && $CFG.admin.attachments_questions.allowed}
	{literal}
		<script language="javascript" type="text/javascript">
			function chkLimit()
				{
					var uploaded_images = document.getElementById("uploaded_images");
					if(uploaded_images == null)
						var d = 0;
					else
						{
						   items_uploaded = uploaded_images.getElementsByTagName("img");
						   var d  =  items_uploaded.length;
						}
					if(d >= file_upload_limit)
						{
							document.getElementById("image_uploads").style.display = "none";
						}
					else
						{
							document.getElementById("image_uploads").style.display = "block";
						}

				}
			chkLimit();
		</script>
	{/literal}
{/if}