1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
<?php Global $qstr_order, $qstr_cate, $orderkey, $where, $qstr; Global $configshop, $cinfo;
$cur_img_url = $j3_img_url."/".$sk['sk_img_path'];
$box_width = $sk['sk_box_width']; $img_width = $sk['sk_img_width']; $img_height = $sk['sk_img_height'];
if($page==''){ $page = 1; } $rowcnt = $sk['sk_line_cnt']; $colcnt = $sk['sk_max_cnt']; $list = product_search_list($where, $orderkey, $page, $rowcnt, $colcnt); $total_page = $list[0]['total_page']; $list_num = $list[0]['list_num']; $total_count = $list[0]['total_count']; $sql_rtn = $list[0]['sql_rtn']; // 카테고리 처리용 SQL 리턴받음
$sql = "select aa.prod_cate_code_s, bb.name as cate_name, count(aa.prod_cate_code_s) as cate_cnt from ({$sql_rtn}) aa inner join product_category_s bb on aa.prod_cate_code_s = bb.code and bb.pc_use = '1' where 1=1 group by aa.prod_cate_code_s;"; // 카테고리 처리용 SQL 처리 $res = mysql_query($sql,$connect_j3); while($info=mysql_fetch_array($res)){ $c_array[] = $info; }
if($skin_css!=''){ echo $skin_css; } else { ?> <!-- 상단 카테고리 내 위치 --> <style> .event_header img {max-width:1200px;} .event_footer img {max-width:1200px;} </style> <?php }?> <div class="class_skin_idx_<?php echo $sk_idx;?>">
<!-- 상품목록 : 메인 네번째스킨 --> <section class="p0_10"> <h2 class="l_height40 align_c">상품검색결과</h2> <!-- 첫줄 --> <!-- ul : 높이값 = (이미지높이 + 하단마진) * 상품갯수 --> <ul class="width_full" style="height:420px;"> <?php for($i=0;$i<count($list);$i++){ $info = $list[$i]; if($info['code']==''){ continue; }// 상품이 없으면 패스한다.
$info['img_url'] = get_it_thumbnail($info['code'],$info['pic1'],$img_width, $img_height); ?> <li class="sct_li relative float_l mb10 width_full bg_gray" style="height:<?php echo $box_width;?>px;"> <div class="sct_img float_l mr10"><a href="<?php echo $info['href'];?>"><img src="<?php echo $info['img_url'];?>" alt="제품이미지" style=""></a></div> <?php include("./list_ico.inc.php"); // 리스트에서 아이콘 처리 ?> <div class="sct_txt p0_5 pt5 txt14 bold"><a href="<?php echo $info['href'];?>"><?php echo $info['name']?></a></div> <?php if($info['remarks']!=''){ ?> <div class="sct_basic p0_5 mt3 gray txt13"><a href="<?php echo $info['href'];?>"><?php echo $info['remarks'];?></a></div> <?php } ?> <?php if($info['norm']!=''){ ?> <div class="sct_basic p0_5 mt3 gray txt13"><a href="<?php echo $info['href'];?>"><?php echo $info['norm'];?></a></div> <?php } ?> <div class="sct_cost absolute ab_bot5_right p0_10"><a href="<?php echo $info['href'];?>"> <?php if($configshop['price_level']<=$cinfo['mb_lv']){ // 가격표시권한이 있을경우만?> <?php if($info['marketprice']>0){?><strike class="mr5 gray2 txt10"><?php echo $info['marketprice'];?></strike><?php }?> <em class="txt16 bold"><?php echo $info['saleprice'];?></em><span class="txt10">원</span> <?php } else { echo " "; } ?> </a></div> <?php include("../shop/list_cart.inc.php"); // 리스트에서 장바구니/보관함 담기 모듈 ?> </li> <?php } ?> </ul> </section> <div class='pg_wrap' style='padding-top:0px;'> <?php echo get_paging($list_num, $page, $total_page, "?$qstr");?> </div> <!-- } 상품목록 끝 --> <script> $(function(){ $(".item_cnt_class").html("<?php echo $total_count;?>"); // 총 상품 갯수 부분을 업데이트 한다. <?php if($cate_code!=''){ echo "$('.inner_cate_class').html('{$c_array[0]['cate_name']}');"; } else { foreach($c_array as $key=>$val){ // 검색된 상품의 카테고리를 뿌려준다. echo "$('.cate_sel_class ul').append('<li class=\"float_l mr1 mb1 height37 align_c l_height32 bg_white\" style=\"width:130px;\"><a class=\"block mt3 gray3 txt13 bold space_1\" href=\"{$j3_shop_url}/search.php?{$qstr_cate}&cate_code={$val['prod_cate_code_s']}\">{$val['cate_name']}(<span>{$val['cate_cnt']}</span>)</a></li>');".chr(10); } } ?> }); </script> </div>
|