{if $myobj->isShowPageBlock('forumResponseUpgrade')}
	{if chkIsPaymentAllowed('payment_forumtopic') and chkIsPaymentAlertMessageAllowed()}
	    <ul class="clsQuistionHind">
	        <li> <p>{$myobj->forumtopic_add.notifyForumTopic_arr.total_notify}</p></li>
	    </ul>
	{/if}
{/if}

<div id="selForumResponseCreate">
  <div class="clsCommonTopAnalystRoundedCorner">
  <!--rounded corners-->
  <h2 id="selForumTitle">
	<a href="{$myobj->getForumsUrl('forums')}">{$LANG.forumlistall_title_index}</a>&nbsp;-&nbsp;
	<a class="clsSecondLink" href="{$myobj->forum_topics_url}"> {$myobj->forum_topics_title}</a>&nbsp;-&nbsp;
	<a class="clsSecondLink" href="{$myobj->forum_responses_url}"> {$myobj->forum_responses_title}</a>&nbsp;-&nbsp;
			<span>{$LANG.forumsresponse_post_response}</span>
   </h2>
   <!-- Confirmation Div -->
	  	<div id="selMsgConfirm" 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="clsPopSubmitButton" name="confirm_action" id="confirm_action" value="{$LANG.common_yes_option}" tabindex="{smartyTabIndex}" onClick="hideAllBlocks(); doRemoveAction();"/>
	            		&nbsp;
	            		<input type="button" class="clsPopCancelButton" name="cancel" id="cancel" value="{$LANG.common_no_option}" tabindex="{smartyTabIndex}" onClick="return hideAllBlocks();" />
	          		</td></tr>
	      		</table>
	      		<input type="hidden" name="action" />
	    	</form>
	  	</div>

   <div class="clsShadedBg">
  <div class="lbtopanalyst">
    <div class="rbtopanalyst">
      <div class="bbtopanalyst">
        <div class="blctopanalyst">
          <div class="brctopanalyst">
            <div class="tbtopanalyst">
              <div class="tlctopanalyst">
                <div class="trctopanalyst">
                <div class="clsForumCommonRounded">


{include file='../general/information.tpl'}

{if $myobj->isShowPageBlock('form_create_response')}
		{literal}
			<script language="javascript" type="text/javascript">
				var videoPreviewUrl = {/literal}'{$myobj->response_block.manageForums_arr.video_default_preview_url}'{literal};
				var audioPreviewUrl = {/literal}'{$myobj->response_block.manageForums_arr.audio_default_preview_url}'{literal};
				var video_not_encoded_info = {/literal}'{$myobj->response_block.manageForums_arr.video_not_encoded_info}'{literal};
				var externalVideoPreviewUrl = {/literal}'{$myobj->response_block.manageForums_arr.external_video_preview_url}'{literal};
				var audio_not_encoded_info = {/literal}'{$myobj->response_block.manageForums_arr.audio_not_encoded_info}'{literal};
				var externalAudioPreviewUrl = {/literal}'{$myobj->response_block.manageForums_arr.external_audio_preview_url}'{literal};
	        </script>
		{/literal}
    <div id="selShowCreateForum">
       { if $CFG.feature.html_editor eq 'richtext' }
			<form name="selFormCreateForum" id="selFormCreateForum" method="post" action="{$myobj->getCurrentUrl(true)}" onsubmit="return getHTMLSource('rte1', 'selFormCreateForum', 'forum_response');">
		{else}
			<form name="selFormCreateForum" id="selFormCreateForum" method="post" action="{$myobj->getCurrentUrl(true)}" >
		{/if}
            <table summary="{$LANG.forumsresponse_tbl_summary}" class="clsRichTextTable">
			  <tr>
			  	<td class="{$myobj->getCSSFormFieldCellClass('forum_response')}">
                        <p><label for="response">{$LANG.forumsresponse_response}</label></p>{$myobj->ShowHelpTip('forum_topic_response')}</td>
				</tr>
				<tr>
					<td  class="{$myobj->getCSSFormFieldCellClass('forum_response')}" colspan="2">{$myobj->getFormFieldErrorTip('forum_response')}
						{if $CFG.feature.html_editor eq 'textarea'}
							<textarea name="forum_response" id="forum_response" tabindex="{smartyTabIndex}" cols="100" rows="15">{$myobj->getFormField('forum_response')}</textarea>
								<p>{$LANG.forum_put_the_html_code}</p>
						{else}
							{if (chkBrowser() ||  $CFG.feature.html_editor eq 'fckeditor') }
								{if $CFG.feature.html_editor eq 'fckeditor' || $CFG.feature.html_editor eq 'richtext'}
									{$myobj->populateHtmlEditor('forum_response')}
								{else}
									<textarea name="forum_response" id="forum_response" tabindex="{smartyTabIndex}" cols="100" rows="15">{$myobj->getFormField('forum_response')}</textarea>
								{/if}
							{else}
								<textarea name="forum_response" id="forum_response" tabindex="{smartyTabIndex}" cols="100" rows="15">{$myobj->getFormField('forum_response')}</textarea>
								<p>{$LANG.forum_put_the_html_code}</p>
							{/if}
						{/if}
					</td>
                </tr>
                 </table>
               {if chkVideoModuleAllowed('forumresponse') || chkExternalVideoModuleAllowed('forumresponse') || chkAudioModuleAllowed('forumresponse') || chkExternalAudioModuleAllowed('forumresponse')}
				<table class="clsAskQuestion clsAskQuestionUpload" summary="{$LANG.forumstopic_tbl_summary}">
					<tr>
						<td colspan="2">
							<div class="AskQuestionSubHead">{$LANG.common_attachments}</div>
						</td>
					</tr>
					<tr>
						{if chkVideoModuleAllowed('forumresponse') || chkExternalVideoModuleAllowed('forumresponse')}
		        		<td class="{$myobj->getCSSFormFieldCellClass('blog_video')} {if chkAudioModuleAllowed('forumresponse') || chkExternalAudioModuleAllowed('forumresponse')} clsQuestionVideo {/if}clsVideoUpload30">
		        			{if chkVideoModuleAllowed('forumresponse')}
								<div class="clsVideoUpload clsClearfix" id="video_first" {$myobj->response_block.manageForums_arr.style_add_video}>
									<div class="clsVideoContainer">
									<a id="video_add" href="{$myobj->response_block.manageForums_arr.video_upload_url}" onClick="{$myobj->getBrowser('video_add')}"></a>
			        				{$myobj->getFormFieldErrorTip('question_video')}
									</div>
									<div class="clsVideoDetails">
										<a href="{$myobj->response_block.manageForums_arr.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->response_block.manageForums_arr.style_add_video==''} style="display:none;" {/if}>

									<div class="clsAudioDetails clsAudioOptions">
										<div >
											<p class="clsAVDelete"><a {$myobj->response_block.manageForums_arr.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->response_block.manageForums_arr.style_preview_video} id="video_preview" href="{$myobj->response_block.manageForums_arr.video_preview_url}" onClick="{$myobj->getBrowser('video_preview')}">{$LANG.preview_video}</a></p>
										</div>
									</div>
								</div>
							{/if}
							{if chkExternalVideoModuleAllowed('forumresponse')}
								<div class="clsExternalUploadBox">
									<div class="clsVideoUpload" id="external_video_add1" {$myobj->response_block.manageForums_arr.style_add_external_video}>
										<div class="clsExternalVideoContainer">
											<a {$myobj->response_block.manageForums_arr.style_add_external_video} id="external_video_add" href="{$myobj->response_block.manageForums_arr.external_video_upload_url}" onClick="{$myobj->getBrowser('external_video_add')}">{$LANG.add_external_video}</a>
				        					{$myobj->getFormFieldErrorTip('audio')}
										</div>

									</div>
									<div class="clsAudioUpload" id="external_video_add2" {if $myobj->response_block.manageForums_arr.style_add_external_video==''} style="display:none;" {/if}>
										<div class="clsAudioDetails clsAudioOptions">
											<div >
												<p class="clsAVDelete"><a {$myobj->response_block.manageForums_arr.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->response_block.manageForums_arr.style_preview_external_video} id="external_video_preview" href="{$myobj->response_block.manageForums_arr.external_video_preview_url}" onClick="{$myobj->getBrowser('external_video_preview')}">{$LANG.preview_external_video}</a></p>
											</div>
										</div>
									</div>
								</div>
							{/if}
		        		</td>
					    {/if}
		        		{if chkAudioModuleAllowed('forumresponse') || chkExternalAudioModuleAllowed('forumresponse')}
		        		<td class="{$myobj->getCSSFormFieldCellClass('audio')}">
		        			{if chkAudioModuleAllowed('forumresponse')}
								<div class="clsAudioUpload clsClearfix" id="audio_first" {$myobj->response_block.manageForums_arr.style_add_audio}>
									<div class="clsAudioContainer">
										<a id="audio_add" href="{$myobj->response_block.manageForums_arr.audio_upload_url}" onClick="{$myobj->getBrowser('audio_add')}"></a>
			        					{$myobj->getFormFieldErrorTip('audio')}
									</div>
									<div class="clsAudioDetails">
										<div>
											<a href="{$myobj->response_block.manageForums_arr.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->response_block.manageForums_arr.style_add_audio==''} style="display:none;" {/if}>
									<div class="clsAudioDetails clsAudioOptions">
										<div >
											<p class="clsAVDelete"><a {$myobj->response_block.manageForums_arr.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->response_block.manageForums_arr.style_preview_audio} id="audio_preview" href="{$myobj->response_block.manageForums_arr.audio_preview_url}"  onClick="{$myobj->getBrowser('audio_preview')}">{$LANG.preview_audio}</a></p>
										</div>
									</div>
								</div>
							{/if}
							{if chkExternalAudioModuleAllowed('forumresponse')}
								<div class="clsExternalUploadBox">
									<div class="clsAudioUpload" id="external_audio_add1" {$myobj->response_block.manageForums_arr.style_add_external_audio}>
										<div class="clsExternalAudioContainer">
											<a id="external_audio_add" href="{$myobj->response_block.manageForums_arr.external_audio_upload_url}" onClick="{$myobj->getBrowser('external_audio_add')}">{$LANG.add_external_audio}</a>
				        					{$myobj->getFormFieldErrorTip('audio')}
										</div>
									</div>
									<div class="clsAudioUpload" id="external_audio_add2" {if $myobj->response_block.manageForums_arr.style_add_external_audio==''} style="display:none;" {/if}>
										<div class="clsAudioDetails clsAudioOptions">
											<div >
												<p class="clsAVDelete"><a {$myobj->response_block.manageForums_arr.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->response_block.manageForums_arr.style_preview_external_audio} id="external_audio_preview" href="{$myobj->response_block.manageForums_arr.external_audio_preview_url}"  onClick="{$myobj->response_block.manageForums_arr.external_audio_onclick}">{$LANG.preview_external_audio}</a></p>
											</div>
										</div>
									</div>
								</div>
							{/if}
						</td>
						{/if}
					</tr>
				</table>
				{/if}
				<table>
						{$myobj->populateHidden($myobj->response_block.populateHidden)}
			    <tr>
					<td></td>
                    <td class="{$myobj->getCSSFormFieldCellClass('submit')}">
                        <div class="clsSubmitLeft">
						<div class="clsSubmitRight">
						<input type="submit" class="clsSubmitButton" name="forumsresponse_submit" id="forumsresponse_submit" tabindex="{smartyTabIndex}" value="{$LANG.common_submit}" />
                      </div></div>
					  <div class="clsCancelLeft">
						<div class="clsCancelRight">
                        <input type="submit" class="clsCancelButton" name="forumsresponse_cancel" id="forumsresponse_cancel" tabindex="{smartyTabIndex}" value="{$LANG.common_cancel}" />
						</div></div>
                    </td>
                </tr>
            </table>
        </form>
    </div>
{/if}
                     </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <!--end of rounded corners-->
</div>
</tr>
</div>
</div>
