#186 가격 필드명 price 로 변경
This commit is contained in:
@ -49,7 +49,7 @@ $sql = " select a.ct_id,
|
||||
a.it_opt4,
|
||||
a.it_opt5,
|
||||
a.it_opt6,
|
||||
a.ct_amount,
|
||||
a.ct_price,
|
||||
a.ct_point,
|
||||
a.ct_qty,
|
||||
a.ct_status,
|
||||
@ -84,7 +84,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
$good_info .= "ordr_numb={$od_id}_".sprintf("%04d", $i).chr(31);
|
||||
$good_info .= "good_name=".addslashes($row['it_name']).chr(31);
|
||||
$good_info .= "good_cntx=".$row['ct_qty'].chr(31);
|
||||
$good_info .= "good_amtx=".$row['ct_amount'].chr(31);
|
||||
$good_info .= "good_amtx=".$row['ct_price'].chr(31);
|
||||
}
|
||||
|
||||
if ($i==0) { // 계속쇼핑
|
||||
@ -107,7 +107,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
}
|
||||
|
||||
$point = $row['ct_point'] * $row['ct_qty'];
|
||||
$sell_amount = $row['ct_amount'] * $row['ct_qty'];
|
||||
$sell_amount = $row['ct_price'] * $row['ct_qty'];
|
||||
?>
|
||||
|
||||
<tr>
|
||||
@ -127,7 +127,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
echo '<td class="td_num">'.$row['ct_qty'].'</td>';
|
||||
?>
|
||||
|
||||
<td class="td_bignum"><?php echo number_format($row['ct_amount']); ?></td>
|
||||
<td class="td_bignum"><?php echo number_format($row['ct_price']); ?></td>
|
||||
<td class="td_bignum"><?php echo number_format($sell_amount); ?></td>
|
||||
<td class="td_bignum"><?php echo number_format($point); ?></td>
|
||||
|
||||
|
||||
@ -82,25 +82,15 @@ else if ($act == "multi") // 온라인견적(등)에서 여러개의 상품이
|
||||
{
|
||||
if ($_POST['it_id'][$i] == "" || $_POST['ct_qty'][$i] <= 0) { continue; }
|
||||
|
||||
// 비회원가격과 회원가격이 다르다면
|
||||
if (!$is_member && $default['de_different_msg'])
|
||||
{
|
||||
$sql = " select it_amount, it_amount2 from {$g4['shop_item_table']} where it_id = '{$_POST['it_id'][$i]}' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['it_amount2'] && $row['it_amount'] != $row['it_amount2']) {
|
||||
$error .= "\"{$_POST['it_name'][$i]}\" 의 비회원가격과 회원가격이 다릅니다. 로그인 후 구입하여 주십시오.\\n\\n";
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------
|
||||
// 변조 검사
|
||||
//--------------------------------------------------------
|
||||
$sql = " select * from {$g4['shop_item_table']} where it_id = '{$_POST['it_id'][$i]}' ";
|
||||
$it = sql_fetch($sql);
|
||||
|
||||
$amount = get_amount($it);
|
||||
$price = get_price($it);
|
||||
// 상품가격이 다름
|
||||
if ((int)$amount !== (int)$_POST['it_amount'][$i])
|
||||
if ((int)$price !== (int)$_POST['it_price'][$i])
|
||||
die("Error..");
|
||||
|
||||
$point = $it['it_point'];
|
||||
@ -136,7 +126,7 @@ else if ($act == "multi") // 온라인견적(등)에서 여러개의 상품이
|
||||
set uq_id = '$tmp_uq_id',
|
||||
it_id = '{$_POST['it_id'][$i]}',
|
||||
ct_status = '쇼핑',
|
||||
ct_amount = '{$_POST['it_amount'][$i]}',
|
||||
ct_price = '{$_POST['it_price'][$i]}',
|
||||
ct_point = '{$_POST['it_point'][$i]}',
|
||||
ct_point_use = '0',
|
||||
ct_stock_use = '0',
|
||||
@ -183,9 +173,9 @@ else // 장바구니에 담기
|
||||
}
|
||||
}
|
||||
|
||||
$amount = get_amount($it) + $opt_amount;
|
||||
$price = get_price($it) + $opt_amount;
|
||||
// 상품가격이 다름
|
||||
if ((int)$amount !== (int)$_POST['it_amount'])
|
||||
if ((int)$price !== (int)$_POST['it_price'])
|
||||
die("Error..");
|
||||
|
||||
$point = $it['it_point'];
|
||||
@ -234,7 +224,7 @@ else // 장바구니에 담기
|
||||
it_opt5 = '{$_POST['it_opt5']}',
|
||||
it_opt6 = '{$_POST['it_opt6']}',
|
||||
ct_status = '쇼핑',
|
||||
ct_amount = '{$_POST['it_amount']}',
|
||||
ct_price = '{$_POST['it_price']}',
|
||||
ct_point = '{$_POST['it_point']}',
|
||||
ct_point_use = '0',
|
||||
ct_stock_use = '0',
|
||||
|
||||
@ -293,20 +293,20 @@ else
|
||||
</tr>
|
||||
|
||||
<?php } else { // 전화문의가 아닐 경우?>
|
||||
<?php if ($it['it_cust_amount']) { // 1.00.03?>
|
||||
<?php if ($it['it_cust_price']) { // 1.00.03?>
|
||||
<tr>
|
||||
<th scope="row"><label for="disp_cust_amount">시중가격</label></th>
|
||||
<th scope="row"><label for="disp_cust_price">시중가격</label></th>
|
||||
<td>
|
||||
<input type="text" name="disp_cust_amount" value="<?php echo number_format($it['it_cust_amount']); ?>" id="disp_cust_amount" readonly class="sit_ov_ro" size="8"> 원
|
||||
<input type="text" name="disp_cust_price" value="<?php echo number_format($it['it_cust_price']); ?>" id="disp_cust_price" readonly class="sit_ov_ro" size="8"> 원
|
||||
</td>
|
||||
</tr>
|
||||
<?php } // 전화문의 끝?>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><label for="disp_sell_amount">판매가격</label></th>
|
||||
<th scope="row"><label for="disp_sell_price">판매가격</label></th>
|
||||
<td>
|
||||
<input type="text" name="disp_sell_amount" id="disp_sell_amount" readonly class="sit_ov_ro" size="8"> 원
|
||||
<input type="hidden" name="it_amount" value="0">
|
||||
<input type="text" name="disp_sell_price" id="disp_sell_price" readonly class="sit_ov_ro" size="8"> 원
|
||||
<input type="hidden" name="it_price" value="0">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -598,9 +598,9 @@ else
|
||||
|
||||
function amount_change()
|
||||
{
|
||||
var basic_amount = parseInt("<?php echo get_amount($it); ?>");
|
||||
var basic_amount = parseInt("<?php echo get_price($it); ?>");
|
||||
var basic_point = parseFloat("<?php echo $it['it_point']; ?>");
|
||||
var cust_amount = parseFloat("<?php echo $it['it_cust_amount']; ?>");
|
||||
var cust_amount = parseFloat("<?php echo $it['it_cust_price']; ?>");
|
||||
|
||||
var f = document.fitem;
|
||||
var opt1 = 0;
|
||||
@ -624,14 +624,14 @@ else
|
||||
var amount = basic_amount + opt1 + opt2 + opt3 + opt4 + opt5 + opt6;
|
||||
var point = parseInt(basic_point);
|
||||
|
||||
if (typeof(f.it_amount) != 'undefined')
|
||||
f.it_amount.value = amount;
|
||||
if (typeof(f.it_price) != 'undefined')
|
||||
f.it_price.value = amount;
|
||||
|
||||
if (typeof(f.disp_sell_amount) != 'undefined')
|
||||
f.disp_sell_amount.value = number_format(String(amount * ct_qty));
|
||||
if (typeof(f.disp_sell_price) != 'undefined')
|
||||
f.disp_sell_price.value = number_format(String(amount * ct_qty));
|
||||
|
||||
if (typeof(f.disp_cust_amount) != 'undefined')
|
||||
f.disp_cust_amount.value = number_format(String(cust_amount * ct_qty));
|
||||
if (typeof(f.disp_cust_price) != 'undefined')
|
||||
f.disp_cust_price.value = number_format(String(cust_amount * ct_qty));
|
||||
|
||||
if (typeof(f.it_point) != 'undefined') {
|
||||
f.it_point.value = point;
|
||||
@ -645,7 +645,7 @@ else
|
||||
function fitemcheck(f, act)
|
||||
{
|
||||
// 판매가격이 0 보다 작다면
|
||||
if (f.it_amount.value < 0)
|
||||
if (f.it_price.value < 0)
|
||||
{
|
||||
alert("전화로 문의해 주시면 감사하겠습니다.");
|
||||
return;
|
||||
|
||||
@ -22,11 +22,11 @@ for ($i=1; $row=sql_fetch_array($result); $i++)
|
||||
<a href="<?php echo $href; ?>" class="sct_a">
|
||||
<span class="sct_img"><?php echo get_it_image($row['it_id'], $img_width, $img_height); ?></span>
|
||||
<b><?php echo stripslashes($row['it_name']); ?></b>
|
||||
<?php if ($row['it_cust_amount'] && !$row['it_gallery']) { ?>
|
||||
<s><?php echo display_amount($row['it_cust_amount']); ?></s>
|
||||
<?php if ($row['it_cust_price'] && !$row['it_gallery']) { ?>
|
||||
<s><?php echo display_price($row['it_cust_price']); ?></s>
|
||||
<?php } ?>
|
||||
<?php if (!$row['it_gallery']) { // 전시 상품이 아닐 때 ?>
|
||||
<span class="sct_cost"><?php echo display_amount(get_amount($row), $row['it_tel_inq']); ?></span>
|
||||
<span class="sct_cost"><?php echo display_price(get_price($row), $row['it_tel_inq']); ?></span>
|
||||
<?php } ?>
|
||||
<span class="sct_icon">
|
||||
<?php echo display_item_icon($row); // 이미지 아이콘?>
|
||||
|
||||
@ -22,11 +22,11 @@ for ($i=1; $row=sql_fetch_array($result); $i++)
|
||||
<a href="<?php echo $href; ?>" class="sct_a">
|
||||
<span class="sct_img"><?php echo get_it_image($row['it_id'], $img_width, $img_height); ?></span>
|
||||
<b><?php echo stripslashes($row['it_name']); ?></b>
|
||||
<?php if ($row['it_cust_amount'] && !$row['it_gallery']) { ?>
|
||||
<s><?php echo display_amount($row['it_cust_amount']); ?></s>
|
||||
<?php if ($row['it_cust_price'] && !$row['it_gallery']) { ?>
|
||||
<s><?php echo display_price($row['it_cust_price']); ?></s>
|
||||
<?php } ?>
|
||||
<?php if (!$row['it_gallery']) { // 전시 상품이 아닐 때 ?>
|
||||
<span class="sct_cost"><?php echo display_amount(get_amount($row), $row['it_tel_inq']); ?></span>
|
||||
<span class="sct_cost"><?php echo display_price(get_price($row), $row['it_tel_inq']); ?></span>
|
||||
<?php } ?>
|
||||
<span class="sct_icon">
|
||||
<?php echo display_item_icon($row); // 이미지 아이콘?>
|
||||
|
||||
@ -22,11 +22,11 @@ for ($i=1; $row=sql_fetch_array($result); $i++)
|
||||
<a href="<?php echo $href; ?>" class="sct_a">
|
||||
<span class="sct_img"><?php echo get_it_image($row['it_id'], $img_width, $img_height); ?></span>
|
||||
<b><?php echo stripslashes($row['it_name']); ?></b>
|
||||
<?php if ($row['it_cust_amount'] && !$row['it_gallery']) { ?>
|
||||
<s><?php echo display_amount($row['it_cust_amount']); ?></s>
|
||||
<?php if ($row['it_cust_price'] && !$row['it_gallery']) { ?>
|
||||
<s><?php echo display_price($row['it_cust_price']); ?></s>
|
||||
<?php } ?>
|
||||
<?php if (!$row['it_gallery']) { // 전시 상품이 아닐 때 ?>
|
||||
<span class="sct_cost"><?php echo display_amount(get_amount($row), $row['it_tel_inq']); ?></span>
|
||||
<span class="sct_cost"><?php echo display_price(get_price($row), $row['it_tel_inq']); ?></span>
|
||||
<?php } ?>
|
||||
<span class="sct_icon">
|
||||
<?php echo display_item_icon($row); // 이미지 아이콘?>
|
||||
|
||||
@ -22,11 +22,11 @@ for ($i=1; $row=sql_fetch_array($result); $i++)
|
||||
<a href="<?php echo $href; ?>" class="sct_a">
|
||||
<span class="sct_img"><?php echo get_it_image($row['it_id'], $img_width, $img_height); ?></span>
|
||||
<b><?php echo stripslashes($row['it_name']); ?></b>
|
||||
<?php if ($row['it_cust_amount'] && !$row['it_gallery']) { ?>
|
||||
<s><?php echo display_amount($row['it_cust_amount']); ?></s>
|
||||
<?php if ($row['it_cust_price'] && !$row['it_gallery']) { ?>
|
||||
<s><?php echo display_price($row['it_cust_price']); ?></s>
|
||||
<?php } ?>
|
||||
<?php if (!$row['it_gallery']) { // 전시 상품이 아닐 때 ?>
|
||||
<span class="sct_cost"><?php echo display_amount(get_amount($row), $row['it_tel_inq']); ?></span>
|
||||
<span class="sct_cost"><?php echo display_price(get_price($row), $row['it_tel_inq']); ?></span>
|
||||
<?php } ?>
|
||||
<span class="sct_icon">
|
||||
<?php echo display_item_icon($row); // 이미지 아이콘?>
|
||||
|
||||
@ -46,7 +46,7 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">판매가격</th>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_amount($list[$i]['ct_amount']); ?></td>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_price($list[$i]['ct_price']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">수량</th>
|
||||
@ -54,7 +54,7 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">소계</th>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_amount($list[$i]['stotal_amount']); ?></td>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_price($list[$i]['stotal_amount']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">포인트</th>
|
||||
@ -65,13 +65,13 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
|
||||
<?php if ($od_send_cost > 0) { // 배송비가 있다면 ?>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">배송비</th>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_amount($od_send_cost); ?></td>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_price($od_send_cost); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">주문합계</th>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_amount($ttotal_amount); ?></td>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_price($ttotal_amount); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">포인트합계</th>
|
||||
@ -97,14 +97,14 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
|
||||
<?php if ($od_receipt_card > 0) { ?>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">신용카드 입금액</th>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_amount($od_receipt_card); ?><!-- (승인전 금액입니다.) --></td>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_price($od_receipt_card); ?><!-- (승인전 금액입니다.) --></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($od_receipt_bank > 0) { ?>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>"><?php echo $od_settle_case; ?> 입금액</th>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_amount($od_receipt_bank); ?></td>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_price($od_receipt_bank); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">계좌번호</th>
|
||||
|
||||
@ -46,7 +46,7 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">판매가격</th>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_amount($list[$i]['ct_amount']); ?></td>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_price($list[$i]['ct_price']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">수량</th>
|
||||
@ -54,7 +54,7 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">소계</th>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_amount($list[$i]['stotal_amount']); ?></td>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_price($list[$i]['stotal_amount']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">포인트</th>
|
||||
@ -65,13 +65,13 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
|
||||
<?php if ($od_send_cost > 0) { // 배송비가 있다면 ?>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">배송비</th>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_amount($od_send_cost); ?></td>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_price($od_send_cost); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">주문합계</th>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_amount($ttotal_amount); ?></td>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_price($ttotal_amount); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">포인트합계</th>
|
||||
@ -97,14 +97,14 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
|
||||
<?php if ($od_receipt_card > 0) { ?>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">신용카드 입금액</th>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_amount($od_receipt_card); ?><!-- (승인전 금액입니다.) --></td>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_price($od_receipt_card); ?><!-- (승인전 금액입니다.) --></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($od_receipt_bank > 0) { ?>
|
||||
<tr>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>"><?php echo $od_settle_case; ?> 입금액</th>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_amount($od_receipt_bank); ?></td>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_price($od_receipt_bank); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">계좌번호</th>
|
||||
|
||||
@ -45,7 +45,7 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">판매가격</th>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_amount($list[$i]['ct_amount']); ?></td>
|
||||
<td style="<?php echo $td_st; ?>"><?php echo display_price($list[$i]['ct_price']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" style="<?php echo $th_st; ?>">수량</th>
|
||||
|
||||
@ -21,7 +21,7 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
<a href="<?php echo $href; ?>" class="sct_a">
|
||||
<span class="sct_img"><?php echo get_it_image($row['it_id'], $img_width, $img_height); ?></span>
|
||||
<b><?php echo stripslashes($row['it_name']); ?></b>
|
||||
<span class="sct_cost"><?php echo display_amount(get_amount($row), $row['it_tel_inq']); ?></span>
|
||||
<span class="sct_cost"><?php echo display_price(get_price($row), $row['it_tel_inq']); ?></span>
|
||||
<span class="sct_icon">
|
||||
<?php echo display_item_icon($row); // 이미지 아이콘?>
|
||||
</span>
|
||||
|
||||
@ -21,7 +21,7 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
<a href="<?php echo $href; ?>" class="sct_a">
|
||||
<span class="sct_img"><?php echo get_it_image($row['it_id'], $img_width, $img_height); ?></span>
|
||||
<b><?php echo stripslashes($row['it_name']); ?></b>
|
||||
<span class="sct_cost"><?php echo display_amount(get_amount($row), $row['it_tel_inq']); ?></span>
|
||||
<span class="sct_cost"><?php echo display_price(get_price($row), $row['it_tel_inq']); ?></span>
|
||||
<span class="sct_icon">
|
||||
<?php echo display_item_icon($row); // 이미지 아이콘?>
|
||||
</span>
|
||||
|
||||
@ -23,7 +23,7 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
<span class="sct_img"><?php echo get_it_image($row['it_id'], $img_width, $img_height); ?></span>
|
||||
<b><?php echo stripslashes($row['it_name']); ?></b>
|
||||
<p><?php echo $row['it_basic']; ?></p>
|
||||
<span class="sct_cost"><?php echo display_amount(get_amount($row), $row['it_tel_inq']); ?></span>
|
||||
<span class="sct_cost"><?php echo display_price(get_price($row), $row['it_tel_inq']); ?></span>
|
||||
<span class="sct_icon">
|
||||
<?php echo display_item_icon($row); // 이미지 아이콘?>
|
||||
</span>
|
||||
|
||||
@ -23,7 +23,7 @@ for ($i=1; $row=sql_fetch_array($result); $i++) {
|
||||
<span class="sct_img"><?php echo get_it_image($row['it_id'], $img_width, $img_height); ?></span>
|
||||
<b><?php echo stripslashes($row['it_name']); ?></b>
|
||||
<p><?php echo $row['it_basic']; ?></p>
|
||||
<span class="sct_cost"><?php echo display_amount(get_amount($row), $row['it_tel_inq']); ?></span>
|
||||
<span class="sct_cost"><?php echo display_price(get_price($row), $row['it_tel_inq']); ?></span>
|
||||
<span class="sct_icon">
|
||||
<?php echo display_item_icon($row); // 이미지 아이콘?>
|
||||
</span>
|
||||
|
||||
@ -50,7 +50,7 @@ $i_temp_point = (int)$_POST['od_temp_point'];
|
||||
|
||||
|
||||
// 주문금액이 상이함
|
||||
$sql = " select SUM(ct_amount * ct_qty) as od_amount from {$g4['shop_cart_table']} where uq_id = '$tmp_uq_id' ";
|
||||
$sql = " select SUM(ct_price * ct_qty) as od_amount from {$g4['shop_cart_table']} where uq_id = '$tmp_uq_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ((int)$row['od_amount'] !== $i_amount) {
|
||||
die("Error.");
|
||||
|
||||
@ -39,9 +39,9 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
</td>
|
||||
<td><?php echo substr($row['od_time'],0,16); ?> (<?php echo get_yoil($row['od_time']); ?>)</td>
|
||||
<td class="td_bignum"><?php echo $row['itemcount']; ?></td>
|
||||
<td class="td_bignum"><?php echo display_amount($row['orderamount']); ?></td>
|
||||
<td class="td_bignum"><?php echo display_amount($row['receiptamount']); ?></td>
|
||||
<td class="td_bignum"><?php echo display_amount($row['misu']); ?></td>
|
||||
<td class="td_bignum"><?php echo display_price($row['orderamount']); ?></td>
|
||||
<td class="td_bignum"><?php echo display_price($row['receiptamount']); ?></td>
|
||||
<td class="td_bignum"><?php echo display_price($row['misu']); ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
|
||||
@ -79,7 +79,7 @@ if(openwin != null) {
|
||||
}
|
||||
else
|
||||
{
|
||||
$wanbul = display_amount($receipt_amount);
|
||||
$wanbul = display_price($receipt_amount);
|
||||
}
|
||||
|
||||
// 120615 : 취소된 값을 두번 빼주는 결과가 되어 코드 수정 (군포돼지님)
|
||||
@ -119,7 +119,7 @@ if(openwin != null) {
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">결제금액</th>
|
||||
<td><?php echo display_amount($cd['cd_amount']); ?></td>
|
||||
<td><?php echo display_price($cd['cd_amount']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">승인일시</th>
|
||||
@ -149,7 +149,7 @@ if(openwin != null) {
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">결제금액</th>
|
||||
<td><?php echo display_amount($cd['cd_amount']); ?></td>
|
||||
<td><?php echo display_price($cd['cd_amount']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">승인일시</th>
|
||||
@ -181,7 +181,7 @@ if(openwin != null) {
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">입금액</th>
|
||||
<td><?php echo display_amount($od['od_receipt_bank']); ?></td>
|
||||
<td><?php echo display_price($od['od_receipt_bank']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">입금확인일시</th>
|
||||
@ -238,7 +238,7 @@ if(openwin != null) {
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">승인취소 금액</th>
|
||||
<td><?php echo display_amount($od['od_cancel_card']); ?></td>
|
||||
<td><?php echo display_price($od['od_cancel_card']); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
@ -248,7 +248,7 @@ if(openwin != null) {
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">환불 금액</th>
|
||||
<td><?php echo display_amount($od['od_refund_amount']); ?></td>
|
||||
<td><?php echo display_price($od['od_refund_amount']); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
@ -421,19 +421,19 @@ if(openwin != null) {
|
||||
<ul>
|
||||
<li>
|
||||
총 구매액
|
||||
<strong><?php echo display_amount($tot_amount); ?></strong>
|
||||
<strong><?php echo display_price($tot_amount); ?></strong>
|
||||
</li>
|
||||
<?php
|
||||
if ($od['od_dc_amount'] > 0) {
|
||||
echo '<li>';
|
||||
echo '할인액'.PHP_EOL;
|
||||
echo '<strong>'.display_amount($od['od_dc_amount']).'</strong>';
|
||||
echo '<strong>'.display_price($od['od_dc_amount']).'</strong>';
|
||||
echo '</li>';
|
||||
}
|
||||
if ($misu_amount > 0) {
|
||||
echo '<li>';
|
||||
echo '미결제액'.PHP_EOL;
|
||||
echo '<strong>'.display_amount($misu_amount).'</strong>';
|
||||
echo '<strong>'.display_price($misu_amount).'</strong>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
|
||||
@ -21,7 +21,7 @@ $sql = " select b.it_sell_email,
|
||||
a.it_opt5,
|
||||
a.it_opt6,
|
||||
a.ct_qty,
|
||||
a.ct_amount,
|
||||
a.ct_price,
|
||||
a.ct_point
|
||||
from {$g4['shop_cart_table']} a, {$g4['shop_item_table']} b
|
||||
where a.uq_id = '$tmp_uq_id'
|
||||
@ -36,8 +36,8 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$list[$i]['it_origin'] = $row['it_origin'];
|
||||
$list[$i]['it_opt'] = print_item_options($row['it_id'], $row['it_opt1'], $row['it_opt2'], $row['it_opt3'], $row['it_opt4'], $row['it_opt5'], $row['it_opt6']);
|
||||
$list[$i]['ct_qty'] = $row['ct_qty'];
|
||||
$list[$i]['ct_amount'] = $row['ct_amount'];
|
||||
$list[$i]['stotal_amount'] = $row['ct_amount'] * $row['ct_qty'];
|
||||
$list[$i]['ct_price'] = $row['ct_price'];
|
||||
$list[$i]['stotal_amount'] = $row['ct_price'] * $row['ct_qty'];
|
||||
$list[$i]['stotal_point'] = $row['ct_point'] * $row['ct_qty'];
|
||||
|
||||
$ttotal_amount += $list[$i]['stotal_amount'];
|
||||
|
||||
@ -119,9 +119,7 @@ $total_count = $row['cnt'];
|
||||
for ($i=0; $i<$save['cnt']; $i++) {
|
||||
$sql = " select it_id,
|
||||
it_name,
|
||||
it_amount,
|
||||
it_amount2,
|
||||
it_amount3,
|
||||
it_price,
|
||||
it_tel_inq,
|
||||
it_point,
|
||||
it_type1,
|
||||
@ -137,7 +135,7 @@ $total_count = $row['cnt'];
|
||||
<tr>
|
||||
<td class="ssch_it_img"><?php echo $image; ?></td>
|
||||
<td><?php echo get_text($row['it_name']).it_name_icon($row); ?></td>
|
||||
<td class="ssch_num"><?php echo display_amount(get_amount($row), $row['it_tel_inq']); ?></td>
|
||||
<td class="ssch_num"><?php echo display_price(get_price($row), $row['it_tel_inq']); ?></td>
|
||||
<td class="ssch_num"><?php echo display_point($row['it_point']); ?></td>
|
||||
</tr>
|
||||
<?php } // for 끝 ?>
|
||||
|
||||
@ -50,7 +50,7 @@ include_once('./_head.php');
|
||||
}
|
||||
}
|
||||
|
||||
$it_amount = get_amount($row);
|
||||
$it_price = get_price($row);
|
||||
|
||||
if ($row['it_tel_inq']) $out_cd = 'tel_inq';
|
||||
|
||||
@ -73,7 +73,7 @@ include_once('./_head.php');
|
||||
<input type="checkbox" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>" onclick="out_cd_check(this, '<?php echo $out_cd; ?>');">
|
||||
<?php } ?>
|
||||
<input type="hidden" name="it_name[<?php echo $i; ?>]" value="<?php echo $row['it_name']; ?>">
|
||||
<input type="hidden" name="it_amount[<?php echo $i; ?>]" value="<?php echo $it_amount; ?>">
|
||||
<input type="hidden" name="it_price[<?php echo $i; ?>]" value="<?php echo $it_price; ?>">
|
||||
<input type="hidden" name="it_point[<?php echo $i; ?>]" value="<?php echo $row['it_point']; ?>">
|
||||
<input type="hidden" name="ct_qty[<?php echo $i; ?>]" value="1">
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user