이용후기를 다시 사용후기로 문구 변경 및 코드 수정
This commit is contained in:
@ -162,7 +162,7 @@ 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_use" <?php if ($anc_id == 'use') echo 'class="sanchor_on"'; ?>>이용후기 <span class="item_use_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 } ?>
|
||||
@ -559,7 +559,7 @@ else
|
||||
<!-- 상품설명 end -->
|
||||
|
||||
<section id="sit_use">
|
||||
<h2>이용후기</h2>
|
||||
<h2>사용후기</h2>
|
||||
<?php echo pg_anchor('use'); ?>
|
||||
|
||||
<?php
|
||||
|
||||
@ -132,86 +132,9 @@ if (!$i)
|
||||
if ($use_pages) {
|
||||
$use_pages = get_paging(10, $use_page, $use_total_page, "./item.php?it_id=$it_id&$qstr&use_page=", "#use");
|
||||
}
|
||||
|
||||
$itemuse_write = G4_BBS_URL.'/write.php?bo_table=itemuse&wr_1='.$it_id.'&wr_2='.urlencode($it_name);
|
||||
?>
|
||||
|
||||
<a href="javascript:itemusewin('it_id=<?php echo $it_id; ?>');">사용후기 쓰기<span class="sound_only"> 새 창</span></a>
|
||||
|
||||
<script>
|
||||
function itemusewin(query_string)
|
||||
{
|
||||
window.open("./itemusewin.php?"+query_string, "itemusewin", "width=800,height=700");
|
||||
}
|
||||
|
||||
function fitemuse_submit(f)
|
||||
{
|
||||
if (!check_kcaptcha(f.is_key)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
f.action = "itemuseupdate.php"
|
||||
return true;
|
||||
}
|
||||
|
||||
function itemuse_insert()
|
||||
{
|
||||
/*
|
||||
if (!g4_is_member) {
|
||||
alert("로그인 하시기 바랍니다.");
|
||||
return;
|
||||
}
|
||||
*/
|
||||
|
||||
var f = document.fitemuse;
|
||||
var id = document.getElementById('itemuse');
|
||||
|
||||
id.style.display = 'block';
|
||||
|
||||
f.w.value = '';
|
||||
f.is_id.value = '';
|
||||
if (!g4_is_member)
|
||||
{
|
||||
f.is_name.value = '';
|
||||
f.is_name.readOnly = false;
|
||||
f.is_password.value = '';
|
||||
}
|
||||
f.is_subject.value = '';
|
||||
f.is_content.value = '';
|
||||
}
|
||||
|
||||
function itemuse_update(idx)
|
||||
{
|
||||
var f = document.fitemuse;
|
||||
var id = document.getElementById('itemuse');
|
||||
|
||||
id.style.display = 'block';
|
||||
|
||||
f.w.value = 'u';
|
||||
f.is_id.value = document.getElementById('tmp_is_id'+idx).value;
|
||||
if (!g4_is_member)
|
||||
{
|
||||
f.is_name.value = document.getElementById('tmp_is_name'+idx).value;
|
||||
f.is_name.readOnly = true;
|
||||
}
|
||||
f.is_subject.value = document.getElementById('tmp_is_subject'+idx).value;
|
||||
f.is_content.value = document.getElementById('tmp_is_content'+idx).value;
|
||||
}
|
||||
|
||||
function itemuse_delete(f, idx)
|
||||
{
|
||||
var id = document.getElementById('itemuse');
|
||||
|
||||
f.w.value = 'd';
|
||||
f.is_id.value = document.getElementById('tmp_is_id'+idx).value;
|
||||
|
||||
if (g4_is_member)
|
||||
{
|
||||
if (confirm("삭제하시겠습니까?"))
|
||||
f.submit();
|
||||
}
|
||||
else
|
||||
{
|
||||
id.style.display = 'none';
|
||||
document.getElementById('itemuse_password'+idx).style.display = 'block';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<!-- <a href="javascript:itemusewin('it_id=<?php echo $it_id; ?>');">사용후기 쓰기<span class="sound_only"> 새 창</span></a> -->
|
||||
<a href="<?php echo $itemuse_write; ?>" onclick="window.open(this.href); return false;">사용후기 쓰기<span class="sound_only"> 새 창</span></a>
|
||||
|
||||
Reference in New Issue
Block a user