diff --git a/adm/shop_admin/deliverylist.php b/adm/shop_admin/deliverylist.php
index c5c517688..daf5c68a2 100644
--- a/adm/shop_admin/deliverylist.php
+++ b/adm/shop_admin/deliverylist.php
@@ -9,15 +9,6 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
//sql_query(" update $g4[shop_cart_table] set ct_status = '완료' where ct_status = '배송' ");
-// 배송회사리스트 ---------------------------------------------
-$delivery_options = "";
-$sql = " select * from {$g4['shop_delivery_table']} order by dl_order ";
-$result = sql_query($sql);
-for($i=0; $row=sql_fetch_array($result); $i++) {
- $delivery_options .= '';
-}
-// 배송회사리스트 end ---------------------------------------------
-
$where = " where ";
$sql_search = "";
if ($search != "") {
@@ -164,11 +155,7 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
=$hope_date?> |
|
-
-
+ =print_delivery_company($i, $row['dl_id'])?>
|
diff --git a/lib/shop.lib.php b/lib/shop.lib.php
index 7e2286eff..68c437280 100644
--- a/lib/shop.lib.php
+++ b/lib/shop.lib.php
@@ -621,6 +621,28 @@ function alert_opener($msg='', $url='')
exit;
}
+// 배송회사를 select 로 출력
+function print_delivery_company($no, $val)
+{
+ global $g4;
+
+ $delivery_options = '';
+ $sql = " select * from {$g4['shop_delivery_table']} order by dl_order ";
+ $result = sql_query($sql);
+ for($i=0; $row=sql_fetch_array($result); $i++) {
+ $selected = get_selected($row['dl_id'], $val);
+ $delivery_options .= ''.PHP_EOL;
+ }
+
+ $str = ''.PHP_EOL;
+ $str .= '';
+
+ return $str;
+}
+
// 주문서 번호를 얻는다.
function get_new_od_id()
{
|