관리자 경로 수정
This commit is contained in:
@ -1,38 +1,38 @@
|
||||
<?
|
||||
$sub_menu = "400700";
|
||||
include_once("./_common.php");
|
||||
$sub_menu = '400700';
|
||||
include_once('./_common.php');
|
||||
include_once ("$g4[path]/lib/cheditor4.lib.php");
|
||||
|
||||
auth_check($auth[$sub_menu], "w");
|
||||
|
||||
// 상단, 하단 파일경로 필드 추가
|
||||
$sql = " ALTER TABLE `$g4[yc4_content_table]` ADD `co_include_head` VARCHAR( 255 ) NOT NULL ,
|
||||
$sql = " ALTER TABLE `{$g4['yc4_content_table']}` ADD `co_include_head` VARCHAR( 255 ) NOT NULL ,
|
||||
ADD `co_include_tail` VARCHAR( 255 ) NOT NULL ";
|
||||
sql_query($sql, false);
|
||||
|
||||
$html_title = "내용";
|
||||
|
||||
if ($w == "u")
|
||||
if ($w == "u")
|
||||
{
|
||||
$html_title .= " 수정";
|
||||
$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);
|
||||
if (!$co[co_id])
|
||||
alert("등록된 자료가 없습니다.");
|
||||
}
|
||||
else
|
||||
if (!$co['co_id'])
|
||||
alert('등록된 자료가 없습니다.');
|
||||
}
|
||||
else
|
||||
{
|
||||
$html_title .= " 입력";
|
||||
$co[co_html] = 2;
|
||||
$html_title .= ' 입력';
|
||||
$co['co_html'] = 2;
|
||||
}
|
||||
|
||||
$g4[title] = $html_title;
|
||||
include_once ("$g4[admin_path]/admin.head.php");
|
||||
$g4['title'] = $html_title;
|
||||
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');?>
|
||||
@ -46,14 +46,14 @@ include_once ("$g4[admin_path]/admin.head.php");
|
||||
<tr class=ht>
|
||||
<td>ID</td>
|
||||
<td>
|
||||
<input type=text class=ed name=co_id size=20 max=20 value='<? echo $co[co_id] ?>' <? echo $readonly ?> required itemname='ID'>
|
||||
<input type=text class=ed name=co_id size=20 max=20 value='<? echo $co['co_id'] ?>' <? echo $readonly ?> required itemname='ID'>
|
||||
<? if ($w == 'u') { echo icon("보기", "$g4[shop_path]/content.php?co_id=$co_id"); } ?>
|
||||
(영문자, 숫자, _ 만 가능; 20자 이내; 공란 불가)
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=ht>
|
||||
<td>제목</td>
|
||||
<td><input type=text class=ed name=co_subject style='width:99%;' value='<?=htmlspecialchars2($co[co_subject])?>' required itemname='제목'></td>
|
||||
<td><input type=text class=ed name=co_subject style='width:99%;' value='<?=htmlspecialchars2($co['co_subject'])?>' required itemname='제목'></td>
|
||||
</tr>
|
||||
|
||||
<input type=hidden name=co_html value=1>
|
||||
@ -63,21 +63,21 @@ include_once ("$g4[admin_path]/admin.head.php");
|
||||
</tr>
|
||||
<tr class=ht>
|
||||
<td>상단 파일 경로</td>
|
||||
<td colspan=3><input type=text class=ed name=co_include_head size=60 value="<?=$co[co_include_head]?>"> <?=help("내용별로 상단+좌측의 내용이 다를 경우 상단+좌측 디자인 파일의 경로를 입력합니다.<p>입력이 없으면 기본 상단 파일을 사용합니다.<p>상단 내용과 달리 PHP 코드를 사용할 수 있습니다.");?></td>
|
||||
<td colspan=3><input type=text class=ed name=co_include_head size=60 value="<?=$co['co_include_head']?>"> <?=help("내용별로 상단+좌측의 내용이 다를 경우 상단+좌측 디자인 파일의 경로를 입력합니다.<p>입력이 없으면 기본 상단 파일을 사용합니다.<p>상단 내용과 달리 PHP 코드를 사용할 수 있습니다.");?></td>
|
||||
</tr>
|
||||
<tr class=ht>
|
||||
<td>하단 파일 경로</td>
|
||||
<td colspan=3><input type=text class=ed name=co_include_tail size=60 value="<?=$co[co_include_tail]?>"> <?=help("내용별로 하단+우측의 내용이 다를 경우 하단+우측 디자인 파일의 경로를 입력합니다.<p>입력이 없으면 기본 하단 파일을 사용합니다.<p>하단 내용과 달리 PHP 코드를 사용할 수 있습니다.");?></td>
|
||||
<td colspan=3><input type=text class=ed name=co_include_tail size=60 value="<?=$co['co_include_tail']?>"> <?=help("내용별로 하단+우측의 내용이 다를 경우 하단+우측 디자인 파일의 경로를 입력합니다.<p>입력이 없으면 기본 하단 파일을 사용합니다.<p>하단 내용과 달리 PHP 코드를 사용할 수 있습니다.");?></td>
|
||||
</tr>
|
||||
<tr class=ht>
|
||||
<td>상단이미지</td>
|
||||
<td>
|
||||
<input type=file class=ed name=co_himg size=40>
|
||||
<?
|
||||
$himg = "$g4[path]/data/content/{$co[co_id]}_h";
|
||||
$himg = G4_DATA_PATH."/content/{$co['co_id']}_h";
|
||||
if (file_exists($himg)) {
|
||||
echo "<input type=checkbox name=co_himg_del value='1'>삭제";
|
||||
$himg_str = "<img src='$himg' border=0>";
|
||||
$himg_str = "<img src='".G4_DATA_URL."/content/{$co['co_id']}_h' border=0>";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
@ -89,10 +89,10 @@ include_once ("$g4[admin_path]/admin.head.php");
|
||||
<td>
|
||||
<input type=file class=ed name=co_timg size=40>
|
||||
<?
|
||||
$timg = "$g4[path]/data/content/{$co[co_id]}_t";
|
||||
$timg = G4_DATA_PATH."/content/{$co['co_id']}_t";
|
||||
if (file_exists($timg)) {
|
||||
echo "<input type=checkbox name=co_timg_del value='1'>삭제";
|
||||
$timg_str = "<img src='$timg' border=0>";
|
||||
$timg_str = "<img src='".G4_DATA_URL."/content/{$co['co_id']}_t' border=0>";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
@ -110,7 +110,7 @@ include_once ("$g4[admin_path]/admin.head.php");
|
||||
|
||||
|
||||
<script language="javascript">
|
||||
function frmcontentform_check(f)
|
||||
function frmcontentform_check(f)
|
||||
{
|
||||
errmsg = "";
|
||||
errfld = "";
|
||||
@ -137,5 +137,5 @@ function frmcontentform_check(f)
|
||||
</script>
|
||||
|
||||
<?
|
||||
include_once ("$g4[admin_path]/admin.tail.php");
|
||||
include_once (G4_ADMIN_PATH.'/admin.tail.php');
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user