From ff24fe19c03b1ef8a8f72809b9e4af59e1928123 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Mon, 10 Jun 2013 15:15:06 +0900 Subject: [PATCH 1/4] =?UTF-8?q?=EC=83=81=ED=92=88=EA=B0=9C=EB=B3=84?= =?UTF-8?q?=EC=82=AD=EC=A0=9C=EB=A5=BC=20=EB=AA=A9=EB=A1=9D=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EC=9D=BC=EA=B4=84=EC=82=AD=EC=A0=9C=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20#218?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/shop_admin/itemdelete.inc.php | 106 ++++++++++++++++++++++++++++++ adm/shop_admin/itemformupdate.php | 98 +-------------------------- adm/shop_admin/itemlist.php | 34 ++++++++-- adm/shop_admin/itemlistupdate.php | 60 ++++++++++++----- 4 files changed, 181 insertions(+), 117 deletions(-) create mode 100644 adm/shop_admin/itemdelete.inc.php diff --git a/adm/shop_admin/itemdelete.inc.php b/adm/shop_admin/itemdelete.inc.php new file mode 100644 index 000000000..965372c49 --- /dev/null +++ b/adm/shop_admin/itemdelete.inc.php @@ -0,0 +1,106 @@ + \ No newline at end of file diff --git a/adm/shop_admin/itemformupdate.php b/adm/shop_admin/itemformupdate.php index 576ed2019..3158422e3 100644 --- a/adm/shop_admin/itemformupdate.php +++ b/adm/shop_admin/itemformupdate.php @@ -10,102 +10,6 @@ if ($w == '' || $w == 'u') else if ($w == 'd') auth_check($auth[$sub_menu], "d"); -// 상품삭제 -// 메세지출력후 주문개별내역페이지로 이동 -function itemdelete($it_id) -{ - global $g4, $is_admin; - - $sql = " select it_explan, it_mobile_explan, it_img1, it_img2, it_img3, it_img4, it_img5, it_img6, it_img7, it_img8, it_img9, it_img10 - from {$g4['shop_item_table']} where it_id = '$it_id' "; - $it = sql_fetch($sql); - - // 상품 이미지 삭제 - $dir_list = array(); - for($i=1; $i<=10; $i++) { - $file = G4_DATA_PATH.'/item/'.$it['it_img'.$i]; - if(is_file($file) && $it['it_img'.$i]) { - @unlink($file); - $dir = dirname($file); - delete_item_thumbnail($dir, basename($file)); - - if(!in_array($dir, $dir_list)) - $dir_list[] = $dir; - } - } - - // 이미지디렉토리 삭제 - for($i=0; $i상품판매순위 -
+ @@ -146,6 +146,7 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌 + @@ -169,6 +170,9 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌 $gallery = $row['it_gallery'] ? 'Y' : ''; ?> + @@ -206,9 +210,15 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
상품코드 순 정렬 분류 및 상품명 순 정렬 판매가격 순 정렬
+ + @@ -191,7 +195,7 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌 <?php echo htmlspecialchars2(cut_str($row['it_name'],250, 보기"> <?php echo htmlspecialchars2(cut_str($row['it_name'],250, 복사"> <?php echo htmlspecialchars2(cut_str($row['it_name'],250, 수정"> - <?php echo htmlspecialchars2(cut_str($row['it_name'],250, 삭제"> +
-
- +
+ + + +
+ @@ -216,6 +226,22 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌