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

This commit is contained in:
gnuboard
2013-06-12 10:15:21 +09:00
43 changed files with 457 additions and 259 deletions

View File

@ -15,14 +15,8 @@ $menu['menu400'] = array (
array('400610', '상품유형관리', G4_ADMIN_URL.'/shop_admin/itemtypelist.php', 'scf_item_type'),
array('400500', '상품옵션재고관리', G4_ADMIN_URL.'/shop_admin/optionstocklist.php', 'scf_item_option'),
array('400490', '마일리지관리', G4_ADMIN_URL.'/shop_admin/mileagelist.php', 'scf_mileage'),
array('400500', '배송일괄처리', G4_ADMIN_URL.'/shop_admin/deliverylist.php', 'scf_deli', 1),
array('400740', '배송업체관리', G4_ADMIN_URL.'/shop_admin/deliverycodelist.php', 'scf_deli_co', 1),
array('400630', '이벤트관리', G4_ADMIN_URL.'/shop_admin/itemevent.php', 'scf_event'),
array('400640', '이벤트일괄처리', G4_ADMIN_URL.'/shop_admin/itemeventlist.php', 'scf_event_mng'),
array('400650', '쿠폰관리', G4_ADMIN_URL.'/shop_admin/couponlist.php', 'scf_coupon'),
array('400700', '내용관리', G4_ADMIN_URL.'/shop_admin/contentlist.php', 'scf_contents', 1),
array('400710', 'FAQ관리', G4_ADMIN_URL.'/shop_admin/faqmasterlist.php', 'scf_faq', 1),
array('400730', '배너관리', G4_ADMIN_URL.'/shop_admin/bannerlist.php', 'scf_banner', 1),
array('400720', '팝업레이어관리', G4_ADMIN_URL.'/shop_admin/newwinlist.php', 'scf_poplayer', 1)
array('400500', '배송일괄처리', G4_ADMIN_URL.'/shop_admin/deliverylist.php', 'scf_deli', 1),
array('400740', '배송업체관리', G4_ADMIN_URL.'/shop_admin/deliverycodelist.php', 'scf_deli_co', 1)
);
?>

View File

@ -7,6 +7,12 @@ $menu['menu500'] = array (
array('500100', '상품판매순위', G4_ADMIN_URL.'/shop_admin/itemsellrank.php', 'sst_rank'),
array('500120', '주문내역출력', G4_ADMIN_URL.'/shop_admin/orderprint.php', 'sst_print_order', 1),
array('500130', '전자결제내역', G4_ADMIN_URL.'/shop_admin/ordercardhistory.php', 'sst_pg', 1),
array('400630', '이벤트관리', G4_ADMIN_URL.'/shop_admin/itemevent.php', 'scf_event'),
array('400640', '이벤트일괄처리', G4_ADMIN_URL.'/shop_admin/itemeventlist.php', 'scf_event_mng'),
array('400700', '내용관리', G4_ADMIN_URL.'/shop_admin/contentlist.php', 'scf_contents', 1),
array('400710', 'FAQ관리', G4_ADMIN_URL.'/shop_admin/faqmasterlist.php', 'scf_faq', 1),
array('400730', '배너관리', G4_ADMIN_URL.'/shop_admin/bannerlist.php', 'scf_banner', 1),
array('400720', '팝업레이어관리', G4_ADMIN_URL.'/shop_admin/newwinlist.php', 'scf_poplayer', 1),
array('500140', '보관함현황', G4_ADMIN_URL.'/shop_admin/wishlist.php', 'sst_wish'),
array('500200', 'SMS 문자전송', G4_ADMIN_URL.'/shop_admin/smssend.php', 'sst_sms'),
array('500210', '가격비교사이트', G4_ADMIN_URL.'/shop_admin/price.php', 'sst_compare', 1)

View File

@ -115,8 +115,8 @@ $colspan = 15;
<tbody>
<?php
for ($i=0; $row=sql_fetch_array($result); $i++) {
$one_update = '<a href="./board_form.php?w=u&amp;bo_table='.$row['bo_table'].'&amp;'.$qstr.'">수정</a>';
$one_copy = '<a href="./board_copy.php?bo_table='.$row['bo_table'].'" class="board_copy" target="win_board_copy">복사</a>';
$one_update = '<li class="sel_li"><a href="./board_form.php?w=u&amp;bo_table='.$row['bo_table'].'&amp;'.$qstr.'" class="sel_a">수정</a></li>';
$one_copy = '<li class="sel_li"><a href="./board_copy.php?bo_table='.$row['bo_table'].'" class="board_copy sel_a" target="win_board_copy">복사</a></li>';
?>
<tr>
@ -156,7 +156,15 @@ $colspan = 15;
<option value="mobile"<?php echo get_selected($row['bo_device'], 'mobile'); ?>>모바일</option>
</select>
</td>
<td><?php echo $one_update ?> <?php echo $one_copy ?></td>
<td class="td_mng sv_use">
<div class="sel_wrap">
<button type="button" class="sel_btn">관리하기</button>
<ul class="sel_ul">
<?php echo $one_update ?>
<?php echo $one_copy ?>
</ul>
</div>
</td>
</tr>
<?php
}

View File

@ -127,7 +127,7 @@ $colspan = 8;
$sql2 = " select count(*) as cnt from {$g4['board_table']} where gr_id = '{$row['gr_id']}' ";
$row2 = sql_fetch($sql2);
$s_upd = '<a href="./boardgroup_form.php?'.$qstr.'&amp;w=u&amp;gr_id='.$row['gr_id'].'">수정</a>';
$s_upd = '<li class="sel_li"><a href="./boardgroup_form.php?'.$qstr.'&amp;w=u&amp;gr_id='.$row['gr_id'].'" class="sel_a">수정</a></li>';
?>
<tr>
@ -160,7 +160,14 @@ $colspan = 8;
<option value="mobile"<?php echo get_selected($row['gr_device'], 'mobile'); ?>>모바일</option>
</select>
</td>
<td class="td_smallmng"><?php echo $s_upd ?></td>
<td class="td_mng sv_use">
<div class="sel_wrap">
<button type="button" class="sel_btn">관리하기</button>
<ul class="sel_ul">
<?php echo $s_upd ?>
</ul>
</div>
</td>
</tr>
<?php

View File

@ -155,10 +155,10 @@ $colspan = 15;
$s_mod = '';
$s_del = '';
} else {
$s_mod = '<a href="./member_form.php?'.$qstr.'&amp;w=u&amp;mb_id='.$row['mb_id'].'">수정</a>';
//$s_del = '<a href="javascript:post_delete(\'member_delete.php\', \''.$row['mb_id'].'\');">삭제</a>';
$s_mod = '<li class="sel_li"><a href="./member_form.php?'.$qstr.'&amp;w=u&amp;mb_id='.$row['mb_id'].'" class="sel_a">수정</a></li>';
//$s_del = '<li class="sel_li"><a href="javascript:post_delete(\'member_delete.php\', \''.$row['mb_id'].'\');" class="sel_a">삭제</a></li>';
}
$s_grp = '<a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'">그룹</a>';
$s_grp = '<li class="sel_li"><a href="./boardgroupmember_form.php?mb_id='.$row['mb_id'].'" class="sel_a">그룹</a></li>';
$leave_date = $row['mb_leave_date'] ? $row['mb_leave_date'] : date('Ymd', G4_SERVER_TIME);
$intercept_date = $row['mb_intercept_date'] ? $row['mb_intercept_date'] : date('Ymd', G4_SERVER_TIME);
@ -199,7 +199,15 @@ $colspan = 15;
<td colspan="6" class="td_addr"><?php echo $address; ?></td>
<td><?php echo substr($row['mb_today_login'],2,8); ?></td>
<td class="td_bignum"><a href="point_list.php?sfl=mb_id&amp;stx=<?php echo $row['mb_id'] ?>"><?php echo number_format($row['mb_point']) ?></a></td>
<td rowspan="2"><?php echo $s_mod ?><br><?php echo $s_grp ?></td>
<td class="td_mng sv_use" rowspan="2">
<div class="sel_wrap">
<button type="button" class="sel_btn">관리하기</button>
<ul class="sel_ul">
<?php echo $s_mod ?>
<?php echo $s_grp ?>
</ul>
</div>
</td>
</tr>
<tr <?php echo $tr_bg; ?>>
<td class="td_name sv_use"><div><?php echo $mb_nick ?></div></td>

View File

@ -103,7 +103,7 @@ $colspan = 6;
$row2 = sql_fetch($sql2);
$po_etc = ($row['po_etc']) ? "사용" : "미사용";
$s_mod = '<a href="./poll_form.php?'.$qstr.'&amp;w=u&amp;po_id='.$row['po_id'].'">수정</a>';
$s_mod = '<li class="sel_li"><a href="./poll_form.php?'.$qstr.'&amp;w=u&amp;po_id='.$row['po_id'].'" class="sel_a">수정</a></li>';
//$s_del = '<a href="javascript:post_delete(\'poll_form_update.php\', \''.$row['po_id'].'\');">삭제</a>';
?>
@ -116,7 +116,14 @@ $colspan = 6;
<td class="td_num"><?php echo $row['po_level'] ?></td>
<td class="td_num"><?php echo $row2['sum_po_cnt'] ?></td>
<td class="td_etc"><?php echo $po_etc ?></td>
<td class="td_mng"><?php echo $s_mod ?></td>
<td class="td_mng sv_use">
<div class="sel_wrap">
<button type="button" class="sel_btn">관리하기</button>
<ul class="sel_ul">
<?php echo $s_mod ?>
</ul>
</div>
</td>
</tr>
<?php

View File

@ -81,9 +81,14 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
<td><?php echo $bn_end_time; ?></td>
<td><?php echo $row['bn_order']; ?></td>
<td><?php echo $row['bn_hit']; ?></td>
<td class="td_smallmng">
<a href="./bannerform.php?w=u&amp;bn_id=<?php echo $row['bn_id']; ?>"><img src="./img/icon_mod.jpg" alt="배너수정"></a>
<a href="./bannerformupdate.php?w=d&amp;bn_id=<?php echo $row['bn_id']; ?>" onclick="return delete_confirm();"><img src="./img/icon_del.jpg" alt="배너삭제"></a>
<td class="td_mng sv_use">
<div class="sel_wrap">
<button type="button" class="sel_btn">관리하기</button>
<ul class="sel_ul">
<li class="sel_li"><a href="./bannerform.php?w=u&amp;bn_id=<?php echo $row['bn_id']; ?>" class="sel_a">수정</a></li>
<li class="sel_li"><a href="./bannerformupdate.php?w=d&amp;bn_id=<?php echo $row['bn_id']; ?>" class="sel_a" onclick="return delete_confirm();">삭제</a></li>
</ul>
</div>
</td>
</tr>
<tr>

View File

@ -129,13 +129,13 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
$s_level = '<label for="ca_name_'.$i.'" '.$class.'><span class="sound_only">'.$p_ca_name.'</span>'.($level+1).'단 분류</label>';
$s_level_input_size = 40 - $level *5; // 하위 분류일 수록 입력칸 넓이 작아짐 - 지운아빠 2013-04-02
if ($level+2 < 6) $s_add = '<a href="./categoryform.php?ca_id='.$row['ca_id'].'&amp;'.$qstr.'"><img src="./img/icon_add.jpg" alt="'.($level+2).'단 추가"></a>'; // 분류는 5단계까지만 가능
if ($level+2 < 6) $s_add = '<li class="sel_li"><a href="./categoryform.php?ca_id='.$row['ca_id'].'&amp;'.$qstr.'" class="sel_a">'.($level+2).'단 추가</a></li>'; // 분류는 5단계까지만 가능
else $s_add = '';
$s_upd = '<a href="./categoryform.php?w=u&amp;ca_id='.$row['ca_id'].'&amp;'.$qstr.'"><img src="./img/icon_mod.jpg" alt="'.get_text($row['ca_name']).' 수정"></a>';
$s_vie = '<a href="'.G4_SHOP_URL.'/list.php?ca_id='.$row['ca_id'].'"><img src="./img/icon_view.jpg" alt="'.get_text($row['ca_name']).' 이동"></a>';
$s_upd = '<li class="sel_li"><a href="./categoryform.php?w=u&amp;ca_id='.$row['ca_id'].'&amp;'.$qstr.'" class="sel_a"><span class="sound_only">'.get_text($row['ca_name']).' </span>수정</a></li>';
$s_vie = '<li class="sel_li"><a href="'.G4_SHOP_URL.'/list.php?ca_id='.$row['ca_id'].'" class="sel_a"><span class="sound_only">'.get_text($row['ca_name']).' </span>이동</a></li>';
if ($is_admin == 'super')
$s_del = '<a href="./categoryformupdate.php?w=d&amp;ca_id='.$row['ca_id'].'&amp;'.$qstr.'" onclick="return delete_confirm();"><img src="./img/icon_del.jpg" alt="'.get_text($row['ca_name']).' 삭제"></a>';
$s_del = '<li class="sel_li"><a href="./categoryformupdate.php?w=d&amp;ca_id='.$row['ca_id'].'&amp;'.$qstr.'" class="sel_a" onclick="return delete_confirm();"><span class="sound_only">'.get_text($row['ca_name']).' </span>삭제</a></li>';
// 해당 분류에 속한 상품의 갯수
$sql1 = " select COUNT(*) as cnt from {$g4['shop_item_table']}
@ -162,7 +162,17 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
<td class="td_chk"><input type="checkbox" name="ca_use[<?php echo $i; ?>]" value="1" <?php echo ($row['ca_use'] ? "checked" : ""); ?>></td>
<td class="td_bignum"><input type="text" name="ca_stock_qty[<?php echo $i; ?>]" value="<?php echo $row['ca_stock_qty']; ?>" class="frm_input" size="6" style="text-align:right"></td>
<td class="td_num"><a href="./itemlist.php?sca=<?php echo $row['ca_id']; ?>"><?php echo $row1['cnt']; ?></a></td>
<td class="td_mng"><?php echo $s_add; ?> <?php echo $s_vie; ?> <?php echo $s_upd; ?> <?php echo $s_del; ?></td>
<td class="td_mng sv_use">
<div class="sel_wrap">
<button type="button" class="sel_btn">관리하기</button>
<ul class="sel_ul">
<?php echo $s_add; ?>
<?php echo $s_vie; ?>
<?php echo $s_upd; ?>
<?php echo $s_del; ?>
</ul>
</div>
</td>
</tr>
<?php }
if ($i == 0) echo "<tr><td colspan=\"7\" class=\"empty_table\">자료가 한 건도 없습니다.</td></tr>\n";

View File

@ -45,10 +45,15 @@ $result = sql_query($sql);
<tr>
<td class="td_odrnum"><?php echo $row['co_id']; ?></td>
<td><?php echo htmlspecialchars2($row['co_subject']); ?></td>
<td class="td_mng">
<a href="<?php echo G4_SHOP_URL; ?>/content.php?co_id=<?php echo $row['co_id']; ?>"><img src="./img/icon_view.jpg" alt="<?php echo htmlspecialchars2($row['co_subject']); ?> 보기"></a>
<a href="./contentform.php?w=u&amp;co_id=<?php echo $row['co_id']; ?>"><img src="./img/icon_mod.jpg" alt="<?php echo htmlspecialchars2($row['co_subject']); ?> 수정"></a>
<a href="./contentformupdate.php?w=d&amp;co_id=<?php echo $row['co_id']; ?>" onclick="return delete_confirm();"><img src="./img/icon_del.jpg" alt="<?php echo htmlspecialchars2($row['co_subject']); ?> 삭제"></a>
<td class="td_mng sv_use">
<div class="sel_wrap">
<button type="button" class="sel_btn">관리하기</button>
<ul class="sel_ul">
<li class="sel_li"><a href="<?php echo G4_SHOP_URL; ?>/content.php?co_id=<?php echo $row['co_id']; ?>" class="sel_a"><span class="sound_only"><?php echo htmlspecialchars2($row['co_subject']); ?> </span> 보기</a></li>
<li class="sel_li"><a href="./contentform.php?w=u&amp;co_id=<?php echo $row['co_id']; ?>" class="sel_a"><span class="sound_only"><?php echo htmlspecialchars2($row['co_subject']); ?> </span>수정</a></li>
<li class="sel_li"><a href="./contentformupdate.php?w=d&amp;co_id=<?php echo $row['co_id']; ?>" class="sel_a" onclick="return delete_confirm();"><span class="sound_only"><?php echo htmlspecialchars2($row['co_subject']); ?> </span>삭제</a></li>
</ul>
</div>
</td>
</tr>
<?php

View File

@ -149,6 +149,7 @@ $(function() {
$("#tr_cp_target").find("input").attr("required", false).removeClass("required");
<?php } ?>
<?php if($cp['cp_type'] != 1) { ?>
$("#tr_cp_maximum").hide();
$("#tr_cp_trunc").hide();
<?php } ?>
$("#cp_method_btn").click(function() {
@ -222,10 +223,12 @@ function change_type(cp_type)
if(cp_type == "0") {
$("#cp_amount_unit").text("원");
$("#cp_amount_unit").closest("tr").find("label").text("할인금액");
$("#tr_cp_maximum").hide();
$("#tr_cp_trunc").hide();
} else {
$("#cp_amount_unit").text("%");
$("#cp_amount_unit").closest("tr").find("label").text("할인비율");
$("#tr_cp_maximum").show();
$("#tr_cp_trunc").show();
}
}

View File

@ -148,7 +148,14 @@ $colspan = 8;
<td class="td_name sv_use"><div><?php echo $row['mb_id']; ?></div></td>
<td class="td_time"><?php echo substr($row['cp_start'], 2, 8); ?> ~ <?php echo substr($row['cp_end'], 2, 8); ?></td>
<td class="td_boolean"><?php echo $row['cp_used'] ? '예' : '아니오'; ?></td>
<td class="td_mng"><a href="./couponform.php?w=u&amp;cp_id=<?php echo $row['cp_id']; ?>&amp;<?php echo $qstr; ?>"><img src="./img/icon_mod.jpg" alt="<?php echo $row['cp_id']; ?> 수정"></a></td>
<td class="td_mng sv_use">
<div class="sel_wrap">
<button type="button" class="sel_btn">관리하기</button>
<ul class="sel_ul">
<li class="sel_li"><a href="./couponform.php?w=u&amp;cp_id=<?php echo $row['cp_id']; ?>&amp;<?php echo $qstr; ?>" class="sel_a"><span class="sound_only"><?php echo $row['cp_id']; ?> </span>수정</a></li>
</ul>
</div>
</td>
</tr>
<?php

View File

@ -44,10 +44,15 @@ $result = sql_query($sql);
<td><?php echo stripslashes($row['dl_company']); ?></td>
<td class="td_bignum"><?php echo $row['dl_tel']; ?></td>
<td class="td_num"><?php echo $row['dl_order']; ?></td>
<td class="td_mng">
<a href="<?php echo $row['dl_url']; ?>" target="_blank"><img src="./img/icon_view.jpg" alt="<?php echo stripslashes($row['dl_company']); ?> 홈페이지"></a>
<a href="./deliverycodeform.php?w=u&amp;dl_id=<?php echo $row['dl_id']; ?>"><img src="./img/icon_mod.jpg" alt="<?php echo stripslashes($row['dl_company']); ?> 수정"></a>
<a href="./deliverycodeformupdate.php?w=d&amp;dl_id=<?php echo $row['dl_id']; ?>" onclick="return delete_confirm();"><img src="./img/icon_del.jpg" alt="<?php echo stripslashes($row['dl_company']); ?> 삭제"></a>
<td class="td_mng sv_use">
<div class="sel_wrap">
<button type="button" class="sel_btn">관리하기</button>
<ul class="sel_ul">
<li class="sel_li"><a href="<?php echo $row['dl_url']; ?>" target="_blank" class="sel_a"><span class="sound_only"><?php echo stripslashes($row['dl_company']); ?> </span>홈페이지</a></li>
<li class="sel_li"><a href="./deliverycodeform.php?w=u&amp;dl_id=<?php echo $row['dl_id']; ?>" class="sel_a"><span class="sound_only"><?php echo stripslashes($row['dl_company']); ?> </span>수정</a></li>
<li class="sel_li"><a href="./deliverycodeformupdate.php?w=d&amp;dl_id=<?php echo $row['dl_id']; ?>" class="sel_a" onclick="return delete_confirm();"><span class="sound_only"><?php echo stripslashes($row['dl_company']); ?> </span>삭제</a></li>
</ul>
</div>
</td>
</tr>
<?php

View File

@ -58,15 +58,20 @@ $result = sql_query($sql);
$num = $i + 1;
?>
<tr>
<td class="td_num"><?php echo $num; ?></td>
<td><?php echo stripslashes($row['fa_subject']); ?></td>
<td class="td_num"><?php echo $row['fa_order']; ?></td>
<td class="td_smallmng">
<a href="./faqform.php?w=u&amp;fm_id=<?php echo $row['fm_id']; ?>&amp;fa_id=<?php echo $row['fa_id']; ?>"><img src="./img/icon_mod.jpg" alt="<?php echo stripslashes($row['fa_subject']); ?> 수정"></a>
<a href="javascript:del('./faqformupdate.php?w=d&amp;fm_id=<?php echo $row['fm_id']; ?>&amp;fa_id=<?php echo $row['fa_id']; ?>');"><img src="./img/icon_del.jpg" alt="<?php echo stripslashes($row['fa_subject']); ?> 삭제"></a>
</td>
</tr>
<tr>
<td class="td_num"><?php echo $num; ?></td>
<td><?php echo stripslashes($row['fa_subject']); ?></td>
<td class="td_num"><?php echo $row['fa_order']; ?></td>
<td class="td_mng sv_use">
<div class="sel_wrap">
<button type="button" class="sel_btn">관리하기</button>
<ul class="sel_ul">
<li class="sel_li"><a href="./faqform.php?w=u&amp;fm_id=<?php echo $row['fm_id']; ?>&amp;fa_id=<?php echo $row['fa_id']; ?>" class="sel_a"><span class="sound_only"><?php echo stripslashes($row['fa_subject']); ?> </span>수정</a></li>
<li class="sel_li"><a href="javascript:del('./faqformupdate.php?w=d&amp;fm_id=<?php echo $row['fm_id']; ?>&amp;fa_id=<?php echo $row['fa_id']; ?>');" class="sel_a"><span class="sound_only"><?php echo stripslashes($row['fa_subject']); ?> </span>삭제</a></li>
</ul>
</div>
</td>
</tr>
<?php
}

View File

@ -34,7 +34,7 @@ $result = sql_query($sql);
<ol>
<li>FAQ는 무제한으로 등록할 수 있습니다</li>
<li><strong>FAQ추가</strong>를 눌러 FAQ Master를 생성합니다. (하나의 FAQ 타이틀 생성 : 자주하시는 질문, 이용안내..등 )</li>
<li>생성한 FAQ Master 의 <strong>상세보기</strong> 눌러 세부 내용을 관리할 수 있습니다.</li>
<li>생성한 FAQ Master 의 <strong>제목</strong> 눌러 세부 내용을 관리할 수 있습니다.</li>
</ol>
<div id="btn_add">
@ -47,7 +47,6 @@ $result = sql_query($sql);
<th scope="col">ID</th>
<th scope="col">제목</th>
<th scope="col">FAQ수</th>
<th scope="col">상세보기</th>
<th scope="col">관리</th>
</tr>
</thead>
@ -59,13 +58,17 @@ $result = sql_query($sql);
?>
<tr>
<td class="td_num"><?php echo $row['fm_id']; ?></td>
<td><?php echo stripslashes($row['fm_subject']); ?></td>
<td><a href="./faqlist.php?fm_id=<?php echo $row['fm_id']; ?>&amp;fm_subject=<?php echo $row['fm_subject']; ?>"><?php echo stripslashes($row['fm_subject']); ?></a></td>
<td class="td_num"><?php echo $cnt; ?></td>
<td class="td_smallmng"><a href="./faqlist.php?fm_id=<?php echo $row['fm_id']; ?>&amp;fm_subject=<?php echo $row['fm_subject']; ?>" class="btn_frmline">상세보기</a></td>
<td class="td_mng">
<a href="<?php echo G4_SHOP_URL; ?>/faq.php?fm_id=<?php echo $row['fm_id']; ?>"><img src="./img/icon_view.jpg" alt="<?php echo stripslashes($row['fm_subject']); ?> 보기"></a>
<a href="./faqmasterform.php?w=u&amp;fm_id=<?php echo $row['fm_id']; ?>"><img src="./img/icon_mod.jpg" alt="<?php echo stripslashes($row['fm_subject']); ?> 수정"></a>
<a href="./faqmasterformupdate.php?w=d&amp;fm_id=<?php echo $row['fm_id']; ?>" onclick="return delete_confirm();"><img src="./img/icon_del.jpg" alt="<?php echo stripslashes($row['fm_subject']); ?> 삭제"></a>
<td class="td_mng sv_use">
<div class="sel_wrap">
<button type="button" class="sel_btn">관리하기</button>
<ul class="sel_ul">
<li class="sel_li"><a href="<?php echo G4_SHOP_URL; ?>/faq.php?fm_id=<?php echo $row['fm_id']; ?>" class="sel_a"><span class="sound_only"><?php echo stripslashes($row['fm_subject']); ?> </span>보기</a></li>
<li class="sel_li"><a href="./faqmasterform.php?w=u&amp;fm_id=<?php echo $row['fm_id']; ?>" class="sel_a"><span class="sound_only"><?php echo stripslashes($row['fm_subject']); ?> </span>수정</a></li>
<li class="sel_li"><a href="./faqmasterformupdate.php?w=d&amp;fm_id=<?php echo $row['fm_id']; ?>" class="sel_a" onclick="return delete_confirm();"><span class="sound_only"><?php echo stripslashes($row['fm_subject']); ?> </span>삭제</a></li>
</ul>
</div>
</td>
</tr>
<?php

View File

@ -191,11 +191,16 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
<td rowspan="2"><input type="text" name="it_order[<?php echo $i; ?>]" value="<?php echo $row['it_order']; ?>" class="frm_input sit_odrby" size="3"></td>
<td rowspan="2"><input type="checkbox" name="it_use[<?php echo $i; ?>]" <?php echo ($row['it_use'] ? 'checked' : ''); ?> value="1"></td>
<td rowspan="2"><?php echo $row['it_hit']; ?></td>
<td rowspan="2" class="td_mng">
<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> -->
<td rowspan="2" class="td_mng sv_use">
<div class="sel_wrap">
<button type="button" class="sel_btn">관리하기</button>
<ul class="sel_ul">
<li class="sel_li"><a href="<?php echo $href; ?>" class="sel_a"><span class="sound_only"><?php echo htmlspecialchars2(cut_str($row['it_name'],250, "")); ?> </span>보기</a></li>
<li class="sel_li"><a href="./item_copy.php?it_id=<?php echo $row['it_id']; ?>&amp;ca_id=<?php echo $row['ca_id']; ?>" class="item_copy sel_a" target="_blank"><span class="sound_only"><?php echo htmlspecialchars2(cut_str($row['it_name'],250, "")); ?> </span>복사</a></li>
<li class="sel_li"><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; ?>" class="sel_a"><span class="sound_only"><?php echo htmlspecialchars2(cut_str($row['it_name'],250, "")); ?> </span>수정</a></li>
<!-- <li class="sel_li"><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; ?>" class="sel_a" onclick="return delete_confirm();"><span class="sound_only"><?php echo htmlspecialchars2(cut_str($row['it_name'],250, "")); ?> </span>삭제</a></li> -->
</ul>
</div>
</td>
</tr>
<tr>

View File

@ -134,9 +134,14 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
<td class="sit_ps_subject"><?php echo $row['is_subject']; ?></td>
<td class="td_num"><?php echo $row['is_score']; ?></td>
<td class="sit_ps_confirm"><?php echo $confirm; ?></td>
<td class="td_smallmng">
<a href="./itempsform.php?w=u&amp;is_id=<?php echo $row['is_id']; ?>&amp;$qstr"><img src="./img/icon_mod.jpg" alt="<?php echo $row['is_subject']; ?> 수정"></a>
<a href="./itempsformupdate.php?w=d&amp;is_id=<?php echo $row['is_id']; ?>&amp;<?php echo $qstr; ?>" onclick="return delete_confirm();"><img src="./img/icon_del.jpg" alt="<?php echo $row['is_subject']; ?> 삭제"></a>
<td class="td_mng sv_use">
<div class="sel_wrap">
<button type="button" class="sel_btn">관리하기</button>
<ul class="sel_ul">
<li class="sel_li"><a href="./itempsform.php?w=u&amp;is_id=<?php echo $row['is_id']; ?>&amp;$qstr" class="sel_a"><span class="sound_only"><?php echo $row['is_subject']; ?> </span>수정</a></li>
<li class="sel_li"><a href="./itempsformupdate.php?w=d&amp;is_id=<?php echo $row['is_id']; ?>&amp;<?php echo $qstr; ?>" class="sel_a" onclick="return delete_confirm();"><span class="sound_only"><?php echo $row['is_subject']; ?> </span>삭제</a></li>
</ul>
</div>
</td>
</tr>

View File

@ -129,9 +129,14 @@ if ($sfl || $stx) // 검색 결과일 때만 처음 버튼을 보여줌
<td class="td_name"><?php echo $name; ?></td>
<td class="sit_qa_subject"><?php echo $row['iq_subject']; ?></td>
<td class="sit_qa_answer"><?php echo $answer; ?></td>
<td class="td_smallmng">
<a href="./itemqaform.php?w=u&amp;iq_id=<?php echo $row['iq_id']; ?>&amp;<?php echo $qstr; ?>"><img src="./img/icon_mod.jpg" alt="<?php echo $row['iq_subject']; ?> 수정"></a>
<a href="javascript:del('./itemqaformupdate.php?w=d&amp;iq_id=<?php echo $row['iq_id']; ?>&amp;$qstr');"><img src="./img/icon_del.jpg" alt="<?php echo $row['iq_subject']; ?> 삭제"></a>
<td class="td_mng sv_use">
<div class="sel_wrap">
<button type="button" class="sel_btn">관리하기</button>
<ul class="sel_ul">
<li class="sel_li"><a href="./itemqaform.php?w=u&amp;iq_id=<?php echo $row['iq_id']; ?>&amp;<?php echo $qstr; ?>" class="sel_a"><span class="sound_only"><?php echo $row['iq_subject']; ?> </span>수정</a></li>
<li class="sel_li"><a href="javascript:del('./itemqaformupdate.php?w=d&amp;iq_id=<?php echo $row['iq_id']; ?>&amp;$qstr');" class="sel_a"><span class="sound_only"><?php echo $row['iq_subject']; ?> </span>삭제</a></li>
</ul>
</div>
</td>
</tr>
<?php

View File

@ -160,7 +160,14 @@ if ($search) // 검색 결과일 때만 처음 버튼을 보여줌
<td class="td_num"><?php echo number_format($temporary_qty); ?></td>
<td class="td_num"><input type="text" name="it_stock_qty[<?php echo $i; ?>]" value="<?php echo $row['it_stock_qty']; ?>" class="frm_input" size="10" autocomplete="off"></td>
<td class="td_chk"><input type="checkbox" name="it_use[<?php echo $i; ?>]" value="1" <?php echo ($row['it_use'] ? "checked" : ""); ?>></td>
<td class="td_smallmng"><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; ?>">수정</a></td>
<td class="td_mng sv_use">
<div class="sel_wrap">
<button type="button" class="sel_btn">관리하기</button>
<ul class="sel_ul">
<li class="sel_li"><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; ?>" class="sel_a">수정</a></li>
</ul>
</div>
</td>
</tr>
<?php
}

View File

@ -148,28 +148,35 @@ if ($stx) // 검색 결과일 때만 처음 버튼을 보여줌
</tr>
</thead>
<tbody>
<?php for ($i=0; $row=sql_fetch_array($result); $i++) {
$href = G4_SHOP_URL.'/item.php?it_id='.$row['it_id'];
?>
<tr>
<td class="td_bignum">
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
<?php echo $row['it_id']; ?>
</td>
<td><a href="<?php echo $href; ?>"><?php echo get_it_image($row['it_id'], 50, 50); ?><?php echo cut_str(stripslashes($row['it_name']), 60, "&#133"); ?></a></td>
<td class="td_chk"><input type="checkbox" name="it_type1[<?php echo $i; ?>]" value="1" <?php echo ($row['it_type1'] ? 'checked' : ''); ?>></td>
<td class="td_chk"><input type="checkbox" name="it_type2[<?php echo $i; ?>]" value="1" <?php echo ($row['it_type2'] ? 'checked' : ''); ?>></td>
<td class="td_chk"><input type="checkbox" name="it_type3[<?php echo $i; ?>]" value="1" <?php echo ($row['it_type3'] ? 'checked' : ''); ?>></td>
<td class="td_chk"><input type="checkbox" name="it_type4[<?php echo $i; ?>]" value="1" <?php echo ($row['it_type4'] ? 'checked' : ''); ?>></td>
<td class="td_chk"><input type="checkbox" name="it_type5[<?php echo $i; ?>]" value="1" <?php echo ($row['it_type5'] ? 'checked' : ''); ?>></td>
<td class="td_smallmng"><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 cut_str(stripslashes($row['it_name']), 60, "&#133"); ?> 수정"></a></td>
</tr>
<?php
}
<?php for ($i=0; $row=sql_fetch_array($result); $i++) {
$href = G4_SHOP_URL.'/item.php?it_id='.$row['it_id'];
?>
<tr>
<td class="td_bignum">
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
<?php echo $row['it_id']; ?>
</td>
<td><a href="<?php echo $href; ?>"><?php echo get_it_image($row['it_id'], 50, 50); ?><?php echo cut_str(stripslashes($row['it_name']), 60, "&#133"); ?></a></td>
<td class="td_chk"><input type="checkbox" name="it_type1[<?php echo $i; ?>]" value="1" <?php echo ($row['it_type1'] ? 'checked' : ''); ?>></td>
<td class="td_chk"><input type="checkbox" name="it_type2[<?php echo $i; ?>]" value="1" <?php echo ($row['it_type2'] ? 'checked' : ''); ?>></td>
<td class="td_chk"><input type="checkbox" name="it_type3[<?php echo $i; ?>]" value="1" <?php echo ($row['it_type3'] ? 'checked' : ''); ?>></td>
<td class="td_chk"><input type="checkbox" name="it_type4[<?php echo $i; ?>]" value="1" <?php echo ($row['it_type4'] ? 'checked' : ''); ?>></td>
<td class="td_chk"><input type="checkbox" name="it_type5[<?php echo $i; ?>]" value="1" <?php echo ($row['it_type5'] ? 'checked' : ''); ?>></td>
<td class="td_mng sv_use">
<div class="sel_wrap">
<button type="button" class="sel_btn">관리하기</button>
<ul class="sel_ul">
<li class="sel_li"><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; ?>" class="sel_a"><span class="sound_only"><?php echo cut_str(stripslashes($row['it_name']), 60, "&#133"); ?> </span>수정</a></li>
</ul>
</div>
</td>
</tr>
<?php
}
if (!$i)
echo '<tr><td colspan="8" class="empty_table"><span>자료가 없습니다.</span></td></tr>';
?>
if (!$i)
echo '<tr><td colspan="8" class="empty_table"><span>자료가 없습니다.</span></td></tr>';
?>
</tbody>
<tfoot>

View File

@ -41,21 +41,26 @@ $result = sql_query($sql);
</thead>
<tbody>
<?php for ($i=0; $row=mysql_fetch_array($result); $i++) { ?>
<tr>
<td class="td_num"><?php echo $row['nw_id']; ?></td>
<td><?php echo $row['nw_subject']; ?></td>
<td class="td_time"><?php echo substr($row['nw_begin_time'],2,14); ?></td>
<td class="td_time"><?php echo substr($row['nw_end_time'],2,14); ?></td>
<td><?php echo $row['nw_disable_hours']; ?>시간</td>
<td><?php echo $row['nw_left']; ?>px</td>
<td><?php echo $row['nw_top']; ?>px</td>
<td><?php echo $row['nw_width']; ?>px</td>
<td><?php echo $row['nw_height']; ?>px</td>
<td class="td_smallmng">
<a href="./newwinform.php?w=u&amp;nw_id=<?php echo $row['nw_id']; ?>"><img src="./img/icon_mod.jpg" alt="<?php echo $row['nw_subject']; ?> 수정"></a>
<a href="./newwinformupdate.php?w=d&amp;nw_id=<?php echo $row['nw_id']; ?>" onclick="return delete_confirm();"><img src="./img/icon_del.jpg" alt="<?php echo $row['nw_subject']; ?> 삭제"></a>
</td>
</tr>
<tr>
<td class="td_num"><?php echo $row['nw_id']; ?></td>
<td><?php echo $row['nw_subject']; ?></td>
<td class="td_time"><?php echo substr($row['nw_begin_time'],2,14); ?></td>
<td class="td_time"><?php echo substr($row['nw_end_time'],2,14); ?></td>
<td><?php echo $row['nw_disable_hours']; ?>시간</td>
<td><?php echo $row['nw_left']; ?>px</td>
<td><?php echo $row['nw_top']; ?>px</td>
<td><?php echo $row['nw_width']; ?>px</td>
<td><?php echo $row['nw_height']; ?>px</td>
<td class="td_mng sv_use">
<div class="sel_wrap">
<button type="button" class="sel_btn">관리하기</button>
<ul class="sel_ul">
<li class="sel_li"><a href="./newwinform.php?w=u&amp;nw_id=<?php echo $row['nw_id']; ?>" class="sel_a"><span class="sound_only"><?php echo $row['nw_subject']; ?> </span>수정</a></li>
<li class="sel_li"><a href="./newwinformupdate.php?w=d&amp;nw_id=<?php echo $row['nw_id']; ?>" class="sel_a" onclick="return delete_confirm();"><span class="sound_only"><?php echo $row['nw_subject']; ?> </span>삭제</a><li class="sel_li">
</ul>
</div>
</td>
</tr>
<?php
}

View File

@ -194,7 +194,14 @@ if ($search) // 검색 결과일 때만 처음 버튼을 보여줌
<td class="td_num"><?php echo number_format($temporary_qty); ?></td>
<td class="td_num"><input type="text" name="io_stock_qty[<?php echo $i; ?>]" value="<?php echo $row['io_stock_qty']; ?>" class="frm_input" size="8" autocomplete="off"></td>
<td class="td_chk"><input type="checkbox" name="io_use[<?php echo $i; ?>]" value="1" <?php echo ($row['io_use'] ? "checked" : ""); ?>></td>
<td class="td_smallmng"><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; ?>">수정</a></td>
<td class="td_mng sv_use">
<div class="sel_wrap">
<button type="button" class="sel_btn">관리하기</button>
<ul class="sel_ul">
<li class="sel_li"><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; ?>" class="sel_a">수정</a></li>
</ul>
</div>
</td>
</tr>
<?php
}

View File

@ -13,6 +13,9 @@ if ($search != "")
{
if ($sel_field != "")
{
if($sel_field == 'mb_id')
$sel_field = 'a.'.$sel_field;
$sql_search .= " $where $sel_field like '%$search%' ";
$where = " and ";
}
@ -211,35 +214,40 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
$od_mobile = '';
if($lines[$i]['od_mobile'])
$od_mobile = '(M)';
?>
<tr class="orderlist">
<td class="td_odrnum2">
<?php echo $od_mobile; ?>
<a href="<?php echo G4_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $lines[$i]['od_id']; ?>&amp;uq_id=<?php echo $lines[$i]['uq_id']; ?>">
<?php echo $lines[$i]['od_id']; ?><br>
<span class="sound_only">주문일시 </span><?php echo $lines[$i]['od_time']; ?>
</a>
</td>
<!-- <td align=center><a href="<?php echo $_SERVER['PHP_SELF']; ?>?sort1=$sort1&amp;sort2=$sort2&amp;sel_field=od_name&amp;search=<?php echo $lines[$i]['od_name']; ?>'><span title="<?php echo $od_deposit_name; ?>"><?php echo cut_str($lines[$i]['od_name'],8,""); ?></span></a></td> -->
<td class="td_name">
<?php echo $mb_nick; ?><br>
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?sort1=<?php echo $sort1; ?>&amp;sort2=<?php echo $sort2; ?>&amp;sel_field=mb_id&amp;search=<?php echo $lines[$i]['mb_id']; ?>">
<?php echo $lines[$i]['mb_id']; ?>
</a>
</td>
<td class="td_sodr_cnt"><b><?php echo $lines[$i]['itemcount']; ?></b>건<?php if($od_cnt) { ?><br>누적 <?php echo $od_cnt; ?>건<?php } ?></td>
<td class="td_sodr_sum"><?php echo number_format($lines[$i]['orderamount']); ?></td>
<td><?php echo number_format($lines[$i]['ordercancel']); ?></td>
<td><?php echo number_format($lines[$i]['od_dc_amount']); ?></td>
<td class="td_sodr_sum"><?php echo number_format($lines[$i]['receiptamount']); ?></td>
<td><?php echo number_format($lines[$i]['receiptcancel']); ?></td>
<td class="td_sodr_nonpay"><?php echo number_format($lines[$i]['misu']); ?></td>
<td><?php echo $s_receipt_way; ?></td>
<td>
<a href="./orderform.php?od_id=<?php echo $lines[$i]['od_id']; ?>&amp;<?php echo $qstr; ?>"><img src="./img/icon_mod.jpg" alt="<?php echo $lines[$i]['od_id']; ?> 수정"></a>
<a href="./orderdelete.php?od_id=<?php echo $lines[$i]['od_id']; ?>&amp;uq_id=<?php echo $lines[$i]['uq_id']; ?>&amp;mb_id=<?php echo $lines[$i]['mb_id']; ?>&amp;<?php echo $qstr; ?>" onclick="return delete_confirm();"><img src="./img/icon_del.jpg" alt="<?php echo $lines[$i]['od_id']; ?> 삭제"></a>
</td>
</tr>
?>
<tr class="orderlist">
<td class="td_odrnum2">
<?php echo $od_mobile; ?>
<a href="<?php echo G4_SHOP_URL; ?>/orderinquiryview.php?od_id=<?php echo $lines[$i]['od_id']; ?>&amp;uq_id=<?php echo $lines[$i]['uq_id']; ?>">
<?php echo $lines[$i]['od_id']; ?><br>
<span class="sound_only">주문일시 </span><?php echo $lines[$i]['od_time']; ?>
</a>
</td>
<!-- <td align=center><a href="<?php echo $_SERVER['PHP_SELF']; ?>?sort1=$sort1&amp;sort2=$sort2&amp;sel_field=od_name&amp;search=<?php echo $lines[$i]['od_name']; ?>'><span title="<?php echo $od_deposit_name; ?>"><?php echo cut_str($lines[$i]['od_name'],8,""); ?></span></a></td> -->
<td class="td_name">
<?php echo $mb_nick; ?><br>
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?sort1=<?php echo $sort1; ?>&amp;sort2=<?php echo $sort2; ?>&amp;sel_field=mb_id&amp;search=<?php echo $lines[$i]['mb_id']; ?>">
<?php echo $lines[$i]['mb_id']; ?>
</a>
</td>
<td class="td_sodr_cnt"><b><?php echo $lines[$i]['itemcount']; ?></b>건<?php if($od_cnt) { ?><br>누적 <?php echo $od_cnt; ?>건<?php } ?></td>
<td class="td_sodr_sum"><?php echo number_format($lines[$i]['orderamount']); ?></td>
<td><?php echo number_format($lines[$i]['ordercancel']); ?></td>
<td><?php echo number_format($lines[$i]['od_dc_amount']); ?></td>
<td class="td_sodr_sum"><?php echo number_format($lines[$i]['receiptamount']); ?></td>
<td><?php echo number_format($lines[$i]['receiptcancel']); ?></td>
<td class="td_sodr_nonpay"><?php echo number_format($lines[$i]['misu']); ?></td>
<td><?php echo $s_receipt_way; ?></td>
<td class="td_mng sv_use">
<div class="sel_wrap">
<button type="button" class="sel_btn">관리하기</button>
<ul class="sel_ul">
<li class="sel_li"><a href="./orderform.php?od_id=<?php echo $lines[$i]['od_id']; ?>&amp;<?php echo $qstr; ?>" class="sel_a"><span class="sound_only"><?php echo $lines[$i]['od_id']; ?> </span>수정</a></li>
<li class="sel_li"><a href="./orderdelete.php?od_id=<?php echo $lines[$i]['od_id']; ?>&amp;uq_id=<?php echo $lines[$i]['uq_id']; ?>&amp;mb_id=<?php echo $lines[$i]['mb_id']; ?>&amp;<?php echo $qstr; ?>" class="sel_a" onclick="return delete_confirm();"><span class="sound_only"><?php echo $lines[$i]['od_id']; ?> </span>삭제</a></li>
</ul>
</div>
</td>
</tr>
<?php
}
mysql_free_result($result);

View File

@ -75,8 +75,7 @@ h2 {font-size:1.2em}
#qnb {float:right;margin:0;padding:0;list-style:none}
#qnb li {margin-bottom:20px}
#qnb a {display:block;width:40px;font-size:0.9em;text-align:center}
#qnb a {display:block;width:40px;font-size:0.9em;text-align:center;letter-spacing:-0.1em}
#qnb a:focus, #qnb a:hover, #qnb a:active {text-decoration:none}
#qnb img {margin-bottom:5px}
@ -319,8 +318,7 @@ strong.sodr_nonpay {display:block;padding:5px 0;text-align:right}
#anc_pricecompare_engine dt a {font-weight:bold}
#anc_pricecompare_engine dd {margin:0 0 30px}
#anc_pricecompare_engine li {margin:5px 0}
#anc_pricecompare_engine li {margin:5px 0}
/* 화면낭독기 사용자용 */
#hd_login_msg {position:absolute;top:0;left:0;width:1px;height:1px;overflow:hidden}
@ -476,8 +474,9 @@ td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9
#point_mng {margin-top:50px}
/* 회원메일발송 목록 */
.td_test, .td_send {width:50px;text-align:center}
.td_mng {width:110px;text-align:center}
.td_smallmng {width:60px;text-align:center}
.td_mng {width:100px;text-align:center}
.td_smallmng {width:50px;text-align:center}
/* 투표관리 목록 */
.td_etc {width:80px;text-align:center}
/* 게시판관리 목록 */
@ -566,6 +565,15 @@ td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9
.sv_on {display:block !important;position:absolute;top:10px;left:20px;width:auto;height:auto !important}
.sv_nojs .sv {display:block}
/* 셀렉트 스타일 UL */
.sel_wrap {position:relative;width:100px}
.sel_btn {width:100px;height:25px;border:1px solid #000;background:#333;color:#fff}
.sel_ul {display:none;position:absolute;top:10px;right:-20px;margin:0;padding:0;width:88px;border:1px solid #999;border-bottom:0;background:#fff;list-style:none}
.sel_on {display:block;z-index:2}
.sel_li {border-bottom:1px solid #999}
.sel_a {display:block;height:23px;text-align:center;line-height:2em !important;line-height:1.9em}
.sel_a:focus, .sel_a:hover {background:#f5f6fa;text-decoration:none}
/* pagination */
.pg_wrap {clear:both;margin:0 0 20px;padding-top:20px;text-align:center}
.pg {display:inline-block;border:1px solid #ddd;letter-spacing:-4px}

View File

@ -221,6 +221,15 @@ td.empty_table {padding:85px 0;text-align:center}
.sv_on {display:block !important;position:absolute;top:10px;left:20px;width:auto;height:auto !important}
.sv_nojs .sv {display:block}
/* 셀렉트 스타일 UL */
.sel_wrap {position:relative;width:100px}
.sel_btn {width:100px;height:25px;border:1px solid #000;background:#333;color:#fff}
.sel_ul {display:none;position:absolute;top:10px;right:-20px;margin:0;padding:0;width:88px;border:1px solid #999;border-bottom:0;background:#fff;list-style:none}
.sel_on {display:block;z-index:2}
.sel_li {border-bottom:1px solid #999}
.sel_a {display:block;height:23px;text-align:center;line-height:2em !important;line-height:1.9em}
.sel_a:focus, .sel_a:hover {background:#f5f6fa;text-decoration:none}
/* pagination */
.pg_wrap {clear:both;margin:0 0 20px;padding-top:20px;text-align:center}
.pg {display:inline-block;border:1px solid #cfded8;letter-spacing:-4px}

View File

@ -209,6 +209,7 @@ button.btn_cancel {display:inline-block;padding:0 10px;height:24px;border:1px so
.btn_cancel:focus,
.btn_cancel:hover {text-decoration:none !important}
.btn_frmline {display:inline-block;padding:0 7px 0 5px;height:22px;border:0;background:#333;color:#fff !important;letter-spacing:-0.1em;text-decoration:none;vertical-align:top;line-height:2em} /* 우편번호검색버튼 등 */
.btn_frmline2 {display:inline-block;padding:0 7px 0 5px;height:20px;border:1px solid #e9e9e9;background:#f5f6fa;color:#ff3061 !important;letter-spacing:-0.1em;text-decoration:none;vertical-align:top;line-height:1.7em}
button.btn_frmline {font-size:1em}
.btn_win {clear:both;margin-bottom:20px;text-align:center} /* 새창용 */
.btn_win a,
@ -511,7 +512,7 @@ input.required:focus {border:1px solid #b8c9c2;background:#21272e !important;col
.sit_sel_btn button {position:absolute;top:-51px;right:0 !important;right:15px}
.td_sit_sel {position:relative}
.sit_sel_submit {position:absolute;top:8px;right:0}
.sit_sel_submit {position:static !important;position:absolute;float:right !important;float:none;top:8px;right:0}
#sit_opt_added {margin:0;padding:0;border:1px solid #e9e9e9;border-bottom:0;background:#fff;list-style:none}
#sit_opt_added li {padding:10px 20px;border-bottom:1px solid #e9e9e9}

View File

@ -311,6 +311,7 @@ a.sanchor_on {background:#626870;color:#fff !important;text-decoration:none}
#sod_bsk_list {position:relative}
#sod_bsk_list #mod_option_frm {z-index:10000;position:absolute;top:0;left:0;padding:20px;width:320px;height:auto !important;height:480px;max-height:480px;border:1px solid #000;background:#f5f6fa;overflow-y:scroll}
html.no-overflowscrolling #mod_option_frm {height:auto;max-height:10000px !important}
#sod_bsk_dvr {padding:0.3em 0 1em;border-bottom:1px solid #e9e9e9}
#sod_bsk_cnt {margin:0 0 1em;padding:1em 0;border-bottom:1px solid #e9e9e9;background:#f5f6fa}

View File

@ -274,4 +274,12 @@ if(!$result) {
ADD `od_id` BIGINT(20) UNSIGNED NOT NULL AFTER `cp_maximum`,
ADD `cp_used_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER `cp_used` ", false);
}
// 장바구니 선택필드추가
$sql = " select ct_select from {$g4['shop_cart_table']} limit 1 ";
$result = sql_query($sql, false);
if(!$result) {
sql_query(" ALTER TABLE `{$g4['shop_cart_table']}`
ADD `ct_select` TINYINT(4) NOT NULL DEFAULT '0' AFTER `ct_direct` ", true);
}
?>

View File

@ -75,7 +75,8 @@ CREATE TABLE IF NOT EXISTS `shop_cart` (
`ct_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`ct_ip` varchar(25) NOT NULL DEFAULT '',
`ct_send_cost` varchar(255) NOT NULL,
`ct_direct` tinyint(4) NOT NULL,
`ct_direct` tinyint(4) NOT NULL DEFAULT '0',
`ct_select` tinyint(4) NOT NULL DEFAULT '0',
PRIMARY KEY (`ct_id`),
KEY `uq_id` (`uq_id`),
KEY `ct_num` (`ct_num`)

View File

@ -608,16 +608,46 @@ $(function(){
sv_hide = true;
});
// 셀렉트 ul
var sel_hide = false;
$('.sel_btn').click(function() {
$('.sel_ul').removeClass('sel_on');
$(this).siblings('.sel_ul').addClass('sel_on');
});
$(".sel_wrap").hover(
function() {
sel_hide = false;
},
function() {
sel_hide = true;
}
);
$('.sel_a').focusin(function() {
sel_hide = false;
});
$('.sel_a').focusout(function() {
sel_hide = true;
});
$(document).click(function() {
if(sv_hide) {
if(sv_hide) { // 사이드뷰 해제
$(".sv").removeClass("sv_on");
}
if (sel_hide) { // 셀렉트 ul 해제
$('.sel_ul').removeClass('sel_on');
}
});
$(document).focusin(function() {
if(sv_hide) {
if(sv_hide) { // 사이드뷰 해제
$(".sv").removeClass("sv_on");
}
if (sel_hide) { // 셀렉트 ul 해제
$('.sel_ul').removeClass('sel_on');
}
});
$("textarea#wr_content[maxlength]").live("keyup change", function() {
@ -629,17 +659,3 @@ $(function(){
}
});
});
// 모달 레이어 http://mytory.net/archives/783 참조
function winMask(){ // 모달 레이어 배경
//화면의 높이와 너비를 구한다.
var maskHeight = $(document).height();
var maskWidth = $(window).width();
//마스크의 높이와 너비를 화면 것으로 만들어 전체 화면을 채운다.
$('#win_mask').css({'width':maskWidth,'height':maskHeight});
//애니메이션 효과
$('#win_mask').fadeTo("fast",0.8);
}
// 모달 레이어 끝

4
js/modernizr.custom.70111.js vendored Normal file
View File

@ -0,0 +1,4 @@
/* Modernizr 2.6.2 (Custom Build) | MIT & BSD
* Build: http://modernizr.com/download/#-cssclasses-testallprops-css_overflow_scrolling
*/
;window.Modernizr=function(a,b,c){function x(a){j.cssText=a}function y(a,b){return x(prefixes.join(a+";")+(b||""))}function z(a,b){return typeof a===b}function A(a,b){return!!~(""+a).indexOf(b)}function B(a,b){for(var d in a){var e=a[d];if(!A(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function C(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:z(f,"function")?f.bind(d||b):f}return!1}function D(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+n.join(d+" ")+d).split(" ");return z(b,"string")||z(b,"undefined")?B(e,b):(e=(a+" "+o.join(d+" ")+d).split(" "),C(e,b,c))}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m="Webkit Moz O ms",n=m.split(" "),o=m.toLowerCase().split(" "),p={},q={},r={},s=[],t=s.slice,u,v={}.hasOwnProperty,w;!z(v,"undefined")&&!z(v.call,"undefined")?w=function(a,b){return v.call(a,b)}:w=function(a,b){return b in a&&z(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=t.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(t.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(t.call(arguments)))};return e});for(var E in p)w(p,E)&&(u=E.toLowerCase(),e[u]=p[E](),s.push((e[u]?"":"no-")+u));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)w(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},x(""),i=k=null,e._version=d,e._domPrefixes=o,e._cssomPrefixes=n,e.testProp=function(a){return B([a])},e.testAllProps=D,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+s.join(" "):""),e}(this,this.document),Modernizr.addTest("overflowscrolling",function(){return Modernizr.testAllProps("overflowScrolling")});

View File

@ -3,14 +3,13 @@ include_once('./_common.php');
$g4['title'] = '장바구니';
include_once(G4_MSHOP_PATH.'/_head.php');
$s_uq_id = get_session('ss_uq_id');
?>
<script src="<?php echo G4_JS_URL; ?>/shop.js"></script>
<div id="sod_bsk">
<form name="frmcartlist" id="sod_bsk_list" method="post">
<form name="frmcartlist" id="sod_bsk_list" method="post" action="<?php echo $cart_action_url; ?>">
<table class="basic_tbl">
<thead>
<tr>
@ -20,7 +19,7 @@ $s_uq_id = get_session('ss_uq_id');
<th scope="col">판매가</th>
<th scope="col">소계</th>
<th scope="col">포인트</th>
<th scope="col"><input type="checkbox" name="ct_all" value="1"></th>
<th scope="col"><input type="checkbox" name="ct_all" value="1" checked="checked"></th>
</tr>
</thead>
<tbody>
@ -91,7 +90,7 @@ $s_uq_id = get_session('ss_uq_id');
<td class="td_bignum"><?php echo number_format($row['ct_price']); ?></td>
<td class="td_bignum"><?php echo number_format($sell_amount); ?></td>
<td class="td_num"><?php echo number_format($sum['point']); ?></td>
<td class="td_smallmng"><input type="checkbox" name="ct_chk[<?php echo $i; ?>]" value="1"></td>
<td class="td_smallmng"><input type="checkbox" name="ct_chk[<?php echo $i; ?>]" value="1" checked="checked"></td>
</tr>
<?php
@ -158,9 +157,9 @@ $s_uq_id = get_session('ss_uq_id');
<input type="hidden" name="records" value="<?php echo $i; ?>">
<p>장바구니의 상품을 주문하시려면 <strong>주문하기</strong>를 클릭하세요. <strong>비우기</strong>는 장바구니의 상품을 모두 비웁니다.</p>
<a href="<?php echo G4_SHOP_URL; ?>/list.php?ca_id=<?php echo $continue_ca_id; ?>" class="btn01">쇼핑 계속하기</a>
<a href="javascript:form_check('buy');" class="btn02">주문하기</a>
<a href="javascript:form_check('seldelete');" class="btn01">선택삭제</a>
<a href="javascript:form_check('alldelete');" class="btn01">비우기</a>
<button type="button" onclick="return form_check('buy');" class="btn02">주문하기</button>
<button type="button" onclick="return form_check('seldelete');" class="btn01">선택삭제</button>
<button type="button" onclick="return form_check('alldelete');" class="btn01">비우기</button>
<?php } ?>
</div>
@ -221,21 +220,11 @@ function form_check(act) {
if (act == "buy")
{
f.act.value = act;
<?php
if (get_session('ss_mb_id')) // 회원인 경우
{
echo "f.action = './orderform.php';";
echo "f.submit();";
}
else
echo "document.location.href = '".G4_BBS_URL."/login.php?url=".urlencode(G4_SHOP_URL."/orderform.php")."';";
?>
f.submit();
}
else if (act == "alldelete")
{
f.act.value = act;
f.action = "./cartupdate.php";
f.submit();
}
else if (act == "seldelete")
@ -246,7 +235,6 @@ function form_check(act) {
}
f.act.value = act;
f.action = "./cartupdate.php";
f.submit();
}

View File

@ -68,6 +68,7 @@ ob_start();
b.ca_id
from {$g4['shop_cart_table']} a left join {$g4['shop_item_table']} b on ( a.it_id = b.it_id )
where a.uq_id = '$s_uq_id'
and a.ct_select = '1'
and a.ct_num = '0' ";
if($default['de_cart_keep_term']) {
$ctime = date('Y-m-d H:i:s', G4_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
@ -167,7 +168,8 @@ ob_start();
} // for 끝
if ($i == 0) {
echo '<tr><td colspan="'.$colspan.'" class="empty_table">장바구니에 담긴 상품이 없습니다.</td></tr>';
//echo '<tr><td colspan="'.$colspan.'" class="empty_table">장바구니에 담긴 상품이 없습니다.</td></tr>';
alert('장바구니가 비어 있습니다.', G4_SHOP_URL.'/cart.php');
} else {
// 배송비 계산
if ($default['de_send_cost_case'] == '없음')
@ -707,7 +709,7 @@ $(function() {
$.post(
"./orderitemcoupon.php",
{ it_id: it_id },
{ it_id: it_id, sw_direct: "<?php echo $sw_direct; ?>" },
function(data) {
$cp_btn_el.after(data);
}
@ -780,7 +782,6 @@ $(function() {
$("#od_coupon_frm").remove();
var $this = $(this);
var amount = parseInt($("input[name=org_od_amount]").val());
var send_cost = parseInt($("input[name=org_send_cost]").val());
$.post(
"./ordercoupon.php",
{ amount: amount },

View File

@ -37,7 +37,8 @@ $sql = " select it_id,
io_type,
ct_option
from {$g4['shop_cart_table']}
where uq_id = '$tmp_uq_id' ";
where uq_id = '$tmp_uq_id'
and ct_select = '1' ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
@ -52,6 +53,9 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$error .= "{$row['ct_option']} 의 재고수량이 부족합니다. 현재고수량 : $it_stock_qty\\n\\n";
}
if($i == 0)
alert('장바구니가 비어 있습니다.\\n\\n이미 주문하셨거나 장바구니에 담긴 상품이 없는 경우입니다.', G4_SHOP_URL.'/cart.php');
if ($error != "")
{
$error .= "다른 고객님께서 {$od_name}님 보다 먼저 주문하신 경우입니다. 불편을 끼쳐 죄송합니다.";
@ -65,7 +69,7 @@ $i_temp_point = (int)$_POST['od_temp_point'];
// 주문금액이 상이함
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as od_amount
from {$g4['shop_cart_table']} where uq_id = '$tmp_uq_id' ";
from {$g4['shop_cart_table']} where uq_id = '$tmp_uq_id' and ct_select = '1' ";
$row = sql_fetch($sql);
$tot_ct_amount = $row['od_amount'];
@ -112,7 +116,8 @@ if($is_member) {
$sql = " select SUM( IF(io_type = '1', io_price * ct_qty, (ct_price + io_price) * ct_qty)) as sum_price
from {$g4['shop_cart_table']}
where uq_id = '$tmp_uq_id'
and it_id = '$it_id' ";
and it_id = '$it_id'
and ct_select = '1' ";
$ct = sql_fetch($sql);
$item_price = $ct['sum_price'];
@ -206,7 +211,7 @@ if($is_member && $send_cost > 0) {
$dc = 0;
if($cp['cp_id'] && ($cp['cp_minimum'] <= $tot_od_amount)) {
if($cp['cp_type']) {
$dc = floor(($tot_od_amount * ($cp['cp_amount'] / 100)) / $cp['cp_trunc']) * $cp['cp_trunc'];
$dc = floor(($send_cost * ($cp['cp_amount'] / 100)) / $cp['cp_trunc']) * $cp['cp_trunc'];
} else {
$dc = $cp['cp_amount'];
}
@ -372,10 +377,13 @@ else
// 주문번호를 얻는다.
$od_id = get_session('ss_order_uniqid');
// 주문상품의 uq_id 변경을 위한 uq_id를 얻는다.
$uq_id = get_uniqid();
// 주문서에 입력
$sql = " insert {$g4['shop_order_table']}
set od_id = '$od_id',
uq_id = '$tmp_uq_id',
uq_id = '$uq_id',
mb_id = '{$member['mb_id']}',
od_pwd = '$od_pwd',
od_name = '$od_name',
@ -438,9 +446,11 @@ if (($od_receipt_card > 0 || $od_receipt_hp > 0) && $default['de_card_point'] ==
$sql_card_point = " , ct_point = '0' ";
}
$sql = "update {$g4['shop_cart_table']}
set ct_status = '주문'
set uq_id = '$uq_id',
ct_status = '주문'
$sql_card_point
where uq_id = '$tmp_uq_id' ";
where uq_id = '$tmp_uq_id'
and ct_select = '1' ";
$result = sql_query($sql, false);
// 주문정보 입력 오류시 kcp 결제 취소
@ -453,7 +463,7 @@ if(!$result) {
echo "<p>$sql<p>" . mysql_errno() . " : " . mysql_error() . "<p>error file : {$_SERVER['PHP_SELF']}";
// 주문삭제
sql_query(" delete from {$g4['shop_order_table']} where od_id = '$od_id' and uq_id = '$tmp_uq_id' ");
sql_query(" delete from {$g4['shop_order_table']} where od_id = '$od_id' and uq_id = '$uq_id' ");
exit;
}
@ -488,8 +498,9 @@ if($is_member) {
$cp_amt = (int)$arr_it_cp_amt[$cp_it_id];
$sql = " update {$g4['shop_cart_table']}
set cp_amount = '$cp_amt'
where uq_id = '$tmp_uq_id'
where uq_id = '$uq_id'
and it_id = '$cp_it_id'
and ct_select = '1'
and ct_num = '0' ";
sql_query($sql);
}
@ -562,20 +573,14 @@ if($default['de_sms_use'] && ($default['de_sms_use2'] || $default['de_sms_use3']
// orderview 에서 사용하기 위해 tmp에 넣고
set_session('ss_temp_uq_id', $tmp_uq_id);
set_session('ss_temp_uq_id', $uq_id);
// 주문번호제거
set_session('ss_order_uniqid', '');
// ss_uq_id 기존자료 세션에서 제거
// 기존자료 세션에서 제거
if (get_session('ss_direct'))
set_session('ss_uq_direct', '');
else
set_session('ss_uq_id', '');
// 비회원장바구니 쿠키 초기화
if(get_cookie('ck_guest_cart_uqid'))
set_cookie('ck_guest_cart_uqid', '', 0);
goto_url(G4_SHOP_URL.'/orderinquiryview.php?od_id='.$od_id.'&amp;uq_id='.$tmp_uq_id);
goto_url(G4_SHOP_URL.'/orderinquiryview.php?od_id='.$od_id.'&amp;uq_id='.$uq_id);
?>

View File

@ -7,6 +7,9 @@ include_once(G4_LIB_PATH.'/connect.lib.php');
include_once(G4_LIB_PATH.'/popular.lib.php');
?>
<!-- overflow scroll 감지 -->
<script src="<?php echo G4_URL; ?>/js/modernizr.custom.70111.js"></script>
<header id="header">
<?php if ((!$bo_table || $w == 's' ) && defined('_INDEX_')) { ?><h1><?php echo $config['cf_title'] ?></h1><?php } ?>

View File

@ -5,7 +5,6 @@ include_once('./_common.php');
set_unique_id($sw_direct);
// 회원일 경우 자신의 장바구니 상품 uq_id 값을 변경
/*
if($is_member && $sw_direct != 1) {
$tmp_uq_id = get_session('ss_uq_id');
if(!$tmp_uq_id) {
@ -22,7 +21,13 @@ if($is_member && $sw_direct != 1) {
and ct_time > '$ctime' ";
sql_query($sql);
}
*/
$s_uq_id = get_session('ss_uq_id');
// 선택필드 초기화
$sql = " update {$g4['shop_cart_table']} set ct_select = '0' where uq_id = '$s_uq_id' ";
sql_query($sql);
$cart_action_url = G4_SHOP_URL.'/cartupdate.php';
if (G4_IS_MOBILE) {
include_once(G4_MSHOP_PATH.'/cart.php');
@ -31,14 +36,13 @@ if (G4_IS_MOBILE) {
$g4['title'] = '장바구니';
include_once('./_head.php');
$s_uq_id = get_session('ss_uq_id');
?>
<script src="<?php echo G4_JS_URL; ?>/shop.js"></script>
<div id="sod_bsk">
<form name="frmcartlist" id="sod_bsk_list" method="post">
<form name="frmcartlist" id="sod_bsk_list" method="post" action="<?php echo $cart_action_url; ?>">
<table class="basic_tbl">
<thead>
<tr>
@ -48,7 +52,7 @@ $s_uq_id = get_session('ss_uq_id');
<th scope="col">판매가</th>
<th scope="col">소계</th>
<th scope="col">포인트</th>
<th scope="col"><input type="checkbox" name="ct_all" value="1"></th>
<th scope="col"><input type="checkbox" name="ct_all" value="1" checked="checked"></th>
</tr>
</thead>
<tbody>
@ -124,7 +128,7 @@ $s_uq_id = get_session('ss_uq_id');
<td class="td_bignum"><?php echo number_format($row['ct_price']); ?></td>
<td class="td_bignum"><span id="sell_amount_<?php echo $i; ?>"><?php echo number_format($sell_amount); ?></span></td>
<td class="td_bignum"><?php echo number_format($point); ?></td>
<td class="td_smallmng"><input type="checkbox" name="ct_chk[<?php echo $i; ?>]" value="1"></td>
<td class="td_smallmng"><input type="checkbox" name="ct_chk[<?php echo $i; ?>]" value="1" checked="checked"></td>
</tr>
<?php
@ -198,9 +202,9 @@ $s_uq_id = get_session('ss_uq_id');
<input type="hidden" name="act" value="">
<p>장바구니의 상품을 주문하시려면 <strong>주문하기</strong>를 클릭하세요. <strong>비우기</strong>는 장바구니의 상품을 모두 비웁니다.</p>
<a href="<?php echo G4_SHOP_URL; ?>/list.php?ca_id=<?php echo $continue_ca_id; ?>" class="btn01">쇼핑 계속하기</a>
<a href="javascript:form_check('buy');" class="btn02">주문하기</a>
<a href="javascript:form_check('seldelete');" class="btn01">선택삭제</a>
<a href="javascript:form_check('alldelete');" class="btn01">비우기</a>
<button type="button" onclick="return form_check('buy');" class="btn02">주문하기</button>
<button type="button" onclick="return form_check('seldelete');" class="btn01">선택삭제</button>
<button type="button" onclick="return form_check('alldelete');" class="btn01">비우기</button>
<?php } ?>
</div>
@ -243,12 +247,10 @@ $(function() {
// 옵션수정 닫기
$("#mod_option_close").live("click", function() {
$("#mod_option_frm").remove();
$("#win_mask, .window").hide();
$(".mod_options").eq(close_btn_idx).focus();
});
$("#win_mask").click(function () {
$("#mod_option_frm").remove();
$("#win_mask").hide();
$(".mod_options").eq(close_btn_idx).focus();
});
@ -260,22 +262,17 @@ function form_check(act) {
if (act == "buy")
{
f.act.value = act;
<?php
if (get_session('ss_mb_id')) // 회원인 경우
{
echo "f.action = './orderform.php';";
echo "f.submit();";
if($("input[name^=ct_chk]:checked").size() < 1) {
alert("주문하실 상품을 하나이상 선택해 주십시오.");
return false;
}
else
echo "document.location.href = '".G4_BBS_URL."/login.php?url=".urlencode(G4_SHOP_URL."/orderform.php")."';";
?>
f.act.value = act;
f.submit();
}
else if (act == "alldelete")
{
f.act.value = act;
f.action = "./cartupdate.php";
f.submit();
}
else if (act == "seldelete")
@ -286,7 +283,6 @@ function form_check(act) {
}
f.act.value = act;
f.action = "./cartupdate.php";
f.submit();
}

View File

@ -22,8 +22,29 @@ if ($member['mb_level'] < $default['de_level_sell'])
alert('상품을 구입할 수 있는 권한이 없습니다.');
}
if($act == "buy")
{
if(!count($_POST['ct_chk']))
alert("주문하실 상품을 하나이상 선택해 주십시오.");
if ($act == "d") // 삭제이면
$fldcnt = count($_POST['it_id']);
for($i=0; $i<$fldcnt; $i++) {
$ct_chk = $_POST['ct_chk'][$i];
if($ct_chk) {
$it_id = $_POST['it_id'][$i];
$sql = " update {$g4['shop_cart_table']}
set ct_select = '1'
where it_id = '$it_id' and uq_id = '$tmp_uq_id' ";
sql_query($sql);
}
}
if ($is_member) // 회원인 경우
goto_url(G4_SHOP_URL.'/orderform.php');
else
goto_url(G4_BBS_URL.'/login.php?url='.urlencode(G4_SHOP_URL.'/orderform.php'));
}
else if ($act == "d") // 삭제이면
{
$sql = " delete from {$g4['shop_cart_table']}
where ct_id = '$ct_id'
@ -38,10 +59,10 @@ else if ($act == "alldelete") // 모두 삭제이면
}
else if ($act == "seldelete") // 선택삭제
{
$fldcnt = count($_POST['it_id']);
if(!$fldcnt)
if(!count($_POST['ct_chk']))
alert("삭제하실 상품을 하나이상 선택해 주십시오.");
$fldcnt = count($_POST['it_id']);
for($i=0; $i<$fldcnt; $i++) {
$ct_chk = $_POST['ct_chk'][$i];
if($ct_chk) {
@ -326,10 +347,15 @@ else // 장바구니에 담기
else
$ct_num = 0;
if($sw_direct)
$ct_select = 1;
else
$ct_select = 0;
$ct_count = 0;
$comma = '';
$sql = " INSERT INTO {$g4['shop_cart_table']}
( uq_id, mb_id, it_id, it_name, ct_status, ct_price, ct_point, ct_point_use, ct_stock_use, ct_option, ct_qty, ct_num, io_id, io_type, io_price, ct_time, ct_ip, ct_direct )
( uq_id, mb_id, it_id, it_name, ct_status, ct_price, ct_point, ct_point_use, ct_stock_use, ct_option, ct_qty, ct_num, io_id, io_type, io_price, ct_time, ct_ip, ct_direct, ct_select )
VALUES ";
for($i=0; $i<$option_count; $i++) {
@ -350,7 +376,7 @@ else // 장바구니에 담기
continue;
}
$sql .= $comma."( '$tmp_uq_id', '{$member['mb_id']}', '{$_POST['it_id']}', '{$_POST['it_name']}', '쇼핑', '{$_POST['it_price']}', '{$_POST['it_point']}', '0', '0', '{$_POST['io_value'][$i]}', '{$_POST['ct_qty'][$i]}', '$ct_num', '{$_POST['io_id'][$i]}', '{$_POST['io_type'][$i]}', '{$_POST['io_price'][$i]}', '".G4_TIME_YMDHIS."', '$REMOTE_ADDR', '$sw_direct' )";
$sql .= $comma."( '$tmp_uq_id', '{$member['mb_id']}', '{$_POST['it_id']}', '{$_POST['it_name']}', '쇼핑', '{$_POST['it_price']}', '{$_POST['it_point']}', '0', '0', '{$_POST['io_value'][$i]}', '{$_POST['ct_qty'][$i]}', '$ct_num', '{$_POST['io_id'][$i]}', '{$_POST['io_type'][$i]}', '{$_POST['io_price'][$i]}', '".G4_TIME_YMDHIS."', '$REMOTE_ADDR', '$sw_direct', '$ct_select' )";
$comma = ' , ';
$ct_num++;
$ct_count++;

View File

@ -18,9 +18,6 @@ else {
if (get_cart_count($tmp_uq_id) == 0)
alert('장바구니가 비어 있습니다.', G4_SHOP_URL.'/cart.php');
// 포인트 결제 대기 필드 추가
//sql_query(" ALTER TABLE `$g4[shop_order_table]` ADD `od_temp_point` INT NOT NULL AFTER `od_temp_card` ", false);
$g4['title'] = '주문서 작성';
include_once('./_head.php');
@ -148,6 +145,7 @@ setTimeout("init_pay_button();",300);
b.ca_id3
from {$g4['shop_cart_table']} a left join {$g4['shop_item_table']} b on ( a.it_id = b.it_id )
where a.uq_id = '$s_uq_id'
and a.ct_select = '1'
and a.ct_num = '0' ";
if($default['de_cart_keep_term']) {
$ctime = date('Y-m-d H:i:s', G4_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
@ -245,7 +243,8 @@ setTimeout("init_pay_button();",300);
} // for 끝
if ($i == 0) {
echo '<tr><td colspan="7" class="empty_table">장바구니에 담긴 상품이 없습니다.</td></tr>';
//echo '<tr><td colspan="7" class="empty_table">장바구니에 담긴 상품이 없습니다.</td></tr>';
alert('장바구니가 비어 있습니다.', G4_SHOP_URL.'/cart.php');
} else {
// 배송비 계산
if ($default['de_send_cost_case'] == '없음')
@ -915,7 +914,7 @@ $(function() {
$.post(
"./orderitemcoupon.php",
{ it_id: it_id },
{ it_id: it_id, sw_direct: "<?php echo $sw_direct; ?>" },
function(data) {
$cp_btn_el.after(data);
}
@ -988,7 +987,6 @@ $(function() {
$("#od_coupon_frm").remove();
var $this = $(this);
var amount = parseInt($("input[name=org_od_amount]").val());
var send_cost = parseInt($("input[name=org_send_cost]").val());
$.post(
"./ordercoupon.php",
{ amount: amount },

View File

@ -20,7 +20,7 @@ else
$tmp_uq_id = get_session('ss_uq_id');
if (get_cart_count($tmp_uq_id) == 0)// 장바구니에 담기
alert('장바구니가 비어 있습니다.\\n\\n이미 주문하셨거나 장바구니에 담긴 상품이 없는 경우입니다.', './cart.php');
alert('장바구니가 비어 있습니다.\\n\\n이미 주문하셨거나 장바구니에 담긴 상품이 없는 경우입니다.', G4_SHOP_URL.'/cart.php');
$error = "";
// 장바구니 상품 재고 검사
@ -31,7 +31,8 @@ $sql = " select it_id,
io_type,
ct_option
from {$g4['shop_cart_table']}
where uq_id = '$tmp_uq_id' ";
where uq_id = '$tmp_uq_id'
and ct_select = '1' ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
@ -46,6 +47,9 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$error .= "{$row['ct_option']} 의 재고수량이 부족합니다. 현재고수량 : $it_stock_qty\\n\\n";
}
if($i == 0)
alert('장바구니가 비어 있습니다.\\n\\n이미 주문하셨거나 장바구니에 담긴 상품이 없는 경우입니다.', G4_SHOP_URL.'/cart.php');
if ($error != "")
{
$error .= "다른 고객님께서 {$od_name}님 보다 먼저 주문하신 경우입니다. 불편을 끼쳐 죄송합니다.";
@ -59,7 +63,7 @@ $i_temp_point = (int)$_POST['od_temp_point'];
// 주문금액이 상이함
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as od_amount
from {$g4['shop_cart_table']} where uq_id = '$tmp_uq_id' ";
from {$g4['shop_cart_table']} where uq_id = '$tmp_uq_id' and ct_select = '1' ";
$row = sql_fetch($sql);
$tot_ct_amount = $row['od_amount'];
@ -106,7 +110,8 @@ if($is_member) {
$sql = " select SUM( IF(io_type = '1', io_price * ct_qty, (ct_price + io_price) * ct_qty)) as sum_price
from {$g4['shop_cart_table']}
where uq_id = '$tmp_uq_id'
and it_id = '$it_id' ";
and it_id = '$it_id'
and ct_select = '1' ";
$ct = sql_fetch($sql);
$item_price = $ct['sum_price'];
@ -200,7 +205,7 @@ if($is_member && $send_cost > 0) {
$dc = 0;
if($cp['cp_id'] && ($cp['cp_minimum'] <= $tot_od_amount)) {
if($cp['cp_type']) {
$dc = floor(($tot_od_amount * ($cp['cp_amount'] / 100)) / $cp['cp_trunc']) * $cp['cp_trunc'];
$dc = floor(($send_cost * ($cp['cp_amount'] / 100)) / $cp['cp_trunc']) * $cp['cp_trunc'];
} else {
$dc = $cp['cp_amount'];
}
@ -366,10 +371,13 @@ else
// 주문번호를 얻는다.
$od_id = get_session('ss_order_uniqid');
// 주문상품의 uq_id 변경을 위한 uq_id를 얻는다.
$uq_id = get_uniqid();
// 주문서에 입력
$sql = " insert {$g4['shop_order_table']}
set od_id = '$od_id',
uq_id = '$tmp_uq_id',
uq_id = '$uq_id',
mb_id = '{$member['mb_id']}',
od_pwd = '$od_pwd',
od_name = '$od_name',
@ -431,9 +439,11 @@ if (($od_receipt_card > 0 || $od_receipt_hp > 0) && $default['de_card_point'] ==
$sql_card_point = " , ct_point = '0' ";
}
$sql = "update {$g4['shop_cart_table']}
set ct_status = '주문'
set uq_id = '$uq_id',
ct_status = '주문'
$sql_card_point
where uq_id = '$tmp_uq_id' ";
where uq_id = '$tmp_uq_id'
and ct_select = '1' ";
$result = sql_query($sql, false);
// 주문정보 입력 오류시 kcp 결제 취소
@ -446,7 +456,7 @@ if(!$result) {
echo "<p>$sql<p>" . mysql_errno() . " : " . mysql_error() . "<p>error file : {$_SERVER['PHP_SELF']}";
// 주문삭제
sql_query(" delete from {$g4['shop_order_table']} where od_id = '$od_id' and uq_id = '$tmp_uq_id' ");
sql_query(" delete from {$g4['shop_order_table']} where od_id = '$od_id' and uq_id = '$uq_id' ");
exit;
}
@ -482,8 +492,9 @@ if($is_member) {
$cp_amt = (int)$arr_it_cp_amt[$cp_it_id];
$sql = " update {$g4['shop_cart_table']}
set cp_amount = '$cp_amt'
where uq_id = '$tmp_uq_id'
where uq_id = '$uq_id'
and it_id = '$cp_it_id'
and ct_select = '1'
and ct_num = '0' ";
sql_query($sql);
}
@ -556,20 +567,14 @@ if($default['de_sms_use'] && ($default['de_sms_use2'] || $default['de_sms_use3']
// orderview 에서 사용하기 위해 tmp에 넣고
set_session('ss_temp_uq_id', $tmp_uq_id);
set_session('ss_temp_uq_id', $uq_id);
// 주문번호제거
set_session('ss_order_uniqid', '');
// ss_uq_id 기존자료 세션에서 제거
// 기존자료 세션에서 제거
if (get_session('ss_direct'))
set_session('ss_uq_direct', '');
else
set_session('ss_uq_id', '');
// 비회원장바구니 쿠키 초기화
if(get_cookie('ck_guest_cart_uqid'))
set_cookie('ck_guest_cart_uqid', '', 0);
goto_url(G4_SHOP_URL.'/orderinquiryview.php?od_id='.$od_id.'&amp;uq_id='.$tmp_uq_id);
goto_url(G4_SHOP_URL.'/orderinquiryview.php?od_id='.$od_id.'&amp;uq_id='.$uq_id);
?>

View File

@ -6,11 +6,16 @@ if($is_guest)
// 상품정보
$it_id = $_POST['it_id'];
$sw_direct = $_POST['sw_direct'];
$sql = " select it_id, ca_id, ca_id2, ca_id3 from {$g4['shop_item_table']} where it_id = '$it_id' ";
$it = sql_fetch($sql);
// 상품 총 금액
$uq_id = get_session('ss_uq_id');
if($sw_direct)
$uq_id = get_session('ss_uq_direct');
else
$uq_id = get_session('ss_uq_id');
$sql = " select SUM( IF(io_type = '1', io_price * ct_qty, (ct_price + io_price) * ct_qty)) as sum_price
from {$g4['shop_cart_table']}
where uq_id = '$uq_id'

View File

@ -18,7 +18,8 @@ $sql = " select a.it_id,
b.it_sell_email,
b.it_origin
from {$g4['shop_cart_table']} a left join {$g4['shop_item_table']} b on ( a.it_id = b.it_id )
where a.uq_id = '$tmp_uq_id'
where a.uq_id = '$uq_id'
and a.ct_select = '1'
and a.ct_num = '0' ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
@ -29,13 +30,14 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
SUM(ct_qty) as qty
from {$g4['shop_cart_table']}
where it_id = '{$row['it_id']}'
and uq_id = '$tmp_uq_id' ";
and uq_id = '$uq_id'
and ct_select = '1' ";
$sum = sql_fetch($sql);
// 옵션정보
$sql2 = " select ct_option, ct_qty
from {$g4['shop_cart_table']}
where it_id = '{$row['it_id']}' and uq_id = '$tmp_uq_id'
where it_id = '{$row['it_id']}' and uq_id = '$uq_id' and ct_select = '1'
order by io_type asc, ct_num asc, ct_id asc ";
$result2 = sql_query($sql2);

View File

@ -39,7 +39,8 @@ $sql = " select b.it_sell_email,
a.it_id,
a.it_name
from {$g4['shop_cart_table']} a left join {$g4['shop_item_table']} b on ( a.it_id = b.it_id )
where a.uq_id = '$tmp_uq_id'
where a.uq_id = '$uq_id'
and a.ct_select = '1'
and a.ct_num = '0'
and b.it_sell_email <> '' ";
$result = sql_query($sql);
@ -51,13 +52,14 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
SUM(ct_qty) as qty
from {$g4['shop_cart_table']}
where it_id = '{$row['it_id']}'
and uq_id = '$tmp_uq_id' ";
and uq_id = '$uq_id'
and ct_select = '1' ";
$sum = sql_fetch($sql);
// 옵션정보
$sql2 = " select ct_option, ct_qty
from {$g4['shop_cart_table']}
where it_id = '{$row['it_id']}' and uq_id = '$tmp_uq_id'
where it_id = '{$row['it_id']}' and uq_id = '$uq_id' and ct_select = '1'
order by io_type asc, ct_num asc, ct_id asc ";
$result2 = sql_query($sql2);

View File

@ -35,8 +35,6 @@ $admin = get_admin("super");
</div>
</footer>
<div id="win_mask"><!-- 모달 레이어 배경 http://mytory.net/archives/783 참조 --></div>
<?php
if(!G4_IS_MOBILE) {
$querystring = str_replace("&", "&amp;", $_SERVER['QUERY_STRING']);

View File

@ -5,7 +5,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<link rel="stylesheet" href="<?php echo $member_skin_url ?>/style.css">
<div id="post_code" class="new_win">
<h1><?php echo $g4['title'] ?></h1>
<h1 id="new_win_title"><?php echo $g4['title'] ?></h1>
<form name="fzip" method="get" autocomplete="off">
<input type="hidden" name="frm_name" value="<?php echo $frm_name ?>">
@ -26,7 +26,6 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
document.fzip.addr1.focus();
</script>
<?php if ($search_count > 0) { ?>
<dl>
<dt>총 <?php echo $search_count ?>건 가나다순 정렬</dt>