', 0); ?> total_count > 0) { $li_width = intval(100 / $this->list_mod); $li_width_style = ' style="width:'.$li_width.'%;"'; $k = 1; $slide_btn = ''.$k.'번째 리스트'; for ($i=0; $row=sql_fetch_array($result); $i++) { $is_soldout = is_soldout($row['it_id'], true); // 품절인지 체크 if($i == 0) { echo ''.PHP_EOL; echo ''.PHP_EOL; echo '베스트상품'.PHP_EOL; echo ''.PHP_EOL; echo ''.PHP_EOL; echo ''.PHP_EOL; } if($i > 0 && ($i % $this->list_mod == 0)) { echo ''.PHP_EOL; echo ''.PHP_EOL; $k++; $slide_btn .= ''.$k.'번째 리스트'; } echo ''.PHP_EOL; if ($this->href) { echo ''.PHP_EOL; } if ($this->view_it_img) { echo get_it_image($row['it_id'], $this->img_width, $this->img_height, '', '', stripslashes($row['it_name'])).PHP_EOL; } if ($this->href) { echo ''; if ($this->view_it_icon) { // 품절 if ($is_soldout) { echo 'SOLD OUT'; } } echo ''.PHP_EOL; } if ($this->view_it_id) { echo '<'.stripslashes($row['it_id']).'>'.PHP_EOL; } if ($this->href) { echo ''.PHP_EOL; } if ($this->view_it_name) { echo stripslashes($row['it_name']).PHP_EOL; } if ($this->href) { echo ''.PHP_EOL; } if ($this->view_it_price) { echo ''.display_price(get_price($row), $row['it_tel_inq']).''.PHP_EOL; } echo ''.PHP_EOL; } if($i > 0) { echo ''.PHP_EOL; echo ''.PHP_EOL; echo ''.$slide_btn.''.PHP_EOL; echo ''.PHP_EOL; echo ''.PHP_EOL; } ?>