From 3dc0ea3a0140492c89e33c931872c374cc63c912 Mon Sep 17 00:00:00 2001 From: whitedot Date: Mon, 15 Apr 2013 16:58:59 +0900 Subject: [PATCH] =?UTF-8?q?=EC=87=BC=ED=95=91=EB=AA=B0=EA=B4=80=EB=A6=AC?= =?UTF-8?q?=EC=9E=90:=20=EC=87=BC=ED=95=91=EB=AA=B0=EA=B4=80=EB=A6=AC=20?= =?UTF-8?q?=EC=9D=B4=EB=B2=A4=ED=8A=B8=EC=9D=BC=EA=B4=84=EC=B2=98=EB=A6=AC?= =?UTF-8?q?=20=ED=91=9C=EC=A4=80=ED=99=94=20=EB=B0=8F=20=EC=8A=A4=ED=83=80?= =?UTF-8?q?=EC=9D=BC=20=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/itemeventlist.php | 210 ++++++++++++++----------- adm/shop_admin/itemeventlistupdate.php | 2 +- css/admin.css | 3 + 3 files changed, 124 insertions(+), 91 deletions(-) diff --git a/adm/shop_admin/itemeventlist.php b/adm/shop_admin/itemeventlist.php index fc81f8a1b..62c21cf5b 100644 --- a/adm/shop_admin/itemeventlist.php +++ b/adm/shop_admin/itemeventlist.php @@ -10,8 +10,8 @@ include_once (G4_ADMIN_PATH.'/admin.head.php'); $where = " where "; $sql_search = ""; if ($search != "") { - if ($sel_field != "") { - $sql_search .= " $where $sel_field like '%$search%' "; + if ($sel_field != "") { + $sql_search .= " $where $sel_field like '%$search%' "; $where = " and "; } } @@ -52,33 +52,54 @@ $sql = " select a.*, b.ev_id limit $from_record, $rows "; $result = sql_query($sql); -//$qstr1 = "sel_ca_id=$sel_ca_id&sel_field=$sel_field&search=$search"; -$qstr1 = "ev_id=$ev_id&sel_ca_id=$sel_ca_id&sel_field=$sel_field&search=$search"; -$qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page"; +//$qstr1 = 'sel_ca_id='.$sel_ca_id.'&sel_field='.$sel_field.'&search='.$search; +$qstr1 = 'ev_id='.$ev_id.'&sel_ca_id='.$sel_ca_id.'&sel_field='.$sel_field.'&search='.$search; +$qstr = $qstr1.'&sort1='.$sort1.'&sort2='.$sort2.'&page='.$page; + +$listall = ''; +if ($stx) // 검색 결과일 때만 처음 버튼을 보여줌 + $listall = '전체목록'; + +// 이벤트 아이디와 제목을 분리 - 지운아빠 2013-04-15 +if (isset($ev_set)) { + $ev_exp = explode('`',$ev_set); + $ev_id = $ev_exp[0]; + $ev_title = $ev_exp[1]; +} ?> -
- - - - - - - - -
'>처음 - + 이벤트 선택 + + + + 전체 이벤트 건 + $event_option"; - if ($ev_id) - echo ""; + $event_option .= ''; + echo $event_option; ?> - - + + + + + +
+ 이벤트 검색 + +
+ + + + + - + + - - document.flist.sel_field.value = '$sel_field';"; ?> + - - -
건수 :  
- + + + -
- - - - - - - - ----- - - - - - - - - $sql = " select ev_id from {$g4['shop_event_item_table']} - where it_id = '{$row['it_id']}' - and ev_id = '$ev_id' "; - $ev = sql_fetch($sql); +
+

상품 목록

+

상품을 이벤트별로 일괄 처리합니다.

- $list = $i%2; - echo " - -
- - - - - "; -} + + + + + + + + + -if ($i == 0) - echo ""; -?> - -
이벤트사용상품코드상품명
{$row['it_id']}".get_it_image("{$row['it_id']}_s", 50, 50)."".cut_str(stripslashes($row['it_name']), 60, "…")."
자료가 한건도 없습니다.
+ + + + + - - - - -
이벤트사용 -

+ $sql = " select ev_id from {$g4['shop_event_item_table']} + where it_id = '{$row['it_id']}' + and ev_id = '$ev_id' "; + $ev = sql_fetch($sql); -* 상품을 이벤트별로 일괄 처리합니다. + ?> -