Files
firstgarden-web-gnu/adm/shop_admin/deliverycodelist.php

66 lines
2.1 KiB
PHP

<?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">순서</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_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');
?>