<div id="selForumResponseCreate">
	<h2 class="clsForumResponseCreateTitle"><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;
		<a href="forumsResponses.php?forum_id={$myobj->getFormField('forum_id')}&topic_id={$myobj->getFormField('topic_id')}">
			{$myobj->forum_topic_details_arr.forum_topic}</a>
		&nbsp;-&nbsp;
		{$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 id="selLeftNavigation">
  		{include file='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="selShowCreateResponse">
				{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>{$myobj->ShowHelpTip('forum_topic_response')}<label for="response">{$LANG.forumsresponse_response}</label></p></td>
						<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>
					  </tr>
						<tr>
							<td colspan="2" class="{$myobj->getCSSFormFieldCellClass('response_status')}">
								<input type="radio" class="clsCheckRadio" name="response_status" id="status_yes" value="Yes" {$myobj->isCheckedRadio('response_status', 'Yes')} tabindex="{smartyTabIndex}"  />
								<label for="status_yes">{$LANG.common_display_active}</label>
								<input type="radio" class="clsCheckRadio" name="response_status" id="status_no" value="No" {$myobj->isCheckedRadio('response_status', 'No')} tabindex="{smartyTabIndex}"  />
								<label for="status_no">{$LANG.common_display_inactive}</label>
							</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')} clsQuestionVideo">
				        			{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 clsClearfix" 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 clsClearfix" 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 clsClearfix" 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 clsClearfix" 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 class="{$myobj->getCSSFormFieldCellClass('submit')}" colspan="2">
								<input type="submit" class="clsSubmitButton" name="forumsresponse_submit" id="forumsresponse_submit" tabindex="{smartyTabIndex}" value="{$LANG.common_submit}" />
								&nbsp;&nbsp;
								<input type="submit" class="clsCancelButton" name="forumsresponse_cancel" id="forumsresponse_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>
		{/if}
	</div>
</div>