쇼핑몰관리자 : #7 분류관리 분류추가/수정 표준화 및 스타일 세부 수정
This commit is contained in:
@ -79,16 +79,16 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
|
||||
|
||||
<form name="fcategoryform" action="./categoryformupdate.php" onsubmit="return fcategoryformcheck(this);" method="post" enctype="multipart/form-data" style="margin:0px">
|
||||
<form name="fcategoryform" action="./categoryformupdate.php" onsubmit="return fcategoryformcheck(this);" method="post" enctype="multipart/form-data">
|
||||
|
||||
<input type="hidden" name="codedup" value="<?=$default['de_code_dup_use']?>">
|
||||
<input type="hidden" name="w" value="<?=$w?>">
|
||||
<input type="hidden" name="page" value="<?=$page?>">
|
||||
<input type="hidden" name="sort1" value="<?=$sort1?>">
|
||||
<input type="hidden" name="sort2" value="<?=$sort2?>">
|
||||
<input type="hidden" name="ca_explan_html" value="<?=$ca['ca_explan_html']?>"><!--input-->
|
||||
<input type="hidden" name="ca_explan_html" value="<?=$ca['ca_explan_html']?>">
|
||||
<section class="cbox">
|
||||
<?//=subtitle("기본 입력")?>
|
||||
<h2>기본입력</h2>
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
@ -98,14 +98,14 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="col"><label for="ca_id">분류코드</label></th>
|
||||
<td colspan="3">
|
||||
<th scope="row"><label for="ca_id">분류코드</label></th>
|
||||
<td rowspan="3">
|
||||
<? if ($w == "") { ?>
|
||||
<?=help("자동으로 보여지는 분류코드를 사용하시길 권해드리지만 직접 입력한 값으로도 사용할 수 있습니다.\n분류코드는 나중에 수정이 되지 않으므로 신중하게 결정하여 사용하십시오.\n\n분류코드는 2자리씩 10자리를 사용하여 5단계를 표현할 수 있습니다.\n0~z까지 입력이 가능하며 한 분류당 최대 1296가지를 표현할 수 있습니다.\n그러므로 총 3656158440062976가지의 분류를 사용할 수 있습니다.");?>
|
||||
<input type=text name=ca_id value='<?=$subid?>' id=ca_id class=frm_input size='<?=$sublen?>' maxlength='<?=$sublen?>'>
|
||||
<? if ($default['de_code_dup_use']) { ?><a href='javascript:;' onclick="codedupcheck(document.getElementById('ca_id').value)"><img src='./img/btn_code.gif' border=0 align=absmiddle></a><? } ?>
|
||||
<input type="text" name="ca_id" value="<?=$subid?>" id="ca_id" class="frm_input" size="<?=$sublen?>" maxlength="<?=$sublen?>">
|
||||
<? if ($default['de_code_dup_use']) { ?><a href="javascript:;" onclick="codedupcheck(document.getElementById('ca_id').value)"><img src="./img/btn_code.gif"></a><? } ?>
|
||||
<? } else { ?>
|
||||
<input type=hidden name=ca_id value='<?=$ca['ca_id']?>'><?=$ca['ca_id']?>
|
||||
<input type="hidden" name="ca_id" value="<?=$ca['ca_id']?>"><?=$ca['ca_id']?>
|
||||
<? echo icon("미리보기", G4_SHOP_URL."/list.php?ca_id=$ca_id"); ?>
|
||||
<? echo "<a href='./categoryform.php?ca_id=$ca_id&$qstr' title='하위분류 추가'><img src='".G4_ADMIN_URL."/img/icon_insert.gif' border=0 align=absmiddle></a>"; ?>
|
||||
<a href='./itemlist.php?sca=<?=$ca['ca_id']?>'>상품리스트</a>
|
||||
@ -113,100 +113,100 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><label for="ca_name">분류명<span style="color:#ff6600">*</span></label></th>
|
||||
<th scope="row"><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>
|
||||
<th scope="row"><label for="ca_mb_id">관리 회원아이디</label></th>
|
||||
<td colspan="3">
|
||||
<?
|
||||
if ($is_admin == 'super')
|
||||
echo "<input type=text name=ca_mb_id value='{$ca['ca_mb_id']}' id=ca_mb_id class=frm_input maxlength=20>";
|
||||
echo "<input type=\"text\" name=\"ca_mb_id\" value=\"{$ca['ca_mb_id']}\" id=\"ca_mb_id\" class=\"frm_input\" maxlength=\"20\">";
|
||||
else
|
||||
echo "<input type=hidden name=ca_mb_id value='{$ca['ca_mb_id']}'>{$ca['ca_mb_id']}";
|
||||
echo "<input type=\"hidden\" name=\"ca_mb_id\" value=\"{$ca['ca_mb_id']}\">{$ca['ca_mb_id']}";
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><label for="ca_skin">출력스킨</label></th>
|
||||
<th scope="row"><label for="ca_skin">출력스킨</label></th>
|
||||
<td colspan="3">
|
||||
<?=help("기본으로 제공하는 스킨은 ".G4_SHOP_DIR."/list.skin.*.php 입니다.");?>
|
||||
<select id=ca_skin name=ca_skin>
|
||||
<select id="ca_skin" name="ca_skin">
|
||||
<? echo get_list_skin_options("^list.skin.(.*)\.php", G4_SHOP_PATH); ?>
|
||||
</select>
|
||||
<script>document.getElementById('ca_skin').value='<?=$ca['ca_skin']?>';</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><label for="ca_img_width">출력이미지 폭</label></th>
|
||||
<th scope="row"><label for="ca_img_width">출력이미지 폭</label></th>
|
||||
<td>
|
||||
<?=help("환경설정 > 이미지(소) 폭, 높이가 기본값으로 설정됩니다.\n\n".G4_SHOP_URL."/list.php에서 출력되는 이미지의 폭과 높이입니다.");?>
|
||||
<input type="text" name="ca_img_width" value="<? echo $ca['ca_img_width'] ?>" id="ca_img_width" required class="required frm_input" size="5" > 픽셀
|
||||
</td>
|
||||
<th scope="col"><label for="ca_img_height">출력이미지 높이</label></th>
|
||||
<th scope="row"><label for="ca_img_height">출력이미지 높이</label></th>
|
||||
<td>
|
||||
<input type="text" name="ca_img_height" value="<? echo $ca['ca_img_height'] ?>" id="ca_img_height" required class="required frm_input" size="5" > 픽셀
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><label for="ca_list_mod">1라인 이미지수</label></th>
|
||||
<th scope="row"><label for="ca_list_mod">1라인 이미지수</label></th>
|
||||
<td>
|
||||
<?=help("1라인에 설정한 값만큼의 상품을 출력하지만 스킨에 따라 1라인에 하나의 상품만 출력할 수도 있습니다.");?>
|
||||
<input type="text" name="ca_list_mod" size="3" value="<? echo $ca['ca_list_mod'] ?>" id="ca_list_mod" required class="required frm_input"> 개
|
||||
</td>
|
||||
<th scope="col"><label for="ca_list_row">총라인수</label></th>
|
||||
<th scope="row"><label for="ca_list_row">총라인수</label></th>
|
||||
<td>
|
||||
<?=help("한페이지에 몇라인을 출력할것인지를 설정합니다.\n\n한페이지에서 표시하는 상품수는 (1라인 이미지수 x 총라인수) 입니다.");?>
|
||||
<input type="text" name="ca_list_row" value='<? echo $ca['ca_list_row'] ?>' id="ca_list_row" required class="required frm_input" size="3"> 라인
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><label for="ca_opt1_subject">옵션 제목 1</label></th>
|
||||
<th scope="row"><label for="ca_opt1_subject">옵션 제목 1</label></th>
|
||||
<td>
|
||||
<?=help("제조사, 원산지 이외의 총 6개 옵션을 사용하실 수 있습니다.\n\n분류별로 다른 옵션 제목을 미리 설정할 수 있습니다.\n\n이곳에 입력한 값은 상품입력에서 옵션 제목으로 기본입력됩니다.");?>
|
||||
<input type="text" name="ca_opt1_subject" value="<? echo $ca['ca_opt1_subject'] ?>" id="ca_opt1_subject" class="frm_input">
|
||||
</td>
|
||||
<th scope="col"><label for="ca_opt2_subject">옵션 제목 2</label></th>
|
||||
<th scope="row"><label for="ca_opt2_subject">옵션 제목 2</label></th>
|
||||
<td>
|
||||
<input type="text" name="ca_opt2_subject" value="<? echo $ca['ca_opt2_subject'] ?>" id="ca_opt2_subject" class="frm_input">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><label for="ca_opt3_subject">옵션 제목 3</label></th>
|
||||
<th scope="row"><label for="ca_opt3_subject">옵션 제목 3</label></th>
|
||||
<td>
|
||||
<input type="text" name="ca_opt3_subject" value="<? echo $ca['ca_opt3_subject'] ?>" id="ca_opt3_subject" class="frm_input">
|
||||
</td>
|
||||
<th scope="col"><label for="ca_opt4_subject">옵션 제목 4</label></th>
|
||||
<th scope="row"><label for="ca_opt4_subject">옵션 제목 4</label></th>
|
||||
<td>
|
||||
<input type="text" name="ca_opt4_subject" value="<? echo $ca['ca_opt4_subject'] ?>" id="ca_opt4_subject" class="frm_input">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><label for="ca_opt5_subject">옵션 제목 5</label></th>
|
||||
<th scope="row"><label for="ca_opt5_subject">옵션 제목 5</label></th>
|
||||
<td>
|
||||
<input type="text" name="ca_opt5_subject" value="<? echo $ca['ca_opt5_subject'] ?>" id="ca_opt5_subject" class="frm_input">
|
||||
</td>
|
||||
<th scope="col"><label for="ca_opt6_subject">옵션 제목 6</label></th>
|
||||
<th scope="row"><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">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><label for="ca_stock_qty">재고수량</label></th>
|
||||
<th scope="row"><label for="ca_stock_qty">재고수량</label></th>
|
||||
<td colspan="3">
|
||||
<?=help("상품의 기본재고 수량을 설정합니다.\n재고를 사용하지 않는다면 숫자를 크게 입력하여 주십시오.\n예)999999");?>
|
||||
<input type="text" name="ca_stock_qty" size="10" value="<? echo $ca['ca_stock_qty']; ?>" id="ca_stock_qty" class="frm_input"> 개
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><label for="ca_sell_email">판매자 E-mail</label></th>
|
||||
<th scope="row"><label for="ca_sell_email">판매자 E-mail</label></th>
|
||||
<td colspan="3">
|
||||
<?=help("운영자와 판매자가 다른 경우에 사용합니다.\n이 분류에 속한 상품을 등록할 경우에 기본값으로 입력됩니다.");?>
|
||||
<input type="text" name="ca_sell_email" size="40" value="<? echo $ca['ca_sell_email'] ?>" id="ca_sell_email" class="frm_input">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><label for="ca_use">판매가능</label></th>
|
||||
<th scope="row"><label for="ca_use">판매가능</label></th>
|
||||
<td colspan="3">
|
||||
<?=help("잠시 판매를 중단하거나 재고가 없을 경우에 체크하면 이 분류명과 이 분류에 속한 상품은 출력하지 않으며 주문도 할 수 없습니다.");?>
|
||||
<input type="checkbox" name="ca_use" <? echo ($ca['ca_use']) ? "checked" : ""; ?> value="1" id="ca_use">예
|
||||
@ -217,7 +217,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
</section>
|
||||
|
||||
<section class="cbox">
|
||||
<?//=subtitle("선택 입력")?>
|
||||
<h2>선택 입력</h2>
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
@ -225,21 +225,21 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="col"><label for="ca_include_head">상단파일경로</label></th>
|
||||
<th scope="row"><label for="ca_include_head">상단파일경로</label></th>
|
||||
<td>
|
||||
<?=help("분류별로 상단+좌측의 내용이 다를 경우 상단+좌측 디자인 파일의 경로를 입력합니다.<br />입력이 없으면 기본 상단 파일을 사용합니다.<br />상단 내용과 달리 PHP 코드를 사용할 수 있습니다.");?><br />
|
||||
<input type="text" name="ca_include_head" value="<?=$ca['ca_include_head']?>" id="ca_include_head" class="frm_input" size="60">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><label for="ca_include_tail">하단 파일 경로</label></th>
|
||||
<th scope="row"><label for="ca_include_tail">하단 파일 경로</label></th>
|
||||
<td>
|
||||
<?=help("분류별로 하단+우측의 내용이 다를 경우 하단+우측 디자인 파일의 경로를 입력합니다.<br />입력이 없으면 기본 하단 파일을 사용합니다.<br />하단 내용과 달리 PHP 코드를 사용할 수 있습니다.");?><br />
|
||||
<input type="text" name="ca_include_tail" value="<?=$ca['ca_include_tail']?>" id="ca_include_tail" class="frm_input" size="60">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col">상단이미지</th>
|
||||
<th scope="row">상단이미지</th>
|
||||
<td>
|
||||
<?=help("상품리스트 페이지 상단에 출력하는 이미지입니다.");?>
|
||||
<input type="file" name="ca_himg">
|
||||
@ -259,7 +259,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
</tr>
|
||||
<? if ($himg_str) { echo "<tr><td colspan=4>$himg_str</td></tr>"; } ?>
|
||||
<tr>
|
||||
<th scope="col">하단이미지</th>
|
||||
<th scope="row">하단이미지</th>
|
||||
<td>
|
||||
<?=help("상품리스트 페이지 하단에 출력하는 이미지입니다.");?>
|
||||
<input type="file" name="ca_timg">
|
||||
@ -278,11 +278,11 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
</tr>
|
||||
<? if ($timg_str) { echo "<tr><td colspan=4>$timg_str</td></tr>"; } ?>
|
||||
<tr>
|
||||
<th scope="col"><?=help("상품리스트 페이지 상단에 출력하는 HTML 내용입니다.", -150);?>상단내용<br /></th>
|
||||
<th scope="row"><?=help("상품리스트 페이지 상단에 출력하는 HTML 내용입니다.", -150);?>상단내용<br /></th>
|
||||
<td><?=editor_html('ca_head_html', $ca['ca_head_html']);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><?=help("상품리스트 페이지 하단에 출력하는 HTML 내용입니다.", -150);?>하단내용<br /></th>
|
||||
<th scope="row"><?=help("상품리스트 페이지 하단에 출력하는 HTML 내용입니다.", -150);?>하단내용<br /></th>
|
||||
<td><?=editor_html('ca_tail_html', $ca['ca_tail_html']);?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@ -290,11 +290,10 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
<? if ($w == "u") { ?>
|
||||
<p>
|
||||
<section class="cbox">
|
||||
<?//=subtitle("기타")?>
|
||||
<h2>기타</h2>
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
@ -302,7 +301,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="col">하위분류</th>
|
||||
<th scope="row">하위분류</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;"> 이 분류의 설정과 같은 설정으로 반영
|
||||
@ -317,8 +316,6 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
<input type="submit" value="확인" class="btn_submit" accesskey="s">
|
||||
<a href="./categorylist.php?<?=$qstr?>">목록</a>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
<script>
|
||||
|
||||
@ -67,7 +67,6 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
<select name=ev_skin>
|
||||
<? echo get_list_skin_options("^list\.skin\.(.*)\.php", G4_SHOP_PATH); ?>
|
||||
</select>
|
||||
|
||||
<? if ($w == 'u') { ?>
|
||||
<script>document.all.ev_skin.value='<?=$ev['ev_skin']?>';</script>
|
||||
<? } ?>
|
||||
@ -79,7 +78,9 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
<input type="text" name="ev_img_width" value="<? echo $ev['ev_img_width'] ?>" id="ev_img_width" class="frm_input" size="5"> 픽셀
|
||||
</td>
|
||||
<th scope="col"><label for="ev_img_height">출력이미지 높이</label></th>
|
||||
<td><input type="text" name="ev_img_height" value="<? echo $ev['ev_img_height'] ?>" id="ev_img_height" class="frm_input" size="5"> 픽셀</td>
|
||||
<td>
|
||||
<input type="text" name="ev_img_height" value="<? echo $ev['ev_img_height'] ?>" id="ev_img_height" class="frm_input" size="5"> 픽셀
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><label for="ev_list_mod">1라인 이미지수</label></th>
|
||||
@ -126,8 +127,6 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
</td>
|
||||
</tr>
|
||||
<? if ($mimg_str) { echo "<tr><td></td><td colspan=\"3\">$mimg_str</td></tr>"; } ?>
|
||||
|
||||
|
||||
<tr>
|
||||
<th scope="col">상단이미지</th>
|
||||
<td colspan="3">
|
||||
@ -144,8 +143,6 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
</td>
|
||||
</tr>
|
||||
<? if ($himg_str) { echo "<tr><td colspan=\"4\">$himg_str</td></tr>"; } ?>
|
||||
|
||||
|
||||
<tr>
|
||||
<th scope="col">하단이미지</th>
|
||||
<td colspan="3">
|
||||
@ -174,7 +171,6 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
<?=editor_html('ev_tail_html', $ev['ev_tail_html']);?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
@ -117,7 +117,7 @@ function frmnewwin_check(f)
|
||||
return true;
|
||||
}
|
||||
|
||||
document.frmnewwin.nw_subject.focus();
|
||||
// document.frmnewwin.nw_subject.focus();
|
||||
</script>
|
||||
|
||||
<?
|
||||
|
||||
Reference in New Issue
Block a user