쇼핑몰관리자 : #6 쇼핑몰관리 쇼핑몰 설정, #7 분류관리 세부수정

This commit is contained in:
rollydream
2013-03-26 10:52:57 +09:00
parent 9103805e59
commit 8f4f8dcdf4
3 changed files with 254 additions and 43 deletions

View File

@ -77,9 +77,9 @@ $g4['title'] = $html_title;
include_once (G4_ADMIN_PATH.'/admin.head.php');
?>
<?//=subtitle("기본 입력")?>
<form name="fcategoryform" method="post" action="./categoryformupdate.php" enctype="multipart/form-data" onsubmit="return fcategoryformcheck(this);" style="margin:0px;">
<form name="fcategoryform" action="./categoryformupdate.php" onsubmit="return fcategoryformcheck(this);" method="post" enctype="multipart/form-data" style="margin:0px">
<input type="hidden" name="codedup" value="<?=$default['de_code_dup_use']?>">
<input type="hidden" name="w" value="<?=$w?>">
@ -88,6 +88,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<input type="hidden" name="sort2" value="<?=$sort2?>">
<input type="hidden" name="ca_explan_html" value="<?=$ca['ca_explan_html']?>"><!--input-->
<section class="cbox">
<?//=subtitle("기본 입력")?>
<table class="frm_tbl">
<colgroup>
<col class="grid_3">
@ -115,7 +116,6 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<th scope="col"><label for="ca_name">분류명<span style="color:#ff6600">*</span></label></th>
<td colspan="3"><input type="text" name="ca_name" value="<? echo $ca['ca_name'] ?>" id="ca_name" size="38" required class="required frm_input"></td>
</tr>
<tr>
<th scope="col"><label for="ca_mb_id">관리 회원아이디</label></th>
<td colspan="3">
@ -188,7 +188,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</td>
<th scope="col"><label for="ca_opt6_subject">옵션 제목 6</label></th>
<td>
<input type="text" name="ca_opt6_subject" value="<? echo $ca['ca_opt6_subject'] ?>" id="ca_opt6_subject" class="frm_input">
<input type="text" name="ca_opt6_subject" value="<? echo $ca['ca_opt6_subject'] ?>" id="ca_opt6_subject" class="frm_input">
</td>
</tr>
<tr>
@ -216,9 +216,8 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</table>
</section>
<?//=subtitle("선택 입력")?>
<section class="cbox">
<?//=subtitle("선택 입력")?>
<table class="frm_tbl">
<colgroup>
<col class="grid_3">
@ -294,27 +293,29 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<? if ($w == "u") { ?>
<p>
<?//=subtitle("기타")?>
<table class="frm_tbl">
<colgroup>
<col class="grid_3">
<col class="grid_13">
</colgroup>
<tbody>
<tr>
<th scope="col">하위분류</th>
<td>
<?=help("이 분류의 코드가 10 이라면 10 으로 시작하는 하위분류의 설정값을 이 분류와 동일하게 설정합니다.", 0, -100);?>
<input type="checkbox" name="sub_category" value="1" onclick="if (this.checked) if (confirm('이 분류에 속한 하위 분류의 속성을 똑같이 변경합니다.\n\n이 작업은 되돌릴 방법이 없습니다.\n\n그래도 변경하시겠습니까?')) return ; this.checked = false;"> 이 분류의 설정과 같은 설정으로 반영
</td>
</tr>
</tbody>
</table>
<section class="cbox">
<?//=subtitle("기타")?>
<table class="frm_tbl">
<colgroup>
<col class="grid_3">
<col class="grid_13">
</colgroup>
<tbody>
<tr>
<th scope="col">하위분류</th>
<td>
<?=help("이 분류의 코드가 10 이라면 10 으로 시작하는 하위분류의 설정값을 이 분류와 동일하게 설정합니다.", 0, -100);?>
<input type="checkbox" name="sub_category" value="1" onclick="if (this.checked) if (confirm('이 분류에 속한 하위 분류의 속성을 똑같이 변경합니다.\n\n이 작업은 되돌릴 방법이 없습니다.\n\n그래도 변경하시겠습니까?')) return ; this.checked = false;"> 이 분류의 설정과 같은 설정으로 반영
</td>
</tr>
</tbody>
</table>
</section>
<? } ?>
<div class="btn_confirm" style="text-align:center">
<div class="btn_confirm">
<input type="submit" value="확인" class="btn_submit" accesskey="s">
<a href="./categorylist.php?<?=$qstr?>';">목록</a>
<a href="./categorylist.php?<?=$qstr?>">목록</a>
</div>
@ -359,7 +360,7 @@ function codedupcheck(id)
);
}
document.fcategoryform.ca_name.focus();
/*document.fcategoryform.ca_name.focus(); 포커스 해제*/
</script>
<?

View File

@ -477,7 +477,7 @@ $pg_anchor ="<ul class=\"anchor\">
<?=G4_SHOP_URL?>/settle_kcp_common.php
</td>
</tr>
<tr style='display:none;'>
<tr style="display:none;">
<td><label for="de_dacom_mid">LG텔레콤 상점아이디</label></td>
<td>
<input type="text" name="de_dacom_mid" value="<?=$default['de_dacom_mid']?>" id="de_dacom_mid" size="40">
@ -488,7 +488,10 @@ $pg_anchor ="<ul class=\"anchor\">
<input type="text" name="de_dacom_mertkey" value="<?=$default['de_dacom_mertkey']?>" id="de_dacom_mertkey" size="40">
</td>
<!-- <td>LG텔레콤 테스트 모드</td>
<td><input type=checkbox name=de_dacom_test value='1' <?=$default[de_dacom_test]?"checked":"";?>> 테스트로 결제하실 경우에 체크하세요.</td> -->
<td>
<input type="checkbox" name="de_dacom_test" value="1" <?=$default[de_dacom_test]?"checked":"";?>>
테스트로 결제하실 경우에 체크하세요.
</td> -->
</tr>
<tr style="display:none;">
<td><label for="de_inicis_mid">이니시스 아이디</label></td>
@ -822,6 +825,16 @@ function byte_check(el_cont, el_byte)
}
</script>
<style type="text/css">
.sms_box{float:left;width:225px}
.sms_box h3{display:inline-block;width:225px;text-align:center}
.sms_box ul{margin:0 auto;padding:0 !important;width:163px;list-style:none}
.sms_box ul li{text-align:center}
.sms_box textarea{margin-top:54px;width:115px;height:85px;background:#c4ffff;font-size: 8pt; font-family:굴림체;overflow:hidden}
.sms_img{width:163px;height:191px;background:url(./img/sms_back.gif) no-repeat 0 0}
</style>
<section id="frm_sms" class="cbox" >
<h2>SMS정보</h2>
<?=$pg_anchor?>
@ -831,15 +844,15 @@ function byte_check(el_cont, el_byte)
?>
<? for ($i=1; $i<=4; $i++) { ?>
<div style="width:225px;float:left">
<h3 style="display:inline-block;text-align:center;width:225px" ><?=$sms_title[$i]?></h3>
<ul style="list-style:none;margin:0 auto;width:163px;padding:0 !important">
<li style="text-align:center">(<?=$sms_daesang[$i]?>)</li>
<li style="background:url(./img/sms_back.gif) no-repeat 0 0;width:163px;height:191px">
<textarea id="de_sms_cont<?=$i?>" name="de_sms_cont<?=$i?>" ONKEYUP="byte_check('de_sms_cont<?=$i?>', 'byte<?=$i?>');" style="margin-left:22px;margin-top:54px;width:114px;overflow:hidden;height:85px;background-color:#C4FFFF; FONT-SIZE: 8pt; font-family:굴림체"><?=$default["de_sms_cont".$i]?></textarea>
<div class="sms_box">
<h3><?=$sms_title[$i]?></h3>
<ul>
<li>(<?=$sms_daesang[$i]?>)</li>
<li class="sms_img">
<textarea id="de_sms_cont<?=$i?>" name="de_sms_cont<?=$i?>" ONKEYUP="byte_check('de_sms_cont<?=$i?>', 'byte<?=$i?>');"><?=$default["de_sms_cont".$i]?></textarea>
</li>
<li style="text-align:center">
<span id="byte<?=$i?>" style="text-align:center">0 / 80 바이트</span>
<li>
<span id="byte<?=$i?>">0 / 80 바이트</span>
<br />
<input type="checkbox" name="de_sms_use<?=$i?>" value="1" id="de_sms_use<?=$i?>" <?=($default["de_sms_use".$i] ? " checked" : "")?>>
<label for="de_sms_use<?=$i?>">사용</label>
@ -850,7 +863,7 @@ function byte_check(el_cont, el_byte)
<script>
byte_check('de_sms_cont<?=$i?>', 'byte<?=$i?>');
</script>
<? } ?>
<? } ?>
<table class="frm_tbl">
<colgroup>
@ -934,18 +947,18 @@ function byte_check(el_cont, el_byte)
<? } ?>
<!-- <tr>
<th scope="row">아이코드 서버 IP</th>
<td colspan=3>
<input type=text name=de_icode_server_ip value='<?=$default[de_icode_server_ip]?$default[de_icode_server_ip]:"211.172.232.124";?>' size=20>
<td colspan="3">
<?=help("아이코드에서 문자메세지를 발송하는 서버의 IP 를 입력하십시오.\n\n기본값은 211.172.232.124 입니다.");?>
<input type="text" name="de_icode_server_ip" value="<?=$default[de_icode_server_ip]?$default[de_icode_server_ip]:"211.172.232.124";?>"size="20">
</td>
</tr>
<tr>
<th scope="row">아이코드 서버 Port</th>
<td colspan=3>
<select id=de_icode_server_port name=de_icode_server_port>
<option value=''>사용안함
<option value='7295'>충전식
<option value='7296'>정액제
<td colspan="3">
<select id="de_icode_server_port" name="de_icode_server_port">
<option value="">사용안함
<option value="7295">충전식
<option value="7296">정액제
</select>
<script>document.getElementById('de_icode_server_port').value="<?=$default[de_icode_server_port]?>";</script>
</td>

View File

@ -93,6 +93,203 @@ $g4['title'] = $html_title;
include_once (G4_ADMIN_PATH.'/admin.head.php');
?>
<form name="fitemform" action="./itemformupdate.php" onsubmit="return fitemformcheck(this)" method="post" enctype="MULTIPART/FORM-DATA" autocomplete="off" style="margin:0px;">
<input type="hidden" name="codedup" value="<?=$default['de_code_dup_use']?>">
<input type="hidden" name="w" value="<?=$w?>">
<!-- <input type=hidden name=sel_ca_id value="<?=$sel_ca_id?>">
<input type=hidden name=sel_field value="<?=$sel_field?>">
<input type=hidden name=search value="<?=$search?>">
<input type=hidden name=sort1 value="<?=$sort1?>">
<input type=hidden name=sort2 value="<?=$sort2?>"> -->
<input type="hidden" name="sca" value="<?=$sca?>">
<input type="hidden" name="sst" value="<?=$sst?>">
<input type="hidden" name="sod" value="<?=$sod?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="page" value="<?=$page?>">
<section class="cbox">
<?//=subtitle("기본정보")?>
<table class="frm_tbl">
<colgroup>
<col class="grid_3">
<col class="grid_5">
<col class="grid_3">
<col class="grid_5">
</colgroup>
<tbody>
<tr>
<th scope="col">분류명</th>
<td colspan="3">
<select name="ca_id" onchange="categorychange(this.form)">
<option value="">= 기본분류 =
<?
$script = "";
$sql = " select * from {$g4['yc4_category_table']} ";
if ($is_admin != 'super')
$sql .= " where ca_mb_id = '{$member['mb_id']}' ";
$sql .= " order by ca_id ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$len = strlen($row['ca_id']) / 2 - 1;
$nbsp = "";
for ($i=0; $i<$len; $i++)
$nbsp .= "&nbsp;&nbsp;&nbsp;";
$str = "<option value='{$row['ca_id']}'>$nbsp{$row['ca_name']}\n";
$category_select .= $str;
echo $str;
$script .= "ca_use['{$row['ca_id']}'] = {$row['ca_use']};\n";
$script .= "ca_stock_qty['{$row['ca_id']}'] = {$row['ca_stock_qty']};\n";
//$script .= "ca_explan_html['$row[ca_id]'] = $row[ca_explan_html];\n";
$script .= "ca_sell_email['{$row['ca_id']}'] = '{$row['ca_sell_email']}';\n";
$script .= "ca_opt1_subject['{$row['ca_id']}'] = '{$row['ca_opt1_subject']}';\n";
$script .= "ca_opt2_subject['{$row['ca_id']}'] = '{$row['ca_opt2_subject']}';\n";
$script .= "ca_opt3_subject['{$row['ca_id']}'] = '{$row['ca_opt3_subject']}';\n";
$script .= "ca_opt4_subject['{$row['ca_id']}'] = '{$row['ca_opt4_subject']}';\n";
$script .= "ca_opt5_subject['{$row['ca_id']}'] = '{$row['ca_opt5_subject']}';\n";
$script .= "ca_opt6_subject['{$row['ca_id']}'] = '{$row['ca_opt6_subject']}';\n";
}
?>
</select>
<script> document.fitemform.ca_id.value = '<?=$it['ca_id']?>'; </script>
<script>
var ca_use = new Array();
var ca_stock_qty = new Array();
//var ca_explan_html = new Array();
var ca_sell_email = new Array();
var ca_opt1_subject = new Array();
var ca_opt2_subject = new Array();
var ca_opt3_subject = new Array();
var ca_opt4_subject = new Array();
var ca_opt5_subject = new Array();
var ca_opt6_subject = new Array();
<?="\n$script"?>
</script>
<? if ($w == "") { ?>
<?=help("기본분류를 선택하면 선택한 분류의 기본값인 판매, 재고, HTML사용, 판매자 E-mail 을 기본값으로 설정합니다.");?>
<? } ?>
<?
for ($i=2; $i<=3; $i++)
{
echo "&nbsp; <select name='ca_id{$i}'><option value=''>= {$i}차 분류 ={$category_select}</select>\n";
echo "<script> document.fitemform.ca_id{$i}.value = '".$it["ca_id{$i}"]."'; </script>\n";
}
?>
<?=help("기본분류는 반드시 선택하셔야 합니다.<br><br>하나의 상품에 최대 3개의 다른 분류를 지정할 수 있습니다.<br><br>2차, 3차 분류는 기본 분류의 하위 분류 개념이 아니므로 기본 분류 선택시 해당 상품이 포함될 최하위 분류만 선택하시면 됩니다.");?>
</td>
</tr>
<tr>
<th scope="col"><label for="it_id">상품코드</label></th>
<td colspan="3">
<? if ($w == "") { // 추가 ?>
<!-- 최근에 입력한 코드(자동 생성시)가 목록의 상단에 출력되게 하려면 아래의 코드로 대체하십시오. -->
<!-- <input type=text class=required name=it_id value="<?=10000000000-time()?>" size=12 maxlength=10 required> <a href='javascript:;' onclick="codedupcheck(document.all.it_id.value)"><img src='./img/btn_code.gif' border=0 align=absmiddle></a> -->
<input type=text name=it_id value="<?=time()?>" id=it_id required class=required size=12 maxlength=10>
<? if ($default['de_code_dup_use']) { ?><a href='javascript:;' onclick="codedupcheck(document.all.it_id.value)"><img src='<?=G4_ADMIN_URL?>/img/btn_code.gif' border=0 align=absmiddle></a><? } ?>
<?=help("상품의 코드는 10자리 숫자로 자동생성합니다.\n운영자 임의로 상품코드를 입력하실 수 있습니다.\n상품코드는 영문자와 숫자만 입력 가능합니다.");?>
<? } else { ?>
<input type=hidden name=it_id value="<?=$it['it_id']?>">
<?=$it['it_id']?>
<?=icon("보기", G4_SHOP_URL."/item.php?it_id=$it_id");?>
<a href='<?=G4_ADMIN_URL?>/shop_admin/itempslist.php?sel_field=a.it_id&search=<?=$it_id?>'>사용후기</a>
<a href='<?=G4_ADMIN_URL?>/shop_admin/itemqalist.php?sel_field=a.it_id&search=<?=$it_id?>'>상품문의</a>
<? } ?>
</td>
</tr>
<tr>
<th scope="col"><label for="it_name">상품명</label></th>
<td colspan="3">
<input type="text" name="it_name" value="<?=get_text(cut_str($it['it_name'], 250, ""))?>" style="width:97%;" id="it_name" required class="frm_input required">
</td>
</tr>
<tr>
<th scope="col"><label for="it_gallery">출력유형</label></th>
<td>
<?=help("금액표시는 하지 않고 상품을 구매할 수 없으며 상품설명만 나타낼때 사용합니다.");?>
<input type="checkbox" name="it_gallery" value="1" id="it_gallery" class="frm_input" <?=($it['it_gallery'] ? "checked" : "")?>> 갤러리로 사용
</td>
<th scope="col"><label for="it_order">출력순서</label></th>
<td>
<?=help("상품의 출력순서를 인위적으로 변경할때 사용합니다.\n숫자를 입력하며 기본은 0 입니다.\n숫자가 작을 수록 상위에 출력됩니다.\n음수 입력도 가능합니다.\n구간 : -2147483648 ~ 2147483647");?>
<input type="text" name="it_order" value="<? echo $it['it_order'] ?>" id="it_order" class="frm_input" size="10">
</td>
</tr>
<tr>
<th>상품유형</th>
<td colspan="3">
<?=help("메인화면에 유형별로 출력할때 사용합니다.\n\n이곳에 체크하게되면 상품리스트에서 유형별로 정렬할때 체크된 상품이 가장 먼저 출력됩니다.");?>
<input type="checkbox" name="it_type1" value="1" <?=($it['it_type1'] ? "checked" : "");?> id="it_type1">
<label for="it_type1"><img src="<?=G4_SHOP_URL?>/img/icon_type1.gif" alt="hit"></label>
<input type="checkbox" name="it_type2" value="1" <?=($it['it_type2'] ? "checked" : "");?> id="it_type2">
<label for="it_type2"><img src="<?=G4_SHOP_URL?>/img/icon_type2.gif" alt="추천"></label>
<input type="checkbox" name="it_type3" value="1" <?=($it['it_type3'] ? "checked" : "");?> id="it_type3">
<label for="it_type3"><img src="<?=G4_SHOP_URL?>/img/icon_type3.gif" alt="new"></label>
<input type="checkbox" name="it_type4" value="1" <?=($it['it_type4'] ? "checked" : "");?> id="it_type4">
<label for="it_type4"><img src="<?=G4_SHOP_URL?>/img/icon_type4.gif" alt="인기"></label>
<input type="checkbox" name="it_type5" value="1" <?=($it['it_type5'] ? "checked" : "");?> id="it_type5">
<label for="it_type5"><img src="<?=G4_SHOP_URL?>/img/icon_type5.gif" alt="go"></label>
</td>
</tr>
<tr>
<th><label for="it_maker">제조사</label></th>
<td>
<?=help("입력하지 않으면 상품상세페이지에 출력하지 않습니다.");?>
<input type="text" name="it_maker" value="<?=get_text($it['it_maker'])?>"id="it_maker" class="frm_input" size="41">
</td>
<th><label for="it_origin">원산지</label></th>
<td>
<?=help("입력하지 않으면 상품상세페이지에 출력하지 않습니다.");?>
<input type="text" name="it_origin" value="<?=get_text($it['it_origin'])?>" id="it_origin" class="frm_input" size="41">
</td>
</tr>
<?
for ($i=1; $i<=3; $i++) {
$k1=$i*2-1;
$k2=$i*2;
$val11 = stripslashes($it["it_opt".$k1."_subject"]);
$val12 = stripslashes($it["it_opt".$k1]);
$val21 = stripslashes($it["it_opt".$k2."_subject"]);
$val22 = stripslashes($it["it_opt".$k2]);
echo "
<tr>
<td><input type=text name='it_opt{$k1}_subject' size=15 class=frm_input value='".get_text($val11)."'></td>
<td><textarea name='it_opt{$k1}' rows='3' cols=40 class=frm_input>$val12</textarea></td>
<td><input type=text name='it_opt{$k2}_subject' size=15 class=frm_input value='".get_text($val21)."'></td>
<td><textarea name='it_opt{$k2}' rows='3' cols=40 class=frm_input>$val22</textarea></td>
</tr>\n";
}
?>
<tr>
<th></th>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<th scope="col">기본설명</th>
<td colspan="3">
<?=help("상품상세페이지의 상품설명 상단에 표시되는 설명입니다.\nHTML 입력도 가능합니다.", -150, -100);?>
<input type="text" class="frm_input" name="it_basic" value="<?=get_text($it['it_basic'])?>" style="width:97%">
</td>
</tr>
</tbody>
</table>
</section>
<form name=fitemform method=post action="./itemformupdate.php" onsubmit="return fitemformcheck(this)" enctype="MULTIPART/FORM-DATA" autocomplete="off" style="margin:0px;">
<?//=subtitle("기본정보")?>
<table width=100% cellpadding=0 cellspacing=0 border=0>