tabsize
This commit is contained in:
parent
f41e566400
commit
75ea133f82
9 changed files with 747 additions and 723 deletions
|
|
@ -1,4 +1,2 @@
|
||||||
<?php
|
<?php
|
||||||
include_once('../../../common.php');
|
include_once('../../../common.php');
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
<?
|
<?
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
add_stylesheet('<link rel="stylesheet" href="' . $board_skin_url . '/style.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $board_skin_url . '/style.css">', 0);
|
||||||
include_once(G5_LIB_PATH . '/thumbnail.lib.php');
|
include_once(G5_LIB_PATH . '/thumbnail.lib.php');
|
||||||
if($board['bo_table_width']==0) $width="100%";
|
if ($board['bo_table_width'] == 0)
|
||||||
|
$width = "100%";
|
||||||
|
|
||||||
$cate = array();
|
$cate = array();
|
||||||
$lists = array();
|
$lists = array();
|
||||||
|
|
@ -18,7 +20,8 @@ if($is_category) {
|
||||||
$cate = explode('|', $board['bo_category_list']);
|
$cate = explode('|', $board['bo_category_list']);
|
||||||
}
|
}
|
||||||
for ($h = 0; $h <= count($cate); $h++) {
|
for ($h = 0; $h <= count($cate); $h++) {
|
||||||
if(count($cate)>0 && $h==count($cate)) continue;
|
if (count($cate) > 0 && $h == count($cate))
|
||||||
|
continue;
|
||||||
$list_item = sql_query("select * from {$write_table} where wr_reply='' and wr_is_comment=0 order by wr_10*1, wr_id");
|
$list_item = sql_query("select * from {$write_table} where wr_reply='' and wr_is_comment=0 order by wr_10*1, wr_id");
|
||||||
|
|
||||||
for ($k = 0; $row = sql_fetch_array($list_item); $k++) {
|
for ($k = 0; $row = sql_fetch_array($list_item); $k++) {
|
||||||
|
|
@ -26,8 +29,10 @@ for($h=0;$h<=count($cate);$h++){
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div class="bo_list">
|
<div class="bo_list">
|
||||||
<?if($is_category){?><h2><?=$cate[$h]?></h2><?}?>
|
<? if ($is_category) { ?>
|
||||||
<ul class="list_box"><?
|
<h2><?= $cate[$h] ?></h2><? } ?>
|
||||||
|
<ul class="list_box">
|
||||||
|
<?
|
||||||
if (count($lists) > 0) {
|
if (count($lists) > 0) {
|
||||||
for ($i = 0; $i < count($lists); $i++) {
|
for ($i = 0; $i < count($lists); $i++) {
|
||||||
// 수정, 삭제 링크
|
// 수정, 삭제 링크
|
||||||
|
|
@ -36,26 +41,31 @@ for($h=0;$h<=count($cate);$h++){
|
||||||
if (($member['mb_id'] && ($member['mb_id'] == $lists[$i]['mb_id'])) || $is_admin) {
|
if (($member['mb_id'] && ($member['mb_id'] == $lists[$i]['mb_id'])) || $is_admin) {
|
||||||
$update_href = "./write.php?w=u&bo_table=$bo_table&wr_id={$lists[$i]['wr_id']}&page=$page" . $qstr;
|
$update_href = "./write.php?w=u&bo_table=$bo_table&wr_id={$lists[$i]['wr_id']}&page=$page" . $qstr;
|
||||||
$delete_href = "javascript:del('./delete.php?bo_table=$bo_table&wr_id={$lists[$i]['wr_id']}&page=$page" . urldecode($qstr) . "');";
|
$delete_href = "javascript:del('./delete.php?bo_table=$bo_table&wr_id={$lists[$i]['wr_id']}&page=$page" . urldecode($qstr) . "');";
|
||||||
if ($is_admin)
|
if ($is_admin) {
|
||||||
{
|
|
||||||
$delete_href = "javascript:del('./delete.php?bo_table=$bo_table&wr_id={$lists[$i]['wr_id']}&token=$token&page=$page" . urldecode($qstr) . "');";
|
$delete_href = "javascript:del('./delete.php?bo_table=$bo_table&wr_id={$lists[$i]['wr_id']}&token=$token&page=$page" . urldecode($qstr) . "');";
|
||||||
}
|
}
|
||||||
}
|
} else if (!$lists[$i]['mb_id']) { // 회원이 쓴 글이 아니라면
|
||||||
else if (!$lists[$i]['mb_id']) { // 회원이 쓴 글이 아니라면
|
|
||||||
$update_href = "./password.php?w=u&bo_table=$bo_table&wr_id={$lists[$i]['wr_id']}&page=$page" . $qstr;
|
$update_href = "./password.php?w=u&bo_table=$bo_table&wr_id={$lists[$i]['wr_id']}&page=$page" . $qstr;
|
||||||
$delete_href = "./password.php?w=d&bo_table=$bo_table&wr_id={$lists[$i]['wr_id']}&page=$page" . $qstr;
|
$delete_href = "./password.php?w=d&bo_table=$bo_table&wr_id={$lists[$i]['wr_id']}&page=$page" . $qstr;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($is_category) {
|
if ($is_category) {
|
||||||
if(($lists[$i]['ca_name']!=$cate[$h]) || ($sca && $lists[$i]['ca_name']!=$sca)) continue;
|
if (($lists[$i]['ca_name'] != $cate[$h]) || ($sca && $lists[$i]['ca_name'] != $sca))
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
?><li class="bo-list">
|
?>
|
||||||
<a href="<?=$lists[$i]['wr_link2'] ? $lists[$i]['wr_link2'] : "javascript:void(0);"?>" target="_blank" class="link-banner <?if(strstr($lists[$i]['wr_option'],'secret')) echo "secret";?>" <?if(!$lists[$i]['wr_link2']){?>style="cursor:default;" onclick="return false;"<?}?>>
|
<li class="bo-list">
|
||||||
<?if($lists[$i]['wr_link1']){?><img src="<?=$lists[$i]['wr_link1']?>" alt="<?=$lists[$i]['wr_1']?>"><?}else{?><strong><?=$lists[$i]['wr_1']?></strong><?}?>
|
<a href="<?= $lists[$i]['wr_link2'] ? $lists[$i]['wr_link2'] : "javascript:void(0);" ?>" target="_blank"
|
||||||
|
class="link-banner <? if (strstr($lists[$i]['wr_option'], 'secret'))
|
||||||
|
echo "secret"; ?>"
|
||||||
|
<? if (!$lists[$i]['wr_link2']) { ?>style="cursor:default;" onclick="return false;" <? } ?>>
|
||||||
|
<? if ($lists[$i]['wr_link1']) { ?><img src="<?= $lists[$i]['wr_link1'] ?>"
|
||||||
|
alt="<?= $lists[$i]['wr_1'] ?>"><? } else { ?><strong><?= $lists[$i]['wr_1'] ?></strong><? } ?>
|
||||||
</a>
|
</a>
|
||||||
<p class="link-desc">
|
<p class="link-desc">
|
||||||
<? if ($lists[$i]['wr_1'] && $lists[$i]['wr_link1']) { ?>
|
<? if ($lists[$i]['wr_1'] && $lists[$i]['wr_link1']) { ?>
|
||||||
<a href="<?=$lists[$i]['wr_link2'] ? $lists[$i]['wr_link2'] : "javascript:void(0);"?>" target="_blank" <?if(!$lists[$i]['wr_link2']){?>style="cursor:default;" onclick="return false;"<?}?> class="name">
|
<a href="<?= $lists[$i]['wr_link2'] ? $lists[$i]['wr_link2'] : "javascript:void(0);" ?>" target="_blank"
|
||||||
|
<? if (!$lists[$i]['wr_link2']) { ?>style="cursor:default;" onclick="return false;" <? } ?> class="name">
|
||||||
<strong>
|
<strong>
|
||||||
<?= $lists[$i]['wr_1'] ?>
|
<?= $lists[$i]['wr_1'] ?>
|
||||||
</strong>
|
</strong>
|
||||||
|
|
@ -68,7 +78,8 @@ for($h=0;$h<=count($cate);$h++){
|
||||||
</span>
|
</span>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</p>
|
</p>
|
||||||
</li><? }}?></ul>
|
</li><? }
|
||||||
|
} ?></ul>
|
||||||
</div>
|
</div>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
|
|
||||||
|
|
@ -85,10 +96,10 @@ for($h=0;$h<=count($cate);$h++){
|
||||||
<a href="<? echo $write_href ?>" class="ui-btn point">링크 추가</a><? } ?>
|
<a href="<? echo $write_href ?>" class="ui-btn point">링크 추가</a><? } ?>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
<? if ($admin_href) { ?>
|
<? if ($admin_href) { ?>
|
||||||
<a href="<?=$board_skin_url?>/set_order.php?bo_table=<?=$bo_table?>&write_table=<?=$write_table?>" class="ui-btn">링크 관리</a>
|
<a href="<?= $board_skin_url ?>/set_order.php?bo_table=<?= $bo_table ?>&write_table=<?= $write_table ?>" class="ui-btn">링크
|
||||||
|
관리</a>
|
||||||
<a href="<?= $admin_href ?>" class="ui-btn admin">관리자</a><? } ?>
|
<a href="<?= $admin_href ?>" class="ui-btn admin">관리자</a><? } ?>
|
||||||
</div>
|
</div>
|
||||||
<? } ?>
|
<? } ?> </div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- } 게시판 목록 끝 -->
|
<!-- } 게시판 목록 끝 -->
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,8 @@ if($board['bo_write_level']<=$member['mb_level']){
|
||||||
<div style="max-width:1000px;margin:10px auto;">
|
<div style="max-width:1000px;margin:10px auto;">
|
||||||
<table class="theme-form">
|
<table class="theme-form">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<?if($board['bo_use_category']&&$board['bo_category_list']){?><col style="width:100px;"><?}?>
|
<? if ($board['bo_use_category'] && $board['bo_category_list']) { ?>
|
||||||
|
<col style="width:100px;"><? } ?>
|
||||||
<col style="width:150px;">
|
<col style="width:150px;">
|
||||||
<col>
|
<col>
|
||||||
<col>
|
<col>
|
||||||
|
|
@ -18,7 +19,8 @@ if($board['bo_write_level']<=$member['mb_level']){
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<?if($board['bo_use_category']&&$board['bo_category_list']){?><th>카테고리</th><?}?>
|
<? if ($board['bo_use_category'] && $board['bo_category_list']) { ?>
|
||||||
|
<th>카테고리</th><? } ?>
|
||||||
<th>제목</th>
|
<th>제목</th>
|
||||||
<th>배너</th>
|
<th>배너</th>
|
||||||
<th>링크</th>
|
<th>링크</th>
|
||||||
|
|
@ -33,13 +35,18 @@ if($board['bo_write_level']<=$member['mb_level']){
|
||||||
<option value="">카테고리</option>
|
<option value="">카테고리</option>
|
||||||
<? $cate = explode('|', $board['bo_category_list']);
|
<? $cate = explode('|', $board['bo_category_list']);
|
||||||
for ($h = 0; $h < count($cate); $h++) { ?>
|
for ($h = 0; $h < count($cate); $h++) { ?>
|
||||||
<option value="<?=$cate[$h]?>" <?=$row['ca_name']==$cate[$h] ? "selected": "";?>><?=$cate[$h]?></option>
|
<option value="<?= $cate[$h] ?>" <?= $row['ca_name'] == $cate[$h] ? "selected" : ""; ?>><?= $cate[$h] ?>
|
||||||
|
</option>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</select><? } ?>
|
</select><? } ?>
|
||||||
</td>
|
</td>
|
||||||
<td><input type="text" name="subject[<?=$row['wr_id']?>]" value="<?=$row['wr_1']?>" style="width:100%;"></td>
|
<td><input type="text" name="subject[<?= $row['wr_id'] ?>]" value="<?= $row['wr_1'] ?>" style="width:100%;">
|
||||||
<td><input type="text" name="banner[<?=$row['wr_id']?>]" value="<?=$row['wr_link1']?>" style="width:100%;"></td>
|
</td>
|
||||||
<td><input type="text" name="link[<?=$row['wr_id']?>]" value="<?=$row['wr_link2']?>" style="width:100%;"></td>
|
<td><input type="text" name="banner[<?= $row['wr_id'] ?>]" value="<?= $row['wr_link1'] ?>"
|
||||||
|
style="width:100%;">
|
||||||
|
</td>
|
||||||
|
<td><input type="text" name="link[<?= $row['wr_id'] ?>]" value="<?= $row['wr_link2'] ?>" style="width:100%;">
|
||||||
|
</td>
|
||||||
<td><input type="text" name="order[<?= $row['wr_id'] ?>]" value="<?= $row['wr_10'] ?>" size="4">
|
<td><input type="text" name="order[<?= $row['wr_id'] ?>]" value="<?= $row['wr_10'] ?>" size="4">
|
||||||
<input type="hidden" name="idx[]" value="<?= $row['wr_id'] ?>">
|
<input type="hidden" name="idx[]" value="<?= $row['wr_id'] ?>">
|
||||||
</td>
|
</td>
|
||||||
|
|
|
||||||
|
|
@ -15,4 +15,3 @@ for ($i=0;$i<count($idx);$i++){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
goto_url('./set_order.php?bo_table=' . $bo_table . '&write_table=' . $write_table);
|
goto_url('./set_order.php?bo_table=' . $bo_table . '&write_table=' . $write_table);
|
||||||
?>
|
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,20 @@
|
||||||
<?
|
<?
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined("_GNUBOARD_"))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
include_once(G5_LIB_PATH . '/thumbnail.lib.php');
|
include_once(G5_LIB_PATH . '/thumbnail.lib.php');
|
||||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||||
add_stylesheet('<link rel="stylesheet" href="' . $board_skin_url . '/style.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $board_skin_url . '/style.css">', 0);
|
||||||
|
|
||||||
if($board['bo_table_width']==0) $width="100%";?>
|
if ($board['bo_table_width'] == 0)
|
||||||
|
$width = "100%"; ?>
|
||||||
<!-- 링크 버튼 시작 { -->
|
<!-- 링크 버튼 시작 { -->
|
||||||
<div id="bo_v_bot">
|
<div id="bo_v_bot">
|
||||||
<? ob_start(); ?>
|
<? ob_start(); ?>
|
||||||
<div class="bo_v_com">
|
<div class="bo_v_com">
|
||||||
<a href="<? echo $list_href ?>" class="ui-btn left">목록</a>
|
<a href="<? echo $list_href ?>" class="ui-btn left">목록</a>
|
||||||
<? if ($update_href) { ?><a href="<? echo $update_href ?>" class="ui-btn">수정</a><? } ?>
|
<? if ($update_href) { ?><a href="<? echo $update_href ?>" class="ui-btn">수정</a><? } ?>
|
||||||
<? if ($delete_href) { ?><a href="<? echo $delete_href ?>" class="ui-btn admin" onclick="del(this.href); return false;">삭제</a><? } ?>
|
<? if ($delete_href) { ?><a href="<? echo $delete_href ?>" class="ui-btn admin"
|
||||||
|
onclick="del(this.href); return false;">삭제</a><? } ?>
|
||||||
<? if ($write_href) { ?><a href="<? echo $write_href ?>" class="ui-btn point">링크 추가</a><? } ?>
|
<? if ($write_href) { ?><a href="<? echo $write_href ?>" class="ui-btn point">링크 추가</a><? } ?>
|
||||||
</div>
|
</div>
|
||||||
<?
|
<?
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
<?
|
<?
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
$cmt_link = sql_fetch("select count(wr_id) as cnt from {$write_table} where wr_is_comment=1 and wr_parent='{$wr_id}' and wr_content!='옷장'");
|
$cmt_link = sql_fetch("select count(wr_id) as cnt from {$write_table} where wr_is_comment=1 and wr_parent='{$wr_id}' and wr_content!='옷장'");
|
||||||
$clo = sql_fetch("select count(wr_id) as cnt from {$write_table} where wr_is_comment=1 and wr_parent='{$wr_id}' and wr_content='옷장'");
|
$clo = sql_fetch("select count(wr_id) as cnt from {$write_table} where wr_is_comment=1 and wr_parent='{$wr_id}' and wr_content='옷장'");
|
||||||
|
|
@ -19,7 +20,8 @@ if($member['mb_level']>=$board['bo_comment_level']){
|
||||||
<?
|
<?
|
||||||
$cmt_amt = count($list);
|
$cmt_amt = count($list);
|
||||||
for ($i = 0; $i < $cmt_amt; $i++) {
|
for ($i = 0; $i < $cmt_amt; $i++) {
|
||||||
if($list[$i]['wr_content']=='옷장') continue;
|
if ($list[$i]['wr_content'] == '옷장')
|
||||||
|
continue;
|
||||||
$comment_id = $list[$i]['wr_id'];
|
$comment_id = $list[$i]['wr_id'];
|
||||||
$cmt_depth = ""; // 댓글단계
|
$cmt_depth = ""; // 댓글단계
|
||||||
$cmt_depth = strlen($list[$i]['wr_comment_reply']) * 10;
|
$cmt_depth = strlen($list[$i]['wr_comment_reply']) * 10;
|
||||||
|
|
@ -57,8 +59,10 @@ if($member['mb_level']>=$board['bo_comment_level']){
|
||||||
|
|
||||||
$c_edit_href = './board.php?' . $query_string . '&c_id=' . $comment_id . '&w=cu#bo_vc_w';
|
$c_edit_href = './board.php?' . $query_string . '&c_id=' . $comment_id . '&w=cu#bo_vc_w';
|
||||||
?>
|
?>
|
||||||
<? if ($list[$i]['is_edit']) { ?><span><a href="javascript:comment_box('<? echo $comment_id ?>', 'cu','link');">m</a></span><? } ?>
|
<? if ($list[$i]['is_edit']) { ?><span><a
|
||||||
<? if ($list[$i]['is_del']) { ?><span><a href="<? echo $list[$i]['del_link']; ?>" onclick="return comment_delete();">d</a></span><? } ?>
|
href="javascript:comment_box('<? echo $comment_id ?>', 'cu','link');">m</a></span><? } ?>
|
||||||
|
<? if ($list[$i]['is_del']) { ?><span><a href="<? echo $list[$i]['del_link']; ?>"
|
||||||
|
onclick="return comment_delete();">d</a></span><? } ?>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -67,8 +71,10 @@ if($member['mb_level']>=$board['bo_comment_level']){
|
||||||
<span id="edit_<? echo $comment_id ?>"></span><!-- 수정 -->
|
<span id="edit_<? echo $comment_id ?>"></span><!-- 수정 -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<input type="hidden" value="<? echo strstr($list[$i]['wr_option'],"secret") ?>" id="secret_comment_<? echo $comment_id ?>">
|
<input type="hidden" value="<? echo strstr($list[$i]['wr_option'], "secret") ?>"
|
||||||
<textarea id="save_comment_<? echo $comment_id ?>" style="display:none"><? echo get_text($list[$i]['content1'], 0) ?></textarea>
|
id="secret_comment_<? echo $comment_id ?>">
|
||||||
|
<textarea id="save_comment_<? echo $comment_id ?>"
|
||||||
|
style="display:none"><? echo get_text($list[$i]['content1'], 0) ?></textarea>
|
||||||
<input type="hidden" id="save_cl_<?= $comment_id ?>" name="bf_content">
|
<input type="hidden" id="save_cl_<?= $comment_id ?>" name="bf_content">
|
||||||
<input type="hidden" id="save_order_<?= $comment_id ?>" name="wr_10">
|
<input type="hidden" id="save_order_<?= $comment_id ?>" name="wr_10">
|
||||||
|
|
||||||
|
|
@ -113,16 +119,12 @@ if ($view['mb_id']==$member['mb_id']) {
|
||||||
}
|
}
|
||||||
$token = '';
|
$token = '';
|
||||||
|
|
||||||
if ($member['mb_id'])
|
if ($member['mb_id']) {
|
||||||
{
|
if ($cl['mb_id'] === $member['mb_id'] || $is_admin) {
|
||||||
if ($cl['mb_id'] === $member['mb_id'] || $is_admin)
|
|
||||||
{
|
|
||||||
set_session('ss_delete_comment_' . $cl['wr_id'] . '_token', $token = uniqid(time()));
|
set_session('ss_delete_comment_' . $cl['wr_id'] . '_token', $token = uniqid(time()));
|
||||||
$cl['del_link'] = './delete_comment.php?bo_table=' . $bo_table . '&comment_id=' . $cl['wr_id'] . '&token=' . $token . '&page=' . $page . $qstr;
|
$cl['del_link'] = './delete_comment.php?bo_table=' . $bo_table . '&comment_id=' . $cl['wr_id'] . '&token=' . $token . '&page=' . $page . $qstr;
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
if (!$cl['mb_id']) {
|
if (!$cl['mb_id']) {
|
||||||
$cl['del_link'] = './password.php?w=x&bo_table=' . $bo_table . '&comment_id=' . $cl['wr_id'] . '&page=' . $page . $qstr;
|
$cl['del_link'] = './password.php?w=x&bo_table=' . $bo_table . '&comment_id=' . $cl['wr_id'] . '&page=' . $page . $qstr;
|
||||||
}
|
}
|
||||||
|
|
@ -140,7 +142,8 @@ if ($view['mb_id']==$member['mb_id']) {
|
||||||
<span id="edit_cl_<? echo $comment_id ?>"></span><!-- 수정 -->
|
<span id="edit_cl_<? echo $comment_id ?>"></span><!-- 수정 -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<input type="hidden" value="<? echo strstr($cl['wr_option'],"secret") ?>" id="secret_comment_<? echo $comment_id ?>">
|
<input type="hidden" value="<? echo strstr($cl['wr_option'], "secret") ?>"
|
||||||
|
id="secret_comment_<? echo $comment_id ?>">
|
||||||
<textarea id="save_comment_<? echo $comment_id ?>" style="display:none">옷장</textarea>
|
<textarea id="save_comment_<? echo $comment_id ?>" style="display:none">옷장</textarea>
|
||||||
<input type="hidden" id="save_cl_<?= $comment_id ?>" name="bf_content" value="<?= $files[0]['content'] ?>">
|
<input type="hidden" id="save_cl_<?= $comment_id ?>" name="bf_content" value="<?= $files[0]['content'] ?>">
|
||||||
<input type="hidden" id="save_order_<?= $comment_id ?>" name="wr_10" value="<?= $cl['wr_10'] ?>">
|
<input type="hidden" id="save_order_<?= $comment_id ?>" name="wr_10" value="<?= $cl['wr_10'] ?>">
|
||||||
|
|
@ -148,10 +151,12 @@ if ($view['mb_id']==$member['mb_id']) {
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- 댓글 쓰기 시작 { -->
|
<!-- 댓글 쓰기 시작 { -->
|
||||||
<?if($cmt_link['cnt']==0) {?><p class="txt-left add"><a href="javascript:comment_box('', 'c','link');">▶ 로그 링크 추가</a></p><?}?>
|
<? if ($cmt_link['cnt'] == 0) { ?>
|
||||||
|
<p class="txt-left add"><a href="javascript:comment_box('', 'c','link');">▶ 로그 링크 추가</a></p><? } ?>
|
||||||
<p class="add txt-right"><a href="javascript:comment_box('', 'c','clo');">▶ 의상 추가</a></p>
|
<p class="add txt-right"><a href="javascript:comment_box('', 'c','clo');">▶ 의상 추가</a></p>
|
||||||
<div id="bo_vc_w" class="board-comment-write" style="display:none;">
|
<div id="bo_vc_w" class="board-comment-write" style="display:none;">
|
||||||
<form name="fviewcomment" action="./write_comment_update.php" onsubmit="return fviewcomment_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off">
|
<form name="fviewcomment" action="./write_comment_update.php" onsubmit="return fviewcomment_submit(this);"
|
||||||
|
method="post" enctype="multipart/form-data" autocomplete="off">
|
||||||
<input type="hidden" name="w" value="<? echo $w ?>" id="w">
|
<input type="hidden" name="w" value="<? echo $w ?>" id="w">
|
||||||
<input type="hidden" name="bo_table" value="<? echo $bo_table ?>">
|
<input type="hidden" name="bo_table" value="<? echo $bo_table ?>">
|
||||||
<input type="hidden" name="wr_id" value="<? echo $wr_id ?>">
|
<input type="hidden" name="wr_id" value="<? echo $wr_id ?>">
|
||||||
|
|
@ -164,15 +169,17 @@ if ($view['mb_id']==$member['mb_id']) {
|
||||||
|
|
||||||
<div class="board-comment-form">
|
<div class="board-comment-form">
|
||||||
|
|
||||||
<input type="text" name="bf_content" id="bf_content" placeholder="의상 이름" style="width:80%"><input type="text" name="wr_10" id="wr_10" placeholder="순서" style="width:20%;"><input type="file" name="bf_file" id="bf_file" class="frm_file frm_input full upload-data on">
|
<input type="text" name="bf_content" id="bf_content" placeholder="의상 이름" style="width:80%"><input type="text"
|
||||||
|
name="wr_10" id="wr_10" placeholder="순서" style="width:20%;"><input type="file" name="bf_file" id="bf_file"
|
||||||
|
class="frm_file frm_input full upload-data on">
|
||||||
<? if ($comment_min || $comment_max) { ?><strong id="char_cnt"><span id="char_count"></span>글자</strong><? } ?>
|
<? if ($comment_min || $comment_max) { ?><strong id="char_cnt"><span id="char_count"></span>글자</strong><? } ?>
|
||||||
<textarea id="wr_content" name="wr_content" maxlength="10000" required class="required" placeholder="제목|링크로 로그를 링크할 수 있습니다. 여러개 입력시 엔터로 구분해주세요. 예시:
|
<textarea id="wr_content" name="wr_content" maxlength="10000" required class="required" placeholder="제목|링크로 로그를 링크할 수 있습니다. 여러개 입력시 엔터로 구분해주세요. 예시:
|
||||||
링크1|http://url-1
|
링크1|http://url-1
|
||||||
링크2|http://url-2
|
링크2|http://url-2
|
||||||
링크3|http://url-3
|
링크3|http://url-3
|
||||||
..."
|
..." <? if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');" <? } ?>><? echo $c_wr_content; ?></textarea>
|
||||||
<? if ($comment_min || $comment_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<? } ?>><? echo $c_wr_content; ?></textarea>
|
<? if ($comment_min || $comment_max) { ?>
|
||||||
<? if ($comment_min || $comment_max) { ?><script> check_byte('wr_content', 'char_count'); </script><? } ?>
|
<script> check_byte('wr_content', 'char_count'); </script><? } ?>
|
||||||
<script>
|
<script>
|
||||||
$(document).on("keyup change", "textarea#wr_content[maxlength]", function () {
|
$(document).on("keyup change", "textarea#wr_content[maxlength]", function () {
|
||||||
var str = $(this).val()
|
var str = $(this).val()
|
||||||
|
|
@ -184,7 +191,8 @@ if ($view['mb_id']==$member['mb_id']) {
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<p style="display:none;"><input type="checkbox" name="secret" value="1" id="secret"> <label for="secret">비밀글</label></p>
|
<p style="display:none;"><input type="checkbox" name="secret" value="1" id="secret"> <label
|
||||||
|
for="secret">비밀글</label></p>
|
||||||
|
|
||||||
<div class="btn_confirm">
|
<div class="btn_confirm">
|
||||||
<button type="submit" id="btn_submit" class="ui-btn">등록</button>
|
<button type="submit" id="btn_submit" class="ui-btn">등록</button>
|
||||||
|
|
@ -202,8 +210,7 @@ var save_before = '';
|
||||||
var save_html = document.getElementById('bo_vc_w').innerHTML;
|
var save_html = document.getElementById('bo_vc_w').innerHTML;
|
||||||
|
|
||||||
|
|
||||||
function fviewcomment_submit(f)
|
function fviewcomment_submit(f) {
|
||||||
{
|
|
||||||
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
|
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
|
||||||
|
|
||||||
var subject = "";
|
var subject = "";
|
||||||
|
|
@ -233,42 +240,34 @@ function fviewcomment_submit(f)
|
||||||
// 양쪽 공백 없애기
|
// 양쪽 공백 없애기
|
||||||
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
|
var pattern = /(^\s*)|(\s*$)/g; // \s 공백 문자
|
||||||
document.getElementById('wr_content').value = document.getElementById('wr_content').value.replace(pattern, "");
|
document.getElementById('wr_content').value = document.getElementById('wr_content').value.replace(pattern, "");
|
||||||
if (char_min > 0 || char_max > 0)
|
if (char_min > 0 || char_max > 0) {
|
||||||
{
|
|
||||||
check_byte('wr_content', 'char_count');
|
check_byte('wr_content', 'char_count');
|
||||||
var cnt = parseInt(document.getElementById('char_count').innerHTML);
|
var cnt = parseInt(document.getElementById('char_count').innerHTML);
|
||||||
if (char_min > 0 && char_min > cnt)
|
if (char_min > 0 && char_min > cnt) {
|
||||||
{
|
|
||||||
alert("댓글은 " + char_min + "글자 이상 쓰셔야 합니다.");
|
alert("댓글은 " + char_min + "글자 이상 쓰셔야 합니다.");
|
||||||
return false;
|
return false;
|
||||||
} else if (char_max > 0 && char_max < cnt)
|
} else if (char_max > 0 && char_max < cnt) {
|
||||||
{
|
|
||||||
alert("댓글은 " + char_max + "글자 이하로 쓰셔야 합니다.");
|
alert("댓글은 " + char_max + "글자 이하로 쓰셔야 합니다.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (!document.getElementById('wr_content').value)
|
else if (!document.getElementById('wr_content').value) {
|
||||||
{
|
|
||||||
alert("댓글을 입력하여 주십시오.");
|
alert("댓글을 입력하여 주십시오.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof(f.wr_name) != 'undefined')
|
if (typeof (f.wr_name) != 'undefined') {
|
||||||
{
|
|
||||||
f.wr_name.value = f.wr_name.value.replace(pattern, "");
|
f.wr_name.value = f.wr_name.value.replace(pattern, "");
|
||||||
if (f.wr_name.value == '')
|
if (f.wr_name.value == '') {
|
||||||
{
|
|
||||||
alert('이름이 입력되지 않았습니다.');
|
alert('이름이 입력되지 않았습니다.');
|
||||||
f.wr_name.focus();
|
f.wr_name.focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof(f.wr_password) != 'undefined')
|
if (typeof (f.wr_password) != 'undefined') {
|
||||||
{
|
|
||||||
f.wr_password.value = f.wr_password.value.replace(pattern, "");
|
f.wr_password.value = f.wr_password.value.replace(pattern, "");
|
||||||
if (f.wr_password.value == '')
|
if (f.wr_password.value == '') {
|
||||||
{
|
|
||||||
alert('비밀번호가 입력되지 않았습니다.');
|
alert('비밀번호가 입력되지 않았습니다.');
|
||||||
f.wr_password.focus();
|
f.wr_password.focus();
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -283,12 +282,10 @@ function fviewcomment_submit(f)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function comment_box(comment_id, work, type)
|
function comment_box(comment_id, work, type) {
|
||||||
{
|
|
||||||
var el_id;
|
var el_id;
|
||||||
// 댓글 아이디가 넘어오면 답변, 수정
|
// 댓글 아이디가 넘어오면 답변, 수정
|
||||||
if (comment_id)
|
if (comment_id) {
|
||||||
{
|
|
||||||
if (work == 'c')
|
if (work == 'c')
|
||||||
el_id = 'reply_' + comment_id;
|
el_id = 'reply_' + comment_id;
|
||||||
else {
|
else {
|
||||||
|
|
@ -301,10 +298,8 @@ function comment_box(comment_id, work, type)
|
||||||
else
|
else
|
||||||
el_id = 'bo_vc_w';
|
el_id = 'bo_vc_w';
|
||||||
|
|
||||||
if (save_before != el_id)
|
if (save_before != el_id) {
|
||||||
{
|
if (save_before) {
|
||||||
if (save_before)
|
|
||||||
{
|
|
||||||
document.getElementById(save_before).style.display = 'none';
|
document.getElementById(save_before).style.display = 'none';
|
||||||
document.getElementById(save_before).innerHTML = '';
|
document.getElementById(save_before).innerHTML = '';
|
||||||
}
|
}
|
||||||
|
|
@ -313,8 +308,7 @@ function comment_box(comment_id, work, type)
|
||||||
document.getElementById(el_id).innerHTML = save_html;
|
document.getElementById(el_id).innerHTML = save_html;
|
||||||
|
|
||||||
// 댓글 수정
|
// 댓글 수정
|
||||||
if (work == 'cu')
|
if (work == 'cu') {
|
||||||
{
|
|
||||||
$('#btn_submit').text('수정');
|
$('#btn_submit').text('수정');
|
||||||
document.getElementById('wr_content').value = document.getElementById('save_comment_' + comment_id).value;
|
document.getElementById('wr_content').value = document.getElementById('save_comment_' + comment_id).value;
|
||||||
if (type == 'clo') {
|
if (type == 'clo') {
|
||||||
|
|
@ -342,8 +336,7 @@ function comment_box(comment_id, work, type)
|
||||||
$('#' + el_id + ' #wr_content').text('옷장');
|
$('#' + el_id + ' #wr_content').text('옷장');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (type=='link')
|
if (type == 'link') {
|
||||||
{
|
|
||||||
if (work == 'c') {
|
if (work == 'c') {
|
||||||
$('#' + el_id + ' #wr_content').text('');
|
$('#' + el_id + ' #wr_content').text('');
|
||||||
}
|
}
|
||||||
|
|
@ -352,8 +345,7 @@ function comment_box(comment_id, work, type)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function comment_delete()
|
function comment_delete() {
|
||||||
{
|
|
||||||
return confirm("이 댓글을 삭제하시겠습니까?");
|
return confirm("이 댓글을 삭제하시겠습니까?");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
if (!defined('_GNUBOARD_'))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||||
add_stylesheet('<link rel="stylesheet" href="' . $board_skin_url . '/style.css">', 0);
|
add_stylesheet('<link rel="stylesheet" href="' . $board_skin_url . '/style.css">', 0);
|
||||||
|
|
@ -11,7 +12,8 @@ if($is_category && $board['bo_category_list']){
|
||||||
$categories = explode("|", $board['bo_category_list']); // 구분자가 | 로 되어 있음
|
$categories = explode("|", $board['bo_category_list']); // 구분자가 | 로 되어 있음
|
||||||
for ($i = 0; $i < count($categories); $i++) {
|
for ($i = 0; $i < count($categories); $i++) {
|
||||||
$category = trim($categories[$i]);
|
$category = trim($categories[$i]);
|
||||||
if (!$category) continue;
|
if (!$category)
|
||||||
|
continue;
|
||||||
|
|
||||||
$category_option .= "<option value=\"$categories[$i]\"";
|
$category_option .= "<option value=\"$categories[$i]\"";
|
||||||
if ($category == $ca_name) {
|
if ($category == $ca_name) {
|
||||||
|
|
@ -27,7 +29,8 @@ if($is_category && $board['bo_category_list']){
|
||||||
<hr class="padding">
|
<hr class="padding">
|
||||||
<section id="bo_w">
|
<section id="bo_w">
|
||||||
<!-- 게시물 작성/수정 시작 { -->
|
<!-- 게시물 작성/수정 시작 { -->
|
||||||
<form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off">
|
<form name="fwrite" id="fwrite" action="<?php echo $action_url ?>" onsubmit="return fwrite_submit(this);"
|
||||||
|
method="post" enctype="multipart/form-data" autocomplete="off">
|
||||||
<input type="hidden" name="uid" value="<?php echo get_uniqid(); ?>">
|
<input type="hidden" name="uid" value="<?php echo get_uniqid(); ?>">
|
||||||
<input type="hidden" name="w" value="<?php echo $w ?>">
|
<input type="hidden" name="w" value="<?php echo $w ?>">
|
||||||
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
|
||||||
|
|
@ -87,26 +90,35 @@ if($is_category && $board['bo_category_list']){
|
||||||
<? } ?>
|
<? } ?>
|
||||||
<dl>
|
<dl>
|
||||||
<dt>제목</dt>
|
<dt>제목</dt>
|
||||||
<dd><div class="subject" style="margin-top: 20px;">
|
<dd>
|
||||||
|
<div class="subject" style="margin-top: 20px;">
|
||||||
<input type="text" name="wr_1" value="<?= $write['wr_1'] ?>" class="frm_input full" maxlength="255">
|
<input type="text" name="wr_1" value="<?= $write['wr_1'] ?>" class="frm_input full" maxlength="255">
|
||||||
</div></dd>
|
</div>
|
||||||
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<dl>
|
<dl>
|
||||||
<dt>배너</dt>
|
<dt>배너</dt>
|
||||||
<dd><div class="wr_link1" style="margin-top: 20px;">
|
<dd>
|
||||||
<input type="text" name="wr_link1" value="<?php echo $write['wr_link1'] ?>" class="frm_input full" maxlength="255">
|
<div class="wr_link1" style="margin-top: 20px;">
|
||||||
|
<input type="text" name="wr_link1" value="<?php echo $write['wr_link1'] ?>" class="frm_input full"
|
||||||
|
maxlength="255">
|
||||||
<?= help("img 태그를 제외한 순수 이미지 링크만 입력(ex. http://link.com/banner.png) 없을시 제목이 출력됩니다."); ?>
|
<?= help("img 태그를 제외한 순수 이미지 링크만 입력(ex. http://link.com/banner.png) 없을시 제목이 출력됩니다."); ?>
|
||||||
</div></dd>
|
</div>
|
||||||
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<dl>
|
<dl>
|
||||||
<dt>링크</dt>
|
<dt>링크</dt>
|
||||||
<dd><div class="wr_link2" style="margin-top: 20px;">
|
<dd>
|
||||||
<input type="text" name="wr_link2" value="<?php echo $write['wr_link2'] ?>" class="frm_input full" maxlength="255">
|
<div class="wr_link2" style="margin-top: 20px;">
|
||||||
</div></dd>
|
<input type="text" name="wr_link2" value="<?php echo $write['wr_link2'] ?>" class="frm_input full"
|
||||||
|
maxlength="255">
|
||||||
|
</div>
|
||||||
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<dl>
|
<dl>
|
||||||
<dt>순서</dt>
|
<dt>순서</dt>
|
||||||
<dd><div class="wr_10">
|
<dd>
|
||||||
|
<div class="wr_10">
|
||||||
<input type="text" name="wr_10" value="<?= $w == 'u' ? $write['wr_10'] : ""; ?>">
|
<input type="text" name="wr_10" value="<?= $w == 'u' ? $write['wr_10'] : ""; ?>">
|
||||||
<?= help("* 순서는 1이 가장 처음으로 순서를 정하지 않을 경우 먼저 등록한 순서대로 정렬됩니다."); ?>
|
<?= help("* 순서는 1이 가장 처음으로 순서를 정하지 않을 경우 먼저 등록한 순서대로 정렬됩니다."); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -137,8 +149,7 @@ if($is_category && $board['bo_category_list']){
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
function html_auto_br(obj)
|
function html_auto_br(obj) {
|
||||||
{
|
|
||||||
if (obj.checked) {
|
if (obj.checked) {
|
||||||
result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
|
result = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 게시물 내용중 줄바뀐 곳을<br>태그로 변환하는 기능입니다.");
|
||||||
if (result)
|
if (result)
|
||||||
|
|
@ -150,8 +161,7 @@ if($is_category && $board['bo_category_list']){
|
||||||
obj.value = "";
|
obj.value = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
function fwrite_submit(f)
|
function fwrite_submit(f) {
|
||||||
{
|
|
||||||
<?php echo $editor_js; // 에디터 사용시 자바스크립트에서 내용을 폼필드로 넣어주며 내용이 입력되었는지 검사함 ?>
|
<?php echo $editor_js; // 에디터 사용시 자바스크립트에서 내용을 폼필드로 넣어주며 내용이 입력되었는지 검사함 ?>
|
||||||
|
|
||||||
var subject = "";
|
var subject = "";
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
/**
|
||||||
|
* @var string|int $bf_content
|
||||||
|
*/
|
||||||
|
if (!defined("_GNUBOARD_"))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
$customer_sql = "";
|
$customer_sql = "";
|
||||||
$temp_wr_id = $comment_id;
|
$temp_wr_id = $comment_id;
|
||||||
$wr_num = $wr['wr_num'];
|
$wr_num = $wr['wr_num'];
|
||||||
if(!$wr_num) $wr_num = $comment['wr_num'];
|
if (!$wr_num)
|
||||||
|
$wr_num = $comment['wr_num'];
|
||||||
include_once($board_skin_path . '/upload_file.php');
|
include_once($board_skin_path . '/upload_file.php');
|
||||||
if ($_FILES['bf_file']['name']) {
|
if ($_FILES['bf_file']['name']) {
|
||||||
$files = upload_c_file('bf_file', $bo_table);
|
$files = upload_c_file('bf_file', $bo_table);
|
||||||
|
|
@ -41,4 +46,3 @@ sql_query("update {$g5['board_file_table']}
|
||||||
bf_no = '0'
|
bf_no = '0'
|
||||||
");
|
");
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined("_GNUBOARD_"))
|
||||||
|
exit; // 개별 페이지 접근 불가
|
||||||
goto_url("./board.php?bo_table=$bo_table");
|
goto_url("./board.php?bo_table=$bo_table");
|
||||||
?>
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue