Merge branch 'master' of github.com:gnuboard/yc4s
@ -25,7 +25,7 @@ $from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
<p>등록된 배너 <?php echo $total_count; ?>개</p>
|
||||
|
||||
<div id="btn_add">
|
||||
<div class="btn_add">
|
||||
<a href="./bannerform.php">배너추가</a>
|
||||
</div>
|
||||
|
||||
|
||||
@ -86,11 +86,19 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
<p>생성된 분류 확인, 추가 및 간략 수정을 할 수 있습니다.</p>
|
||||
|
||||
<?php if ($is_admin == 'super') {?>
|
||||
<div id="btn_add">
|
||||
<div class="btn_add sort_with">
|
||||
<a href="./categoryform.php" id="cate_add">분류 추가</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<ul class="sort_odr">
|
||||
<li><?php echo subject_sort_link("ca_id"); ?>분류코드<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link("ca_name"); ?>분류명<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link("ca_mb_id"); ?>회원아이디<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link("ca_use"); ?>판매가능<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link("ca_stock_qty"); ?>기본재고<span class="sound_only"> 순 정렬</span></a></li>
|
||||
</ul>
|
||||
|
||||
<form name="fcategorylist" method="post" action="./categorylistupdate.php" autocomplete="off">
|
||||
<input type="hidden" name="page" value="<?php echo $page; ?>">
|
||||
<input type="hidden" name="sort1" value="<?php echo $sort1; ?>">
|
||||
@ -99,11 +107,11 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
<table class="frm_basic">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><?php echo subject_sort_link("ca_id"); ?>분류<br>코드</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link("ca_name"); ?>분류명</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link("ca_mb_id"); ?>회원아이디</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link("ca_use"); ?>판매<br>가능</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link("ca_stock_qty"); ?>기본재고</a></th>
|
||||
<th scope="col">분류<br>코드</th>
|
||||
<th scope="col">분류명</th>
|
||||
<th scope="col">회원아이디</th>
|
||||
<th scope="col">판매<br>가능</th>
|
||||
<th scope="col">기본재고</th>
|
||||
<th scope="col">상품수</th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
|
||||
@ -29,7 +29,7 @@ $result = sql_query($sql);
|
||||
<?php if ($page > 1) {?><a href="<?php echo $_SERVER['PHP_SELF']; ?>">처음으로</a><?php } ?>
|
||||
<span>전체 내용 <?php echo $total_count; ?>건</span>
|
||||
</p>
|
||||
<div id="btn_add">
|
||||
<div class="btn_add">
|
||||
<a href="./contentform.php">내용 추가</a>
|
||||
</div>
|
||||
<table>
|
||||
|
||||
@ -79,10 +79,16 @@ $colspan = 8;
|
||||
<section id="scp_list" class="cbox">
|
||||
<h2>쿠폰 내역</h2>
|
||||
|
||||
<div id="btn_add">
|
||||
<div class="btn_add sort_with">
|
||||
<a href="./couponform.php" id="coupon_add">쿠폰 추가</a>
|
||||
</div>
|
||||
|
||||
<ul class="sort_odr">
|
||||
<li><?php echo subject_sort_link('mb_id') ?>회원아이디<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link('cp_end') ?>사용기한<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link('cp_used') ?>사용<span class="sound_only"> 순 정렬</span></a></li>
|
||||
</ul>
|
||||
|
||||
<form name="fcouponlist" id="fcouponlist" method="post" action="./couponlist_delete.php" onsubmit="return fcouponlist_submit(this);">
|
||||
<input type="hidden" name="sst" value="<?php echo $sst; ?>">
|
||||
<input type="hidden" name="sod" value="<?php echo $sod; ?>">
|
||||
@ -94,13 +100,16 @@ $colspan = 8;
|
||||
<table class="tbl_pt_list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><input type="checkbox" name="chkall" value="1" id="chkall" title="현재 페이지 쿠폰 내역 전체선택" onclick="check_all(this.form)"></th>
|
||||
<th scope="col">
|
||||
<label for="chkall" class="sound_only">쿠폰 전체</label>
|
||||
<input type="checkbox" name="chkall" value="1" id="chkall" onclick="check_all(this.form)">
|
||||
</th>
|
||||
<th scope="col">쿠폰코드</th>
|
||||
<th scope="col">쿠폰이름</th>
|
||||
<th scope="col">적용대상</th>
|
||||
<th scope="col"><?php echo subject_sort_link('mb_id') ?>회원아이디</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link('cp_end') ?>사용기한</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link('cp_used') ?>사용</a></th>
|
||||
<th scope="col">회원아이디</a></th>
|
||||
<th scope="col">사용기한</a></th>
|
||||
<th scope="col">사용</th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@ -23,7 +23,7 @@ $result = sql_query($sql);
|
||||
<h2>배송업체 목록</h2>
|
||||
<p>등록된 배송업체 <?php echo $total_count; ?>곳</p>
|
||||
|
||||
<div id="btn_add">
|
||||
<div class="btn_add">
|
||||
<a href="./deliverycodeform.php">배송회사추가</a>
|
||||
</div>
|
||||
|
||||
|
||||
@ -109,6 +109,17 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
<li>배송일시, 배송회사는 입력의 편의성을 위하여 기본값으로 설정되어 있습니다. 운송장번호만 없는것이 미배송 주문자료입니다.</li>
|
||||
</ul>
|
||||
|
||||
<ul class="sort_odr">
|
||||
<li><a href="<?php echo title_sort("od_id",1) . "&$qstr1"; ?>">주문번호<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("od_name") . "&$qstr1"; ?>">주문자<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("orderamount",1) . "&$qstr1"; ?>">주문액<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("receiptamount",1) . "&$qstr1"; ?>">입금액<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("misu",1) . "&$qstr1"; ?>">미수금<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("od_hope_date",1) . "&$qstr1"; ?>">희망배송일<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("od_invoice_time") . "&$qstr1"; ?>">배송일시<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("od_invoice", 1) . "&$qstr1"; ?>">운송장번호<span class="sound_only"> 순 정렬</span></a></li>
|
||||
</ul>
|
||||
|
||||
<form name="fdeliverylistupate" method="post" action="./deliverylistupdate.php" autocomplete="off">
|
||||
<input type="hidden" name="sel_ca_id" value="<?php echo $sel_ca_id; ?>">
|
||||
<input type="hidden" name="sel_field" value="<?php echo $sel_field; ?>">
|
||||
@ -120,15 +131,15 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
<table id="sdeli_proc">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><a href="<?php echo title_sort("od_id",1) . "&$qstr1"; ?>">주문번호<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("od_name") . "&$qstr1"; ?>">주문자<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("orderamount",1) . "&$qstr1"; ?>">주문액<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("receiptamount",1) . "&$qstr1"; ?>">입금액<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("misu",1) . "&$qstr1"; ?>">미수금<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("od_hope_date",1) . "&$qstr1"; ?>">희망배송일<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("od_invoice_time") . "&$qstr1"; ?>">배송일시<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col">주문번호</th>
|
||||
<th scope="col">주문자</th>
|
||||
<th scope="col">주문액</th>
|
||||
<th scope="col">입금액</th>
|
||||
<th scope="col">미수금</th>
|
||||
<th scope="col">희망배송일</th>
|
||||
<th scope="col">배송일시</th>
|
||||
<th scope="col">배송업체</th>
|
||||
<th scope="col"><a href="<?php echo title_sort("od_invoice", 1) . "&$qstr1"; ?>">운송장번호<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col">운송장번호</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@ -32,7 +32,7 @@ $result = sql_query($sql);
|
||||
<li><strong>FAQ 상세내용 추가</strong>를 눌러 자주하는 질문과 답변을 입력합니다.</li>
|
||||
</ol>
|
||||
|
||||
<div id="btn_add">
|
||||
<div class="btn_add">
|
||||
<a href="./faqform.php?fm_id=<?php echo $fm['fm_id']; ?>">FAQ 상세내용 추가</a>
|
||||
</div>
|
||||
|
||||
|
||||
@ -37,7 +37,7 @@ $result = sql_query($sql);
|
||||
<li>생성한 FAQ Master 의 <strong>제목</strong>을 눌러 세부 내용을 관리할 수 있습니다.</li>
|
||||
</ol>
|
||||
|
||||
<div id="btn_add">
|
||||
<div class="btn_add">
|
||||
<a href="./faqmasterform.php">FAQ추가</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 865 B |
|
Before Width: | Height: | Size: 840 B |
|
Before Width: | Height: | Size: 959 B |
|
Before Width: | Height: | Size: 895 B |
|
Before Width: | Height: | Size: 867 B |
@ -23,7 +23,7 @@ $result = sql_query($sql);
|
||||
<section class="cbox">
|
||||
<h2>이벤트 목록</h2>
|
||||
|
||||
<div id="btn_add">
|
||||
<div class="btn_add">
|
||||
<a href="./itemeventform.php">이벤트 추가</a>
|
||||
</div>
|
||||
|
||||
|
||||
@ -134,6 +134,11 @@ if (isset($ev_set)) {
|
||||
<h2>상품 목록</h2>
|
||||
<p>상품을 이벤트별로 일괄 처리합니다. 현재 선택된 이벤트는 <?php echo $ev_title; ?>입니다.</p>
|
||||
|
||||
<ul class="sort_odr">
|
||||
<li><a href="<?php echo title_sort("a.it_id") . '&'.$qstr1.'&ev_id='.$ev_id; ?>">상품코드<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("it_name") . '&&'.$qstr1.'&ev_id='.$ev_id; ?>">상품명<span class="sound_only"> 순 정렬</span></a></li>
|
||||
</ul>
|
||||
|
||||
<form name="fitemeventlistupdate" method="post" action="./itemeventlistupdate.php" onsubmit="return fitemeventlistupdatecheck(this)">
|
||||
<input type="hidden" name="ev_id" value="<?php echo $ev_id; ?>">
|
||||
<input type="hidden" name="ev_set" value="<?php echo $ev_set; ?>">
|
||||
@ -148,8 +153,8 @@ if (isset($ev_set)) {
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">이벤트사용</th>
|
||||
<th scope="col"><a href="<?php echo title_sort("a.it_id") . '&'.$qstr1.'&ev_id='.$ev_id; ?>">상품코드</a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("it_name") . '&&'.$qstr1.'&ev_id='.$ev_id; ?>">상품명</a></th>
|
||||
<th scope="col">상품코드</th>
|
||||
<th scope="col">상품명</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -166,7 +171,8 @@ if (isset($ev_set)) {
|
||||
<tr>
|
||||
<td class="td_mng">
|
||||
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
|
||||
<input type="checkbox" name="ev_chk[<?php echo $i; ?>]" value="1" <?php echo ($row['ev_id'] ? "checked" : ""); ?>>
|
||||
<label for="ev_chk_<?php echo $i; ?>" class="sound_only">이벤트 사용</label>
|
||||
<input type="checkbox" name="ev_chk[<?php echo $i; ?>]" value="1" id="ev_chk_<?php echo $i; ?>" <?php echo ($row['ev_id'] ? "checked" : ""); ?>>
|
||||
</td>
|
||||
<td class="td_bignum"><a href="<?php echo $href; ?>"><?php echo $row['it_id']; ?></a></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, "…"); ?></a></td>
|
||||
|
||||
@ -129,12 +129,23 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
<section class="cbox">
|
||||
<h2>상품 목록</h2>
|
||||
|
||||
<div id="btn_add">
|
||||
<div class="btn_add sort_with">
|
||||
<a href="./itemform.php">상품등록</a>
|
||||
<a href="./itemexcel.php" onclick="return excelform(this.href);" target="_blank">상품일괄등록</a>
|
||||
<a href="./itemsellrank.php" class="btn_add_optional">상품판매순위</a>
|
||||
</div>
|
||||
|
||||
<ul class="sort_odr">
|
||||
<li><?php echo subject_sort_link('it_id', 'sca='.$sca); ?>상품코드<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link('it_name', 'sca='.$sca); ?>상품명<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link('it_price', 'sca='.$sca); ?>판매가격<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link('it_cust_price', 'sca='.$sca); ?>시중가격<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link('it_order', 'sca='.$sca); ?>순서<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link('it_use', 'sca='.$sca, 1); ?>판매<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link('it_hit', 'sca='.$sca, 1); ?>조회<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link('it_point', 'sca='.$sca); ?>포인트<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link('it_stock_qty', 'sca='.$sca); ?>재고<span class="sound_only"> 순 정렬</span></a></li>
|
||||
</ul>
|
||||
|
||||
<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; ?>">
|
||||
@ -146,19 +157,22 @@ 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>
|
||||
<th scope="col" id="sit_camt"><?php echo subject_sort_link('it_cust_price', 'sca='.$sca); ?>시중가격 <span class="sound_only">순 정렬</span></a></th>
|
||||
<th scope="col" rowspan="2"><?php echo subject_sort_link('it_order', 'sca='.$sca); ?>순서 <span class="sound_only">순 정렬</span></a></th>
|
||||
<th scope="col" rowspan="2"><?php echo subject_sort_link('it_use', 'sca='.$sca, 1); ?>판매 <span class="sound_only">순 정렬</span></a></th>
|
||||
<th scope="col" rowspan="2"><?php echo subject_sort_link('it_hit', 'sca='.$sca, 1); ?>조회 <span class="sound_only">순 정렬</span></a></th>
|
||||
<th scope="col" rowspan="2">
|
||||
<label for="chkall" class="sound_only">게시판 전체</label>
|
||||
<input type="checkbox" name="chkall" value="1" id="chkall" onclick="check_all(this.form)">
|
||||
</th>
|
||||
<th scope="col" rowspan="2">상품코드</th>
|
||||
<th scope="col" colspan="2" rowspan="2">분류 및 상품명</th>
|
||||
<th scope="col" id="sit_amt">판매가격</th>
|
||||
<th scope="col" id="sit_camt">시중가격</th>
|
||||
<th scope="col" rowspan="2">순서</th>
|
||||
<th scope="col" rowspan="2">판매</th>
|
||||
<th scope="col" rowspan="2">조회</th>
|
||||
<th scope="col" rowspan="2">관리</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col" id="sit_pt"><?php echo subject_sort_link('it_point', 'sca='.$sca); ?>포인트 <span class="sound_only">순 정렬</span></a></th>
|
||||
<th scope="col" id="sit_qty"><?php echo subject_sort_link('it_stock_qty', 'sca='.$sca); ?>재고 <span class="sound_only">순 정렬</span></a></th>
|
||||
<th scope="col" id="sit_pt">포인트</th>
|
||||
<th scope="col" id="sit_qty">재고</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -171,7 +185,8 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
?>
|
||||
<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']) ?> 게시판선택">
|
||||
<label for="chk_<?php echo $i; ?>" class="sound_only"><?php echo get_text($row['bo_subject']) ?> 게시판</label>
|
||||
<input type="checkbox" name="chk[]" value="<?php echo $i ?>" id="chk_<?php echo $i; ?>">
|
||||
</td>
|
||||
<td rowspan="2">
|
||||
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
|
||||
|
||||
@ -104,14 +104,22 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
<section class="cbox">
|
||||
<h2>사용후기 목록</h2>
|
||||
|
||||
<ul class="sort_odr">
|
||||
<li><?php echo subject_sort_link("it_name"); ?>상품명</a></li>
|
||||
<li><?php echo subject_sort_link("mb_name"); ?>이름</a></li>
|
||||
<li><?php echo subject_sort_link("is_subject"); ?>제목</a></li>
|
||||
<li><?php echo subject_sort_link("is_score"); ?>점수</a></li>
|
||||
<li><?php echo subject_sort_link("is_confirm"); ?>확인</a></li>
|
||||
</ul>
|
||||
|
||||
<table class="frm_basic">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><?php echo subject_sort_link("it_name"); ?>상품명</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link("mb_name"); ?>이름</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link("is_subject"); ?>제목</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link("is_score"); ?>점수</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link("is_confirm"); ?>확인</a></th>
|
||||
<th scope="col">상품명</th>
|
||||
<th scope="col">이름</th>
|
||||
<th scope="col">제목</th>
|
||||
<th scope="col">점수</th>
|
||||
<th scope="col">확인</th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@ -103,13 +103,20 @@ if ($sfl || $stx) // 검색 결과일 때만 처음 버튼을 보여줌
|
||||
<section class="cbox">
|
||||
<h2>상품문의 목록</h2>
|
||||
|
||||
<ul class="sort_odr">
|
||||
<li><?php echo subject_sort_link('it_name'); ?>상품명<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link('mb_name'); ?>이름<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link('iq_subject'); ?>질문<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link('iq_answer'); ?>답변<span class="sound_only"> 순 정렬</span></a></li>
|
||||
</ul>
|
||||
|
||||
<table class="frm_basic">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><?php echo subject_sort_link('it_name'); ?>상품명<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><?php echo subject_sort_link('mb_name'); ?>이름<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><?php echo subject_sort_link('iq_subject'); ?>질문<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><?php echo subject_sort_link('iq_answer'); ?>답변<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col">상품명</th>
|
||||
<th scope="col">이름</th>
|
||||
<th scope="col">질문</th>
|
||||
<th scope="col">답변</th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@ -102,26 +102,37 @@ if ($fr_date || $to_date) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
<h2>상품판매순위</h2>
|
||||
<p>판매량을 합산하여 상품판매순위를 집계합니다.</p>
|
||||
|
||||
<div id="btn_add">
|
||||
<div class="btn_add sort_with">
|
||||
<a href="./itemlist.php" class="btn_add_optional">상품등록</a>
|
||||
<a href="./itemstocklist.php" class="btn_add_optional">상품재고관리</a>
|
||||
<a href="./optionstocklist.php" class="btn_add_optional">상품옵션재고관리</a>
|
||||
</div>
|
||||
|
||||
<ul class="sort_odr">
|
||||
<li><a href="<?php echo title_sort("ct_status_1",1)."&$qstr1"; ?>">쇼핑<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("ct_status_2",1)."&$qstr1"; ?>">주문<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("ct_status_3",1)."&$qstr1"; ?>">준비<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("ct_status_4",1)."&$qstr1"; ?>">배송<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("ct_status_5",1)."&$qstr1"; ?>">완료<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("ct_status_6",1)."&$qstr1"; ?>">취소<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("ct_status_7",1)."&$qstr1"; ?>">반품<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("ct_status_8",1)."&$qstr1"; ?>">품절<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("ct_status_sum",1)."&$qstr1"; ?>">합계<span class="sound_only"> 순 정렬</span></a></li>
|
||||
</ul>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">순위</th>
|
||||
<th scope="col">상품평</th>
|
||||
<th scope="col"><a href="<?php echo title_sort("ct_status_1",1)."&$qstr1"; ?>">쇼핑<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("ct_status_2",1)."&$qstr1"; ?>">주문<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("ct_status_3",1)."&$qstr1"; ?>">준비<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("ct_status_4",1)."&$qstr1"; ?>">배송<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("ct_status_5",1)."&$qstr1"; ?>">완료<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("ct_status_6",1)."&$qstr1"; ?>">취소<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("ct_status_7",1)."&$qstr1"; ?>">반품<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("ct_status_8",1)."&$qstr1"; ?>">품절<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("ct_status_sum",1)."&$qstr1"; ?>">합계<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col">쇼핑</th>
|
||||
<th scope="col">주문</th>
|
||||
<th scope="col">준비</th>
|
||||
<th scope="col">배송</th>
|
||||
<th scope="col">완료</th>
|
||||
<th scope="col">취소</th>
|
||||
<th scope="col">반품</th>
|
||||
<th scope="col">품절</th>
|
||||
<th scope="col">합계</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@ -100,10 +100,18 @@ if ($search) // 검색 결과일 때만 처음 버튼을 보여줌
|
||||
<h2>상품재고 목록</h2>
|
||||
<p>재고수정의 수치를 수정하시면 창고재고의 수치가 변경됩니다.</p>
|
||||
|
||||
<div id="btn_add">
|
||||
<div class="btn_add sort_with">
|
||||
<a href="./optionstocklist.php" class="btn_add_optional">상품옵션재고</a>
|
||||
<a href="./itemsellrank.php" class="btn_add_optional">상품판매순위</a>
|
||||
</div>
|
||||
|
||||
<ul class="sort_odr">
|
||||
<li><a href="<?php echo title_sort("it_id") . "&$qstr1"; ?>">상품코드<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("it_name") . "&$qstr1"; ?>">상품명<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("it_stock_qty") . "&$qstr1"; ?>">창고재고<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("it_use") . "&$qstr1"; ?>">판매<span class="sound_only"> 순 정렬</span></a></li>
|
||||
</ul>
|
||||
|
||||
<form name="fitemstocklist" action="./itemstocklistupdate.php" method="post">
|
||||
<input type="hidden" name="sort1" value="<?php echo $sort1; ?>">
|
||||
<input type="hidden" name="sort2" value="<?php echo $sort2; ?>">
|
||||
@ -115,13 +123,13 @@ if ($search) // 검색 결과일 때만 처음 버튼을 보여줌
|
||||
<table class="frm_basic">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><a href="<?php echo title_sort("it_id") . "&$qstr1"; ?>">상품코드<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("it_name") . "&$qstr1"; ?>">상품명<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("it_stock_qty") . "&$qstr1"; ?>">창고재고<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col">상품코드</th>
|
||||
<th scope="col">상품명</th>
|
||||
<th scope="col">창고재고</th>
|
||||
<th scope="col">주문대기</th>
|
||||
<th scope="col">가재고</th>
|
||||
<th scope="col">재고수정</th>
|
||||
<th scope="col"><a href="<?php echo title_sort("it_use") . "&$qstr1"; ?>">판매<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col">판매</th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@ -126,6 +126,16 @@ if ($stx) // 검색 결과일 때만 처음 버튼을 보여줌
|
||||
<section class="cbox">
|
||||
<h2>상품 목록</h2>
|
||||
|
||||
<ul class="sort_odr">
|
||||
<li><?php echo subject_sort_link("it_id", $qstr, 1); ?>상품코드<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link("it_name"); ?>상품명<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link("it_type1", $qstr, 1); ?>히트상품<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link("it_type2", $qstr, 1); ?>추천상품<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link("it_type3", $qstr, 1); ?>신규상품<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link("it_type4", $qstr, 1); ?>인기상품<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link("it_type5", $qstr, 1); ?>할인상품<span class="sound_only"> 순 정렬</span></a></li>
|
||||
</ul>
|
||||
|
||||
<form name="fitemtypelist" method="post" action="./itemtypelistupdate.php">
|
||||
<input type="hidden" name="sca" value="<?php echo $sca; ?>">
|
||||
<input type="hidden" name="sst" value="<?php echo $sst; ?>">
|
||||
@ -137,13 +147,13 @@ if ($stx) // 검색 결과일 때만 처음 버튼을 보여줌
|
||||
<table class="frm_basic">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><?php echo subject_sort_link("it_id", $qstr, 1); ?>상품코드</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link("it_name"); ?>상품명</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link("it_type1", $qstr, 1); ?>히트<br>상품</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link("it_type2", $qstr, 1); ?>추천<br>상품</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link("it_type3", $qstr, 1); ?>신규<br>상품</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link("it_type4", $qstr, 1); ?>인기<br>상품</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link("it_type5", $qstr, 1); ?>할인<br>상품</a></th>
|
||||
<th scope="col">상품코드</th>
|
||||
<th scope="col">상품명</th>
|
||||
<th scope="col">히트<br>상품</th>
|
||||
<th scope="col">추천<br>상품</th>
|
||||
<th scope="col">신규<br>상품</th>
|
||||
<th scope="col">인기<br>상품</th>
|
||||
<th scope="col">할인<br>상품</th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@ -89,6 +89,13 @@ $colspan = 8;
|
||||
<section class="cbox">
|
||||
<h2>마일리지 내역</h2>
|
||||
|
||||
<ul class="sort_odr">
|
||||
<li><?php echo subject_sort_link('mb_id') ?>회원아이디<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link('ml_datetime') ?>일시<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link('ml_content') ?>내용<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><?php echo subject_sort_link('ml_point') ?>마일리지<span class="sound_only"> 순 정렬</span></a></li>
|
||||
</ul>
|
||||
|
||||
<form name="fpointlist" id="fpointlist" method="post" action="./mileagelist_delete.php" onsubmit="return fmileagelist_submit(this);">
|
||||
<input type="hidden" name="sst" value="<?php echo $sst; ?>">
|
||||
<input type="hidden" name="sod" value="<?php echo $sod; ?>">
|
||||
@ -100,13 +107,16 @@ $colspan = 8;
|
||||
<table class="tbl_pt_list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><input type="checkbox" name="chkall" value="1" id="chkall" title="현재 페이지 마일리지 내역 전체선택" onclick="check_all(this.form)"></th>
|
||||
<th scope="col"><?php echo subject_sort_link('mb_id') ?>회원아이디</a></th>
|
||||
<th scope="col">
|
||||
<label for="chkall" class="sound_only">마일리지 내역 전체</label>
|
||||
<input type="checkbox" name="chkall" value="1" id="chkall" onclick="check_all(this.form)">
|
||||
</th>
|
||||
<th scope="col">회원아이디</th>
|
||||
<th scope="col">이름</th>
|
||||
<th scope="col">별명</th>
|
||||
<th scope="col"><?php echo subject_sort_link('ml_datetime') ?>일시</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link('ml_content') ?>마일리지 내용</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link('ml_point') ?>마일리지</a></th>
|
||||
<th scope="col">일시</th>
|
||||
<th scope="col">마일리지 내용</th>
|
||||
<th scope="col">마일리지</th>
|
||||
<th scope="col">마일리지합</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -126,9 +136,10 @@ $colspan = 8;
|
||||
|
||||
<tr>
|
||||
<td class="td_chk">
|
||||
<input type="hidden" id="mb_id_<?php echo $i ?>" name="mb_id[<?php echo $i ?>]" value="<?php echo $row['mb_id'] ?>">
|
||||
<input type="hidden" id="ml_id_<?php echo $i ?>" name="ml_id[<?php echo $i ?>]" value="<?php echo $row['ml_id'] ?>">
|
||||
<input type="checkbox" id="chk_<?php echo $i ?>" name="chk[]" value="<?php echo $i ?>" title="내역선택">
|
||||
<input type="hidden" name="mb_id[<?php echo $i ?>]" value="<?php echo $row['mb_id'] ?>" id="mb_id_<?php echo $i ?>">
|
||||
<input type="hidden" name="ml_id[<?php echo $i ?>]" value="<?php echo $row['ml_id'] ?>" id="ml_id_<?php echo $i ?>">
|
||||
<label for="chk_<?php echo $i; ?>" class="sound_only">내역</label>
|
||||
<input type="checkbox" name="chk[]" value="<?php echo $i ?>" id="chk_<?php echo $i ?>">
|
||||
</td>
|
||||
<td class="td_mbid"><a href="?sfl=mb_id&stx=<?php echo $row['mb_id'] ?>"><?php echo $row['mb_id'] ?></a></td>
|
||||
<td class="td_mbname"><?php echo $row2['mb_name'] ?></td>
|
||||
|
||||
@ -21,7 +21,7 @@ $result = sql_query($sql);
|
||||
<section class="cbox">
|
||||
<h2>팝업레이어 관리</h2>
|
||||
<p>추가된 팝업레이어 <?php echo $total_count; ?>건</p>
|
||||
<div id="btn_add">
|
||||
<div class="btn_add">
|
||||
<a href="./newwinform.php">새창관리추가</a>
|
||||
</div>
|
||||
<table id="spop_list">
|
||||
|
||||
@ -107,10 +107,17 @@ if ($search) // 검색 결과일 때만 처음 버튼을 보여줌
|
||||
창고재고가 부족한 경우 재고수량 뒤에 <span class="sit_stock_qty_alert">!</span><span class="sound_only"> 혹은 재고부족</span>으로 표시됩니다.
|
||||
</p>
|
||||
|
||||
<div id="btn_add">
|
||||
<div class="btn_add sort_with">
|
||||
<a href="./itemstocklist.php" class="btn_add_optional">상품재고관리</a>
|
||||
<a href="./itemsellrank.php" class="btn_add_optional">상품판매순위</a>
|
||||
</div>
|
||||
|
||||
<ul class="sort_odr">
|
||||
<li><a href="<?php echo title_sort("b.it_name") . "&$qstr1"; ?>">상품명<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("a.io_stock_qty") . "&$qstr1"; ?>">창고재고<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("a.io_use") . "&$qstr1"; ?>">판매<span class="sound_only"> 순 정렬</span></a></li>
|
||||
</ul>
|
||||
|
||||
<form name="fitemstocklist" action="./optionstocklistupdate.php" method="post">
|
||||
<input type="hidden" name="sort1" value="<?php echo $sort1; ?>">
|
||||
<input type="hidden" name="sort2" value="<?php echo $sort2; ?>">
|
||||
@ -122,14 +129,14 @@ if ($search) // 검색 결과일 때만 처음 버튼을 보여줌
|
||||
<table class="frm_basic">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><a href="<?php echo title_sort("b.it_name") . "&$qstr1"; ?>">상품명<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col">상품명</th>
|
||||
<th scope="col">옵션항목</th>
|
||||
<th scope="col">옵션타입</th>
|
||||
<th scope="col"><a href="<?php echo title_sort("a.io_stock_qty") . "&$qstr1"; ?>">창고재고<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col">창고재고</th>
|
||||
<th scope="col">주문대기</th>
|
||||
<th scope="col">가재고</th>
|
||||
<th scope="col">재고수정</th>
|
||||
<th scope="col"><a href="<?php echo title_sort("a.io_use") . "&$qstr1"; ?>">판매<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col">판매</th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@ -82,21 +82,30 @@ if ($search) // 검색 결과일 때만 처음 버튼을 보여줌
|
||||
<h2>전자결제내역</h2>
|
||||
<p>신용카드 혹은 실시간 계좌이체로 결제(승인) 된 내역이며, 주문번호를 클릭하시면 주문상세 페이지로 이동합니다.</p>
|
||||
|
||||
<div id="btn_add">
|
||||
<div class="btn_add sort_with">
|
||||
<a href="./orderlist.php" class="btn_add_optional">주문내역</a>
|
||||
<a href="./orderstatuslist.php" class="btn_add_optional">주문개별내역</a>
|
||||
<a href="./orderlist2.php" class="btn_add_optional">주문통합내역</a>
|
||||
</div>
|
||||
|
||||
<ul class="sort_odr">
|
||||
<li><a href="<?php echo title_sort("od_id") . "&$qstr1"; ?>">주문번호<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("cd_amount") . "&$qstr1"; ?>">승인금액<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("cd_app_no") . "&$qstr1"; ?>">승인번호<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("cd_app_rt") . "&$qstr1"; ?>">승인결과<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("cd_app_time") . "&$qstr1"; ?>">승인일시<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("cd_opt01") . "&$qstr1"; ?>">결제자<span class="sound_only"> 순 정렬</span></a></li>
|
||||
</ul>
|
||||
|
||||
<table class="frm_basic">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><a href="<?php echo title_sort("od_id") . "&$qstr1"; ?>">주문번호<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("cd_amount") . "&$qstr1"; ?>">승인금액<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("cd_app_no") . "&$qstr1"; ?>">승인번호<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("cd_app_rt") . "&$qstr1"; ?>">승인결과<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("cd_app_time") . "&$qstr1"; ?>">승인일시<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("cd_opt01") . "&$qstr1"; ?>">결제자<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col">주문번호</th>
|
||||
<th scope="col">승인금액</th>
|
||||
<th scope="col">승인번호</th>
|
||||
<th scope="col">승인결과</th>
|
||||
<th scope="col">승인일시</th>
|
||||
<th scope="col">결제자</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@ -125,26 +125,36 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
<h2>주문내역 목록</h2>
|
||||
<p><strong>주의!</strong> 주문번호를 클릭하여 나오는 주문상세내역의 주소를 외부에서 조회가 가능한곳에 올리지 마십시오.</p>
|
||||
|
||||
<div id="btn_add">
|
||||
<div class="btn_add sort_with">
|
||||
<a href="./orderprint.php" class="btn_add_optional">주문내역출력</a>
|
||||
<a href="./ordercardhistory.php" class="btn_add_optional">전자결제내역</a>
|
||||
</div>
|
||||
|
||||
<ul id="sort_sodr" class="sort_odr">
|
||||
<li><a href="<?php echo title_sort("od_id", 1)."&$qstr1"; ?>">주문번호<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("od_name")."&$qstr1"; ?>">주문자<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("mb_id")."&$qstr1"; ?>">회원ID<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("itemcount", 1)."&$qstr1"; ?>">건수<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("orderamount", 1)."&$qstr1"; ?>">주문합계<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("ordercancel", 1)."&$qstr1"; ?>">주문취소<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("od_dc_amount", 1)."&$qstr1"; ?>">DC<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("receiptamount")."&$qstr1"; ?>">입금합계<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("receiptcancel", 1)."&$qstr1"; ?>">입금취소<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("misu", 1)."&$qstr1"; ?>">미수금<span class="sound_only"> 순 정렬</span></a></li>
|
||||
</ul>
|
||||
|
||||
<table id="sodr_list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><a href="<?php echo title_sort("od_id", 1)."&$qstr1"; ?>">주문번호<span class="sound_only"> 순 정렬</span><br>주문일시</a></th>
|
||||
<th scope="col">
|
||||
<a href="<?php echo title_sort("od_name")."&$qstr1"; ?>">주문자<span class="sound_only"> 순 정렬</span></a><br>
|
||||
<a href="<?php echo title_sort("mb_id")."&$qstr1"; ?>">회원ID<span class="sound_only"> 순 정렬</span>
|
||||
</th>
|
||||
<th scope="col"><a href="<?php echo title_sort("itemcount", 1)."&$qstr1"; ?>">건수<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("orderamount", 1)."&$qstr1"; ?>" class="order_sum">주문합계<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("ordercancel", 1)."&$qstr1"; ?>">주문취소<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("od_dc_amount", 1)."&$qstr1"; ?>">DC<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("receiptamount")."&$qstr1"; ?>" class="order_sum">입금합계<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("receiptcancel", 1)."&$qstr1"; ?>">입금취소<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("misu", 1)."&$qstr1"; ?>" class="order_outstanding">미수금<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col">주문번호<br>주문일시</th>
|
||||
<th scope="col">주문자<br>회원ID</th>
|
||||
<th scope="col">건수</th>
|
||||
<th scope="col">주문합계</th>
|
||||
<th scope="col">주문취소</th>
|
||||
<th scope="col">DC</th>
|
||||
<th scope="col">입금합계</th>
|
||||
<th scope="col">입금취소</th>
|
||||
<th scope="col">미수금</th>
|
||||
<th scope="col">결제수단</th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
|
||||
@ -96,14 +96,14 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
<h2>주문통합내역 목록</h2>
|
||||
<p><strong>주의!</strong> 주문번호를 클릭하여 나오는 주문상세내역의 주소를 외부에서 조회가 가능한곳에 올리지 마십시오.</p>
|
||||
|
||||
<div id="btn_add">
|
||||
<div class="btn_add sort_with">
|
||||
<a href="./orderprint.php" class="btn_add_optional">주문내역출력</a>
|
||||
<a href="./ordercardhistory.php" class="btn_add_optional">전자결제내역</a>
|
||||
</div>
|
||||
|
||||
<ul id="sodr_all_sort">
|
||||
<ul class="sort_odr">
|
||||
<li><a href="<?php echo title_sort("od_id", 1)."&$qstr1"; ?>">주문번호<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("od_name")."&$qstr1"; ?>">주문자<span class="sound_only"> 순 정렬</span></a><br></li>
|
||||
<li><a href="<?php echo title_sort("od_name")."&$qstr1"; ?>">주문자<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("itemcount", 1)."&$qstr1"; ?>">건수<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("orderamount", 1)."&$qstr1"; ?>">주문합계<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("ordercancel", 1)."&$qstr1"; ?>">주문취소<span class="sound_only"> 순 정렬</span></a></li>
|
||||
@ -278,8 +278,9 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
?>
|
||||
|
||||
<div class="sodr_mng">
|
||||
<a href="./orderform.php?od_id=<?php echo $row['od_id']; ?>&<?php echo $qstr; ?>"><img src="./img/icon_mod.jpg" alt="주문 수정"></a>
|
||||
<a href="./orderdelete.php?od_id=<?php echo $row['od_id']; ?>&uq_id=<?php echo $row['uq_id']; ?>&mb_id=<?php echo $row['mb_id']; ?>&<?php echo $qstr; ?>&list=2" onclick="return delete_confirm();"><img src="./img/icon_del.jpg" alt="주문 삭제"></a>
|
||||
<a href="./orderform.php?od_id=<?php echo $row['od_id']; ?>&<?php echo $qstr; ?>">주문 수정</a>
|
||||
|
|
||||
<a href="./orderdelete.php?od_id=<?php echo $row['od_id']; ?>&uq_id=<?php echo $row['uq_id']; ?>&mb_id=<?php echo $row['mb_id']; ?>&<?php echo $qstr; ?>&list=2" onclick="return delete_confirm();">주문 삭제</a>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
@ -12,7 +12,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
<h2>주문내역출력</h2>
|
||||
<p>기간별 혹은 주문번호구간별 주문내역을 새창으로 출력할 수 있습니다.</p>
|
||||
|
||||
<div id="btn_add">
|
||||
<div class="btn_add">
|
||||
<a href="./orderlist.php" class="btn_add_optional">주문내역</a>
|
||||
<a href="./orderstatuslist.php" class="btn_add_optional">주문개별내역</a>
|
||||
<a href="./orderlist2.php" class="btn_add_optional">주문통합내역</a>
|
||||
|
||||
@ -122,23 +122,35 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
<section class="cbox">
|
||||
<h2><?php echo $g4['title']; ?> 목록</h2>
|
||||
|
||||
<div id="btn_add">
|
||||
<div class="btn_add sort_with">
|
||||
<a href="./orderprint.php" class="btn_add_optional">주문내역출력</a>
|
||||
<a href="./ordercardhistory.php" class="btn_add_optional">전자결제내역</a>
|
||||
</div>
|
||||
|
||||
<ul class="sort_odr">
|
||||
<li><a href="<?php echo title_sort("od_id")."&$qstr1"; ?>">주문번호<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<li><a href="<?php echo title_sort("it_name")."&$qstr1"; ?>">상품명<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("od_name")."&$qstr1"; ?>">주문자<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<li><a href="<?php echo title_sort("mb_id")."&$qstr1"; ?>">회원ID<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("ct_price")."&$qstr1"; ?>">판매가<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("ct_qty")."&$qstr1"; ?>">수량<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("ct_sub_amount")."&$qstr1"; ?>">소계<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("ct_sub_point")."&$qstr1"; ?>">포인트<span class="sound_only"> 순 정렬</span></a></li>
|
||||
<li><a href="<?php echo title_sort("ct_status")."&$qstr1"; ?>">상태<span class="sound_only"> 순 정렬</span></a></li>
|
||||
</ul>
|
||||
|
||||
<table id="sodr_status">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><a href="<?php echo title_sort("od_id")."&$qstr1"; ?>">주문번호<span class="sound_only"> 순 정렬</span></a><br>주문일시</th>
|
||||
<th scope="col"><a href="<?php echo title_sort("it_name")."&$qstr1"; ?>">상품명<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("od_name")."&$qstr1"; ?>">주문자<span class="sound_only"> 순 정렬</span></a><br>입금자</th>
|
||||
<th scope="col"><a href="<?php echo title_sort("mb_id")."&$qstr1"; ?>">회원ID<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("ct_price")."&$qstr1"; ?>">판매가<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("ct_qty")."&$qstr1"; ?>">수량<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("ct_sub_amount")."&$qstr1"; ?>">소계<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("ct_sub_point")."&$qstr1"; ?>">포인트<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col"><a href="<?php echo title_sort("ct_status")."&$qstr1"; ?>">상태<span class="sound_only"> 순 정렬</span></a></th>
|
||||
<th scope="col">주문번호<br>주문일시</th>
|
||||
<th scope="col">상품명</th>
|
||||
<th scope="col">주문자<br>입금자</th>
|
||||
<th scope="col">회원ID</th>
|
||||
<th scope="col">판매가</th>
|
||||
<th scope="col">수량</th>
|
||||
<th scope="col">소계</th>
|
||||
<th scope="col">포인트</th>
|
||||
<th scope="col">상태</th>
|
||||
<th scope="col">수정</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -183,7 +195,14 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
<td><?php echo number_format($lines[$i]['ct_sub_amount']); ?></td>
|
||||
<td><?php echo number_format($lines[$i]['ct_sub_point']); ?></td>
|
||||
<td><a href="<?php echo $_SERVER['PHP_SELF']; ?>?sort1=<?php echo $sort1; ?>&sort2=<?php echo $sort2; ?>&sel_field=ct_status&search=<?php echo $lines[$i]['ct_status']; ?>"><?php echo $lines[$i]['ct_status']; ?></a></td>
|
||||
<td><a href="./orderform.php?od_id=<?php echo $lines[$i]['od_id']; ?>"><img src="./img/icon_mod.jpg" alt="<?php echo $lines[$i]['od_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="./orderform.php?od_id=<?php echo $lines[$i]['od_id']; ?>" class="sel_a">주문수정</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
@ -150,13 +150,6 @@ strong.sodr_nonpay {display:block;padding:5px 0;text-align:right}
|
||||
|
||||
/* 주문통합내역 */
|
||||
#sodr_all {}
|
||||
#sodr_all #btn_add {float:right}
|
||||
|
||||
#sodr_all_sort {float:left;margin:0;padding-left:1px;list-style:none;zoom:1}
|
||||
#sodr_all_sort:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#sodr_all_sort li {float:left;margin-bottom:-1px}
|
||||
#sodr_all_sort a {display:block;position:relative;margin-left:-1px;padding:8px 0 6px;width:70px;border:1px solid #e9e9e9;background:#f5f6fa;color:#000;text-align:center;letter-spacing:-0.1em;line-height:1.2em;cursor:pointer}
|
||||
#sodr_all_sort a:focus, #sodr_all_sort a:hover, #sodr_all_sort a:active {text-decoration:none}
|
||||
|
||||
#sodr_all_list {clear:both;margin:0;padding:10px 0 0;border-top:25px solid #f7f7f7;list-style:none}
|
||||
#sodr_all_list li {margin:0 0 10px;border-bottom:25px solid #f7f7f7}
|
||||
@ -382,9 +375,9 @@ fieldset .btn_submit:focus {height:21px;background:#555;line-height:1.7em}
|
||||
.btn_ft a {display:inline-block;padding:0 15px;height:28px;background:#617d46;color:#fff;text-decoration:none;line-height:2.4em;vertical-align:middle}
|
||||
.btn_ft a:focus {background:#555}
|
||||
|
||||
#btn_add {margin-bottom:10px;text-align:right}
|
||||
#btn_add a {display:inline-block;padding:0 15px;height:30px;border:0;background:#ff3061;color:#fff;text-decoration:none;line-height:2.5em;vertical-align:middle}
|
||||
#btn_add .btn_add_optional {background:#617d46 !important}
|
||||
.btn_add {margin-bottom:10px;text-align:right}
|
||||
.btn_add a {display:inline-block;padding:0 15px;height:30px;border:0;background:#ff3061;color:#fff;text-decoration:none;line-height:2.5em;vertical-align:middle}
|
||||
.btn_add .btn_add_optional {background:#617d46 !important}
|
||||
|
||||
/* 필수입력 */
|
||||
.required {background:url('../img/wrest.gif') #f6f9fa top right no-repeat !important}
|
||||
@ -420,10 +413,23 @@ fieldset button {padding:0 15px;height:23px;border:0;background:#617d46;color:#f
|
||||
.anchor a {display:inline-block;border:1px solid #586267;background:#667379;padding:0 7px;height:30px;color:#fff;text-decoration:none;line-height:2.6em}
|
||||
.anchor a:focus, .anchor a:hover {background:#434f54;text-decoration:none}
|
||||
|
||||
/* 리스트 정렬 */
|
||||
.sort_odr {float:left;margin:0 0 10px;padding-left:1px;list-style:none;zoom:1}
|
||||
.sort_odr:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.sort_odr li {float:left;margin-bottom:-1px}
|
||||
.sort_odr a {display:block;position:relative;margin-left:-1px;padding:8px 0 6px;width:70px;border:1px solid #e9e9e9;background:#f5f6fa;color:#000;text-align:center;letter-spacing:-0.1em;line-height:1.2em;cursor:pointer}
|
||||
.sort_odr a:focus, .sort_odr a:hover, .sort_odr a:active {text-decoration:none}
|
||||
|
||||
.sort_with {float:right}
|
||||
|
||||
#sort_mb {width:800px}
|
||||
|
||||
#sort_sodr {width:600px}
|
||||
|
||||
/* 테이블 */
|
||||
table {margin-bottom:10px;width:100%;border-collapse:collapse;border-spacing:0}
|
||||
caption {padding:10px 0 15px;font-weight:bold;text-align:left}
|
||||
thead th {padding:12px 0 8px;border-top:1px solid #e9e9e9;background:#f3f6f7}
|
||||
thead th {padding:12px 0 8px;border-bottom:1px solid #666;background:#565e60;color:#fff}
|
||||
thead th input {vertical-align:top} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */
|
||||
tfoot th {border-top:1px solid #666;border-bottom:1px solid #666;background:#484848;color:#fff}
|
||||
tfoot td {border-color:#666;background:#484848;color:#fff;font-weight:bold;text-align:center}
|
||||
|
||||
@ -104,9 +104,7 @@ a:active {color:#000;text-decoration:underline}
|
||||
.stv_item {display:none;text-align:center}
|
||||
.stv_item img {margin:5px 0}
|
||||
|
||||
#stv_nb {border-top:1px solid #e9e9e9;background:#f5f6fa}
|
||||
#stv_nb h3 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
#stv_nb ul {margin:0;padding:0;list-style:none}
|
||||
#stv_nb {margin:0;padding:0;border-top:1px solid #e9e9e9;background:#f5f6fa;list-style:none}
|
||||
#stv_nb li {text-align:center}
|
||||
#stv_nb a {display:block}
|
||||
|
||||
@ -195,37 +193,32 @@ a.sanchor_on {background:#626870;color:#fff !important;text-decoration:none}
|
||||
.cnt_cmt {display:inline-block;margin:0 0 0 3px;font-weight:bold}
|
||||
/* 버튼 */
|
||||
.btn01 {display:inline-block;padding:0 10px;height:23px;border:1px solid #ccc !important;background:#fafafa !important;color:#000 !important;text-decoration:none !important;line-height:2.15em;vertical-align:middle}
|
||||
.btn01:focus,
|
||||
.btn01:hover {text-decoration:none !important}
|
||||
.btn01:focus, .btn01:hover {text-decoration:none !important}
|
||||
.btn02 {display:inline-block;padding:0 10px;height:23px;border:1px solid #333 !important;background:#333 !important;color:#fff !important;text-decoration:none !important;line-height:2.15em;vertical-align:middle}
|
||||
.btn02:focus,
|
||||
.btn02:hover {text-decoration:none !important}
|
||||
.btn02:focus, .btn02:hover {text-decoration:none !important}
|
||||
button.btn01 {cursor:pointer}
|
||||
button.btn02 {cursor:pointer}
|
||||
.btn_confirm {text-align:center} /* 서식단계 진행 */
|
||||
.btn_submit {padding:0 10px;height:24px;border:0;background:#333;color:#fff;letter-spacing:-0.1em;vertical-align:top;cursor:pointer}
|
||||
button.btn_submit {height:22px !important;font-size:1em}
|
||||
fieldset .btn_submit {height:22px;font-size:1em}
|
||||
.btn_cancel {display:inline-block;padding:0 10px;height:22px;border:1px solid #ccc;background:#fafafa;line-height:2em}
|
||||
button.btn_cancel {display:inline-block;padding:0 10px;height:24px;border:1px solid #ccc;background:#fafafa;line-height:2em}
|
||||
.btn_cancel:focus,
|
||||
.btn_cancel:hover {text-decoration:none !important}
|
||||
.btn_cancel {display:inline-block;padding:0 10px;height:22px;border:1px solid #ccc;background:#fafafa;line-height:2em;cursor:pointer}
|
||||
button.btn_cancel {display:inline-block;padding:0 10px;height:22px;border:1px solid #ccc;background:#fafafa;line-height:1.9em}
|
||||
.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}
|
||||
button.btn_frmline {font-size:1em;cursor:pointer}
|
||||
button.btn_frmline2 {font-size:1em;cursor:pointer}
|
||||
.btn_win {clear:both;margin-bottom:20px;text-align:center} /* 새창용 */
|
||||
.btn_win a,
|
||||
.btn_win button {display:inline-block;padding:0 10px;height:22px;border:1px solid #ccc;background:#fafafa;line-height:2em;cursor:pointer}
|
||||
.btn_win a:focus,
|
||||
.btn_win a:hover {text-decoration:none}
|
||||
.btn_win a, .btn_win button {display:inline-block;padding:0 10px;height:22px;border:1px solid #ccc;background:#fafafa;line-height:2em;cursor:pointer}
|
||||
.btn_win a:focus, .btn_win a:hover {text-decoration:none}
|
||||
/* 게시판용 버튼 */
|
||||
.btn_b01 {display:inline-block;padding:0 10px;height:23px;border:1px solid #eee !important;background:#fafafa !important;color:#000 !important;text-decoration:none !important;line-height:2.15em;vertical-align:middle}
|
||||
.btn_b01:focus,
|
||||
.btn_b01:hover {text-decoration:none !important}
|
||||
.btn_b01:focus, .btn_b01:hover {text-decoration:none !important}
|
||||
.btn_b02 {display:inline-block;padding:0 10px;height:23px;border:1px solid #eee !important;background:#fafafa !important;color:#000 !important;text-decoration:none !important;line-height:2.15em;vertical-align:middle}
|
||||
.btn_b02:focus,
|
||||
.btn_b02:hover {text-decoration:none !important}
|
||||
.btn_b02:focus, .btn_b02:hover {text-decoration:none !important}
|
||||
.btn_admin {display:inline-block;padding:0 10px;height:23px;border:1px solid #e8180c !important;background:#e8180c !important;color:#fff !important;text-decoration:none !important;line-height:2.15em;vertical-align:middle} /* 관리자 전용 버튼 */
|
||||
.btn_admin:focus,
|
||||
.btn_admin:hover {text-decoration:none !important}
|
||||
.btn_admin:focus, .btn_admin:hover {text-decoration:none !important}
|
||||
|
||||
/* 기본테이블 */
|
||||
.basic_tbl {margin-bottom:10px;width:100%;border-collapse:collapse;border-spacing:0}
|
||||
@ -316,25 +309,18 @@ input.required:focus {border:1px solid #b8c9c2;background:#21272e !important;col
|
||||
.sv_wrap {display:inline-block;position:relative;font-weight:normal}
|
||||
.sv_wrap .sv {z-index:1000;display:none;margin:5px 0 0;border:1px solid #283646;background:#111}
|
||||
.sv_wrap .sv a {display:inline-block !important;margin:0 !important;padding:3px !important;width:94px;border-bottom:1px solid #283646;color:#fff !important}
|
||||
.sv_wrap a:focus,
|
||||
.sv_wrap a:hover,
|
||||
.sv_wrap a:active {text-decoration:none !important}
|
||||
.sv_wrap a:focus, .sv_wrap a:hover, .sv_wrap a:active {text-decoration:none !important}
|
||||
.sv_on {display:block !important;position:absolute;top:10px;left:20px;width:auto;height:auto !important}
|
||||
.sv_nojs .sv {display:block}
|
||||
|
||||
/* 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}
|
||||
.pg a:focus,
|
||||
.pg a:hover,
|
||||
.pg a:active {text-decoration:none}
|
||||
.pg_page,
|
||||
.pg_current {display:inline-block;padding:0 12px;height:30px;color:#000;letter-spacing:0;line-height:2.6em;vertical-align:middle}
|
||||
.pg a:focus, .pg a:hover, .pg a:active {text-decoration:none}
|
||||
.pg_page, .pg_current {display:inline-block;padding:0 12px;height:30px;color:#000;letter-spacing:0;line-height:2.6em;vertical-align:middle}
|
||||
.pg_page {background:#f9f9f9;text-decoration:none}
|
||||
.pg_start,
|
||||
.pg_prev {border-right:1px solid #cfded8}
|
||||
.pg_end,
|
||||
.pg_next {border-left:1px solid #cfded8}
|
||||
.pg_start, .pg_prev {border-right:1px solid #cfded8}
|
||||
.pg_end, .pg_next {border-left:1px solid #cfded8}
|
||||
.pg_current {background:#333;color:#fff;font-weight:bold}
|
||||
|
||||
/* ########## 쇼핑몰 컨텐츠 ########## */
|
||||
@ -666,6 +652,9 @@ input.required:focus {border:1px solid #b8c9c2;background:#21272e !important;col
|
||||
#sod_frm {}
|
||||
#sod_frm h2 {margin:0 0 10px}
|
||||
|
||||
#sod_list {position:relative}
|
||||
#sod_list #it_coupon_frm {z-index:10000;position:absolute;top:0;left:99px;padding:20px;width:500px;height:auto !important;height:500px;max-height:500px;border:1px solid #000;background:#f5f6fa;overflow-y:scroll}
|
||||
|
||||
#sod_frm_orderer {margin:20px 0 40px}
|
||||
|
||||
#sod_frm_same {margin:0 0 10px}
|
||||
@ -754,11 +743,9 @@ input.required:focus {border:1px solid #b8c9c2;background:#21272e !important;col
|
||||
.socc_img {text-align:center}
|
||||
|
||||
/* FAQ 관리 */
|
||||
#sfaq {}
|
||||
.sfaq_admin {text-align:right}
|
||||
#sfaq header h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
#sfaq_wrap {margin:10px 0}
|
||||
#sfaq_wrap h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
.sfaq_admin {text-align:right}
|
||||
#sfaq_wrap ol {margin:0;padding:0;list-style:none}
|
||||
#sfaq_list {margin:0 0 10px;border:1px solid #ccc}
|
||||
#sfaq_list li {border-bottom:1px solid #fff;background:#f5f6fa}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<section id="scomm">
|
||||
<aside id="scomm">
|
||||
<h2>쇼핑몰 커뮤니티</h2>
|
||||
|
||||
<ul>
|
||||
@ -20,4 +20,4 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
</ul>
|
||||
|
||||
</section>
|
||||
</aside>
|
||||
@ -2,7 +2,7 @@
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<section id="sev">
|
||||
<aside id="sev">
|
||||
<h2>쇼핑몰 이벤트</h2>
|
||||
|
||||
<ul>
|
||||
@ -35,4 +35,4 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
</ul>
|
||||
|
||||
</section>
|
||||
</aside>
|
||||
@ -84,14 +84,11 @@ $tv_div['img_length'] = 3; // 한번에 보여줄 이미지 수
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<aside id="stv_nb">
|
||||
<h3>빠른 연결</h3>
|
||||
<ul>
|
||||
<li><a href="<?php echo G4_SHOP_URL; ?>/cart.php"><img src="<?php echo G4_URL; ?>/img/shop/hd_nb_cart.gif" alt="장바구니"></a></li>
|
||||
<li><a href="<?php echo G4_SHOP_URL; ?>/wishlist.php"><img src="<?php echo G4_URL; ?>/img/shop/hd_nb_wish.gif" alt="위시리스트"></a></li>
|
||||
<li><a href="<?php echo G4_SHOP_URL; ?>/orderinquiry.php"><img src="<?php echo G4_URL; ?>/img/shop/hd_nb_deli.gif" alt="주문/배송조회"></a></li>
|
||||
</ul>
|
||||
</aside>
|
||||
<ul id="stv_nb">
|
||||
<li><a href="<?php echo G4_SHOP_URL; ?>/cart.php"><img src="<?php echo G4_URL; ?>/img/shop/hd_nb_cart.gif" alt="장바구니"></a></li>
|
||||
<li><a href="<?php echo G4_SHOP_URL; ?>/wishlist.php"><img src="<?php echo G4_URL; ?>/img/shop/hd_nb_wish.gif" alt="위시리스트"></a></li>
|
||||
<li><a href="<?php echo G4_SHOP_URL; ?>/orderinquiry.php"><img src="<?php echo G4_URL; ?>/img/shop/hd_nb_deli.gif" alt="주문/배송조회"></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
@ -52,7 +52,10 @@ include_once('./_head.php');
|
||||
<th scope="col">판매가</th>
|
||||
<th scope="col">소계</th>
|
||||
<th scope="col">포인트</th>
|
||||
<th scope="col"><input type="checkbox" name="ct_all" value="1" checked="checked"></th>
|
||||
<th scope="col">
|
||||
<label for="ct_all" class="sound_only">상품 전체</label>
|
||||
<input type="checkbox" name="ct_all" value="1" id="ct_all" checked="checked">
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -128,7 +131,10 @@ include_once('./_head.php');
|
||||
<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" checked="checked"></td>
|
||||
<td class="td_chk">
|
||||
<label for="ct_chk_<?php echo $i; ?>" class="sound_only">상품</label>
|
||||
<input type="checkbox" name="ct_chk[<?php echo $i; ?>]" value="1" id="ct_chk_<?php echo $i; ?>" checked="checked">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
@ -222,8 +228,6 @@ $(function() {
|
||||
var $this = $(this);
|
||||
close_btn_idx = $(".mod_options").index($(this));
|
||||
|
||||
winMask(); // 모달 윈도우 배경 출력
|
||||
|
||||
$.post(
|
||||
"./cartoption.php",
|
||||
{ it_id: it_id },
|
||||
|
||||
@ -31,7 +31,7 @@ else
|
||||
<th scope="col">포인트</th>
|
||||
<?php
|
||||
if ($s_page == 'cart.php')
|
||||
echo '<th scope="col"><input type="checkbox" name="ct_all" value="1"></th>';
|
||||
echo '<th scope="col"><label for="ct_all" class="sound_only">상품 전체</label><input type="checkbox" name="ct_all" value="1" id="ct_all"></th>';
|
||||
else if ($s_page == 'orderinquiryview.php')
|
||||
echo '<th scope="col">상태</th>';
|
||||
?>
|
||||
@ -167,7 +167,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
|
||||
<?php
|
||||
if ($s_page == 'cart.php')
|
||||
echo '<td class="td_smallmng"><input type="checkbox" name="ct_chk['.$i.']" value="1"></td>';
|
||||
echo '<td class="td_chk"><label for="ct_chk_'.$i.'" class="sound_only">상품</label><input type="checkbox" name="ct_chk['.$i.']" value="1" id="ct_chk_'.$i.'"></td>';
|
||||
else if ($s_page == 'orderinquiryview.php')
|
||||
echo '<td class="td_smallmng">'.$row['ct_status'].'</td>';
|
||||
?>
|
||||
|
||||
86
shop/faq.php
@ -27,56 +27,50 @@ if (file_exists($himg))
|
||||
echo '<div id="sfaq_hhtml">'.stripslashes($fm['fm_head_html']).'</div>';
|
||||
?>
|
||||
|
||||
<article id="sfaq" class="sfaq_<?=$fm_id?>">
|
||||
<header>
|
||||
<h1><?php echo $g4['title']; ?></h1>
|
||||
</header>
|
||||
|
||||
<div id="sfaq_wrap">
|
||||
<?php // FAQ 목차
|
||||
$sql = " select * from {$g4['shop_faq_table']}
|
||||
where fm_id = '$fm_id'
|
||||
order by fa_order , fa_id ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=1; $row=sql_fetch_array($result); $i++)
|
||||
<div id="sfaq_wrap" class="sfaq_<?php echo $fm_id; ?>">
|
||||
<?php // FAQ 목차
|
||||
$sql = " select * from {$g4['shop_faq_table']}
|
||||
where fm_id = '$fm_id'
|
||||
order by fa_order , fa_id ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=1; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
if ($i == 1)
|
||||
{
|
||||
if ($i == 1)
|
||||
{
|
||||
?>
|
||||
<section id="sfaq_list">
|
||||
<h2>FAQ 목차</h2>
|
||||
<ol>
|
||||
<?php } ?>
|
||||
<li><a href="#sfaq_<?php echo $fm_id.'_'.$i; ?>"><?php echo stripslashes($row['fa_subject']); ?></a></li>
|
||||
<?php }
|
||||
if ($i > 1) echo '</ol></section>';
|
||||
?>
|
||||
?>
|
||||
<section id="sfaq_list">
|
||||
<h2><?php echo $g4['title']; ?> 목차</h2>
|
||||
<ol>
|
||||
<?php } ?>
|
||||
<li><a href="#sfaq_<?php echo $fm_id.'_'.$i; ?>"><?php echo stripslashes($row['fa_subject']); ?></a></li>
|
||||
<?php }
|
||||
if ($i > 1) echo '</ol></section>';
|
||||
?>
|
||||
|
||||
<?php // FAQ 내용
|
||||
$resultb = sql_query($sql);
|
||||
for ($i=1; $row=sql_fetch_array($resultb); $i++)
|
||||
<?php // FAQ 내용
|
||||
$resultb = sql_query($sql);
|
||||
for ($i=1; $row=sql_fetch_array($resultb); $i++)
|
||||
{
|
||||
if ($i == 1)
|
||||
{
|
||||
if ($i == 1)
|
||||
{
|
||||
?>
|
||||
<section id="sfaq_con">
|
||||
<h2>FAQ 내용</h2>
|
||||
<ol>
|
||||
<?php } ?>
|
||||
<li id="sfaq_<?php echo $fm_id.'_'.$i; ?>">
|
||||
<h3><?php echo stripslashes($row['fa_subject']); ?></h3>
|
||||
<p>
|
||||
<?php echo stripslashes($row['fa_content']); ?>
|
||||
</p>
|
||||
<div class="sfaq_tolist"><a href="#sfaq_list" class="btn01">FAQ 목차</a></div>
|
||||
</li>
|
||||
<?php }
|
||||
if ($i > 1) echo '</ol></section>';
|
||||
?>
|
||||
<section id="sfaq_con">
|
||||
<h2><?php echo $g4['title']; ?> 내용</h2>
|
||||
<ol>
|
||||
<?php } ?>
|
||||
<li id="sfaq_<?php echo $fm_id.'_'.$i; ?>">
|
||||
<h3><?php echo stripslashes($row['fa_subject']); ?></h3>
|
||||
<p>
|
||||
<?php echo stripslashes($row['fa_content']); ?>
|
||||
</p>
|
||||
<div class="sfaq_tolist"><a href="#sfaq_list" class="btn01">FAQ 목차</a></div>
|
||||
</li>
|
||||
<?php }
|
||||
if ($i > 1) echo '</ol></section>';
|
||||
|
||||
if ($i == 1) echo '<p>등록된 FAQ가 없습니다.<br><a href="'.G4_ADMIN_URL.'/shop_admin/faqmasterlist.php">FAQ를 새로 등록하시려면 FAQ관리</a> 메뉴를 이용하십시오.</p>';
|
||||
?>
|
||||
</div>
|
||||
</article>
|
||||
if ($i == 1) echo '<p>등록된 FAQ가 없습니다.<br><a href="'.G4_ADMIN_URL.'/shop_admin/faqmasterlist.php">FAQ를 새로 등록하시려면 FAQ관리</a> 메뉴를 이용하십시오.</p>';
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
// 하단 HTML
|
||||
|
||||
@ -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 } ?>
|
||||
@ -579,13 +579,57 @@ else
|
||||
<!-- 상품설명 end -->
|
||||
|
||||
<section id="sit_use">
|
||||
<h2>이용후기</h2>
|
||||
<h2>사용후기</h2>
|
||||
<?php echo pg_anchor('use'); ?>
|
||||
|
||||
<?php
|
||||
/*
|
||||
<script>
|
||||
function autoResize(id){
|
||||
var newheight;
|
||||
var newwidth;
|
||||
|
||||
if(document.getElementById){
|
||||
newheight=document.getElementById(id).contentWindow.document .body.scrollHeight;
|
||||
newwidth=document.getElementById(id).contentWindow.document .body.scrollWidth;
|
||||
}
|
||||
|
||||
document.getElementById(id).height= (newheight) + "px";
|
||||
document.getElementById(id).width= (newwidth) + "px";
|
||||
}
|
||||
</script>
|
||||
|
||||
<iframe src="./itemuse.php?it_id=<?php echo $it_id; ?>" id="iframe1" frameborder="0" scrolling="no" onLoad="autoResize('iframe1');">
|
||||
</iframe>
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php
|
||||
/*
|
||||
$use_page_rows = 10; // 페이지당 목록수
|
||||
include_once('./itemuse.inc.php');
|
||||
*/
|
||||
?>
|
||||
<div id="itemuse"></div>
|
||||
<script>
|
||||
$(function(){
|
||||
/*
|
||||
$.get("./itemuse.php", {it_id:<?php echo $it_id; ?>}, function(data){
|
||||
$("#itemuse").html(data);
|
||||
});
|
||||
$('#itemuse').live('click', function(e) {
|
||||
//alert((this).attr('href'));
|
||||
//e.preventDefault();
|
||||
$.get((this).attr('href'), {it_id:<?php echo $it_id; ?>}, function(data) {
|
||||
//alert(data);
|
||||
$('#container').html(data);
|
||||
});
|
||||
});
|
||||
*/
|
||||
|
||||
$("#itemuse").load("./itemuse.php", {it_id:<?php echo $it_id; ?>});
|
||||
});
|
||||
</script>
|
||||
</section>
|
||||
|
||||
<section id="sit_qa">
|
||||
|
||||
@ -1,8 +1,14 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$itemuse_write = G4_BBS_URL.'/write.php?bo_table=itemuse&wr_1='.$it_id;
|
||||
$itemuse_board = G4_BBS_URL.'/board.php?bo_table=itemuse&wr_1='.$it_id;
|
||||
|
||||
include_once(G4_LIB_PATH.'/thumb.lib.php');
|
||||
?>
|
||||
|
||||
<a href="<?php echo $itemuse_board; ?>">더보기</a>
|
||||
|
||||
<table id="sit_ps_tbl">
|
||||
<thead>
|
||||
<tr>
|
||||
@ -14,7 +20,15 @@ include_once(G4_LIB_PATH.'/thumb.lib.php');
|
||||
</tr>
|
||||
</thead>
|
||||
<?php
|
||||
$sql_common = " from {$g4['shop_item_ps_table']} where it_id = '{$it['it_id']}' and is_confirm = '1' ";
|
||||
/*
|
||||
여분필드 용도
|
||||
wr_1 : 상품코드
|
||||
wr_2 : 상품명
|
||||
wr_3 : 평점 1~5
|
||||
wr_4 : 관리자확인
|
||||
*/
|
||||
//$sql_common = " from `{$g4['write_prefix']}itemuse` where wr_is_comment = 0 and wr_1 = '{$it['it_id']}' and wr_4 = '1' ";
|
||||
$sql_common = " from `{$g4['write_prefix']}itemuse` where wr_is_comment = 0 and wr_1 = '{$it['it_id']}' ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
$sql = " select COUNT(*) as cnt " . $sql_common;
|
||||
@ -25,104 +39,39 @@ $use_total_page = ceil($use_total_count / $use_page_rows); // 전체 페이지
|
||||
if ($use_page == "") $use_page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$use_from_record = ($use_page - 1) * $use_page_rows; // 시작 레코드 구함
|
||||
|
||||
$sql = "select * $sql_common order by is_id desc limit $use_from_record, $use_page_rows ";
|
||||
$sql = "select * $sql_common order by wr_num limit $use_from_record, $use_page_rows ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$num = $use_total_count - ($use_page - 1) * $use_page_rows - $i;
|
||||
$use_num = $use_total_count - ($use_page - 1) * $use_page_rows - $i;
|
||||
$use_star = get_star($row['wr_3']);
|
||||
$use_name = get_text($row['wr_name']);
|
||||
$use_subject = conv_subject($row['wr_subject'],50,"…");
|
||||
$use_content = $row['wr_content'];
|
||||
$use_time = substr($row['wr_datetime'], 2, 8);
|
||||
$use_href = G4_BBS_URL.'/board.php?bo_table=itemuse&wr_id='.$row['wr_id'];
|
||||
|
||||
$star = get_star($row['is_score']);
|
||||
|
||||
$is_name = get_text($row['is_name']);
|
||||
$is_subject = conv_subject($row['is_subject'],50,"…");
|
||||
//$is_content = conv_content($row[is_content],0);
|
||||
$is_content = $row['is_content'];
|
||||
//$is_content = preg_replace_callback("#<img[^>]+>#iS", "g4_thumb", $is_content);
|
||||
|
||||
$thumb = new g4_thumb(G4_DATA_PATH.'/itemuse', 500);
|
||||
$is_content = $thumb->run($is_content);
|
||||
|
||||
$is_time = substr($row['is_time'], 2, 14);
|
||||
// http://stackoverflow.com/questions/6967081/show-hide-multiple-divs-with-jquery?answertab=votes#tab-top
|
||||
?>
|
||||
|
||||
<li class="sit_ps_li">
|
||||
<button type="button" class="sit_ps_li_title" onclick="javascript:qa_menu('sit_ps_con_<?php echo $i; ?>')"><?php echo $num; ?>. <?php echo $iq_subject; ?></button>
|
||||
<dl class="sit_ps_dl">
|
||||
<dt>작성자</dt>
|
||||
<dd><?php echo $iq_name; ?></dd>
|
||||
<dt>작성일</dt>
|
||||
<dd><?php echo $iq_time; ?></dd>
|
||||
<dt>상태</dt>
|
||||
<dd><?php echo $iq_stats; ?></dd>
|
||||
</dl>
|
||||
|
||||
<div id="sit_ps_con_<?php echo $i; ?>" class="sit_ps_con">
|
||||
<p class="sit_ps_qaq">
|
||||
<strong>문의내용</strong><br>
|
||||
<?php echo $iq_question; // 상품 문의 내용 ?>
|
||||
</p>
|
||||
<p class="sit_ps_qaa">
|
||||
<strong>답변</strong><br>
|
||||
<?php echo $iq_answer; ?>
|
||||
</p>
|
||||
|
||||
<textarea id="tmp_iq_id<?php echo $i; ?>"><?php echo $row['iq_id']; ?></textarea>
|
||||
<textarea id="tmp_iq_name<?php echo $i; ?>"><?php echo $row['iq_name']; ?></textarea>
|
||||
<textarea id="tmp_iq_subject<?php echo $i; ?>"><?php echo $row['iq_subject']; ?></textarea>
|
||||
<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_ps_cmd">
|
||||
<button onclick="javascript:itemqa_update(<?php echo $i; ?>);" class="btn01">수정</button>
|
||||
<button onclick="javascript:itemqa_delete(fitemqa_password<?php echo $i; ?>, <?php echo $i; ?>);" class="btn01">삭제</button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><?php echo $num; ?><span class="sound_only">번</span></td>
|
||||
<td><?php echo $use_num; ?><span class="sound_only">번</span></td>
|
||||
<td>
|
||||
<a href="javascript:;" onclick="use_menu('is<?php echo $i; ?>')"><?php echo $is_subject; ?></a>
|
||||
<div>
|
||||
<div>
|
||||
<?php echo $is_content; ?>
|
||||
</div>
|
||||
<textarea id="tmp_is_id<?php echo $i; ?>"><?php echo $row['is_id']; ?></textarea>
|
||||
<textarea id="tmp_is_name<?php echo $i; ?>"><?php echo $row['is_name']; ?></textarea>
|
||||
<textarea id="tmp_is_subject<?php echo $i; ?>"><?php echo $row['is_subject']; ?></textarea>
|
||||
<textarea id="tmp_is_content<?php echo $i; ?>"><?php echo $row['is_content']; ?></textarea>
|
||||
|
||||
<?php if ($row[mb_id] == $member[mb_id]) { ?>
|
||||
<a href="javascript:itemusewin('is_id=<?php echo $row['is_id']; ?>&w=u');">수정</a>
|
||||
<a href="javascript:itemuse_delete(fitemuse_password<?php echo $i; ?>, <?php echo $i; ?>);">삭제</a>
|
||||
<?php } ?>
|
||||
<div id="is<?php echo $i; ?>">
|
||||
<!-- 사용후기 삭제 패스워드 입력 폼 -->
|
||||
<form name="fitemuse_password<?php echo $i; ?>" method="post" action="./itemuseupdate.php" autocomplete="off">
|
||||
<input type="hidden" name="w" value="">
|
||||
<input type="hidden" name="is_id" value="">
|
||||
<input type="hidden" name="it_id" value="<?php echo $it['it_id']; ?>">
|
||||
<label for="is_password_<?php echo $i; ?>">패스워드</label>
|
||||
<input type="password" name="is_password" id="is_password_<?php echo $i; ?>" required>
|
||||
<input type="submit" value="확인">
|
||||
</form>
|
||||
</div>
|
||||
<a href="<?php echo $use_href; ?>" class="use_href" onclick="return false;" target="<?php echo $i; ?>"><?php echo $use_subject; ?></a>
|
||||
<div id="use_div<?php echo $i; ?>" class="use_div" style="display:none;">
|
||||
<?php echo $use_content; ?>
|
||||
</div>
|
||||
</td>
|
||||
<td><?php echo $is_name; ?></td>
|
||||
<td><?php echo $is_time; ?></td>
|
||||
<td><img src="<?php echo G4_URL; ?>/img/shop/s_star<?php echo $star; ?>.png" alt="별<?php echo $star; ?>개"></td>
|
||||
<td><?php echo $use_name; ?></td>
|
||||
<td><?php echo $use_time; ?></td>
|
||||
<td><img src="<?php echo G4_URL; ?>/img/shop/s_star<?php echo $use_star; ?>.png" alt="별<?php echo $use_star; ?>개"></td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
<?php
|
||||
}
|
||||
|
||||
if (!$i)
|
||||
{
|
||||
if (!$i) {
|
||||
echo '<tr><td class="empty_class">등록된 사용후기가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
@ -134,84 +83,14 @@ if ($use_pages) {
|
||||
}
|
||||
?>
|
||||
|
||||
<a href="javascript:itemusewin('it_id=<?php echo $it_id; ?>');">사용후기 쓰기<span class="sound_only"> 새 창</span></a>
|
||||
<!-- <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>
|
||||
|
||||
<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>
|
||||
$(function(){
|
||||
$(".use_href").click(function(){
|
||||
$(".use_div").hide();
|
||||
$("#use_div"+$(this).attr("target")).show();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
145
shop/itemuse.php
Normal file
@ -0,0 +1,145 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
include_once(G4_LIB_PATH.'/thumb.lib.php');
|
||||
|
||||
$it_id = $_REQUEST['it_id'];
|
||||
|
||||
$itemuse_write = G4_BBS_URL.'/write.php?bo_table=itemuse&wr_1='.$it_id;
|
||||
$itemuse_board = G4_BBS_URL.'/board.php?bo_table=itemuse&wr_1='.$it_id;
|
||||
|
||||
include_once(G4_PATH.'/head.sub.php');
|
||||
?>
|
||||
|
||||
<a href="<?php echo $itemuse_board; ?>" target="_blank">더보기</a>
|
||||
|
||||
<table id="sit_ps_tbl">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>번호</th>
|
||||
<th>제목</th>
|
||||
<th>작성자</th>
|
||||
<th>작성일</th>
|
||||
<th>평점</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<?php
|
||||
/*
|
||||
여분필드 용도
|
||||
wr_1 : 상품코드
|
||||
wr_2 : 상품명
|
||||
wr_3 : 평점 1~5
|
||||
wr_4 : 관리자확인
|
||||
*/
|
||||
//$sql_common = " from `{$g4['write_prefix']}itemuse` where wr_is_comment = 0 and wr_1 = '{$it['it_id']}' and wr_4 = '1' ";
|
||||
$sql_common = " from `{$g4['write_prefix']}itemuse` where wr_is_comment = 0 and wr_1 = '{$it_id}' ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
$sql = " select COUNT(*) as cnt " . $sql_common;
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
|
||||
$rows = 2;
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page == "") $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 레코드 구함
|
||||
|
||||
$sql = "select * $sql_common order by wr_num limit $from_record, $rows ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$use_num = $total_count - ($page - 1) * $rows - $i;
|
||||
$use_star = get_star($row['wr_3']);
|
||||
$use_name = get_text($row['wr_name']);
|
||||
$use_subject = conv_subject($row['wr_subject'],50,"…");
|
||||
$use_content = $row['wr_content'];
|
||||
$use_time = substr($row['wr_datetime'], 2, 8);
|
||||
$use_href = G4_BBS_URL.'/board.php?bo_table=itemuse&wr_id='.$row['wr_id'];
|
||||
|
||||
// http://stackoverflow.com/questions/6967081/show-hide-multiple-divs-with-jquery?answertab=votes#tab-top
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td><?php echo $use_num; ?><span class="sound_only">번</span></td>
|
||||
<td>
|
||||
<a href="<?php echo $use_href; ?>" class="use_href" onclick="return false;" target="<?php echo $i; ?>"><?php echo $use_subject; ?></a>
|
||||
<div id="use_div<?php echo $i; ?>" class="use_div" style="display:none;">
|
||||
<?php echo $use_content; ?>
|
||||
</div>
|
||||
</td>
|
||||
<td><?php echo $use_name; ?></td>
|
||||
<td><?php echo $use_time; ?></td>
|
||||
<td><img src="<?php echo G4_URL; ?>/img/shop/s_star<?php echo $use_star; ?>.png" alt="별<?php echo $use_star; ?>개"></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
if (!$i) {
|
||||
echo '<tr><td class="empty_class">등록된 사용후기가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
// 현재페이지, 총페이지수, 한페이지에 보여줄 행, URL
|
||||
function itemuse_page($write_pages, $cur_page, $total_page, $url, $add="")
|
||||
{
|
||||
$url = preg_replace('#&page=[0-9]*(&page=)$#', '$1', $url);
|
||||
|
||||
$str = '';
|
||||
if ($cur_page > 1) {
|
||||
$str .= '<a href="'.$url.'1'.$add.'" class="pg_page pg_start" onclick="return false;">처음</a>'.PHP_EOL;
|
||||
}
|
||||
|
||||
$start_page = ( ( (int)( ($cur_page - 1 ) / $write_pages ) ) * $write_pages ) + 1;
|
||||
$end_page = $start_page + $write_pages - 1;
|
||||
|
||||
if ($end_page >= $total_page) $end_page = $total_page;
|
||||
|
||||
if ($start_page > 1) $str .= '<a href="'.$url.($start_page-1).$add.'" class="pg_page pg_prev" onclick="return false;">이전</a>'.PHP_EOL;
|
||||
|
||||
if ($total_page > 1) {
|
||||
for ($k=$start_page;$k<=$end_page;$k++) {
|
||||
if ($cur_page != $k)
|
||||
$str .= '<a href="'.$url.$k.$add.'" class="pg_page" onclick="return false;">'.$k.'</a><span class="sound_only">페이지</span>'.PHP_EOL;
|
||||
else
|
||||
$str .= '<span class="sound_only">열린</span><strong class="pg_current">'.$k.'</strong><span class="sound_only">페이지</span>'.PHP_EOL;
|
||||
}
|
||||
}
|
||||
|
||||
if ($total_page > $end_page) $str .= '<a href="'.$url.($end_page+1).$add.'" class="pg_page pg_next">다음</a>'.PHP_EOL;
|
||||
|
||||
if ($cur_page < $total_page) {
|
||||
$str .= '<a href="'.$url.$total_page.$add.'" class="pg_page pg_end" onclick="return false;">맨끝</a>'.PHP_EOL;
|
||||
}
|
||||
|
||||
if ($str)
|
||||
return "<nav class=\"pg_wrap\"><span class=\"pg\">{$str}</span></nav>";
|
||||
else
|
||||
return "";
|
||||
}
|
||||
|
||||
echo itemuse_page(10, $page, $total_page, "./itemuse.php?it_id=$it_id&page=", "");
|
||||
?>
|
||||
|
||||
<!-- <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>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
$(".use_href").click(function(){
|
||||
$(".use_div").hide();
|
||||
$("#use_div"+$(this).attr("target")).show();
|
||||
});
|
||||
|
||||
$(".pg_page").click(function(){
|
||||
//alert($(this).attr("href"));
|
||||
$(top.document).find('#itemuse').load($(this).attr("href"));
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G4_PATH.'/tail.sub.php');
|
||||
?>
|
||||
@ -25,7 +25,7 @@ include_once(G4_PATH.'/head.sub.php');
|
||||
?>
|
||||
|
||||
<div id="sit_pvi_nw">
|
||||
<h1>상품 이미지 새 창 보기</h1>
|
||||
<h1>상품 이미지 새창 보기</h1>
|
||||
|
||||
<div id="sit_pvi_nwbig">
|
||||
<?php
|
||||
|
||||
@ -21,45 +21,52 @@ $count = mysql_num_rows($result);
|
||||
|
||||
<div id="od_coupon_frm">
|
||||
<?php if($count > 0) { ?>
|
||||
<ul>
|
||||
<li>
|
||||
<span>쿠폰명</span>
|
||||
<span>할인금액</span>
|
||||
<span>적용</span>
|
||||
</li>
|
||||
<?php
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$dc = 0;
|
||||
if($row['cp_type']) {
|
||||
$dc = floor(($amount * ($row['cp_amount'] / 100)) / $row['cp_trunc']) * $row['cp_trunc'];
|
||||
} else {
|
||||
$dc = $row['cp_amount'];
|
||||
}
|
||||
<table class="basic_tbl">
|
||||
<caption>쿠폰 선택</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">쿠폰명</th>
|
||||
<th scope="col">할인금액</th>
|
||||
<th scope="col">적용</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$dc = 0;
|
||||
if($row['cp_type']) {
|
||||
$dc = floor(($amount * ($row['cp_amount'] / 100)) / $row['cp_trunc']) * $row['cp_trunc'];
|
||||
} else {
|
||||
$dc = $row['cp_amount'];
|
||||
}
|
||||
|
||||
if($row['cp_maximum'] && $dc > $row['cp_maximum'])
|
||||
$dc = $row['cp_maximum'];
|
||||
?>
|
||||
<li>
|
||||
if($row['cp_maximum'] && $dc > $row['cp_maximum'])
|
||||
$dc = $row['cp_maximum'];
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" name="o_cp_id[]" value="<?php echo $row['cp_id']; ?>">
|
||||
<input type="hidden" name="o_cp_amt[]" value="<?php echo $dc; ?>">
|
||||
<input type="hidden" name="o_cp_subj[]" value="<?php echo $row['cp_subject']; ?>">
|
||||
<span><?php echo get_text($row['cp_subject']); ?></span>
|
||||
<span><?php echo number_format($dc); ?></span>
|
||||
<span><button type="button" class="od_cp_apply">적용</button></span>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<?php echo get_text($row['cp_subject']); ?>
|
||||
</td>
|
||||
<td><?php echo number_format($dc); ?></td>
|
||||
<td><button type="button" class="od_cp_apply" class="btn_frmline">적용</button></td>
|
||||
</tr>
|
||||
<?php
|
||||
} else {
|
||||
echo '사용할 수 있는 쿠폰이 없습니다.';
|
||||
}
|
||||
?>
|
||||
<div>
|
||||
<button type="button" id="od_coupon_close">닫기</button>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php
|
||||
} else {
|
||||
echo '<p>사용할 수 있는 쿠폰이 없습니다.</p>';
|
||||
}
|
||||
?>
|
||||
<div class="btn_confirm">
|
||||
<button type="button" id="od_coupon_close" class="btn_submit">닫기</button>
|
||||
<?php if($count > 0) { ?>
|
||||
<button type="button" id="od_coupon_cancel">쿠폰적용취소</button>
|
||||
<button type="button" id="od_coupon_cancel" class="btn_cancel">쿠폰적용취소</button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
@ -112,7 +112,7 @@ setTimeout("init_pay_button();",300);
|
||||
<form name="forderform" method="post" action="<?php echo $order_action_url; ?>" onsubmit="return forderform_check(this);" autocomplete="off">
|
||||
<div id="sod_frm">
|
||||
<p>주문하실 상품을 확인하세요.</p>
|
||||
<table class="basic_tbl">
|
||||
<table id="sod_list" class="basic_tbl">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">상품이미지</th>
|
||||
@ -217,7 +217,7 @@ setTimeout("init_pay_button();",300);
|
||||
$cp = sql_fetch($sql);
|
||||
|
||||
if($cp['cnt'])
|
||||
$cp_button = '<button type="button" class="it_coupon_btn">적용</button>';
|
||||
$cp_button = '<button type="button" class="it_coupon_btn btn_frmline">적용</button>';
|
||||
}
|
||||
?>
|
||||
|
||||
@ -233,7 +233,7 @@ setTimeout("init_pay_button();",300);
|
||||
</td>
|
||||
<td class="td_num"><?php echo number_format($sum['qty']); ?></td>
|
||||
<td class="td_bignum"><?php echo number_format($row['ct_price']); ?></td>
|
||||
<td><?php echo $cp_button; ?></td>
|
||||
<td class="td_smallmng"><?php echo $cp_button; ?></td>
|
||||
<td class="td_bignum"><span class="ct_sell_amount"><?php echo number_format($sell_amount); ?></span></td>
|
||||
<td class="td_bignum"><?php echo number_format($point); ?></td>
|
||||
</tr>
|
||||
@ -923,7 +923,7 @@ $(function() {
|
||||
});
|
||||
|
||||
$(".cp_apply").live("click", function() {
|
||||
var $el = $(this).closest("li");
|
||||
var $el = $(this).closest("tr");
|
||||
var cp_id = $el.find("input[name='f_cp_id[]']").val();
|
||||
var amount = $el.find("input[name='f_cp_amt[]']").val();
|
||||
var subj = $el.find("input[name='f_cp_subj[]']").val();
|
||||
|
||||
@ -50,7 +50,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="6" class="empty_table">주문 내역이 없습니다.</td></tr>';
|
||||
echo '<tr><td colspan="7" class="empty_table">주문 내역이 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@ -42,45 +42,52 @@ $count = mysql_num_rows($result);
|
||||
|
||||
<div id="it_coupon_frm">
|
||||
<?php if($count > 0) { ?>
|
||||
<ul>
|
||||
<li>
|
||||
<span>쿠폰명</span>
|
||||
<span>할인금액</span>
|
||||
<span>적용</span>
|
||||
</li>
|
||||
<?php
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$dc = 0;
|
||||
if($row['cp_type']) {
|
||||
$dc = floor(($item_price * ($row['cp_amount'] / 100)) / $row['cp_trunc']) * $row['cp_trunc'];
|
||||
} else {
|
||||
$dc = $row['cp_amount'];
|
||||
}
|
||||
<table class="basic_tbl">
|
||||
<caption>쿠폰 선택</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">쿠폰명</th>
|
||||
<th scope="col">할인금액</th>
|
||||
<th scope="col">적용</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$dc = 0;
|
||||
if($row['cp_type']) {
|
||||
$dc = floor(($item_price * ($row['cp_amount'] / 100)) / $row['cp_trunc']) * $row['cp_trunc'];
|
||||
} else {
|
||||
$dc = $row['cp_amount'];
|
||||
}
|
||||
|
||||
if($row['cp_maximum'] && $dc > $row['cp_maximum'])
|
||||
$dc = $row['cp_maximum'];
|
||||
?>
|
||||
<li>
|
||||
if($row['cp_maximum'] && $dc > $row['cp_maximum'])
|
||||
$dc = $row['cp_maximum'];
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" name="f_cp_id[]" value="<?php echo $row['cp_id']; ?>">
|
||||
<input type="hidden" name="f_cp_amt[]" value="<?php echo $dc; ?>">
|
||||
<input type="hidden" name="f_cp_subj[]" value="<?php echo $row['cp_subject']; ?>">
|
||||
<span><?php echo get_text($row['cp_subject']); ?></span>
|
||||
<span><?php echo number_format($dc); ?></span>
|
||||
<span><button type="button" class="cp_apply">적용</button></span>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<?php echo get_text($row['cp_subject']); ?>
|
||||
</td>
|
||||
<td class="td_bignum"><?php echo number_format($dc); ?></td>
|
||||
<td class="td_smallmng"><button type="button" class="cp_apply btn_frmline">적용</button></td>
|
||||
</tr>
|
||||
<?php
|
||||
} else {
|
||||
echo '사용할 수 있는 쿠폰이 없습니다.';
|
||||
}
|
||||
?>
|
||||
<div>
|
||||
<button type="button" id="it_coupon_close">닫기</button>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php
|
||||
} else {
|
||||
echo '<p>사용할 수 있는 쿠폰이 없습니다.</p>';
|
||||
}
|
||||
?>
|
||||
<div class="btn_confirm">
|
||||
<button type="button" id="it_coupon_close" class="btn_submit">닫기</button>
|
||||
<?php if($count > 0) { ?>
|
||||
<button type="button" id="it_coupon_cancel">쿠폰적용취소</button>
|
||||
<button type="button" id="it_coupon_cancel" class="btn_cancel">쿠폰적용취소</button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
@ -22,48 +22,55 @@ $count = mysql_num_rows($result);
|
||||
|
||||
<div id="sc_coupon_frm">
|
||||
<?php if($count > 0) { ?>
|
||||
<ul>
|
||||
<li>
|
||||
<span>쿠폰명</span>
|
||||
<span>할인금액</span>
|
||||
<span>적용</span>
|
||||
</li>
|
||||
<?php
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$dc = 0;
|
||||
if($row['cp_type']) {
|
||||
$dc = floor(($send_cost * ($row['cp_amount'] / 100)) / $row['cp_trunc']) * $row['cp_trunc'];
|
||||
} else {
|
||||
$dc = $row['cp_amount'];
|
||||
}
|
||||
<table class="basic_tbl">
|
||||
<caption>쿠폰 선택</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">쿠폰명</th>
|
||||
<th>할인금액</th>
|
||||
<th>적용</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$dc = 0;
|
||||
if($row['cp_type']) {
|
||||
$dc = floor(($send_cost * ($row['cp_amount'] / 100)) / $row['cp_trunc']) * $row['cp_trunc'];
|
||||
} else {
|
||||
$dc = $row['cp_amount'];
|
||||
}
|
||||
|
||||
if($row['cp_maximum'] && $dc > $row['cp_maximum'])
|
||||
$dc = $row['cp_maximum'];
|
||||
if($row['cp_maximum'] && $dc > $row['cp_maximum'])
|
||||
$dc = $row['cp_maximum'];
|
||||
|
||||
if($dc > $send_cost)
|
||||
$dc = $send_cost;
|
||||
?>
|
||||
<li>
|
||||
if($dc > $send_cost)
|
||||
$dc = $send_cost;
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" name="s_cp_id[]" value="<?php echo $row['cp_id']; ?>">
|
||||
<input type="hidden" name="s_cp_amt[]" value="<?php echo $dc; ?>">
|
||||
<input type="hidden" name="s_cp_subj[]" value="<?php echo $row['cp_subject']; ?>">
|
||||
<span><?php echo get_text($row['cp_subject']); ?></span>
|
||||
<span><?php echo number_format($dc); ?></span>
|
||||
<span><button type="button" class="sc_cp_apply">적용</button></span>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<?php echo get_text($row['cp_subject']); ?>
|
||||
</td>
|
||||
<td><?php echo number_format($dc); ?></td>
|
||||
<td><button type="button" class="sc_cp_apply">적용</button></td>
|
||||
</tr>
|
||||
<?php
|
||||
} else {
|
||||
echo '사용할 수 있는 쿠폰이 없습니다.';
|
||||
}
|
||||
?>
|
||||
<div>
|
||||
<button type="button" id="sc_coupon_close">닫기</button>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php
|
||||
} else {
|
||||
echo '<p>사용할 수 있는 쿠폰이 없습니다.</p>';
|
||||
}
|
||||
?>
|
||||
<div class="btn_confirm">
|
||||
<button type="button" id="sc_coupon_close" class="btn_submit">닫기</button>
|
||||
<?php if($count > 0) { ?>
|
||||
<button type="button" id="sc_coupon_cancel">쿠폰적용취소</button>
|
||||
<button type="button" id="sc_coupon_cancel" class="btn_cancel">쿠폰적용취소</button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
@ -112,10 +112,10 @@ include_once(G4_LIB_PATH.'/popular.lib.php');
|
||||
<?php // include_once(G4_SHOP_PATH.'/boxwish.inc.php'); ?>
|
||||
|
||||
<!-- 왼쪽 배너 -->
|
||||
<section id="sbn_aside">
|
||||
<aside id="sbn_aside">
|
||||
<h2>쇼핑몰 배너</h2>
|
||||
<?php echo display_banner('왼쪽'); ?>
|
||||
</section>
|
||||
</aside>
|
||||
</div>
|
||||
|
||||
<div id="container">
|
||||
|
||||
4
skin/board/itemuse/_common.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?
|
||||
$g4_path = "../../.."; // common.php 의 상대 경로
|
||||
include_once("$g4_path/common.php");
|
||||
?>
|
||||
BIN
skin/board/itemuse/img/icon_file.gif
Normal file
|
After Width: | Height: | Size: 107 B |
BIN
skin/board/itemuse/img/icon_hot.gif
Normal file
|
After Width: | Height: | Size: 97 B |
BIN
skin/board/itemuse/img/icon_img.gif
Normal file
|
After Width: | Height: | Size: 145 B |
BIN
skin/board/itemuse/img/icon_link.gif
Normal file
|
After Width: | Height: | Size: 104 B |
BIN
skin/board/itemuse/img/icon_mobile.gif
Normal file
|
After Width: | Height: | Size: 62 B |
BIN
skin/board/itemuse/img/icon_movie.gif
Normal file
|
After Width: | Height: | Size: 110 B |
BIN
skin/board/itemuse/img/icon_new.gif
Normal file
|
After Width: | Height: | Size: 71 B |
BIN
skin/board/itemuse/img/icon_reply.gif
Normal file
|
After Width: | Height: | Size: 77 B |
BIN
skin/board/itemuse/img/icon_secret.gif
Normal file
|
After Width: | Height: | Size: 97 B |
BIN
skin/board/itemuse/img/icon_sound.gif
Normal file
|
After Width: | Height: | Size: 113 B |
242
skin/board/itemuse/list.skin.php
Normal file
@ -0,0 +1,242 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
|
||||
$colspan = 5;
|
||||
|
||||
if ($is_checkbox) $colspan++;
|
||||
if ($is_good) $colspan++;
|
||||
if ($is_nogood) $colspan++;
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo $board_skin_url ?>/style.css">
|
||||
|
||||
<?php if (!$wr_id) { ?><h1 id="bo_list_title"><?php echo $board['bo_subject'] ?></h1><?php } ?>
|
||||
|
||||
<!-- 게시판 목록 시작 -->
|
||||
<div id="bo_list" style="width:<?php echo $width; ?>">
|
||||
|
||||
<?php if ($is_category) { ?>
|
||||
<form name="fcategory" id="fcategory" method="get">
|
||||
<nav id="bo_cate">
|
||||
<h2><?php echo $board['bo_subject'] ?> 카테고리</h2>
|
||||
<ul id="bo_cate_ul">
|
||||
<?php echo $category_option ?>
|
||||
</ul>
|
||||
</nav>
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
<div class="bo_fx">
|
||||
<div id="bo_list_total">
|
||||
<span>Total <?php echo number_format($total_count) ?>건</span>
|
||||
<?php echo $page ?> 페이지
|
||||
</div>
|
||||
|
||||
<?php if ($rss_href || $write_href) { ?>
|
||||
<ul class="btn_bo_user">
|
||||
<?php if ($rss_href) { ?><li><a href="<?php echo $rss_href ?>" class="btn_b01">RSS</a></li><?php } ?>
|
||||
<?php if ($admin_href) { ?><li><a href="<?php echo $admin_href ?>" class="btn_admin">관리자</a></li><?php } ?>
|
||||
<?php if ($write_href) { ?><li><a href="<?php echo $write_href ?>" class="btn_b02">글쓰기</a></li><?php } ?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<form name="fboardlist" id="fboardlist" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);" method="post">
|
||||
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
||||
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
||||
<input type="hidden" name="stx" value="<?php echo $stx ?>">
|
||||
<input type="hidden" name="spt" value="<?php echo $spt ?>">
|
||||
<input type="hidden" name="page" value="<?php echo $page ?>">
|
||||
<input type="hidden" name="sw" value="">
|
||||
|
||||
<table class="basic_tbl">
|
||||
<caption><?php echo $board['bo_subject'] ?> 목록</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">번호</th>
|
||||
<?php if ($is_checkbox) { ?>
|
||||
<th scope="col">
|
||||
<label for="chkall" class="sound_only">현재 페이지 게시물 전체</label>
|
||||
<input type="checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);">
|
||||
</th>
|
||||
<?php } ?>
|
||||
<th scope="col">제목</th>
|
||||
<th scope="col">글쓴이</th>
|
||||
<th scope="col"><?php echo subject_sort_link('wr_datetime', $qstr2, 1) ?>날짜</a></th>
|
||||
<th scope="col"><?php echo subject_sort_link('wr_hit', $qstr2, 1) ?>조회</a></th>
|
||||
<?php if ($is_good) { ?><th scope="col"><?php echo subject_sort_link('wr_good', $qstr2, 1) ?>추천</a></th><?php } ?>
|
||||
<?php if ($is_nogood) { ?><th scope="col"><?php echo subject_sort_link('wr_nogood', $qstr2, 1) ?>비추천</a></th><?php } ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for ($i=0; $i<count($list); $i++) {
|
||||
?>
|
||||
<tr class="<?php if ($list[$i]['is_notice']) echo "bo_notice"; ?><?php if ($board[1]) echo "bo_sideview"; ?>">
|
||||
<td class="td_num">
|
||||
<?php
|
||||
if ($list[$i]['is_notice']) // 공지사항
|
||||
echo '<strong>공지</strong>';
|
||||
else if ($wr_id == $list[$i]['wr_id'])
|
||||
echo "<span class=\"bo_current\">열람중</span>";
|
||||
else
|
||||
echo $list[$i]['num'];
|
||||
?>
|
||||
</td>
|
||||
<?php if ($is_checkbox) { ?>
|
||||
<td class="td_chk">
|
||||
<label for="chk_wr_id_<?php echo $i ?>" class="sound_only"><?php echo $list[$i]['subject'] ?></label>
|
||||
<input type="checkbox" name="chk_wr_id[]" value="<?php echo $list[$i]['wr_id'] ?>" id="chk_wr_id_<?php echo $i ?>">
|
||||
</td>
|
||||
<?php } ?>
|
||||
<td class="td_subject">
|
||||
<?php
|
||||
echo $list[$i]['icon_reply'];
|
||||
if ($is_category && $list[$i]['ca_name']) {
|
||||
?>
|
||||
<a href="<?php echo $list[$i]['ca_name_href'] ?>" class="bo_cate_link"><?php echo $list[$i]['ca_name'] ?></a>
|
||||
<?php } ?>
|
||||
|
||||
<a href="<?php echo $list[$i]['href'] ?>">
|
||||
<?php echo $list[$i]['subject'] ?>
|
||||
<?php if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span><?php echo $list[$i]['comment_cnt']; ?><span class="sound_only">개</span><?php } ?>
|
||||
</a>
|
||||
|
||||
<?php
|
||||
// if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count']}.']'; }
|
||||
// if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
|
||||
|
||||
if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new'];
|
||||
if (isset($list[$i]['icon_hot'])) echo $list[$i]['icon_hot'];
|
||||
if (isset($list[$i]['icon_file'])) echo $list[$i]['icon_file'];
|
||||
if (isset($list[$i]['icon_link'])) echo $list[$i]['icon_link'];
|
||||
if (isset($list[$i]['icon_secret'])) echo $list[$i]['icon_secret'];
|
||||
|
||||
?>
|
||||
</td>
|
||||
<td class="td_name"><?php echo $list[$i]['name'] ?></td>
|
||||
<td class="td_date"><?php echo $list[$i]['datetime2'] ?></td>
|
||||
<td class="td_num"><?php echo $list[$i]['wr_hit'] ?></td>
|
||||
<?php if ($is_good) { ?><td class="td_num"><?php echo $list[$i]['wr_good'] ?></td><?php } ?>
|
||||
<?php if ($is_nogood) { ?><td class="td_num"><?php echo $list[$i]['wr_nogood'] ?></td><?php } ?>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if (count($list) == 0) { echo '<tr><td colspan="'.$colspan.'" class="empty_table">게시물이 없습니다.</td></tr>'; } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php if ($list_href || $is_checkbox || $write_href) { ?>
|
||||
<div class="bo_fx">
|
||||
<ul class="btn_bo_adm">
|
||||
<?php if ($list_href) { ?>
|
||||
<li><a href="<?php echo $list_href ?>" class="btn_b01"> 목록</a></li>
|
||||
<?php } ?>
|
||||
<?php if ($is_checkbox) { ?>
|
||||
<li><input type="submit" name="btn_submit" value="선택삭제" onclick="document.pressed=this.value"></li>
|
||||
<li><input type="submit" name="btn_submit" value="선택복사" onclick="document.pressed=this.value"></li>
|
||||
<li><input type="submit" name="btn_submit" value="선택이동" onclick="document.pressed=this.value"></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
|
||||
<ul class="btn_bo_user">
|
||||
<?php if ($write_href) { ?><li><a href="<?php echo $write_href ?>" class="btn_b02">글쓰기</a></li><?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<?php if($is_checkbox) { ?>
|
||||
<noscript>
|
||||
<p>자바스크립트를 사용하지 않는 경우<br>별도의 확인 절차 없이 바로 선택삭제 처리하므로 주의하시기 바랍니다.</p>
|
||||
</noscript>
|
||||
<?php } ?>
|
||||
|
||||
<!-- 페이지 -->
|
||||
<?php echo $write_pages; ?>
|
||||
|
||||
<fieldset id="bo_sch">
|
||||
<legend>게시물 검색</legend>
|
||||
|
||||
<form name="fsearch" method="get">
|
||||
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
||||
<input type="hidden" name="sca" value="<?php echo $sca ?>">
|
||||
<input type="hidden" name="sop" value="and">
|
||||
<label for="sfl" class="sound_only">검색대상</label>
|
||||
<select name="sfl" id="sfl">
|
||||
<option value="wr_subject"<?php echo get_selected($sfl, 'wr_subject', true); ?>>제목</option>
|
||||
<option value="wr_content"<?php echo get_selected($sfl, 'wr_content'); ?>>내용</option>
|
||||
<option value="wr_subject||wr_content"<?php echo get_selected($sfl, 'wr_subject||wr_content'); ?>>제목+내용</option>
|
||||
<option value="mb_id,1"<?php echo get_selected($sfl, 'mb_id,1'); ?>>회원아이디</option>
|
||||
<option value="mb_id,0"<?php echo get_selected($sfl, 'mb_id,0'); ?>>회원아이디(코)</option>
|
||||
<option value="wr_name,1"<?php echo get_selected($sfl, 'wr_name,1'); ?>>글쓴이</option>
|
||||
<option value="wr_name,0"<?php echo get_selected($sfl, 'wr_name,0'); ?>>글쓴이(코)</option>
|
||||
</select>
|
||||
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="stx" value="<?php echo stripslashes($stx) ?>" required class="frm_input required" size="15" maxlength="15">
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
</form>
|
||||
</fieldset>
|
||||
|
||||
<?php if ($is_checkbox) { ?>
|
||||
<script>
|
||||
function all_checked(sw) {
|
||||
var f = document.fboardlist;
|
||||
|
||||
for (var i=0; i<f.length; i++) {
|
||||
if (f.elements[i].name == "chk_wr_id[]")
|
||||
f.elements[i].checked = sw;
|
||||
}
|
||||
}
|
||||
|
||||
function fboardlist_submit(f) {
|
||||
var chk_count = 0;
|
||||
|
||||
for (var i=0; i<f.length; i++) {
|
||||
if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
|
||||
chk_count++;
|
||||
}
|
||||
|
||||
if (!chk_count) {
|
||||
alert(document.pressed + "할 게시물을 하나 이상 선택하세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(document.pressed == "선택복사") {
|
||||
select_copy("copy");
|
||||
return;
|
||||
}
|
||||
|
||||
if(document.pressed == "선택이동") {
|
||||
select_copy("move");
|
||||
return;
|
||||
}
|
||||
|
||||
if(document.pressed == "선택삭제") {
|
||||
if (!confirm("선택한 게시물을 정말 삭제하시겠습니까?\n\n한번 삭제한 자료는 복구할 수 없습니다"))
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// 선택한 게시물 복사 및 이동
|
||||
function select_copy(sw) {
|
||||
var f = document.fboardlist;
|
||||
|
||||
if (sw == "copy")
|
||||
str = "복사";
|
||||
else
|
||||
str = "이동";
|
||||
|
||||
var sub_win = window.open("", "move", "left=50, top=50, width=500, height=550, scrollbars=1");
|
||||
|
||||
f.sw.value = sw;
|
||||
f.target = "move";
|
||||
f.action = "./move.php";
|
||||
f.submit();
|
||||
}
|
||||
</script>
|
||||
<?php } ?>
|
||||
<!-- 게시판 목록 끝 -->
|
||||
139
skin/board/itemuse/style.css
Normal file
@ -0,0 +1,139 @@
|
||||
/* 게시판 쓰기 */
|
||||
|
||||
/* 게시판 목록 */
|
||||
#bo_list_title {margin-bottom:20px;font-size:1.2em;letter-spacing:-0.1em}
|
||||
|
||||
#bo_cate h2 {position:absolute;;font-size:0;line-height:0;overflow:hidden}
|
||||
#bo_cate ul {margin-bottom:10px;padding-left:1px;width:728px;zoom:1}
|
||||
#bo_cate ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_cate li {float:left;margin-bottom:-1px}
|
||||
#bo_cate a {display:block;position:relative;margin-left:-1px;padding:6px 0 5px;width:90px;border:1px solid #ddd;background:#f7f7f7;color:#888;text-align:center;letter-spacing:-0.1em;line-height:1.2em;cursor:pointer}
|
||||
#bo_cate a:focus, #bo_cate a:hover, #bo_cate a:active {text-decoration:none}
|
||||
#bo_cate #bo_cate_on {z-index:2;border:1px solid #565e60;background:#fff;color:#565e60;font-weight:bold}
|
||||
|
||||
.td_subject img {margin-left:3px}
|
||||
|
||||
/* 게시판 목록 공통 */
|
||||
.bo_fx {margin-bottom:5px;zoom:1}
|
||||
.bo_fx:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.bo_fx ul {margin:0;padding:0;list-style:none}
|
||||
#bo_list_total {float:left;padding-top:5px}
|
||||
.btn_bo_user {float:right;margin:0;padding:0;list-style:none}
|
||||
.btn_bo_user li {float:left;margin-left:5px}
|
||||
.btn_bo_adm {float:left}
|
||||
.btn_bo_adm li {float:left;margin-right:5px}
|
||||
.btn_bo_adm input {padding:0 10px;height:25px;border:1px solid #e8180c !important;background:#e8180c;color:#fff;text-decoration:none;vertical-align:middle;cursor:pointer}
|
||||
.bo_notice td {background:#f5f6fa}
|
||||
.bo_notice td a {font-weight:bold}
|
||||
.td_num strong {color:#000}
|
||||
.bo_cate_link {display:inline-block;margin:0 3px 0 0;padding:0 6px 0 0;border-right:1px solid #e7f1ed;color:#999 !important;font-weight:bold;text-decoration:none} /* 글제목줄 분류스타일 */
|
||||
.bo_current {color:#e8180c}
|
||||
.cnt_cmt {font-weight:bold}
|
||||
|
||||
#bo_sch {margin-bottom:10px;padding-top:5px;text-align:center}
|
||||
#bo_sch legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden}
|
||||
|
||||
/* 게시판 읽기 */
|
||||
#bo_v {margin-bottom:20px;padding-bottom:20px}
|
||||
|
||||
#bo_v_table {position:absolute;top:0;right:15px;margin:0;padding:0 5px;height:25px;background:#565e60;color:#fff;font-weight:bold;line-height:2.2em}
|
||||
|
||||
#bo_v_title {padding:10px 0;font-size:1.2em}
|
||||
|
||||
#bo_v_info {padding:0 0 10px;border-bottom:1px solid #ddd}
|
||||
#bo_v_info h2 {margin:0;padding:0;height:0;overflow:hidden}
|
||||
#bo_v_info strong {display:inline-block;margin:0 15px 0 5px;font-weight:normal}
|
||||
#bo_v_info .sv_member,
|
||||
#bo_v_info .sv_guest,
|
||||
#bo_v_info .member,
|
||||
#bo_v_info .guest {font-weight:bold}
|
||||
|
||||
#bo_v_file {}
|
||||
#bo_v_file h2 {margin:0;padding:0;height:0;overflow:hidden}
|
||||
#bo_v_file ul {margin:0;padding:0;list-style:none}
|
||||
#bo_v_file li {padding:0 10px;border-bottom:1px solid #eee;background:#f5f6fa}
|
||||
#bo_v_file a {display:inline-block;padding:8px 0 7px;width:100%;color:#000;word-wrap:break-word}
|
||||
#bo_v_file a:focus, #bo_v_file a:hover, #bo_v_file a:active {text-decoration:none}
|
||||
#bo_v_file img {float:left;margin:0 10px 0 0}
|
||||
.bo_v_file_cnt {display:inline-block;margin:0 0 3px 22px}
|
||||
|
||||
#bo_v_link {}
|
||||
#bo_v_link h2 {margin:0;padding:0;height:0;overflow:hidden}
|
||||
#bo_v_link ul {margin:0;padding:0;list-style:none}
|
||||
#bo_v_link li {padding:0 10px;border-bottom:1px solid #eee;background:#f5f6fa}
|
||||
#bo_v_link a {display:inline-block;padding:8px 0 7px;width:100%;color:#000;word-wrap:break-word}
|
||||
#bo_v_link a:focus, #bo_v_link a:hover, #bo_v_link a:active {text-decoration:none}
|
||||
.bo_v_link_cnt {display:inline-block;margin:0 0 3px 22px}
|
||||
|
||||
#bo_v_top {margin:0 0 10px;padding:10px 0;zoom:1}
|
||||
#bo_v_top:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_v_top h2 {margin:0;padding:0;height:0;overflow:hidden}
|
||||
#bo_v_top ul {margin:0;padding:0;list-style:none}
|
||||
|
||||
#bo_v_bot {zoom:1}
|
||||
#bo_v_bot:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_v_bot h2 {margin:0;padding:0;height:0;overflow:hidden}
|
||||
#bo_v_bot ul {margin:0;padding:0;list-style:none}
|
||||
|
||||
.bo_v_nb {float:left}
|
||||
.bo_v_nb li {float:left;margin-right:5px}
|
||||
.bo_v_com {float:right}
|
||||
.bo_v_com li {float:left;margin-left:5px}
|
||||
|
||||
#bo_v_atc {min-height:200px;height:auto !important;height:200px}
|
||||
#bo_v_atc_title {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
|
||||
#bo_v_img {margin:0 0 10px;width:100%;overflow:hidden:zoom:1}
|
||||
#bo_v_img:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_v_img img {margin-bottom:20px;max-width:100%;height:auto}
|
||||
|
||||
#bo_v_con {margin-bottom:30px;width:100%;line-height:1.7em;word-break:break-all;overflow:hidden}
|
||||
#bo_v_con a {color:#000;text-decoration:underline}
|
||||
#bo_v_con img {max-width:100%;height:auto}
|
||||
|
||||
#bo_v_act {margin-bottom:30px;text-align:center}
|
||||
#bo_v_act a {margin-right:5px;vertical-align:top}
|
||||
#bo_v_act span {display:inline-block;margin-right:5px;padding:0 10px;height:23px;border:1px solid #ccc !important;background:#fafafa !important;color:#000 !important;text-decoration:none !important;line-height:2.15em;vertical-align:top}
|
||||
#bo_v_act strong {color:#ff3061}
|
||||
#bo_v_act_good,
|
||||
#bo_v_act_nogood {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
|
||||
#bo_v_sns {margin:0 0 20px;padding:0;list-style:none;zoom:1}
|
||||
#bo_v_sns:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_v_sns li {float:left;margin:0 5px 0 0}
|
||||
|
||||
#bo_v form {padding-top:20px}
|
||||
|
||||
/* 게시판 댓글 */
|
||||
#bo_vc {padding:20px 20px 10px;border-top:1px solid #cfded8;border-bottom:1px solid #cfded8;background:#f5f6fa}
|
||||
#bo_vc h2 {margin-bottom:10px}
|
||||
#bo_vc article {padding:0 0 10px;border-top:1px dotted #ccc}
|
||||
#bo_vc header {position:relative;padding:15px 0 5px}
|
||||
#bo_vc header .icon_reply {position:absolute;top:15px;left:-20px}
|
||||
#bo_vc .sv_wrap {margin-right:15px}
|
||||
#bo_vc .member, #bo_vc .guest, #bo_vc .sv_member, #bo_vc .sv_guest {font-weight:bold}
|
||||
.bo_vc_hdinfo {display:inline-block;margin:0 15px 0 5px}
|
||||
#bo_vc h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
#bo_vc a {color:#000;text-decoration:none}
|
||||
#bo_vc p {padding:0 0 5px;line-height:1.8em}
|
||||
#bo_vc p a {text-decoration:underline}
|
||||
#bo_vc_empty {margin:0;padding:20px !important;text-align:center}
|
||||
#bo_vc fieldset {margin:0 0 10px;padding:0}
|
||||
#bo_vc #bo_vc_winfo {float:left}
|
||||
#bo_vc footer {zoom:1}
|
||||
#bo_vc footer:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
|
||||
.bo_vc_act {float:right;margin:0;list-style:none;zoom:1}
|
||||
.bo_vc_act:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.bo_vc_act li {float:left;margin-left:5px}
|
||||
|
||||
#bo_vc_w {position:relative;margin:0 0 10px;padding:0 0 20px;border-bottom:1px solid #cfded8}
|
||||
#bo_vc_w h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
#bo_vc_w #char_cnt {display:block;margin:0 0 5px}
|
||||
|
||||
#bo_vc_sns {margin:0;padding:0;list-style:none;zoom:1}
|
||||
#bo_vc_sns:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_vc_sns li {float:left;margin:0 20px 0 0}
|
||||
#bo_vc_sns input {margin:0 0 0 5px}
|
||||
|
||||
#bo_vc form {padding:0}
|
||||
324
skin/board/itemuse/view.skin.php
Normal file
@ -0,0 +1,324 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo $board_skin_url ?>/style.css">
|
||||
|
||||
<div id="bo_v_table"><?php echo $board['bo_subject']; ?></div>
|
||||
|
||||
<article id="bo_v" style="width:<?php echo $width; ?>">
|
||||
<header>
|
||||
<h1 id="bo_v_title">
|
||||
<?php
|
||||
if ($category_name) echo ($category_name ? $view['ca_name'].' | ' : ''); // 분류 출력 끝
|
||||
echo cut_str(get_text($view['wr_subject']), 70); // 글제목 출력
|
||||
?>
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<section id="bo_v_info">
|
||||
<h2>페이지 정보</h2>
|
||||
작성자 <strong><?php echo $view['name'] ?><?php if ($is_ip_view) { echo " ($ip)"; } ?></strong>
|
||||
<span class="sound_only">작성일</span><strong><?php echo date("y-m-d H:i", strtotime($view['wr_datetime'])) ?></strong>
|
||||
조회<strong><?php echo number_format($view['wr_hit']) ?>회</strong>
|
||||
댓글<strong><?php echo number_format($view['wr_comment']) ?>건</strong>
|
||||
</section>
|
||||
|
||||
<?php
|
||||
if ($view['file']['count']) {
|
||||
$cnt = 0;
|
||||
for ($i=0; $i<count($view['file']); $i++) {
|
||||
if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view'])
|
||||
$cnt++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if($cnt) { ?>
|
||||
<section id="bo_v_file">
|
||||
<h2>첨부파일</h2>
|
||||
<ul>
|
||||
<?php
|
||||
// 가변 파일
|
||||
for ($i=0; $i<count($view['file']); $i++) {
|
||||
if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view']) {
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $view['file'][$i]['href']; ?>" class="view_file_download">
|
||||
<img src="<?php echo $board_skin_url ?>/img/icon_file.gif" alt="첨부">
|
||||
<strong><?php echo $view['file'][$i]['source'] ?></strong>
|
||||
<?php echo $view['file'][$i]['bf_content'] ?> (<?php echo $view['file'][$i]['size'] ?>)
|
||||
</a>
|
||||
<span class="bo_v_file_cnt"><?php echo $view['file'][$i]['download'] ?>회 다운로드</span>
|
||||
<span>DATE : <?php echo $view['file'][$i]['datetime'] ?></span>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</section>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
if (implode('', $view['link'])) {
|
||||
?>
|
||||
<section id="bo_v_link">
|
||||
<h2>관련링크</h2>
|
||||
<ul>
|
||||
<?php
|
||||
// 링크
|
||||
$cnt = 0;
|
||||
for ($i=1; $i<=count($view['link']); $i++) {
|
||||
if ($view['link'][$i]) {
|
||||
$cnt++;
|
||||
$link = cut_str($view['link'][$i], 70);
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $view['link_href'][$i] ?>" target="_blank">
|
||||
<img src="<?php echo $board_skin_url ?>/img/icon_link.gif" alt="관련링크">
|
||||
<strong><?php echo $link ?></strong>
|
||||
</a>
|
||||
<span class="bo_v_link_cnt"><?php echo $view['link_hit'][$i] ?>회 연결</span>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</section>
|
||||
<?php } ?>
|
||||
|
||||
<div id="bo_v_top">
|
||||
<?php
|
||||
ob_start();
|
||||
?>
|
||||
<?php if ($prev_href || $next_href) { ?>
|
||||
<ul class="bo_v_nb">
|
||||
<?php if ($prev_href) { ?><li><a href="<?php echo $prev_href ?>" class="btn_b01">이전글</a></li><?php } ?>
|
||||
<?php if ($next_href) { ?><li><a href="<?php echo $next_href ?>" class="btn_b01">다음글</a></li><?php } ?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
|
||||
<ul class="bo_v_com">
|
||||
<?php if ($update_href) { ?><li><a href="<?php echo $update_href ?>" class="btn_b01">수정</a></li><?php } ?>
|
||||
<?php if ($delete_href) { ?><li><a href="<?php echo $delete_href ?>" class="btn_b01" onclick="del(this.href); return false;">삭제</a></li><?php } ?>
|
||||
<?php if ($copy_href) { ?><li><a href="<?php echo $copy_href ?>" class="btn_admin" onclick="board_move(this.href); return false;">복사</a></li><?php } ?>
|
||||
<?php if ($move_href) { ?><li><a href="<?php echo $move_href ?>" class="btn_admin" onclick="board_move(this.href); return false;">이동</a></li><?php } ?>
|
||||
<?php if ($search_href) { ?><li><a href="<?php echo $search_href ?>" class="btn_b01">검색</a></li><?php } ?>
|
||||
<li><a href="<?php echo $list_href ?>" class="btn_b01">목록</a></li>
|
||||
<?php if ($reply_href) { ?><li><a href="<?php echo $reply_href ?>" class="btn_b01">답변</a></li><?php } ?>
|
||||
<?php if ($write_href) { ?><li><a href="<?php echo $write_href ?>" class="btn_b02">글쓰기</a></li><?php } ?>
|
||||
</ul>
|
||||
<?php
|
||||
$link_buttons = ob_get_contents();
|
||||
ob_end_flush();
|
||||
?>
|
||||
</div>
|
||||
|
||||
<section id="bo_v_atc">
|
||||
<h2 id="bo_v_atc_title">본문</h2>
|
||||
|
||||
<?php
|
||||
// 파일 출력
|
||||
$v_img_count = count($view['file']);
|
||||
if($v_img_count) {
|
||||
echo "<div id=\"bo_v_img\">\n";
|
||||
|
||||
for ($i=0; $i<=count($view['file']); $i++) {
|
||||
if ($view['file'][$i]['view']) {
|
||||
//echo $view['file'][$i]['view'];
|
||||
echo get_view_thumbnail($view['file'][$i]['view']);
|
||||
}
|
||||
}
|
||||
|
||||
echo "</div>\n";
|
||||
}
|
||||
?>
|
||||
|
||||
<div id="bo_v_con"><?php echo get_view_thumbnail($view['content']); ?></div>
|
||||
<?php//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우 ?>
|
||||
|
||||
<?php if ($is_signature) { ?><p><?php echo $signature ?></p><?php } ?>
|
||||
|
||||
<?php if ($scrap_href || $good_href || $nogood_href) { ?>
|
||||
<div id="bo_v_act">
|
||||
<?php if ($scrap_href) { ?><a href="<?php echo $scrap_href; ?>" target="_blank" class="btn_b01" onclick="win_scrap(this.href); return false;">스크랩</a><?php } ?>
|
||||
<?php if ($good_href) { ?>
|
||||
<a href="<?php echo $good_href.'&'.$qstr ?>" id="good_button" class="btn_b01">추천 <strong><?php echo number_format($view['wr_good']) ?></strong></a>
|
||||
<b id="bo_v_act_good"></b>
|
||||
<?php } ?>
|
||||
<?php if ($nogood_href) { ?>
|
||||
<a href="<?php echo $nogood_href.'&'.$qstr ?>" id="nogood_button" class="btn_b01">비추천 <strong><?php echo number_format($view['wr_nogood']) ?></strong></a>
|
||||
<b id="bo_v_act_nogood"></b>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } else {
|
||||
if($board['bo_use_good'] || $board['bo_use_nogood']) {
|
||||
?>
|
||||
<div id="bo_v_act">
|
||||
<?php if($board['bo_use_good']) { ?><span>추천 <strong><?php echo number_format($view['wr_good']) ?></strong></span><?php } ?>
|
||||
<?php if($board['bo_use_nogood']) { ?><span>비추천 <strong><?php echo number_format($view['wr_nogood']) ?></strong></span><?php } ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</section>
|
||||
|
||||
<?php
|
||||
include(G4_SNS_PATH."/view.sns.skin.php");
|
||||
?>
|
||||
|
||||
<?php
|
||||
// 코멘트 입출력
|
||||
include_once('./view_comment.php');
|
||||
?>
|
||||
|
||||
<div id="bo_v_bot">
|
||||
<!-- 링크 버튼 -->
|
||||
<?php echo $link_buttons ?>
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
<script>
|
||||
<?php if ($board['bo_download_point'] < 0) { ?>
|
||||
$(function() {
|
||||
$("a.view_file_download").click(function() {
|
||||
var msg = "파일을 다운로드 하시면 포인트가 차감(<?php echo number_format($board['bo_download_point']) ?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?";
|
||||
|
||||
if(confirm(msg)) {
|
||||
var href = $(this).attr("href")+"&js=on";
|
||||
$(this).attr("href", href);
|
||||
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
function board_move(href)
|
||||
{
|
||||
window.open(href, "boardmove", "left=50, top=50, width=500, height=550, scrollbars=1");
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- 게시글 보기 끝 -->
|
||||
|
||||
<script>
|
||||
// 이미지 등비율 리사이징
|
||||
$(window).load(function() {
|
||||
view_image_resize();
|
||||
});
|
||||
|
||||
var now = new Date();
|
||||
var timeout = false;
|
||||
var millisec = 200;
|
||||
var tid;
|
||||
|
||||
$(window).resize(function() {
|
||||
now = new Date();
|
||||
if (timeout === false) {
|
||||
timeout = true;
|
||||
|
||||
if(tid != null)
|
||||
clearTimeout(tid);
|
||||
|
||||
tid = setTimeout(resize_check, millisec);
|
||||
}
|
||||
});
|
||||
|
||||
function resize_check() {
|
||||
if (new Date() - now < millisec) {
|
||||
if(tid != null)
|
||||
clearTimeout(tid);
|
||||
|
||||
tid = setTimeout(resize_check, millisec);
|
||||
} else {
|
||||
timeout = false;
|
||||
view_image_resize();
|
||||
}
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$("a.view_image").click(function() {
|
||||
window.open(this.href, "large_image", "location=yes,links=no,toolbar=no,top=10,left=10,width=10,height=10,resizable=yes,scrollbars=no,status=no");
|
||||
return false;
|
||||
});
|
||||
|
||||
// 추천, 비추천
|
||||
$("#good_button, #nogood_button").click(function() {
|
||||
var $tx;
|
||||
if(this.id == "good_button")
|
||||
$tx = $("#bo_v_act_good");
|
||||
else
|
||||
$tx = $("#bo_v_act_nogood");
|
||||
|
||||
excute_good(this.href, $(this), $tx);
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
||||
function view_image_resize()
|
||||
{
|
||||
var $img = $("#bo_v_atc img");
|
||||
var img_wrap = $("#bo_v_atc").width();
|
||||
var win_width = $(window).width() - 35;
|
||||
var res_width = 0;
|
||||
|
||||
if(img_wrap < win_width)
|
||||
res_width = img_wrap;
|
||||
else
|
||||
res_width = win_width;
|
||||
|
||||
$img.each(function() {
|
||||
var img_width = $(this).width();
|
||||
var img_height = $(this).height();
|
||||
var this_width = $(this).data("width");
|
||||
var this_height = $(this).data("height");
|
||||
|
||||
if(this_width == undefined) {
|
||||
$(this).data("width", img_width); // 원래 이미지 사이즈
|
||||
$(this).data("height", img_height);
|
||||
this_width = img_width;
|
||||
this_height = img_height;
|
||||
}
|
||||
|
||||
if(this_width > res_width) {
|
||||
$(this).width(res_width);
|
||||
var res_height = Math.round(res_width * $(this).data("height") / $(this).data("width"));
|
||||
$(this).height(res_height);
|
||||
} else {
|
||||
$(this).width(this_width);
|
||||
$(this).height(this_height);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function excute_good(href, $el, $tx)
|
||||
{
|
||||
$.post(
|
||||
href,
|
||||
{ js: "on" },
|
||||
function(data) {
|
||||
if(data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
}
|
||||
|
||||
if(data.count) {
|
||||
$el.find("strong").text(number_format(String(data.count)));
|
||||
if($tx.attr("id").search("nogood") > -1) {
|
||||
$tx.text("이 글을 비추천하셨습니다.");
|
||||
} else {
|
||||
$tx.text("이 글을 추천하셨습니다.");
|
||||
}
|
||||
}
|
||||
}, "json"
|
||||
);
|
||||
}
|
||||
</script>
|
||||
301
skin/board/itemuse/view_comment.skin.php
Normal file
@ -0,0 +1,301 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<script>
|
||||
// 글자수 제한
|
||||
var char_min = parseInt(<?php echo $comment_min ?>); // 최소
|
||||
var char_max = parseInt(<?php echo $comment_max ?>); // 최대
|
||||
</script>
|
||||
|
||||
<!-- 댓글 리스트 -->
|
||||
<section id="bo_vc">
|
||||
<h2>댓글목록</h2>
|
||||
<?php
|
||||
for ($i=0; $i<count($list); $i++) {
|
||||
$comment_id = $list[$i]['wr_id'];
|
||||
$cmt_depth = ""; // 댓글단계
|
||||
$cmt_depth = strlen($list[$i]['wr_comment_reply']) * 20;
|
||||
$comment = $list[$i]['content'];
|
||||
/*
|
||||
if (strstr($list[$i]['wr_option'], "secret")) {
|
||||
$str = $str;
|
||||
}
|
||||
*/
|
||||
$comment = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp|mms)\:\/\/([^[:space:]]+)\.(mp3|wma|wmv|asf|asx|mpg|mpeg)\".*\<\/a\>\]/i", "<script>doc_write(obj_movie('$1://$2.$3'));</script>", $comment);
|
||||
?>
|
||||
|
||||
<article id="c_<?php echo $comment_id ?>" <?php if ($cmt_depth) { ?>style="margin-left:<?php echo $cmt_depth ?>px;border-top-color:#e0e0e0"<?php } ?>>
|
||||
<header>
|
||||
<h1><?php echo $list[$i]['wr_name'] ?>님의 댓글</h1>
|
||||
<?php echo $list[$i]['name'] ?>
|
||||
<?php if ($cmt_depth) { ?><img src="<?php echo $board_skin_url ?>/img/icon_reply.gif" class="icon_reply" alt="댓글의 댓글"><?php } ?>
|
||||
<?php if ($is_ip_view) { ?>
|
||||
아이피
|
||||
<span class="bo_vc_hdinfo"><?php echo $list[$i]['ip']; ?></span>
|
||||
<?php } ?>
|
||||
작성일
|
||||
<span class="bo_vc_hdinfo"><time datetime="<?php echo date('Y-m-d\TH:i:s+09:00', strtotime($list[$i]['datetime'])) ?>"><?php echo $list[$i]['datetime'] ?></time></span>
|
||||
<?php
|
||||
include(G4_SNS_PATH.'/view_comment_list.sns.skin.php');
|
||||
?>
|
||||
</header>
|
||||
|
||||
<!-- 댓글 출력 -->
|
||||
<p>
|
||||
<?php if (strstr($list[$i]['wr_option'], "secret")) { ?><img src="<?php echo $board_skin_url; ?>/img/icon_secret.gif" alt="비밀글"><?php } ?>
|
||||
<?php echo $comment ?>
|
||||
</p>
|
||||
|
||||
<span id="edit_<?php echo $comment_id ?>"></span><!-- 수정 -->
|
||||
<span id="reply_<?php echo $comment_id ?>"></span><!-- 답변 -->
|
||||
|
||||
<input type="hidden" value="<?php echo strstr($list[$i]['wr_option'],"secret") ?>" id="secret_comment_<?php echo $comment_id ?>">
|
||||
<textarea id="save_comment_<?php echo $comment_id ?>" style="display:none"><?php echo get_text($list[$i]['content1'], 0) ?></textarea>
|
||||
|
||||
<?php if($list[$i]['is_reply'] || $list[$i]['is_edit'] || $list[$i]['is_del']) {
|
||||
$query_string = str_replace("&", "&", $_SERVER['QUERY_STRING']);
|
||||
|
||||
if($w == 'cu') {
|
||||
$sql = " select wr_id, wr_content from $write_table where wr_id = '$c_id' and wr_is_comment = '1' ";
|
||||
$cmt = sql_fetch($sql);
|
||||
$c_wr_content = $cmt['wr_content'];
|
||||
}
|
||||
|
||||
$c_reply_href = './board.php?'.$query_string.'&c_id='.$comment_id.'&w=c#bo_vc_w';
|
||||
$c_edit_href = './board.php?'.$query_string.'&c_id='.$comment_id.'&w=cu#bo_vc_w';
|
||||
?>
|
||||
<footer>
|
||||
<ul class="bo_vc_act">
|
||||
<?php if ($list[$i]['is_reply']) { ?><li><a href="<?php echo $c_reply_href; ?>" onclick="comment_box('<?php echo $comment_id ?>', 'c'); return false;">답변</a></li><?php } ?>
|
||||
<?php if ($list[$i]['is_edit']) { ?><li><a href="<?php echo $c_edit_href; ?>" onclick="comment_box('<?php echo $comment_id ?>', 'cu'); return false;">수정</a></li><?php } ?>
|
||||
<?php if ($list[$i]['is_del']) { ?><li><a href="<?php echo $list[$i]['del_link']; ?>" onclick="return comment_delete();">삭제</a></li><?php } ?>
|
||||
</ul>
|
||||
</footer>
|
||||
<?php } ?>
|
||||
</article>
|
||||
<?php } ?>
|
||||
<?php if ($i == 0) { //댓글이 없다면 ?><p id="bo_vc_empty">등록된 댓글이 없습니다.</p><?php } ?>
|
||||
|
||||
</section>
|
||||
|
||||
<?php if ($is_comment_write) {
|
||||
if($w == '')
|
||||
$w = 'c';
|
||||
?>
|
||||
<aside id="bo_vc_w">
|
||||
<h2>댓글쓰기</h2>
|
||||
<form name="fviewcomment" action="./write_comment_update.php" onsubmit="return fviewcomment_submit(this);" method="post" autocomplete="off">
|
||||
<input type="hidden" name="w" value="<?php echo $w ?>" id="w">
|
||||
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
||||
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
|
||||
<input type="hidden" name="comment_id" value="<?php echo $c_id ?>" id="comment_id">
|
||||
<input type="hidden" name="sca" value="<?php echo $sca ?>">
|
||||
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
||||
<input type="hidden" name="stx" value="<?php echo $stx ?>">
|
||||
<input type="hidden" name="spt" value="<?php echo $spt ?>">
|
||||
<input type="hidden" name="page" value="<?php echo $page ?>">
|
||||
<input type="hidden" name="is_good" value="">
|
||||
|
||||
<table class="frm_tbl">
|
||||
<tbody>
|
||||
<?php if ($is_guest) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_name">이름<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="text" name="wr_name" id="wr_name" required class="frm_input required" size="5" maxLength="20" value="<?php echo get_cookie("ck_sns_name"); ?>"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_password">패스워드<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="password" name="wr_password" id="wr_password" required class="frm_input required" size="10" maxLength="20"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_secret">비밀글사용</label></th>
|
||||
<td><input type="checkbox" name="wr_secret" value="secret" id="wr_secret"></td>
|
||||
</tr>
|
||||
<?php if ($is_guest) { ?>
|
||||
<tr>
|
||||
<th scope="row">자동등록방지</th>
|
||||
<td><?php echo $captcha_html; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php
|
||||
include(G4_SNS_PATH."/view_comment_write.sns.skin.php");
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">내용</th>
|
||||
<td>
|
||||
<?php if ($comment_min || $comment_max) { ?><strong id="char_cnt"><span id="char_count"></span>글자</strong><?php } ?>
|
||||
<textarea id="wr_content" name="wr_content" maxlength="10000" required class="required" title="내용"
|
||||
<?php if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?php } ?>><?php echo $c_wr_content; ?></textarea>
|
||||
<?php if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?php } ?>
|
||||
<script>
|
||||
$("textarea#wr_content[maxlength]").live("keyup change", function() {
|
||||
var str = $(this).val()
|
||||
var mx = parseInt($(this).attr("maxlength"))
|
||||
if (str.length > mx) {
|
||||
$(this).val(str.substr(0, mx));
|
||||
return false;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" id="btn_submit" class="btn_submit" value="댓글등록">
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</aside>
|
||||
|
||||
<script>
|
||||
var save_before = '';
|
||||
var save_html = document.getElementById('bo_vc_w').innerHTML;
|
||||
|
||||
function good_and_write()
|
||||
{
|
||||
var f = document.fviewcomment;
|
||||
if (fviewcomment_submit(f)) {
|
||||
f.is_good.value = 1;
|
||||
f.submit();
|
||||
} else {
|
||||
f.is_good.value = 0;
|
||||
}
|
||||
}
|
||||
|
||||
function fviewcomment_submit(f)
|
||||
{
|
||||
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
|
||||
|
||||
f.is_good.value = 0;
|
||||
|
||||
var subject = "";
|
||||
var content = "";
|
||||
$.ajax({
|
||||
url: g4_bbs_url+"/ajax.filter.php",
|
||||
type: "POST",
|
||||
data: {
|
||||
"subject": "",
|
||||
"content": f.wr_content.value
|
||||
},
|
||||
dataType: "json",
|
||||
async: false,
|
||||
cache: false,
|
||||
success: function(data, textStatus) {
|
||||
subject = data.subject;
|
||||
content = data.content;
|
||||
}
|
||||
});
|
||||
|
||||
if (content) {
|
||||
alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
|
||||
f.wr_content.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
// 양쪽 공백 없애기
|
||||
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
|
||||
document.getElementById('wr_content').value = document.getElementById('wr_content').value.replace(pattern, "");
|
||||
if (char_min > 0 || char_max > 0)
|
||||
{
|
||||
check_byte('wr_content', 'char_count');
|
||||
var cnt = parseInt(document.getElementById('char_count').innerHTML);
|
||||
if (char_min > 0 && char_min > cnt)
|
||||
{
|
||||
alert("댓글은 "+char_min+"글자 이상 쓰셔야 합니다.");
|
||||
return false;
|
||||
} else if (char_max > 0 && char_max < cnt)
|
||||
{
|
||||
alert("댓글은 "+char_max+"글자 이하로 쓰셔야 합니다.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (!document.getElementById('wr_content').value)
|
||||
{
|
||||
alert("댓글을 입력하여 주십시오.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (typeof(f.wr_name) != 'undefined')
|
||||
{
|
||||
f.wr_name.value = f.wr_name.value.replace(pattern, "");
|
||||
if (f.wr_name.value == '')
|
||||
{
|
||||
alert('이름이 입력되지 않았습니다.');
|
||||
f.wr_name.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof(f.wr_password) != 'undefined')
|
||||
{
|
||||
f.wr_password.value = f.wr_password.value.replace(pattern, "");
|
||||
if (f.wr_password.value == '')
|
||||
{
|
||||
alert('패스워드가 입력되지 않았습니다.');
|
||||
f.wr_password.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
<?php if($is_guest) echo chk_captcha_js(); ?>
|
||||
|
||||
document.getElementById("btn_submit").disabled = "disabled";
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function comment_box(comment_id, work)
|
||||
{
|
||||
var el_id;
|
||||
// 댓글 아이디가 넘어오면 답변, 수정
|
||||
if (comment_id)
|
||||
{
|
||||
if (work == 'c')
|
||||
el_id = 'reply_' + comment_id;
|
||||
else
|
||||
el_id = 'edit_' + comment_id;
|
||||
}
|
||||
else
|
||||
el_id = 'bo_vc_w';
|
||||
|
||||
if (save_before != el_id)
|
||||
{
|
||||
if (save_before)
|
||||
{
|
||||
document.getElementById(save_before).style.display = 'none';
|
||||
document.getElementById(save_before).innerHTML = '';
|
||||
}
|
||||
|
||||
document.getElementById(el_id).style.display = '';
|
||||
document.getElementById(el_id).innerHTML = save_html;
|
||||
// 댓글 수정
|
||||
if (work == 'cu')
|
||||
{
|
||||
document.getElementById('wr_content').value = document.getElementById('save_comment_' + comment_id).value;
|
||||
if (typeof char_count != 'undefined')
|
||||
check_byte('wr_content', 'char_count');
|
||||
if (document.getElementById('secret_comment_'+comment_id).value)
|
||||
document.getElementById('wr_secret').checked = true;
|
||||
else
|
||||
document.getElementById('wr_secret').checked = false;
|
||||
}
|
||||
|
||||
document.getElementById('comment_id').value = comment_id;
|
||||
document.getElementById('w').value = work;
|
||||
|
||||
save_before = el_id;
|
||||
}
|
||||
}
|
||||
|
||||
function comment_delete()
|
||||
{
|
||||
return confirm("이 댓글을 삭제하시겠습니까?");
|
||||
}
|
||||
|
||||
comment_box('', 'c'); // 댓글 입력폼이 보이도록 처리하기위해서 추가 (root님)
|
||||
</script>
|
||||
<?php } ?>
|
||||
226
skin/board/itemuse/write.skin.php
Normal file
@ -0,0 +1,226 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 상품코드
|
||||
if (!$wr_1) {
|
||||
alert("wr_1 에 상품코드를 넘겨주세요.");
|
||||
}
|
||||
|
||||
// 상품명
|
||||
if (!$wr_2) {
|
||||
$sql = " select it_name from {$g4['shop_item_table']} where it_id = '$wr_1' ";
|
||||
$row = sql_fetch($sql);
|
||||
$wr_2 = $row['it_name'];
|
||||
}
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo $board_skin_url ?>/style.css">
|
||||
|
||||
<h1 id="wrapper_title"><?php echo $g4['title'] ?></h1>
|
||||
|
||||
<form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off" style="width:<?php echo $width; ?>">
|
||||
<input type="hidden" name="w" value="<?php echo $w ?>">
|
||||
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
||||
<input type="hidden" name="wr_id" value="<?php echo $wr_id ?>">
|
||||
<input type="hidden" name="sca" value="<?php echo $sca ?>">
|
||||
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
|
||||
<input type="hidden" name="stx" value="<?php echo $stx ?>">
|
||||
<input type="hidden" name="spt" value="<?php echo $spt ?>">
|
||||
<input type="hidden" name="sst" value="<?php echo $sst ?>">
|
||||
<input type="hidden" name="sod" value="<?php echo $sod ?>">
|
||||
<input type="hidden" name="page" value="<?php echo $page ?>">
|
||||
<input type="hidden" name="wr_1" value="<?php echo $wr_1; ?>">
|
||||
<input type="hidden" name="wr_2" value="<?php echo $wr_2; ?>">
|
||||
<?php
|
||||
$option = '';
|
||||
$option_hidden = '';
|
||||
if ($is_notice || $is_html || $is_secret || $is_mail) {
|
||||
$option = '';
|
||||
if ($is_notice) {
|
||||
$option .= "\n".'<input type="checkbox" id="notice" name="notice" value="1" '.$notice_checked.'>'."\n".'<label for="notice">공지</label>';
|
||||
}
|
||||
|
||||
if ($is_html) {
|
||||
if ($is_dhtml_editor) {
|
||||
$option_hidden .= '<input type="hidden" value="html1" name="html">';
|
||||
} else {
|
||||
$option .= "\n".'<input type="checkbox" id="html" name="html" onclick="html_auto_br(this);" value="'.$html_value.'" '.$html_checked.'>'."\n".'<label for="html">html</label>';
|
||||
}
|
||||
}
|
||||
|
||||
if ($is_secret) {
|
||||
if ($is_admin || $is_secret==1) {
|
||||
$option .= "\n".'<input type="checkbox" id="secret" name="secret" value="secret" '.$secret_checked.'>'."\n".'<label for="secret">비밀글</label>';
|
||||
} else {
|
||||
$option_hidden .= '<input type="hidden" name="secret" value="secret">';
|
||||
}
|
||||
}
|
||||
|
||||
if ($is_mail) {
|
||||
$option .= "\n".'<input type="checkbox" id="mail" name="mail" value="mail" '.$recv_email_checked.'>'."\n".'<label for="mail">답변메일받기</label>';
|
||||
}
|
||||
}
|
||||
|
||||
echo $option_hidden;
|
||||
?>
|
||||
|
||||
<table id="bo_w" class="frm_tbl">
|
||||
<tbody>
|
||||
<?php if ($is_name) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_name">이름<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="text" name="wr_name" value="<?php echo $name ?>" id="wr_name" required class="frm_input required" size="10" maxlength="20"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($is_password) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_password">패스워드<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="password" name="wr_password" id="wr_password" <?php echo $password_required ?> class="frm_input <?php echo $password_required ?>" maxlength="20"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($is_email) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_email">이메일</label></th>
|
||||
<td><input type="text" name="wr_email" value="<?php echo $email ?>" id="wr_email" class="frm_input email" size="50" maxlength="100"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($is_homepage) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_homepage">홈페이지</label></th>
|
||||
<td><input type="text" name="wr_homepage" value="<?php echo $homepage ?>" id="wr_homepage" class="frm_input" size="50"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($option) { ?>
|
||||
<tr>
|
||||
<th scope="row">옵션</th>
|
||||
<td><?php echo $option ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($is_category) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="ca_name">분류<strong class="sound_only">필수</strong></label></th>
|
||||
<td>
|
||||
<select name="ca_name" id="ca_name" required class="required" >
|
||||
<option value="">선택하세요</option>
|
||||
<?php echo $category_option ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_subject">제목<strong class="sound_only">필수</strong></label></th>
|
||||
<td><input type="text" name="wr_subject" value="<?php echo $subject ?>" id="wr_subject" required class="frm_input required" size="50" maxlength="255"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_content">내용<strong class="sound_only">필수</strong></label></th>
|
||||
<td class="wr_content"><?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?></td>
|
||||
</tr>
|
||||
|
||||
<?php for ($i=1; $is_link && $i<=G4_LINK_COUNT; $i++) { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_link<?php echo $i ?>">링크 #<?php echo $i ?></label></th>
|
||||
<td><input type="text" name="wr_link<?php echo $i ?>" value="<?php if($w=="u"){echo$write['wr_link'.$i];} ?>" id="wr_link<?php echo $i ?>" class="frm_input" size="50"></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php for ($i=0; $is_file && $i<$file_count; $i++) { ?>
|
||||
<tr>
|
||||
<th scope="row">파일 #<?php echo $i+1 ?></th>
|
||||
<td>
|
||||
<input type="file" name="bf_file[]" title="파일첨부 <?php echo $i+1 ?> : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능" class="frm_file frm_input">
|
||||
<?php if ($is_file_content) { ?>
|
||||
<input type="text" name="bf_content[]" value="<?php echo $file[$i]['bf_content']; ?>" title="파일 설명을 입력해주세요." class="frm_file frm_input" size="50">
|
||||
<?php } ?>
|
||||
<?php if($w == 'u' && $file[$i]['file']) { ?>
|
||||
<input type="checkbox" id="bf_file_del<?php echo $i ?>" name="bf_file_del[<?php echo $i; ?>]" value="1"> <label for="bf_file_del<?php echo $i ?>"><?php echo $file[$i]['source'].'('.$file[$i]['size'].')'; ?> 파일 삭제</label>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($is_guest) { //자동등록방지 ?>
|
||||
<tr>
|
||||
<th scope="row">자동등록방지</th>
|
||||
<td>
|
||||
<?php echo $captcha_html ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="btn_confirm">
|
||||
<p>
|
||||
작성하신 내용을 제출하시려면 <strong>글쓰기</strong> 버튼을, 작성을 취소하고 목록으로 돌아가시려면 <strong>취소</strong> 링크를 누르세요.
|
||||
</p>
|
||||
<input type="submit" value="글쓰기" id="btn_submit" accesskey="s" class="btn_submit">
|
||||
<a href="./board.php?bo_table=<?php echo $bo_table ?>" class="btn_cancel">취소</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
function html_auto_br(obj)
|
||||
{
|
||||
if (obj.checked) {
|
||||
result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
|
||||
if (result)
|
||||
obj.value = "html2";
|
||||
else
|
||||
obj.value = "html1";
|
||||
}
|
||||
else
|
||||
obj.value = "";
|
||||
}
|
||||
|
||||
function fwrite_submit(f)
|
||||
{
|
||||
<?php echo $editor_js; // 에디터 사용시 자바스크립트에서 내용을 폼필드로 넣어주며 내용이 입력되었는지 검사함 ?>
|
||||
|
||||
var subject = "";
|
||||
var content = "";
|
||||
$.ajax({
|
||||
url: g4_bbs_url+"/ajax.filter.php",
|
||||
type: "POST",
|
||||
data: {
|
||||
"subject": f.wr_subject.value,
|
||||
"content": f.wr_content.value
|
||||
},
|
||||
dataType: "json",
|
||||
async: false,
|
||||
cache: false,
|
||||
success: function(data, textStatus) {
|
||||
subject = data.subject;
|
||||
content = data.content;
|
||||
}
|
||||
});
|
||||
|
||||
if (subject) {
|
||||
alert("제목에 금지단어('"+subject+"')가 포함되어있습니다");
|
||||
f.wr_subject.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (content) {
|
||||
alert("내용에 금지단어('"+content+"')가 포함되어있습니다");
|
||||
if (typeof(ed_wr_content) != "undefined")
|
||||
ed_wr_content.returnFalse();
|
||||
else
|
||||
f.wr_content.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
<?php echo $captcha_js; // 캡챠 사용시 자바스크립트에서 입력된 캡챠를 검사함 ?>
|
||||
|
||||
document.getElementById("btn_submit").disabled = "disabled";
|
||||
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||