php strict 적용

This commit is contained in:
chicpro
2013-04-30 18:22:34 +09:00
parent 2c8e90c973
commit b145b3970e
62 changed files with 1380 additions and 1380 deletions

View File

@ -1,4 +1,4 @@
<?
<?php
$sub_menu = '400300';
include_once('./_common.php');
include_once(G4_CKEDITOR_PATH.'/ckeditor.lib.php');
@ -135,24 +135,24 @@ $pg_anchor ='<ul class="anchor">
<form name="fitemform" action="./itemformupdate.php" method="post" enctype="MULTIPART/FORM-DATA" autocomplete="off" onsubmit="return fitemformcheck(this)">
<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?>">
<input type="hidden" name="codedup" value="<?php echo $default['de_code_dup_use']; ?>">
<input type="hidden" name="w" value="<?php echo $w; ?>">
<!-- <input type="hidden" name="sel_ca_id" value="<?php echo $sel_ca_id; ?>">
<input type="hidden" name="sel_field" value="<?php echo $sel_field; ?>">
<input type="hidden" name="search" value="<?php echo $search; ?>">
<input type="hidden" name="sort1" value="<?php echo $sort1; ?>">
<input type="hidden" name="sort2" value="<?php echo $sort2; ?>"> -->
<input type="hidden" name="sca" value="<?php echo $sca; ?>">
<input type="hidden" name="sst" value="<?php echo $sst; ?>">
<input type="hidden" name="sod" value="<?php echo $sod; ?>">
<input type="hidden" name="sfl" value="<?php echo $sfl; ?>">
<input type="hidden" name="stx" value="<?php echo $stx; ?>">
<input type="hidden" name="page" value="<?php echo $page; ?>">
<input type="hidden" name="it_explan_html" value="1"><!---->
<section id="anc_sitfrm_cate" class="cbox">
<h2>상품분류</h2>
<?=$pg_anchor?>
<?php echo $pg_anchor; ?>
<p>기본분류는 반드시 선택하셔야 합니다. 하나의 상품에 최대 3개의 다른 분류를 지정할 수 있습니다.</p>
<table class="frm_tbl">
@ -161,14 +161,14 @@ $pg_anchor ='<ul class="anchor">
<col>
</colgroup>
<tbody>
<? // ##### // 웹 접근성 취약 지점 시작 - 지운아빠 2013-04-19 ?>
<?php // ##### // 웹 접근성 취약 지점 시작 - 지운아빠 2013-04-19 ?>
<tr>
<th scope="row"><label for="ca_id">기본분류</label></th>
<td>
<? if ($w == "") echo help("기본분류를 선택하면, 판매/재고/HTML사용/판매자 E-mail 등을, 선택한 분류의 기본값으로 설정합니다."); ?>
<?php if ($w == "") echo help("기본분류를 선택하면, 판매/재고/HTML사용/판매자 E-mail 등을, 선택한 분류의 기본값으로 설정합니다."); ?>
<select name="ca_id" id="ca_id" onchange="categorychange(this.form)">
<option value="">선택하세요</option>
<?=conv_selected_option($category_select, $it['ca_id'])?>
<?php echo conv_selected_option($category_select, $it['ca_id']); ?>
</select>
<script>
var ca_use = new Array();
@ -181,30 +181,30 @@ $pg_anchor ='<ul class="anchor">
var ca_opt4_subject = new Array();
var ca_opt5_subject = new Array();
var ca_opt6_subject = new Array();
<?="\n$script"?>
<?php echo "\n$script"; ?>
</script>
</td>
</tr>
<? for ($i=2; $i<=3; $i++) { ?>
<?php for ($i=2; $i<=3; $i++) { ?>
<tr>
<th scope="row"><label for="ca_id<?=$i?>"><?=$i?>차 분류</label></th>
<th scope="row"><label for="ca_id<?php echo $i; ?>"><?php echo $i; ?>차 분류</label></th>
<td>
<?=help($i.'차 분류는 기본 분류의 하위 분류 개념이 아니므로 기본 분류 선택시 해당 상품이 포함될 최하위 분류만 선택하시면 됩니다.')?>
<select name="ca_id<?=$i?>" id="ca_id<?=$i?>">
<?php echo help($i.'차 분류는 기본 분류의 하위 분류 개념이 아니므로 기본 분류 선택시 해당 상품이 포함될 최하위 분류만 선택하시면 됩니다.'); ?>
<select name="ca_id<?php echo $i; ?>" id="ca_id<?php echo $i; ?>">
<option value="">선택하세요</option>
<?=conv_selected_option($category_select, $it['ca_id'.$i]);?>
<?php echo conv_selected_option($category_select, $it['ca_id'.$i]); ?>
</select>
</td>
</tr>
<? } ?>
<? // ##### // 웹 접근성 취약 지점 끝 ?>
<?php } ?>
<?php // ##### // 웹 접근성 취약 지점 끝 ?>
</tbody>
</table>
</section>
<section id="anc_sitfrm_ini" class="cbox">
<h2>기본정보</h2>
<?=$pg_anchor?>
<?php echo $pg_anchor; ?>
<table class="frm_tbl">
<colgroup>
<col class="grid_3">
@ -214,72 +214,72 @@ $pg_anchor ='<ul class="anchor">
<tr>
<th scope="row">상품코드</th>
<td>
<? if ($w == '') { // 추가 ?>
<?php 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> -->
<?=help("상품의 코드는 10자리 숫자로 자동생성합니다. <b>직접 상품코드를 입력할 수도 있습니다.</b>\n상품코드는 영문자와 숫자만 입력 가능합니다.");?>
<input type="text" name="it_id" value="<?=time()?>" id="it_id" required class="frm_input 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"></a><? } ?>
<? } else { ?>
<input type="hidden" name="it_id" value="<?=$it['it_id']?>">
<span class="frm_ca_id"><?=$it['it_id']?></span>
<a href="<?=G4_SHOP_URL?>/item.php?it_id=<?=$it_id?>" class="btn_frmline">상품확인</a>
<a href="<?=G4_ADMIN_URL?>/shop_admin/itempslist.php?sel_field=a.it_id&amp;search=<?=$it_id?>" class="btn_frmline">사용후기</a>
<a href="<?=G4_ADMIN_URL?>/shop_admin/itemqalist.php?sel_field=a.it_id&amp;search=<?=$it_id?>" class="btn_frmline">상품문의</a>
<? } ?>
<!-- <input type=text class=required name=it_id value="<?php echo 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> -->
<?php echo help("상품의 코드는 10자리 숫자로 자동생성합니다. <b>직접 상품코드를 입력할 수도 있습니다.</b>\n상품코드는 영문자와 숫자만 입력 가능합니다."); ?>
<input type="text" name="it_id" value="<?php echo time(); ?>" id="it_id" required class="frm_input required" size="12" maxlength="10">
<?php if ($default['de_code_dup_use']) { ?><a href='javascript:;' onclick="codedupcheck(document.all.it_id.value)"><img src="<?php echo G4_ADMIN_URL; ?>/img/btn_code.gif"></a><?php } ?>
<?php } else { ?>
<input type="hidden" name="it_id" value="<?php echo $it['it_id']; ?>">
<span class="frm_ca_id"><?php echo $it['it_id']; ?></span>
<a href="<?php echo G4_SHOP_URL; ?>/item.php?it_id=<?php echo $it_id; ?>" class="btn_frmline">상품확인</a>
<a href="<?php echo G4_ADMIN_URL; ?>/shop_admin/itempslist.php?sel_field=a.it_id&amp;search=<?php echo $it_id; ?>" class="btn_frmline">사용후기</a>
<a href="<?php echo G4_ADMIN_URL; ?>/shop_admin/itemqalist.php?sel_field=a.it_id&amp;search=<?php echo $it_id; ?>" class="btn_frmline">상품문의</a>
<?php } ?>
</td>
</tr>
<tr>
<th scope="row"><label for="it_name">상품명</label></th>
<td>
<input type="text" name="it_name" value="<?=get_text(cut_str($it['it_name'], 250, ""))?>" id="it_name" required class="frm_input required" size="95">
<input type="text" name="it_name" value="<?php echo get_text(cut_str($it['it_name'], 250, "")); ?>" id="it_name" required class="frm_input required" size="95">
</td>
</tr>
<tr>
<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" : "")?>>
<?php echo help("이 항목을 체크하면 상품을 전시만 하고, 판매하지 않습니다."); ?>
<input type="checkbox" name="it_gallery" value="1" id="it_gallery" <?php echo ($it['it_gallery'] ? "checked" : ""); ?>>
</td>
</tr>
<tr>
<th scope="row"><label for="it_order">출력순서</label></th>
<td>
<?=help("숫자가 작을 수록 상위에 출력됩니다. 음수 입력도 가능하며 입력 가능 범위는 -2147483648 부터 2147483647 까지입니다.\n<b>입력하지 않으면 자동으로 출력됩니다.</b>");?>
<input type="text" name="it_order" value="<? echo $it['it_order'] ?>" id="it_order" class="frm_input" size="12">
<?php echo help("숫자가 작을 수록 상위에 출력됩니다. 음수 입력도 가능하며 입력 가능 범위는 -2147483648 부터 2147483647 까지입니다.\n<b>입력하지 않으면 자동으로 출력됩니다.</b>"); ?>
<input type="text" name="it_order" value="<?php echo $it['it_order']; ?>" id="it_order" class="frm_input" size="12">
</td>
</tr>
<tr>
<th scope="row">상품유형</th>
<td>
<?=help("메인화면에 유형별로 출력할때 사용합니다.\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="DC상품"></label>
<?php echo help("메인화면에 유형별로 출력할때 사용합니다.\n이곳에 체크하게되면 상품리스트에서 유형별로 정렬할때 체크된 상품이 가장 먼저 출력됩니다."); ?>
<input type="checkbox" name="it_type1" value="1" <?php echo ($it['it_type1'] ? "checked" : ""); ?> id="it_type1">
<label for="it_type1"><img src="<?php echo G4_SHOP_URL; ?>/img/icon_type1.gif" alt="HIT상품"></label>
<input type="checkbox" name="it_type2" value="1" <?php echo ($it['it_type2'] ? "checked" : ""); ?> id="it_type2">
<label for="it_type2"><img src="<?php echo G4_SHOP_URL; ?>/img/icon_type2.gif" alt="추천상품"></label>
<input type="checkbox" name="it_type3" value="1" <?php echo ($it['it_type3'] ? "checked" : ""); ?> id="it_type3">
<label for="it_type3"><img src="<?php echo G4_SHOP_URL; ?>/img/icon_type3.gif" alt="NEW상품"></label>
<input type="checkbox" name="it_type4" value="1" <?php echo ($it['it_type4'] ? "checked" : ""); ?> id="it_type4">
<label for="it_type4"><img src="<?php echo G4_SHOP_URL; ?>/img/icon_type4.gif" alt="인기상품"></label>
<input type="checkbox" name="it_type5" value="1" <?php echo ($it['it_type5'] ? "checked" : ""); ?> id="it_type5">
<label for="it_type5"><img src="<?php echo G4_SHOP_URL; ?>/img/icon_type5.gif" alt="DC상품"></label>
</td>
</tr>
<tr>
<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="40">
<?php echo help("입력하지 않으면 상품상세페이지에 출력하지 않습니다."); ?>
<input type="text" name="it_maker" value="<?php echo get_text($it['it_maker']); ?>" id="it_maker" class="frm_input" size="40">
</td>
</tr>
<tr>
<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="40">
<?php echo help("입력하지 않으면 상품상세페이지에 출력하지 않습니다."); ?>
<input type="text" name="it_origin" value="<?php echo get_text($it['it_origin']); ?>" id="it_origin" class="frm_input" size="40">
</td>
</tr>
<?
<?php
for ($i=1; $i<=3; $i++) {
$k1=$i*2-1;
$k2=$i*2;
@ -290,76 +290,76 @@ $pg_anchor ='<ul class="anchor">
?>
<tr>
<th scope="row">
<label for="it_opt<?=$k1?>_subject">상품옵션명 <?=$k1?></label><br>
<input type="text" name="it_opt<?=$k1?>_subject" value="<?=get_text($val11)?>" id="it_opt<?=$k1?>_subject" class="frm_input" size="15">
<label for="it_opt<?php echo $k1; ?>_subject">상품옵션명 <?php echo $k1; ?></label><br>
<input type="text" name="it_opt<?php echo $k1; ?>_subject" value="<?php echo get_text($val11); ?>" id="it_opt<?php echo $k1; ?>_subject" class="frm_input" size="15">
</th>
<td>
<label for="it_opt<?=$k1?>" class="sound_only">상품옵션설정 <?=$k1?></label>
<textarea name="it_opt<?=$k1?>" id="it_opt<?=$k1?>" class="sit_w_opt"><?=$val12?></textarea>
<label for="it_opt<?php echo $k1; ?>" class="sound_only">상품옵션설정 <?php echo $k1; ?></label>
<textarea name="it_opt<?php echo $k1; ?>" id="it_opt<?php echo $k1; ?>" class="sit_w_opt"><?php echo $val12; ?></textarea>
</td>
</tr>
<tr>
<th scope="row">
<label for="it_opt<?=$k2?>_subject">상품옵션명 <?=$k2?></label><br>
<input type="text" name="it_opt<?=$k2?>_subject" value="<?=get_text($val21)?>" id="it_opt<?=$k2?>_subject" class="frm_input" size="15">
<label for="it_opt<?php echo $k2; ?>_subject">상품옵션명 <?php echo $k2; ?></label><br>
<input type="text" name="it_opt<?php echo $k2; ?>_subject" value="<?php echo get_text($val21); ?>" id="it_opt<?php echo $k2; ?>_subject" class="frm_input" size="15">
</th>
<td>
<label for="it_opt<?=$k1?>" class="sound_only">상품옵션설정 <?=$k2?></label>
<textarea name="it_opt<?=$k2?>" id="it_opt<?=$k2?>" class="sit_w_opt"><?=$val22?></textarea>
<label for="it_opt<?php echo $k1; ?>" class="sound_only">상품옵션설정 <?php echo $k2; ?></label>
<textarea name="it_opt<?php echo $k2; ?>" id="it_opt<?php echo $k2; ?>" class="sit_w_opt"><?php echo $val22; ?></textarea>
</td>
</tr>
<? } ?>
<?php } ?>
<tr>
<th scope="row"><label for="it_amount">비회원가격</label></th>
<td>
<?=help("상품의 기본판매가격(로그인 이전 가격)이며 옵션별로 상품가격이 틀리다면 합산하여 상품상세페이지에 출력합니다.");?>
<input type="text" name="it_amount" value="<?=$it['it_amount']?>" id="it_amount" class="frm_input" size="8"> 원
<?php echo help("상품의 기본판매가격(로그인 이전 가격)이며 옵션별로 상품가격이 틀리다면 합산하여 상품상세페이지에 출력합니다."); ?>
<input type="text" name="it_amount" value="<?php echo $it['it_amount']; ?>" id="it_amount" class="frm_input" size="8"> 원
</td>
</tr>
<tr>
<th scope="row"><label for="it_amount2">회원가격</label></th>
<td>
<?=help("상품의 로그인 이후 가격(회원 권한 2 에만 적용)되며 옵션별로 상품가격이 틀리다면 합산하여 상품상세페이지에 출력합니다.\n<strong>입력이 없다면 비회원가격으로 대신합니다.</strong>");?>
<input type="text" name="it_amount2" value="<?=$it['it_amount2']?>" id="it_amount2" class="frm_input" size="8"> 원
<?php echo help("상품의 로그인 이후 가격(회원 권한 2 에만 적용)되며 옵션별로 상품가격이 틀리다면 합산하여 상품상세페이지에 출력합니다.\n<strong>입력이 없다면 비회원가격으로 대신합니다.</strong>"); ?>
<input type="text" name="it_amount2" value="<?php echo $it['it_amount2']; ?>" id="it_amount2" class="frm_input" size="8"> 원
</td>
</tr>
<tr>
<th scope="row"><label for="it_amount3">특별회원가격</label></th>
<td>
<?=help("상품의 로그인 이후 가격(회원 권한 3 이상에 적용)이며 옵션별로 상품가격이 틀리다면 합산하여 상품상세페이지에 출력합니다.\n<strong>입력이 없다면 회원가격으로 대신합니다. 회원가격도 없다면 비회원가격으로 대신합니다.</strong>");?>
<input type="text" name="it_amount3" value="<?=$it['it_amount3']?>" id="it_amount3" class="frm_input" size="8"> 원
<?php echo help("상품의 로그인 이후 가격(회원 권한 3 이상에 적용)이며 옵션별로 상품가격이 틀리다면 합산하여 상품상세페이지에 출력합니다.\n<strong>입력이 없다면 회원가격으로 대신합니다. 회원가격도 없다면 비회원가격으로 대신합니다.</strong>"); ?>
<input type="text" name="it_amount3" value="<?php echo $it['it_amount3']; ?>" id="it_amount3" class="frm_input" size="8"> 원
</td>
</tr>
<tr>
<th scope="row"><label for="it_cust_amount">시중가격</label></th>
<td>
<?=help("입력하지 않으면 상품상세페이지에 출력하지 않습니다.");?>
<input type="text" name="it_cust_amount" value="<?=$it['it_cust_amount']?>" id="it_cust_amount" class="frm_input" size="8"> 원
<?php echo help("입력하지 않으면 상품상세페이지에 출력하지 않습니다."); ?>
<input type="text" name="it_cust_amount" value="<?php echo $it['it_cust_amount']; ?>" id="it_cust_amount" class="frm_input" size="8"> 원
</td>
</tr>
<tr>
<th scope="row"><label for="it_point">포인트</label></th>
<td>
<?=help("주문완료후 환경설정에서 설정한 주문완료 설정일 후 회원에게 부여하는 포인트입니다.\n또, 포인트부여를 '아니오'로 설정한 경우 신용카드, 계좌이체로 주문하는 회원께는 부여하지 않습니다.\n포인트 기능을 사용해야 동작합니다.");?>
<input type="text" name="it_point" value="<? echo $it['it_point'] ?>" id="it_point" class="frm_input" size="8"> 점
<?php echo help("주문완료후 환경설정에서 설정한 주문완료 설정일 후 회원에게 부여하는 포인트입니다.\n또, 포인트부여를 '아니오'로 설정한 경우 신용카드, 계좌이체로 주문하는 회원께는 부여하지 않습니다.\n포인트 기능을 사용해야 동작합니다."); ?>
<input type="text" name="it_point" value="<?php echo $it['it_point']; ?>" id="it_point" class="frm_input" size="8"> 점
</td>
</tr>
<tr>
<th scope="row"><label for="it_stock_qty">재고수량</label></th>
<td>
<?=help("<b>주문관리에서 상품별 상태 변경에 따라 자동으로 재고를 가감합니다.</b> 재고는 규격/색상별이 아닌, 상품별로만 관리됩니다.");?>
<input type="text" name="it_stock_qty" value="<? echo $it['it_stock_qty'] ?>" id="it_stock_qty" class="frm_input" size="8"> 개</span>
<?php echo help("<b>주문관리에서 상품별 상태 변경에 따라 자동으로 재고를 가감합니다.</b> 재고는 규격/색상별이 아닌, 상품별로만 관리됩니다."); ?>
<input type="text" name="it_stock_qty" value="<?php echo $it['it_stock_qty']; ?>" id="it_stock_qty" class="frm_input" size="8"> 개</span>
</td>
</tr>
<tr>
<th scope="row"><label for="it_basic">기본설명</label></th>
<td>
<?=help("상품상세페이지의 상품설명 상단에 표시되는 설명입니다. HTML 입력도 가능합니다.");?>
<input type="text" name="it_basic" value="<?=get_text($it['it_basic'])?>" id="it_basic" class="frm_input" size="90">
<?php echo help("상품상세페이지의 상품설명 상단에 표시되는 설명입니다. HTML 입력도 가능합니다."); ?>
<input type="text" name="it_basic" value="<?php echo get_text($it['it_basic']); ?>" id="it_basic" class="frm_input" size="90">
</td>
</tr>
<? if ($it['it_id']) { ?>
<?
<?php if ($it['it_id']) { ?>
<?php
$sql = " select distinct ii_gubun from {$g4['shop_item_info_table']} where it_id = '$it_id' group by ii_gubun ";
$ii = sql_fetch($sql, false);
if ($ii) {
@ -373,35 +373,35 @@ $pg_anchor ='<ul class="anchor">
<tr>
<th scope="row">요약상품정보</th>
<td>
<?=help("<strong>전자상거래 등에서의 상품 등의 정보제공에 관한 고시</strong>에 따라 총 35개 상품군에 대해 상품 특성 등을 양식에 따라 입력할 수 있습니다.");?>
<button type="button" class="btn_frmline" onclick="window.open('./iteminfo.php?it_id=<?=$it['it_id']?>', '_blank', 'width=670 height=800 scrollbars=yes');">상품요약정보 설정</button>
<span id="item_info_gubun"><?=$item_info_gubun?></span>
<?php echo help("<strong>전자상거래 등에서의 상품 등의 정보제공에 관한 고시</strong>에 따라 총 35개 상품군에 대해 상품 특성 등을 양식에 따라 입력할 수 있습니다."); ?>
<button type="button" class="btn_frmline" onclick="window.open('./iteminfo.php?it_id=<?php echo $it['it_id']; ?>', '_blank', 'width=670 height=800 scrollbars=yes');">상품요약정보 설정</button>
<span id="item_info_gubun"><?php echo $item_info_gubun; ?></span>
</td>
</tr>
<?}//if?>
<?php } //if?>
<tr>
<th scope="row">상품설명</th>
<td> <?=editor_html('it_explan', $it['it_explan']);?></td>
<td> <?php echo editor_html('it_explan', $it['it_explan']); ?></td>
</tr>
<tr>
<th scope="row"><label for="it_sell_email">판매자 e-mail</label></th>
<td>
<?=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">
<?php echo help("운영자와 실제 판매자가 다른 경우 실제 판매자의 e-mail을 입력하면, 상품 주문 시점을 기준으로 실제 판매자에게도 주문서를 발송합니다."); ?>
<input type="text" name="it_sell_email" value="<?php echo $it['it_sell_email']; ?>" id="it_sell_email" class="frm_input" size="40">
</td>
</tr>
<tr>
<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" : ""; ?>> 예
<?php echo help("상품 금액 대신 전화문의로 표시됩니다."); ?>
<input type="checkbox" name="it_tel_inq" value="1" id="it_tel_inq" <?php echo ($it['it_tel_inq']) ? "checked" : ""; ?>> 예
</td>
</tr>
<tr>
<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" : ""; ?>> 예
<?php echo help("잠시 판매를 중단하거나 재고가 없을 경우에 체크를 해제해 놓으면 출력되지 않으며, 주문도 받지 않습니다."); ?>
<input type="checkbox" name="it_use" value="1" id="it_use" <?php echo ($it['it_use']) ? "checked" : ""; ?>> 예
</td>
</tr>
</tbody>
@ -410,7 +410,7 @@ $pg_anchor ='<ul class="anchor">
<section id="anc_sitfrm_img" class="cbox">
<h2>이미지</h2>
<?=$pg_anchor?>
<?php echo $pg_anchor; ?>
<p>이미지 자동생성 기능을 이용하시면, 이미지(대) 1장만 업로드 해서 자동으로 이미지(중), 이미지(소) 를 생성할 수 있습니다.</p>
<table class="frm_tbl">
@ -419,20 +419,20 @@ $pg_anchor ='<ul class="anchor">
<col>
</colgroup>
<tbody>
<? if (function_exists("imagecreatefromjpeg")) { ?>
<?php if (function_exists("imagecreatefromjpeg")) { ?>
<tr>
<th scope="row"><label for="createimage">이미지 자동생성</label></th>
<td>
<?=help("<strong>JPG 파일만 가능합니다.</strong> 이미지(대) 를 기준으로 이미지(중)과 이미지(소) 의 사이즈를 환경설정에서 정한 폭과 높이로 자동생성합니다.");?>
<?php echo help("<strong>JPG 파일만 가능합니다.</strong> 이미지(대) 를 기준으로 이미지(중)과 이미지(소) 의 사이즈를 환경설정에서 정한 폭과 높이로 자동생성합니다.");?>
<input type="checkbox" name="createimage" value="1" id="createimage"> 사용
</td>
</tr>
<? } ?>
<?php } ?>
<tr>
<th scope="row"><label for="it_limg1">이미지(대)</label></th>
<td>
<input type="file" name="it_limg1" id="it_limg1">
<?
<?php
$limg1 = G4_DATA_PATH.'/item/'.$it['it_id'].'_l1';
if (file_exists($limg1)) {
$size = getimagesize($limg1);
@ -441,21 +441,21 @@ $pg_anchor ='<ul class="anchor">
<input type="checkbox" name="it_limg1_del" value="1">
<span class="sit_wimg_limg1"></span>
<div id="limg1" class="banner_or_img">
<img src="<?=G4_DATA_URL?>/item/<?=$it['it_id']?>_l1" alt="" width="<?=$size[0]?>" height="<?=$size[1]?>">
<img src="<?php echo G4_DATA_URL; ?>/item/<?php echo $it['it_id']; ?>_l1" alt="" width="<?php echo $size[0]; ?>" height="<?php echo $size[1]; ?>">
<button type="button" class="sit_wimg_close">닫기</button>
</div>
<script>
$('<button type="button" id="it_limg1_view" class="btn_frmline sit_wimg_view">이미지(대) 확인</button>').appendTo('.sit_wimg_limg1');
</script>
<? } ?>
<?php } ?>
</td>
</tr>
<tr>
<th scope="row"><label for="it_mimg">이미지(중)</label></th>
<td>
<?=help("이미지 자동생성 기능을 사용하지 않거나, 이미지를 업로드 하지 않으면 기본 noimage 로 출력합니다.");?>
<?php echo help("이미지 자동생성 기능을 사용하지 않거나, 이미지를 업로드 하지 않으면 기본 noimage 로 출력합니다."); ?>
<input type="file" name="it_mimg" id="it_mimg">
<?
<?php
$mimg = G4_DATA_PATH.'/item/'.$it['it_id'].'_m';
if (file_exists($mimg)) {
$size = getimagesize($mimg);
@ -464,21 +464,21 @@ $pg_anchor ='<ul class="anchor">
<input type="checkbox" name="it_mimg_del" value="1" id="it_mimg_del">
<span class="sit_wimg_mimg"></span>
<div id="mimg" class="banner_or_img">
<img src="<?=G4_DATA_URL?>/item/<?=$it['it_id']?>_m" alt="" width="<?=$size[0]?>" height="<?=$size[1]?>">
<img src="<?php echo G4_DATA_URL; ?>/item/<?php echo $it['it_id']; ?>_m" alt="" width="<?php echo $size[0]; ?>" height="<?php echo $size[1]; ?>">
<button type="button" class="sit_wimg_close">닫기</button>
</div>
<script>
$('<button type="button" id="it_mimg_view" class="btn_frmline sit_wimg_view">이미지(중) 확인</button>').appendTo('.sit_wimg_mimg');
</script>
<? } ?>
<?php } ?>
</td>
</tr>
<tr>
<th scope="row"><label for="it_simg">이미지(소)</label></th>
<td>
<?=help("이미지 자동생성 기능을 사용하지 않거나, 이미지를 업로드 하지 않으면 기본 noimage 로 출력합니다.");?>
<?php echo help("이미지 자동생성 기능을 사용하지 않거나, 이미지를 업로드 하지 않으면 기본 noimage 로 출력합니다."); ?>
<input type="file" name="it_simg" id="it_simg">
<?
<?php
$simg = G4_DATA_PATH.'/item/'.$it['it_id'].'_s';
if (file_exists($simg)) {
$size = getimagesize($simg);
@ -487,43 +487,43 @@ $pg_anchor ='<ul class="anchor">
<input type="checkbox" name="it_simg_del" value="1" id="it_simg_del">
<span class="sit_wimg_simg"></span>
<div id="simg" class="banner_or_img">
<img src="<?=G4_DATA_URL?>/item/<?=$it['it_id']?>_s" alt="" width="<?=$size[0]?>" height="<?=$size[1]?>">
<img src="<?php echo G4_DATA_URL; ?>/item/<?php echo $it['it_id']; ?>_s" alt="" width="<?php echo $size[0]; ?>" height="<?php echo $size[1]; ?>">
<button type="button" class="sit_wimg_close">닫기</button>
</div>
<script>
$('<button type="button" id="it_simg_view" class="btn_frmline sit_wimg_view">이미지(소) 확인</button>').appendTo('.sit_wimg_simg');
</script>
<? } ?>
<?php } ?>
</td>
</tr>
<? for ($i=2; $i<=5; $i++) { // 이미지(대)는 5개 ?>
<?php for ($i=2; $i<=5; $i++) { // 이미지(대)는 5개 ?>
<tr>
<th scope="row"><label for="it_limg<?=$i?>">이미지(대)<?=$i?></label></th>
<th scope="row"><label for="it_limg<?php echo $i; ?>">이미지(대)<?php echo $i; ?></label></th>
<td>
<input type="file" name="it_limg<?=$i?>" id="it_limg<?=$i?>">
<?
<input type="file" name="it_limg<?php echo $i; ?>" id="it_limg<?php echo $i; ?>">
<?php
$limg = G4_DATA_PATH.'/item/'.$it['it_id'].'_l'.$i;
if (file_exists($limg)) {
$size = getimagesize($limg);
?>
<label for="it_limg<?=$i?>_del"><span class="sound_only">이미지(대)<?=$i?> </span>파일삭제</label>
<input type="checkbox" name="it_limg<?=$i?>_del" value="1" id="it_limg<?=$i?>_del">
<span class="sit_wimg_limg<?=$i?>"></span>
<div id="limg<?=$i?>" class="banner_or_img">
<img src="<?=G4_DATA_URL?>/item/<?=$it['it_id']?>_l<?=$i?>">
<label for="it_limg<?php echo $i; ?>_del"><span class="sound_only">이미지(대)<?php echo $i; ?> </span>파일삭제</label>
<input type="checkbox" name="it_limg<?php echo $i; ?>_del" value="1" id="it_limg<?php echo $i; ?>_del">
<span class="sit_wimg_limg<?php echo $i; ?>"></span>
<div id="limg<?php echo $i; ?>" class="banner_or_img">
<img src="<?php echo G4_DATA_URL; ?>/item/<?php echo $it['it_id']; ?>_l<?php echo $i; ?>">
<button type="button" class="sit_wimg_close">닫기</button>
</div>
<? } ?>
<?php } ?>
<script>
$('<button type="button" id="it_limg<?=$i?>_view" class="btn_frmline sit_wimg_view">이미지(대)<?=$i?> 확인</button>').appendTo('.sit_wimg_limg<?=$i?>');
$('<button type="button" id="it_limg<?php echo $i; ?>_view" class="btn_frmline sit_wimg_view">이미지(대)<?php echo $i; ?> 확인</button>').appendTo('.sit_wimg_limg<?php echo $i; ?>');
</script>
</td>
</tr>
<? } ?>
<?php } ?>
</tbody>
</table>
<? if (file_exists($limg1) || file_exists($mimg) || file_exists($simg)) { ?>
<?php if (file_exists($limg1) || file_exists($mimg) || file_exists($simg)) { ?>
<script>
$(".banner_or_img").addClass("sit_wimg");
$(function() {
@ -560,18 +560,18 @@ $pg_anchor ='<ul class="anchor">
});
});
</script>
<? } ?>
<?php } ?>
</section>
<div class="btn_confirm">
<input type="submit" value="확인" class="btn_submit" accesskey="s">
<a href="./itemlist.php?<?=$qstr?>">목록</a>
<a href="./itemlist.php?<?php echo $qstr; ?>">목록</a>
</div>
<section id="anc_sitfrm_relation" class="cbox compare_wrap">
<h2>관련상품</h2>
<?=$pg_anchor?>
<?php echo $pg_anchor; ?>
<p>
등록된 전체상품 목록에서 상품분류를 선택하면 해당 상품 리스트가 연이어 나타납니다.<br>
@ -586,7 +586,7 @@ $pg_anchor ='<ul class="anchor">
<span class="sit_relation_selwrap">
<select id="sch_relation" onchange="search_relation(this)">
<option value=''>분류별 관련상품</option>
<?
<?php
$sql = " select ca_id, ca_name from {$g4['shop_category_table']} where length(ca_id) = 2 order by ca_id ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
@ -596,7 +596,7 @@ $pg_anchor ='<ul class="anchor">
</select>
</span>
<select id="relation" class="sit_relation_list" size="8" onclick="relation_img(this.value, 'add_span')" ondblclick="relation_add(this);" onkeyup="relation_add(this);">
<?
<?php
/*
$sql = " select ca_id, it_id, it_name, it_amount
from $g4[shop_item_table]
@ -628,7 +628,7 @@ $pg_anchor ='<ul class="anchor">
if (fld.value) {
$.post(
'./itemformrelation.php',
{ it_id: '<?=$it_id?>', ca_id: fld.value },
{ it_id: '<?php echo $it_id; ?>', ca_id: fld.value },
function(data) {
$("#relation").html(data);
}
@ -646,13 +646,13 @@ $pg_anchor ='<ul class="anchor">
temp = name.split("/");
if(temp[1] == ''){
temp[1] = "no_image.gif";
item_image_url = "<?=G4_SHOP_URL?>/img";
item_image_url = "<?php echo G4_SHOP_URL; ?>/img";
} else {
item_image_url = "<?=G4_DATA_URL?>/item";
item_image_url = "<?php echo G4_DATA_URL; ?>/item";
}
view_span = document.getElementById(id);
item_price = number_format(String(temp[2]));
view_span.innerHTML = "<a href=\"<?=G4_SHOP_URL?>/item.php?it_id="+temp[0]+"\" target=\"_blank\"><img src=\""+item_image_url+"/"+temp[1]+"\"width=\"100\" height=\"80\" border=\"1\" style=\"border-color:#333333;\" title=\"상품 새창으로 보기\"></a><br>"+item_price+" 원";
view_span.innerHTML = "<a href=\"<?php echo G4_SHOP_URL; ?>/item.php?it_id="+temp[0]+"\" target=\"_blank\"><img src=\""+item_image_url+"/"+temp[1]+"\"width=\"100\" height=\"80\" border=\"1\" style=\"border-color:#333333;\" title=\"상품 새창으로 보기\"></a><br>"+item_price+" 원";
}
function relation_add(fld)
@ -731,7 +731,7 @@ $pg_anchor ='<ul class="anchor">
<h3>선택된 관련상품 목록</h3>
<span class="sit_relation_selwrap"></span>
<select name="relationselect" size="8" class="sit_relation_selected" onclick="relation_img(this.value, 'sel_span')" ondblclick="relation_del(this);" onkeyup="relation_del(this);">
<?
<?php
$str = array();
$sql = " select b.ca_id, b.it_id, b.it_name, b.it_amount
from {$g4['shop_item_relation_table']} a
@ -750,8 +750,8 @@ $pg_anchor ='<ul class="anchor">
else
$it_image = "";
?>
<option value="<?=$row['it_id']?>/<?=$it_image?>/<?=$row['it_amount']?>"><?=$row2['ca_name']?> : <?=cut_str(get_text(strip_tags($row['it_name'])),30)?></option>
<?
<option value="<?php echo $row['it_id']; ?>/<?php echo $it_image; ?>/<?php echo $row['it_amount']; ?>"><?php echo $row2['ca_name']; ?> : <?php echo cut_str(get_text(strip_tags($row['it_name'])),30); ?></option>
<?php
$str[] = $row['it_id'];
}
$str = implode(",", $str);
@ -761,14 +761,14 @@ $pg_anchor ='<ul class="anchor">
<strong class="sound_only">현재 활성화 된 상품</strong>
<span id="sel_span"></span>
</div>
<input type="hidden" name="it_list" value="<?=$str?>">
<input type="hidden" name="it_list" value="<?php echo $str; ?>">
</section>
</section>
<section id="anc_sitfrm_event" class="cbox compare_wrap">
<h2>관련이벤트</h2>
<?=$pg_anchor?>
<?php echo $pg_anchor; ?>
<p>
등록된 전체이벤트 목록에서 추가하길 원하는 이벤트를 마우스 더블클릭하거나 키보드 스페이스바를 누르면, 선택된 관련이벤트 목록에 추가됩니다.<br>
선택된 관련이벤트 목록에서 이벤트 선택 후 마우스 더블클릭하거나 키보드 스페이스바를 누르면 선택된 관련이벤트 목록에서 제거됩니다.
@ -778,7 +778,7 @@ $pg_anchor ='<ul class="anchor">
<section class="compare_left">
<h3>등록된 전체이벤트 목록</h3>
<select size="8" class="sit_relation_list" ondblclick="event_add(this);" onkeyup="event_add(this);">
<?
<?php
$sql = " select ev_id, ev_subject from {$g4['shop_event_table']} order by ev_id desc ";
$result = sql_query($sql);
while ($row=sql_fetch_array($result)) {
@ -859,7 +859,7 @@ $pg_anchor ='<ul class="anchor">
<section class="compare_right">
<h3>선택된 관련이벤트 목록</h3>
<select name="eventselect" class="sit_relation_selected" size="8" ondblclick="event_del(this);" onkeyup="event_del(this);">
<?
<?php
$str = "";
$comma = "";
$sql = " select b.ev_id, b.ev_subject
@ -875,7 +875,7 @@ $pg_anchor ='<ul class="anchor">
}
?>
</select>
<input type="hidden" name="ev_list" value="<?=$str?>">
<input type="hidden" name="ev_list" value="<?php echo $str; ?>">
</section>
@ -883,7 +883,7 @@ $pg_anchor ='<ul class="anchor">
<section id="anc_sitfrm_optional" class="cbox">
<h2>상세설명설정</h2>
<?=$pg_anchor?>
<?php echo $pg_anchor; ?>
<table class="frm_tbl">
<colgroup>
<col class="grid_3">
@ -893,59 +893,59 @@ $pg_anchor ='<ul class="anchor">
<tr>
<th scope="row">상단이미지</th>
<td>
<?=help("상품상세설명 페이지 상단에 출력하는 이미지입니다.");?>
<?php echo help("상품상세설명 페이지 상단에 출력하는 이미지입니다."); ?>
<input type="file" name="it_himg">
<?
<?php
$himg_str = "";
$himg = G4_DATA_PATH."/item/{$it['it_id']}_h";
if (file_exists($himg)) {
?>
<label for="it_himg_del">상단이미지 삭제</label>
<input type="checkbox" name="it_himg_del" value="1" id="it_himg_del">
<div class="banner_or_img"><img src="<?=G4_DATA_URL?>/item/<?=$it['it_id']?>_h" alt=""></div>
<? } ?>
<div class="banner_or_img"><img src="<?php echo G4_DATA_URL; ?>/item/<?php echo $it['it_id']; ?>_h" alt=""></div>
<?php } ?>
</td>
</tr>
<tr>
<th scope="row">하단이미지</th>
<td>
<?=help("상품상세설명 페이지 하단에 출력하는 이미지입니다.");?>
<?php echo help("상품상세설명 페이지 하단에 출력하는 이미지입니다."); ?>
<input type="file" name="it_timg">
<?
<?php
$timg_str = "";
$timg = G4_DATA_PATH."/item/{$it['it_id']}_t";
if (file_exists($timg)) {
?>
<label for="it_timg_del">삭제</label>
<input type="checkbox" name="it_timg_del" value="1" id="it_timg_del">
<div class="banner_or_img"><img src="<?=G4_DATA_URL?>/item/<?=$it['it_id']?>_t" alt=""></div>
<? } ?>
<div class="banner_or_img"><img src="<?php echo G4_DATA_URL; ?>/item/<?php echo $it['it_id']; ?>_t" alt=""></div>
<?php } ?>
</td>
</tr>
<tr>
<th scope="row">상품상단내용</th>
<td><?=help("상품상세설명 페이지 상단에 출력하는 HTML 내용입니다.", -150);?><?=editor_html('it_head_html', $it['it_head_html']);?></td>
<td><?php echo help("상품상세설명 페이지 상단에 출력하는 HTML 내용입니다.", -150); ?><?php echo editor_html('it_head_html', $it['it_head_html']); ?></td>
</tr>
<tr>
<th scope="row">상품하단내용</th>
<td><?=help("상품상세설명 페이지 하단에 출력하는 HTML 내용입니다.", -150);?><?=editor_html('it_tail_html', $it['it_tail_html']);?></td>
<td><?php echo help("상품상세설명 페이지 하단에 출력하는 HTML 내용입니다.", -150); ?><?php echo editor_html('it_tail_html', $it['it_tail_html']); ?></td>
</tr>
<? if ($w == "u") { ?>
<?php if ($w == "u") { ?>
<tr>
<th scope="row">입력일시</th>
<td>
<?=help("상품을 처음 입력(등록)한 시간입니다.");?>
<?=$it['it_time']?>
<?php echo help("상품을 처음 입력(등록)한 시간입니다."); ?>
<?php echo $it['it_time']; ?>
</td>
</tr>
<? } ?>
<?php } ?>
</tbody>
</table>
</section>
<div class="btn_confirm">
<input type="submit" value="확인" class="btn_submit" accesskey="s">
<a href="./itemlist.php?<?=$qstr?>">목록</a>
<a href="./itemlist.php?<?php echo $qstr; ?>">목록</a>
</div>
</form>
@ -1018,9 +1018,9 @@ function fitemformcheck(f)
}
}
<?=get_editor_js('it_explan');?>
<?=get_editor_js('it_head_html');?>
<?=get_editor_js('it_tail_html');?>
<?php echo get_editor_js('it_explan'); ?>
<?php echo get_editor_js('it_head_html'); ?>
<?php echo get_editor_js('it_tail_html'); ?>
return true;
}
@ -1046,6 +1046,6 @@ function categorychange(f)
categorychange(document.fitemform);
</script>
<?
<?php
include_once (G4_ADMIN_PATH.'/admin.tail.php');
?>