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
|
<? include_once("./_common.php"); include("./header.sub.php"); include("./commonST.php");
$view_catecode = "0101"; // 태성수산 사용 분류 코드
$sql = "select * from pclass where fullpath like '{$view_catecode}%' and plevel = 2 order by fullpath asc"; $res = mysql_query($sql); while($info=mysql_fetch_array($res)){ $cate_array[] = $info; }
?> <style> .product_section {clear:both;display:block;margin:0 3px;} .cate {border-collapse:separate;border-spacing:5px; width:100%; } .cate td {padding:5px 0;width:23.5%;height:60px;text-align:center;vertical-align:middle;font-weight:600;} .cate td button {font-size:16px;line-height:110%;font-weight:600;border:0px none;background:none;}
.ls_v3 {margin:5px 0 10px;} .ls_v3 input {line-height:50px;} .btn_total {margin-top:20px; width:150px; height:30px; height:50px;padding-left:30%;} .b_gray { background:#e0e0e0;height:35px; padding-top:10px; } .b_gray a { font-size:16px;font-weight:600; } .b_defn { display:inline-block; line-height:60px; } .b_defn button { margin-top:17px;} </style> <div class="snb"> <p class="txt">상품분류(소분류)</p> </div>
<div class="product_section"> <!--1줄의 높이 60px--> <table class="cate"> <tr> <?php foreach($cate_array as $key=>$info){ if($key%4==0 && $key>0){ echo "</tr><tr>"; } ?> <td class="b_defn" value2="<?php echo $info['fullpath'];?>"><button><?php echo $info['name'];?></button></td> <?php } ?> </tr>
</table>
<div class="btn_total"> <span class="b3 b_gray close_window_class"><a>이전으로</a></span> </div> </div><!--//product_section--> <script> $(function(){ $(".close_window_class").click(function(){ //window.close(); document.location.href='buyWrite_new2.php'; });
$(".b_defn").click(function(){ $v = $(this).attr("value2"); document.location.href='buyWrite_new_pop.php?cate='+$v; }); }); </script> <?php //include("./footer.php"); ?>
|