From c14fdb36dee31bd646e50d5359bcb37a042cfd16 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 24 Jul 2013 18:46:35 +0900 Subject: [PATCH] =?UTF-8?q?#262=20=EC=9D=B4=EB=B2=A4=ED=8A=B8=20=ED=8F=BC?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EC=9D=B4=EB=B2=A4=ED=8A=B8=20=EC=83=81?= =?UTF-8?q?=ED=92=88=20=EA=B4=80=EB=A6=AC=ED=95=A0=20=EC=88=98=20=EC=9E=88?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/itemeventform.php | 126 +++++++++++++++++++++++++ adm/shop_admin/itemeventformupdate.php | 22 +++++ adm/shop_admin/itemeventsearch.php | 38 ++++++++ 3 files changed, 186 insertions(+) create mode 100644 adm/shop_admin/itemeventsearch.php diff --git a/adm/shop_admin/itemeventform.php b/adm/shop_admin/itemeventform.php index 2f8cd103e..93cf5b707 100644 --- a/adm/shop_admin/itemeventform.php +++ b/adm/shop_admin/itemeventform.php @@ -17,6 +17,12 @@ if ($w == "u") $ev = sql_fetch($sql); if (!$ev['ev_id']) alert("등록된 자료가 없습니다."); + + // 등록된 이벤트 상품 + $sql = " select b.it_id, b.it_name + from {$g4['shop_event_item_table']} a left join {$g4['shop_item_table']} b on ( a.it_id = b.it_id ) + where a.ev_id = '$ev_id' "; + $res_item = sql_query($sql); } else { @@ -34,12 +40,31 @@ else $ev['ev_list_row'] = 5; } +// 분류리스트 +$category_select = ''; +$sql = " select * from {$g4['shop_category_table']} "; +if ($is_admin != 'super') + $sql .= " where ca_mb_id = '{$member['mb_id']}' "; +$sql .= " order by ca_id "; +$result = sql_query($sql); +for ($i=0; $row=sql_fetch_array($result); $i++) +{ + $len = strlen($row['ca_id']) / 2 - 1; + + $nbsp = ""; + for ($i=0; $i<$len; $i++) + $nbsp .= "   "; + + $category_select .= "\n"; +} + include_once (G4_ADMIN_PATH.'/admin.head.php'); ?>
+

@@ -137,6 +162,46 @@ include_once (G4_ADMIN_PATH.'/admin.head.php'); ?> + + +
+

상품검색

+
+ +
+
+
+
+
+

등록된 상품

+
+ '; + ?> +
  • + + + +
  • + 0) + echo ''; + else + echo '등록된 상품이 없습니다.'; + ?> +
    +
    + + @@ -211,8 +276,69 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');