관리자 경로 수정 작업중

This commit is contained in:
chicpro
2013-03-18 17:13:09 +09:00
parent 5719076252
commit 3f463df4fc
13 changed files with 302 additions and 305 deletions

View File

@ -1,23 +1,23 @@
<?
$sub_menu = "400640";
include_once("./_common.php");
$sub_menu = '400640';
include_once('./_common.php');
check_demo();
auth_check($auth[$sub_menu], "w");
for ($i=0; $i<count($_POST[it_id]); $i++)
for ($i=0; $i<count($_POST['it_id']); $i++)
{
$sql = " delete from $g4[yc4_event_item_table]
$sql = " delete from {$g4['yc4_event_item_table']}
where ev_id = '$ev_id'
and it_id = '{$_POST[it_id][$i]}' ";
and it_id = '{$_POST['it_id'][$i]}' ";
sql_query($sql);
if ($_POST[ev_chk][$i])
if ($_POST['ev_chk'][$i])
{
$sql = "insert into $g4[yc4_event_item_table]
$sql = "insert into {$g4['yc4_event_item_table']}
set ev_id = '$ev_id',
it_id = '{$_POST[it_id][$i]}' ";
it_id = '{$_POST['it_id'][$i]}' ";
sql_query($sql);
}