shop/all.php 를 아래의 코드로 만드신 후 사용하시기 바랍니다.
<?
include_once("./_common.php");
$g4[title] = "전체상품 리스트";
include_once("./_head.php");
?>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td>
<?
// 상품 출력순서가 있다면
if ($sort != "") {
$order_by = $sort . " , ";
}
// 상품 (하위 분류의 상품을 모두 포함한다.)
$sql_list1 = " select * ";
$sql_list2 = " order by $order_by it_order, it_id desc ";
// 하위분류 포함
// 판매가능한 상품만
$sql_common = " from $g4[yc4_item_table]
where it_use = '1' ";
$error = "<img src='$g4[shop_img_path]/no_item.gif' border=0>";
$list_mod = 4;
$list_row = 5;
$img_width = 120;
$img_height = 120;
include "$g4[shop_path]/list.sub.php";
include "$g4[shop_path]/list.sort.php";
$sql = $sql_list1 . $sql_common . $sql_list2 . " limit $from_record, $items ";
$result = sql_query($sql);
include "list.skin.10.php";
if ($i==0)
{
echo "<br>";
echo "<div align=center>$error</div>";
}
?>
</td>
</tr>
</table>
<br>
<div align=center>
<?
$qstr1 .= "ca_id=$ca_id&skin=$skin&ev_id=$ev_id&sort=$sort";
echo get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?$qstr1&page=");
?>
</div><br>
<?
// 하단 HTML
echo stripslashes($ca[ca_tail_html]);
$timg = "$g4[path]/data/category/{$ca_id}_t";
if (file_exists($timg))
echo "<br><img src='$timg' border=0>";
if ($ca[ca_include_tail])
@include_once($ca[ca_include_tail]);
else
include_once("./_tail.php");
echo "\n<!-- $ca[ca_skin] -->\n";
?>
댓글 8개
게시글 목록
| 번호 | 제목 |
|---|---|
| 657 | |
| 654 | |
| 651 | |
| 649 | |
| 647 | |
| 642 | |
| 640 | |
| 639 | |
| 634 | |
| 630 | |
| 945 | |
| 623 | |
| 617 | |
| 613 | |
| 610 | |
| 609 | |
| 607 | |
| 604 | |
| 602 | |
| 597 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기