= $total_page) $end_page = $total_page; if ($start_page > 1) $str .= "..."; if ($total_page > 1) for ($k=$start_page;$k<=$end_page;$k++) if ($cur_page != $k) $str .= "[$k]"; else $str .= " $k "; if ($total_page > $end_page) $str .= "..."; return $str; } function it_image($img) { global $g4; $tmp = "$g4[path]/data/item/$img"; if (file_exists($tmp) && $img) { $str = "$g4[url]/data/item/$img"; } else { $str = "$g4[shop_url]/img/no_image.gif"; } return $str; } include_once("./_common.php"); // 페이지당 행수 $page_rows = 100; $sql = " select count(*) as cnt from $g4[yc4_item_table] where it_use = '1' "; $row = sql_fetch($sql); $total_count = $row[cnt]; ?>
| 상품명 | 상품URL | 상품이미지URL | 가격 | 분류 | 제조사 | 브랜드 | 모델명 | 상품코드 |
| $row[it_name] | {$g4[shop_url]}/item.php?it_id=$row[it_id] | $image | $row[it_amount] | $row[it_maker] | $category | $row[it_id] |
총 =$total_count?>개 =paging(1000, $page, $total_page, "./yavis.php?page=");?>