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

This commit is contained in:
chicpro
2013-06-10 18:50:37 +09:00
12 changed files with 267 additions and 292 deletions

View File

@ -571,74 +571,6 @@ $pg_anchor = '<ul class="anchor">
<td>
<input type="text" name="de_dacom_mertkey" value="<?php echo $default['de_dacom_mertkey']; ?>" id="de_dacom_mertkey" size="40">
</td>
<!-- <td>LG텔레콤 테스트 모드</td>
<td>
<input type="checkbox" name="de_dacom_test" value="1" <?php echo $default['de_dacom_test']?"checked":""; ?>>
테스트로 결제하실 경우에 체크하세요.
</td> -->
</tr>
<tr style="display:none;">
<th scope="row"><label for="de_inicis_mid">이니시스 아이디</label></th>
<td>
<input type="text" name="de_inicis_mid" value="<?php echo $default['de_inicis_mid']; ?>" id="de_inicis_mid" size="40">
</td>
<th scope="row"><label for="de_inicis_passwd">이니시스 패스워드</label></th>
<td>
<input type="text" name="de_inicis_passwd" value="<?php echo $default['de_inicis_passwd']; ?>" id="de_inicis_passwd">
</td>
</tr>
<tr style="display:none">
<th scope="row"><label for="de_banktown_mid">뱅크타운 상점ID</label></th>
<td>
<input type="text" name="de_banktown_mid" value="<?php echo $default['de_banktown_mid']; ?>" id="de_banktown_mid" size="40">
</td>
<th scope="row"><label for="de_banktown_auth_key">뱅크타운 라이센스 키<!-- AuthKey --></label></th>
<td>
<input type="text" name="de_banktown_auth_key" value="<?php echo $default['de_banktown_auth_key']; ?>" id="de_banktown_auth_key" size="40" maxlength="32">
</td>
</tr>
<tr style="display:none">
<th scope="row"><label for="de_allthegate_mid">올더게이트 몰ID</label></th>
<td>
<input type="text" name="de_allthegate_mid" value="<?php echo $default['de_allthegate_mid']; ?>" id="de_allthegate_mid" size="40">
</td>
</tr>
<tr style="display:none">
<th scope="row"><label for="de_allat_partner_id">올앳 파트너 ID</label></th>
<td>
<input type="text" name="de_allat_partner_id" value="<?php echo $default['de_allat_partner_id']; ?>" id="de_allat_partner_id" size="40">
</td>
<th scope="row"><label for="de_allat_prefix">주문번호 Prefix</label></th>
<td>
<input type="text" name="de_allat_prefix" value="<?php echo $default['de_allat_prefix']; ?>" id="de_allat_prefix"> 3자리
</td>
</tr>
<tr style="display:none">
<th scope="row"><label for="de_allat_formkey">올앳 FormKey 값</label></th>
<td>
<input type="text" name="de_allat_formkey" value="<?php echo $default['de_allat_formkey']; ?>" id="de_allat_formkey" size="40">
</td>
<th scope="row"><label for="de_allat_crosskey">올앳 CrossKey 값</label></th>
<td>
<input type="text" name="de_allat_crosskey" value="<?php echo $default['de_allat_crosskey']; ?>" id="de_allat_crosskey" size="40">
</td>
</tr>
<tr style="display:none">
<th scope="row"><label for="de_tgcorp_mxid">티지코프 ID</label></th>
<td>
<input type="text" name="de_tgcorp_mxid" value="<?php echo $default['de_tgcorp_mxid']; ?>" id="de_tgcorp_mxid" size="40">
</td>
<th scope="row"><label for="de_tgcorp_mxotp">티지코프 접근키</label></th>
<td>
<input type="text" name="de_tgcorp_mxotp" value="<?php echo $default['de_tgcorp_mxotp']; ?>" id="de_tgcorp_mxotp" size="40">
</td>
</tr>
<tr style="display:none">
<th scope="row"><label for="de_kspay_id">KSPAY 상점아이디</label></th>
<td>
<input type="text" name="de_kspay_id" value="<?php echo $default['de_kspay_id']; ?>" id="de_kspay_id" size="40">
</td>
</tr>
</tbody>
</table>
</section>
@ -885,13 +817,6 @@ $pg_anchor = '<ul class="anchor">
<th scope="row">서버 IP</th>
<td><?php echo ($_SERVER['SERVER_ADDR']?$_SERVER['SERVER_ADDR']:$_SERVER['LOCAL_ADDR']); ?></td>
</tr>
<tr>
<th scope="row"><label for="de_register">프로그램 등록번호</label></th>
<td>
<?php echo help("정품에 한해 발급해 드립니다. 등록번호가 없거나 틀리면, 주문서를 확인할 수 없습니다.\n등록번호는 서버 IP, MYSQL USER, DB 를 알려주셔야 발급이 가능합니다.", -180, -160); ?>
<input type="text" name="de_register" value="<?php echo $default['de_register']; ?>" id="de_register" class="frm_input required" required size="30">
</td>
</tr>
</tbody>
</table>
</section>

View File

@ -120,21 +120,8 @@ $sql = " update {$g4['shop_default_table']}
de_scroll_banner_use = '$de_scroll_banner_use',
de_cart_skin = '$de_cart_skin',
de_register = '$de_register',
de_inicis_mid = '$de_inicis_mid',
de_inicis_passwd = '$de_inicis_passwd',
de_dacom_mid = '$de_dacom_mid',
de_dacom_test = '$de_dacom_test',
de_dacom_mertkey = '$de_dacom_mertkey',
de_allthegate_mid = '$de_allthegate_mid',
de_kcp_mid = '$de_kcp_mid',
de_iche_use = '$de_iche_use',
de_allat_partner_id = '$de_allat_partner_id',
de_allat_prefix = '$de_allat_prefix',
de_allat_formkey = '$de_allat_formkey',
de_allat_crosskey = '$de_allat_crosskey',
de_tgcorp_mxid = '$de_tgcorp_mxid',
de_tgcorp_mxotp = '$de_tgcorp_mxotp',
de_kspay_id = '$de_kspay_id',
de_sms_cont1 = '$de_sms_cont1',
de_sms_cont2 = '$de_sms_cont2',
de_sms_cont3 = '$de_sms_cont3',
@ -145,7 +132,6 @@ $sql = " update {$g4['shop_default_table']}
de_sms_use3 = '$de_sms_use3',
de_sms_use4 = '$de_sms_use4',
de_sms_use5 = '$de_sms_use5',
de_xonda_id = '$de_xonda_id',
de_sms_hp = '$de_sms_hp',
de_item_ps_use = '$de_item_ps_use',
de_code_dup_use = '$de_code_dup_use',

View File

@ -0,0 +1,106 @@
<?php
// itemlistdelete.php 에서 include 하는 파일
if (!defined('_GNUBOARD_')) exit;
if (!defined('_ITEM_DELETE_')) exit; // 개별 페이지 접근 불가
if (!function_exists("itemdelete")) {
// 상품삭제
// 메세지출력후 주문개별내역페이지로 이동
function itemdelete($it_id)
{
global $g4, $is_admin;
$sql = " select it_explan, it_mobile_explan, it_img1, it_img2, it_img3, it_img4, it_img5, it_img6, it_img7, it_img8, it_img9, it_img10
from {$g4['shop_item_table']} where it_id = '$it_id' ";
$it = sql_fetch($sql);
// 상품 이미지 삭제
$dir_list = array();
for($i=1; $i<=10; $i++) {
$file = G4_DATA_PATH.'/item/'.$it['it_img'.$i];
if(is_file($file) && $it['it_img'.$i]) {
@unlink($file);
$dir = dirname($file);
delete_item_thumbnail($dir, basename($file));
if(!in_array($dir, $dir_list))
$dir_list[] = $dir;
}
}
// 이미지디렉토리 삭제
for($i=0; $i<count($dir_list); $i++) {
if(is_dir($dir_list[$i]))
rmdir($dir_list[$i]);
}
// 상, 하단 이미지 삭제
@unlink(G4_DATA_PATH."/item/$it_id"."_h");
@unlink(G4_DATA_PATH."/item/$it_id"."_t");
// 장바구니 삭제
$sql = " delete from {$g4['shop_cart_table']} where it_id = '$it_id' ";
sql_query($sql);
// 이벤트삭제
$sql = " delete from {$g4['shop_event_item_table']} where it_id = '$it_id' ";
sql_query($sql);
// 사용후기삭제
$sql = " delete from {$g4['shop_item_ps_table']} where it_id = '$it_id' ";
sql_query($sql);
// 상품문의삭제
$sql = " delete from {$g4['shop_item_qa_table']} where it_id = '$it_id' ";
sql_query($sql);
// 관련상품삭제
$sql = " delete from {$g4['shop_item_relation_table']} where it_id = '$it_id' or it_id2 = '$it_id' ";
sql_query($sql);
//------------------------------------------------------------------------
// HTML 내용에서 에디터에 올라간 이미지의 경로를 얻어 삭제함
//------------------------------------------------------------------------
$imgs = get_editor_image($it['it_explan']);
for($i=0;$i<count($imgs[1]);$i++) {
$p = parse_url($imgs[1][$i]);
if(strpos($p['path'], "/data/") != 0)
$data_path = preg_replace("/^\/.*\/data/", "/data", $p['path']);
else
$data_path = $p['path'];
$destfile = G4_PATH.$data_path;
if(is_file($destfile))
@unlink($destfile);
}
$imgs = get_editor_image($it['it_mobile_explan']);
for($i=0;$i<count($imgs[1]);$i++) {
$p = parse_url($imgs[1][$i]);
if(strpos($p['path'], "/data/") != 0)
$data_path = preg_replace("/^\/.*\/data/", "/data", $p['path']);
else
$data_path = $p['path'];
$destfile = G4_PATH.$data_path;
if(is_file($destfile))
@unlink($destfile);
}
//------------------------------------------------------------------------
// 상품 삭제
$sql = " delete from {$g4['shop_item_table']} where it_id = '$it_id' ";
sql_query($sql);
}
}
itemdelete($it_id);
?>

View File

@ -10,102 +10,6 @@ if ($w == '' || $w == 'u')
else if ($w == 'd')
auth_check($auth[$sub_menu], "d");
// 상품삭제
// 메세지출력후 주문개별내역페이지로 이동
function itemdelete($it_id)
{
global $g4, $is_admin;
$sql = " select it_explan, it_mobile_explan, it_img1, it_img2, it_img3, it_img4, it_img5, it_img6, it_img7, it_img8, it_img9, it_img10
from {$g4['shop_item_table']} where it_id = '$it_id' ";
$it = sql_fetch($sql);
// 상품 이미지 삭제
$dir_list = array();
for($i=1; $i<=10; $i++) {
$file = G4_DATA_PATH.'/item/'.$it['it_img'.$i];
if(is_file($file) && $it['it_img'.$i]) {
@unlink($file);
$dir = dirname($file);
delete_item_thumbnail($dir, basename($file));
if(!in_array($dir, $dir_list))
$dir_list[] = $dir;
}
}
// 이미지디렉토리 삭제
for($i=0; $i<count($dir_list); $i++) {
if(is_dir($dir_list[$i]))
rmdir($dir_list[$i]);
}
// 상, 하단 이미지 삭제
@unlink(G4_DATA_PATH."/item/$it_id"."_h");
@unlink(G4_DATA_PATH."/item/$it_id"."_t");
// 장바구니 삭제
$sql = " delete from {$g4['shop_cart_table']} where it_id = '$it_id' ";
sql_query($sql);
// 이벤트삭제
$sql = " delete from {$g4['shop_event_item_table']} where it_id = '$it_id' ";
sql_query($sql);
// 사용후기삭제
$sql = " delete from {$g4['shop_item_ps_table']} where it_id = '$it_id' ";
sql_query($sql);
// 상품문의삭제
$sql = " delete from {$g4['shop_item_qa_table']} where it_id = '$it_id' ";
sql_query($sql);
// 관련상품삭제
$sql = " delete from {$g4['shop_item_relation_table']} where it_id = '$it_id' or it_id2 = '$it_id' ";
sql_query($sql);
//------------------------------------------------------------------------
// HTML 내용에서 에디터에 올라간 이미지의 경로를 얻어 삭제함
//------------------------------------------------------------------------
$imgs = get_editor_image($it['it_explan']);
for($i=0;$i<count($imgs[1]);$i++) {
$p = parse_url($imgs[1][$i]);
if(strpos($p['path'], "/data/") != 0)
$data_path = preg_replace("/^\/.*\/data/", "/data", $p['path']);
else
$data_path = $p['path'];
$destfile = G4_PATH.$data_path;
if(is_file($destfile))
@unlink($destfile);
}
$imgs = get_editor_image($it['it_mobile_explan']);
for($i=0;$i<count($imgs[1]);$i++) {
$p = parse_url($imgs[1][$i]);
if(strpos($p['path'], "/data/") != 0)
$data_path = preg_replace("/^\/.*\/data/", "/data", $p['path']);
else
$data_path = $p['path'];
$destfile = G4_PATH.$data_path;
if(is_file($destfile))
@unlink($destfile);
}
//------------------------------------------------------------------------
// 상품 삭제
$sql = " delete from {$g4['shop_item_table']} where it_id = '$it_id' ";
sql_query($sql);
}
@mkdir(G4_DATA_PATH."/item", 0707);
@chmod(G4_DATA_PATH."/item", 0707);
@ -428,6 +332,7 @@ else if ($w == "u")
where it_id = '$it_id' ";
sql_query($sql);
}
/*
else if ($w == "d")
{
if ($is_admin != 'super')
@ -443,6 +348,7 @@ else if ($w == "d")
itemdelete($it_id);
}
*/
if ($w == "" || $w == "u")
{

View File

@ -135,7 +135,7 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
<a href="./itemsellrank.php" class="btn_add_optional">상품판매순위</a>
</div>
<form name="fitemlistupdate" method="post" action="./itemlistupdate.php" autocomplete="off">
<form name="fitemlistupdate" method="post" action="./itemlistupdate.php" onsubmit="return fitemlist_submit(this);" autocomplete="off">
<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; ?>">
@ -146,6 +146,7 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
<table>
<thead>
<tr>
<th scope="col" rowspan="2"><input type="checkbox" name="chkall" value="1" id="chkall" title="현재 페이지 게시판 전체선택" onclick="check_all(this.form)"></th>
<th scope="col" rowspan="2"><?php echo subject_sort_link('it_id', 'sca='.$sca); ?>상품코드 <span class="sound_only">순 정렬</span></a></th>
<th scope="col" colspan="2" rowspan="2">분류 및 <?php echo subject_sort_link('it_name', 'sca='.$sca); ?>상품명 <span class="sound_only">순 정렬</span></a></th>
<th scope="col" id="sit_amt"><?php echo subject_sort_link('it_price', 'sca='.$sca); ?>판매가격 <span class="sound_only">순 정렬</span></a></th>
@ -169,6 +170,9 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
$gallery = $row['it_gallery'] ? 'Y' : '';
?>
<tr>
<td rowspan="2">
<input type="checkbox" name="chk[]" value="<?php echo $i ?>" id="chk_<?php echo $i ?>" title="<?php echo get_text($row['bo_subject']) ?> 게시판선택">
</td>
<td rowspan="2">
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
<?php echo $row['it_id']; ?>
@ -191,7 +195,7 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
<a href="<?php echo $href; ?>"><img src="./img/icon_view.jpg" alt="<?php echo htmlspecialchars2(cut_str($row['it_name'],250, "")); ?> 보기"></a>
<a href="./item_copy.php?it_id=<?php echo $row['it_id']; ?>&amp;ca_id=<?php echo $row['ca_id']; ?>" class="item_copy" target="_blank"><img src="./img/icon_copy.jpg" alt="<?php echo htmlspecialchars2(cut_str($row['it_name'],250, "")); ?> 복사"></a>
<a href="./itemform.php?w=u&amp;it_id=<?php echo $row['it_id']; ?>&amp;ca_id=<?php echo $row['ca_id']; ?>&amp;<?php echo $qstr; ?>"><img src="./img/icon_mod.jpg" alt="<?php echo htmlspecialchars2(cut_str($row['it_name'],250, "")); ?> 수정"></a>
<a href="./itemformupdate.php?w=d&amp;it_id=<?php echo $row['it_id']; ?>&amp;ca_id=<?php echo $row['ca_id']; ?>&amp;<?php echo $qstr; ?>" onclick="return delete_confirm();"><img src="./img/icon_del.jpg" alt="<?php echo htmlspecialchars2(cut_str($row['it_name'],250, "")); ?> 삭제"></a>
<!-- <a href="./itemformupdate.php?w=d&amp;it_id=<?php echo $row['it_id']; ?>&amp;ca_id=<?php echo $row['ca_id']; ?>&amp;<?php echo $qstr; ?>" onclick="return delete_confirm();"><img src="./img/icon_del.jpg" alt="<?php echo htmlspecialchars2(cut_str($row['it_name'],250, "")); ?> 삭제"></a> -->
</td>
</tr>
<tr>
@ -206,9 +210,15 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
</tbody>
</table>
<div class="btn_confirm">
<input type="submit" value="일괄수정" class="btn_submit" accesskey="s">
<div class="btn_list">
<input type="submit" name="act_button" value="선택수정" onclick="document.pressed=this.value">
<?php if ($is_admin == 'super') { ?>
<input type="submit" name="act_button" value="선택삭제" onclick="document.pressed=this.value">
<?php } ?>
</div>
<!-- <div class="btn_confirm">
<input type="submit" value="일괄수정" class="btn_submit" accesskey="s">
</div> -->
</form>
</section>
@ -216,6 +226,22 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
<?php echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page="); ?>
<script>
function fitemlist_submit(f)
{
if (!is_checked("chk[]")) {
alert(document.pressed+" 하실 항목을 하나 이상 선택하세요.");
return false;
}
if(document.pressed == "선택삭제") {
if(!confirm("선택한 자료를 정말 삭제하시겠습니까?")) {
return false;
}
}
return true;
}
$(function() {
$(".item_copy").click(function() {
var href = $(this).attr("href");

View File

@ -4,24 +4,50 @@ include_once('./_common.php');
check_demo();
auth_check($auth[$sub_menu], "w");
// 판매가격 일괄수정
for ($i=0; $i<count($_POST['it_id']); $i++)
{
$sql = "update {$g4['shop_item_table']}
set ca_id = '{$_POST['ca_id'][$i]}',
it_name = '{$_POST['it_name'][$i]}',
it_cust_price = '{$_POST['it_cust_price'][$i]}',
it_price = '{$_POST['it_price'][$i]}',
it_point = '{$_POST['it_point'][$i]}',
it_stock_qty = '{$_POST['it_stock_qty'][$i]}',
it_use = '{$_POST['it_use'][$i]}',
it_order = '{$_POST['it_order'][$i]}'
where it_id = '{$_POST['it_id'][$i]}' ";
sql_query($sql);
if (!count($_POST['chk'])) {
alert($_POST['act_button']." 하실 항목을 하나 이상 체크하세요.");
}
if ($_POST['act_button'] == "선택수정") {
auth_check($auth[$sub_menu], 'w');
for ($i=0; $i<count($_POST['chk']); $i++) {
// 실제 번호를 넘김
$k = $_POST['chk'][$i];
$sql = "update {$g4['shop_item_table']}
set ca_id = '{$_POST['ca_id'][$k]}',
it_name = '{$_POST['it_name'][$k]}',
it_cust_price = '{$_POST['it_cust_price'][$k]}',
it_price = '{$_POST['it_price'][$k]}',
it_point = '{$_POST['it_point'][$k]}',
it_stock_qty = '{$_POST['it_stock_qty'][$k]}',
it_use = '{$_POST['it_use'][$k]}',
it_order = '{$_POST['it_order'][$k]}'
where it_id = '{$_POST['it_id'][$k]}' ";
sql_query($sql);
}
} else if ($_POST['act_button'] == "선택삭제") {
if ($is_admin != 'super')
alert('상품 삭제는 최고관리자만 가능합니다.');
auth_check($auth[$sub_menu], 'd');
// _ITEM_DELETE_ 상수를 선언해야 itemdelete.inc.php 가 정상 작동함
define('_ITEM_DELETE_', true);
for ($i=0; $i<count($_POST['chk']); $i++) {
// 실제 번호를 넘김
$k = $_POST['chk'][$i];
// include 전에 $it_id 값을 반드시 넘겨야 함
$it_id = $_POST['it_id'][$k];
include ('./itemdelete.inc.php');
}
}
//goto_url("./itemlist.php?sort1=$sort1&amp;sort2=$sort2&amp;sel_ca_id=$sel_ca_id&amp;sel_field=$sel_field&amp;search=$search&amp;page=$page");
goto_url("./itemlist.php?sca=$sca&amp;sst=$sst&amp;sod=$sod&amp;sfl=$sfl&amp;stx=$stx&amp;page=$page");
?>

View File

@ -545,36 +545,36 @@ input.required:focus {border:1px solid #b8c9c2;background:#21272e !important;col
#sit_inf_open th {padding:7px 10px;border:1px solid #fff;background:#f5f6fa;vertical-align:top;text-align:left}
#sit_inf_open td {padding:7px 10px;border:1px solid #fff;background:#f5f6fa;vertical-align:top}
/* 상품 상세보기 - 용후기 */
#sit_ps {margin:0 0 10px;padding:10px 10px 20px;border-bottom:1px solid #e9e9e9}
#sit_ps h2 {margin:0 0 10px}
/* 상품 상세보기 - 용후기 */
#sit_use {margin:0 0 10px;padding:10px 10px 20px;border-bottom:1px solid #e9e9e9}
#sit_use h2 {margin:0 0 10px}
/* 상품 상세보기 - 상품문의 */
#sit_qna {margin:0 0 10px;padding:10px 10px 20px;border-bottom:1px solid #e9e9e9}
#sit_qna h2 {margin:0 0 10px}
#sit_qna h3 {margin:0 0 10px}
#sit_qa {margin:0 0 10px;padding:10px 10px 20px;border-bottom:1px solid #e9e9e9}
#sit_qa h2 {margin:0 0 10px}
#sit_qa h3 {margin:0 0 10px}
#sit_qna_ol {margin:0 0 5px;padding:0;border-top:1px solid #e9e9e9;list-style:none}
.sit_qna_li {position:relative;padding:0 0 10px;border-bottom:1px solid #e9e9e9;background:#f5f6fa}
.sit_qna_li_title {display:block;margin:0;padding:10px;width:100%;border:0;background:transparent;text-align:left;cursor:pointer}
#sit_qa_ol {margin:0 0 5px;padding:0;border-top:1px solid #e9e9e9;list-style:none}
.sit_qa_li {position:relative;padding:0 0 10px;border-bottom:1px solid #e9e9e9;background:#f5f6fa}
.sit_qa_li_title {display:block;margin:0;padding:10px;width:100%;border:0;background:transparent;text-align:left;cursor:pointer}
.sit_qna_dl {margin:0;padding:0 10px;zoom:1}
.sit_qna_dl:after {display:block;visibility:hidden;clear:both;content:""}
.sit_qna_dl dt {float:left}
.sit_qna_dl dd {float:left;margin:0 20px 0 5px}
.sit_qa_dl {margin:0;padding:0 10px;zoom:1}
.sit_qa_dl:after {display:block;visibility:hidden;clear:both;content:""}
.sit_qa_dl dt {float:left}
.sit_qa_dl dd {float:left;margin:0 20px 0 5px}
.sit_qna_con {display:none;padding:10px 10px 0}
.sit_qna_con p {padding:0}
.sit_qna_qaq {margin:0 0 5px}
.sit_qna_con textarea {display:none}
.sit_qna_cmd {text-align:right}
.sit_qa_con {display:none;padding:10px 10px 0}
.sit_qa_con p {padding:0}
.sit_qa_qaq {margin:0 0 5px}
.sit_qa_con textarea {display:none}
.sit_qa_cmd {text-align:right}
.sit_qna_pw {display:none;position:absolute;top:30px;left:175px;padding:10px;width:348px;border:1px solid #000;background:#fff;text-align:center}
.sit_qna_pw span {display:block;margin:0 0 5px}
.sit_qa_pw {display:none;position:absolute;top:30px;left:175px;padding:10px;width:348px;border:1px solid #000;background:#fff;text-align:center}
.sit_qa_pw span {display:block;margin:0 0 5px}
#sit_qna_wbtn {margin:0 0 5px;text-align:right}
#sit_qa_wbtn {margin:0 0 5px;text-align:right}
#sit_qna_w {display:none}
#sit_qa_w {display:none}
/* 상품 상세보기 - 배송정보 */
#sit_dvr {margin:0 0 10px;padding:10px 10px 20px;border-bottom:1px solid #e9e9e9}

View File

@ -218,35 +218,35 @@ a.sanchor_on {background:#626870;color:#fff !important;text-decoration:none}
#sit_inf_open td {padding:0.5em 1em;border:1px solid #fff;background:#f5f6fa}
/* 상품 상세보기 - 사용후기 */
#sit_ps {margin:0 0 1em;padding:1em 1em 2em;border-bottom:1px solid #e9e9e9}
#sit_ps h2 {margin:0 0 1em}
#sit_use {margin:0 0 1em;padding:1em 1em 2em;border-bottom:1px solid #e9e9e9}
#sit_use h2 {margin:0 0 1em}
/* 상품 상세보기 - 상품문의 */
#sit_qna {margin:0 0 1em;padding:1em 1em 2em;border-bottom:1px solid #e9e9e9}
#sit_qna h2 {margin:0 0 1em}
#sit_qna h3 {margin:0 0 1em}
#sit_qa {margin:0 0 1em;padding:1em 1em 2em;border-bottom:1px solid #e9e9e9}
#sit_qa h2 {margin:0 0 1em}
#sit_qa h3 {margin:0 0 1em}
#sit_qna_ol {margin:0 0 0.5em;padding:0;border-top:1px solid #e9e9e9;list-style:none}
.sit_qna_li {position:relative;padding:0 0 1em;border-bottom:1px solid #e9e9e9;background:#f5f6fa}
.sit_qna_li_title {display:block;margin:0;padding:1em;width:100%;border:0;background:transparent;text-align:left;cursor:pointer}
#sit_qa_ol {margin:0 0 0.5em;padding:0;border-top:1px solid #e9e9e9;list-style:none}
.sit_qa_li {position:relative;padding:0 0 1em;border-bottom:1px solid #e9e9e9;background:#f5f6fa}
.sit_qa_li_title {display:block;margin:0;padding:1em;width:100%;border:0;background:transparent;text-align:left;cursor:pointer}
.sit_qna_dl {margin:0;padding:0 1em;zoom:1}
.sit_qna_dl:after {display:block;visibility:hidden;clear:both;content:""}
.sit_qna_dl dt {float:left}
.sit_qna_dl dd {float:left;margin:0 1.8em 0 0.3em}
.sit_qa_dl {margin:0;padding:0 1em;zoom:1}
.sit_qa_dl:after {display:block;visibility:hidden;clear:both;content:""}
.sit_qa_dl dt {float:left}
.sit_qa_dl dd {float:left;margin:0 1.8em 0 0.3em}
.sit_qna_con {display:none;padding:1em 1em 0}
.sit_qna_con p {padding:0}
.sit_qna_qaq {margin:0 0 0.3em}
.sit_qna_con textarea {display:none}
.sit_qna_cmd {text-align:right}
.sit_qa_con {display:none;padding:1em 1em 0}
.sit_qa_con p {padding:0}
.sit_qa_qaq {margin:0 0 0.3em}
.sit_qa_con textarea {display:none}
.sit_qa_cmd {text-align:right}
.sit_qna_pw {display:none;position:absolute;top:30px;left:175px;padding:1em;width:348px;border:1px solid #000;background:#fff;text-align:center}
.sit_qna_pw span {display:block;margin:0 0 0.3em}
.sit_qa_pw {display:none;position:absolute;top:30px;left:175px;padding:1em;width:348px;border:1px solid #000;background:#fff;text-align:center}
.sit_qa_pw span {display:block;margin:0 0 0.3em}
#sit_qna_wbtn {margin:0 0 0.3em;text-align:right}
#sit_qa_wbtn {margin:0 0 0.3em;text-align:right}
#sit_qna_w {display:none}
#sit_qa_w {display:none}
/* 상품 상세보기 - 배송정보 */
#sit_dvr {margin:0 0 1em;padding:1em 1em 2em;border-bottom:1px solid #e9e9e9}

View File

@ -145,8 +145,8 @@ function pg_anchor_m($anc_id) {
?>
<ul class="sanchor">
<li><a href="#sit_inf" <?php if ($anc_id == 'inf') echo 'class="sanchor_on"'; ?>>상품정보</a></li>
<li><a href="#sit_ps" <?php if ($anc_id == 'ps') echo 'class="sanchor_on"'; ?>>사용후기 <span class="item_use_count"></span></a></li>
<li><a href="#sit_qna" <?php if ($anc_id == 'qna') echo 'class="sanchor_on"'; ?>>상품문의 <span class="item_qa_count"></span></a></li>
<li><a href="#sit_use" <?php if ($anc_id == 'use') echo 'class="sanchor_on"'; ?>>사용후기 <span class="item_use_count"></span></a></li>
<li><a href="#sit_qa" <?php if ($anc_id == 'qa') echo 'class="sanchor_on"'; ?>>상품문의 <span class="item_qa_count"></span></a></li>
<?php if ($default['de_baesong_content']) { ?><li><a href="#sit_dvr" <?php if ($anc_id == 'dvr') echo 'class="sanchor_on"'; ?>>배송정보</a></li><?php } ?>
<?php if ($default['de_change_content']) { ?><li><a href="#sit_ex" <?php if ($anc_id == 'ex') echo 'class="sanchor_on"'; ?>>교환정보</a></li><?php } ?>
<li><a href="#sit_rel" <?php if ($anc_id == 'rel') echo 'class="sanchor_on"'; ?>>관련상품 <span class="item_relation_count"></span></a></li>
@ -549,9 +549,9 @@ else
</section>
<!-- 상품설명 end -->
<section id="sit_ps">
<section id="sit_use">
<h2>사용후기</h2>
<?php echo pg_anchor_m('ps'); ?>
<?php echo pg_anchor_m('use'); ?>
<?php
$use_page_rows = 10; // 페이지당 목록수
@ -559,9 +559,9 @@ else
?>
</section>
<section id="sit_qna">
<section id="sit_qa">
<h2>상품문의</h2>
<?php echo pg_anchor_m('qna'); ?>
<?php echo pg_anchor_m('qa'); ?>
<?php
$qa_page_rows = 10; // 페이지당 목록수

View File

@ -2,7 +2,7 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<section id="sit_qna_list">
<section id="sit_qa_list">
<h3>등록된 상품문의</h3>
<?php
@ -51,12 +51,12 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$iq_flag = 1;
}
if ($i == 0) echo '<ol id="sit_qna_ol">';
if ($i == 0) echo '<ol id="sit_qa_ol">';
?>
<li class="sit_qna_li">
<button type="button" class="sit_qna_li_title" onclick="javascript:qa_menu('sit_qna_con_<?php echo $i; ?>')"><b><?php echo $num; ?>.</b> <?php echo $iq_subject; ?></button>
<dl class="sit_qna_dl">
<li class="sit_qa_li">
<button type="button" class="sit_qa_li_title" onclick="javascript:qa_menu('sit_qa_con_<?php echo $i; ?>')"><b><?php echo $num; ?>.</b> <?php echo $iq_subject; ?></button>
<dl class="sit_qa_dl">
<dt>작성자</dt>
<dd><?php echo $iq_name; ?></dd>
<dt>작성일</dt>
@ -65,12 +65,12 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<dd><?php echo $iq_stats; ?></dd>
</dl>
<div id="sit_qna_con_<?php echo $i; ?>" class="sit_qna_con">
<p class="sit_qna_qaq">
<div id="sit_qa_con_<?php echo $i; ?>" class="sit_qa_con">
<p class="sit_qa_qaq">
<strong>문의내용</strong><br>
<?php echo $iq_question; // 상품 문의 내용 ?>
</p>
<p class="sit_qna_qaa">
<p class="sit_qa_qaa">
<strong>답변</strong><br>
<?php echo $iq_answer; ?>
</p>
@ -81,14 +81,14 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<textarea id="tmp_iq_question<?php echo $i; ?>"><?php echo $row['iq_question']; ?></textarea>
<?php if ($row['mb_id'] == $member['mb_id'] && $iq_answer == 0) { ?>
<div class="sit_qna_cmd">
<div class="sit_qa_cmd">
<button type="button" onclick="javascript:itemqa_update(<?php echo $i; ?>);" class="btn01">수정</button>
<button type="button" onclick="javascript:itemqa_delete(fitemqa_password<?php echo $i; ?>, <?php echo $i; ?>);" class="btn01">삭제</button>
</div>
<?php } ?>
</div>
<div id="sit_qna_pw_<?php echo $i; ?>" class="sit_qna_pw">
<div id="sit_qa_pw_<?php echo $i; ?>" class="sit_qa_pw">
<form name="fitemqa_password<?php echo $i; ?>" method="post" action="./itemqaupdate.php" autocomplete="off">
<input type="hidden" name="w" value="">
<input type="hidden" name="iq_id" value="">
@ -109,11 +109,11 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
</section>
<div id="sit_qna_wbtn">
<div id="sit_qa_wbtn">
<button type="button" id="iq_write" class="btn_submit" onclick="javascript:itemqa_insert();">상품문의 쓰기</button>
</div>
<section id="sit_qna_w">
<section id="sit_qa_w">
<h3>상품문의 작성</h3>
<form name="fitemqa" method="post" onsubmit="return fitemqa_submit(this);" autocomplete="off">
@ -185,7 +185,7 @@ if (!g4_is_member) {
*/
var f = document.fitemqa;
var id = document.getElementById('sit_qna_w');
var id = document.getElementById('sit_qa_w');
id.style.display = 'block';
@ -204,7 +204,7 @@ f.iq_question.value = '';
function itemqa_update(idx)
{
var f = document.fitemqa;
var id = document.getElementById('sit_qna_w');
var id = document.getElementById('sit_qa_w');
id.style.display = 'block';
@ -221,7 +221,7 @@ f.iq_question.value = document.getElementById('tmp_iq_question'+idx).value;
function itemqa_delete(f, idx)
{
var id = document.getElementById('sit_qna_w');
var id = document.getElementById('sit_qa_w');
f.w.value = 'd';
f.iq_id.value = document.getElementById('tmp_iq_id'+idx).value;

View File

@ -162,8 +162,8 @@ function pg_anchor($anc_id) {
?>
<ul class="sanchor">
<li><a href="#sit_inf" <?php if ($anc_id == 'inf') echo 'class="sanchor_on"'; ?>>상품정보</a></li>
<li><a href="#sit_ps" <?php if ($anc_id == 'ps') echo 'class="sanchor_on"'; ?>>용후기 <span class="item_use_count"></span></a></li>
<li><a href="#sit_qna" <?php if ($anc_id == 'qna') echo 'class="sanchor_on"'; ?>>상품문의 <span class="item_qa_count"></span></a></li>
<li><a href="#sit_use" <?php if ($anc_id == 'use') echo 'class="sanchor_on"'; ?>>용후기 <span class="item_use_count"></span></a></li>
<li><a href="#sit_qa" <?php if ($anc_id == 'qa') echo 'class="sanchor_on"'; ?>>상품문의 <span class="item_qa_count"></span></a></li>
<?php if ($default['de_baesong_content']) { ?><li><a href="#sit_dvr" <?php if ($anc_id == 'dvr') echo 'class="sanchor_on"'; ?>>배송정보</a></li><?php } ?>
<?php if ($default['de_change_content']) { ?><li><a href="#sit_ex" <?php if ($anc_id == 'ex') echo 'class="sanchor_on"'; ?>>교환정보</a></li><?php } ?>
<li><a href="#sit_rel" <?php if ($anc_id == 'rel') echo 'class="sanchor_on"'; ?>>관련상품 <span class="item_relation_count"></span></a></li>
@ -553,9 +553,9 @@ else
</section>
<!-- 상품설명 end -->
<section id="sit_ps">
<h2>용후기</h2>
<?php echo pg_anchor('ps'); ?>
<section id="sit_use">
<h2>용후기</h2>
<?php echo pg_anchor('use'); ?>
<?php
$use_page_rows = 10; // 페이지당 목록수
@ -563,9 +563,9 @@ else
?>
</section>
<section id="sit_qna">
<section id="sit_qa">
<h2>상품문의</h2>
<?php echo pg_anchor('qna'); ?>
<?php echo pg_anchor('qa'); ?>
<?php
$qa_page_rows = 10; // 페이지당 목록수

View File

@ -2,7 +2,7 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<section id="sit_qna_list">
<section id="sit_qa_list">
<h3>등록된 상품문의</h3>
<?php
@ -51,12 +51,12 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$iq_flag = 1;
}
if ($i == 0) echo '<ol id="sit_qna_ol">';
if ($i == 0) echo '<ol id="sit_qa_ol">';
?>
<li class="sit_qna_li">
<button type="button" class="sit_qna_li_title" onclick="javascript:qa_menu('sit_qna_con_<?php echo $i; ?>')"><b><?php echo $num; ?>.</b> <?php echo $iq_subject; ?></button>
<dl class="sit_qna_dl">
<li class="sit_qa_li">
<button type="button" class="sit_qa_li_title" onclick="javascript:qa_menu('sit_qa_con_<?php echo $i; ?>')"><b><?php echo $num; ?>.</b> <?php echo $iq_subject; ?></button>
<dl class="sit_qa_dl">
<dt>작성자</dt>
<dd><?php echo $iq_name; ?></dd>
<dt>작성일</dt>
@ -65,12 +65,12 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<dd><?php echo $iq_stats; ?></dd>
</dl>
<div id="sit_qna_con_<?php echo $i; ?>" class="sit_qna_con">
<p class="sit_qna_qaq">
<div id="sit_qa_con_<?php echo $i; ?>" class="sit_qa_con">
<p class="sit_qa_qaq">
<strong>문의내용</strong><br>
<?php echo $iq_question; // 상품 문의 내용 ?>
</p>
<p class="sit_qna_qaa">
<p class="sit_qa_qaa">
<strong>답변</strong><br>
<?php echo $iq_answer; ?>
</p>
@ -81,14 +81,14 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<textarea id="tmp_iq_question<?php echo $i; ?>"><?php echo $row['iq_question']; ?></textarea>
<?php if ($row['mb_id'] == $member['mb_id'] && $iq_answer == 0) { ?>
<div class="sit_qna_cmd">
<div class="sit_qa_cmd">
<button type="button" onclick="javascript:itemqa_update(<?php echo $i; ?>);" class="btn01">수정</button>
<button type="button" onclick="javascript:itemqa_delete(fitemqa_password<?php echo $i; ?>, <?php echo $i; ?>);" class="btn01">삭제</button>
</div>
<?php } ?>
</div>
<div id="sit_qna_pw_<?php echo $i; ?>" class="sit_qna_pw">
<div id="sit_qa_pw_<?php echo $i; ?>" class="sit_qa_pw">
<form name="fitemqa_password<?php echo $i; ?>" method="post" action="./itemqaupdate.php" autocomplete="off">
<input type="hidden" name="w" value="">
<input type="hidden" name="iq_id" value="">
@ -109,11 +109,11 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
</section>
<div id="sit_qna_wbtn">
<div id="sit_qa_wbtn">
<button type="button" id="iq_write" class="btn_submit" onclick="javascript:itemqa_insert();">상품문의 쓰기</button>
</div>
<section id="sit_qna_w">
<section id="sit_qa_w">
<h3>상품문의 작성</h3>
<form name="fitemqa" method="post" onsubmit="return fitemqa_submit(this);" autocomplete="off">
@ -185,7 +185,7 @@ if (!g4_is_member) {
*/
var f = document.fitemqa;
var id = document.getElementById('sit_qna_w');
var id = document.getElementById('sit_qa_w');
id.style.display = 'block';
@ -204,7 +204,7 @@ f.iq_question.value = '';
function itemqa_update(idx)
{
var f = document.fitemqa;
var id = document.getElementById('sit_qna_w');
var id = document.getElementById('sit_qa_w');
id.style.display = 'block';
@ -221,7 +221,7 @@ f.iq_question.value = document.getElementById('tmp_iq_question'+idx).value;
function itemqa_delete(f, idx)
{
var id = document.getElementById('sit_qna_w');
var id = document.getElementById('sit_qa_w');
f.w.value = 'd';
f.iq_id.value = document.getElementById('tmp_iq_id'+idx).value;