From 0f0e3f21795c8ba7361462d12cc74774c74b8790 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Tue, 29 Jan 2013 17:45:30 +0900 Subject: [PATCH 01/12] =?UTF-8?q?sideview.js=20=EB=A5=BC=20head.sub.php=20?= =?UTF-8?q?=EC=97=90=20=ED=8F=AC=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/admin.head.php | 3 - adm/auth_list.php | 1 - adm/boardgroupmember_list.php | 2 - adm/member_list.php | 2 - adm/point_list.php | 1 - bbs/board.php | 2 - bbs/current_connect.php | 2 - bbs/memo.php | 2 - bbs/memo_view.php | 2 - bbs/new.php | 2 - bbs/poll_result.php | 2 - bbs/profile.php | 2 - bbs/search.php | 2 - head.sub.php | 1 + js/sideview.js | 568 +++++++++++------------ skin/member/basic/register_form.skin.php | 4 +- 16 files changed, 282 insertions(+), 316 deletions(-) diff --git a/adm/admin.head.php b/adm/admin.head.php index ca3674b0f..f19e6631d 100644 --- a/adm/admin.head.php +++ b/adm/admin.head.php @@ -69,9 +69,6 @@ function textarea_size(fld, size) } - - -
diff --git a/adm/auth_list.php b/adm/auth_list.php index 30150b3f1..2cf7c350a 100644 --- a/adm/auth_list.php +++ b/adm/auth_list.php @@ -55,7 +55,6 @@ include_once('./admin.head.php'); $colspan = 5; ?> - -
diff --git a/adm/member_list.php b/adm/member_list.php index 306fb6c4e..4f1ad3f34 100644 --- a/adm/member_list.php +++ b/adm/member_list.php @@ -69,8 +69,6 @@ $result = sql_query($sql); $colspan = 15; ?> - -
회원검색 diff --git a/adm/point_list.php b/adm/point_list.php index 0c6fcb63d..094aed2db 100644 --- a/adm/point_list.php +++ b/adm/point_list.php @@ -61,7 +61,6 @@ include_once ('./admin.head.php'); $colspan = 8; ?> - '; - // 게시물 아이디가 있다면 게시물 보기를 INCLUDE if (isset($wr_id) && $wr_id) { include_once('./view.php'); diff --git a/bbs/current_connect.php b/bbs/current_connect.php index b4ae414d9..a14b0029a 100644 --- a/bbs/current_connect.php +++ b/bbs/current_connect.php @@ -26,8 +26,6 @@ for ($i=0; $row=sql_fetch_array($result); $i++) { $list[$i]['num'] = sprintf('%03d',$i+1); } -echo ''; - include_once($connect_skin_path.'/current_connect.skin.php'); include_once('./_tail.php'); diff --git a/bbs/memo.php b/bbs/memo.php index 2003e5129..ad26d6e3e 100644 --- a/bbs/memo.php +++ b/bbs/memo.php @@ -74,8 +74,6 @@ for ($i=0; $row=sql_fetch_array($result); $i++) $list[$i]['del_href'] = './memo_delete.php?me_id='.$row['me_id'].'&kind='.$kind; } -echo ''; - include_once($member_skin_path.'/memo.skin.php'); include_once(G4_PATH.'/tail.sub.php'); diff --git a/bbs/memo_view.php b/bbs/memo_view.php index 9dc9da294..0c051a0a2 100644 --- a/bbs/memo_view.php +++ b/bbs/memo_view.php @@ -63,8 +63,6 @@ else $mb = get_member($memo['me_'.$unkind.'_mb_id']); -echo ''; - $member_skin_path = G4_PATH.'/skin/member/'.$config['cf_member_skin']; include_once($member_skin_path.'/memo_view.skin.php'); diff --git a/bbs/new.php b/bbs/new.php index 7efbff6f5..569446b2d 100644 --- a/bbs/new.php +++ b/bbs/new.php @@ -105,8 +105,6 @@ for ($i=0; $row=sql_fetch_array($result); $i++) { $write_pages = get_paging($config['cf_write_pages'], $page, $total_page, "?gr_id=$gr_id&view=$view&mb_id=$mb_id&page="); -echo ''.PHP_EOL; - include_once($new_skin_path.'/new.skin.php'); include_once('./_tail.php'); diff --git a/bbs/poll_result.php b/bbs/poll_result.php index 23468f977..57b7e3a46 100644 --- a/bbs/poll_result.php +++ b/bbs/poll_result.php @@ -86,8 +86,6 @@ for ($i=0; $row2=sql_fetch_array($result); $i++) { include_once(G4_PATH.'/head.sub.php'); -echo ''; - if (!file_exists($poll_skin_path.'/poll_result.skin.php')) die('skin error'); include_once ($poll_skin_path.'/poll_result.skin.php'); diff --git a/bbs/profile.php b/bbs/profile.php index c1aa1e8bd..32dfddaea 100644 --- a/bbs/profile.php +++ b/bbs/profile.php @@ -27,8 +27,6 @@ $mb_reg_after = $row['days']; $mb_homepage = set_http($mb['mb_homepage']); $mb_profile = $mb['mb_profile'] ? conv_content($mb['mb_profile'],0) : '소개 내용이 없습니다.'; -echo ''; - include_once($member_skin_path.'/profile.skin.php'); include_once(G4_PATH.'/tail.sub.php'); diff --git a/bbs/search.php b/bbs/search.php index 8ff0e2c5b..eaab6104e 100644 --- a/bbs/search.php +++ b/bbs/search.php @@ -211,8 +211,6 @@ if ($stx) { } $write_pages = get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$search_query.'&gr_id='.$gr_id.'&srows='.$srows.'&onetable='.$onetable.'&page='); - - echo ''; } $group_select = ' @@ -551,7 +549,7 @@ function fregisterform_submit(f) ?> // 보안인증관련 코드로 반드시 포함되어야 합니다. - set_cookie("", "", 1, ""); + //set_cookie("", "", 1, ""); return true; } From b5544f9f8c24dd19e9aa2400956dc427260ce1bc Mon Sep 17 00:00:00 2001 From: gnuboard Date: Tue, 29 Jan 2013 18:13:22 +0900 Subject: [PATCH 02/12] =?UTF-8?q?g4=5Fadmin=5Furl=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- head.sub.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/head.sub.php b/head.sub.php index 10849a19e..aa361b956 100644 --- a/head.sub.php +++ b/head.sub.php @@ -56,7 +56,8 @@ var g4_charset = ""; var g4_cookie_domain = ""; var g4_is_gecko = navigator.userAgent.toLowerCase().indexOf("gecko") != -1; var g4_is_ie = navigator.userAgent.toLowerCase().indexOf("msie") != -1; - + From 8aa9e0baae0ad04b6d26931e154e2a4218fc0234 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Tue, 29 Jan 2013 18:13:43 +0900 Subject: [PATCH 03/12] =?UTF-8?q?=EC=AA=BD=EC=A7=80=EB=B3=B4=EB=82=B4?= =?UTF-8?q?=EA=B8=B0=20=EC=BA=A1=EC=B1=A0=EC=BD=94=EB=93=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/gcaptcha/gcaptcha.lib.php | 1 + bbs/gcaptcha/get.php | 2 +- bbs/memo_form.php | 2 +- bbs/memo_form_update.php | 2 +- skin/member/neo/memo_form.skin.php | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bbs/gcaptcha/gcaptcha.lib.php b/bbs/gcaptcha/gcaptcha.lib.php index 2f906328e..1f2ca7534 100644 --- a/bbs/gcaptcha/gcaptcha.lib.php +++ b/bbs/gcaptcha/gcaptcha.lib.php @@ -175,6 +175,7 @@ function captcha_html($class="captcha") $png_file_url = G4_CACHE_URL.'/'.$obj->captcha_filename.'.png'; $wav_file_url = G4_CACHE_URL.'/'.$obj->captcha_filename.'.wav'; + $html .= PHP_EOL.''; $html .= PHP_EOL.''; $html .= '
'; $html .= '스팸방지'; diff --git a/bbs/gcaptcha/get.php b/bbs/gcaptcha/get.php index e1b0e4a5e..fbc38bdf0 100644 --- a/bbs/gcaptcha/get.php +++ b/bbs/gcaptcha/get.php @@ -1,6 +1,6 @@ \ No newline at end of file diff --git a/bbs/memo_form.php b/bbs/memo_form.php index 3934ee4fa..0571f0ef2 100644 --- a/bbs/memo_form.php +++ b/bbs/memo_form.php @@ -1,6 +1,6 @@ function fmemoform_submit(f) { - + return true; } From d4204b9bc08efe211f3959ad831c9ae7fcff1779 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Tue, 29 Jan 2013 18:18:57 +0900 Subject: [PATCH 04/12] =?UTF-8?q?=ED=8F=BC=EB=A9=94=EC=9D=BC=EB=B3=B4?= =?UTF-8?q?=EB=82=B4=EA=B8=B0=20=EC=BA=A1=EC=B1=A0=20=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/formmail.php | 2 +- bbs/formmail_send.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bbs/formmail.php b/bbs/formmail.php index c98898246..b56175fbe 100644 --- a/bbs/formmail.php +++ b/bbs/formmail.php @@ -1,6 +1,6 @@ 1) alert_close('한번에 한사람에게만 메일을 발송할 수 있습니다.'); -if ($is_guest && !chk_captcha()) { +if (!chk_captcha()) { alert('스팸방지에 입력한 숫자가 틀렸습니다.'); } From abfa9aa118d937ed967003d1e98b3b624530548d Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 29 Jan 2013 18:20:39 +0900 Subject: [PATCH 05/12] =?UTF-8?q?=EC=8A=A4=ED=82=A8=20=EA=B2=BD=EB=A1=9C?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/listtype.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/shop/listtype.php b/shop/listtype.php index b6a95c6c7..923234f30 100644 --- a/shop/listtype.php +++ b/shop/listtype.php @@ -13,13 +13,13 @@ else // 한페이지에 출력하는 이미지수 = $list_mod * $list_row $list_mod = 4; // 한줄에 이미지 몇개씩 출력? -$list_row = 5; // 한 페이지에 몇라인씩 출력? +$list_row = 5; // 한 페이지에 몇라인씩 출력? $img_width = 100; // 출력이미지 폭 $img_height = 100; // 출력이미지 높이 ?> -" border="0">

+" border="0">

@@ -41,18 +41,18 @@ if ($ca_id) { $sql_common .= " and ca_id = '$ca_id' "; } -$error = ""; +$error = ""; -if (!$skin) +if (!$skin) $skin = "list.skin.10.php"; $td_width = (int)($mod / 100); // 리스트 유형별로 출력 -$list_file = "$g4[shop_path]/$skin"; +$list_file = G4_SHOP_PATH."/$skin"; if (file_exists($list_file)) { - include "$g4[shop_path]/list.sub.php"; + include G4_SHOP_PATH."/list.sub.php"; //include "$cart_dir/list.sort.php"; $sql = $sql_list1 . $sql_common . $sql_list2 . " limit $from_record, $items "; @@ -60,8 +60,8 @@ if (file_exists($list_file)) { include $list_file; -} -else +} +else { $i = 0; $error = "

$skin 파일을 찾을 수 없습니다.

관리자에게 알려주시면 감사하겠습니다."; @@ -94,7 +94,7 @@ $bar = ""; $sql = " select ca_id from $g4[yc4_item_table] where it_type{$type} = '1' and it_use = '1' - group by ca_id + group by ca_id order by ca_id "; $result = sql_query($sql); for($i=0;$row=sql_fetch_array($result);$i++) { From f75bc7e3a458b9fe17ce4cb17ab42762dacc5deb Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 30 Jan 2013 09:15:56 +0900 Subject: [PATCH 06/12] =?UTF-8?q?G4=5FADM=EC=9D=84=20G4=5FADMIN=20?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skin/outlogin/neo/outlogin.skin.2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skin/outlogin/neo/outlogin.skin.2.php b/skin/outlogin/neo/outlogin.skin.2.php index 718c0e10d..6d11736d7 100644 --- a/skin/outlogin/neo/outlogin.skin.2.php +++ b/skin/outlogin/neo/outlogin.skin.2.php @@ -7,7 +7,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

나의 이용정보

님 - 관리자 + 관리자
  • From c155ba283be58932e026ccba166f0b661e9ae2b7 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 30 Jan 2013 09:16:33 +0900 Subject: [PATCH 07/12] =?UTF-8?q?=EC=84=A4=EB=AC=B8=EC=A1=B0=EC=82=AC?= =?UTF-8?q?=EC=99=80=20=EB=B0=A9=EB=AC=B8=EC=9E=90=20=EC=8A=A4=ED=82=A8?= =?UTF-8?q?=EB=AA=85=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shop.php b/shop.php index 5805608bf..e69989a68 100644 --- a/shop.php +++ b/shop.php @@ -85,10 +85,10 @@ include_once(G4_PATH.'/shop.head.php'); ?>

    -
    +
    -
    +

    From 66280a542af5fe76211de63fd55e16b665de3d16 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 30 Jan 2013 09:19:33 +0900 Subject: [PATCH 08/12] =?UTF-8?q?=EB=94=B0=EC=98=B4=ED=91=9C=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/listtype.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/shop/listtype.php b/shop/listtype.php index 923234f30..ca0a0595e 100644 --- a/shop/listtype.php +++ b/shop/listtype.php @@ -3,11 +3,11 @@ include_once("./_common.php"); include_once("./_head.php"); $type = $_REQUEST['type']; -if ($type == 1) $g4[title] = "히트상품"; -else if ($type == 2) $g4[title] = "추천상품"; -else if ($type == 3) $g4[title] = "신규상품"; -else if ($type == 4) $g4[title] = "포인트상품"; -else if ($type == 5) $g4[title] = "사은품상품"; +if ($type == 1) $g4['title'] = "히트상품"; +else if ($type == 2) $g4['title'] = "추천상품"; +else if ($type == 3) $g4['title'] = "신규상품"; +else if ($type == 4) $g4['title'] = "포인트상품"; +else if ($type == 5) $g4['title'] = "사은품상품"; else alert("상품유형이 아닙니다."); From d31deadd8aeb15ae887e26810ea93b848742ca0a Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 30 Jan 2013 09:28:47 +0900 Subject: [PATCH 09/12] =?UTF-8?q?thumbnail.lib.php=20=EA=B2=BD=EB=A1=9C=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop.php | 1 + 1 file changed, 1 insertion(+) diff --git a/shop.php b/shop.php index e69989a68..b81c99afa 100644 --- a/shop.php +++ b/shop.php @@ -1,6 +1,7 @@ Date: Wed, 30 Jan 2013 09:43:54 +0900 Subject: [PATCH 10/12] =?UTF-8?q?maintype=20=EC=8A=A4=ED=82=A8=EC=97=90=20?= =?UTF-8?q?=EC=8D=B8=EB=84=A4=EC=9D=BC=20=EC=83=9D=EC=84=B1=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/maintype10.inc.php | 21 +++++++++++++++----- shop/maintype20.inc.php | 25 +++++++++++++++++------- shop/maintype30.inc.php | 41 +++++++++++++++++++++++++-------------- shop/maintype40.inc.php | 43 ++++++++++++++++++++++++++--------------- shop/maintype50.inc.php | 29 ++++++++++++++++++--------- 5 files changed, 107 insertions(+), 52 deletions(-) diff --git a/shop/maintype10.inc.php b/shop/maintype10.inc.php index a89b0d8c3..76ec1098a 100644 --- a/shop/maintype10.inc.php +++ b/shop/maintype10.inc.php @@ -1,5 +1,5 @@
@@ -10,15 +10,26 @@ for ($i=0; $row=sql_fetch_array($result); $i++) { echo "\n\n\n"; } - $href = ""; + $href = ""; + + // 리스트 썸네일 이미지 + $filepath = G4_DATA_PATH.'/item/'.$row['it_id']; + for($k=1; $k<=10; $k++) { + $idx = 'it_img'.$k; + if(file_exists($filepath.'/'.$row[$idx]) && is_file($filepath.'/'.$row[$idx])) { + $filename = $row[$idx]; + break; + } + } + $it_img = it_img_thumb($filename, G4_DATA_PATH.'/item/'.$row['it_id'], $img_width, $img_height); ?>
- - + + - +
0 && $i % $list_mod == 0) echo ""; - $href = ""; + $href = ""; + + // 리스트 썸네일 이미지 + $filepath = G4_DATA_PATH.'/item/'.$row['it_id']; + for($k=1; $k<=10; $k++) { + $idx = 'it_img'.$k; + if(file_exists($filepath.'/'.$row[$idx]) && is_file($filepath.'/'.$row[$idx])) { + $filename = $row[$idx]; + break; + } + } + $it_img = it_img_thumb($filename, G4_DATA_PATH.'/item/'.$row['it_id'], $img_width, $img_height); ?> = 0; function start_roll_() - { + { i_ = 0; for (i_ in roll_text_) n_panel_++; @@ -36,14 +36,14 @@ $uni = uniqid(""); if(startPanel_ == 0) { i_ = 0; - for (i_ in roll_text_) + for (i_ in roll_text_) insert_area_(total_area_, total_area_++); // area 삽입 } else if(startPanel_ == n_panel_) { insert_area_(startPanel_, total_area_); total_area_++; - for (i_=0; i_; i_++) + for (i_=0; i_; i_++) { insert_area_(i_, total_area_); // area 삽입 total_area_++; @@ -53,12 +53,12 @@ $uni = uniqid(""); { insert_area_(startPanel_, total_area_); total_area_++; - for (i_=startPanel_+1; i_<=n_panel_; i_++) + for (i_=startPanel_+1; i_<=n_panel_; i_++) { insert_area_(i_, total_area_); // area 삽입 total_area_++; } - for (i_=0; i_; i_++) + for (i_=0; i_; i_++) { insert_area_(i_, total_area_); // area 삽입 total_area_++; @@ -73,7 +73,7 @@ $uni = uniqid(""); } function rolling_() - { + { if (bMouseOver_ && wait_flag_) { for (i_=0;i_;i_++){ @@ -92,13 +92,13 @@ $uni = uniqid(""); } function insert_area_(idx_, n_) - { + { document.write('
\n'+roll_text_[idx_]+'\n
\n'); } "; $k=0; - while ($row=sql_fetch_array($result)) + while ($row=sql_fetch_array($result)) { if (!$row) break; - $href = "
"; + $href = ""; + + // 리스트 썸네일 이미지 + $filepath = G4_DATA_PATH.'/item/'.$row['it_id']; + for($k=1; $k<=10; $k++) { + $idx = 'it_img'.$k; + if(file_exists($filepath.'/'.$row[$idx]) && is_file($filepath.'/'.$row[$idx])) { + $filename = $row[$idx]; + break; + } + } + $it_img = it_img_thumb($filename, G4_DATA_PATH.'/item/'.$row['it_id'], $img_width, $img_height); $roll_text[$i] .= ""; $k++; @@ -152,4 +163,4 @@ $uni = uniqid(""); if ( no_script_flag_ == false ) start_roll_(); - + diff --git a/shop/maintype40.inc.php b/shop/maintype40.inc.php index fab412127..957cdc66b 100644 --- a/shop/maintype40.inc.php +++ b/shop/maintype40.inc.php @@ -1,5 +1,5 @@ = 0; var i_ = 0; function start_roll_() -{ +{ i_ = 0; for (i_ in roll_text_) n_panel_++; @@ -39,14 +39,14 @@ function start_roll_() if(startPanel_ == 0) { i_ = 0; - for (i_ in roll_text_) + for (i_ in roll_text_) insert_area_(total_area_, total_area_++); // area 삽입 } else if(startPanel_ == n_panel_) { insert_area_(startPanel_, total_area_); total_area_++; - for (i_=0; i_; i_++) + for (i_=0; i_; i_++) { insert_area_(i_, total_area_); // area 삽입 total_area_++; @@ -56,12 +56,12 @@ function start_roll_() { insert_area_(startPanel_, total_area_); total_area_++; - for (i_=startPanel_+1; i_<=n_panel_; i_++) + for (i_=startPanel_+1; i_<=n_panel_; i_++) { insert_area_(i_, total_area_); // area 삽입 total_area_++; } - for (i_=0; i_; i_++) + for (i_=0; i_; i_++) { insert_area_(i_, total_area_); // area 삽입 total_area_++; @@ -76,7 +76,7 @@ function start_roll_() } function rolling_() -{ +{ if (bMouseOver_ && wait_flag_) { for (i_=0;i_;i_++){ @@ -95,36 +95,47 @@ function rolling_() } function insert_area_(idx_, n_) -{ +{ document.write('
\n'+roll_text_[idx_]+'\n
\n'); } "; + // 리스트 썸네일 이미지 + $filepath = G4_DATA_PATH.'/item/'.$row['it_id']; + for($k=1; $k<=10; $k++) { + $idx = 'it_img'.$k; + if(file_exists($filepath.'/'.$row[$idx]) && is_file($filepath.'/'.$row[$idx])) { + $filename = $row[$idx]; + break; + } + } + $it_img = it_img_thumb($filename, G4_DATA_PATH.'/item/'.$row['it_id'], $img_width, $img_height); + $str .= "
"; } - if ($str) + if ($str) { $str2 = "
- - - + + + - +
      
  
"; $roll_text[$i] .= ""; - $roll_text[$i] .= ""; - $roll_text[$i] .= ""; - $roll_text[$i] .= ""; + $roll_text[$i] .= ""; + $roll_text[$i] .= ""; + $roll_text[$i] .= ""; $roll_text[$i] .= "
$href".get_it_image($row[it_id]."_s", $img_width, $img_height)."
$href".addslashes($row[it_name])."
".display_amount(get_amount($row), $row[it_tel_inq])."
$href".get_it_image($row['it_id'].'/'.$it_img, $img_width, $img_height)."
$href".addslashes($row['it_name'])."
".display_amount(get_amount($row), $row['it_tel_inq'])."
"; $roll_text[$i] .= "
"; - $str .= ""; - $str .= ""; - $str .= ""; + $str .= ""; + $str .= ""; + $str .= ""; $str .= "
$href".get_it_image($row[it_id]."_s", $img_width, $img_height)."
$href".addslashes($row[it_name])."
".display_amount(get_amount($row), $row[it_tel_inq])."
$href".get_it_image($row['it_id'].'/'.$it_img, $img_width, $img_height)."
$href".addslashes($row['it_name'])."
".display_amount(get_amount($row), $row['it_tel_inq'])."
$str
"; echo "roll_text_{$uni}[$i] = \"{$str2}\";\n"; } - if (!$row[it_id]) break; + if (!$row['it_id']) break; $i++; } @@ -145,4 +156,4 @@ while (1) if ( no_script_flag_ == false ) start_roll_(); - + diff --git a/shop/maintype50.inc.php b/shop/maintype50.inc.php index a09802c90..38c904707 100644 --- a/shop/maintype50.inc.php +++ b/shop/maintype50.inc.php @@ -1,5 +1,5 @@ ; "; $k=0; - while ($row=sql_fetch_array($result)) + while ($row=sql_fetch_array($result)) { if (!$row) break; $href = ""; + // 리스트 썸네일 이미지 + $filepath = G4_DATA_PATH.'/item/'.$row['it_id']; + for($k=1; $k<=10; $k++) { + $idx = 'it_img'.$k; + if(file_exists($filepath.'/'.$row[$idx]) && is_file($filepath.'/'.$row[$idx])) { + $filename = $row[$idx]; + break; + } + } + $it_img = it_img_thumb($filename, G4_DATA_PATH.'/item/'.$row['it_id'], $img_width, $img_height); + $roll_text[$i] .= ""; $roll_text[$i] .= ""; - $roll_text[$i] .= ""; - $roll_text[$i] .= ""; - $roll_text[$i] .= ""; + $roll_text[$i] .= ""; + $roll_text[$i] .= ""; + $roll_text[$i] .= ""; $roll_text[$i] .= "
$href".get_it_image($row[it_id]."_s", $img_width, $img_height)."
$href".addslashes($row[it_name])."
".display_amount(get_amount($row), $row[it_tel_inq])."
$href".get_it_image($row['it_id'].'/'.$it_img, $img_width, $img_height)."
$href".addslashes($row['it_name'])."
".display_amount(get_amount($row), $row['it_tel_inq'])."
"; $roll_text[$i] .= ""; $k++; @@ -60,7 +71,7 @@ for ($i=0; $i<10000; $i++) } ?> -function ImgBannerStart_() +function ImgBannerStart_() { for (k_ = 0; k_ < ctnt_i_.length; k_++) { insertImg_(k_); @@ -73,7 +84,7 @@ function ImgBannerStart_() window.setTimeout("scrollimg_()", wait_); } -function scrollimg_() +function scrollimg_() { if (mouse_) { befTmp_.display = 'none'; @@ -89,7 +100,7 @@ function scrollimg_() window.setTimeout("scrollimg_()",wait_); } -function insertImg_(n) +function insertImg_(n) { htmlstr_ = '

\n'; From 5e70a2f59ebf3a048ae786e78a887b23aa2bccf3 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 30 Jan 2013 09:47:31 +0900 Subject: [PATCH 11/12] =?UTF-8?q?=EC=A0=91=EC=86=8D=EC=9E=90=EC=A7=91?= =?UTF-8?q?=EA=B3=84=20G4=20=EA=B2=BD=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/visit.sub.php | 2 +- skin/visit/neo/visit.skin.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/adm/visit.sub.php b/adm/visit.sub.php index bac3ed271..bce9ae966 100644 --- a/adm/visit.sub.php +++ b/adm/visit.sub.php @@ -1,7 +1,7 @@ @@ -17,6 +17,6 @@ global $is_admin;
전체
-
상세보기 + 상세보기 From f4c865abdde6daabf46760a4a86a12a1c5358cd2 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Wed, 30 Jan 2013 10:19:43 +0900 Subject: [PATCH 12/12] =?UTF-8?q?sideview=20=EA=B2=BD=EB=A1=9C=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/common.js | 9 ++++----- js/sideview.js | 8 ++++---- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/js/common.js b/js/common.js index 06728a068..bdcf69845 100644 --- a/js/common.js +++ b/js/common.js @@ -282,6 +282,7 @@ function image_window(img) if(parseInt(navigator.appVersion) >= 4){win.window.focus();} } +/* // a 태그에서 onclick 이벤트를 사용하지 않기 위해 function win_open(url, name, option) { @@ -310,17 +311,15 @@ function win_comment(url) // 폼메일 창 function win_formmail(mb_id, name, email) { - if (g4_charset.toLowerCase() == 'euc-kr') - win_open(g4_bbs_url+"/formmail.php?mb_id="+mb_id+"&name="+name+"&email="+email, "winFormmail", "left=50, top=50, width=600, height=500, scrollbars=0"); - else - win_open(g4_bbs_url+"/formmail.php?mb_id="+mb_id+"&name="+encodeURIComponent(name)+"&email="+email, "winFormmail", "left=50, top=50, width=600, height=480, scrollbars=0"); + win_open(g4_bbs_url+"/formmail.php?mb_id="+mb_id+"&name="+encodeURIComponent(name)+"&email="+email, "winFormmail", "left=50, top=50, width=600, height=480, scrollbars=0"); } // 자기소개 창 function win_profile(mb_id) { - win_open(g4_path+"/" + g4_bbs + "/profile.php?mb_id="+mb_id, 'winProfile', 'left=50,top=50,width=620,height=510,scrollbars=1'); + win_open(g4_bbs_url+"/profile.php?mb_id="+mb_id, 'winProfile', 'left=50,top=50,width=620,height=510,scrollbars=1'); } +*/ var last_id = null; function menu(id) diff --git a/js/sideview.js b/js/sideview.js index c0ccea4e5..54544a063 100644 --- a/js/sideview.js +++ b/js/sideview.js @@ -66,16 +66,16 @@ function SideView(targetObj, curObj, mb_id, name, email, homepage) // 쪽지보내기 if (mb_id) // 불여우 자바스크립트창이 뜨는 오류를 수정 - this.insertTail("memo", "쪽지보내기"); + this.insertTail("memo", '쪽지보내기'); // 메일보내기 if (email) - this.insertTail("mail", "메일보내기"); + this.insertTail("mail", '메일보내기'); // 홈페이지 if (homepage) - this.insertTail("homepage", "홈페이지"); + this.insertTail("homepage", '홈페이지'); // 자기소개 if (mb_id) - this.insertTail("info", "자기소개"); + this.insertTail("info", '자기소개'); //} // 게시판테이블 아이디가 넘어왔을 경우