쇼핑몰관리자: #193 상품선택옵션 마크업, option_table 작업 중 프로그래밍 수정 요청

This commit is contained in:
whitedot
2013-05-22 11:40:53 +09:00
parent a91219c6f0
commit 25faa84d2e
3 changed files with 80 additions and 53 deletions

View File

@ -344,27 +344,50 @@ $pg_anchor ='<ul class="anchor">
<tr>
<th scope="row">상품선택옵션</th>
<td colspan="2">
<table class="frm_tbl">
<tbody>
<tr>
<th>옵션명</th>
<th>옵션항목(,로 구분)</th>
</tr>
<tr>
<td><input type="text" id="opt1_subject" name="opt1_subject" value="<?php echo $opt_subject[0]; ?>" class="frm_input" size="15" /></td>
<td><input type="text" id="opt1" name="opt1" value="" class="frm_input" size="50" /></td>
<td rowspan="3"><button type="button" id="option_table_create">옵션목록생성</button></td>
</tr>
<tr>
<td><input type="text" id="opt2_subject" name="opt2_subject" value="<?php echo $opt_subject[1]; ?>" class="frm_input" size="15" /></td>
<td><input type="text" id="opt2" name="opt2" value="" class="frm_input" size="50" /></td>
</tr>
<tr>
<td><input type="text" id="opt3_subject" name="opt3_subject" value="<?php echo $opt_subject[2]; ?>" class="frm_input" size="15" /></td>
<td><input type="text" id="opt3" name="opt3" value="" class="frm_input" size="50" /></td>
</tr>
</tbody>
</table>
<div id="sit_option">
<?php echo help('옵션항목은 콤마(,) 로 구분하여 여러개를 입력할 수 있습니다. 예시) 라지,미디움,스몰'); ?>
<table class="frm_tbl">
<colgroup>
<col class="grid_4">
<col>
</colgroup>
<tbody>
<tr>
<th scope="row">
<label for="opt1_subject">옵션1</label>
<input type="text" name="opt1_subject" value="<?php echo $opt_subject[0]; ?>" id="opt1_subject" class="frm_input" size="15">
</th>
<td>
<label for="opt1"><b>옵션1 항목</b></label>
<input type="text" name="opt1" value="" id="opt1" class="frm_input" size="50">
</td>
</tr>
<tr>
<th scope="row">
<label for="opt2_subject">옵션2</label>
<input type="text" name="opt2_subject" value="<?php echo $opt_subject[1]; ?>" id="opt2_subject" class="frm_input" size="15">
</th>
<td>
<label for="opt2"><b>옵션2 항목</b></label>
<input type="text" name="opt2" value="" id="opt2" class="frm_input" size="50">
</td>
</tr>
<tr>
<th scope="row">
<label for="opt3_subject">옵션3</label>
<input type="text" name="opt3_subject" value="<?php echo $opt_subject[2]; ?>" id="opt3_subject" class="frm_input" size="15">
</th>
<td>
<label for="opt3"><b>옵션3 항목</b></label>
<input type="text" name="opt3" value="" id="opt3" class="frm_input" size="50">
</td>
</tr>
</tbody>
</table>
<div class="btn_confirm">
<button type="button" id="option_table_create" class="btn_frmline">옵션목록생성</button>
</div>
</div>
<div id="option_table"><?php include_once(G4_ADMIN_PATH.'/shop_admin/itemoption.php'); ?></div>
</td>
</tr>

View File

@ -44,21 +44,21 @@ if($it['it_id']) {
if($po_run) {
?>
<table class="frm_tbl">
<table>
<thead>
<tr>
<th scope="col">
<label for="opt_chk_all" class="sound_only">전체 옵션 선택</label>
<input type="checkbox" name="opt_chk_all" value="1" id="opt_chk_all">
</th>
<th scope="col">옵션</th>
<th scope="col">추가금액</th>
<th scope="col">재고수량</th>
<th scope="col">통보수량</th>
<th scope="col">사용여부</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="2"><input type="checkbox" name="opt_chk_all" value="1"></td>
<td colspan="3">옵션항목</td>
<td rowspan="2">추가금액</td>
<td rowspan="2">재고수량</td>
<td rowspan="2">통보수량</td>
<td rowspan="2">사용여부</td>
</tr>
<tr>
<td><?php echo $opt1_subject; ?></td>
<td><?php echo $opt2_subject; ?></td>
<td><?php echo $opt3_subject; ?></td>
</tr>
<?php
if($it['it_id']) {
for($i=0; $row=sql_fetch_array($result); $i++) {
@ -73,15 +73,15 @@ if($it['it_id']) {
$opt_use = $row['io_use'];
?>
<tr>
<input type="hidden" name="opt_id[]" value="<?php echo $opt_id; ?>">
<td><input type="checkbox" name="opt_chk[]" value="1"></td>
<td class="opt1-cell"><?php echo $opt_1; ?></td>
<td class="opt2-cell"><?php echo $opt_2; ?></td>
<td class="opt3-cell"><?php echo $opt_3; ?></td>
<td><input type="text" name="opt_price[]" value="<?php echo $opt_price; ?>" class="frm_input" size="5"></td>
<td><input type="text" name="opt_stock_qty[]" value="<?php echo $opt_stock_qty; ?>" class="frm_input" size="5"></td>
<td><input type="text" name="opt_noti_qty[]" value="<?php echo $opt_noti_qty; ?>" class="frm_input" size="5"></td>
<td>
<td class="td_chk">
<input type="hidden" name="opt_id[]" value="<?php echo $opt_id; ?>">
<input type="checkbox" name="opt_chk[]" value="1">
</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_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_mng">
<select name="opt_use[]">
<option value="1" <?php echo get_selected('1', $opt_use); ?>>사용함</option>
<option value="0" <?php echo get_selected('0', $opt_use); ?>>사용안함</option>
@ -111,15 +111,15 @@ if($it['it_id']) {
$opt_use = 1;
?>
<tr>
<input type="hidden" name="opt_id[]" value="<?php echo $opt_id; ?>">
<td><input type="checkbox" name="opt_chk[]" value="1"></td>
<td class="opt1-cell"><?php echo $opt_1; ?></td>
<td class="opt2-cell"><?php echo $opt_2; ?></td>
<td class="opt3-cell"><?php echo $opt_3; ?></td>
<td><input type="text" name="opt_price[]" value="<?php echo $opt_price; ?>" class="frm_input" size="5"></td>
<td><input type="text" name="opt_stock_qty[]" value="<?php echo $opt_stock_qty; ?>" class="frm_input" size="5"></td>
<td><input type="text" name="opt_noti_qty[]" value="<?php echo $opt_noti_qty; ?>" class="frm_input" size="5"></td>
<td>
<td class="td_chk">
<input type="hidden" name="opt_id[]" value="<?php echo $opt_id; ?>">
<input type="checkbox" name="opt_chk[]" value="1">
</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_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_mng">
<select name="opt_use[]">
<option value="1" <?php echo get_selected('1', $opt_use); ?>>사용함</option>
<option value="0" <?php echo get_selected('0', $opt_use); ?>>사용안함</option>

View File

@ -168,6 +168,10 @@ strong.sodr_nonpay {display:block;padding:5px 0;text-align:right}
.sit_relation_selwrap {display:block;height:30px}
#add_span img, #sel_span img {margin:5px 0}
#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}
#option_table th {padding:5px 0;text-align:center}
/* 상품문의 */
.sit_qa_subject {width:300px}
.sit_qa_answer {width:30px;text-align:center}