<div id="selForumTopicCreate">
	<h2 class="clsForumTopicCreateTitle"><span>
		<a href="forums.php">{$LANG.forumlistall_title_index}</a>
		&nbsp;-&nbsp;
		<a href="forumsTopics.php?forum_id={$myobj->getFormField('forum_id')}">
			{$myobj->forum_details_arr.forum_title}</a>
		&nbsp;-&nbsp;
			{$LANG.forumstopic_topic_start}
	</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 id="selLeftNavigation">
		{include file='information.tpl'}
		{if $myobj->isShowPageBlock('form_create_topic')}
		{literal}
			<script language="javascript" type="text/javascript">
				var videoPreviewUrl = {/literal}'{$myobj->form_create_topic_arr.manageForums_arr.video_default_preview_url}'{literal};
				var audioPreviewUrl = {/literal}'{$myobj->form_create_topic_arr.manageForums_arr.audio_default_preview_url}'{literal};
				var video_not_encoded_info = {/literal}'{$myobj->form_create_topic_arr.manageForums_arr.video_not_encoded_info}'{literal};
				var externalVideoPreviewUrl = {/literal}'{$myobj->form_create_topic_arr.manageForums_arr.external_video_preview_url}'{literal};
				var audio_not_encoded_info = {/literal}'{$myobj->form_create_topic_arr.manageForums_arr.audio_not_encoded_info}'{literal};
				var externalAudioPreviewUrl = {/literal}'{$myobj->form_create_topic_arr.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.forumstopic_tbl_summary}" class="clsRichTextTable">
						<tr>
							<td class="{$myobj->getCSSFormLabelCellClass('forum_topic')}"><label for="forum_topic">{$LANG.common_subject}</label>
							{$myobj->ShowHelpTip('forum_topic')}
							</td>
							<td class="{$myobj->getCSSFormFieldCellClass('forum_topic')}">
								<input type="text" class="clsTextBox {$myobj->getCSSFormFieldElementClass('forum_topic')}" name="forum_topic" id="forum_topic" maxlength="200" tabindex="{smartyTabIndex}" value="{$myobj->getFormField('forum_topic')}" />
								{$myobj->getFormFieldElementErrorTip('forum_topic')}
							</td>
						</tr>

						 <tr>
							<td  class="{$myobj->getCSSFormFieldCellClass('forum_response')}" colspan="2">
								{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}{$myobj->getFormFieldElementErrorTip('forum_response')}
							</td>
						</tr>

						{if $CFG.admin.forums.response_publish_option.allowed and !$CFG.admin.forums.auto_publish.allowed}
							<tr>
								<td class="{$myobj->getCSSFormLabelCellClass('publish')}"><label for="publish">{$LANG.forumstopic_publish_allresponses}</label>
									{$myobj->ShowHelpTip('publish_response')}
								</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>
								</td>{$myobj->getFormFieldElementErrorTip('publish')}
							</tr>
						{/if}
						</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')} clsQuestionVideo">
		        			{if chkVideoModuleAllowed('forumresponse')}
								<div class="clsVideoUpload clsClearfix" id="video_first" {$myobj->form_create_topic_arr.manageForums_arr.style_add_video}>
									<div class="clsVideoContainer">
									<a id="video_add" href="{$myobj->form_create_topic_arr.manageForums_arr.video_upload_url}" onClick="{$myobj->getBrowser('video_add')}"></a>
			        				{$myobj->getFormFieldErrorTip('question_video')}
									</div>
									<div class="clsVideoDetails">
										<a href="{$myobj->form_create_topic_arr.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->form_create_topic_arr.manageForums_arr.style_add_video==''} style="display:none;" {/if}>

									<div class="clsAudioDetails clsAudioOptions">
										<div >
											<p class="clsAVDelete"><a {$myobj->form_create_topic_arr.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->form_create_topic_arr.manageForums_arr.style_preview_video} id="video_preview" href="{$myobj->form_create_topic_arr.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 clsClearfix" id="external_video_add1" {$myobj->form_create_topic_arr.manageForums_arr.style_add_external_video}>
										<div class="clsExternalVideoContainer">
											<a {$myobj->form_create_topic_arr.manageForums_arr.style_add_external_video} id="external_video_add" href="{$myobj->form_create_topic_arr.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 clsClearfix" id="external_video_add2" {if $myobj->form_create_topic_arr.manageForums_arr.style_add_external_video==''} style="display:none;" {/if}>
										<div class="clsAudioDetails clsAudioOptions">
											<div >
												<p class="clsAVDelete"><a {$myobj->form_create_topic_arr.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->form_create_topic_arr.manageForums_arr.style_preview_external_video} id="external_video_preview" href="{$myobj->form_create_topic_arr.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->form_create_topic_arr.manageForums_arr.style_add_audio}>
									<div class="clsAudioContainer">
										<a id="audio_add" href="{$myobj->form_create_topic_arr.manageForums_arr.audio_upload_url}" onClick="{$myobj->getBrowser('audio_add')}"></a>
			        					{$myobj->getFormFieldErrorTip('audio')}
									</div>
									<div class="clsAudioDetails">
										<div>
											<a href="{$myobj->form_create_topic_arr.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->form_create_topic_arr.manageForums_arr.style_add_audio==''} style="display:none;" {/if}>
									<div class="clsAudioDetails clsAudioOptions">
										<div >
											<p class="clsAVDelete"><a {$myobj->form_create_topic_arr.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->form_create_topic_arr.manageForums_arr.style_preview_audio} id="audio_preview" href="{$myobj->form_create_topic_arr.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 clsClearfix" id="external_audio_add1" {$myobj->form_create_topic_arr.manageForums_arr.style_add_external_audio}>
										<div class="clsExternalAudioContainer">
											<a id="external_audio_add" href="{$myobj->form_create_topic_arr.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 clsClearfix" id="external_audio_add2" {if $myobj->form_create_topic_arr.manageForums_arr.style_add_external_audio==''} style="display:none;" {/if}>
										<div class="clsAudioDetails clsAudioOptions">
											<div >
												<p class="clsAVDelete"><a {$myobj->form_create_topic_arr.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->form_create_topic_arr.manageForums_arr.style_preview_external_audio} id="external_audio_preview" href="{$myobj->form_create_topic_arr.manageForums_arr.external_audio_preview_url}"  onClick="{$myobj->form_create_topic_arr.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->form_create_topic_arr.populateHidden)}
						<tr>
							<td></td>
							<td class="{$myobj->getCSSFormFieldCellClass('submit')}" >
								<input type="submit" class="clsSubmitButton" name="forumstopic_submit" id="forumstopic_submit" tabindex="{smartyTabIndex}" value="{$LANG.common_submit}" />
								&nbsp;&nbsp;
								<input type="submit" class="clsCancelButton" name="forumstopic_cancel" id="forumstopic_cancel" tabindex="{smartyTabIndex}" value="{$LANG.common_cancel}" />
							</td>
						</tr>
					</table>
					<input type="hidden" name="forum_id" id="forum_id" value="{$myobj->getFormField('forum_id')}" />
					<input type="hidden" name="topic_id" id="topic_id" value="{$myobj->getFormField('topic_id')}" />
					<input type="hidden" name="response_id" id="response_id" value="{$myobj->getFormField('response_id')}" />
				</form>
			</div>
			{literal}
				<script language="javascript" type="text/javascript">
					needLiveValidation('forum_topic',Array('Presence'));
				</script>
			{/literal}
		{/if}
	</div>
</div>