기본배송업체 필드 추가

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

@ -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 ";