 <script type="text/javascript" src="/public/ckeditor/ckeditor.js"></script>

<div>
	<h1>
		<?if(hun()):?>
			Új hozzászólás
		<?else:?>
			New
		<?endif;?>	
	
	</h1>
	<?//=form_open('forum/ujhsz')?>
	<?if(isset($error)):?>
		<font color="red"><strong>
		<?=$error?>
		</strong></font>
	<?endif;?>
	<form action = "http://<?=$_SERVER[SERVER_NAME]?>/forum/ujhsz" enctype="multipart/form-data" method = "POST">
	<input type="hidden" name="hozzaad" id="hozzaad" value="true" />
	<input type="hidden" name="MAX_FILE_SIZE" value="10485760"/>
	<b><?if(hun()):?>Szöveg<?else:?>Text<?endif;?>: </b><br />
	<textarea rows="10" cols="60" name="hsz" id="hsz" /><?if($hsz):?><?=$hsz?><?endif;?></textarea><br />
	<br /><b><?if(hun()):?>Kép hozzáadása<?else:?>Image<?endif;?>:</b> <input type="file" name="fkep" id ="fkep">(Max. 10MB)<br />
	<br /><input type="submit" value="OK" />
	</form>
	<?=form_open('forum/listaz/')?>
	<input type="submit" value="<?=lang('forum_megsem')?>" /><br />
	<?=form_open('forum/listaz/')?>
</div>

<?if(!hun()):?>
<script type="text/javascript">
window.onload = function()
{
	var oFCKeditor = new FCKeditor( 'hsz' ) ;
	oFCKeditor.BasePath = "/public/editor/" ;
	oFCKeditor.Height="350";
	oFCKeditor.ToolbarSet="forum_ujhsz";
	oFCKeditor.ReplaceTextarea() ;
}
</script>

<?else:?>
<div id="bottomSpace" style="display: none;"></div>
<script type="text/javascript">
	CKEDITOR.replace( 'hsz', {
		sharedSpaces :
		{
			top : 'topSpace',
			bottom : 'bottomSpace'
		},
		height: '350px'
	 } );
</script>

<?endif;?>

