-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbasket_skin.php
145 lines (142 loc) · 5.88 KB
/
basket_skin.php
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?
$receiveDateTime = $row->receiveDateTime;
$receiveDateArr = explode("-",$row->receiveDate);
$receiveDateTimeStr = $receiveDateArr[0]."년 "
.$receiveDateArr[1]."월 "
.$receiveDateArr[2]."일 "
.$row->receiveTime;
$addr = str_replace("=","",$row->addr);
$prodNum = $row->prodNum;
$receiveType = $row->receiveType;
$receiveTypeText = $row->receiveTypeText;
$purposeText = $row->purposeText;
$productTypeText = $row->productTypeText;
$priceText = $row->priceText;
$styleText = $row->styleText;
$aoidx = $row->aoidx;
$rcvName = $row->rcvName;
$tel = $row->tel;
?>
<li>
<div class="pr_info_area">
<table cellpadding="0" cellspacing="0" width="100%" border="0" class="pr_infobox">
<tr>
<td valign="top">
</td>
</tr>
<tr>
<td>
<div style="overflow:hidden">
<div style="float:right;font-size:0em;line-height:0em;">
<?
if(strlen($row->tinyimage)!=0 && file_exists($Dir.DataDir."shopimages/product/".$row->tinyimage)){
?>
<img src="<?=_getMobileThumbnail($origloc,$saveloc,$row->tinyimage,80,80,$quality)?>?>" />
<?
} else {
echo "<img src=\"".$Dir."images/no_img.gif\" width=\"80\">";
}
?>
</div>
<div style="float:left;width:70%;">
<div style="font-weight:bold;font-size: 1.2em;letter-spacing:-1px;line-height:25px;"><a href="./productdetail_tab01.php?productcode=<?=$row->productcode?>" rel="external"><?=cutStr($productname,60)?></a></div>
<table cellpadding="0" cellspacing="0" width="100%" border="0" class="pr_info">
<?
$opt_change_btn = false;
//옵션 사용여부 2016-10-04 Seul
$optClass->setOptUse($row->productcode);
$optClass->setOptType($row->productcode);
if($optClass->optUse) {
$opt_change_btn = true;
?>
<tr>
<td><span class="sfont">옵션 : <?=$optClass->getOptComText($row->productcode, $row->com_idx)?></span>
<!-- 옵션변경-->
<?
if ($opt_change_btn) {
echo "<div style=\"margin-top:5px;\"><img src=\"".$Dir."images/common/basket/".$_data->design_basket."/basket_skin3_btn9.gif\" style=\"cursor:pointer;\" onclick=\"optChange({$row->basketidx}, ".$row->com_idx.")\" alt=\"옵션변경\" /></div>";
}
?>
<!-- 옵션변경-->
</td>
</tr>
<?
}
?>
<input type="hidden" name="opt_comidx" value="<?=$row->com_idx?>">
<?if ($_data->reserve_maxuse>=0){?>
<tr>
<td class="pt_info_contents"><?=number_format($tempreserve)?>원 적립</td>
</tr>
<?}?>
<tr>
<td class="pt_info_contents"><span class="point4"><?=number_format($sellprice)?>원</span></td>
</tr>
<tr>
<td class="basket_quantity">
<?
$sqlh = "SELECT a.* ";
$sqlh.= "FROM tblproduct AS a ";
$sqlh.= "LEFT OUTER JOIN tblproductgroupcode b ON a.productcode=b.productcode ";
$sqlh.= "WHERE a.productcode='".$row->productcode."' AND a.display='Y' ";
$resulth=mysql_query($sqlh,get_db_conn());
if($_pdata=mysql_fetch_object($resulth)) {
}
if(strlen($_pdata->quantity)>0 && $_pdata->quantity<=0){
echo "<a href=\"javascript:;\" onclick=\"alarm_productcode_add('".$row->productcode."');\" id='showMask'>재입고 알림</a>";
}else{
?>
<div style="float:left;">
<input type="button" value="-" class="basic_button" onClick="quantityControl('minus',<?=$formcount-1?>);" />
<input class="basic_input" type="text" name="quantity" size="4" value="<? echo $row->quantity ?>" style="text-align:center;vertical-align:top;border-left:0px;border-right:0px;" />
<input type="button" value="+" class="basic_button" onClick="quantityControl('plus',<?=$formcount-1?>);" />
</div>
<input type="button" value="적용" class="basic_button grayBtn" onClick="CheckForm('upd',<?=$formcount-1?>);" style="margin-left:3px;background:#eee;" />
<? } ?>
</td>
</tr>
</table>
</div>
</div>
</td>
</tr>
<tr>
<td>
<div style="background:#f8f8f8;padding:10px;">
<div style="text-align:center;padding:3px;line-height:20px;">
<div>
<span class="receiveDateTimeConf"><?=$receiveDateTimeStr?>까지 </span>
<span class="receiveTypeConf" style="margin-right:20px;">[<?=$receiveTypeText?>]</span>
</div>
</div>
<?if($receiveType==0){?>
<div style="margin:10px;">
<p style="text-align:center;">
<span><?=$addr?></span>
</p>
<div style="text-align:right;margin:0 10px 10px 10px;"><?=$rcvName?>(<?=$tel?>)
</div>
</div>
<?}?>
</div>
</td>
</tr>
<tr>
<td class="basket_prbtn_area">
<?
if (strlen($_ShopInfo->getMemid())>0 && $_ShopInfo->getMemid()!="deleted") {
?>
<button type="button" class="basic_button wish" onClick="go_wishlist('<?=$formcount-1?>')"><span >찜하기</span></button>
<?
} else {
?>
<button type="button" class="basic_button wish" onClick="check_login()"><span>찜하기</span></button>
<?
}
?>
<button type="button" class="basic_button delete" onClick="CheckForm('del',<?=$formcount-1?>)"><span>삭제</span></button>
</td>
</tr>
</table>
</div>
</li>