From 4886714a584cae8252f10ec5689949a01f552309 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 30 Jan 2013 09:43:54 +0900 Subject: [PATCH] =?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'; htmlstr_ += ctnt_i_[n] + '\n' + '
\n';