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

86 lines
2.7 KiB
PHP

<?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');
?>