사용후기를 게시판스킨으로 적용중이나 일단 보류
This commit is contained in:
@ -37,7 +37,7 @@ $sql = " select COUNT(*) as cnt " . $sql_common;
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
|
||||
$rows = 2;
|
||||
$rows = 5;
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page == "") $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 레코드 구함
|
||||
@ -127,13 +127,17 @@ echo itemuse_page(10, $page, $total_page, "./itemuse.php?it_id=$it_id&page="
|
||||
<div class="sit_use_btn">
|
||||
<!-- <a href="javascript:itemusewin('it_id=<?php echo $it_id; ?>');">사용후기 쓰기<span class="sound_only"> 새 창</span></a> -->
|
||||
<a href="<?php echo $itemuse_write; ?>" id="itemuse_write" onclick="return false;" class="btn02">사용후기 쓰기<span class="sound_only"> 새 창</span></a>
|
||||
<a href="<?php echo $itemuse_board; ?>" target="_blank" class="btn01">더보기</a>
|
||||
<a href="<?php echo $itemuse_board; ?>" id="itemuse_board" target="_blank" class="btn01">더보기</a>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
$("#itemuse_write").click(function(){
|
||||
window.open(this.href, "itemuse", "width=800,height=700");
|
||||
window.open(this.href, "itemuse_write", "width=800,height=550");
|
||||
});
|
||||
|
||||
$("#itemuse_board").click(function(){
|
||||
window.open(this.href, "itemuse_board", "width=800,height=550");
|
||||
});
|
||||
|
||||
$(".use_href").click(function(){
|
||||
|
||||
12
skin/board/itemuse/_common.skin.php
Normal file
12
skin/board/itemuse/_common.skin.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if (!$wr_1) {
|
||||
$wr_1 = $_REQUEST['wr_1'] ? $_REQUEST['wr_1'] : get_session("ss_itemuse_wr_1");
|
||||
if (!$wr_1) {
|
||||
alert("wr_1 에 상품코드를 넘겨주세요.");
|
||||
}
|
||||
}
|
||||
|
||||
set_session("ss_itemuse_wr_1", $wr_1);
|
||||
?>
|
||||
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
include_once($board_skin_path."/_common.skin.php");
|
||||
|
||||
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
|
||||
$colspan = 5;
|
||||
|
||||
@ -1,17 +1,10 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
include_once($board_skin_path."/_common.skin.php");
|
||||
|
||||
// 상품코드
|
||||
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'];
|
||||
}
|
||||
$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">
|
||||
@ -80,20 +73,6 @@ echo $option_hidden;
|
||||
</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>
|
||||
@ -101,18 +80,6 @@ echo $option_hidden;
|
||||
</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>
|
||||
@ -123,28 +90,6 @@ echo $option_hidden;
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user