#186 가격 필드명 price 로 변경
This commit is contained in:
@ -157,7 +157,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
<?php
|
||||
$image_rate = 2.5;
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$ct_amount['소계'] = $row['ct_amount'] * $row['ct_qty'];
|
||||
$ct_amount['소계'] = $row['ct_price'] * $row['ct_qty'];
|
||||
$ct_point['소계'] = $row['ct_point'] * $row['ct_qty'];
|
||||
if ($row['ct_status']=='주문' || $row['ct_status']=='준비' || $row['ct_status']=='배송' || $row['ct_status']=='완료')
|
||||
$t_ct_amount['정상'] += $row['ct_price'] * $row['ct_qty'];
|
||||
|
||||
@ -229,7 +229,7 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
$it_name = '<a href="'.$href.'">'.cut_str($row2['it_name'],35).'</a><br>';
|
||||
$it_name .= print_item_options($row2['it_id'], $row2['it_opt1'], $row2['it_opt2'], $row2['it_opt3'], $row2['it_opt4'], $row2['it_opt5'], $row2['it_opt6']);
|
||||
|
||||
$sub_amount = $row2['ct_qty'] * $row2['ct_amount'];
|
||||
$sub_amount = $row2['ct_qty'] * $row2['ct_price'];
|
||||
$sub_point = $row2['ct_qty'] * $row2['ct_point'];
|
||||
?>
|
||||
|
||||
@ -239,7 +239,7 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
<li><a href="<?php echo $href; ?>"><?php echo get_it_image($row2['it_id'], 50, 50); ?><?php echo $it_name; ?></a></li>
|
||||
</ul>
|
||||
</td>
|
||||
<td headers="sodr_all_cost"><?php echo number_format($row2['ct_amount']); ?></td>
|
||||
<td headers="sodr_all_cost"><?php echo number_format($row2['ct_price']); ?></td>
|
||||
<td headers="sodr_all_qty"><?php echo $row2['ct_qty']; ?></td>
|
||||
<td headers="sodr_all_pt"><?php echo number_format($sub_point); ?></td>
|
||||
<td headers="sodr_all_tot"><?php echo number_format($sub_amount); ?></td>
|
||||
|
||||
@ -294,7 +294,7 @@ if (mysql_num_rows($result) == 0)
|
||||
$cnt = $sub_tot_qty = $sub_tot_amount = 0;
|
||||
while ($row2 = sql_fetch_array($res2))
|
||||
{
|
||||
$row2_tot_amount = $row2['ct_amount'] * $row2['ct_qty'];
|
||||
$row2_tot_amount = $row2['ct_price'] * $row2['ct_qty'];
|
||||
$sub_tot_qty += $row2['ct_qty'];
|
||||
$sub_tot_amount += $row2_tot_amount;
|
||||
|
||||
@ -333,7 +333,7 @@ if (mysql_num_rows($result) == 0)
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $it_name; ?></td>
|
||||
<td class="td_bignum"><?php echo number_format($row2['ct_amount']); ?></td>
|
||||
<td class="td_bignum"><?php echo number_format($row2['ct_price']); ?></td>
|
||||
<td class="td_smallnum"><?php echo $fontqty1; ?><?php echo number_format($row2['ct_qty']); ?><?php echo $fontqty2; ?></td>
|
||||
<td class="td_bignum"><?php echo number_format($row2_tot_amount); ?></td>
|
||||
</tr>
|
||||
|
||||
@ -55,9 +55,9 @@ $sql = " select a.od_id,
|
||||
b.it_opt6,
|
||||
b.ct_status,
|
||||
b.ct_qty,
|
||||
b.ct_amount,
|
||||
b.ct_price,
|
||||
b.ct_point,
|
||||
(b.ct_qty * b.ct_amount) as ct_sub_amount,
|
||||
(b.ct_qty * b.ct_price) as ct_sub_amount,
|
||||
(b.ct_qty * b.ct_point) as ct_sub_point,
|
||||
c.it_id,
|
||||
c.it_name,
|
||||
@ -77,7 +77,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$lines[$i] = $row;
|
||||
|
||||
$tot_amount += $row['ct_amount'];
|
||||
$tot_amount += $row['ct_price'];
|
||||
$tot_qty += $row['ct_qty'];
|
||||
$tot_sub_amount += $row['ct_sub_amount'];
|
||||
$tot_sub_point += $row['ct_sub_point'];
|
||||
@ -144,7 +144,7 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
<th scope="col"><a href="<?php echo title_sort("it_name")."&$qstr1"; ?>">상품명<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("od_name")."&$qstr1"; ?>">주문자<span class="sound_only"> 순 정렬</span></a><br>입금자</th>
|
||||
<th scope="col"><a href="<?php echo title_sort("mb_id")."&$qstr1"; ?>">회원ID<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("ct_amount")."&$qstr1"; ?>">판매가<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("ct_price")."&$qstr1"; ?>">판매가<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("ct_qty")."&$qstr1"; ?>">수량<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("ct_sub_amount")."&$qstr1"; ?>">소계<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("ct_sub_point")."&$qstr1"; ?>">포인트<span class="sound_only"> 순 정렬</span></a></th>
|
||||
@ -183,7 +183,7 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
<?php if ($lines[$i]['od_deposit_name'] != "") echo '<br>'.$lines[$i]['od_deposit_name']?>
|
||||
</td>
|
||||
<td class="td_name"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?sort1=<?php echo $sort1; ?>&sort2=<?php echo $sort2; ?>&sel_field=mb_id&search=<?php echo $lines[$i]['mb_id']; ?>"><?php echo $lines[$i]['mb_id']; ?></a></td>
|
||||
<td><?php echo number_format($lines[$i]['ct_amount']); ?></td>
|
||||
<td><?php echo number_format($lines[$i]['ct_price']); ?></td>
|
||||
<td><?php echo $lines[$i]['ct_qty']; ?></td>
|
||||
<td><?php echo number_format($lines[$i]['ct_sub_amount']); ?></td>
|
||||
<td><?php echo number_format($lines[$i]['ct_sub_point']); ?></td>
|
||||
|
||||
@ -53,8 +53,8 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
$lines[$i] = $row;
|
||||
|
||||
// 장바구니 상태별 금액
|
||||
$sql1 = " select (SUM(ct_amount * ct_qty)) as orderamount, /* 주문합계 */
|
||||
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_amount * ct_qty, 0))) as ordercancel /* 주문취소 */
|
||||
$sql1 = " select (SUM(ct_price * ct_qty)) as orderamount, /* 주문합계 */
|
||||
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_price * ct_qty, 0))) as ordercancel /* 주문취소 */
|
||||
from {$g4['shop_cart_table']}
|
||||
where uq_id = '{$row['uq_id']}' ";
|
||||
$row1 = sql_fetch($sql1);
|
||||
|
||||
@ -53,8 +53,8 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
$lines[$i] = $row;
|
||||
|
||||
// 장바구니 상태별 금액
|
||||
$sql1 = " select (SUM(ct_amount * ct_qty)) as orderamount, /* 주문합계 */
|
||||
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_amount * ct_qty, 0))) as ordercancel /* 주문취소 */
|
||||
$sql1 = " select (SUM(ct_price * ct_qty)) as orderamount, /* 주문합계 */
|
||||
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_price * ct_qty, 0))) as ordercancel /* 주문취소 */
|
||||
from {$g4['shop_cart_table']}
|
||||
where uq_id = '{$row['uq_id']}' ";
|
||||
$row1 = sql_fetch($sql1);
|
||||
|
||||
@ -31,8 +31,8 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
$lines[$i] = $row;
|
||||
|
||||
// 장바구니 상태별 금액
|
||||
$sql1 = " select (SUM(ct_amount * ct_qty)) as orderamount, /* 주문합계 */
|
||||
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_amount * ct_qty, 0))) as ordercancel /* 주문취소 */
|
||||
$sql1 = " select (SUM(ct_price * ct_qty)) as orderamount, /* 주문합계 */
|
||||
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_price * ct_qty, 0))) as ordercancel /* 주문취소 */
|
||||
from {$g4['shop_cart_table']}
|
||||
where uq_id = '{$row['uq_id']}' ";
|
||||
$row1 = sql_fetch($sql1);
|
||||
|
||||
@ -48,8 +48,8 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
$lines[$i] = $row;
|
||||
|
||||
// 장바구니 상태별 금액
|
||||
$sql1 = " select (SUM(ct_amount * ct_qty)) as orderamount, /* 주문합계 */
|
||||
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_amount * ct_qty, 0))) as ordercancel /* 주문취소 */
|
||||
$sql1 = " select (SUM(ct_price * ct_qty)) as orderamount, /* 주문합계 */
|
||||
(SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_price * ct_qty, 0))) as ordercancel /* 주문취소 */
|
||||
from {$g4['shop_cart_table']}
|
||||
where uq_id = '{$row['uq_id']}' ";
|
||||
$row1 = sql_fetch($sql1);
|
||||
|
||||
@ -85,7 +85,7 @@ if(!$result) {
|
||||
CHANGE `it_cust_amount` `it_cust_price` INT(11) NOT NULL DEFAULT '0' ", false);
|
||||
sql_query(" ALTER TABLE `{$g4['shop_cart_table']}`
|
||||
CHANGE `ct_amount` `ct_price` INT(11) NOT NULL DEFAULT '0',
|
||||
ADD `ct_name` VARCHAR(255) NOT NULL DEFAULT '' AFTER `it_id` ", false);
|
||||
ADD `it_name` VARCHAR(255) NOT NULL DEFAULT '' AFTER `it_id` ", false);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
||||
@ -57,6 +57,7 @@ CREATE TABLE IF NOT EXISTS `shop_cart` (
|
||||
`ct_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`uq_id` bigint(20) unsigned NOT NULL,
|
||||
`it_id` varchar(20) NOT NULL DEFAULT '',
|
||||
`it_name` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_opt1` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_opt2` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_opt3` varchar(255) NOT NULL DEFAULT '',
|
||||
@ -65,7 +66,7 @@ CREATE TABLE IF NOT EXISTS `shop_cart` (
|
||||
`it_opt6` varchar(255) NOT NULL DEFAULT '',
|
||||
`ct_status` enum('쇼핑','주문','준비','배송','완료','취소','반품','품절') NOT NULL DEFAULT '쇼핑',
|
||||
`ct_history` text NOT NULL,
|
||||
`ct_amount` int(11) NOT NULL DEFAULT '0',
|
||||
`ct_price` int(11) NOT NULL DEFAULT '0',
|
||||
`ct_point` int(11) NOT NULL DEFAULT '0',
|
||||
`ct_point_use` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`ct_stock_use` tinyint(4) NOT NULL DEFAULT '0',
|
||||
@ -392,10 +393,8 @@ CREATE TABLE IF NOT EXISTS `shop_item` (
|
||||
`it_explan` mediumtext NOT NULL,
|
||||
`it_mobile_explan` mediumtext NOT NULL,
|
||||
`it_explan_html` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`it_cust_amount` int(11) NOT NULL DEFAULT '0',
|
||||
`it_amount` int(11) NOT NULL DEFAULT '0',
|
||||
`it_amount2` int(11) NOT NULL DEFAULT '0',
|
||||
`it_amount3` int(11) NOT NULL DEFAULT '0',
|
||||
`it_cust_price` int(11) NOT NULL DEFAULT '0',
|
||||
`it_price` int(11) NOT NULL DEFAULT '0',
|
||||
`it_point` int(11) NOT NULL DEFAULT '0',
|
||||
`it_sell_email` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_use` tinyint(4) NOT NULL DEFAULT '0',
|
||||
|
||||
@ -48,7 +48,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,
|
||||
@ -83,7 +83,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) { // 계속쇼핑
|
||||
@ -106,7 +106,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>
|
||||
@ -130,7 +130,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>
|
||||
|
||||
<?php
|
||||
|
||||
@ -305,20 +305,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>
|
||||
|
||||
@ -600,9 +600,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;
|
||||
@ -626,14 +626,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_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;
|
||||
@ -647,7 +647,7 @@ else
|
||||
function fitemcheck(f, act)
|
||||
{
|
||||
// 판매가격이 0 보다 작다면
|
||||
if (f.it_amount.value < 0)
|
||||
if (f.it_price.value < 0)
|
||||
{
|
||||
alert("전화로 문의해 주시면 감사하겠습니다.");
|
||||
return;
|
||||
|
||||
@ -15,11 +15,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 } ?>
|
||||
<?php if ($row['it_basic']) { ?>
|
||||
<p><?php echo $row['it_basic']; ?></p>
|
||||
|
||||
@ -14,7 +14,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>
|
||||
|
||||
@ -54,7 +54,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.");
|
||||
|
||||
@ -36,7 +36,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
<a href="<?php echo G4_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $row['od_id']; ?>&uq_id=<?php echo $row['uq_id']; ?>"><?php echo $row['od_id']; ?></a>
|
||||
</td>
|
||||
<td class="td_datetime"><?php echo substr($row['od_time'],0,16); ?> (<?php echo get_yoil($row['od_time']); ?>)</td>
|
||||
<td class="td_bignum"><?php echo display_amount($row['orderamount']); ?></td>
|
||||
<td class="td_bignum"><?php echo display_price($row['orderamount']); ?></td>
|
||||
<td class="td_stat">배송상태</td>
|
||||
</tr>
|
||||
|
||||
|
||||
@ -67,7 +67,7 @@ $s_page = 'orderinquiryview.php';
|
||||
}
|
||||
else
|
||||
{
|
||||
$wanbul = display_amount($receipt_amount);
|
||||
$wanbul = display_price($receipt_amount);
|
||||
}
|
||||
|
||||
// 120615 : 취소된 값을 두번 빼주는 결과가 되어 코드 수정 (군포돼지님)
|
||||
@ -107,7 +107,7 @@ $s_page = 'orderinquiryview.php';
|
||||
</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>
|
||||
@ -137,7 +137,7 @@ $s_page = 'orderinquiryview.php';
|
||||
</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>
|
||||
@ -169,7 +169,7 @@ $s_page = 'orderinquiryview.php';
|
||||
?>
|
||||
<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>
|
||||
<td scope="row">입금확인일시</th>
|
||||
@ -226,7 +226,7 @@ $s_page = 'orderinquiryview.php';
|
||||
?>
|
||||
<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
|
||||
}
|
||||
@ -236,7 +236,7 @@ $s_page = 'orderinquiryview.php';
|
||||
?>
|
||||
<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
|
||||
}
|
||||
@ -409,19 +409,19 @@ $s_page = 'orderinquiryview.php';
|
||||
<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>';
|
||||
}
|
||||
?>
|
||||
|
||||
@ -104,9 +104,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_basic,
|
||||
it_tel_inq,
|
||||
it_point,
|
||||
@ -125,7 +123,7 @@ $total_count = $row['cnt'];
|
||||
<b class="ssch_ct"><?php echo ($ca_temp) ? $ca_temp : $ca_name; ?></b>
|
||||
<a href="<?php echo G4_SHOP_URL; ?>/item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo get_text($row['it_name']); ?></a>
|
||||
<?php echo it_name_icon($row); ?>
|
||||
<span class="ssch_cost"><?php echo display_amount(get_amount($row), $row['it_tel_inq']); ?></span>
|
||||
<span class="ssch_cost"><?php echo display_price(get_price($row), $row['it_tel_inq']); ?></span>
|
||||
<p><?php echo $row['it_basic']; ?></p>
|
||||
</li>
|
||||
<?php } // for 끝 ?>
|
||||
|
||||
@ -44,7 +44,7 @@ include_once(G4_MSHOP_PATH.'/_head.php');
|
||||
}
|
||||
}
|
||||
|
||||
$it_amount = get_amount($row);
|
||||
$it_price = get_price($row);
|
||||
|
||||
if ($row['it_tel_inq']) $out_cd = 'tel_inq';
|
||||
|
||||
@ -72,7 +72,7 @@ include_once(G4_MSHOP_PATH.'/_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>
|
||||
|
||||
@ -36,12 +36,9 @@ $sql_list1 = " select a.ca_id,
|
||||
a.it_name,
|
||||
a.it_maker,
|
||||
a.it_point,
|
||||
a.it_amount,
|
||||
a.it_price,
|
||||
a.it_stock_qty,
|
||||
a.it_cust_amount,
|
||||
a.it_amount,
|
||||
a.it_amount2,
|
||||
a.it_amount3,
|
||||
a.it_cust_price,
|
||||
it_basic,
|
||||
it_opt1,
|
||||
it_opt2,
|
||||
|
||||
@ -14,8 +14,8 @@ $sct_sort_href .= '&ev_id='.$ev_id.'&sort=';
|
||||
</div>
|
||||
|
||||
<ul>
|
||||
<li><a href="<?php echo $sct_sort_href; ?>it_amount&sortodr=asc" class="btn01">낮은가격순</a></li>
|
||||
<li><a href="<?php echo $sct_sort_href; ?>it_amount&sortodr=desc" class="btn01">높은가격순</a></li>
|
||||
<li><a href="<?php echo $sct_sort_href; ?>it_price&sortodr=asc" class="btn01">낮은가격순</a></li>
|
||||
<li><a href="<?php echo $sct_sort_href; ?>it_price&sortodr=desc" class="btn01">높은가격순</a></li>
|
||||
<li><a href="<?php echo $sct_sort_href; ?>it_name&sortodr=asc" class="btn01">상품명순</a></li>
|
||||
<li><a href="<?php echo $sct_sort_href; ?>it_type1&sortodr=desc" class="btn01">히트상품</a></li>
|
||||
<li><a href="<?php echo $sct_sort_href; ?>it_type2&sortodr=desc" class="btn01">추천상품</a></li>
|
||||
|
||||
@ -61,7 +61,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
echo "{$lt}{$row['it_id']}{$gt}"; // 쇼핑몰 상품ID
|
||||
echo "{$lt}C{$gt}"; // 상품구분 C/U/D 전체EP는 일괄적으로 C
|
||||
echo "{$lt}{$row['it_name']}{$gt}"; // 상품명
|
||||
echo "{$lt}{$row['it_amount']}{$gt}"; // 판매가격
|
||||
echo "{$lt}{$row['it_price']}{$gt}"; // 판매가격
|
||||
echo "{$lt}".G4_SHOP_URL."/item.php?it_id={$row['it_id']}{$gt}"; // 상품의 상세페이지 주소
|
||||
echo "{$lt}".G4_DATA_URL."/item/{$row['it_id']}_l1{$gt}"; // 이미지 URL
|
||||
echo "{$lt}$ca_id1{$gt}"; // 대분류 카테고리 코드
|
||||
|
||||
@ -62,7 +62,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
echo "{$lt}{$row['it_id']}{$gt}"; // 쇼핑몰 상품ID
|
||||
echo "{$lt}C{$gt}"; // 상품구분 C/U/D 전체EP는 일괄적으로 C
|
||||
echo "{$lt}{$row['it_name']}{$gt}"; // 상품명
|
||||
echo "{$lt}{$row['it_amount']}{$gt}"; // 판매가격
|
||||
echo "{$lt}{$row['it_price']}{$gt}"; // 판매가격
|
||||
echo "{$lt}".G4_SHOP_URL."/item.php?it_id={$row['it_id']}{$gt}"; // 상품의 상세페이지 주소
|
||||
echo "{$lt}".G4_DATA_URL."/item/{$row['it_id']}_l1{$gt}"; // 이미지 URL
|
||||
echo "{$lt}$ca_id1{$gt}"; // 대분류 카테고리 코드
|
||||
|
||||
@ -91,7 +91,7 @@ echo <<< HEREDOC
|
||||
{$lt}_BEGIN{$gt}
|
||||
{$lt}PRODID{$gt}{$row['it_id']}
|
||||
{$lt}PRNAME{$gt}{$row['it_name']}
|
||||
{$lt}_PRICE{$gt}{$row['it_amount']}
|
||||
{$lt}_PRICE{$gt}{$row['it_price']}
|
||||
{$lt}PRDURL{$gt}$shop_url/item.php?it_id={$row['it_id']}
|
||||
{$lt}IMGURL{$gt}$data_url/item/{$row['it_id']}_l1
|
||||
{$lt}CATE_1{$gt}$ca_name1
|
||||
|
||||
@ -94,7 +94,7 @@ echo <<< HEREDOC
|
||||
{$lt}_BEGIN{$gt}
|
||||
{$lt}PRODID{$gt}{$row['it_id']}
|
||||
{$lt}PRNAME{$gt}{$row['it_name']}
|
||||
{$lt}_PRICE{$gt}{$row['it_amount']}
|
||||
{$lt}_PRICE{$gt}{$row['it_price']}
|
||||
{$lt}PRDURL{$gt}$shop_url/item.php?it_id={$row['it_id']}
|
||||
{$lt}IMGURL{$gt}$data_url/item/{$row['it_id']}_l1
|
||||
{$lt}CATE_1{$gt}$ca_name1
|
||||
|
||||
@ -30,7 +30,7 @@ echo <<< HEREDOC
|
||||
{$lt}_BEGIN{$gt}
|
||||
{$lt}PRODID{$gt}{$row['it_id']}
|
||||
{$lt}PRNAME{$gt}{$row['it_name']}
|
||||
{$lt}_PRICE{$gt}{$row['it_amount']}
|
||||
{$lt}_PRICE{$gt}{$row['it_price']}
|
||||
{$lt}___END{$gt}
|
||||
|
||||
HEREDOC;
|
||||
|
||||
@ -47,9 +47,9 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
// 재고검사해서 없으면 상품가격을 0 으로 설정
|
||||
$stock = get_it_stock_qty($row['it_id']);
|
||||
if ($stock <= 0)
|
||||
$row['it_amount'] = 0;
|
||||
$row['it_price'] = 0;
|
||||
|
||||
$str .= "<p>{$row['it_id']}^{$row2['ca_name']}^{$row3['ca_name']}^{$row4['ca_name']}^{$row['it_maker']}^{$row['it_name']}^".G4_SHOP_URL."/item.php?it_id={$row['it_id']}^$image^{$row['it_amount']}";
|
||||
$str .= "<p>{$row['it_id']}^{$row2['ca_name']}^{$row3['ca_name']}^{$row4['ca_name']}^{$row['it_maker']}^{$row['it_name']}^".G4_SHOP_URL."/item.php?it_id={$row['it_id']}^$image^{$row['it_price']}";
|
||||
$str .= "\n";
|
||||
}
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
$row3 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
|
||||
|
||||
$str .= "\n";
|
||||
$str .= "{$row['it_id']}#{$row2['ca_name']}#{$row3['ca_name']}#{$row['it_name']}#".G4_SHOP_URL."/item.php?it_id={$row['it_id']}#{$row['it_amount']}";
|
||||
$str .= "{$row['it_id']}#{$row2['ca_name']}#{$row3['ca_name']}#{$row['it_name']}#".G4_SHOP_URL."/item.php?it_id={$row['it_id']}#{$row['it_price']}";
|
||||
}
|
||||
echo $str;
|
||||
?>
|
||||
@ -39,7 +39,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++) {
|
||||
$str .= "^{$row['it_maker']}"; // 제조사
|
||||
$str .= "^".G4_DATA_URL."/item/{$row['it_id']}_m"; // 이미지URL
|
||||
$str .= "^".G4_SHOP_URL."/item.php?it_id={$row['it_id']}"; // 상품URL
|
||||
$str .= "^{$row['it_amount']}"; // 가격
|
||||
$str .= "^{$row['it_price']}"; // 가격
|
||||
$str .= "^{$row['it_point']}"; // 적립금
|
||||
$str .= "^"; // 할인쿠폰
|
||||
$str .= "^"; // 무이자할부
|
||||
|
||||
@ -115,7 +115,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
// 배송비 상한가 미만이면 배송비 적용
|
||||
$delivery = 0;
|
||||
if ($row['it_amount'] < $cost_limit) {
|
||||
if ($row['it_price'] < $cost_limit) {
|
||||
$delivery = $send_cost;
|
||||
}
|
||||
|
||||
@ -125,7 +125,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
echo <<< HEREDOC
|
||||
{$lt}begin{$gt}
|
||||
{$lt}pid{$gt}{$row['it_id']}
|
||||
{$lt}price{$gt}{$row['it_amount']}
|
||||
{$lt}price{$gt}{$row['it_price']}
|
||||
{$lt}pname{$gt}{$row['it_name']}
|
||||
{$lt}pgurl{$gt}$shop_url/item.php?it_id={$row['it_id']}
|
||||
{$lt}igurl{$gt}$data_url/item/{$row['it_id']}_m
|
||||
|
||||
@ -112,7 +112,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
<tr bgcolor="white">
|
||||
<td align="center">'.$num.'</td>
|
||||
<td><a href="'.G4_SHOP_URL.'/item.php?it_id='.$row['it_id'].'">'.$row['it_name'].'</a></td>
|
||||
<td align="center">'.number_format($row['it_amount']).'</td>
|
||||
<td align="center">'.number_format($row['it_price']).'</td>
|
||||
<td align="center">'.$stock.'</td>
|
||||
</tr>
|
||||
';
|
||||
|
||||
@ -123,7 +123,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
<tr bgcolor="white">
|
||||
<td align="center">'.$num.'</td>
|
||||
<td><a href="'.G4_SHOP_URL.'/item.php?it_id='.$row['it_id'].'">'.$row['it_name'].'</a></td>
|
||||
<td align="center">'.number_format($row['it_amount']).'</td>
|
||||
<td align="center">'.number_format($row['it_price']).'</td>
|
||||
<td align="center">'.$stock.'</td>
|
||||
<td align="center">'.$send_cost.'</td>
|
||||
<td align="center">'.G4_DATA_URL.'/item/'.$row['it_id'].'_m</td>
|
||||
|
||||
@ -115,7 +115,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
<td>$num</td>
|
||||
<td>{$row['it_id']}</td>
|
||||
<td><a href='".G4_SHOP_URL."/item.php?it_id={$row['it_id']}'>{$row['it_name']}</a></td>
|
||||
<td>{$row['it_amount']}</td>
|
||||
<td>{$row['it_price']}</td>
|
||||
<td>$category</td>
|
||||
<td>{$row['it_maker']}</td>
|
||||
<td>$image</td>
|
||||
|
||||
@ -89,7 +89,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
// 배송비 상한가 미만이면 배송비 적용
|
||||
$delivery = 0;
|
||||
if ($row['it_amount'] < $cost_limit) {
|
||||
if ($row['it_price'] < $cost_limit) {
|
||||
$delivery = $send_cost;
|
||||
}
|
||||
|
||||
@ -97,7 +97,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{$lt}begin{$gt}
|
||||
{$lt}mapid{$gt}{$row['it_id']}
|
||||
{$lt}pname{$gt}{$row['it_name']}
|
||||
{$lt}price{$gt}{$row['it_amount']}
|
||||
{$lt}price{$gt}{$row['it_price']}
|
||||
{$lt}pgurl{$gt}$shop_url/item.php?it_id={$row['it_id']}
|
||||
{$lt}igurl{$gt}$data_url/item/{$row['it_id']}_m
|
||||
{$lt}cate1{$gt}$cate1
|
||||
|
||||
@ -90,7 +90,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
|
||||
// 배송비 상한가 미만이면 배송비 적용
|
||||
$delivery = 0;
|
||||
if ($row['it_amount'] < $cost_limit) {
|
||||
if ($row['it_price'] < $cost_limit) {
|
||||
$delivery = $send_cost;
|
||||
}
|
||||
|
||||
@ -98,7 +98,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{$lt}begin{$gt}
|
||||
{$lt}mapid{$gt}{$row['it_id']}
|
||||
{$lt}pname{$gt}{$row['it_name']}
|
||||
{$lt}price{$gt}{$row['it_amount']}
|
||||
{$lt}price{$gt}{$row['it_price']}
|
||||
{$lt}pgurl{$gt}$shop_url/item.php?it_id={$row['it_id']}
|
||||
{$lt}igurl{$gt}$data_url/item/{$row['it_id']}_m
|
||||
{$lt}cate1{$gt}$cate1
|
||||
|
||||
@ -40,7 +40,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
// 업데이트 상품 양식 & 품절 복구 상품 양식
|
||||
echo "{$lt}pname{$gt}{$row['it_name']}\n";
|
||||
echo "{$lt}price{$gt}{$row['it_amount']}\n";
|
||||
echo "{$lt}price{$gt}{$row['it_price']}\n";
|
||||
echo "{$lt}class{$gt}U\n";
|
||||
}
|
||||
echo "{$lt}utime{$gt}{$row['it_time']}\n";
|
||||
|
||||
@ -19,7 +19,7 @@ Field Status Notes
|
||||
$lt = "<<<";
|
||||
$gt = ">>>";
|
||||
|
||||
$sql =" select it_id, it_name, it_amount, it_time from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$sql =" select it_id, it_name, it_price, it_time from {$g4['shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
@ -37,7 +37,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
// 업데이트 상품 양식 & 품절 복구 상품 양식
|
||||
echo "{$lt}pname{$gt}{$row['it_name']}\n";
|
||||
echo "{$lt}price{$gt}{$row['it_amount']}\n";
|
||||
echo "{$lt}price{$gt}{$row['it_price']}\n";
|
||||
echo "{$lt}class{$gt}U\n";
|
||||
}
|
||||
echo "{$lt}utime{$gt}{$row['it_time']}\n";
|
||||
|
||||
@ -32,9 +32,9 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
// 재고검사해서 없으면 상품가격을 0 으로 설정
|
||||
$stock = get_it_stock_qty($row['it_id']);
|
||||
if ($stock <= 0)
|
||||
$row['it_amount'] = 0;
|
||||
$row['it_price'] = 0;
|
||||
|
||||
$str .= "<p>{$row['it_id']}^{$row2['ca_name']}^{$row3['ca_name']}^{$row4['ca_name']}^{$row['it_maker']}^{$row['it_name']}^".G4_SHOP_URL."/item.php?it_id={$row['it_id']}^{$row['it_amount']}";
|
||||
$str .= "<p>{$row['it_id']}^{$row2['ca_name']}^{$row3['ca_name']}^{$row4['ca_name']}^{$row['it_maker']}^{$row['it_name']}^".G4_SHOP_URL."/item.php?it_id={$row['it_id']}^{$row['it_price']}";
|
||||
$str .= "\n";
|
||||
}
|
||||
|
||||
|
||||
@ -101,7 +101,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
$delivery = 0; // 배송료
|
||||
|
||||
$qty = (int)get_it_stock_qty($row['it_id']);
|
||||
if ($qty <= 0) $row['it_amount'] = 0;
|
||||
if ($qty <= 0) $row['it_price'] = 0;
|
||||
|
||||
echo "<tr>
|
||||
<td width=\"30\">$num </td>
|
||||
@ -112,7 +112,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
<td width=\"70\">{$row['it_maker']} </td>
|
||||
<td width=\"100\"><a href='".G4_SHOP_URL."/item.php?it_id={$row['it_id']}'>{$row['it_name']} </a></td>
|
||||
<td width=\"100\">{$row['it_id']} </td>
|
||||
<td width=\"80\">".number_format($row['it_amount'])." </td>
|
||||
<td width=\"80\">".number_format($row['it_price'])." </td>
|
||||
<td width=\"80\"> </td>
|
||||
<td width=\"80\">".G4_DATA_URL."/item/{$row['it_id']}_l1 </td>
|
||||
<td width=\"80\">$delivery</td>
|
||||
|
||||
@ -115,7 +115,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
<td align='center'>{$row['it_name']}</td>
|
||||
<td>".G4_SHOP_URL."/item.php?it_id={$row['it_id']}</td>
|
||||
<td>$image</td>
|
||||
<td>{$row['it_amount']}</td>
|
||||
<td>{$row['it_price']}</td>
|
||||
<td> </td>
|
||||
<td>{$row['it_maker']}</td>
|
||||
<td>$category</td>
|
||||
|
||||
Reference in New Issue
Block a user