쇼핑몰관리자: #193 상품선택옵션 500px 이슈 처리

This commit is contained in:
whitedot
2013-05-22 14:16:07 +09:00
parent 0146d2f56d
commit 20b5a98915
2 changed files with 94 additions and 91 deletions

View File

@ -44,9 +44,10 @@ if($it['it_id']) {
if($po_run) { if($po_run) {
?> ?>
<table> <div id="option_table_frm">
<thead> <table>
<tr> <thead>
<tr>
<th scope="col"> <th scope="col">
<label for="opt_chk_all" class="sound_only">전체 옵션 선택</label> <label for="opt_chk_all" class="sound_only">전체 옵션 선택</label>
<input type="checkbox" name="opt_chk_all" value="1" id="opt_chk_all"> <input type="checkbox" name="opt_chk_all" value="1" id="opt_chk_all">
@ -56,11 +57,11 @@ if($po_run) {
<th scope="col">재고수량</th> <th scope="col">재고수량</th>
<th scope="col">통보수량</th> <th scope="col">통보수량</th>
<th scope="col">사용여부</th> <th scope="col">사용여부</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php <?php
if($it['it_id']) { if($it['it_id']) {
for($i=0; $row=sql_fetch_array($result); $i++) { for($i=0; $row=sql_fetch_array($result); $i++) {
$opt_id = $row['io_id']; $opt_id = $row['io_id'];
$opt_val = explode(chr(30), $opt_id); $opt_val = explode(chr(30), $opt_id);
@ -71,14 +72,14 @@ if($it['it_id']) {
$opt_stock_qty = $row['io_stock_qty']; $opt_stock_qty = $row['io_stock_qty'];
$opt_noti_qty = $row['io_noti_qty']; $opt_noti_qty = $row['io_noti_qty'];
$opt_use = $row['io_use']; $opt_use = $row['io_use'];
?> ?>
<tr> <tr>
<td class="td_chk"> <td class="td_chk">
<input type="hidden" name="opt_id[]" value="<?php echo $opt_id; ?>"> <input type="hidden" name="opt_id[]" value="<?php echo $opt_id; ?>">
<input type="checkbox" name="opt_chk[]" value="1"> <input type="checkbox" name="opt_chk[]" value="1">
</td> </td>
<td class="opt-cell"><?php echo $opt_1; if ($opt_2) echo ' <small>&gt;</small> '.$opt_2; if ($opt_3) echo ' <small>&gt;</small> '.$opt_3; ?></td> <td class="opt-cell"><?php echo $opt_1; if ($opt_2) echo ' <small>&gt;</small> '.$opt_2; if ($opt_3) echo ' <small>&gt;</small> '.$opt_3; ?></td>
<td class="td_bignum"><input type="text" name="opt_price[]" value="<?php echo $opt_price; ?>" class="frm_input" size="5"></td> <td class="td_bignum"><input type="text" name="opt_price[]" value="<?php echo $opt_price; ?>" class="frm_input" size="9"></td>
<td class="td_num"><input type="text" name="opt_stock_qty[]" value="<?php echo $opt_stock_qty; ?>" class="frm_input" size="5"></td> <td class="td_num"><input type="text" name="opt_stock_qty[]" value="<?php echo $opt_stock_qty; ?>" class="frm_input" size="5"></td>
<td class="td_num"><input type="text" name="opt_noti_qty[]" value="<?php echo $opt_noti_qty; ?>" class="frm_input" size="5"></td> <td class="td_num"><input type="text" name="opt_noti_qty[]" value="<?php echo $opt_noti_qty; ?>" class="frm_input" size="5"></td>
<td class="td_mng"> <td class="td_mng">
@ -87,10 +88,10 @@ if($it['it_id']) {
<option value="0" <?php echo get_selected('0', $opt_use); ?>>사용안함</option> <option value="0" <?php echo get_selected('0', $opt_use); ?>>사용안함</option>
</select> </select>
</td> </td>
</tr> </tr>
<?php <?php
} // for } // for
} else { } else {
for($i=0; $i<$opt1_count; $i++) { for($i=0; $i<$opt1_count; $i++) {
$j = 0; $j = 0;
do { do {
@ -109,14 +110,14 @@ if($it['it_id']) {
$opt_stock_qty = 0; $opt_stock_qty = 0;
$opt_noti_qty = 0; $opt_noti_qty = 0;
$opt_use = 1; $opt_use = 1;
?> ?>
<tr> <tr>
<td class="td_chk"> <td class="td_chk">
<input type="hidden" name="opt_id[]" value="<?php echo $opt_id; ?>"> <input type="hidden" name="opt_id[]" value="<?php echo $opt_id; ?>">
<input type="checkbox" name="opt_chk[]" value="1"> <input type="checkbox" name="opt_chk[]" value="1">
</td> </td>
<td class="opt1-cell"><?php echo $opt_1; if ($opt_2) echo ' <small>&gt;</small> '.$opt_2; if ($opt_3) echo ' <small>&gt;</small> '.$opt_3; ?></td> <td class="opt1-cell"><?php echo $opt_1; if ($opt_2) echo ' <small>&gt;</small> '.$opt_2; if ($opt_3) echo ' <small>&gt;</small> '.$opt_3; ?></td>
<td class="td_bignum"><input type="text" name="opt_price[]" value="<?php echo $opt_price; ?>" class="frm_input" size="5"></td> <td class="td_bignum"><input type="text" name="opt_price[]" value="<?php echo $opt_price; ?>" class="frm_input" size="9"></td>
<td class="td_num"><input type="text" name="opt_stock_qty[]" value="<?php echo $opt_stock_qty; ?>" class="frm_input" size="5"></td> <td class="td_num"><input type="text" name="opt_stock_qty[]" value="<?php echo $opt_stock_qty; ?>" class="frm_input" size="5"></td>
<td class="td_num"><input type="text" name="opt_noti_qty[]" value="<?php echo $opt_noti_qty; ?>" class="frm_input" size="5"></td> <td class="td_num"><input type="text" name="opt_noti_qty[]" value="<?php echo $opt_noti_qty; ?>" class="frm_input" size="5"></td>
<td class="td_mng"> <td class="td_mng">
@ -125,18 +126,19 @@ if($it['it_id']) {
<option value="0" <?php echo get_selected('0', $opt_use); ?>>사용안함</option> <option value="0" <?php echo get_selected('0', $opt_use); ?>>사용안함</option>
</select> </select>
</td> </td>
</tr> </tr>
<?php <?php
$k++; $k++;
} while($k < $opt3_count); } while($k < $opt3_count);
$j++; $j++;
} while($j < $opt2_count); } while($j < $opt2_count);
} // for } // for
} }
?> ?>
</tbody> </tbody>
</table> </table>
</div>
<div class="btn_list"> <div class="btn_list">
<input type="button" value="선택삭제" id="sel_option_delete"> <input type="button" value="선택삭제" id="sel_option_delete">

View File

@ -170,7 +170,8 @@ strong.sodr_nonpay {display:block;padding:5px 0;text-align:right}
#sit_option {margin:0 0 10px;padding:10px 10px 0;border:1px solid #e9e9e9;background:#f7f7f7} #sit_option {margin:0 0 10px;padding:10px 10px 0;border:1px solid #e9e9e9;background:#f7f7f7}
#sit_option .frm_input {background:#fff !important;color:#000} #sit_option .frm_input {background:#fff !important;color:#000}
#option_table th {padding:5px 0;text-align:center} #option_table_frm {margin:0 0 10px;height:auto !important;height:500px;max-height:500px;border:1px solid #484848;overflow-y:scroll}
#option_table_frm th {padding:5px 0;text-align:center}
#option_table .btn_list {margin:0 0 10px} #option_table .btn_list {margin:0 0 10px}
#option_table fieldset {padding:10px;border:1px solid #e9e9e9;background:#f7f7f7;text-align:center} #option_table fieldset {padding:10px;border:1px solid #e9e9e9;background:#f7f7f7;text-align:center}
#option_table fieldset .frm_input {margin:0 10px 0 5px;background:#fff !important;color:#000} #option_table fieldset .frm_input {margin:0 10px 0 5px;background:#fff !important;color:#000}