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


<h1><?=$this->lang->line('faq_h1_edit')?></h1>


<?=form_open('admin/faqedit/'.$record->faq_id)?>
<?=form_hidden('faq_id',$record->faq_id)?>
<?=form_hidden('do','update')?>

	<dl class="news_edit">
		<dt><?=$this->lang->line('faq_title')?></dt>
			<dd>
				<input type="text" value="<?=$record->faq_title?>" size="80" maxlength="128" name="faq_title" id="content_title" />
			</dd>
			<dt><?=$this->lang->line('faq_type')?></dt>
			<dd>
				<?=form_dropdown('faq_type',$types,$record->faq_type)?>
			</dd>
			<dt><?=$this->lang->line('faq_description')?></dt>
			<dd>
				<textarea cols="64" rows="2" wrap="SOFT" name="faq_short" id="faq_short"><?=$record->faq_short?></textarea>
			</dd>
			<dt><?=$this->lang->line('faq_text')?></dt>
			<dd>
				<textarea cols="64" rows="30" wrap="OFF" name="faq_text" id="faq_text"><?=$record->faq_text?></textarea>
			</dd>
			<dt></dt>
			<dd>
				<?=form_submit('ok',$this->lang->line('faq_button_save'))?>
			</dd>
	</dl>
	<div class="clear"></div>
	
	
</form>

<script type="text/javascript">
window.onload = function()
{
	var oFCKeditor = new FCKeditor( 'faq_text' ) ;
	oFCKeditor.BasePath = "/public/editor/" ;
	oFCKeditor.Height="350";
	oFCKeditor.ToolbarSet="faq_edit";
	oFCKeditor.ReplaceTextarea() ;
}
</script>
