재고관리에서 통보수량 수정할 수 있도록 수정

This commit is contained in:
chicpro
2014-10-10 18:03:33 +09:00
parent de92b8c863
commit 4e78dba592
4 changed files with 14 additions and 2 deletions

View File

@ -119,6 +119,7 @@ $listall = '<a href="'.$_SERVER['PHP_SELF'].'" class="ov_listall">전체목록</
<th scope="col">주문대기</th>
<th scope="col">가재고</th>
<th scope="col">재고수정</th>
<th scope="col">통보수량</th>
<th scope="col"><a href="<?php echo title_sort("it_use") . "&amp;$qstr1"; ?>">판매</a></th>
<th scope="col"><a href="<?php echo title_sort("it_soldout") . "&amp;$qstr1"; ?>">품절</a></th>
<th scope="col"><a href="<?php echo title_sort("it_stock_sms") . "&amp;$qstr1"; ?>">재입고알림</a></th>
@ -172,6 +173,10 @@ $listall = '<a href="'.$_SERVER['PHP_SELF'].'" class="ov_listall">전체목록</
<label for="stock_qty_<?php echo $i; ?>" class="sound_only">재고수정</label>
<input type="text" name="it_stock_qty[<?php echo $i; ?>]" value="<?php echo $row['it_stock_qty']; ?>" id="stock_qty_<?php echo $i; ?>" class="frm_input" size="10" autocomplete="off">
</td>
<td class="td_num">
<label for="noti_qty_<?php echo $i; ?>" class="sound_only">통보수량</label>
<input type="text" name="it_noti_qty[<?php echo $i; ?>]" value="<?php echo $row['it_noti_qty']; ?>" id="noti_qty_<?php echo $i; ?>" class="frm_input" size="10" autocomplete="off">
</td>
<td class="td_chk">
<label for="use_<?php echo $i; ?>" class="sound_only">판매</label>
<input type="checkbox" name="it_use[<?php echo $i; ?>]" value="1" id="use_<?php echo $i; ?>" <?php echo ($row['it_use'] ? "checked" : ""); ?>>
@ -189,7 +194,7 @@ $listall = '<a href="'.$_SERVER['PHP_SELF'].'" class="ov_listall">전체목록</
<?php
}
if (!$i)
echo '<tr><td colspan="10" class="empty_table"><span>자료가 없습니다.</span></td></tr>';
echo '<tr><td colspan="11" class="empty_table"><span>자료가 없습니다.</span></td></tr>';
?>
</tbody>
</table>

View File

@ -11,6 +11,7 @@ for ($i=0; $i<count($_POST['it_id']); $i++)
{
$sql = "update {$g5['g5_shop_item_table']}
set it_stock_qty = '{$_POST['it_stock_qty'][$i]}',
it_noti_qty = '{$_POST['it_noti_qty'][$i]}',
it_use = '{$_POST['it_use'][$i]}',
it_soldout = '{$_POST['it_soldout'][$i]}',
it_stock_sms = '{$_POST['it_stock_sms'][$i]}'

View File

@ -117,6 +117,7 @@ $listall = '<a href="'.$_SERVER['PHP_SELF'].'" class="ov_listall">전체목록</
<th scope="col">주문대기</th>
<th scope="col">가재고</th>
<th scope="col">재고수정</th>
<th scope="col">통보수량</th>
<th scope="col"><a href="<?php echo title_sort("a.io_use") . "&amp;$qstr1"; ?>">판매</a></th>
<th scope="col">관리</th>
</tr>
@ -186,6 +187,10 @@ $listall = '<a href="'.$_SERVER['PHP_SELF'].'" class="ov_listall">전체목록</
<label for="stock_qty_<?php echo $i; ?>" class="sound_only">재고수정</label>
<input type="text" name="io_stock_qty[<?php echo $i; ?>]" value="<?php echo $row['io_stock_qty']; ?>" id="stock_qty_<?php echo $i; ?>" class="frm_input" size="8" autocomplete="off">
</td>
<td class="td_num">
<label for="noti_qty_<?php echo $i; ?>" class="sound_only">통보수량</label>
<input type="text" name="io_noti_qty[<?php echo $i; ?>]" value="<?php echo $row['io_noti_qty']; ?>" id="noti_qty_<?php echo $i; ?>" class="frm_input" size="8" autocomplete="off">
</td>
<td class="td_chk">
<label for="use_<?php echo $i; ?>" class="sound_only">판매</label>
<input type="checkbox" name="io_use[<?php echo $i; ?>]" value="1" id="use_<?php echo $i; ?>" <?php echo ($row['io_use'] ? "checked" : ""); ?>>
@ -195,7 +200,7 @@ $listall = '<a href="'.$_SERVER['PHP_SELF'].'" class="ov_listall">전체목록</
<?php
}
if (!$i)
echo '<tr><td colspan="8" class="empty_table"><span>자료가 없습니다.</span></td></tr>';
echo '<tr><td colspan="10" class="empty_table"><span>자료가 없습니다.</span></td></tr>';
?>
</tbody>
</table>

View File

@ -11,6 +11,7 @@ for ($i=0; $i<count($_POST['it_id']); $i++)
{
$sql = "update {$g5['g5_shop_item_option_table']}
set io_stock_qty = '{$_POST['io_stock_qty'][$i]}',
io_noti_qty = '{$_POST['io_noti_qty'][$i]}',
io_use = '{$_POST['io_use'][$i]}'
where it_id = '{$_POST['it_id'][$i]}'
and io_id = '{$_POST['io_id'][$i]}'