<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"	%>
<%@ page import="com.csc.library.entry.HelpEntry,com.csc.library.system.*,com.csc.library.utilities.*"%>
<%@ page import="com.csc.library.entry.*,com.csc.library.database.*,com.csc.library.session.*"  %>
<jsp:useBean id="main" class="com.csc.library.system.Task" scope="page"/>
<%
	main.setChannel(request,response);
	main.checkProfile();
		CheckNull chk = new CheckNull(); 
	UProfile uprofile=main.getUProfile();
	String xx="";
	if(!chk.chkNullString(request.getParameter("EditorDefault"),"").equals(""))
		//xx =new String(request.getParameter("EditorDefault").getBytes(),"UTF-8"); 
		xx=chk.chkNullString(request.getParameter("EditorDefault"),"");
String cmd="";
	if(!chk.chkNullString(request.getParameter("__cmd"),"").equals(""))
cmd =new String(request.getParameter("__cmd").getBytes(),"UTF-8"); 

	if( uprofile == null ){
		response.sendRedirect("../hr/EMPVIEW/INDEX.jsp");
	}else{
		
		DbRecord rec=new InitialRecord(uprofile).getDbRecord("mfckeditor");
		rec.setColumn("*");
		rec.set("FCKID",(String)uprofile.get("companyid"));
		rec.set("FCKDATA",xx);
		if(cmd.equals("save"))rec.save();

	}
	%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta name="robots" content="noindex, nofollow" />
		<link href="sample.css" rel="stylesheet" type="text/css" />
		<link rel="shortcut icon" href="../fckeditor.gif"
				type="image/x-icon" />
	</head>

	<body>
<%=xx%>
	</body>
</html>