관리자 상품의 상태 변경 오류 수정

This commit is contained in:
chicpro
2013-06-13 14:47:42 +09:00
parent e0e1516d5a
commit 21da1ac432
2 changed files with 4 additions and 7 deletions

View File

@ -36,12 +36,12 @@ switch($_POST['act_button'])
break; break;
} }
$cnt = count($_POST['ct_id']); $cnt = count($_POST['ct_chk']);
for ($i=0; $i<$cnt; $i++) for ($i=0; $i<$cnt; $i++)
{ {
if ($_POST['ct_chk'][$i]) if ($_POST['ct_chk'][$i])
{ {
$ct_id = $_POST['ct_id'][$i]; $ct_id = $_POST['ct_chk'][$i];
$sql = " select * from {$g4['shop_cart_table']} $sql = " select * from {$g4['shop_cart_table']}
where uq_id = '$uq_id' where uq_id = '$uq_id'

View File

@ -196,8 +196,7 @@ $pg_anchor = '<ul class="anchor">
<tr> <tr>
<td class="td_chk"> <td class="td_chk">
<label for="ct_opt_chk_<?php echo $i.$k; ?>" class="sound_only"><?php echo $opt['ct_option']; ?></label> <label for="ct_opt_chk_<?php echo $i.$k; ?>" class="sound_only"><?php echo $opt['ct_option']; ?></label>
<input type="hidden" name="ct_id[]" value="<?php echo $opt['ct_id']; ?>"> <input type="checkbox" name="ct_chk[]" id="ct_opt_chk_<?php echo $i.$k; ?>" value="<?php echo $opt['ct_id']; ?>">
<input type="checkbox" name="ct_chk[]" id="ct_opt_chk_<?php echo $i.$k; ?>" value="1">
</td> </td>
<td><?php echo $opt['ct_option']; ?></td> <td><?php echo $opt['ct_option']; ?></td>
<td class="td_smallmng"><?php echo $opt['ct_status']; ?></td> <td class="td_smallmng"><?php echo $opt['ct_status']; ?></td>
@ -215,7 +214,7 @@ $pg_anchor = '<ul class="anchor">
</table> </table>
</li> </li>
<? <?php
$t_cp_amount += $row['cp_amount']; // 쿠폰사용금액 $t_cp_amount += $row['cp_amount']; // 쿠폰사용금액
$t_ct_amount['합계'] += $ct_amount['소계']; $t_ct_amount['합계'] += $ct_amount['소계'];
$t_ct_point['합계'] += $ct_point['소계']; $t_ct_point['합계'] += $ct_point['소계'];
@ -224,7 +223,6 @@ $pg_anchor = '<ul class="anchor">
</ul> </ul>
<div class="btn_list"> <div class="btn_list">
<input type="hidden" name="chk_cnt" value="<?php echo $i; ?>">
<input type="submit" name="act_button" value="주문" onclick="document.pressed=this.value"> <input type="submit" name="act_button" value="주문" onclick="document.pressed=this.value">
<input type="submit" name="act_button" value="상품준비중" onclick="document.pressed=this.value"> <input type="submit" name="act_button" value="상품준비중" onclick="document.pressed=this.value">
<input type="submit" name="act_button" value="배송중" onclick="document.pressed=this.value"> <input type="submit" name="act_button" value="배송중" onclick="document.pressed=this.value">
@ -536,7 +534,6 @@ $pg_anchor = '<ul class="anchor">
<input type="text" name="od_receipt_hp" value="<?php echo $od['od_receipt_hp']; ?>" id="od_receipt_hp" class="frm_input"> 원 <input type="text" name="od_receipt_hp" value="<?php echo $od['od_receipt_hp']; ?>" id="od_receipt_hp" class="frm_input"> 원
<?php $pg_url = $g4['shop_cardpg'][$default['de_card_pg']];?> <?php $pg_url = $g4['shop_cardpg'][$default['de_card_pg']];?>
<a href="<?php echo $pg_url; ?>" target="_blank">결제대행사</a> <a href="<?php echo $pg_url; ?>" target="_blank">결제대행사</a>
?>
</td> </td>
</tr> </tr>
<tr> <tr>