스마트 에디터 2.8.2 버젼을 개인홈피에 적용을 할려고 합니다.
관련링크
본문
현재 작업중인 페이지에서 Textarea 값이 넘어가지 않아 문의를 드립니다.
소스입니다.
<?
###############################################################
# DB 연결 오류 체크 #
###############################################################
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
###############################################################
# DB 연결 #
###############################################################
Include_once ('./conf/dbconfig.php');
###############################################################
# 카운트 연결 #
###############################################################
Include_Once ("./counter.php");
?>
< !-- <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'> -->
< Html>
<Head>
<? include './conf/meta.php'?> <!-- Meta Tag Call -->
<Link Href='conf/style.css' Rel='stylesheet'> <!-- CSS(Cascading Style Sheets) Call -->
<Title>
<?=$AdminSetRow['hometitle']?> <!-- Title Value Call -->
</Title>
<!-- 글 작성 폼값 다음 페이지로 넘기는 스크립트 시작-->
<Script language="javascript">
function check_submit()
{
document.MyForm.action = "landqna_insert.php";
document.MyForm.submit();
}
</Script>
<!-- 글 작성 폼값 다음 페이지로 넘기는 스크립트 끝-->
<script type="text/javascript" src="../se2/js/HuskyEZCreator.js" charset="utf-8"></script>
</Head>
<Body Leftmargin='0' Topmargin='0' Marginwidth='0' Marginheight='0' Style='background-repeat:repeat-x'>
<DIV Align='Center'>
<Table Width='1000' Border='0' Cellspacing='0' Cellpadding='0'>
<TR>
<TD Align='Right'>
<? Include './conf/headmenu.php'?> <!-- Top Menu Insert -->
</TD>
</TR>
<TR>
<TD Width='110' Height='150'>
<? Include './conf/topimage.php'?> <!-- Top Image Insert -->
</TD>
</TR>
<TR>
<TD>
<Table Width='100%' Border='0' Cellspacing='0' Cellpadding='0'>
<TR>
<TD Width='150' ROWspan='4' Valign='Top'>
<!--SubMenu Start-->
<Table Width='100%' Border='0' Cellspacing='0' Cellpadding='0'>
<TR>
<TD>
<IMG SRC='./images/submenu04.jpg'>
</TD>
</TR>
<TR>
<TD>
<A Href='customer.php'><Img Src='./images/submenu0401.jpg'>
</TD>
</TR>
<TR>
<TD Height='1' Bgcolor='#DDDDDD'></TD>
</TR>
<TR>
<TD>
<A Href='./landnews.php'><Img Src='./images/submenu0402.jpg'></A>
</TD>
</TR>
<TR>
<TD Height='1' Bgcolor='#DDDDDD'></TD>
</TR>
<TR>
<TD>
<A Href='./landqna.php'><Img Src='./images/submenu0403_on.jpg'></A>
</TD>
</TR>
<TR>
<TD Height='1' Bgcolor='#DDDDDD'></TD>
</TR>
</Table>
<!--SubMenu END-->
</TD>
<TD Width='1' ROWspan='4' Valign='Top' Bgcolor='#DDDDDD'></TD>
<TD Align='Right' Height='20'>
<Img Src='./images/home_icon.gif'> 홈 > 고객센터 > 문의사항
</TD>
</TR>
<TR>
<TD Height='1' BGColor='#DDDDDD'></TD>
</TR>
<TR>
<TD Align='Center'>
<IMG SRC='./images/contenttitle0403.jpg'>
</TD>
</TR>
<TR>
<TD Align='Center' Valign='TOP' Height='200'>
<!-- 입력된 값을 다음 페이지로 넘기기 위해 FORM을 만든다. -->
<Form Name='MyForm' Method='POST'>
<!-- 입력 부분 -->
<Table Width='700' Border='0' Cellpadding='0' Cellspacing='0'>
<TR>
<TD Colspan='3' Height='2' Bgcolor='#FD411C'></TD>
</TR>
<TR>
<TD Height='25' Colspan='3' Align='Center' Bgcolor='#FFFFFF'>
<B>Test 글 작성 하기</B>
</TD>
</TR>
<TR>
<TD Colspan='3' BGColor='#FFB3A5' Height='1'></TD>
</TR>
<TR>
<TD Width='10'>
<TD Width='70' Height='25' Align='Left' Bgcolor='#FFFFFF'>
<IMG SRC='../images/dotgreen.jpg' Width='10'><B>이름</B>
</TD>
<TD Width='590' Align='Left'>
<INPUT Type='Text' Name='name' Size='20' Maxlength='10'>
</TD>
</TR>
<TR>
<TD Colspan='3' BGColor='#FFB3A5' Height='1'></TD>
</TR>
<TR>
<TD Width='10'>
<TD Height='25' Align='Left' Bgcolor='#FFFFFF'>
<IMG SRC='../images/dotgreen.jpg' Width='10'><B>이메일</B>
</TD>
<TD Align='Left'>
<INPUT Type='Text' Name='email' Size='20' Maxlength='25'>
</TD>
</TR>
<TR>
<TD Colspan='3' BGColor='#FFB3A5' Height='1'></TD>
</TR>
<TR>
<TD Width='10'>
<TD Height='25' Align='Left' Bgcolor='#FFFFFF'>
<IMG SRC='../images/dotgreen.jpg' Width='10'><B>비밀번호</B>
</TD>
<TD Align='Left'>
<INPUT Type='password' Name='pass' Size='8' Maxlength='8'>(수정,삭제시 반드시 필요)
</TD>
</TR>
<TR>
<TD Colspan='3' BGColor='#FFB3A5' Height='1'></TD>
</TR>
<TR>
<TD Width='10'>
<TD Height='25' Align='Left' Bgcolor='#FFFFFF'>
<IMG SRC='../images/dotgreen.jpg' Width='10'><B>제 목</B>
</TD>
<TD Align='Left'>
<INPUT Type='Text' Name='title' Size='60' Maxlength='35'>
</TD>
</TR>
<TR>
<TD Colspan='3' BGColor='#FFB3A5' Height='1'></TD>
</TR>
<TR>
<TD Colspan='3' Height='5'></TD>
</TR>
<TR>
<TD Width='10'>
<TD Height='25' Align='Left' Bgcolor='#FFFFFF'>
<IMG SRC='../images/dotgreen.jpg' Width='10'><B>내 용</B>
</TD>
<TD Align='Left'>
<Textarea name="content" id="ir1" rows="10" cols="95">
</textarea><script type="text/javascript">
function submitContents(elClickedObj) {
// 에디터의 내용이 textarea에 적용된다.
oEditors.getById["ir1"].exec("UPDATE_CONTENTS_FIELD", []);
// 에디터의 내용에 대한 값 검증은 이곳에서
// document.getElementById("ir1").value를 이용해서 처리한다.
try {
elClickedObj.form.submit();
}
catch(e) {}
</Script>
<script type="text/javascript">
var oEditors = [];
nhn.husky.EZCreator.createInIFrame({
oAppRef: oEditors,
elPlaceHolder: "ir1",
sSkinURI: "../se2/SmartEditor2Skin.html",
fCreator: "createSEditor2"
});
</script>
</TD>
</TR>
<TR>
<TD Colspan='3' Height='5'></TD>
</TR>
<TR>
<TD Colspan='3' Height='2' Bgcolor='#FD411C'></TD>
<TR>
<TD Colspan='3' Align='Center'>
<Table>
<TR>
<TD Height='20' Align='Left'></TD>
</TR>
<TR>
<TD Colspan='10' Align='Center'><A Href="javascript:check_submit();"><Img Src='../images/bt_insert.jpg'></A></TD>
</TR>
</TABLE>
</TD>
</TR>
</Table>
</Form>
<!-- 입력 부분 끝 -->
<!--Main END-->
<!-- Main 하단 여백 시작-->
<Table Width='100%'>
<TR>
<TD Height='100' Colspan='2'></TD>
</TR>
</Table>
<!-- Main 하단 여백 끝-->
</TD>
</TR>
</Table>
</TD>
</TR>
<!-- Footer Start -->
<TR>
<TD Align='Center'>
<? Include ('./conf/footer.php');?> <!-- Footer Insert -->
</TD>
</TR>
<!-- Footer End -->
</Table>
</Body>
< /Html>
답변을 작성하시기 전에 로그인 해주세요.