배송업체관리 관련 파일 삭제

This commit is contained in:
chicpro
2013-11-08 16:53:45 +09:00
parent f8ef60be2f
commit a80224a84c
4 changed files with 0 additions and 199 deletions

View File

@ -17,7 +17,6 @@ $menu['menu400'] = array (
array('400500', '상품옵션재고관리', G5_ADMIN_URL.'/shop_admin/optionstocklist.php', 'scf_item_option'),
array('400650', '쿠폰관리', G5_ADMIN_URL.'/shop_admin/couponlist.php', 'scf_coupon'),
array('400500', '배송일괄처리', G5_ADMIN_URL.'/shop_admin/deliverylist.php', 'scf_deli', 1),
//array('400740', '배송업체관리', G5_ADMIN_URL.'/shop_admin/deliverycodelist.php', 'scf_deli_co', 1),
array('400750', '추가배송비관리', G5_ADMIN_URL.'/shop_admin/sendcostlist.php', 'scf_sendcost', 1)
);
?>

View File

@ -1,85 +0,0 @@
<?php
$sub_menu = '400740';
include_once('./_common.php');
auth_check($auth[$sub_menu], "w");
$html_title = '배송업체';
$g5['title'] = $html_title;
if ($w == "u") {
$html_title .= ' 수정';
$readonly = ' readonly';
$sql = " select * from {$g5['g5_shop_delivery_table']} where dl_id = '$dl_id' ";
$dl = sql_fetch($sql);
if (!$dl['dl_id']) alert('등록된 자료가 없습니다.');
}
else
{
$html_title .= ' 입력';
$dl['dl_url'] = "http://";
}
include_once (G5_ADMIN_PATH.'/admin.head.php');
?>
<form name="fdeliverycodeform" action="./deliverycodeformupdate.php" method="post">
<input type="hidden" name="w" value="<?php echo $w; ?>">
<input type="hidden" name="dl_id" value="<?php echo $dl_id; ?>">
<div class="tbl_frm01 tbl_wrap">
<table>
<caption><?php echo $g5['title']; ?></caption>
<colgroup>
<col class="grid_4">
<col>
</colgroup>
<tbody>
<tr>
<th scope="row"><label for="dl_company">배송업체명</label></th>
<td>
<input type="text" name="dl_company" value="<?php echo stripslashes($dl['dl_company']); ?>" id="dl_company" required class="frm_input">
</td>
</tr>
<tr>
<th scope="row"><label for="dl_url">화물추적 URL</label></th>
<td>
<input type="text" class="frm_input" name="dl_url" value="<?php echo stripslashes($dl['dl_url']); ?>" id="dl_url" size="100">
</td>
</tr>
<tr>
<th scope="row"><label for="dl_tel">고객센터 전화</label></th>
<td>
<input type="text" class="frm_input" name="dl_tel" value="<?php echo stripslashes($dl['dl_tel']); ?>" id="dl_tel">
</td>
</tr>
<tr>
<th scope="row"><label for="dl_order">출력 순서</label></th>
<td>
<?php echo help("셀렉트박스에서 출력할 때 순서를 정합니다.\n\n숫자가 작을수록 상단에 출력합니다."); ?>
<?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" id="dl_default" <?php echo get_checked($dl['dl_default'], '1'); ?>>
<label for="dl_default">기본 배송업체로 선택합니다.</label>
</td>
</tr>
</tbody>
</table>
</div>
<div class="btn_confirm01 btn_confirm">
<input type="submit" value="확인" class="btn_submit" accesskey="s">
<a href="./deliverycodelist.php">목록</a>
</div>
</form>
<?php
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -1,46 +0,0 @@
<?php
$sub_menu = '400740';
include_once('./_common.php');
if ($w == "u" || $w == "d")
check_demo();
if ($W == 'd')
auth_check($auth[$sub_menu], "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_default = '$dl_default' ";
if ($w == "") {
$sql = " alter table {$g5['g5_shop_delivery_table']} auto_increment=1 ";
sql_query($sql);
$sql = " insert {$g5['g5_shop_delivery_table']} $sql_common ";
sql_query($sql);
$dl_id = mysql_insert_id();
} else if ($w == "u") {
$sql = " update {$g5['g5_shop_delivery_table']} $sql_common where dl_id = '$dl_id' ";
sql_query($sql);
} else if ($w == "d") {
// Master 삭제
$sql = " delete from {$g5['g5_shop_delivery_table']} where dl_id = '$dl_id' ";
sql_query($sql);
}
if ($w == 'd') {
goto_url("./deliverycodelist.php");
} else {
goto_url("./deliverycodeform.php?w=u&amp;dl_id=$dl_id");
}
?>

View File

@ -1,67 +0,0 @@
<?php
$sub_menu = '400740';
include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g5['title'] = '배송업체관리';
include_once (G5_ADMIN_PATH.'/admin.head.php');
$sql_common = " from {$g5['g5_shop_delivery_table']} ";
// 테이블의 전체 레코드수만 얻음
$sql = " select count(*) as cnt " . $sql_common;
$row = sql_fetch($sql);
$total_count = $row['cnt'];
$sql = "select * $sql_common order by dl_order , dl_id desc ";
$result = sql_query($sql);
?>
<div class="local_ov01 local_ov">
<?php echo $total_count; ?>개 업체 등록됨
</div>
<div class="btn_add01 btn_add">
<a href="./deliverycodeform.php">배송회사추가</a>
</div>
<div class="tbl_head01 tbl_wrap">
<table>
<caption><?php echo $g5['title']; ?> 목록</caption>
<thead>
<tr>
<th scope="col">ID</th>
<th scope="col">배송회사명</th>
<th scope="col">고객센터</th>
<th scope="col">기본<span class="sound_only"> 배송지</span></th>
<th scope="col">순서</th>
<th scope="col">관리</th>
</tr>
</thead>
<tbody>
<?php for ($i=0; $row=mysql_fetch_array($result); $i++) { ?>
<tr>
<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 class="td_mngsmall"><?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>
<a href="./deliverycodeform.php?w=u&amp;dl_id=<?php echo $row['dl_id']; ?>"><span class="sound_only"><?php echo stripslashes($row['dl_company']); ?> </span>수정</a>
<a href="./deliverycodeformupdate.php?w=d&amp;dl_id=<?php echo $row['dl_id']; ?>" onclick="return delete_confirm();"><span class="sound_only"><?php echo stripslashes($row['dl_company']); ?> </span>삭제</a>
</td>
</tr>
<?php
}
if ($i == 0)
echo '<tr><td colspan="5" class="empty_table">자료가 없습니다.</td></tr>';
?>
</tbody>
</table>
</div>
<?php
include_once (G5_ADMIN_PATH.'/admin.tail.php');
?>