Merge branch 'master' of github.com:gnuboard/yc4s

This commit is contained in:
chicpro
2013-03-29 17:25:48 +09:00
11 changed files with 264 additions and 274 deletions

View File

@ -61,7 +61,7 @@ $colspan = 15;
<legend>게시판 검색</legend>
<span>
<?=$listall?>
생성된 게시판수 <?=number_format($total_count)?>개
생성된 게시판 수 <?=number_format($total_count)?>개
</span>
<select name="sfl" title="검색대상">
<option value="bo_table"<?=get_selected($_GET['sfl'], "bo_subject", true);?>>TABLE</option>

View File

@ -36,7 +36,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</colgroup>
<tbody>
<tr>
<th scope="col">이미지</th>
<th scope="row">이미지</th>
<td>
<input type="file" name="bn_bimg">
<?
@ -54,21 +54,21 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</tr>
<? if ($bimg_str) { echo "<tr><td></td><td>$bimg_str</td></tr>"; } ?>
<tr>
<th scope="col"><label for="bn_alt">이미지 설명</label></th>
<th scope="row"><label for="bn_alt">이미지 설명</label></th>
<td>
<?=help("img 태그의 alt, title 에 해당되는 내용입니다.\n배너에 마우스를 오버하면 이미지의 설명이 나옵니다.");?>
<input type="text" name="bn_alt" value="<? echo $bn['bn_alt'] ?>" id="bn_alt" class="frm_input" size="80">
</td>
</tr>
<tr>
<th scope="col"><label for="bn_url">링크</label></th>
<th scope="row"><label for="bn_url">링크</label></th>
<td>
<?=help("배너클릭시 이동하는 주소입니다.");?>
<input type="text" name="bn_url" size="80" value="<? echo $bn['bn_url'] ?>" id="bn_url" class="frm_input">
</td>
</tr>
<tr>
<th scope="col"><label for="bn_position">출력위치</label></th>
<th scope="row"><label for="bn_position">출력위치</label></th>
<td>
<?=help("왼쪽 : 쇼핑몰화면 왼쪽에 출력합니다.\n메인 : 쇼핑몰 메인화면(index.php)에만 출력합니다.", 50);?>
<select name="bn_position" id="bn_position">
@ -78,7 +78,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</td>
</tr>
<tr>
<th scope="col"><label for="bn_border">테두리</label></th>
<th scope="row"><label for="bn_border">테두리</label></th>
<td>
<?=help("배너이미지에 테두리를 넣을지를 설정합니다.", 50);?>
<select name="bn_border" id="bn_border">
@ -88,7 +88,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</td>
</tr>
<tr>
<th scope="col"><label for="bn_new_win">새창</label></th>
<th scope="row"><label for="bn_new_win">새창</label></th>
<td>
<?=help("배너클릭시 새창을 띄울지를 설정합니다.", 50);?>
<select name="bn_new_win" id="bn_new_win">
@ -98,7 +98,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</td>
</tr>
<tr>
<th scope="col"><label for="bn_begin_time">시작일시</label></th>
<th scope="row"><label for="bn_begin_time">시작일시</label></th>
<td>
<?=help("현재시간이 시작일시와 종료일시 기간안에 있어야 배너가 출력됩니다.");?>
<input type="text" name="bn_begin_time" value="<? echo $bn['bn_begin_time'] ?>" id="bn_begin_time" class="frm_input" size="21" maxlength="19">
@ -107,7 +107,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</td>
</tr>
<tr>
<th scope="col"><label for="bn_end_time">종료일시</label></th>
<th scope="row"><label for="bn_end_time">종료일시</label></th>
<td>
<input type="text" name="bn_end_time" value="<? echo $bn['bn_end_time'] ?>" id="bn_end_time" class="frm_input" size=21 maxlength=19>
<input type="checkbox" name="bn_end_chk" value="<? echo date("Y-m-d 23:59:59", time()+60*60*24*31); ?>" id="bn_end_chk" onclick="if (this.checked == true) this.form.bn_end_time.value=this.form.bn_end_chk.value; else this.form.bn_end_time.value = this.form.bn_end_time.defaultValue;">
@ -115,7 +115,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</td>
</tr>
<tr>
<th scope="col"><label for="bn_order">출력 순서</label></th>
<th scope="row"><label for="bn_order">출력 순서</label></th>
<td>
<?=help("배너를 출력할 때 순서를 정합니다.\n\n숫자가 작을수록 상단에 출력합니다.");?>
<?=order_select("bn_order", $bn['bn_order'])?>

View File

@ -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>

View File

@ -44,134 +44,124 @@ $sql_order = "order by $sst $sod";
// 출력할 레코드를 얻음
$sql = " select *
$sql_common
$sql_order
limit $from_record, $rows ";
$sql_common
$sql_order
limit $from_record, $rows ";
$result = sql_query($sql);
//$qstr = "page=$page&sort1=$sort1&sort2=$sort2";
$qstr = "$qstr&sca=$sca&page=$page&save_stx=$stx";
//$qstr = "page=".$page."&amp;sort1=".$sort1."&amp;sort2=".$sort2;
$qstr = $qstr."&amp;sca=".$sca."&amp;page=".$page."&amp;save_stx=".$stx;
?>
<table width=100% cellpadding=4 cellspacing=0>
<form name=flist>
<input type=hidden name=page value="<?=$page?>">
<tr>
<td width=20%><a href='<?=$_SERVER['PHP_SELF']?>'>처음</a></td>
<td width=60% align=center>
<select name=sfl>
<option value='ca_name'>분류명
<option value='ca_id'>분류코드
<option value='ca_mb_id'>회원아이디
</select>
<? if ($sfl) echo "<script> document.flist.sfl.value = '$sfl';</script>"; ?>
<form name="flist">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="save_stx" value="<?=$stx?>">
<fieldset>
<legend>분류 검색</legend>
<span>
<?=$listall?>
생성된 분류 수 <?=number_format($total_count)?>개
</span>
<select name="sfl" title="검색대상">
<option value="ca_name"<?=get_selected($_GET['sfl'], "ca_name", true);?>>분류명</option>
<option value="ca_id"<?=get_selected($_GET['sfl'], "ca_id", true);?>>분류코드</option>
<option value="ca_mb_id"<?=get_selected($_GET['sfl'], "ca_mb_id", true);?>>회원아이디</option>
</select>
<input type="text" name="stx" value="<?=$stx?>" title="검색어(필수)" required class="required frm_input">
<input type="submit" value="검색" class="btn_submit">
</fieldset>
<input type=hidden name=save_stx value='<?=$stx?>'>
<input type=text name=stx value='<?=$stx?>'>
<input type=image src='<?=G4_ADMIN_URL?>/img/btn_search.gif' align=absmiddle>
</td>
<td width=20% align=right>건수 : <? echo $total_count ?>&nbsp;</td>
</tr>
</form>
</table>
<form name=fcategorylist method='post' action='./categorylistupdate.php' autocomplete='off' style="margin:0px;">
<section class="cbox">
<h2>생성된 분류 전체 목록</h2>
<p>생성된 분류 확인, 추가 및 간단한 수정을 할 수 있습니다. 수정한 내용 적용은 <a href="#form_to_submit"><strong>일괄수정</strong></a> 버튼을 누르세요.</p>
<?if ($is_admin == 'super') {?>
<div id="btn_add">
<a href="./categoryform.php" id="cate_add">분류 추가</a>
</div>
<?}?>
<form name="fcategorylist" method="post" action="./categorylistupdate.php" autocomplete="off">
<input type="hidden" name="page" value="<?=$page ?>">
<input type="hidden" name="sort1" value="<?=$sort1 ?>">
<input type="hidden" name="sort2" value="<?=$sort2 ?>">
<table class="frm_basic">
<thead>
<tr>
<th scope="col"><?=subject_sort_link("ca_id");?>분류<br>코드</a></th>
<th scope="col"><?=subject_sort_link("ca_name");?>분류명</a></th>
<th scope="col"><?=subject_sort_link("ca_mb_id");?>회원아이디</a></th>
<th scope="col"><?=subject_sort_link("ca_use");?>판매<br>가능</a></th>
<th scope="col"><?=subject_sort_link("ca_stock_qty");?>기본재고</a></th>
<th scope="col">상품수</th>
<th scope="col">관리</th>
</tr>
</thead>
<tbody>
<?
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$level = strlen($row['ca_id']) / 2 - 1;
$s_level = '<label for="ca_name_'.$i.'">'.($level+1).'단계 분류</label>';
if ($level > 0) { // 2단계 이상
$style = 'style="text-align:right;"';
} else { // 1단계
}
$s_add = '<a href="./categoryform.php?ca_id='.$row['ca_id'].'&amp;'.$qstr.'">2단계 추가</a>';
$s_upd = '<a href="./categoryform.php?w=u&amp;ca_id='.$row['ca_id'].'&amp;'.$qstr.'">수정</a>';
$s_vie = '<a href="'.$g4['shop_path'].'/list.php?ca_id='.$row['ca_id'].'">보기</a>';
<table cellpadding=0 cellspacing=0 width=100%>
<input type=hidden name=page value='<? echo $page ?>'>
<input type=hidden name=sort1 value='<? echo $sort1 ?>'>
<input type=hidden name=sort2 value='<? echo $sort2 ?>'>
<tr><td colspan=11 height=2 bgcolor=#0E87F9></td></tr>
<tr align=center class=ht>
<td width=80><?=subject_sort_link("ca_id");?>분류코드</a></td>
<td width='' ><?=subject_sort_link("ca_name");?>분류명</a></td>
<td width=80 title='해당분류관리 회원아이디'><?=subject_sort_link("ca_mb_id");?>회원아이디</a></td>
<td width=60 ><?=subject_sort_link("ca_use");?>판매가능</a></td>
<td width=60 ><?=subject_sort_link("ca_stock_qty");?>기본재고</a></td>
<td width=50 >상품수</td>
<td width=120>
<?
if ($is_admin == 'super')
echo "<a href='./categoryform.php'><img src='".G4_ADMIN_URL."/img/icon_insert.gif' border=0 title='1단계분류 추가'></a>";
else
echo "&nbsp;";
?>
</td>
</tr>
<tr><td colspan=11 height=1 bgcolor=#CCCCCC></td></tr>
$s_del = '<a href="javascript:del(\'./categoryformupdate.php?w=d&amp;ca_id='.$row['ca_id'].'&amp;'.$qstr.'\');">삭제</a>';
<?
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$s_level = "";
$level = strlen($row['ca_id']) / 2 - 1;
if ($level > 0) // 2단계 이상
{
$s_level = "&nbsp;&nbsp;<img src='".G4_ADMIN_URL."/img/icon_catlevel.gif' border=0 width=17 height=15 align=absmiddle alt='".($level+1)."단계 분류'>";
for ($k=1; $k<$level; $k++)
$s_level = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" . $s_level;
$style = " ";
}
else // 1단계
{
$style = " style='border:1 solid; border-color:#0071BD;' ";
}
// 해당 분류에 속한 상품의 갯수
$sql1 = " select COUNT(*) as cnt from {$g4['yc4_item_table']}
where ca_id = '{$row['ca_id']}'
or ca_id2 = '{$row['ca_id']}'
or ca_id3 = '{$row['ca_id']}' ";
$row1 = sql_fetch($sql1);
$s_add = icon("추가", "./categoryform.php?ca_id={$row['ca_id']}&$qstr");
$s_upd = icon("수정", "./categoryform.php?w=u&ca_id={$row['ca_id']}&$qstr");
$s_vie = icon("보기", "$g4[shop_path]/list.php?ca_id={$row['ca_id']}");
?>
<tr>
<td class="td_num">
<input type="hidden" name="ca_id[<?=$i?>]" value="<?=$row['ca_id']?>">
<?=$row['ca_id']?>
</td>
<td <?=$style?>><?=$s_level?> <input type="text" name="ca_name[<?=$i?>]" value="<?=get_text($row['ca_name'])?>" id="ca_name_<?=$i?>" title="<?=$row['ca_id']?>" required class="frm_input required" size="35"></td>
if ($is_admin == 'super')
$s_del = icon("삭제", "javascript:del('./categoryformupdate.php?w=d&ca_id={$row['ca_id']}&$qstr');");
<td class="td_mbid">
<? if ($is_admin == 'super') {?><input type="text" name="ca_mb_id[<?=$i?>]" size="10" maxlength="20" value="<?=$row['ca_mb_id']?>" class="frm_input">
<? } else { ?>
<input type="hidden" name="ca_mb_id[<?=$i?>]" value="<?=$row['ca_mb_id']?>">
<?=$row['ca_mb_id']?>
<? } ?>
</td>
<td class="td_chk"><input type="checkbox" name="ca_use[<?=$i?>]" value="1" <?=($row['ca_use'] ? "checked" : "")?>></td>
<td class="td_bignum"><input type="text" name="ca_stock_qty[<?=$i?>]" value="<?=$row['ca_stock_qty']?>" class="frm_input" size="6" style="text-align:right"></td>
<td class="td_num"><a href="./itemlist.php?sca=<?=$row['ca_id']?>"><?=$row1['cnt']?></a></td>
<td class="td_mng"><?=$s_add?><br><?=$s_vie?> <?=$s_upd?> <?=$s_del?></td>
</tr>
<? }
if ($i == 0) echo "<tr><td colspan=\"7\" class=\"empty_table\">자료가 한 건도 없습니다.</td></tr>\n";
?>
</tbody>
</table>
// 해당 분류에 속한 상품의 갯수
$sql1 = " select COUNT(*) as cnt from {$g4['yc4_item_table']}
where ca_id = '{$row['ca_id']}'
or ca_id2 = '{$row['ca_id']}'
or ca_id3 = '{$row['ca_id']}' ";
$row1 = sql_fetch($sql1);
<div id="form_to_submit" class="btn_list">
<input type="submit" value="일괄수정">
</div>
$list = $i%2;
echo "
<input type=hidden name='ca_id[$i]' value='{$row['ca_id']}'>
<tr class='list$list center ht'>
<td align=left>{$row['ca_id']}</td>
<td align=left>$s_level <input type=text name='ca_name[$i]' value='".get_text($row['ca_name'])."' title='{$row['ca_id']}' required itemname='분류명' class=ed size=35 $style></td>";
</form>
if ($is_admin == 'super')
echo "<td><input type=text class=ed name='ca_mb_id[$i]' size=10 maxlength=20 value='{$row['ca_mb_id']}'></td>";
else
{
echo "<input type=hidden name='ca_mb_id[$i]' value='{$row['ca_mb_id']}'>";
echo "<td>{$row['ca_mb_id']}</td>";
}
echo "
<td><input type=checkbox name='ca_use[$i]' ".($row['ca_use'] ? "checked" : "")." value='1'></td>
<td><input type=text name='ca_stock_qty[$i]' size=6 style='text-align:right;' class=ed value='{$row['ca_stock_qty']}'></td>
<td><a href='./itemlist.php?sca=$row[ca_id]'><U>{$row1['cnt']}</U></a></td>
<td>$s_upd $s_del $s_vie $s_add</td>
</tr>";
}
if ($i == 0) {
echo "<tr><td colspan=20 height=100 bgcolor='#ffffff' align=center><span class=point>자료가 한건도 없습니다.</span></td></tr>\n";
}
?>
<tr><td colspan=11 height=1 bgcolor=#CCCCCC></td></tr>
</table>
<table width=100%>
<tr>
<td width=50%><input type=submit class=btn1 value='일괄수정'></td>
<td width=50% align=right><?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?></td>
</tr>
</form>
</table>
<?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page=");?>
</section>
<?
include_once (G4_ADMIN_PATH.'/admin.tail.php');

View File

@ -44,30 +44,30 @@ $result = sql_query($sql);
</colgroup>
<thead id="content_head">
<tr>
<th scope="row">ID</th>
<th scope="row">제목</th>
<th scope="col">ID</th>
<th scope="col">제목</th>
<th><a href="./contentform.php"><img src="<?=G4_ADMIN_URL?>/img/icon_insert.gif" alt="내용입력버튼"></a></th>
</tr>
</thead>
<tbody>
<?
for ($i=0; $row=mysql_fetch_array($result); $i++) {
$s_mod = icon("수정", "./contentform.php?w=u&co_id={$row['co_id']}");
$s_del = icon("삭제", "javascript:del('./contentformupdate.php?w=d&co_id={$row['co_id']}')");
$s_vie = icon("보기", G4_SHOP_URL."/content.php?co_id={$row['co_id']}");
<?
for ($i=0; $row=mysql_fetch_array($result); $i++) {
$s_mod = icon("수정", "./contentform.php?w=u&co_id={$row['co_id']}");
$s_del = icon("삭제", "javascript:del('./contentformupdate.php?w=d&co_id={$row['co_id']}')");
$s_vie = icon("보기", G4_SHOP_URL."/content.php?co_id={$row['co_id']}");
$list = $i%2;
echo "
<tr class='list$list ht'>
<td style=\"text-align:center\">{$row['co_id']}</td>
<td>".htmlspecialchars2($row['co_subject'])."</td>
<td>$s_mod $s_del $s_vie</td>
</tr>";
}
if ($i == 0) {
echo "<tr><td colspan=\"3\" align=\"center\" height=\"100\" bgcolor=\"#ffffff\"><span class=\"point\">자료가 한건도 없습니다.</span></td></tr>\n";
}
?>
$list = $i%2;
echo "
<tr class='list$list ht'>
<td style=\"text-align:center\">{$row['co_id']}</td>
<td>".htmlspecialchars2($row['co_subject'])."</td>
<td>$s_mod $s_del $s_vie</td>
</tr>";
}
if ($i == 0) {
echo "<tr><td colspan=\"3\" align=\"center\" height=\"100\" bgcolor=\"#ffffff\"><span class=\"point\">자료가 한건도 없습니다.</span></td></tr>\n";
}
?>
</tbody>
</table>
<div><?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?></div>

View File

@ -37,25 +37,25 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</colgroup>
<tbody>
<tr >
<th scope="col"><label for="dl_company">배송회사명</label></th>
<th scope="row"><label for="dl_company">배송회사명</label></th>
<td>
<input type="text" name="dl_company" value="<? echo stripslashes($dl['dl_company']) ?>" id="dl_company" required class="frm_input">
</td>
</tr>
<tr >
<th scope="col"><label for="dl_url">화물추적 URL</label></th>
<th scope="row"><label for="dl_url">화물추적 URL</label></th>
<td>
<input type="text" class="frm_input" name="dl_url" value="<? echo stripslashes($dl['dl_url']) ?>" id="dl_url" size="120">
</td>
</tr>
<tr >
<th scope="col"><label for="dl_tel">고객센터 전화</label></th>
<th scope="row"><label for="dl_tel">고객센터 전화</label></th>
<td>
<input type="text" class="frm_input" name="dl_tel" value="<? echo stripslashes($dl['dl_tel']) ?>" id="dl_tel">
</td>
</tr>
<tr >
<th scope="col"><label for="dl_order">출력 순서</label></th>
<th scope="row"><label for="dl_order">출력 순서</label></th>
<td>
<?=help("셀렉트박스에서 출력할 때 순서를 정합니다.\n\n숫자가 작을수록 상단에 출력합니다.");?>
<?=order_select("dl_order", $dl['dl_order'])?>

View File

@ -52,7 +52,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<?=help('숫자가 작을수록 FAQ 페이지의 상단에 출력합니다.', 60, -50)?>
</td>
</tr>
<tr>
<tr>
<th scope="col">질문
<? if ($w == 'u') {
echo icon("보기", G4_SHOP_URL."/faq.php?fm_id=$fm_id");
@ -63,7 +63,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<?=editor_html('fa_subject', $fa['fa_subject']);?>
</td>
</tr>
<tr>
<tr>
<th scope="col">답변</th>
<td ><?=editor_html('fa_content', $fa['fa_content']);?></td>
</tr>

View File

@ -46,41 +46,41 @@ $result = sql_query($sql);
</colgroup>
<thead>
<tr>
<th scope="col">ID</th>
<th scope="col">제목</th>
<th scope="col">FAQ수</th>
<th scope="col">상세보기</th>
<th scope="col"><a href='./faqmasterform.php'><img src="<?=G4_ADMIN_URL?>/img/icon_insert.gif" alt="등록"></a></th>
<th scope="row">ID</th>
<th scope="row">제목</th>
<th scope="row">FAQ수</th>
<th scope="row">상세보기</th>
<th scope="row"><a href='./faqmasterform.php'><img src="<?=G4_ADMIN_URL?>/img/icon_insert.gif" alt="등록"></a></th>
</tr>
</thead>
<tbody>
<?
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$sql1 = " select COUNT(*) as cnt from {$g4['yc4_faq_table']} where fm_id = '{$row['fm_id']}' ";
$row1 = sql_fetch($sql1);
$cnt = $row1['cnt'];
<?
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$sql1 = " select COUNT(*) as cnt from {$g4['yc4_faq_table']} where fm_id = '{$row['fm_id']}' ";
$row1 = sql_fetch($sql1);
$cnt = $row1['cnt'];
$s_detail_vie = icon("보기", "./faqlist.php?fm_id={$row['fm_id']}");
$s_detail_vie = icon("보기", "./faqlist.php?fm_id={$row['fm_id']}");
$s_mod = icon("수정", "./faqmasterform.php?w=u&fm_id={$row['fm_id']}");
$s_del = icon("삭제", "javascript:del('./faqmasterformupdate.php?w=d&fm_id={$row['fm_id']}');");
$s_vie = icon("보기", G4_SHOP_URL."/faq.php?fm_id={$row['fm_id']}");
$s_mod = icon("수정", "./faqmasterform.php?w=u&fm_id={$row['fm_id']}");
$s_del = icon("삭제", "javascript:del('./faqmasterformupdate.php?w=d&fm_id={$row['fm_id']}');");
$s_vie = icon("보기", G4_SHOP_URL."/faq.php?fm_id={$row['fm_id']}");
$list = $i%2;
echo "
<tr class='list$list ht'>
<td style=\"text-align:center\">{$row['fm_id']}</td>
<td>" . stripslashes($row['fm_subject']) . "</td>
<td style=\"text-align:center\">$cnt</td>
<td style=\"text-align:center\">$s_detail_vie</td>
<td style=\"text-align:center\">$s_mod $s_del $s_vie</td>
</tr>";
}
$list = $i%2;
echo "
<tr class='list$list ht'>
<td style=\"text-align:center\">{$row['fm_id']}</td>
<td>" . stripslashes($row['fm_subject']) . "</td>
<td style=\"text-align:center\">$cnt</td>
<td style=\"text-align:center\">$s_detail_vie</td>
<td style=\"text-align:center\">$s_mod $s_del $s_vie</td>
</tr>";
}
if ($i == 0)
echo "<tr><td colspan=\"5\" align=\"center\" height=\"100\" bgcolor=#ffffff><span class=\"point\">자료가 한건도 없습니다.</span></td></tr>\n";
?>
if ($i == 0)
echo "<tr><td colspan=\"5\" align=\"center\" height=\"100\" bgcolor=#ffffff><span class=\"point\">자료가 한건도 없습니다.</span></td></tr>\n";
?>
</tbody>
</table>
</section>
@ -90,11 +90,11 @@ $result = sql_query($sql);
<section id="faq_register" class="cbox">
<h2>FAQ 등록하기</h2>
<?=$pg_anchor?>
<ul>
<li>: FAQ는 무제한으로 등록할 수 있습니다</li>
<li>1. 먼저 <img src="<?=G4_ADMIN_URL?>/img/icon_insert.gif" alt="등록">를 눌러 FAQ Master를 생성합니다. (하나의 FAQ 타이틀 생성 : 자주하시는 질문, 이용안내..등 )</li>
<li> 2. 상세보기에 있는 <img src="<?=G4_ADMIN_URL?>/img/icon_viewer.gif" alt="보기">을 눌러 세부 내용으로 들어갑니다.</li>
</ul>
<ul>
<li>: FAQ는 무제한으로 등록할 수 있습니다</li>
<li>1. 먼저 <img src="<?=G4_ADMIN_URL?>/img/icon_insert.gif" alt="등록">를 눌러 FAQ Master를 생성합니다. (하나의 FAQ 타이틀 생성 : 자주하시는 질문, 이용안내..등 )</li>
<li> 2. 상세보기에 있는 <img src="<?=G4_ADMIN_URL?>/img/icon_viewer.gif" alt="보기">을 눌러 세부 내용으로 들어갑니다.</li>
</ul>
</section>

View File

@ -58,43 +58,45 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
echo "&nbsp;&nbsp;&nbsp;";
echo icon("보기", G4_SHOP_URL."/event.php?ev_id={$ev['ev_id']}");
?>
</td>
</tr>
<? } ?>
<tr>
<th scope="col">출력스킨</th>
<th scope="row"><label for="ev_skin">출력스킨</label></th>
<td colspan="3">
<?=help("기본으로 제공하는 스킨은 $cart_dir/list.skin.*.php 입니다.\n\n$cart_dir/list.php&skin=userskin.php 처럼 직접 만든 스킨을 사용할 수도 있습니다.");?>
<select name=ev_skin>
<? echo get_list_skin_options("^list\.skin\.(.*)\.php", G4_SHOP_PATH); ?>
<select name="ev_skin" id="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>
<? } ?>
</td>
</tr>
<tr>
<th scope="col"><label for="ev_img_width">출력이미지 폭</label></th>
<th scope="row"><label for="ev_img_width">출력이미지 폭</label></th>
<td>
<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>
<th scope="row"><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>
</tr>
<tr>
<th scope="col"><label for="ev_list_mod">1라인 이미지수</label></th>
<th scope="row"><label for="ev_list_mod">1라인 이미지수</label></th>
<td>
<?=help("1라인에 설정한 값만큼의 상품을 출력하지만 스킨에 따라 1라인에 하나의 상품만 출력할 수도 있습니다.", 50);?>
<input type="text" name="ev_list_mod" value="<? echo $ev['ev_list_mod'] ?>" id="ev_list_mod" class="frm_input" size="3"> 개
</td>
<th scope="col"><label for="ev_list_row">총라인수</label></th>
<th scope="row"><label for="ev_list_row">총라인수</label></th>
<td>
<?=help("한페이지에 몇라인을 출력할것인지를 설정합니다.\n\n한페이지에서 표시하는 상품수는 (1라인 이미지수 x 총라인수) 입니다.");?>
<input type="text" name="ev_list_row" value="<? echo $ev['ev_list_row'] ?>" id="ev_list_row" class="frm_input" size="3"> 라인
</td>
</tr>
<tr>
<th scope="col"><label for="ev_use">사용</label></th>
<th scope="row"><label for="ev_use">사용</label></th>
<td colspan="3">
<?=help("사용하지 않으면 왼쪽의 이벤트 메뉴와 이벤트리스트 페이지에 접근할 수 없습니다.");?>
<select name="ev_use" id="ev_use">
@ -105,13 +107,13 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</td>
</tr>
<tr>
<th scope="col"><label for="ev_subject">이벤트제목</label></th>
<th scope="row"><label for="ev_subject">이벤트제목</label></th>
<td colspan="3">
<input type="text" name="ev_subject" value="<? echo htmlspecialchars2($ev['ev_subject']) ?>" id="ev_subject" required class="required frm_input" size="60">
</td>
</tr>
<tr>
<th scope="col">메뉴이미지</th>
<th scope="row">메뉴이미지</th>
<td colspan="3">
<?=help("쇼핑몰 왼쪽 메뉴에 텍스트 메뉴 대신 이미지로 넣을 경우 사용합니다.");?>
<input type="file" name="ev_mimg">
@ -126,10 +128,8 @@ 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>
<th scope="row">상단이미지</th>
<td colspan="3">
<?=help("이벤트 페이지 상단에 업로드 한 이미지를 출력합니다.");?>
<input type="file" name="ev_himg">
@ -144,10 +144,8 @@ 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>
<th scope="row">하단이미지</th>
<td colspan="3">
<?=help("이벤트 페이지 하단에 업로드 한 이미지를 출력합니다.");?>
<input type="file" name="ev_timg">
@ -163,18 +161,17 @@ 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">상단내용</th>
<th scope="row">상단내용</th>
<td colspan="3">
<?=editor_html('ev_head_html', $ev['ev_head_html']);?>
</td>
</tr>
<tr>
<th scope="col">하단내용</th>
<th scope="row">하단내용</th>
<td colspan="3">
<?=editor_html('ev_tail_html', $ev['ev_tail_html']);?>
</td>
</tr>
</tbody>
</table>
</section>

View File

@ -122,7 +122,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</colgroup>
<tbody>
<tr>
<th scope="col"><label for="ca_id">분류명</label></th>
<th scope="row"><label for="ca_id">분류명</label></th>
<td colspan="3">
<select name="ca_id" id="ca_id" onchange="categorychange(this.form)">
<option value="">= 기본분류 =</option>
@ -187,7 +187,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</td>
</tr>
<tr>
<th scope="col"><label for="it_id">상품코드</label></th>
<th scope="row"><label for="it_id">상품코드</label></th>
<td colspan="3">
<? if ($w == "") { // 추가 ?>
<!-- 최근에 입력한 코드(자동 생성시)가 목록의 상단에 출력되게 하려면 아래의 코드로 대체하십시오. -->
@ -205,25 +205,25 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</td>
</tr>
<tr>
<th scope="col"><label for="it_name">상품명</label></th>
<th scope="row"><label for="it_name">상품명</label></th>
<td colspan="3">
<input type="text" name="it_name" value="<?=get_text(cut_str($it['it_name'], 250, ""))?>" id="it_name" required class="frm_input required" size="120">
</td>
</tr>
<tr>
<th scope="col"><label for="it_gallery">출력유형</label></th>
<th scope="row"><label for="it_gallery">출력유형</label></th>
<td>
<?=help("금액표시는 하지 않고 상품을 구매할 수 없으며 상품설명만 나타낼때 사용합니다.");?>
<input type="checkbox" name="it_gallery" value="1" id="it_gallery" <?=($it['it_gallery'] ? "checked" : "")?>> 갤러리로 사용
</td>
<th scope="col"><label for="it_order">출력순서</label></th>
<th scope="row"><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 scope="col">상품유형</th>
<th scope="row">상품유형</th>
<td colspan="3">
<?=help("메인화면에 유형별로 출력할때 사용합니다.\n\n이곳에 체크하게되면 상품리스트에서 유형별로 정렬할때 체크된 상품이 가장 먼저 출력됩니다.");?>
<input type="checkbox" name="it_type1" value="1" <?=($it['it_type1'] ? "checked" : "");?> id="it_type1">
@ -239,12 +239,12 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</td>
</tr>
<tr>
<th scope="col"><label for="it_maker">제조사</label></th>
<th scope="row"><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 scope="col"><label for="it_origin">원산지</label></th>
<th scope="row"><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">
@ -310,7 +310,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</td>
</tr>
<tr>
<th scope="col"><label for="it_basic">기본설명</label></th>
<th scope="row"><label for="it_basic">기본설명</label></th>
<td colspan="3">
<?=help("상품상세페이지의 상품설명 상단에 표시되는 설명입니다.\nHTML 입력도 가능합니다.", -150, -100);?>
<input type="text" name="it_basic" value="<?=get_text($it['it_basic'])?>" id="it_basic" class="frm_input" size="120"><!-- width:727px-->
@ -329,7 +329,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
}
?>
<tr>
<th scope="col">요약상품정보</th>
<th scope="row">요약상품정보</th>
<td colspan="3">
<?=help("전자상거래 등에서의 상품 등의 정보제공에 관한 고시에 따라 총 35개 상품군에 대해 상품 특성 등을 양식에 따라 입력할 수 있습니다.");?>
<input type="button" value="상품요약정보 설정" onclick="window.open('./iteminfo.php?it_id=<?=$it['it_id']?>', '_blank', 'width=670 height=800');">
@ -338,23 +338,23 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</tr>
<?}//if?>
<tr>
<th scope="col">상품설명</th>
<th scope="row">상품설명</th>
<td colspan="3"> <?=editor_html('it_explan', $it['it_explan']);?></td>
</tr>
<tr>
<th scope="col"><label for="it_sell_email">판매자 e-mail</label></th>
<th scope="row"><label for="it_sell_email">판매자 e-mail</label></th>
<td colspan="3">
<?=help("운영자와 판매자가 다른 경우 이곳에 판매자의 e-mail을 입력해 놓으면 이 상품이 주문되는 시점에서 판매자에게 별도의 주문서 메일을 발송합니다.");?>
<input type="text" name="it_sell_email" value="<? echo $it['it_sell_email'] ?>" id="it_sell_email" class="frm_input" size="40">
</td>
</tr>
<tr>
<th scope="col"><label for="it_tel_inq">전화문의</label></th>
<th scope="row"><label for="it_tel_inq">전화문의</label></th>
<td>
<?=help("상품 금액 대신 전화문의로 표시됩니다.");?>
<input type="checkbox" name="it_tel_inq" value="1" id="it_tel_inq" <? echo ($it['it_tel_inq']) ? "checked" : ""; ?>> 예
</td>
<th scope="col"><label for="it_use">판매가능</label></th>
<th scope="row"><label for="it_use">판매가능</label></th>
<td>
<?=help("잠시 판매를 중단하거나 재고가 없을 경우에 체크하면 이 상품은 출력하지 않으며 주문도 할 수 없습니다.");?>
<input type="checkbox" name="it_use" value="1" id="it_use" <? echo ($it['it_use']) ? "checked" : ""; ?>> 예
@ -372,8 +372,9 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<col class="grid_3">
<col class="grid_13">
</colgroup>
<tbody>
<tr>
<th scope="col">이미지(대)</th>
<th scope="row">이미지(대)</th>
<td>
<input type="file" name="it_limg1">
<?
@ -395,7 +396,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</td>
</tr>
<tr>
<th scope="col">이미지(중)</th>
<th scope="row">이미지(중)</th>
<td>
<input type="file" name="it_mimg">
<?
@ -410,7 +411,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</td>
</tr>
<tr>
<th scope="col">이미지(소)</th>
<th scope="row">이미지(소)</th>
<td>
<input type="file" name="it_simg">
<?
@ -426,7 +427,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</tr>
<? for ($i=2; $i<=5; $i++) { // 이미지(대)는 5개 ?>
<tr>
<th scope="col">이미지(대)<?=$i?></th>
<th scope="row">이미지(대)<?=$i?></th>
<td>
<input type="file" name="it_limg<?=$i?>">
<?
@ -440,6 +441,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</td>
</tr>
<? } ?>
</tbody>
</table>
</section>
@ -761,14 +763,15 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<col class="grid_3">
<col class="grid_5">
</colgroup>
<tbody>
<tr>
<th scope="col"></th>
<th scope="row"></th>
<td></td>
<th scope="col"></th>
<th scope="row"></th>
<td></td>
</tr>
<tr>
<th scope="col">상단이미지</th>
<th scope="row">상단이미지</th>
<td colspan="3">
<input type="file" name="it_himg">
<?
@ -784,7 +787,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 colspan="3">
<input type="file" name="it_timg">
<?
@ -800,22 +803,23 @@ 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);?>상품상단내용</th>
<th scope="row"><?=help("상품상세설명 페이지 상단에 출력하는 HTML 내용입니다.", -150);?>상품상단내용</th>
<td colspan="3"><?=editor_html('it_head_html', $it['it_head_html']);?></td>
</tr>
<tr>
<th scope="col"><?=help("상품상세설명 페이지 하단에 출력하는 HTML 내용입니다.", -150);?>상품하단내용</th>
<th scope="row"><?=help("상품상세설명 페이지 하단에 출력하는 HTML 내용입니다.", -150);?>상품하단내용</th>
<td colspan="3"><?=editor_html('it_tail_html', $it['it_tail_html']);?></td>
</tr>
<? if ($w == "u") { ?>
<tr>
<th scope="col">입력일시</th>
<th scope="row">입력일시</th>
<td colspan="3">
<?=$it['it_time']?>
<?=help("상품을 처음 입력(등록)한 시간입니다.");?>
</td>
</tr>
<? } ?>
</tbody>
</table>
</section>

View File

@ -42,18 +42,19 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
<col class="grid_3">
<col class="grid_5">
</colgroup>
<tbody>
<tr>
<th scope="col"><label for="nw_disable_hours">시간</label></th>
<th scope="row"><label for="nw_disable_hours">시간</label></th>
<td colspan="3"><input type="text" name="nw_disable_hours" value="<? echo $nw['nw_disable_hours'] ?>" id="nw_disable_hours" required class="frm_input required" size="5"> 시간 동안 다시 띄우지 않음</td>
</tr>
<tr>
<th scope="col"><label for="nw_begin_time">시작일시</label></th>
<th scope="row"><label for="nw_begin_time">시작일시</label></th>
<td>
<input type="text" name="nw_begin_time" value="<? echo $nw['nw_begin_time'] ?>" id="nw_begin_time" required class="frm_input required" size="21" maxlength="19">
<input type="checkbox" name="nw_begin_chk" value="<? echo date("Y-m-d 00:00:00", G4_SERVER_TIME); ?>" id="nw_begin_chk" onclick="if (this.checked == true) this.form.nw_begin_time.value=this.form.nw_begin_chk.value; else this.form.nw_begin_time.value = this.form.nw_begin_time.defaultValue;">
<label for="nw_begin_chk">오늘</label>
</td>
<th scope="col"><label for="nw_end_time">종료일시</label></th>
<th scope="row"><label for="nw_end_time">종료일시</label></th>
<td>
<input type="text" name="nw_end_time" value="<? echo $nw['nw_end_time'] ?>" id="nw_end_time" required class="frm_input requried" size="21" maxlength="19">
<input type="checkbox" name="nw_end_chk" value="<? echo date("Y-m-d 23:59:59", G4_SERVER_TIME+(60*60*24*7)); ?>" id="nw_end_chk" onclick="if (this.checked == true) this.form.nw_end_time.value=this.form.nw_end_chk.value; else this.form.nw_end_time.value = this.form.nw_end_time.defaultValue;">
@ -61,35 +62,36 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</td>
</tr>
<tr>
<th scope="col"><label for="nw_left">창위치 왼쪽</label></th>
<th scope="row"><label for="nw_left">창위치 왼쪽</label></th>
<td>
<input type="text" name="nw_left" value="<? echo $nw['nw_left'] ?>" id="nw_left" required class="frm_input requried" size="5">
</td>
<th scope="col"><label for="nw_top">창위치 위</label></th>
<th scope="row"><label for="nw_top">창위치 위</label></th>
<td>
<input type="text" name="nw_top" value="<? echo $nw['nw_top'] ?>" id="nw_top" required class="frm_input requried" size="5">
</td>
</tr>
<tr>
<th scope="col"><label for="nw_width">창크기 폭</label></th>
<th scope="row"><label for="nw_width">창크기 폭</label></th>
<td>
<input type="text" name="nw_width" value="<? echo $nw['nw_width'] ?>" id="nw_width" required class="frm_input requried" size="5">
</td>
<th scope="col"><label for="nw_height">창크기 높이</label></th>
<th scope="row"><label for="nw_height">창크기 높이</label></th>
<td>
<input type="text" name="nw_height" value="<? echo $nw['nw_height'] ?>" id="nw_height" required class="frm_input requried" size="5">
</td>
</tr>
<tr>
<th scope="col"><label for="nw_subject">창제목</label></th>
<th scope="row"><label for="nw_subject">창제목</label></th>
<td colspan="3">
<input type="text" name="nw_subject" size="80" value="<? echo stripslashes($nw['nw_subject']) ?>" id="nw_subject" required class="frm_input requried">
</td>
</tr>
<tr>
<th scope="col">내용</th>
<th scope="row">내용</th>
<td colspan="3"><?=editor_html('nw_content', $nw['nw_content']);?></td>
</tr>
</tbody>
</table>
</section>
@ -117,7 +119,7 @@ function frmnewwin_check(f)
return true;
}
document.frmnewwin.nw_subject.focus();
// document.frmnewwin.nw_subject.focus();
</script>
<?