기본배송업체 필드 추가

This commit is contained in:
gnuboard
2013-10-18 14:39:10 +09:00
parent d918a45769
commit 745f2b4616
4 changed files with 19 additions and 1 deletions

View File

@ -61,6 +61,13 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
<?php echo order_select("dl_order", $dl['dl_order']); ?>
</td>
</tr>
<tr>
<th scope="row"><label for="dl_default">기본 배송업체</label></th>
<td>
<?php echo help("기본 배송업체로 선택하면 셀렉트박스에서 이 배송업체가 기본으로 노출됩니다."); ?>
<input type="checkbox" name="dl_default" value="1" <?php echo get_checked($dl['dl_default'], '1'); ?>> 기본 배송업체로 선택합니다.
</td>
</tr>
</tbody>
</table>
</div>

View File

@ -10,10 +10,16 @@ if ($W == 'd')
else
auth_check($auth[$sub_menu], "w");
// 기본 배송업체가 선택 되었다면 추가나 수정시 기본 배송업체를 모두 삭제한다.
if ($dl_default && ($w == "" || $w == "u")) {
sql_query(" update {$g5['g5_shop_delivery_table']} set dl_default = 0 ");
}
$sql_common .= "set dl_company = '$dl_company',
dl_url = '$dl_url',
dl_tel = '$dl_tel',
dl_order = '$dl_order' ";
dl_order = '$dl_order',
dl_default = '$dl_default' ";
if ($w == "") {
$sql = " alter table {$g5['g5_shop_delivery_table']} auto_increment=1 ";

View File

@ -23,6 +23,7 @@ $result = sql_query($sql);
</div>
<div class="btn_add01 btn_add">
■ 는 기본배송업체 표시입니다.
<a href="./deliverycodeform.php">배송회사추가</a>
</div>
@ -34,6 +35,7 @@ $result = sql_query($sql);
<th scope="col">ID</th>
<th scope="col">배송회사명</th>
<th scope="col">고객센터</th>
<th scope="col">기본배송지</th>
<th scope="col">순서</th>
<th scope="col">관리</th>
</tr>
@ -44,6 +46,7 @@ $result = sql_query($sql);
<td class="td_num"><?php echo $row['dl_id']; ?></td>
<td><?php echo stripslashes($row['dl_company']); ?></td>
<td class="td_numbig"><?php echo $row['dl_tel']; ?></td>
<td><?php echo ($row['dl_default']?"■":""); ?></td>
<td class="td_num"><?php echo $row['dl_order']; ?></td>
<td class="td_mng">
<a href="<?php echo $row['dl_url']; ?>" target="_blank"><span class="sound_only"><?php echo stripslashes($row['dl_company']); ?> </span>사이트</a>

View File

@ -131,6 +131,7 @@ $listall = '<a href="'.$_SERVER['PHP_SELF'].'" class="ov_listall">전체목록</
<th scope="col"><a href="<?php echo title_sort("od_invoice_time") . "&amp;$qstr1"; ?>">배송일시</a></th>
<th scope="col">배송업체</th>
<th scope="col"><a href="<?php echo title_sort("od_invoice", 1) . "&amp;$qstr1"; ?>">운송장번호</a></th>
<th scope="col">완료상태</th>
</tr>
</thead>
<tbody>
@ -188,6 +189,7 @@ $listall = '<a href="'.$_SERVER['PHP_SELF'].'" class="ov_listall">전체목록</
<input type="hidden" name="save_od_invoice[<?php echo $i; ?>]" value="<?php echo $row['od_invoice']; ?>">
<input type="text" name="od_invoice[<?php echo $i; ?>]" value="<?php echo $row['od_invoice']; ?>" class="frm_input" size="10">
</td>
<td><input type="checkbox" name="od_status" value="1"></td>
</tr>
<?php
}