<?php /* Smarty version 2.6.18, created on 2010-11-25 18:41:59
         compiled from manageAnswers.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'smartyTabIndex', 'manageAnswers.tpl', 17, false),)), $this); ?>
<div id="selMembers">
  <h2 class="clsManageAnswers"><?php echo $this->_tpl_vars['LANG']['member_title']; ?>
</h2>

  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'information.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>


<?php if ($this->_tpl_vars['myobj']->isShowPageBlock('show_form_confirm')): ?>
  <div id="selMsgError">
    <form name="form_delete_event" id="selFormselDeleteEvents" method="post" action="<?php echo $this->_tpl_vars['myobj']->getCurrentUrl(); ?>
" autocomplete="off">
      <table class="clsCommonTable" summary="<?php echo $this->_tpl_vars['LANG']['member_tbl_summary']; ?>
" >
        <tr>
          <td colspan="2"><?php echo $this->_tpl_vars['LANG']['confirm_message']; ?>
</td>
        </tr>
        <tr>
          <td class="clsButtonAlignment"><?php echo $this->_tpl_vars['myobj']->populateHidden($this->_tpl_vars['myobj']->getFormField('ques_ids')); ?>

            <input type="hidden" name="action" value="<?php echo $this->_tpl_vars['myobj']->getFormField('action'); ?>
" />
            <input type="submit" class="clsSubmitButton" name="cdelete" id="cdelete" value="<?php echo $this->_tpl_vars['LANG']['common_yes_option']; ?>
" tabindex="<?php echo smartyTabIndex(array(), $this);?>
" />
          </td>
          <td><input type="submit" class="clsCancelButton" name="dcancel" id="dcancel" value="<?php echo $this->_tpl_vars['LANG']['common_no_option']; ?>
" tabindex="<?php echo smartyTabIndex(array(), $this);?>
" />
          	<?php echo $this->_tpl_vars['myobj']->populateHidden($this->_tpl_vars['myobj']->show_form_confirm['hidden_arr']); ?>

          </td>
        </tr>
      </table>
    </form>
  </div>
<?php endif; ?>
<!-- Confirmation Div -->
  <div id="selMsgConfirmList" class="selMsgConfirm" style="display:none;position:absolute;">
    <form name="formConfirm" id="formConfirm" method="post" action="<?php echo $this->_tpl_vars['myobj']->getCurrentUrl(); ?>
">
      <p id="confirmMessage"></p>
      <table summary="<?php echo $this->_tpl_vars['LANG']['container_to_get_confirmation']; ?>
">
        <tr>
          <td><input type="button" class="clsSubmitButton" name="confirm_action" id="confirm_action" value="<?php echo $this->_tpl_vars['LANG']['common_yes_option']; ?>
" tabindex="<?php echo $this->_tpl_vars['myobj']->getTabIndex(); ?>
" onClick="hideAllBlocks(); doRemoveAction();"/>
            &nbsp;
            <input type="button" class="clsCancelButton" name="cancel" id="cancel" value="<?php echo $this->_tpl_vars['LANG']['common_no_option']; ?>
" tabindex="<?php echo $this->_tpl_vars['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="<?php echo $this->_tpl_vars['myobj']->getCurrentUrl(); ?>
">
        	<table summary="<?php echo $this->_tpl_vars['LANG']['container_to_get_confirmation']; ?>
">
	          	<tr>
	            		<td>
					  	<input type="button" class="clsSubmitButton" name="confirm" id="confirm" onclick="deleteQuestionAttachments('<?php echo $this->_tpl_vars['CFG']['site']['relative_url']; ?>
manageAnswers.php?qid=<?php echo $this->_tpl_vars['myobj']->getFormField('qid'); ?>
', '&amp;ajax_page=true&amp;deletemoreattachments=1');chkLimit(); return hideAllBlocks();" value="<?php echo $this->_tpl_vars['LANG']['common_yes_option']; ?>
" tabindex="<?php echo smartyTabIndex(array(), $this);?>
" /> &nbsp;
		              		<input type="button" class="clsCancelButton" name="no" id="no" value="<?php echo $this->_tpl_vars['LANG']['common_no_option']; ?>
" tabindex="<?php echo smartyTabIndex(array(), $this);?>
" 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>

<?php if ($this->_tpl_vars['myobj']->isShowPageBlock('form_edit')): ?>
	<form name="selFormAskQuestion" id="selFormAskQuestion" method="post" action="<?php echo $this->_tpl_vars['myobj']->getCurrentUrl(true); ?>
" autocomplete="off" enctype="multipart/form-data">
	<div id="selQuestionEdit">
		<?php echo $this->_tpl_vars['myobj']->populateHidden($this->_tpl_vars['myobj']->form_edit['hidden_arr']); ?>

		<table class="clsCommonTable" summary="<?php echo $this->_tpl_vars['LANG']['post_your_question']; ?>
">
			<tr>
				<td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormLabelCellClass('question'); ?>
"><label for="question"><?php echo $this->_tpl_vars['LANG']['question']; ?>
</label></td>
				<td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormFieldCellClass('question'); ?>
">
					<input type="text" class="clsTextBox" name="question" id="question" maxlength="250" tabindex="<?php echo smartyTabIndex(array(), $this);?>
" value="<?php echo $this->_tpl_vars['myobj']->getFormField('question'); ?>
" />
                    <?php echo $this->_tpl_vars['myobj']->getFormFieldElementErrorTip('question'); ?>

				</td>
			</tr>
			<!-- add documents block1 -->
			<?php if ($this->_tpl_vars['CFG']['admin']['attachments_questions']['allowed'] && $this->_tpl_vars['CFG']['admin']['attachments_allowed']['count'] > 0): ?>
			<tr>
			      <td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormLabelCellClass('attachments'); ?>
">
			        <label for="attachments"><?php echo $this->_tpl_vars['LANG']['questions_your_attachments']; ?>
</label>
			       </td>
			      <td id="tdID" class="<?php echo $this->_tpl_vars['myobj']->getCSSFormFieldCellClass('attachments'); ?>
">
			      <div ></div> 
                   
				  <p id="brsBtn"></p>
                  <?php echo $this->_tpl_vars['myobj']->getFormFieldElementErrorTip('attachments'); ?>

			      <p><?php echo $this->_tpl_vars['myobj']->form_edit['attachment_allowed_tip_manual']; ?>
</p>
			      <p><?php echo $this->_tpl_vars['myobj']->form_edit['attachment_format_tip_manual']; ?>
</p>
				  <p><?php echo $this->_tpl_vars['myobj']->form_edit['attachment_size_tip_manual']; ?>
</p>
                  <?php if ($this->_tpl_vars['myobj']->getFormField('qid')): ?>
  				   <div id="uploaded_images" class="uploadOverflow">
                        <?php $_from = $this->_tpl_vars['myobj']->form_edit['getAttachments_arr']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['gAkey'] => $this->_tpl_vars['gAvalue']):
?>

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


			<div id="content">
				<div id="image_uploads" class="<?php echo $this->_tpl_vars['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>
		<?php endif; ?>
			   <!-- ends add document block1 -->
			<tr>
				<td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormLabelCellClass('descriptions'); ?>
"><label for="descriptions"><?php echo $this->_tpl_vars['LANG']['add_details']; ?>
</label></td>
				<td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormFieldCellClass('descriptions'); ?>
">
					<textarea name="descriptions" id="descriptions" maxlength="<?php echo $this->_tpl_vars['CFG']['admin']['description']['limit']; ?>
" tabindex="<?php echo smartyTabIndex(array(), $this);?>
" onFocus="updatelength(this);" onKeyUp="updatelength(this);"><?php echo $this->_tpl_vars['myobj']->form_edit['description_manual']; ?>
</textarea>
                    <?php echo $this->_tpl_vars['myobj']->getFormFieldElementErrorTip('descriptions'); ?>

					 <div id="ss" class="clsZeroColour"><span> <?php echo $this->_tpl_vars['LANG']['header_remainig']; ?>
 :</span> <span class="clsCharacterLimit"><?php echo '<script>var c = ques_des_max_len - document.getElementById(\'descriptions\').value.length;document.write(c);</script>'; ?>
</span></div>
				</td>
			</tr>
			<?php if (chkIsVideoAllowed ( 'question' ) || chkExternalVideoAllowed ( 'question' )): ?>
			<tr>
      			<td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormLabelCellClass('video'); ?>
"><label for="video"><?php echo $this->_tpl_vars['LANG']['questions_add_video_details']; ?>
</label></td>
      			<td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormFieldCellClass('video'); ?>
">
				  <?php if (chkIsVideoAllowed ( 'question' )): ?>
					<div class="clsVideoUpload clsClearfix" id="video_first" <?php echo $this->_tpl_vars['myobj']->form_edit['video']['style_add_video']; ?>
>
						<div class="clsVideoContainer">
						<a id="video_add" href="<?php echo $this->_tpl_vars['myobj']->form_edit['video_upload_url']; ?>
" onClick="<?php echo $this->_tpl_vars['myobj']->getBrowser('video_add'); ?>
"></a>
        				<?php echo $this->_tpl_vars['myobj']->getFormFieldErrorTip('question_video'); ?>

						</div>
						<div class="clsVideoDetails">
							<a href="<?php echo $this->_tpl_vars['myobj']->form_edit['video_upload_url']; ?>
" onClick="<?php echo $this->_tpl_vars['myobj']->getBrowser('video_add'); ?>
">
								<p><?php echo $this->_tpl_vars['LANG']['common_record_video']; ?>
</p>
								<p><?php echo $this->_tpl_vars['LANG']['common_using_webcams']; ?>
</p>
							</a>
						</div>
					</div>
					<div class="clsAudioUpload clsClearfix" id="video_secnd" <?php if ($this->_tpl_vars['myobj']->form_edit['video']['style_add_video'] == ''): ?> style="display:none;" <?php endif; ?>>

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

							</div>

						</div>
						<div class="clsAudioUpload clsClearfix" id="external_video_add2" <?php if ($this->_tpl_vars['myobj']->form_edit['video']['style_add_external_video'] == ''): ?> style="display:none;" <?php endif; ?>>
							<div class="clsAudioDetails clsAudioOptions">
								<div >
									<p class="clsAVDelete"><a <?php echo $this->_tpl_vars['myobj']->form_edit['video']['style_delete_external_video']; ?>
 id="external_video_delete" href="<?php echo $this->_tpl_vars['myobj']->getCurrentUrl(); ?>
" onClick="return confrimRemove('external_video', 'external_video_delete','<?php echo $this->_tpl_vars['LANG']['are_you_sure_to_delete']; ?>
');"><?php echo $this->_tpl_vars['LANG']['delete_external_video']; ?>
</a></p>
									<p class="clsAVPreview"><a <?php echo $this->_tpl_vars['myobj']->form_edit['video']['style_preview_external_video']; ?>
 id="external_video_preview" href="<?php echo $this->_tpl_vars['myobj']->form_edit['video']['external_video_preview_url']; ?>
" onClick="<?php echo $this->_tpl_vars['myobj']->getBrowser('external_video_preview'); ?>
"><?php echo $this->_tpl_vars['LANG']['preview_external_video']; ?>
</a></p>
								</div>
							</div>
						</div>
					</div>
				<?php endif; ?>
                <?php echo $this->_tpl_vars['myobj']->getFormFieldElementErrorTip('video'); ?>

                </td>
    		</tr>
    		<?php endif; ?>
			<?php if (chkIsAudioAllowed ( 'question' ) || chkExternalAudioAllowed ( 'question' )): ?>
		    <tr>
		      <td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormLabelCellClass('audio'); ?>
"><label for="audio"><?php echo $this->_tpl_vars['LANG']['questions_add_audio_details']; ?>
</label></td>
		      <td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormFieldCellClass('audio'); ?>
">
				  <?php if (chkIsAudioAllowed ( 'question' )): ?>
					<div class="clsAudioUpload clsClearfix" id="audio_first" <?php echo $this->_tpl_vars['myobj']->form_edit['audio']['style_add_audio']; ?>
>
						<div class="clsAudioContainer">
							<a id="audio_add" href="<?php echo $this->_tpl_vars['myobj']->form_edit['audio_upload_url']; ?>
" onClick="<?php echo $this->_tpl_vars['myobj']->getBrowser('audio_add'); ?>
"></a>
        					<?php echo $this->_tpl_vars['myobj']->getFormFieldErrorTip('audio'); ?>

						</div>
						<div class="clsAudioDetails">
							<div>
								<a href="<?php echo $this->_tpl_vars['myobj']->form_edit['audio_upload_url']; ?>
" onClick="<?php echo $this->_tpl_vars['myobj']->getBrowser('audio_add'); ?>
">
									<p><?php echo $this->_tpl_vars['LANG']['common_record_audio']; ?>
</p>
									<p><?php echo $this->_tpl_vars['LANG']['common_using_recorder']; ?>
</p>
								</a>
							</div>
						</div>
					</div>
					<div class="clsAudioUpload clsClearfix" id="audio_secnd" <?php if ($this->_tpl_vars['myobj']->form_edit['audio']['style_add_audio'] == ''): ?> style="display:none;" <?php endif; ?>>
						<div class="clsAudioDetails clsAudioOptions">
							<div >
								<p class="clsAVDelete"><a <?php echo $this->_tpl_vars['myobj']->form_edit['audio']['style_delete_audio']; ?>
 id="audio_delete" href="<?php echo $this->_tpl_vars['myobj']->getCurrentUrl(); ?>
" onClick="return confrimRemove('audio', 'audio_delete', '<?php echo $this->_tpl_vars['LANG']['are_you_sure_to_delete']; ?>
');"><?php echo $this->_tpl_vars['LANG']['delete_audio']; ?>
</a></p>
								<p class="clsAVPreview"><a <?php echo $this->_tpl_vars['myobj']->form_edit['audio']['style_preview_audio']; ?>
 id="audio_preview" href="<?php echo $this->_tpl_vars['myobj']->form_edit['audio']['audio_preview_url']; ?>
"  onClick="<?php echo $this->_tpl_vars['myobj']->getBrowser('audio_preview'); ?>
"><?php echo $this->_tpl_vars['LANG']['preview_audio']; ?>
</a></p>
							</div>
						</div>
					</div>
				<?php endif; ?>
				<?php if (chkExternalAudioAllowed ( 'question' )): ?>
					<div class="clsExternalUploadBox">
						<div class="clsAudioUpload clsClearfix" id="external_audio_add1" <?php echo $this->_tpl_vars['myobj']->form_edit['audio']['style_add_external_audio']; ?>
>
							<div class="clsExternalAudioContainer">
								<a id="external_audio_add" href="<?php echo $this->_tpl_vars['myobj']->form_edit['externalaudioupload_url']; ?>
" onClick="<?php echo $this->_tpl_vars['myobj']->getBrowser('external_audio_add'); ?>
"><?php echo $this->_tpl_vars['LANG']['add_external_audio']; ?>
</a>
	        					<?php echo $this->_tpl_vars['myobj']->getFormFieldErrorTip('audio'); ?>

							</div>
						</div>
						<div class="clsAudioUpload clsClearfix" id="external_audio_add2" <?php if ($this->_tpl_vars['myobj']->form_edit['audio']['style_add_external_audio'] == ''): ?> style="display:none;" <?php endif; ?>>
							<div class="clsAudioDetails clsAudioOptions">
								<div >
									<p class="clsAVDelete"><a <?php echo $this->_tpl_vars['myobj']->form_edit['audio']['style_delete_external_audio']; ?>
 id="external_audio_delete" href="<?php echo $this->_tpl_vars['myobj']->getCurrentUrl(); ?>
" onClick="return confrimRemove('external_audio', 'external_audio_delete', '<?php echo $this->_tpl_vars['LANG']['are_you_sure_to_delete']; ?>
');"><?php echo $this->_tpl_vars['LANG']['delete_external_audio']; ?>
</a></p>
									<p class="clsAVPreview"><a <?php echo $this->_tpl_vars['myobj']->form_edit['audio']['style_preview_external_audio']; ?>
 id="external_audio_preview" href="<?php echo $this->_tpl_vars['myobj']->form_edit['audio']['external_audio_preview_url']; ?>
"  onClick="<?php echo $this->_tpl_vars['myobj']->form_add['askQuestions_arr']['external_audio_onclick']; ?>
"><?php echo $this->_tpl_vars['LANG']['preview_external_audio']; ?>
</a></p>
								</div>
							</div>
						</div>
					</div>
				<?php endif; ?>
              <?php echo $this->_tpl_vars['myobj']->getFormFieldElementErrorTip('audio'); ?>

              </td>
		    </tr>
		    <?php if (chkIsPaymentAllowed ( 'payment_questions' ) || isAdmin ( )): ?>
	            <tr>
	              <td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormLabelCellClass('featured'); ?>
"><label for="featured"><?php echo $this->_tpl_vars['LANG']['questions_featured']; ?>
</label></td>
	              <td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormFieldCellClass('featured'); ?>
">
	               	<input type="checkbox" name="featured" id="featured"  tabindex="<?php echo smartyTabIndex(array(), $this);?>
" value="Yes" <?php if ($this->_tpl_vars['myobj']->getFormField('featured') == 'Yes'): ?> "checked" <?php endif; ?>><?php echo $this->_tpl_vars['LANG']['questions_add_featured']; ?>

	              <?php echo $this->_tpl_vars['myobj']->getFormFieldErrorTip('featured'); ?>
 </td>
	            </tr>
            <?php endif; ?>

		    <?php endif; ?>

		   	<tr id="selCategoryBlock">
				<td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormLabelCellClass('category'); ?>
"><label for="category"><?php echo $this->_tpl_vars['LANG']['select_category_for_question']; ?>
</label></td>
				<td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormFieldCellClass('category'); ?>
">
								<div id="selGeneralCategory">
									<select name="category" id="category" tabindex="<?php echo smartyTabIndex(array(), $this);?>
" onchange="addNewStatusMessage(this);return call_ajax_populate_sub_categories('<?php echo $this->_tpl_vars['CFG']['site']['url']; ?>
<?php echo $this->_tpl_vars['CFG']['admin']['index']['anova_module']; ?>
/questions_ajax.php', 'new=1&amp;t=<?php echo smartyTabIndex(array(), $this);?>
','subCatDiv');" onBlur="manualLiveValidation(this);return false;">
									<option value=""><?php echo $this->_tpl_vars['LANG']['common_select_choose']; ?>
</option>
                                    <?php echo $this->_tpl_vars['myobj']->generalPopulateArray($this->_tpl_vars['myobj']->categories_arr,$this->_tpl_vars['myobj']->getFormField('category')); ?>

									<?php if ($this->_tpl_vars['CFG']['admin']['question']['category_create']): ?>
									<optgroup label="<?php echo $this->_tpl_vars['LANG']['account_profile_status_new_optgroup']; ?>
">
									<option value="add"><?php echo $this->_tpl_vars['LANG']['account_profile_status_custom_add']; ?>
</option>
									</optgroup>
									<?php endif; ?>
									</select>
								</div>
								<?php echo $this->_tpl_vars['myobj']->getFormFieldElementErrorTip('category','select'); ?>

								<input type="hidden" name="new_status_hidden" id="new_status_hidden" />
							</td>
			</tr>
			<tr>
				<td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormLabelCellClass('sub_category'); ?>
"><label for="sub_category"><?php echo $this->_tpl_vars['LANG']['select_sub_category_for_question']; ?>
</label></td>
				<td id="subCatDiv" class="<?php echo $this->_tpl_vars['myobj']->getCSSFormFieldCellClass('sub_category'); ?>
">
								<div id="selGeneralCategory">
									<select name="sub_category" id="sub_category" tabindex="<?php echo smartyTabIndex(array(), $this);?>
" onchange="addNewSubStatusMessage(this);">
									<option value=""><?php echo $this->_tpl_vars['LANG']['common_select_choose']; ?>
</option>
                                    <?php if ($this->_tpl_vars['myobj']->getFormField('category')): ?>
	                                    <?php echo $this->_tpl_vars['myobj']->generalPopulateArray($this->_tpl_vars['myobj']->sub_categories_arr,$this->_tpl_vars['myobj']->getFormField('sub_category')); ?>

                                    <?php endif; ?>
									<?php if ($this->_tpl_vars['CFG']['admin']['question']['category_create']): ?>
										<optgroup label="<?php echo $this->_tpl_vars['LANG']['account_profile_status_new_optsubgroup']; ?>
">
										<option value="add"><?php echo $this->_tpl_vars['LANG']['account_profile_status_custom_subadd']; ?>
</option>
										</optgroup>
									<?php endif; ?>
									</select>
								</div>
                                <?php echo $this->_tpl_vars['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="<?php echo $this->_tpl_vars['myobj']->populateSubCategoriesCount($this->_tpl_vars['myobj']->getFormField('category'),$this->_tpl_vars['myobj']->getFormField('sub_category')); ?>
" />
							</td>
			</tr>
			<tr>
				<td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormLabelCellClass('tags'); ?>
"><label for="tags"><?php echo $this->_tpl_vars['LANG']['tags_for_questions']; ?>
</label></td>
				<td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormFieldCellClass('tags'); ?>
">
					<input type="text" class="clsTextBox" name="tags" id="tags" maxlength="20" tabindex="<?php echo smartyTabIndex(array(), $this);?>
" value="<?php echo $this->_tpl_vars['myobj']->getFormField('tags'); ?>
" />
                    <?php echo $this->_tpl_vars['myobj']->getFormFieldElementErrorTip('tags'); ?>

				</td>
			</tr>
			<?php if ($this->_tpl_vars['CFG']['admin']['answer_publish_option']['allowed'] && ! $this->_tpl_vars['CFG']['admin']['question_auto_publish']['allowed']): ?>
                <tr>
                    <td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormLabelCellClass('publish'); ?>
"><label for="publish"><?php echo $this->_tpl_vars['LANG']['question_publish_allanswers']; ?>
</label></td>
                    <td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormFieldCellClass('publish'); ?>
">
                        <input type="radio" name="publish" id="status_yes" value="Yes"<?php echo $this->_tpl_vars['myobj']->isCheckedRadio('publish','Yes'); ?>
 /><label for="status_yes"><?php echo $this->_tpl_vars['LANG']['common_yes_option']; ?>
</label>
                        <input type="radio" name="publish" id="status_no" value="No"<?php echo $this->_tpl_vars['myobj']->isCheckedRadio('publish','No'); ?>
 /><label for="status_no"><?php echo $this->_tpl_vars['LANG']['common_no_option']; ?>
</label>
                        <?php echo $this->_tpl_vars['myobj']->getFormFieldElementErrorTip('publish'); ?>

                    </td>
                </tr>
			<?php endif; ?>
			<tr>
				<td></td>
				<td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormFieldCellClass('submit'); ?>
">
					<input type="hidden" name="ques_user_id" value="<?php echo $this->_tpl_vars['myobj']->getFormField('ques_user_id'); ?>
" tabindex="<?php echo smartyTabIndex(array(), $this);?>
" />
					<input type="submit" class="clsSubmitButton" name="submit" id="submit" tabindex="<?php echo smartyTabIndex(array(), $this);?>
" value="<?php echo $this->_tpl_vars['LANG']['common_update']; ?>
" />
					&nbsp;&nbsp;
					<input type="submit" class="clsCancelButton" name="cancel" id="cancel" tabindex="<?php echo smartyTabIndex(array(), $this);?>
" value="<?php echo $this->_tpl_vars['LANG']['common_cancel']; ?>
" />
				</td>
			</tr>
		</table>
		<input type="hidden" name="qid" value="<?php echo $this->_tpl_vars['myobj']->getFormField('qid'); ?>
" />
	</div>
	</form>
    <?php echo '
		<script language="javascript" type="text/javascript">
			needLiveValidation(\'question\',Array(\'Presence\'));
			needLiveValidation(\'descriptions\',Array(\'Presence\'));
			var videoPreviewUrl = \''; ?>
<?php echo $this->_tpl_vars['myobj']->form_edit['video']['video_default_preview_url']; ?>
<?php echo '\';
			var audioPreviewUrl = \''; ?>
<?php echo $this->_tpl_vars['myobj']->form_edit['audio']['audio_default_preview_url']; ?>
<?php echo '\';
			var video_not_encoded_info = \''; ?>
<?php echo $this->_tpl_vars['myobj']->form_edit['video']['video_not_encoded_info']; ?>
<?php echo '\';
			var externalVideoPreviewUrl = \''; ?>
<?php echo $this->_tpl_vars['myobj']->form_edit['video']['external_video_preview_url']; ?>
<?php echo '\';
            var audio_not_encoded_info = "'; ?>
<?php echo $this->_tpl_vars['myobj']->form_edit['audio']['audio_not_encoded_info']; ?>
<?php echo '";
			var externalAudioPreviewUrl = \'{literal}{$myobj->form_edit.audio.external_audio_preview_url}{literal}\';
        </script>
    '; ?>

<?php endif; ?>

<?php if ($this->_tpl_vars['myobj']->isShowPageBlock('show_form_search')): ?>

		 <form name="searchMemberForum" id="searchMemberForum" method="post" action="<?php echo $this->_tpl_vars['myobj']->getCurrentUrl(false); ?>
" autocomplete="off">
   			 <table class="clsCommonTable" summary="<?php echo $this->_tpl_vars['LANG']['member_tbl_summary']; ?>
">
				  <tr>
					<td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormLabelCellClass('search_name'); ?>
"><label for="search_name"><?php echo $this->_tpl_vars['LANG']['search']; ?>
</label></td>
					<td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormFieldCellClass('search_name'); ?>
">
					  <input type="text" class="clsTextBox" name="search_name" id="search_name" tabindex="<?php echo smartyTabIndex(array(), $this);?>
" value="<?php echo $this->_tpl_vars['myobj']->getFormField('search_name'); ?>
" /><?php echo $this->_tpl_vars['myobj']->getFormFieldElementErrorTip('search_name'); ?>
</td>
				  </tr>
				  <tr>
					<td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormLabelCellClass('search_cat'); ?>
"><label for="search_cat"><?php echo $this->_tpl_vars['LANG']['member_search_cat']; ?>
</label></td>
					<td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormFieldCellClass('search_cat'); ?>
">
					  <select class="clsCommonListBox" name="search_cat" id="search_cat" tabindex="<?php echo smartyTabIndex(array(), $this);?>
" >
                        <?php echo $this->_tpl_vars['myobj']->generalPopulateArray($this->_tpl_vars['myobj']->populateSearchOptions_arr,$this->_tpl_vars['myobj']->getFormField('search_cat')); ?>

					  </select><?php echo $this->_tpl_vars['myobj']->getFormFieldElementErrorTip('search_cat'); ?>

					</td>
				  </tr>
				  <tr>
					<td></td>
					<td class="<?php echo $this->_tpl_vars['myobj']->getCSSFormFieldCellClass('submit'); ?>
">
						<input type="submit" class="clsSubmitButton" name="go" tabindex="<?php echo smartyTabIndex(array(), $this);?>
" value="<?php echo $this->_tpl_vars['LANG']['common_go']; ?>
" />
						<input type="reset" class="clsCancelButton" name="reset" tabindex="<?php echo smartyTabIndex(array(), $this);?>
" value="<?php echo $this->_tpl_vars['LANG']['common_reset']; ?>
" />
					</td>
				  </tr>
				</table>
  </form>

<?php endif; ?>
<?php if ($this->_tpl_vars['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="<?php echo $this->_tpl_vars['myobj']->getCUrrentUrl(); ?>
" autocomplete="off">
        <table class="clsCommonTable" summary="<?php echo $this->_tpl_vars['LANG']['member_tbl_summary']; ?>
">
          <tr>
            <td>
		 	<input type="submit" class="clsSubmitButton" name="yes" id="yes" value="<?php echo $this->_tpl_vars['LANG']['common_yes_option']; ?>
" tabindex="<?php echo smartyTabIndex(array(), $this);?>
" />
              	&nbsp;
              	<input type="button" class="clsCancelButton" name="no" id="no" value="<?php echo $this->_tpl_vars['LANG']['common_no_option']; ?>
" tabindex="<?php echo smartyTabIndex(array(), $this);?>
" 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="<?php echo $this->_tpl_vars['myobj']->getFormField('search_name'); ?>
"/>
      	<input type="hidden" name="search_cat" id="search_cat" value="<?php echo $this->_tpl_vars['myobj']->getFormField('search_cat'); ?>
" />
		<?php echo $this->_tpl_vars['myobj']->populateHidden($this->_tpl_vars['myobj']->list_records_confirm_arr); ?>

      </form>
  </div>

    <?php if ($this->_tpl_vars['myobj']->isResultsFound()): ?>
         <form name="selMemberForum" id="selMemberForum" method="post" action="<?php echo $this->_tpl_vars['myobj']->getCUrrentUrl(); ?>
" autocomplete="off">

            <?php if ($this->_tpl_vars['CFG']['admin']['navigation']['top']): ?>
                <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'pagination.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
            <?php endif; ?>

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

                    </td>
                    <td><?php echo $this->_tpl_vars['lrValue']['getCategoryName']; ?>
</td>
                    <td><?php echo $this->_tpl_vars['lrValue']['tags']; ?>
</td>
					<?php if ($this->_tpl_vars['CFG']['admin']['questions_module']['voting']): ?>
					 <td><?php echo $this->_tpl_vars['lrValue']['votes']; ?>
</td>
					<?php endif; ?>
                    <td><?php echo $this->_tpl_vars['lrValue']['display_name_manual']; ?>
</td>
                    <td>
                        <?php echo $this->_tpl_vars['lrValue']['total_answer']; ?>
<p>
                        <?php if (( chkIsVideoAllowed ( 'answer' ) || chkExternalVideoAllowed ( 'answer' ) ) && $this->_tpl_vars['lrValue']['total_videos'] > 0): ?>
                            <span><a href="<?php echo $this->_tpl_vars['CFG']['site']['relative_url']; ?>
viewAnswers.php?qid=<?php echo $this->_tpl_vars['lrValue']['ques_id']; ?>
"><img src="<?php echo $this->_tpl_vars['CFG']['site']['url']; ?>
design/templates/<?php echo $this->_tpl_vars['CFG']['html']['template']['default']; ?>
/images/icon-video.png" alt="<?php echo $this->_tpl_vars['LANG']['questions_video_available']; ?>
" /></a></span>
                        <?php endif; ?>
                        <?php if (( chkIsAudioAllowed ( 'answer' ) || chkExternalAudioAllowed ( 'answer' ) ) && $this->_tpl_vars['lrValue']['total_audios'] > 0): ?>
                            <span><a href="<?php echo $this->_tpl_vars['CFG']['site']['relative_url']; ?>
viewAnswers.php?qid=<?php echo $this->_tpl_vars['lrValue']['ques_id']; ?>
"><img src="<?php echo $this->_tpl_vars['CFG']['site']['url']; ?>
design/templates/<?php echo $this->_tpl_vars['CFG']['html']['template']['default']; ?>
/images/icon-audio.png" alt="<?php echo $this->_tpl_vars['LANG']['common_audio_available']; ?>
" /></a></span>
                        <?php endif; ?></p>
                    </td>
                    <td><a id="selAbuseDetails<?php echo $this->_tpl_vars['lrValue']['ques_id']; ?>
" href="manageAbuseContent.php?qid=<?php echo $this->_tpl_vars['lrValue']['ques_id']; ?>
" onclick="return openAnovaAjaxWindow('selAbuseDetails<?php echo $this->_tpl_vars['lrValue']['ques_id']; ?>
');"><?php echo $this->_tpl_vars['lrValue']['abuse_count']; ?>
</a></td>
                    <td class="clsPortCount"><?php echo $this->_tpl_vars['lrValue']['status']; ?>
</td>
                    <td>
                        <?php if ($this->_tpl_vars['lrValue']['date_asked']): ?>
                            <?php echo $this->_tpl_vars['myobj']->getTimeDiffernceFormat($this->_tpl_vars['lrValue']['date_asked']); ?>

                        <?php endif; ?>
                    </td>
                    <td class="clsEditDeleteVideoAudio">
                      <p>  <a href="manageAnswers.php?qid=<?php echo $this->_tpl_vars['lrValue']['ques_id']; ?>
"><?php echo $this->_tpl_vars['LANG']['common_edit']; ?>
</a></p>
                    </td>
                  </tr>
            	<?php endforeach; endif; unset($_from); ?>

              <tr>
                <td colspan="11"  class="clsButtonAlignment <?php echo $this->_tpl_vars['myobj']->getCSSFormFieldCellClass('submit'); ?>
">
                    <select class="clsCommonListBox" name="action" id="action" tabindex="<?php echo smartyTabIndex(array(), $this);?>
" >
                        <?php echo $this->_tpl_vars['myobj']->generalPopulateArray($this->_tpl_vars['myobj']->action_arr,$this->_tpl_vars['myobj']->getFormField('action')); ?>

                  </select>
                  &nbsp;
                  <input type="button" class="clsSubmitButton" name="todo" id="todo" onclick="getMultiCheckBoxValue('selMemberForum', 'checkall', '<?php echo $this->_tpl_vars['LANG']['select_a_question']; ?>
');if(multiCheckValue!='')getAction()" value="<?php echo $this->_tpl_vars['LANG']['common_go']; ?>
" tabindex="<?php echo smartyTabIndex(array(), $this);?>
" />
                </td>
              </tr>
            </table>
			<?php echo $this->_tpl_vars['myobj']->populateHiddenFormFields($this->_tpl_vars['myobj']->list_records_confirm_arr); ?>

            <?php if ($this->_tpl_vars['CFG']['admin']['navigation']['bottom']): ?>
                <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'pagination.tpl', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
            <?php endif; ?>
		</form>
    <?php else: ?>
          <div id="selMsgAlert">
                <p><?php echo $this->_tpl_vars['LANG']['common_no_records_found']; ?>
</p>
          </div>
    <?php endif; ?>
<?php endif; ?>
</div>
<?php if ($this->_tpl_vars['myobj']->isShowPageBlock('form_edit') && $this->_tpl_vars['CFG']['admin']['attachments_questions']['allowed']): ?>
	<?php echo '
		<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>
	'; ?>

<?php endif; ?>