경로 수정 작업 중
This commit is contained in:
@ -1,25 +1,25 @@
|
||||
<?
|
||||
include_once("./_common.php");
|
||||
include_once('./_common.php');
|
||||
|
||||
$sql = " select * from $g4[yc4_event_table]
|
||||
where ev_id = '$ev_id'
|
||||
$sql = " select * from {$g4['yc4_event_table']}
|
||||
where ev_id = '$ev_id'
|
||||
and ev_use = 1 ";
|
||||
$ev = sql_fetch($sql);
|
||||
if (!$ev[ev_id])
|
||||
alert("등록된 이벤트가 없습니다.");
|
||||
if (!$ev['ev_id'])
|
||||
alert('등록된 이벤트가 없습니다.');
|
||||
|
||||
$g4[title] = $ev[ev_subject];
|
||||
include_once("./_head.php");
|
||||
$g4['title'] = $ev['ev_subject'];
|
||||
include_once('./_head.php');
|
||||
|
||||
$himg = "$g4[path]/data/event/{$ev_id}_h";
|
||||
if (file_exists($himg))
|
||||
echo "<img src='$himg' border=0><br>";
|
||||
$himg = G4_DATA_PATH."/event/{$ev_id}_h";
|
||||
if (file_exists($himg))
|
||||
echo "<img src='".G4_DATA_URL."/event/{$ev_id}_h' border=0><br>";
|
||||
|
||||
if ($is_admin)
|
||||
echo "<p align=center><a href='$g4[shop_admin_path]/itemeventform.php?w=u&ev_id=$ev[ev_id]'><img src='$g4[shop_img_path]/btn_admin_modify.gif' border=0></a></p>";
|
||||
echo "<p align=center><a href='".G4_ADMIN_URL."/shop_admin/itemeventform.php?w=u&ev_id={$ev['ev_id']}'><img src='".G4_SHOP_URL."/img/btn_admin_modify.gif' border=0></a></p>";
|
||||
|
||||
// 상단 HTML
|
||||
echo stripslashes($ev[ev_head_html]);
|
||||
echo stripslashes($ev['ev_head_html']);
|
||||
?>
|
||||
|
||||
<table width=100% cellpadding=0 cellspacing=0>
|
||||
@ -32,12 +32,12 @@ if ($sort != "")
|
||||
$order_by = $sort . " , ";
|
||||
|
||||
// 상품 (하위 분류의 상품을 모두 포함한다.)
|
||||
// 1.02.00
|
||||
// 1.02.00
|
||||
// a.it_order 추가
|
||||
/*
|
||||
$sql_list1 = " select a.ca_id,
|
||||
a.it_id,
|
||||
a.it_name,
|
||||
a.it_id,
|
||||
a.it_name,
|
||||
a.it_maker,
|
||||
a.it_point,
|
||||
a.it_amount,
|
||||
@ -62,40 +62,40 @@ $sql_list1 = " select a.ca_id,
|
||||
$sql_list1 = " select * ";
|
||||
$sql_list2 = " order by $order_by a.it_order, a.it_id desc ";
|
||||
|
||||
$sql_common = " from $g4[yc4_item_table] a
|
||||
left join $g4[yc4_event_item_table] b on (a.it_id=b.it_id)
|
||||
$sql_common = " from {$g4['yc4_item_table']} a
|
||||
left join {$g4['yc4_event_item_table']} b on (a.it_id=b.it_id)
|
||||
where b.ev_id = '$ev_id'
|
||||
and a.it_use = '1' ";
|
||||
|
||||
$error = "<img src='$g4[shop_img_path]/no_item.gif' border=0>";
|
||||
$error = "<img src='".G4_SHOP_URL."/img/no_item.gif' border=0>";
|
||||
|
||||
if ($skin)
|
||||
$ev[ev_skin] = $skin;
|
||||
if ($skin)
|
||||
$ev['ev_skin'] = $skin;
|
||||
|
||||
$td_width = (int)($mod / 100);
|
||||
|
||||
// 리스트 유형별로 출력
|
||||
$list_file = "$g4[shop_path]/$ev[ev_skin]";
|
||||
if (file_exists($list_file))
|
||||
$list_file = G4_SHOP_PATH."/{$ev['ev_skin']}";
|
||||
if (file_exists($list_file))
|
||||
{
|
||||
$list_mod = $ev[ev_list_mod];
|
||||
$list_row = $ev[ev_list_row];
|
||||
$img_width = $ev[ev_img_width];
|
||||
$img_height = $ev[ev_img_height];
|
||||
$list_mod = $ev['ev_list_mod'];
|
||||
$list_row = $ev['ev_list_row'];
|
||||
$img_width = $ev['ev_img_width'];
|
||||
$img_height = $ev['ev_img_height'];
|
||||
|
||||
include "$g4[shop_path]/list.sub.php";
|
||||
include "$g4[shop_path]/list.sort.php";
|
||||
include G4_SHOP_PATH.'/list.sub.php';
|
||||
include G4_SHOP_PATH.'/list.sort.php';
|
||||
|
||||
$sql = $sql_list1 . $sql_common . $sql_list2 . " limit $from_record, $items ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
include $list_file;
|
||||
|
||||
}
|
||||
else
|
||||
}
|
||||
else
|
||||
{
|
||||
$i = 0;
|
||||
$error = "<p>$ev[ev_skin] 파일을 찾을 수 없습니다.<p>관리자에게 알려주시면 감사하겠습니다.";
|
||||
$error = "<p>{$ev['ev_skin']} 파일을 찾을 수 없습니다.<p>관리자에게 알려주시면 감사하겠습니다.";
|
||||
}
|
||||
|
||||
if ($i==0)
|
||||
@ -113,17 +113,17 @@ if ($i==0)
|
||||
<div align=center>
|
||||
<?
|
||||
$qstr .= "ca_id=$ca_id&skin=$skin&ev_id=$ev_id&sort=$sort";
|
||||
echo get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?$qstr&page=");
|
||||
echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");
|
||||
?>
|
||||
</div><br>
|
||||
|
||||
<?
|
||||
// 하단 HTML
|
||||
echo stripslashes($ev[ev_tail_html]);
|
||||
echo stripslashes($ev['ev_tail_html']);
|
||||
|
||||
$timg = "$g4[path]/data/event/{$ev_id}_t";
|
||||
if (file_exists($timg))
|
||||
echo "<br><img src='$timg' border=0><br>";
|
||||
$timg = G4_DATA_PATH."/event/{$ev_id}_t";
|
||||
if (file_exists($timg))
|
||||
echo "<br><img src='".G4_DATA_URL."/event/{$ev_id}_t' border=0><br>";
|
||||
|
||||
include_once("./_tail.php");
|
||||
include_once('./_tail.php');
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user