merge
This commit is contained in:
@ -22,112 +22,116 @@ else
|
||||
$g4['title'] = $html_title;
|
||||
include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
?>
|
||||
<form name="fbanner" action="./bannerformupdate.php" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="w" value="<? echo $w ?>">
|
||||
<input type="hidden" name="bn_id" value="<? echo $bn_id ?>">
|
||||
|
||||
<?//=subtitle($html_title)?>
|
||||
|
||||
<form name=fbanner method=post action='./bannerformupdate.php' enctype='multipart/form-data' style="margin:0px;">
|
||||
<input type=hidden name=w value='<? echo $w ?>'>
|
||||
<input type=hidden name=bn_id value='<? echo $bn_id ?>'>
|
||||
<table cellpadding=0 cellspacing=0 width=100%>
|
||||
<colgroup width=15%></colgroup>
|
||||
<colgroup width=85% bgcolor=#ffffff></colgroup>
|
||||
<tr><td colspan=2 height=2 bgcolor=0E87F9></td></tr>
|
||||
<tr class=ht>
|
||||
<td> 이미지</td>
|
||||
<td>
|
||||
<input type=file name=bn_bimg size=40 class=ed>
|
||||
<?
|
||||
$bimg_str = "";
|
||||
$bimg = G4_DATA_PATH."/banner/{$bn['bn_id']}";
|
||||
if (file_exists($bimg) && $bn['bn_id']) {
|
||||
echo "<input type=checkbox name=bn_bimg_del value='1'>삭제";
|
||||
$bimg_str = "<img src='".G4_DATA_URL."/banner/{$bn['bn_id']}' border=0>";
|
||||
//$size = getimagesize($bimg);
|
||||
//echo "<img src='$g4[admin_path]/img/icon_viewer.gif' border=0 align=absmiddle onclick=\"imageview('bimg', $size[0], $size[1]);\"><input type=checkbox name=bn_bimg_del value='1'>삭제";
|
||||
//echo "<div id='bimg' style='left:0; top:0; z-index:+1; display:none; position:absolute;'><img src='$bimg' border=1></div>";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<? if ($bimg_str) { echo "<tr><td></td><td>$bimg_str</td></tr>"; } ?>
|
||||
|
||||
<tr class=ht>
|
||||
<td> 이미지 설명</td>
|
||||
<td>
|
||||
<input type=text name=bn_alt size=80 value='<? echo $bn['bn_alt'] ?>' class=ed>
|
||||
<?=help("img 태그의 alt, title 에 해당되는 내용입니다.\n배너에 마우스를 오버하면 이미지의 설명이 나옵니다.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=ht>
|
||||
<td> 링크</td>
|
||||
<td>
|
||||
<input type=text name=bn_url size=80 value='<? echo $bn['bn_url'] ?>' class=ed>
|
||||
<?=help("배너클릭시 이동하는 주소입니다.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=ht>
|
||||
<td> 출력위치</td>
|
||||
<td>
|
||||
<select name=bn_position>
|
||||
<option value="왼쪽">왼쪽
|
||||
<option value="메인">메인
|
||||
<section class="cbox">
|
||||
<h2>배너 입력 수정</h2>
|
||||
<?=$pg_anchor?>
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="3">
|
||||
<col class="13">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="col">이미지</th>
|
||||
<td>
|
||||
<input type="file" name="bn_bimg">
|
||||
<?
|
||||
$bimg_str = "";
|
||||
$bimg = G4_DATA_PATH."/banner/{$bn['bn_id']}";
|
||||
if (file_exists($bimg) && $bn['bn_id']) {
|
||||
echo "<input type=\"checkbox\" name=\"bn_bimg_del\" value='1'>삭제";
|
||||
$bimg_str = "<img src='".G4_DATA_URL."/banner/{$bn['bn_id']}' border=0>";
|
||||
//$size = getimagesize($bimg);
|
||||
//echo "<img src='$g4[admin_path]/img/icon_viewer.gif' border=0 align=absmiddle onclick=\"imageview('bimg', $size[0], $size[1]);\"><input type=checkbox name=bn_bimg_del value='1'>삭제";
|
||||
//echo "<div id='bimg' style='left:0; top:0; z-index:+1; display:none; position:absolute;'><img src='$bimg' border=1></div>";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<? if ($bimg_str) { echo "<tr><td></td><td>$bimg_str</td></tr>"; } ?>
|
||||
<tr>
|
||||
<th scope="col"><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>
|
||||
<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>
|
||||
<td>
|
||||
<?=help("왼쪽 : 쇼핑몰화면 왼쪽에 출력합니다.\n메인 : 쇼핑몰 메인화면(index.php)에만 출력합니다.", 50);?>
|
||||
<select name="bn_position" id="bn_position">
|
||||
<option value="왼쪽">왼쪽</option>
|
||||
<option value="메인">메인</option>
|
||||
</select>
|
||||
<?=help("왼쪽 : 쇼핑몰화면 왼쪽에 출력합니다.\n메인 : 쇼핑몰 메인화면(index.php)에만 출력합니다.", 50);?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=ht>
|
||||
<td> 테두리</td>
|
||||
<td>
|
||||
<select name=bn_border>
|
||||
<option value="0">아니오
|
||||
<option value="1">예
|
||||
</select>
|
||||
<?=help("배너이미지에 테두리를 넣을지를 설정합니다.", 50);?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=ht>
|
||||
<td> 새창</td>
|
||||
<td>
|
||||
<select name=bn_new_win>
|
||||
<option value="0">아니오
|
||||
<option value="1">예
|
||||
</select>
|
||||
<?=help("배너클릭시 새창을 띄울지를 설정합니다.", 50);?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=ht>
|
||||
<td> 시작일시</td>
|
||||
<td>
|
||||
<input type=text name=bn_begin_time size=21 maxlength=19 value='<? echo $bn['bn_begin_time'] ?>' class=ed>
|
||||
<input type=checkbox name=bn_begin_chk value="<? echo date("Y-m-d 00:00:00", time()); ?>" onclick="if (this.checked == true) this.form.bn_begin_time.value=this.form.bn_begin_chk.value; else this.form.bn_begin_time.value = this.form.bn_begin_time.defaultValue;">오늘
|
||||
<?=help("현재시간이 시작일시와 종료일시 기간안에 있어야 배너가 출력됩니다.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=ht>
|
||||
<td> 종료일시</td>
|
||||
<td>
|
||||
<input type=text name=bn_end_time size=21 maxlength=19 value='<? echo $bn['bn_end_time'] ?>' class=ed>
|
||||
<input type=checkbox name=bn_end_chk value="<? echo date("Y-m-d 23:59:59", time()+60*60*24*31); ?>" 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;">오늘+31일
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=ht>
|
||||
<td> 출력 순서</td>
|
||||
<td>
|
||||
<?=order_select("bn_order", $bn['bn_order'])?>
|
||||
<?=help("배너를 출력할 때 순서를 정합니다.\n\n숫자가 작을수록 상단에 출력합니다.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan=2 height=1 bgcolor=#CCCCCC></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><label for="bn_border">테두리</label></th>
|
||||
<td>
|
||||
<?=help("배너이미지에 테두리를 넣을지를 설정합니다.", 50);?>
|
||||
<select name="bn_border" id="bn_border">
|
||||
<option value="0">아니오</option>
|
||||
<option value="1">예</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><label for="bn_new_win">새창</label></th>
|
||||
<td>
|
||||
<?=help("배너클릭시 새창을 띄울지를 설정합니다.", 50);?>
|
||||
<select name="bn_new_win" id="bn_new_win">
|
||||
<option value="0">아니오</option>
|
||||
<option value="1">예</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><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">
|
||||
<input type="checkbox" name="bn_begin_chk" value="<? echo date("Y-m-d 00:00:00", time()); ?>" id="bn_begin_chk" onclick="if (this.checked == true) this.form.bn_begin_time.value=this.form.bn_begin_chk.value; else this.form.bn_begin_time.value = this.form.bn_begin_time.defaultValue;">
|
||||
<label for="bn_begin_chk">오늘</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><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;">
|
||||
<label for="bn_end_chk">오늘+31일</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><label for="bn_order">출력 순서</label></th>
|
||||
<td>
|
||||
<?=help("배너를 출력할 때 순서를 정합니다.\n\n숫자가 작을수록 상단에 출력합니다.");?>
|
||||
<?=order_select("bn_order", $bn['bn_order'])?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<p align=center>
|
||||
<input type=submit class=btn1 accesskey='s' value=' 확 인 '>
|
||||
<input type=button class=btn1 accesskey='l' value=' 목 록 ' onclick="document.location.href='./bannerlist.php';">
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" value="확인" class="btn_submit" accesskey="s">
|
||||
<a href="./bannerlist.php">목록</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
<script language="JavaScript">
|
||||
<script>
|
||||
if (document.fbanner.w.value == 'u')
|
||||
{
|
||||
document.fbanner.bn_position.value = '<?=$bn['bn_position']?>';
|
||||
|
||||
@ -23,24 +23,30 @@ $sql = "select * $sql_common order by co_id limit $from_record, {$config['cf_pag
|
||||
$result = sql_query($sql);
|
||||
?>
|
||||
<style type="text/css">
|
||||
#content_head{width:900px;height:37px;line-height:37px ;text-align:center}
|
||||
#content_head{width:900px;height:35px;line-height:35px ;text-align:center}
|
||||
#content_head th{text-align:center}
|
||||
#content_head span{display:inline-block;margin-left:690px}
|
||||
#content_fir{position:relative}
|
||||
#content_fir span{position:absolute;top:-12;right:10px}
|
||||
#content_fir span{position:absolute;top:-12;right:5px}
|
||||
</style>
|
||||
|
||||
<section class="cbox">
|
||||
<p id="content_fir"><a href='<?=$_SERVER['PHP_SELF']?>'>처음</a><span>건수 : <? echo $total_count ?> </span></p>
|
||||
<h2>내용관리</h2>
|
||||
<?=$pg_anchor?>
|
||||
<p id="content_fir">
|
||||
<a href='<?=$_SERVER['PHP_SELF']?>'>처음</a>
|
||||
<span>건수 : <? echo $total_count ?> </span>
|
||||
</p>
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col class="gird_13">
|
||||
<col class="grid_3">
|
||||
<col class="gird_14">
|
||||
<col class="grid_1">
|
||||
</colgroup>
|
||||
<thead id="content_head">
|
||||
<tr>
|
||||
<th scope="row">ID</th>
|
||||
<th scope="row">제목<span><a href="./contentform.php"><img src="<?=G4_ADMIN_URL?>/img/icon_insert.gif"></a></span></th>
|
||||
<th scope="row">제목</th>
|
||||
<th><a href="./contentform.php"><img src="<?=G4_ADMIN_URL?>/img/icon_insert.gif" alt="내용입력버튼"></a></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -53,14 +59,13 @@ $result = sql_query($sql);
|
||||
$list = $i%2;
|
||||
echo "
|
||||
<tr class='list$list ht'>
|
||||
<td align=center>{$row['co_id']}</td>
|
||||
<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";
|
||||
echo "<tr><td colspan=\"3\" align=\"center\" height=\"100\" bgcolor=\"#ffffff\"><span class=\"point\">자료가 한건도 없습니다.</span></td></tr>\n";
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
|
||||
@ -23,40 +23,52 @@ $g4['title'] = $html_title;
|
||||
include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
?>
|
||||
|
||||
<?//=subtitle($html_title);?>
|
||||
<form name="fdeliverycodeform" action="./deliverycodeformupdate.php" method="post">
|
||||
<input type="hidden" name="w" value="<? echo $w ?>">
|
||||
<input type="hidden" name="dl_id" value="<? echo $dl_id ?>">
|
||||
|
||||
<table cellpadding=0 cellspacing=0 width=100%>
|
||||
<form name=fdeliverycodeform method=post action='./deliverycodeformupdate.php'>
|
||||
<input type=hidden name=w value='<? echo $w ?>'>
|
||||
<input type=hidden name=dl_id value='<? echo $dl_id ?>'>
|
||||
<colgroup width=15%></colgroup>
|
||||
<colgroup width=85% bgcolor=#ffffff></colgroup>
|
||||
<tr><td colspan=2 height=2 bgcolor=#0E87F9></td></tr>
|
||||
<tr class=ht>
|
||||
<td>배송회사명</td>
|
||||
<td><input type=text class=ed name=dl_company value='<? echo stripslashes($dl['dl_company']) ?>' required itemname="배송회사명"></td>
|
||||
</tr>
|
||||
<tr class=ht>
|
||||
<td>화물추적 URL</td>
|
||||
<td><input type=text class=ed name=dl_url value='<? echo stripslashes($dl['dl_url']) ?>' style='width:98%;'></td>
|
||||
</tr>
|
||||
<tr class=ht>
|
||||
<td>고객센터 전화</td>
|
||||
<td><input type=text class=ed name=dl_tel value='<? echo stripslashes($dl['dl_tel']) ?>'></td>
|
||||
</tr>
|
||||
<tr class=ht>
|
||||
<td>출력 순서</td>
|
||||
<td>
|
||||
<?=order_select("dl_order", $dl['dl_order'])?>
|
||||
<?=help("셀렉트박스에서 출력할 때 순서를 정합니다.\n\n숫자가 작을수록 상단에 출력합니다.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan=2 height=1 bgcolor=#CCCCCC></td></tr>
|
||||
</table>
|
||||
<section class="cbox">
|
||||
<h2>배송회사 입력 수정</h2>
|
||||
<?=$pg_anchor?>
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="gird_3">
|
||||
<col class="grid_13">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr >
|
||||
<th scope="col"><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>
|
||||
<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>
|
||||
<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>
|
||||
<td>
|
||||
<?=help("셀렉트박스에서 출력할 때 순서를 정합니다.\n\n숫자가 작을수록 상단에 출력합니다.");?>
|
||||
<?=order_select("dl_order", $dl['dl_order'])?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<p align=center>
|
||||
<input type=submit class=btn1 accesskey='s' value=' 확 인 '>
|
||||
<input type=button class=btn1 accesskey='l' value=' 목 록 ' onclick="document.location.href='./deliverycodelist.php';">
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" value="확인" class="btn_submit" accesskey="s">
|
||||
<a href="./deliverycodelist.php">목록</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<?
|
||||
|
||||
@ -31,49 +31,53 @@ $g4['title'] = $html_title;
|
||||
include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
?>
|
||||
|
||||
<?//=subtitle($html_title)?><p>
|
||||
<form name="frmfaqform" action="./faqformupdate.php" onsubmit="return frmfaqform_check(this);" method="post">
|
||||
<input type="hidden" name="w" value="<? echo $w ?>">
|
||||
<input type="hidden" name="fm_id" value="<? echo $fm_id ?>">
|
||||
<input type="hidden" name="fa_id" value="<? echo $fa_id ?>">
|
||||
|
||||
<form name=frmfaqform method=post action='./faqformupdate.php' onsubmit="return frmfaqform_check(this);" style="margin:0px;">
|
||||
<input type=hidden name=w value='<? echo $w ?>'>
|
||||
<input type=hidden name=fm_id value='<? echo $fm_id ?>'>
|
||||
<input type=hidden name=fa_id value='<? echo $fa_id ?>'>
|
||||
<table cellpadding=0 cellspacing=0 width=100%>
|
||||
<colgroup width=15%></colgroup>
|
||||
<colgroup width=85% bgcolor=#ffffff></colgroup>
|
||||
<tr><td colspan=2 height=2 bgcolor=#0E87F9></td></tr>
|
||||
<tr class=ht>
|
||||
<td> 출력 순서</td>
|
||||
<td>
|
||||
<input type=text id=fa_order name=fa_order size=10 maxlength=10 value='<?=$fa['fa_order']?>' class=ed>
|
||||
<?=help('숫자가 작을수록 FAQ 페이지의 상단에 출력합니다.', 60, -50)?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> 질문
|
||||
<? if ($w == 'u') {
|
||||
echo icon("보기", G4_SHOP_URL."/faq.php?fm_id=$fm_id");
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td style='padding-top:5px; padding-bottom:5px;'>
|
||||
<?=editor_html('fa_subject', $fa['fa_subject']);?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> 답변</td>
|
||||
<td style='padding-top:5px; padding-bottom:5px;'>
|
||||
<?=editor_html('fa_content', $fa['fa_content']);?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan=2 height=1 bgcolor=CCCCCC><td></tr>
|
||||
</table>
|
||||
<section class="cbox">
|
||||
<h2>FAQ상세입력 수정</h2>
|
||||
<?=$pg_anchor?>
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col class="grid_13">
|
||||
</colgroup>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="col"><label for="fa_order">출력순서</label></th>
|
||||
<td >
|
||||
<input type="text" name="fa_order" value="<?=$fa['fa_order']?>" id="fa_order" class="frm_input" maxlength="10" size="10">
|
||||
<?=help('숫자가 작을수록 FAQ 페이지의 상단에 출력합니다.', 60, -50)?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col">질문
|
||||
<? if ($w == 'u') {
|
||||
echo icon("보기", G4_SHOP_URL."/faq.php?fm_id=$fm_id");
|
||||
}
|
||||
?>
|
||||
</th>
|
||||
<td >
|
||||
<?=editor_html('fa_subject', $fa['fa_subject']);?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col">답변</th>
|
||||
<td ><?=editor_html('fa_content', $fa['fa_content']);?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<p align=center>
|
||||
<input type=submit class=btn1 accesskey='s' value=' 확 인 '>
|
||||
<input type=button class=btn1 accesskey='l' value=' 목 록 ' onclick="document.location.href='./faqlist.php?fm_id=<?=$fm_id?>';">
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" value="확인" class="btn_submit" accesskey="s">
|
||||
<a href="./faqlist.php?fm_id=<?=$fm_id?>">목록</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script language="javascript">
|
||||
<script>
|
||||
function frmfaqform_check(f)
|
||||
{
|
||||
errmsg = "";
|
||||
@ -95,7 +99,7 @@ function frmfaqform_check(f)
|
||||
return true;
|
||||
}
|
||||
|
||||
document.getElementById('fa_order').focus();
|
||||
// document.getElementById('fa_order').focus(); 포커스 해제
|
||||
</script>
|
||||
|
||||
<?
|
||||
|
||||
@ -23,86 +23,81 @@ $sql = "select * $sql_common order by fm_id desc limit $from_record, {$config['c
|
||||
$result = sql_query($sql);
|
||||
?>
|
||||
|
||||
<table width=100%>
|
||||
<tr>
|
||||
<td width=20%><a href='<?=$_SERVER['PHP_SELF']?>'>처음</a></td>
|
||||
<td width=60% align=center> </td>
|
||||
<td width=20% align=right>건수 : <? echo $total_count ?> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<style type="text/css">
|
||||
#faq_box th{height:35px;line-height:35px;text-align:center}
|
||||
#faq_box p{position:relative}
|
||||
#faq_box span{position:absolute;top:-12;right:5px}
|
||||
#faq_register h2{color:#18abff}
|
||||
#faq_register ul{list-style:none;padding-left:0}
|
||||
#faq_register ul li{height:25px;line-height:25px}
|
||||
</style>
|
||||
|
||||
<section id="faq_box" class="cbox">
|
||||
<h2>FAQ관리</h2>
|
||||
<?=$pg_anchor?>
|
||||
<p><a href="<?=$_SERVER['PHP_SELF']?>">처음</a><span>건수 : <? echo $total_count ?></span></p>
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col class="grid_11">
|
||||
<col class="grid_2">
|
||||
<col class="gird_2">
|
||||
<col class="grid_1">
|
||||
</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>
|
||||
</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'];
|
||||
|
||||
<table cellpadding=0 cellspacing=0 width=100% border=0>
|
||||
<colgroup width=80>
|
||||
<colgroup width=''>
|
||||
<colgroup width=80>
|
||||
<colgroup width=80>
|
||||
<colgroup width=80>
|
||||
<tr><td colspan=5 height=2 bgcolor=#0E87F9></td></tr>
|
||||
<tr align=center class=ht>
|
||||
<td>ID</td>
|
||||
<td>제목</td>
|
||||
<td>FAQ 수</td>
|
||||
<td>상세보기</td>
|
||||
<td><a href='./faqmasterform.php'><img src='<?=G4_ADMIN_URL?>/img/icon_insert.gif' border=0 title='등록'></a></td>
|
||||
</tr>
|
||||
<tr><td colspan=5 height=1 bgcolor=#CCCCCC></td></tr>
|
||||
<?
|
||||
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 align=center>{$row['fm_id']}</td>
|
||||
<td>" . stripslashes($row['fm_subject']) . "</td>
|
||||
<td align=center>$cnt</td>
|
||||
<td align=center>$s_detail_vie</td>
|
||||
<td 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";
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
if ($i == 0)
|
||||
echo "<tr><td colspan=5 align=center height=100 bgcolor=#ffffff><span class=point>자료가 한건도 없습니다.</span></td></tr>\n";
|
||||
?>
|
||||
<tr><td colspan=5 height=1 bgcolor=CCCCCC></td></tr>
|
||||
</table>
|
||||
<p><?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?></p>
|
||||
|
||||
<table width=100%>
|
||||
<tr bgcolor=#ffffff>
|
||||
<td width=50%></td>
|
||||
<td width=50% align=right><?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?></td>
|
||||
</tr>
|
||||
</table><br>
|
||||
<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>
|
||||
</section>
|
||||
|
||||
|
||||
<table width=100% cellpadding=5 cellspacing=0 border=0 bgcolor=#F6F6F6>
|
||||
<tr>
|
||||
<td>
|
||||
<table width=100% cellpadding=10 cellspacing=0 bgcolor=#FFFFFF>
|
||||
<tr>
|
||||
<td style="line-height:220%;">
|
||||
<B><FONT COLOR="18ABFF">· FAQ 등록하기</FONT></B><BR>
|
||||
|
||||
: FAQ는 무제한으로 등록할 수 있습니다.<BR>
|
||||
1. 먼저 <img src='<?=G4_ADMIN_URL?>/img/icon_insert.gif' align=absmiddle>를 눌러 FAQ Master를 생성합니다. (하나의 FAQ 타이틀 생성 : 자주하시는 질문, 이용안내..등 )<BR>
|
||||
2. 상세보기에 있는 <img src='<?=G4_ADMIN_URL?>/img/icon_viewer.gif' align=absmiddle>을 눌러 세부 내용으로 들어갑니다.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?
|
||||
include_once (G4_ADMIN_PATH.'/admin.tail.php');
|
||||
?>
|
||||
|
||||
@ -34,12 +34,13 @@ else
|
||||
$g4['title'] = $html_title;
|
||||
include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
?>
|
||||
<form name="feventform" action="./itemeventformupdate.php" onsubmit="return feventform_check(this);" method="post" enctype="MULTIPART/FORM-DATA" style="margin:0px">
|
||||
<form name="feventform" action="./itemeventformupdate.php" onsubmit="return feventform_check(this);" method="post" enctype="MULTIPART/FORM-DATA">
|
||||
<input type="hidden" name="w" value="<? echo $w ?>">
|
||||
<input type="hidden" name="ev_id" value="<? echo $ev_id ?>">
|
||||
|
||||
<section class="cbox">
|
||||
<?//=subtitle($html_title);?>
|
||||
<h2>이벤트 입력 수정</h2>
|
||||
<?=$pg_anchor?>
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
@ -62,6 +63,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
<tr>
|
||||
<th scope="col">출력스킨</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>
|
||||
@ -69,7 +71,6 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
<? if ($w == 'u') { ?>
|
||||
<script>document.all.ev_skin.value='<?=$ev['ev_skin']?>';</script>
|
||||
<? } ?>
|
||||
<?=help("기본으로 제공하는 스킨은 $cart_dir/list.skin.*.php 입니다.\n\n$cart_dir/list.php&skin=userskin.php 처럼 직접 만든 스킨을 사용할 수도 있습니다.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -93,15 +94,15 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><label for="ev_use">사용</label></th>
|
||||
<td colspan="3">
|
||||
<?=help("사용하지 않으면 왼쪽의 이벤트 메뉴와 이벤트리스트 페이지에 접근할 수 없습니다.");?>
|
||||
<select name="ev_use" id="ev_use">
|
||||
<option value="1">예
|
||||
<option value="0">아니오
|
||||
</select>
|
||||
<script>document.all.ev_use.value='<?=$ev['ev_use']?>';</script>
|
||||
</td>
|
||||
<th scope="col"><label for="ev_use">사용</label></th>
|
||||
<td colspan="3">
|
||||
<?=help("사용하지 않으면 왼쪽의 이벤트 메뉴와 이벤트리스트 페이지에 접근할 수 없습니다.");?>
|
||||
<select name="ev_use" id="ev_use">
|
||||
<option value="1">예</option>
|
||||
<option value="0">아니오</option>
|
||||
</select>
|
||||
<script>document.all.ev_use.value='<?=$ev['ev_use']?>';</script>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><label for="ev_subject">이벤트제목</label></th>
|
||||
@ -118,13 +119,13 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
$mimg_str = "";
|
||||
$mimg = G4_DATA_PATH."/event/{$ev['ev_id']}_m";
|
||||
if (file_exists($mimg)) {
|
||||
echo "<input type=checkbox name=ev_mimg_del value='1'>삭제";
|
||||
$mimg_str = "<img src='".G4_DATA_URL."/event/{$ev['ev_id']}_m' border=0>";
|
||||
echo "<input type=\"checkbox\" name=\"ev_mimg_del\" value=\"1\">삭제";
|
||||
$mimg_str = "<img src='".G4_DATA_URL."/event/{$ev['ev_id']}_m' border=\"0\">";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<? if ($mimg_str) { echo "<tr><td></td><td colspan=3>$mimg_str</td></tr>"; } ?>
|
||||
<? if ($mimg_str) { echo "<tr><td></td><td colspan=\"3\">$mimg_str</td></tr>"; } ?>
|
||||
|
||||
|
||||
<tr>
|
||||
@ -136,13 +137,13 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
$himg_str = "";
|
||||
$himg = G4_DATA_PATH."/event/{$ev['ev_id']}_h";
|
||||
if (file_exists($himg)) {
|
||||
echo "<input type=checkbox name=ev_himg_del value='1'>삭제";
|
||||
$himg_str = "<img src='".G4_DATA_URL."/event/{$ev['ev_id']}_h' border=0>";
|
||||
echo "<input type=\"checkbox\" name=\"ev_himg_del\" value='1'>삭제";
|
||||
$himg_str = "<img src='".G4_DATA_URL."/event/{$ev['ev_id']}_h' border=\"0\">";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<? if ($himg_str) { echo "<tr><td colspan=4>$himg_str</td></tr>"; } ?>
|
||||
<? if ($himg_str) { echo "<tr><td colspan=\"4\">$himg_str</td></tr>"; } ?>
|
||||
|
||||
|
||||
<tr>
|
||||
@ -154,13 +155,13 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
$timg_str = "";
|
||||
$timg = G4_DATA_PATH."/event/{$ev['ev_id']}_t";
|
||||
if (file_exists($timg)) {
|
||||
echo "<input type=checkbox name=ev_timg_del value='1'>삭제";
|
||||
$timg_str = "<img src='".G4_DATA_URL."/event/{$ev['ev_id']}_t' border=0>";
|
||||
echo "<input type=\"checkbox\" name=\"ev_timg_del\" value='1'>삭제";
|
||||
$timg_str = "<img src='".G4_DATA_URL."/event/{$ev['ev_id']}_t' border=\"0\">";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<? if ($timg_str) { echo "<tr><td colspan=4>$timg_str</td></tr>"; } ?>
|
||||
<? if ($timg_str) { echo "<tr><td colspan=\"4\">$timg_str</td></tr>"; } ?>
|
||||
<tr>
|
||||
<th scope="col">상단내용</th>
|
||||
<td colspan="3">
|
||||
@ -177,10 +178,11 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" value="확인" class="btn_submit" accesskey="s">
|
||||
<a href="./itemevent.php">목록</a>
|
||||
</div>
|
||||
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" value="확인" class="btn_submit" accesskey="s">
|
||||
<a href="./itemevent.php">목록</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
|
||||
@ -77,7 +77,7 @@ else if ($w == "u")
|
||||
}
|
||||
else
|
||||
{
|
||||
alert();
|
||||
alert();
|
||||
}
|
||||
|
||||
if (!$it['it_explan_html'])
|
||||
@ -93,16 +93,15 @@ $g4['title'] = $html_title;
|
||||
include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
?>
|
||||
|
||||
<form name="fitemform" action="./itemformupdate.php" onsubmit="return fitemformcheck(this)" method="post" enctype="MULTIPART/FORM-DATA" autocomplete="off">
|
||||
|
||||
<form name="fitemform" action="./itemformupdate.php" onsubmit="return fitemformcheck(this)" method="post" enctype="MULTIPART/FORM-DATA" autocomplete="off" style="margin:0px;">
|
||||
|
||||
<input type="hidden" name="codedup" value="<?=$default['de_code_dup_use']?>">
|
||||
<input type="hidden" name="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="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?>">
|
||||
@ -111,9 +110,9 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
<input type="hidden" name="page" value="<?=$page?>">
|
||||
<input type="hidden" name="it_explan_html" value="1"><!---->
|
||||
|
||||
|
||||
<section class="cbox">
|
||||
<?//=subtitle("기본정보")?>
|
||||
<h2>기본정보</h2>
|
||||
<?=$pg_anchor?>
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
@ -126,7 +125,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
<th scope="col"><label for="ca_id">분류명</label></th>
|
||||
<td colspan="3">
|
||||
<select name="ca_id" id="ca_id" onchange="categorychange(this.form)">
|
||||
<option value="">= 기본분류 =
|
||||
<option value="">= 기본분류 =</option>
|
||||
<?
|
||||
$script = "";
|
||||
$sql = " select * from {$g4['yc4_category_table']} ";
|
||||
@ -173,7 +172,6 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
var ca_opt6_subject = new Array();
|
||||
<?="\n$script"?>
|
||||
</script>
|
||||
|
||||
<? if ($w == "") { ?>
|
||||
<?=help("기본분류를 선택하면 선택한 분류의 기본값인 판매, 재고, HTML사용, 판매자 E-mail 을 기본값으로 설정합니다.");?>
|
||||
<? } ?>
|
||||
@ -194,51 +192,51 @@ include_once (G4_ADMIN_PATH.'/admin.head.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> -->
|
||||
<input type=text name=it_id value="<?=time()?>" id=it_id required class=required size=12 maxlength=10>
|
||||
<? if ($default['de_code_dup_use']) { ?><a href='javascript:;' onclick="codedupcheck(document.all.it_id.value)"><img src='<?=G4_ADMIN_URL?>/img/btn_code.gif' border=0 align=absmiddle></a><? } ?>
|
||||
<?=help("상품의 코드는 10자리 숫자로 자동생성합니다.\n운영자 임의로 상품코드를 입력하실 수 있습니다.\n상품코드는 영문자와 숫자만 입력 가능합니다.");?>
|
||||
<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']?>">
|
||||
<input type="hidden" name="it_id" value="<?=$it['it_id']?>">
|
||||
<?=$it['it_id']?>
|
||||
<?=icon("보기", G4_SHOP_URL."/item.php?it_id=$it_id");?>
|
||||
<a href='<?=G4_ADMIN_URL?>/shop_admin/itempslist.php?sel_field=a.it_id&search=<?=$it_id?>'>사용후기</a>
|
||||
<a href='<?=G4_ADMIN_URL?>/shop_admin/itemqalist.php?sel_field=a.it_id&search=<?=$it_id?>'>상품문의</a>
|
||||
<a href="<?=G4_ADMIN_URL?>/shop_admin/itempslist.php?sel_field=a.it_id&search=<?=$it_id?>">사용후기</a>
|
||||
<a href="<?=G4_ADMIN_URL?>/shop_admin/itemqalist.php?sel_field=a.it_id&search=<?=$it_id?>">상품문의</a>
|
||||
<? } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><label for="it_name">상품명</label></th>
|
||||
<td colspan="3">
|
||||
<input type="text" name="it_name" value="<?=get_text(cut_str($it['it_name'], 250, ""))?>" style="width:97%;" id="it_name" required class="frm_input required">
|
||||
<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>
|
||||
<td>
|
||||
<?=help("금액표시는 하지 않고 상품을 구매할 수 없으며 상품설명만 나타낼때 사용합니다.");?>
|
||||
<input type="checkbox" name="it_gallery" value="1" id="it_gallery" class="frm_input" <?=($it['it_gallery'] ? "checked" : "")?>> 갤러리로 사용
|
||||
</td>
|
||||
<th scope="col"><label for="it_order">출력순서</label></th>
|
||||
<td>
|
||||
<?=help("상품의 출력순서를 인위적으로 변경할때 사용합니다.\n숫자를 입력하며 기본은 0 입니다.\n숫자가 작을 수록 상위에 출력됩니다.\n음수 입력도 가능합니다.\n구간 : -2147483648 ~ 2147483647");?>
|
||||
<input type="text" name="it_order" value="<? echo $it['it_order'] ?>" id="it_order" class="frm_input" size="10">
|
||||
</td>
|
||||
<th scope="col"><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>
|
||||
<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>
|
||||
<td colspan="3">
|
||||
<?=help("메인화면에 유형별로 출력할때 사용합니다.\n\n이곳에 체크하게되면 상품리스트에서 유형별로 정렬할때 체크된 상품이 가장 먼저 출력됩니다.");?>
|
||||
<input type="checkbox" name="it_type1" value="1" <?=($it['it_type1'] ? "checked" : "");?> id="it_type1">
|
||||
<label for="it_type1"><img src="<?=G4_SHOP_URL?>/img/icon_type1.gif" alt="hit"></label>
|
||||
<input type="checkbox" name="it_type2" value="1" <?=($it['it_type2'] ? "checked" : "");?> id="it_type2">
|
||||
<label for="it_type2"><img src="<?=G4_SHOP_URL?>/img/icon_type2.gif" alt="추천"></label>
|
||||
<input type="checkbox" name="it_type3" value="1" <?=($it['it_type3'] ? "checked" : "");?> id="it_type3">
|
||||
<label for="it_type3"><img src="<?=G4_SHOP_URL?>/img/icon_type3.gif" alt="new"></label>
|
||||
<input type="checkbox" name="it_type4" value="1" <?=($it['it_type4'] ? "checked" : "");?> id="it_type4">
|
||||
<label for="it_type4"><img src="<?=G4_SHOP_URL?>/img/icon_type4.gif" alt="인기"></label>
|
||||
<input type="checkbox" name="it_type5" value="1" <?=($it['it_type5'] ? "checked" : "");?> id="it_type5">
|
||||
<label for="it_type5"><img src="<?=G4_SHOP_URL?>/img/icon_type5.gif" alt="go"></label>
|
||||
</td>
|
||||
<th scope="col">상품유형</th>
|
||||
<td colspan="3">
|
||||
<?=help("메인화면에 유형별로 출력할때 사용합니다.\n\n이곳에 체크하게되면 상품리스트에서 유형별로 정렬할때 체크된 상품이 가장 먼저 출력됩니다.");?>
|
||||
<input type="checkbox" name="it_type1" value="1" <?=($it['it_type1'] ? "checked" : "");?> id="it_type1">
|
||||
<label for="it_type1"><img src="<?=G4_SHOP_URL?>/img/icon_type1.gif" alt="hit"></label>
|
||||
<input type="checkbox" name="it_type2" value="1" <?=($it['it_type2'] ? "checked" : "");?> id="it_type2">
|
||||
<label for="it_type2"><img src="<?=G4_SHOP_URL?>/img/icon_type2.gif" alt="추천"></label>
|
||||
<input type="checkbox" name="it_type3" value="1" <?=($it['it_type3'] ? "checked" : "");?> id="it_type3">
|
||||
<label for="it_type3"><img src="<?=G4_SHOP_URL?>/img/icon_type3.gif" alt="new"></label>
|
||||
<input type="checkbox" name="it_type4" value="1" <?=($it['it_type4'] ? "checked" : "");?> id="it_type4">
|
||||
<label for="it_type4"><img src="<?=G4_SHOP_URL?>/img/icon_type4.gif" alt="인기"></label>
|
||||
<input type="checkbox" name="it_type5" value="1" <?=($it['it_type5'] ? "checked" : "");?> id="it_type5">
|
||||
<label for="it_type5"><img src="<?=G4_SHOP_URL?>/img/icon_type5.gif" alt="go"></label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><label for="it_maker">제조사</label></th>
|
||||
@ -246,14 +244,14 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
<?=help("입력하지 않으면 상품상세페이지에 출력하지 않습니다.");?>
|
||||
<input type="text" name="it_maker" value="<?=get_text($it['it_maker'])?>" id="it_maker" class="frm_input" size="41">
|
||||
</td>
|
||||
<th><label for="it_origin">원산지</label></th>
|
||||
<th scope="col"><label for="it_origin">원산지</label></th>
|
||||
<td>
|
||||
<?=help("입력하지 않으면 상품상세페이지에 출력하지 않습니다.");?>
|
||||
<input type="text" name="it_origin" value="<?=get_text($it['it_origin'])?>" id="it_origin" class="frm_input" size="41">
|
||||
</td>
|
||||
</tr>
|
||||
<?
|
||||
for ($i=1; $i<=3; $i++) {
|
||||
<?
|
||||
for ($i=1; $i<=3; $i++) {
|
||||
$k1=$i*2-1;
|
||||
$k2=$i*2;
|
||||
$val11 = stripslashes($it["it_opt".$k1."_subject"]);
|
||||
@ -268,11 +266,10 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
<td><input type=text name='it_opt{$k2}_subject' size=15 class=frm_input value='".get_text($val21)."'></td>
|
||||
<td><textarea name='it_opt{$k2}' rows='3' cols=40 class=frm_input>$val22</textarea></td>
|
||||
</tr>\n";
|
||||
}
|
||||
?>
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
|
||||
<style type="text/css">
|
||||
#cost_box{width:900px}
|
||||
#cost_box h3{width:158px;height:300px;line-height:300px;float:left}
|
||||
@ -281,41 +278,42 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
.cost_input{position:absolute;bottom:0;left:0}
|
||||
.cost_margin{margin-right:0 !important}
|
||||
</style>
|
||||
<div id="cost_box">
|
||||
<h3>가격/포인트/재고</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<label for="it_amount">비회원가격</label><?=help("상품의 기본판매가격(로그인 이전 가격)이며 옵션별로 상품가격이 틀리다면 합산하여 상품상세페이지에 출력합니다.", 50);?>
|
||||
<span class="cost_input"><input type="text" name="it_amount" value="<?=$it['it_amount']?>" id="it_amount" class="frm_input" size="8"></span>
|
||||
</li>
|
||||
<li>
|
||||
<label for="it_amount2">회원가격</label><?=help("상품의 로그인 이후 가격(회원 권한 2 에만 적용)이며 옵션별로 상품가격이 틀리다면 합산하여 상품상세페이지에 출력합니다.\n\n입력이 없다면 비회원가격으로 대신합니다.", 50);?>
|
||||
<span class="cost_input"><input type="text" name="it_amount2" value="<?=$it['it_amount2']?>" id="it_amount2" class="frm_input" size="8"></span>
|
||||
</li>
|
||||
<li>
|
||||
<label for="it_amount3">특별회원가격</label><?=help("상품의 로그인 이후 가격(회원 권한 3 이상에 적용)이며 옵션별로 상품가격이 틀리다면 합산하여 상품상세페이지에 출력합니다.\n\n입력이 없다면 회원가격으로 대신합니다.\n회원가격도 없다면 비회원가격으로 대신합니다.", 50);?>
|
||||
<span class="cost_input"><input type="text" name="it_amount3" value="<?=$it['it_amount3']?>" id="it_amount3" class="frm_input" size="8"></span>
|
||||
</li>
|
||||
<li>
|
||||
<label for="it_cust_amount">시중가격</label><?=help("입력하지 않으면 상품상세페이지에 출력하지 않습니다.", 50);?>
|
||||
<span class="cost_input"><input type="text" name="it_cust_amount" value="<?=$it['it_cust_amount']?>" id="it_cust_amount" class="frm_input" size="8"></span>
|
||||
</li>
|
||||
<li>
|
||||
<label for="it_point">포인트</label><?=help("주문완료후 환경설정에서 설정한 주문완료 설정일 후 회원에게 부여하는 포인트입니다.\n포인트를 사용하지 않는다면 의미가 없습니다.\n또, 포인트부여를 '아니오'로 설정한 경우 신용카드, 계좌이체로 주문하는 회원께는 부여하지 않습니다.", -150);?>
|
||||
<span class="cost_input"><input type="text" name="it_point" value="<? echo $it['it_point'] ?>" id="it_point" class="frm_input" size="8"> 점</span>
|
||||
</li>
|
||||
<li class="cost_margin">
|
||||
<label for="it_stock_qty">재고수량</label><?=help("<span style='width:500px'>재고는 규격, 색상별로 관리되지는 않으며 상품별로 관리됩니다.\n이곳에 100개를 설정하고 상품 10개가 주문,준비,배송,완료 상태에 있다면 현재고는 90개로 나타내어집니다.\n주문관리에서 상품별로 상태가 변경될때 재고를 가감하게 됩니다.</span>", -450, -120);?>
|
||||
<span class="cost_input"><input type="text" name="it_stock_qty" value="<? echo $it['it_stock_qty'] ?>" id="it_stock_qty" class="frm_input" size="8"> 개</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="cost_box">
|
||||
<h3>가격/포인트/재고</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<label for="it_amount">비회원가격</label><?=help("상품의 기본판매가격(로그인 이전 가격)이며 옵션별로 상품가격이 틀리다면 합산하여 상품상세페이지에 출력합니다.", 50);?>
|
||||
<span class="cost_input"><input type="text" name="it_amount" value="<?=$it['it_amount']?>" id="it_amount" class="frm_input" size="8"></span>
|
||||
</li>
|
||||
<li>
|
||||
<label for="it_amount2">회원가격</label><?=help("상품의 로그인 이후 가격(회원 권한 2 에만 적용)이며 옵션별로 상품가격이 틀리다면 합산하여 상품상세페이지에 출력합니다.\n\n입력이 없다면 비회원가격으로 대신합니다.", 50);?>
|
||||
<span class="cost_input"><input type="text" name="it_amount2" value="<?=$it['it_amount2']?>" id="it_amount2" class="frm_input" size="8"></span>
|
||||
</li>
|
||||
<li>
|
||||
<label for="it_amount3">특별회원가격</label><?=help("상품의 로그인 이후 가격(회원 권한 3 이상에 적용)이며 옵션별로 상품가격이 틀리다면 합산하여 상품상세페이지에 출력합니다.\n\n입력이 없다면 회원가격으로 대신합니다.\n회원가격도 없다면 비회원가격으로 대신합니다.", 50);?>
|
||||
<span class="cost_input"><input type="text" name="it_amount3" value="<?=$it['it_amount3']?>" id="it_amount3" class="frm_input" size="8"></span>
|
||||
</li>
|
||||
<li>
|
||||
<label for="it_cust_amount">시중가격</label><?=help("입력하지 않으면 상품상세페이지에 출력하지 않습니다.", 50);?>
|
||||
<span class="cost_input"><input type="text" name="it_cust_amount" value="<?=$it['it_cust_amount']?>" id="it_cust_amount" class="frm_input" size="8"></span>
|
||||
</li>
|
||||
<li>
|
||||
<label for="it_point">포인트</label><?=help("주문완료후 환경설정에서 설정한 주문완료 설정일 후 회원에게 부여하는 포인트입니다.\n포인트를 사용하지 않는다면 의미가 없습니다.\n또, 포인트부여를 '아니오'로 설정한 경우 신용카드, 계좌이체로 주문하는 회원께는 부여하지 않습니다.", -150);?>
|
||||
<span class="cost_input"><input type="text" name="it_point" value="<? echo $it['it_point'] ?>" id="it_point" class="frm_input" size="8"> 점</span>
|
||||
</li>
|
||||
<li class="cost_margin">
|
||||
<label for="it_stock_qty">재고수량</label><?=help("<span style='width:500px'>재고는 규격, 색상별로 관리되지는 않으며 상품별로 관리됩니다.\n이곳에 100개를 설정하고 상품 10개가 주문,준비,배송,완료 상태에 있다면 현재고는 90개로 나타내어집니다.\n주문관리에서 상품별로 상태가 변경될때 재고를 가감하게 됩니다.</span>", -450, -120);?>
|
||||
<span class="cost_input"><input type="text" name="it_stock_qty" value="<? echo $it['it_stock_qty'] ?>" id="it_stock_qty" class="frm_input" size="8"> 개</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><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" style="width:97%">
|
||||
<input type="text" name="it_basic" value="<?=get_text($it['it_basic'])?>" id="it_basic" class="frm_input" size="120"><!-- width:727px-->
|
||||
</td>
|
||||
</tr>
|
||||
<? if ($it['it_id']) { ?>
|
||||
@ -339,7 +337,6 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
</td>
|
||||
</tr>
|
||||
<?}//if?>
|
||||
|
||||
<tr>
|
||||
<th scope="col">상품설명</th>
|
||||
<td colspan="3"> <?=editor_html('it_explan', $it['it_explan']);?></td>
|
||||
@ -352,22 +349,24 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><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>
|
||||
<td>
|
||||
<?=help("잠시 판매를 중단하거나 재고가 없을 경우에 체크하면 이 상품은 출력하지 않으며 주문도 할 수 없습니다.");?>
|
||||
<input type="checkbox" name="it_use" value="1" id="it_use" <? echo ($it['it_use']) ? "checked" : ""; ?>> 예
|
||||
</td>
|
||||
<th scope="col"><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>
|
||||
<td>
|
||||
<?=help("잠시 판매를 중단하거나 재고가 없을 경우에 체크하면 이 상품은 출력하지 않으며 주문도 할 수 없습니다.");?>
|
||||
<input type="checkbox" name="it_use" value="1" id="it_use" <? echo ($it['it_use']) ? "checked" : ""; ?>> 예
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section class="cbox">
|
||||
<?//=subtitle("이미지")?>
|
||||
<h2>이미지</h2>
|
||||
<?=$pg_anchor?>
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
@ -376,35 +375,35 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
<tr>
|
||||
<th scope="col">이미지(대)</th>
|
||||
<td>
|
||||
<input type="file" name="it_limg1">
|
||||
<?
|
||||
$limg1 = G4_DATA_PATH."/item/{$it[it_id]}_l1";
|
||||
if (file_exists($limg1)) {
|
||||
$size = getimagesize($limg1);
|
||||
echo "<img src='".G4_ADMIN_URL."/img/icon_viewer.gif' border=0 align=absmiddle onclick=\"imageview('limg1', $size[0], $size[1]);\"><input type=checkbox name=it_limg1_del value='1'>삭제";
|
||||
echo "<div id='limg1' style='left:0; top:0; z-index:+1; display:none; position:absolute;'><img src='".G4_DATA_URL."/item/{$it[it_id]}_l1' border=1></div>";
|
||||
}
|
||||
?>
|
||||
<input type="file" name="it_limg1">
|
||||
<?
|
||||
$limg1 = G4_DATA_PATH."/item/{$it[it_id]}_l1";
|
||||
if (file_exists($limg1)) {
|
||||
$size = getimagesize($limg1);
|
||||
echo "<img src='".G4_ADMIN_URL."/img/icon_viewer.gif' border=\"0\" onclick=\"imageview('limg1', $size[0], $size[1]);\"><input type=\"checkbox\" name=\"it_limg1_del\" value=\"1\">삭제";
|
||||
echo "<div id='limg1' style='left:0; top:0; z-index:+1; display:none; position:absolute;'><img src='".G4_DATA_URL."/item/{$it[it_id]}_l1' border=\"1\"></div>";
|
||||
}
|
||||
?>
|
||||
|
||||
<?
|
||||
if (function_exists("imagecreatefromjpeg")) {
|
||||
//echo "<input type=checkbox name=createimage value='1'> <FONT COLOR=FF6600>이미지(중), 이미지(소)를 자동생성 하시려면 체크하세요. JPG 파일만 가능합니다.</FONT> ";
|
||||
echo "<br><input type=checkbox name=createimage value='1'> 중, 소 이미지를 자동으로 생성하시는 경우에 체크하세요. (JPG 파일만 가능)";
|
||||
echo help("이미지(중) 이미지(소) 의 사이즈를 환경설정에서 정한 폭과 높이로 자동생성합니다.\n\nJPG 파일만 가능합니다.");
|
||||
}
|
||||
?>
|
||||
<?
|
||||
if (function_exists("imagecreatefromjpeg")) {
|
||||
//echo "<input type=checkbox name=createimage value='1'> <FONT COLOR=FF6600>이미지(중), 이미지(소)를 자동생성 하시려면 체크하세요. JPG 파일만 가능합니다.</FONT> ";
|
||||
echo "<br><input type=\"checkbox\" name=\"createimage\" value='1'> 중, 소 이미지를 자동으로 생성하시는 경우에 체크하세요. (JPG 파일만 가능)";
|
||||
echo help("이미지(중) 이미지(소) 의 사이즈를 환경설정에서 정한 폭과 높이로 자동생성합니다.\n\nJPG 파일만 가능합니다.");
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col">이미지(중)</th>
|
||||
<td>
|
||||
<input type="file" name="it_mimg">
|
||||
<input type="file" name="it_mimg">
|
||||
<?
|
||||
$mimg = G4_DATA_PATH."/item/{$it[it_id]}_m";
|
||||
if (file_exists($mimg)) {
|
||||
$size = getimagesize($mimg);
|
||||
echo "<img src='".G4_ADMIN_URL."/img/icon_viewer.gif' border=0 align=absmiddle onclick=\"imageview('mimg', $size[0], $size[1]);\"><input type=checkbox name=it_mimg_del value='1'>삭제";
|
||||
echo "<div id='mimg' style='left:0; top:0; z-index:+1; display:none; position:absolute;'><img src='".G4_DATA_URL."/item/{$it[it_id]}_m' border=1></div>";
|
||||
echo "<img src='".G4_ADMIN_URL."/img/icon_viewer.gif' border=\"0\" onclick=\"imageview('mimg', $size[0], $size[1]);\"><input type=\"checkbox\" name=\"it_mimg_del\" value='1'>삭제";
|
||||
echo "<div id='mimg' style='left:0; top:0; z-index:+1; display:none; position:absolute;'><img src='".G4_DATA_URL."/item/{$it[it_id]}_m' border=\"1\"></div>";
|
||||
}
|
||||
?>
|
||||
<?=help("업로드 하지 않으면 기본 noimage 로 출력합니다.");?>
|
||||
@ -418,27 +417,26 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
$simg = G4_DATA_PATH."/item/{$it[it_id]}_s";
|
||||
if (file_exists($simg)) {
|
||||
$size = getimagesize($simg);
|
||||
echo "<img src='".G4_ADMIN_URL."/img/icon_viewer.gif' border=0 align=absmiddle onclick=\"imageview('simg', $size[0], $size[1]);\"><input type=checkbox name=it_simg_del value='1'>삭제";
|
||||
echo "<div id='simg' style='left:0; top:0; z-index:+1; display:none; position:absolute;'><img src='".G4_DATA_URL."/item/{$it[it_id]}_s' border=1></div>";
|
||||
echo "<img src='".G4_ADMIN_URL."/img/icon_viewer.gif' border=\"0\" onclick=\"imageview('simg', $size[0], $size[1]);\"><input type=\"checkbox\" name=\"it_simg_del\" value='1'>삭제";
|
||||
echo "<div id='simg' style='left:0; top:0; z-index:+1; display:none; position:absolute;'><img src='".G4_DATA_URL."/item/{$it[it_id]}_s' border=\"1\"></div>";
|
||||
}
|
||||
?>
|
||||
<?=help("업로드 하지 않으면 기본 noimage 로 출력합니다.");?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<? for ($i=2; $i<=5; $i++) { // 이미지(대)는 5개 ?>
|
||||
<tr>
|
||||
<th scope="col">이미지(대)<?=$i?></th>
|
||||
<td>
|
||||
<input type="file" name="it_limg<?=$i?>">
|
||||
<?
|
||||
$limg = G4_DATA_PATH."/item/{$it[it_id]}_l{$i}";
|
||||
if (file_exists($limg)) {
|
||||
$size = getimagesize($limg);
|
||||
echo "<img src='".G4_ADMIN_URL."/img/icon_viewer.gif' border=0 align=absmiddle onclick=\"imageview('limg$i', $size[0], $size[1]);\"><input type=checkbox name=it_limg{$i}_del value='1'>삭제";
|
||||
echo "<span id=limg{$i} style='left:0; top:0; z-index:+1; display:none; position:absolute;'><img src='".G4_DATA_URL."/item/{$it[it_id]}_l{$i}' border=1></div>";
|
||||
}
|
||||
?>
|
||||
<input type="file" name="it_limg<?=$i?>">
|
||||
<?
|
||||
$limg = G4_DATA_PATH."/item/{$it[it_id]}_l{$i}";
|
||||
if (file_exists($limg)) {
|
||||
$size = getimagesize($limg);
|
||||
echo "<img src='".G4_ADMIN_URL."/img/icon_viewer.gif' border=\"0\" onclick=\"imageview('limg$i', $size[0], $size[1]);\"><input type=\"checkbox\" name=\"it_limg{$i}_del\" value='1'>삭제";
|
||||
echo "<span id=\"limg{$i}\" style='left:0; top:0; z-index:+1; display:none; position:absolute;'><img src='".G4_DATA_URL."/item/{$it[it_id]}_l{$i}' border=\"1\"></div>";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
@ -446,15 +444,12 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
</section>
|
||||
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" value="확인" class="btn_submit" accesskey="s">
|
||||
<a href="./itemlist.php?<?=$qstr?>">목록</a>
|
||||
</div>
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" value="확인" class="btn_submit" accesskey="s">
|
||||
<a href="./itemlist.php?<?=$qstr?>">목록</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<!--선택된 목록 / 등록된 목록 구조 다시 짜야함 start-->
|
||||
<!--2013-03-26 김혜련 선택된 목록 / 등록된 목록 구조 다시 짜야함 start-->
|
||||
|
||||
<?//=subtitle("선택정보")?>
|
||||
<table width=100% cellpadding=0 cellspacing=0 border=0>
|
||||
@ -465,14 +460,14 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
<colgroup width=35% bgcolor=#FFFFFF></colgroup>
|
||||
<tr><td colspan=5 height=2 bgcolor=0E87F9></td></tr>
|
||||
<tr>
|
||||
<td colspan=5>
|
||||
<table width=100% cellpadding=0 cellspacing=0>
|
||||
<tr class=ht align=center>
|
||||
<td width=50%><b>선택된 목록</b></td>
|
||||
<td colspan=5>
|
||||
<table width=100% cellpadding=0 cellspacing=0>
|
||||
<tr class=ht align=center>
|
||||
<td width=50%><b>선택된 목록</b></td>
|
||||
<td width=50%><b>등록된 목록</b></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
@ -496,21 +491,21 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
$sql2 = " select ca_name from {$g4['yc4_category_table']} where ca_id = '{$row['ca_id']}' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
|
||||
// 김선용 2006.10
|
||||
if(file_exists(G4_DATA_PATH."/item/{$row['it_id']}_s"))
|
||||
$it_image = "{$row['it_id']}_s";
|
||||
else
|
||||
$it_image = "";
|
||||
// 김선용 2006.10
|
||||
if(file_exists(G4_DATA_PATH."/item/{$row['it_id']}_s"))
|
||||
$it_image = "{$row['it_id']}_s";
|
||||
else
|
||||
$it_image = "";
|
||||
|
||||
echo "<option value='{$row['it_id']}/$it_image/{$row['it_amount']}'>{$row2['ca_name']} : ".cut_str(get_text(strip_tags($row['it_name'])),30);
|
||||
$str[] = $row['it_id'];
|
||||
}
|
||||
$str = implode(",", $str);
|
||||
$str = implode(",", $str);
|
||||
?>
|
||||
</select>
|
||||
<input type='hidden' name='it_list' value='<?=$str?>'>
|
||||
</td>
|
||||
<td rowspan=2 width=20 bgcolor=#FFFFFF>◀</td>
|
||||
<td rowspan=2 width=20 bgcolor=#FFFFFF>◀</td>
|
||||
<td align="center">상품목록<br><span id="add_span" style="line-height:200%"></span></td>
|
||||
<td>
|
||||
<script>
|
||||
@ -530,15 +525,15 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
</script>
|
||||
※ 상품 선택후 <FONT COLOR="#0E87F9">더블클릭하면 왼쪽에 추가됨</FONT><br>※ 한 번 클릭시 상품이미지/상품금액 출력<br>
|
||||
<select onchange="search_relation(this)">
|
||||
<option value=''>분류별 관련상품
|
||||
<option value=''>----------------------
|
||||
<?
|
||||
$sql = " select ca_id, ca_name from {$g4['yc4_category_table']} where length(ca_id) = 2 order by ca_id ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
echo "<option value='{$row['ca_id']}'>{$row['ca_name']}\n";
|
||||
}
|
||||
?>
|
||||
<option value=''>분류별 관련상품</option>
|
||||
<option value=''>----------------------</option>
|
||||
<?
|
||||
$sql = " select ca_id, ca_name from {$g4['yc4_category_table']} where length(ca_id) = 2 order by ca_id ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
echo "<option value='{$row['ca_id']}'>{$row['ca_name']}\n";
|
||||
}
|
||||
?>
|
||||
</select><br>
|
||||
<select id='relation' size=8 style='width:250px; background-color:#F6F6F6;' onclick="relation_img(this.value, 'add_span')" ondblclick="relation_add(this);">
|
||||
<?
|
||||
@ -553,11 +548,11 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
$sql2 = " select ca_name from $g4[yc4_category_table] where ca_id = '$row[ca_id]' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
|
||||
// 김선용 2006.10
|
||||
if(file_exists("{$g4['path']}/data/item/{$row['it_id']}_s"))
|
||||
$it_image = "{$row['it_id']}_s";
|
||||
else
|
||||
$it_image = "";
|
||||
// 김선용 2006.10
|
||||
if(file_exists("{$g4['path']}/data/item/{$row['it_id']}_s"))
|
||||
$it_image = "{$row['it_id']}_s";
|
||||
else
|
||||
$it_image = "";
|
||||
|
||||
echo "<option value='$row[it_id]/$it_image/{$row['it_amount']}'>$row2[ca_name] : ".cut_str(get_text(strip_tags($row[it_name])),30);
|
||||
}
|
||||
@ -566,24 +561,24 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
</select>
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
|
||||
// 김선용 2006.10
|
||||
function relation_img(name, id)
|
||||
{
|
||||
var item_image_url = "";
|
||||
// 김선용 2006.10
|
||||
function relation_img(name, id)
|
||||
{
|
||||
var item_image_url = "";
|
||||
if(!name) return;
|
||||
temp = name.split("/");
|
||||
if(temp[1] == ''){
|
||||
temp[1] = "no_image.gif";
|
||||
item_image_url = "<?=G4_SHOP_URL?>/img";
|
||||
} else {
|
||||
temp = name.split("/");
|
||||
if(temp[1] == ''){
|
||||
temp[1] = "no_image.gif";
|
||||
item_image_url = "<?=G4_SHOP_URL?>/img";
|
||||
} else {
|
||||
item_image_url = "<?=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 = 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+" 원";
|
||||
}
|
||||
|
||||
function relation_add(fld)
|
||||
function relation_add(fld)
|
||||
{
|
||||
var f = document.fitemform;
|
||||
var len = f.relationselect.length;
|
||||
@ -636,15 +631,15 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
var f = fitemform;
|
||||
//var str = '';
|
||||
//var comma = '';
|
||||
var str = new Array();
|
||||
var str = new Array();
|
||||
for (i=0; i<f.relationselect.length; i++) {
|
||||
//str += comma + f.relationselect.options[i].value;
|
||||
//comma = ',';
|
||||
temp = f.relationselect.options[i].value.split("/");
|
||||
str[i] = temp[0]; // 상품ID 만 저장
|
||||
temp = f.relationselect.options[i].value.split("/");
|
||||
str[i] = temp[0]; // 상품ID 만 저장
|
||||
}
|
||||
//f.it_list.value = str;
|
||||
f.it_list.value = str.join(",");
|
||||
f.it_list.value = str.join(",");
|
||||
}
|
||||
</SCRIPT>
|
||||
</td>
|
||||
@ -675,7 +670,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<input type='hidden' name='ev_list' value='<?=$str?>'>
|
||||
<input type="hidden" name="ev_list" value="<?=$str?>">
|
||||
</td>
|
||||
<td>이벤트목록</td>
|
||||
<td>
|
||||
@ -754,14 +749,11 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!--선택된 목록 / 등록된 목록 구조 다시 짜야함 end-->
|
||||
|
||||
|
||||
|
||||
|
||||
<!--2013-03-26 김혜련 선택된 목록 / 등록된 목록 구조 다시 짜야함 end-->
|
||||
|
||||
<section class="cbox">
|
||||
<?//=subtitle("선택정보")?>
|
||||
<h2>선택정보</h2>
|
||||
<?=$pg_anchor?>
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
@ -770,10 +762,10 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
<col class="grid_5">
|
||||
</colgroup>
|
||||
<tr>
|
||||
<th scope="col"></th>
|
||||
<td></td>
|
||||
<th scope="col"></th>
|
||||
<td></td>
|
||||
<th scope="col"></th>
|
||||
<td></td>
|
||||
<th scope="col"></th>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col">상단이미지</th>
|
||||
@ -783,14 +775,14 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
$himg_str = "";
|
||||
$himg = G4_DATA_PATH."/item/{$it['it_id']}_h";
|
||||
if (file_exists($himg)) {
|
||||
echo "<input type=checkbox name=it_himg_del value='1'>삭제";
|
||||
echo "<input type=\"checkbox\" name=\"it_himg_del\" value=\"1\">삭제";
|
||||
$himg_str = "<img src='".G4_DATA_URL."/item/{$it['it_id']}_h' border=0>";
|
||||
}
|
||||
?>
|
||||
<?=help("상품상세설명 페이지 상단에 출력하는 이미지입니다.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<? if ($himg_str) { echo "<tr><td colspan=4>$himg_str</td></tr>"; } ?>
|
||||
<? if ($himg_str) { echo "<tr><td colspan=\"4\">$himg_str</td></tr>"; } ?>
|
||||
<tr>
|
||||
<th scope="col">하단이미지</th>
|
||||
<td colspan="3">
|
||||
@ -799,20 +791,20 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
$timg_str = "";
|
||||
$timg = G4_DATA_PATH."/item/{$it['it_id']}_t";
|
||||
if (file_exists($timg)) {
|
||||
echo "<input type=checkbox name=it_timg_del value='1'>삭제";
|
||||
$timg_str = "<img src='".G4_DATA_URL."/item/{$it['it_id']}_t' border=0>";
|
||||
echo "<input type=\"checkbox\" name=\"it_timg_del\" value=\"1\">삭제";
|
||||
$timg_str = "<img src='".G4_DATA_URL."/item/{$it['it_id']}_t' border=\"0\">";
|
||||
}
|
||||
?>
|
||||
<?=help("상품상세설명 페이지 하단에 출력하는 이미지입니다.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<? if ($timg_str) { echo "<tr><td colspan=4>$timg_str</td></tr>"; } ?>
|
||||
<? if ($timg_str) { echo "<tr><td colspan=\"4\">$timg_str</td></tr>"; } ?>
|
||||
<tr>
|
||||
<th scope="col">상품상단내용 <?=help("상품상세설명 페이지 상단에 출력하는 HTML 내용입니다.", -150);?></th>
|
||||
<th scope="col"><?=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="col"><?=help("상품상세설명 페이지 하단에 출력하는 HTML 내용입니다.", -150);?>상품하단내용</th>
|
||||
<td colspan="3"><?=editor_html('it_tail_html', $it['it_tail_html']);?></td>
|
||||
</tr>
|
||||
<? if ($w == "u") { ?>
|
||||
@ -827,10 +819,10 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" value="확인" class="btn_submit" accesskey="s">
|
||||
<a href="./itemlist.php?<?=$qstr?>">목록</a>
|
||||
</div>
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" value="확인" class="btn_submit" accesskey="s">
|
||||
<a href="./itemlist.php?<?=$qstr?>">목록</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
@ -28,61 +28,78 @@ $g4['title'] = $html_title;
|
||||
include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
?>
|
||||
|
||||
<?//=subtitle($html_title)?>
|
||||
<form name="frmnewwin" action="./newwinformupdate.php" onsubmit="return frmnewwin_check(this);" method="post">
|
||||
<input type="hidden" name="w" value="<? echo $w ?>">
|
||||
<input type="hidden" name="nw_id" value="<? echo $nw_id ?>">
|
||||
|
||||
<form name=frmnewwin method=post action="./newwinformupdate.php" onsubmit="return frmnewwin_check(this);" style="margin:0px;">
|
||||
<input type=hidden name=w value='<? echo $w ?>'>
|
||||
<input type=hidden name=nw_id value='<? echo $nw_id ?>'>
|
||||
<table cellpadding=0 cellspacing=0 width=100%>
|
||||
<colgroup width=15%>
|
||||
<colgroup width=35% bgcolor=#ffffff>
|
||||
<colgroup width=15%>
|
||||
<colgroup width=35% bgcolor=#ffffff>
|
||||
<tr><td colspan=4 height=2 bgcolor=#0E87F9></td></tr>
|
||||
<tr class=ht>
|
||||
<td>시간</td>
|
||||
<td colspan=3><input type=text class=ed name=nw_disable_hours size=5 value='<? echo $nw['nw_disable_hours'] ?>' required itemname="시간"> 시간 동안 다시 띄우지 않음</td>
|
||||
</tr>
|
||||
<tr class=ht>
|
||||
<td>시작일시</td>
|
||||
<td>
|
||||
<input type=text class=ed name=nw_begin_time size=21 maxlength=19 value='<? echo $nw['nw_begin_time'] ?>' required itemname="시작일시">
|
||||
<input type=checkbox name=nw_begin_chk value="<? echo date("Y-m-d 00:00:00", G4_SERVER_TIME); ?>" 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;">오늘
|
||||
<td>종료일시</td>
|
||||
<td>
|
||||
<input type=text class=ed name=nw_end_time size=21 maxlength=19 value='<? echo $nw['nw_end_time'] ?>' required itemname="종료일시">
|
||||
<input type=checkbox name=nw_end_chk value="<? echo date("Y-m-d 23:59:59", G4_SERVER_TIME+(60*60*24*7)); ?>" 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;">오늘+7일
|
||||
</tr>
|
||||
<tr class=ht>
|
||||
<td>창위치 왼쪽</td>
|
||||
<td><input type=text class=ed name=nw_left size=5 value='<? echo $nw['nw_left'] ?>' required itemname="창위치 왼쪽"></td>
|
||||
<td>창위치 위</td>
|
||||
<td><input type=text class=ed name=nw_top size=5 value='<? echo $nw['nw_top'] ?>' required itemname="창위치 위"></td>
|
||||
</tr>
|
||||
<tr class=ht>
|
||||
<td>창크기 폭</td>
|
||||
<td><input type=text class=ed name=nw_width size=5 value='<? echo $nw['nw_width'] ?>' required itemname="창크기폭"></td>
|
||||
<td>창크기 높이</td>
|
||||
<td><input type=text class=ed name=nw_height size=5 value='<? echo $nw['nw_height'] ?>' required itemname="창크기높이"></td>
|
||||
</tr>
|
||||
<tr class=ht>
|
||||
<td>창제목</td>
|
||||
<td colspan=3><input type=text class=ed name=nw_subject size=80 value='<? echo stripslashes($nw['nw_subject']) ?>' required itemname="제목"></td>
|
||||
</tr>
|
||||
<input type=hidden name=nw_content_html value=1>
|
||||
<tr>
|
||||
<td>내용</td>
|
||||
<td colspan=3 style='padding-top:5px; padding-bottom:5px;'><?=editor_html('nw_content', $nw['nw_content']);?></td>
|
||||
</tr>
|
||||
<tr><td colspan=4 height=1 bgcolor=CCCCCC></td></tr>
|
||||
</table>
|
||||
<section class="cbox">
|
||||
<h2>새창 입력 수정</h2>
|
||||
<?=$pg_anchor?>
|
||||
<table class="frm_tbl">
|
||||
<colgroup>
|
||||
<col class="grid_3">
|
||||
<col class="grid_5">
|
||||
<col class="grid_3">
|
||||
<col class="grid_5">
|
||||
</colgroup>
|
||||
<tr>
|
||||
<th scope="col"><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>
|
||||
<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>
|
||||
<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;">
|
||||
<label for="nw_end_chk">오늘+7일</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<td colspan="3"><?=editor_html('nw_content', $nw['nw_content']);?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<p align=center>
|
||||
<input type=submit class=btn1 accesskey='s' value=' 확 인 '>
|
||||
<input type=button class=btn1 accesskey='l' value=' 목 록 ' onclick="document.location.href='./newwinlist.php';">
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" value="확인" class="btn_submit" accesskey="s">
|
||||
<a href="./newwinlist.php">목록</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script language="javascript">
|
||||
<script>
|
||||
function frmnewwin_check(f)
|
||||
{
|
||||
errmsg = "";
|
||||
|
||||
Reference in New Issue
Block a user