= $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]; ?>
| 일련번호 | 제품코드 | 제품명 | 제품가격 | 상품분류 | 제조사 | 이미지 |
| $num | $row[it_id] | $row[it_name] | $row[it_amount] | $category | $row[it_maker] | $image |
| =paging(1000, $page, $total_page, "./mymargin.php?page=");?> | ||||||