버튼이 먹통이라 질문드립니다.
본문
<div id="Action">
<?
$query5 = "select count(*) as cnt2 from g5_write_shop where wr_name = '$member[mb_name]' and wr_10 = '구매대기' ";
$result5 = sql_query($query5);
while($row = sql_fetch_array($result5)) {
$product = $row[wr_subject];
$cnt2 = $row[cnt2];
}
$i = 0;
$query5 = "select * from g5_write_basket where mb_id = '$member[mb_id]' and wr_10 = '구매대기' ";
$result5 = sql_query($query5);
while($row = sql_fetch_array($result5)) {
$product[$i] = $row[wr_subject];
$amount[$i] = $row[wr_3];
$price[$i] = $row[wr_1];
$delivery[$i] = $row[wr_2];
$del_status[$i] = $row[wr_4];
$date[$i] = $row[wr_datetime];
$id[$i] = $row[wr_9];
}
?>
<div class="table_ex" >
<table>
<tr>
<td width="132">상품명</td>
<td width="150">구매수량</td>
<td width="130">구매가격</td>
<td>배송비</td>
<!-- <td>날짜</td> -->
<!-- <td>변경</td> -->
</tr>
<?
$i = 0;
$query5 = "select * from g5_write_basket where mb_id = '$member[mb_id]' and (wr_10 = '구매대기' or wr_10 = '결제확인') ";
$result5 = sql_query($query5);
while($row = sql_fetch_array($result5)) {
$product[$i] = $row[wr_subject];
$amount[$i] = $row[wr_3];
$price[$i] = $row[wr_1];
$delivery[$i] = $row[wr_2];
$del_status[$i] = $row[wr_8];
$date[$i] = $row[wr_datetime];
$id[$i] = $row[wr_9];
$confirm[$i] = $row[wr_10];
$i++;
}
$total_price = 0;
$del_fee = 0;
for($i =0; $i < count($product); $i++) {
if($amount[$i] != 0) {
$total_price = $price[$i] + $total_price;
if($del_status[$i] == 0) $del_fee = $delivery[$i] + $del_fee;
$check = $confirm[$i];
?>
<tr>
<td><? echo $product[$i]?></td>
<td>
<p class="amount">
<span class="amount_txt"><? echo $amount[$i]?></span>
<span class="amount_btm">
<input type=button class="btn_b02" onclick="showHint21(<?php echo $id[$i] ?>)" value="▲" style="border-bottom:1px #ddd solid; padding-bottom:2px;">
<input type=button class="btn_b02" onclick="showHint2(<?php echo $id[$i] ?>)" value="▼">
</span>
</p>
</td>
<td><? echo number_format($price[$i])?>원</td>
<td><? echo $delivery[$i]?></td>
</tr>
</table>
<? }
if($total_price != 0) $del_fee = min($delivery) + $del_fee;
if($check == "구매대기") $check = "결제하기";
}
?>
<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
newwindow=window.open(url,'name','height=400,width=500');
if (window.focus) {newwindow.focus()}
return false;
}
// -->
</script>
<table>
<tr><td>총 결제액</td></tr>
<tr>
<td colspan=2 ><? echo number_format($total_price)?>원(배송료:<? echo $del_fee?>원) </td>
</tr>
</table>
</div>
<input type=button class="btn_b01" onclick="showHint3(<?php echo $id[$i] ?>)" value="주문취소">
<a href="<? echo $board_skin_url?>/checkout.html?total_price=<? echo $total_price?>&check=<? echo $check?>" onclick="return popitup('<? echo $board_skin_url?>/checkout.html?total_price=<? echo $total_price?>&check=<? echo $check?>')"><? echo $check ?></a>
</div>
마지막줄에 주문취소 버튼이 먹지를 않은데 왜 그러는건가요??
!-->
답변을 작성하시기 전에 로그인 해주세요.