쇼핑몰 관리자 ckeditor 적용
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
<?
|
<?
|
||||||
$sub_menu = "400700";
|
$sub_menu = "400700";
|
||||||
|
define('G4_EDITOR', 1);
|
||||||
include_once("./_common.php");
|
include_once("./_common.php");
|
||||||
include_once ("$g4[path]/lib/cheditor4.lib.php");
|
|
||||||
|
|
||||||
auth_check($auth[$sub_menu], "w");
|
auth_check($auth[$sub_menu], "w");
|
||||||
|
|
||||||
@ -12,17 +12,17 @@ sql_query($sql, false);
|
|||||||
|
|
||||||
$html_title = "내용";
|
$html_title = "내용";
|
||||||
|
|
||||||
if ($w == "u")
|
if ($w == "u")
|
||||||
{
|
{
|
||||||
$html_title .= " 수정";
|
$html_title .= " 수정";
|
||||||
$readonly = " readonly";
|
$readonly = " readonly";
|
||||||
|
|
||||||
$sql = " select * from $g4[yc4_content_table] where co_id = '$co_id' ";
|
$sql = " select * from $g4[yc4_content_table] where co_id = '$co_id' ";
|
||||||
$co = sql_fetch($sql);
|
$co = sql_fetch($sql);
|
||||||
if (!$co[co_id])
|
if (!$co[co_id])
|
||||||
alert("등록된 자료가 없습니다.");
|
alert("등록된 자료가 없습니다.");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$html_title .= " 입력";
|
$html_title .= " 입력";
|
||||||
$co[co_html] = 2;
|
$co[co_html] = 2;
|
||||||
@ -34,9 +34,6 @@ include_once ("$g4[admin_path]/admin.head.php");
|
|||||||
|
|
||||||
<?=subtitle($html_title)?><p>
|
<?=subtitle($html_title)?><p>
|
||||||
|
|
||||||
<script src="<?=$g4[cheditor4_path]?>/cheditor.js"></script>
|
|
||||||
<?=cheditor1('co_content', '100%', '350');?>
|
|
||||||
|
|
||||||
<table cellpadding=0 cellspacing=0 width=100%>
|
<table cellpadding=0 cellspacing=0 width=100%>
|
||||||
<form name=frmcontentform method=post action="./contentformupdate.php" enctype="MULTIPART/FORM-DATA" onsubmit="return frmcontentform_check(this);">
|
<form name=frmcontentform method=post action="./contentformupdate.php" enctype="MULTIPART/FORM-DATA" onsubmit="return frmcontentform_check(this);">
|
||||||
<input type=hidden name=w value='<? echo $w?>'>
|
<input type=hidden name=w value='<? echo $w?>'>
|
||||||
@ -59,7 +56,7 @@ include_once ("$g4[admin_path]/admin.head.php");
|
|||||||
<input type=hidden name=co_html value=1>
|
<input type=hidden name=co_html value=1>
|
||||||
<tr>
|
<tr>
|
||||||
<td>내용</td>
|
<td>내용</td>
|
||||||
<td style='padding-top:5px; padding-bottom:5px;'><?=cheditor2('co_content', $co[co_content]);?></td>
|
<td style='padding-top:5px; padding-bottom:5px;'><?=editor_html('co_content', $co[co_content]);?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class=ht>
|
<tr class=ht>
|
||||||
<td>상단 파일 경로</td>
|
<td>상단 파일 경로</td>
|
||||||
@ -110,12 +107,12 @@ include_once ("$g4[admin_path]/admin.head.php");
|
|||||||
|
|
||||||
|
|
||||||
<script language="javascript">
|
<script language="javascript">
|
||||||
function frmcontentform_check(f)
|
function frmcontentform_check(f)
|
||||||
{
|
{
|
||||||
errmsg = "";
|
errmsg = "";
|
||||||
errfld = "";
|
errfld = "";
|
||||||
|
|
||||||
<?=cheditor3('co_content');?>
|
<?=get_editor_js('co_content');?>
|
||||||
|
|
||||||
check_field(f.co_id, "ID를 입력하세요.");
|
check_field(f.co_id, "ID를 입력하세요.");
|
||||||
check_field(f.co_subject, "제목을 입력하세요.");
|
check_field(f.co_subject, "제목을 입력하세요.");
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<?
|
<?
|
||||||
$sub_menu = "400710";
|
$sub_menu = "400710";
|
||||||
|
define('G4_EDITOR', 1);
|
||||||
include_once("./_common.php");
|
include_once("./_common.php");
|
||||||
include_once ("$g4[path]/lib/cheditor4.lib.php");
|
|
||||||
|
|
||||||
auth_check($auth[$sub_menu], "w");
|
auth_check($auth[$sub_menu], "w");
|
||||||
|
|
||||||
@ -10,7 +10,7 @@ $html_title = "FAQ 상세";
|
|||||||
$sql = " select * from $g4[yc4_faq_master_table] where fm_id = '$fm_id' ";
|
$sql = " select * from $g4[yc4_faq_master_table] where fm_id = '$fm_id' ";
|
||||||
$fm = sql_fetch($sql);
|
$fm = sql_fetch($sql);
|
||||||
|
|
||||||
if ($w == "u")
|
if ($w == "u")
|
||||||
{
|
{
|
||||||
$html_title .= " 수정";
|
$html_title .= " 수정";
|
||||||
$readonly = " readonly";
|
$readonly = " readonly";
|
||||||
@ -21,7 +21,7 @@ if ($w == "u")
|
|||||||
|
|
||||||
$fa[fa_subject] = htmlspecialchars2($fa[fa_subject]);
|
$fa[fa_subject] = htmlspecialchars2($fa[fa_subject]);
|
||||||
$fa[fa_content] = htmlspecialchars2($fa[fa_content]);
|
$fa[fa_content] = htmlspecialchars2($fa[fa_content]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$html_title .= " 입력";
|
$html_title .= " 입력";
|
||||||
|
|
||||||
@ -33,10 +33,6 @@ include_once ("$g4[admin_path]/admin.head.php");
|
|||||||
|
|
||||||
<?=subtitle($html_title)?><p>
|
<?=subtitle($html_title)?><p>
|
||||||
|
|
||||||
<script src="<?=$g4[cheditor4_path]?>/cheditor.js"></script>
|
|
||||||
<?=cheditor1('fa_subject', '100%', '150');?>
|
|
||||||
<?=cheditor1('fa_content', '100%', '300');?>
|
|
||||||
|
|
||||||
<form name=frmfaqform method=post action='./faqformupdate.php' onsubmit="return frmfaqform_check(this);" style="margin:0px;">
|
<form name=frmfaqform method=post action='./faqformupdate.php' onsubmit="return frmfaqform_check(this);" style="margin:0px;">
|
||||||
<input type=hidden name=w value='<? echo $w ?>'>
|
<input type=hidden name=w value='<? echo $w ?>'>
|
||||||
<input type=hidden name=fm_id value='<? echo $fm_id ?>'>
|
<input type=hidden name=fm_id value='<? echo $fm_id ?>'>
|
||||||
@ -53,20 +49,20 @@ include_once ("$g4[admin_path]/admin.head.php");
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td> 질문
|
<td> 질문
|
||||||
<? if ($w == 'u') {
|
<? if ($w == 'u') {
|
||||||
echo icon("보기", "$g4[shop_path]/faq.php?fm_id=$fm_id");
|
echo icon("보기", "$g4[shop_path]/faq.php?fm_id=$fm_id");
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
<td style='padding-top:5px; padding-bottom:5px;'>
|
<td style='padding-top:5px; padding-bottom:5px;'>
|
||||||
<?=cheditor2('fa_subject', $fa[fa_subject]);?>
|
<?=editor_html('fa_subject', $fa[fa_subject]);?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td> 답변</td>
|
<td> 답변</td>
|
||||||
<td style='padding-top:5px; padding-bottom:5px;'>
|
<td style='padding-top:5px; padding-bottom:5px;'>
|
||||||
<?=cheditor2('fa_content', $fa[fa_content]);?>
|
<?=editor_html('fa_content', $fa[fa_content]);?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td colspan=2 height=1 bgcolor=CCCCCC><td></tr>
|
<tr><td colspan=2 height=1 bgcolor=CCCCCC><td></tr>
|
||||||
@ -78,7 +74,7 @@ include_once ("$g4[admin_path]/admin.head.php");
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script language="javascript">
|
<script language="javascript">
|
||||||
function frmfaqform_check(f)
|
function frmfaqform_check(f)
|
||||||
{
|
{
|
||||||
errmsg = "";
|
errmsg = "";
|
||||||
errfld = "";
|
errfld = "";
|
||||||
@ -86,15 +82,15 @@ function frmfaqform_check(f)
|
|||||||
//check_field(f.fa_subject, "제목을 입력하세요.");
|
//check_field(f.fa_subject, "제목을 입력하세요.");
|
||||||
//check_field(f.fa_content, "내용을 입력하세요.");
|
//check_field(f.fa_content, "내용을 입력하세요.");
|
||||||
|
|
||||||
if (errmsg != "")
|
if (errmsg != "")
|
||||||
{
|
{
|
||||||
alert(errmsg);
|
alert(errmsg);
|
||||||
errfld.focus();
|
errfld.focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
<?=cheditor3('fa_subject');?>
|
<?=get_editor_js('fa_subject');?>
|
||||||
<?=cheditor3('fa_content');?>
|
<?=get_editor_js('fa_content');?>
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
<?
|
<?
|
||||||
$sub_menu = "400710";
|
$sub_menu = "400710";
|
||||||
|
define('G4_EDITOR', 1);
|
||||||
include_once("./_common.php");
|
include_once("./_common.php");
|
||||||
include_once ("$g4[path]/lib/cheditor4.lib.php");
|
|
||||||
|
|
||||||
auth_check($auth[$sub_menu], "w");
|
auth_check($auth[$sub_menu], "w");
|
||||||
|
|
||||||
$html_title = "FAQ";
|
$html_title = "FAQ";
|
||||||
if ($w == "u")
|
if ($w == "u")
|
||||||
{
|
{
|
||||||
$html_title .= " 수정";
|
$html_title .= " 수정";
|
||||||
$readonly = " readonly";
|
$readonly = " readonly";
|
||||||
@ -14,8 +14,8 @@ if ($w == "u")
|
|||||||
$sql = " select * from $g4[yc4_faq_master_table] where fm_id = '$fm_id' ";
|
$sql = " select * from $g4[yc4_faq_master_table] where fm_id = '$fm_id' ";
|
||||||
$fm = sql_fetch($sql);
|
$fm = sql_fetch($sql);
|
||||||
if (!$fm[fm_id]) alert("등록된 자료가 없습니다.");
|
if (!$fm[fm_id]) alert("등록된 자료가 없습니다.");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$html_title .= " 입력";
|
$html_title .= " 입력";
|
||||||
}
|
}
|
||||||
@ -26,10 +26,6 @@ include_once ("$g4[admin_path]/admin.head.php");
|
|||||||
|
|
||||||
<?=subtitle($html_title)?>
|
<?=subtitle($html_title)?>
|
||||||
|
|
||||||
<script src="<?=$g4[cheditor4_path]?>/cheditor.js"></script>
|
|
||||||
<?=cheditor1('fm_head_html', '100%', '150');?>
|
|
||||||
<?=cheditor1('fm_tail_html', '100%', '150');?>
|
|
||||||
|
|
||||||
<form name=frmfaqmasterform method=post action="./faqmasterformupdate.php" onsubmit="return frmfaqmasterform_check(this);"enctype="MULTIPART/FORM-DATA" style="margin:0px;">
|
<form name=frmfaqmasterform method=post action="./faqmasterformupdate.php" onsubmit="return frmfaqmasterform_check(this);"enctype="MULTIPART/FORM-DATA" style="margin:0px;">
|
||||||
<input type=hidden name=w value='<? echo $w ?>'>
|
<input type=hidden name=w value='<? echo $w ?>'>
|
||||||
<input type=hidden name=fm_id value='<? echo $fm_id ?>'>
|
<input type=hidden name=fm_id value='<? echo $fm_id ?>'>
|
||||||
@ -41,12 +37,12 @@ include_once ("$g4[admin_path]/admin.head.php");
|
|||||||
<td>제목</td>
|
<td>제목</td>
|
||||||
<td>
|
<td>
|
||||||
<input type=text class=ed name=fm_subject size=60 value='<?=get_text($fm[fm_subject]) ?>' required itemname="제목">
|
<input type=text class=ed name=fm_subject size=60 value='<?=get_text($fm[fm_subject]) ?>' required itemname="제목">
|
||||||
<?
|
<?
|
||||||
if ($w == 'u')
|
if ($w == 'u')
|
||||||
{
|
{
|
||||||
echo icon("보기", "$g4[shop_path]/faq.php?fm_id=$fm_id");
|
echo icon("보기", "$g4[shop_path]/faq.php?fm_id=$fm_id");
|
||||||
echo " <a href='./faqlist.php?fm_id=$fm_id'>상세보기</a>";
|
echo " <a href='./faqlist.php?fm_id=$fm_id'>상세보기</a>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -82,11 +78,11 @@ include_once ("$g4[admin_path]/admin.head.php");
|
|||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>상단 내용</td>
|
<td>상단 내용</td>
|
||||||
<td style='padding-top:5px; padding-bottom:5px;'><?=cheditor2('fm_head_html', $fm[fm_head_html]);?></td>
|
<td style='padding-top:5px; padding-bottom:5px;'><?=editor_html('fm_head_html', $fm[fm_head_html]);?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>하단 내용</td>
|
<td>하단 내용</td>
|
||||||
<td style='padding-top:5px; padding-bottom:5px;'><?=cheditor2('fm_tail_html', $fm[fm_tail_html]);?></td>
|
<td style='padding-top:5px; padding-bottom:5px;'><?=editor_html('fm_tail_html', $fm[fm_tail_html]);?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td colspan=2 height=1 bgcolor=CCCCCC></td></tr>
|
<tr><td colspan=2 height=1 bgcolor=CCCCCC></td></tr>
|
||||||
</table>
|
</table>
|
||||||
@ -97,10 +93,10 @@ include_once ("$g4[admin_path]/admin.head.php");
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script language="javascript">
|
<script language="javascript">
|
||||||
function frmfaqmasterform_check(f)
|
function frmfaqmasterform_check(f)
|
||||||
{
|
{
|
||||||
<?=cheditor3('fm_head_html');?>
|
<?=get_editor_js('fm_head_html');?>
|
||||||
<?=cheditor3('fm_tail_html');?>
|
<?=get_editor_js('fm_tail_html');?>
|
||||||
}
|
}
|
||||||
|
|
||||||
document.frmfaqmasterform.fm_subject.focus();
|
document.frmfaqmasterform.fm_subject.focus();
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
<?
|
<?
|
||||||
$sub_menu = "400630";
|
$sub_menu = "400630";
|
||||||
|
define('G4_EDITOR', 1);
|
||||||
include_once("./_common.php");
|
include_once("./_common.php");
|
||||||
include_once ("$g4[path]/lib/cheditor4.lib.php");
|
|
||||||
|
|
||||||
auth_check($auth[$sub_menu], "w");
|
auth_check($auth[$sub_menu], "w");
|
||||||
|
|
||||||
$html_title = "이벤트 ";
|
$html_title = "이벤트 ";
|
||||||
|
|
||||||
if ($w == "u")
|
if ($w == "u")
|
||||||
{
|
{
|
||||||
$html_title .= " 수정";
|
$html_title .= " 수정";
|
||||||
$readonly = " readonly";
|
$readonly = " readonly";
|
||||||
@ -16,8 +16,8 @@ if ($w == "u")
|
|||||||
$ev = sql_fetch($sql);
|
$ev = sql_fetch($sql);
|
||||||
if (!$ev[ev_id])
|
if (!$ev[ev_id])
|
||||||
alert("등록된 자료가 없습니다.");
|
alert("등록된 자료가 없습니다.");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$html_title .= " 입력";
|
$html_title .= " 입력";
|
||||||
$ev[ev_skin] = 0;
|
$ev[ev_skin] = 0;
|
||||||
@ -37,10 +37,6 @@ include_once ("$g4[admin_path]/admin.head.php");
|
|||||||
|
|
||||||
<?=subtitle($html_title);?><p>
|
<?=subtitle($html_title);?><p>
|
||||||
|
|
||||||
<script src="<?=$g4[cheditor4_path]?>/cheditor.js"></script>
|
|
||||||
<?=cheditor1('ev_head_html', '100%', '150');?>
|
|
||||||
<?=cheditor1('ev_tail_html', '100%', '150');?>
|
|
||||||
|
|
||||||
<form name=feventform method=post action="./itemeventformupdate.php" enctype="MULTIPART/FORM-DATA" style="margin:0px;" onsubmit="return feventform_check(this);">
|
<form name=feventform method=post action="./itemeventformupdate.php" enctype="MULTIPART/FORM-DATA" style="margin:0px;" onsubmit="return feventform_check(this);">
|
||||||
<input type=hidden name=w value='<? echo $w ?>'>
|
<input type=hidden name=w value='<? echo $w ?>'>
|
||||||
<input type=hidden name=ev_id value='<? echo $ev_id ?>'>
|
<input type=hidden name=ev_id value='<? echo $ev_id ?>'>
|
||||||
@ -54,10 +50,10 @@ include_once ("$g4[admin_path]/admin.head.php");
|
|||||||
<tr class=ht>
|
<tr class=ht>
|
||||||
<td>이벤트번호</td>
|
<td>이벤트번호</td>
|
||||||
<td>
|
<td>
|
||||||
<?
|
<?
|
||||||
echo $ev_id;
|
echo $ev_id;
|
||||||
echo " ";
|
echo " ";
|
||||||
echo icon("보기", "$g4[shop_path]/event.php?ev_id=$ev[ev_id]");
|
echo icon("보기", "$g4[shop_path]/event.php?ev_id=$ev[ev_id]");
|
||||||
?>
|
?>
|
||||||
</tr>
|
</tr>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
@ -100,7 +96,7 @@ include_once ("$g4[admin_path]/admin.head.php");
|
|||||||
<td>사용</td>
|
<td>사용</td>
|
||||||
<td>
|
<td>
|
||||||
<select name=ev_use>
|
<select name=ev_use>
|
||||||
<option value='1'>예
|
<option value='1'>예
|
||||||
<option value='0'>아니오
|
<option value='0'>아니오
|
||||||
</select>
|
</select>
|
||||||
<script>document.all.ev_use.value='<?=$ev[ev_use]?>';</script>
|
<script>document.all.ev_use.value='<?=$ev[ev_use]?>';</script>
|
||||||
@ -164,11 +160,11 @@ include_once ("$g4[admin_path]/admin.head.php");
|
|||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>상단 내용</td>
|
<td>상단 내용</td>
|
||||||
<td colspan=3 align=right style='padding-top:5px; padding-bottom:5px;'><?=cheditor2('ev_head_html', $ev[ev_head_html]);?></td>
|
<td colspan=3 align=right style='padding-top:5px; padding-bottom:5px;'><?=editor_html('ev_head_html', $ev[ev_head_html]);?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>하단 내용</td>
|
<td>하단 내용</td>
|
||||||
<td colspan=3 align=right style='padding-top:5px; padding-bottom:5px;'><?=cheditor2('ev_tail_html', $ev[ev_tail_html]);?></td>
|
<td colspan=3 align=right style='padding-top:5px; padding-bottom:5px;'><?=editor_html('ev_tail_html', $ev[ev_tail_html]);?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td colspan=4 height=1 bgcolor=#CCCCCC></td></tr>
|
<tr><td colspan=4 height=1 bgcolor=#CCCCCC></td></tr>
|
||||||
</table>
|
</table>
|
||||||
@ -180,10 +176,10 @@ include_once ("$g4[admin_path]/admin.head.php");
|
|||||||
|
|
||||||
|
|
||||||
<script language="javascript">
|
<script language="javascript">
|
||||||
function feventform_check(f)
|
function feventform_check(f)
|
||||||
{
|
{
|
||||||
<?=cheditor3('ev_head_html');?>
|
<?=get_editor_js('ev_head_html');?>
|
||||||
<?=cheditor3('ev_tail_html');?>
|
<?=get_editor_js('ev_tail_html');?>
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<?
|
<?
|
||||||
$sub_menu = "400300";
|
$sub_menu = "400300";
|
||||||
|
define('G4_EDITOR', 1);
|
||||||
include_once("./_common.php");
|
include_once("./_common.php");
|
||||||
include_once ($g4['path'].'/lib/cheditor4.lib.php');
|
|
||||||
|
|
||||||
auth_check($auth[$sub_menu], "w");
|
auth_check($auth[$sub_menu], "w");
|
||||||
|
|
||||||
@ -76,11 +76,6 @@ $g4[title] = $html_title;
|
|||||||
include_once ("$g4[admin_path]/admin.head.php");
|
include_once ("$g4[admin_path]/admin.head.php");
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<script src="<?=$g4[cheditor4_path]?>/cheditor.js"></script>
|
|
||||||
<?=cheditor1('it_explan', '100%', '350');?>
|
|
||||||
<?=cheditor1('it_head_html', '100%', '150');?>
|
|
||||||
<?=cheditor1('it_tail_html', '100%', '150');?>
|
|
||||||
|
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
<!--
|
<!--
|
||||||
ul { margin: 0; padding: 0; list-style: none; }
|
ul { margin: 0; padding: 0; list-style: none; }
|
||||||
@ -312,7 +307,7 @@ ul { margin: 0; padding: 0; list-style: none; }
|
|||||||
<input type=hidden name=it_explan_html value=1>
|
<input type=hidden name=it_explan_html value=1>
|
||||||
<tr>
|
<tr>
|
||||||
<td>상품설명</td>
|
<td>상품설명</td>
|
||||||
<td colspan=3 style='padding-top:7px; padding-bottom:7px;'><?=cheditor2('it_explan', $it[it_explan]);?></td>
|
<td colspan=3 style='padding-top:7px; padding-bottom:7px;'><?=editor_html('it_explan', $it[it_explan]);?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<? if($default['de_send_cost_case'] == "개별배송") { ?>
|
<? if($default['de_send_cost_case'] == "개별배송") { ?>
|
||||||
<tr class="ht">
|
<tr class="ht">
|
||||||
@ -792,11 +787,11 @@ ul { margin: 0; padding: 0; list-style: none; }
|
|||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>상품상단내용 <?=help("상품상세설명 페이지 상단에 출력하는 HTML 내용입니다.", -150);?></td>
|
<td>상품상단내용 <?=help("상품상세설명 페이지 상단에 출력하는 HTML 내용입니다.", -150);?></td>
|
||||||
<td colspan=3 align=right style='padding-top:7px; padding-bottom:7px;'><?=cheditor2('it_head_html', $it[it_head_html]);?></td>
|
<td colspan=3 align=right style='padding-top:7px; padding-bottom:7px;'><?=editor_html('it_head_html', $it[it_head_html]);?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>상품하단내용 <?=help("상품상세설명 페이지 상단에 출력하는 HTML 내용입니다.", -150);?></td>
|
<td>상품하단내용 <?=help("상품상세설명 페이지 상단에 출력하는 HTML 내용입니다.", -150);?></td>
|
||||||
<td colspan=3 align=right style='padding-top:7px; padding-bottom:7px;'><?=cheditor2('it_tail_html', $it[it_tail_html]);?></td>
|
<td colspan=3 align=right style='padding-top:7px; padding-bottom:7px;'><?=editor_html('it_tail_html', $it[it_tail_html]);?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<? if ($w == "u") { ?>
|
<? if ($w == "u") { ?>
|
||||||
@ -918,9 +913,9 @@ function fitemformcheck(f)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
<?=cheditor3('it_explan')."\n";?>
|
<?=get_editor_js('it_explan');?>
|
||||||
<?=cheditor3('it_head_html')."\n";?>
|
<?=get_editor_js('it_head_html');?>
|
||||||
<?=cheditor3('it_tail_html')."\n";?>
|
<?=get_editor_js('it_tail_html');?>
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,17 +1,17 @@
|
|||||||
<?
|
<?
|
||||||
$sub_menu = "400650";
|
$sub_menu = "400650";
|
||||||
|
define('G4_EDITOR', 1);
|
||||||
include_once("./_common.php");
|
include_once("./_common.php");
|
||||||
include_once ("$g4[path]/lib/cheditor4.lib.php");
|
|
||||||
|
|
||||||
auth_check($auth[$sub_menu], "w");
|
auth_check($auth[$sub_menu], "w");
|
||||||
|
|
||||||
$sql = " select *
|
$sql = " select *
|
||||||
from $g4[yc4_item_ps_table] a
|
from $g4[yc4_item_ps_table] a
|
||||||
left join $g4[member_table] b on (a.mb_id = b.mb_id)
|
left join $g4[member_table] b on (a.mb_id = b.mb_id)
|
||||||
left join $g4[yc4_item_table] c on (a.it_id = c.it_id)
|
left join $g4[yc4_item_table] c on (a.it_id = c.it_id)
|
||||||
where is_id = '$is_id' ";
|
where is_id = '$is_id' ";
|
||||||
$is = sql_fetch($sql);
|
$is = sql_fetch($sql);
|
||||||
if (!$is[is_id])
|
if (!$is[is_id])
|
||||||
alert("등록된 자료가 없습니다.");
|
alert("등록된 자료가 없습니다.");
|
||||||
|
|
||||||
$name = get_sideview($is[mb_id], get_text($is[is_name]), $is[mb_email], $is[mb_homepage]);
|
$name = get_sideview($is[mb_id], get_text($is[is_name]), $is[mb_email], $is[mb_homepage]);
|
||||||
@ -21,8 +21,6 @@ include_once ("$g4[admin_path]/admin.head.php");
|
|||||||
|
|
||||||
$qstr = "page=$page&sort1=$sort1&sort2=$sort2";
|
$qstr = "page=$page&sort1=$sort1&sort2=$sort2";
|
||||||
?>
|
?>
|
||||||
<script src="<?=$g4[cheditor4_path]?>/cheditor.js"></script>
|
|
||||||
<?=cheditor1('is_content', '100%', '350');?>
|
|
||||||
|
|
||||||
<?=subtitle($g4[title])?>
|
<?=subtitle($g4[title])?>
|
||||||
|
|
||||||
@ -58,7 +56,7 @@ $qstr = "page=$page&sort1=$sort1&sort2=$sort2";
|
|||||||
<td>
|
<td>
|
||||||
<!-- <?=textarea_size("is_content")?>
|
<!-- <?=textarea_size("is_content")?>
|
||||||
<textarea id='is_content' name="is_content" rows="10" style='width:99%;' class=ed required itemname='내용'><? echo get_text($is[is_content]) ?></textarea> -->
|
<textarea id='is_content' name="is_content" rows="10" style='width:99%;' class=ed required itemname='내용'><? echo get_text($is[is_content]) ?></textarea> -->
|
||||||
<?=cheditor2('is_content', $is['is_content']);?>
|
<?=editor_html('is_content', $is['is_content']);?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height=25>
|
<tr height=25>
|
||||||
@ -76,7 +74,7 @@ $qstr = "page=$page&sort1=$sort1&sort2=$sort2";
|
|||||||
<script>
|
<script>
|
||||||
function fitemps_submit(f)
|
function fitemps_submit(f)
|
||||||
{
|
{
|
||||||
<? echo cheditor3('is_content'); ?>
|
<? echo get_editor_js('is_content'); ?>
|
||||||
|
|
||||||
f.action="./itempsformupdate.php";
|
f.action="./itempsformupdate.php";
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@ -1,19 +1,19 @@
|
|||||||
<?
|
<?
|
||||||
$sub_menu = "400720";
|
$sub_menu = "400720";
|
||||||
|
define('G4_EDITOR', 1);
|
||||||
include_once("./_common.php");
|
include_once("./_common.php");
|
||||||
include_once ("$g4[path]/lib/cheditor4.lib.php");
|
|
||||||
|
|
||||||
auth_check($auth[$sub_menu], "w");
|
auth_check($auth[$sub_menu], "w");
|
||||||
|
|
||||||
$html_title = "새창";
|
$html_title = "새창";
|
||||||
if ($w == "u")
|
if ($w == "u")
|
||||||
{
|
{
|
||||||
$html_title .= " 수정";
|
$html_title .= " 수정";
|
||||||
$sql = " select * from $g4[yc4_new_win_table] where nw_id = '$nw_id' ";
|
$sql = " select * from $g4[yc4_new_win_table] where nw_id = '$nw_id' ";
|
||||||
$nw = sql_fetch($sql);
|
$nw = sql_fetch($sql);
|
||||||
if (!$nw[nw_id]) alert("등록된 자료가 없습니다.");
|
if (!$nw[nw_id]) alert("등록된 자료가 없습니다.");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$html_title .= " 입력";
|
$html_title .= " 입력";
|
||||||
$nw[nw_disable_hours] = 24;
|
$nw[nw_disable_hours] = 24;
|
||||||
@ -30,9 +30,6 @@ include_once ("$g4[admin_path]/admin.head.php");
|
|||||||
|
|
||||||
<?=subtitle($html_title)?>
|
<?=subtitle($html_title)?>
|
||||||
|
|
||||||
<script src="<?=$g4[cheditor4_path]?>/cheditor.js"></script>
|
|
||||||
<?=cheditor1('nw_content', '100%', '350');?>
|
|
||||||
|
|
||||||
<form name=frmnewwin method=post action="./newwinformupdate.php" onsubmit="return frmnewwin_check(this);" style="margin:0px;">
|
<form name=frmnewwin method=post action="./newwinformupdate.php" onsubmit="return frmnewwin_check(this);" style="margin:0px;">
|
||||||
<input type=hidden name=w value='<? echo $w ?>'>
|
<input type=hidden name=w value='<? echo $w ?>'>
|
||||||
<input type=hidden name=nw_id value='<? echo $nw_id ?>'>
|
<input type=hidden name=nw_id value='<? echo $nw_id ?>'>
|
||||||
@ -75,7 +72,7 @@ include_once ("$g4[admin_path]/admin.head.php");
|
|||||||
<input type=hidden name=nw_content_html value=1>
|
<input type=hidden name=nw_content_html value=1>
|
||||||
<tr>
|
<tr>
|
||||||
<td>내용</td>
|
<td>내용</td>
|
||||||
<td colspan=3 style='padding-top:5px; padding-bottom:5px;'><?=cheditor2('nw_content', $nw[nw_content]);?></td>
|
<td colspan=3 style='padding-top:5px; padding-bottom:5px;'><?=editor_html('nw_content', $nw[nw_content]);?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td colspan=4 height=1 bgcolor=CCCCCC></td></tr>
|
<tr><td colspan=4 height=1 bgcolor=CCCCCC></td></tr>
|
||||||
</table>
|
</table>
|
||||||
@ -86,12 +83,12 @@ include_once ("$g4[admin_path]/admin.head.php");
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script language="javascript">
|
<script language="javascript">
|
||||||
function frmnewwin_check(f)
|
function frmnewwin_check(f)
|
||||||
{
|
{
|
||||||
errmsg = "";
|
errmsg = "";
|
||||||
errfld = "";
|
errfld = "";
|
||||||
|
|
||||||
<?=cheditor3('nw_content');?>
|
<?=get_editor_js('nw_content');?>
|
||||||
|
|
||||||
check_field(f.nw_subject, "제목을 입력하세요.");
|
check_field(f.nw_subject, "제목을 입력하세요.");
|
||||||
|
|
||||||
@ -99,7 +96,7 @@ function frmnewwin_check(f)
|
|||||||
alert(errmsg);
|
alert(errmsg);
|
||||||
errfld.focus();
|
errfld.focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user