하나의 게시판에 dhtml 2개 달려면~~ 정보
하나의 게시판에 dhtml 2개 달려면~~본문
댓글 전체
adm/board_form.php 요 파일 참조해보세요~
핵심소스만~
<?=include_once ("$g4[path]/lib/cheditor4.lib.php");?>
<?=cheditor1('bo_content_head', '100%', '200');?>
<?=cheditor1('bo_content_tail', '100%', '200');?>
<!--글나오는부분 -->
<?=cheditor2('bo_content_head', $board[bo_content_head]);?>
<?=cheditor2('bo_content_tail', $board[bo_content_tail]);?>
<script type="text/javascript">
<?=cheditor3('bo_content_head')."\n";?>
<?=cheditor3('bo_content_tail')."\n";?>
</script>
게시판일 경우
상단...
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if ($is_dhtml_editor) {
include_once("$g4[path]/lib/cheditor4.lib.php");
echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
echo cheditor1('wr_content', '100%', '250');
echo cheditor1('wr_1', '100%', '250'); //추가
}
?>
<!-- 글 입력창 --!>
<tr>
<td class='write_head' style='padding:5 0 5 10;' colspan='2'>
<? if ($is_dhtml_editor) { ?>
<?=cheditor2('wr_content', $content);?>
....
<tr>
<td class='write_head' style='padding:5 0 5 10;' colspan='2'>
<?=cheditor2('wr_1', $write[wr_1]);?> <!-- 추가 -->
</td>
</tr>
<!-- 하단 javascript 란 --!>
<?
if ($is_dhtml_editor) echo cheditor3('wr_content');
if ($is_dhtml_editor) echo cheditor3('wr_1'); //추가
?>
핵심소스만~
<?=include_once ("$g4[path]/lib/cheditor4.lib.php");?>
<?=cheditor1('bo_content_head', '100%', '200');?>
<?=cheditor1('bo_content_tail', '100%', '200');?>
<!--글나오는부분 -->
<?=cheditor2('bo_content_head', $board[bo_content_head]);?>
<?=cheditor2('bo_content_tail', $board[bo_content_tail]);?>
<script type="text/javascript">
<?=cheditor3('bo_content_head')."\n";?>
<?=cheditor3('bo_content_tail')."\n";?>
</script>
게시판일 경우
상단...
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if ($is_dhtml_editor) {
include_once("$g4[path]/lib/cheditor4.lib.php");
echo "<script src='$g4[cheditor4_path]/cheditor.js'></script>";
echo cheditor1('wr_content', '100%', '250');
echo cheditor1('wr_1', '100%', '250'); //추가
}
?>
<!-- 글 입력창 --!>
<tr>
<td class='write_head' style='padding:5 0 5 10;' colspan='2'>
<? if ($is_dhtml_editor) { ?>
<?=cheditor2('wr_content', $content);?>
....
<tr>
<td class='write_head' style='padding:5 0 5 10;' colspan='2'>
<?=cheditor2('wr_1', $write[wr_1]);?> <!-- 추가 -->
</td>
</tr>
<!-- 하단 javascript 란 --!>
<?
if ($is_dhtml_editor) echo cheditor3('wr_content');
if ($is_dhtml_editor) echo cheditor3('wr_1'); //추가
?>