관리자 경로 수정 작업중
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<?
|
||||
$sub_menu = "400650";
|
||||
include_once("./_common.php");
|
||||
$sub_menu = '400650';
|
||||
include_once('./_common.php');
|
||||
|
||||
check_demo();
|
||||
|
||||
@ -9,15 +9,15 @@ if ($w == 'd')
|
||||
else
|
||||
auth_check($auth[$sub_menu], "w");
|
||||
|
||||
$iv = sql_fetch(" select * from $g4[yc4_item_ps_table] where is_id = '$is_id' ");
|
||||
if (!$iv[is_id])
|
||||
alert("등록된 자료가 없습니다.");
|
||||
$iv = sql_fetch(" select * from {$g4['yc4_item_ps_table']} where is_id = '$is_id' ");
|
||||
if (!$iv['is_id'])
|
||||
alert('등록된 자료가 없습니다.');
|
||||
|
||||
$qstr = "page=$page&sort1=$sort1&sort2=$sort2";
|
||||
|
||||
if ($w == "u")
|
||||
if ($w == "u")
|
||||
{
|
||||
$sql = "update $g4[yc4_item_ps_table]
|
||||
$sql = "update {$g4['yc4_item_ps_table']}
|
||||
set is_subject = '$is_subject',
|
||||
is_content = '$is_content',
|
||||
is_confirm = '$is_confirm'
|
||||
@ -25,15 +25,15 @@ if ($w == "u")
|
||||
sql_query($sql);
|
||||
|
||||
goto_url("./itempsform.php?w=$w&is_id=$is_id&$qstr");
|
||||
}
|
||||
else if ($w == "d")
|
||||
}
|
||||
else if ($w == "d")
|
||||
{
|
||||
$sql = "delete from $g4[yc4_item_ps_table] where is_id = '$is_id' ";
|
||||
$sql = "delete from {$g4['yc4_item_ps_table']} where is_id = '$is_id' ";
|
||||
sql_query($sql);
|
||||
|
||||
goto_url("./itempslist.php?$qstr");
|
||||
}
|
||||
else
|
||||
}
|
||||
else
|
||||
{
|
||||
alert();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user