문제가많은 홈페이지 봐주실분 계신가요

문제가많은 홈페이지 봐주실분 계신가요

QA

문제가많은 홈페이지 봐주실분 계신가요

본문

http://dajo.cafe24.com/

 

 

ㅎㅎ.. 그누보드 고수님들.... css가 터지고 말았습니당... 해결책한마디씩만.. 부탁드려요...ㅠㅠㅠ

 


/* style.css */

/* ##### 원제작자 불량감자님 ##############################*/
/* ##### 변환 SIR 지운아빠 ################################*/
/* ##### 원본 http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=135878 */

/* 게시판 목록 */
#bo_list_title {margin-bottom:20px;font-size:1.2em;letter-spacing:-0.1em}

#bo_cate h2 {width:1px;height:1px;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}

/* 탭나누기 UI Object */
#container {
    width:73%;
    margin: 1%;
    text-align:left;
}
ul,li { list-style:none; }
a { text-decoration:none; color:#000; }
ul.tab { border:1px solid #ddd; border-left:none; margin:0; padding:0; background:#fff; overflow:hidden; }
ul.tab li { float:left; width:33.3%; border-left:1px solid #ddd; text-align:center; box-sizing:border-box; }
ul.tab li { display:inline-block; padding:20px; cursor:pointer; }
ul.tab li.on { background-color:#eee; color:#f00; }
.tab_con { clear:both; margin-top:5px; border:1px solid #ddd; }
.tab_con div { display:none; height:1000px; background:#fff; line-height:100px; text-align:center; }
/* //UI Object */

/* 게시판 목록 공통 */
.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}
.bo_notice td {background:#f7f7f2}
.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 {width:1px;height:1px;font-size:0;line-height:0;overflow:hidden}

/* 리스트형 목록 */
.rankiss_num {color:#999;text-align:center}
.rankiss_checkbox {text-align:center}
.rankiss_thumb {text-align:center}
.rankiss_subject {font-family:'tahoma';word-wrap:break-word}
.rankiss_subject a {text-decoration:none}
.rankiss_name {padding:0 0 0 10px;text-align:center}
.rankiss_company {color:#999;text-align:center; letter-spacing:-0.04em}
.rankiss_datetime {color:#999;font-family:'tahoma';text-align:center}
.rankiss_price {color:#de390d;font-weight:bold;font-family:'tahoma';text-align:center}
.rankiss_hit {color:#bababa;font-weight:bold;font-family:'tahoma';text-align:center}
.rankiss_good {color:#ff6600;font-weight:bold;text-align:center}
.rankiss_nogood {color:#bababa;font-family:'tahoma';text-align:center}

/* 갤러리형 목록 */
#rankiss_gallery {margin:5px 0 5px;padding:0;list-style:none;zoom:1}
#rankiss_gallery:after {display:block;visibility:hidden;clear:both;content:""}
.rankiss_gallery_1dli {float:left;margin:0 0 30px 0;padding:10px;border:1px solid #dfdfdf;background:white;}
.rankiss_gallery_2dul {margin:0;padding:0;list-style:none}
.rankiss_gallery_subject {padding:10px 0 5px;font-family:'tahoma';font-weight:bold;text-align:center;word-wrap:break-word}
.rankiss_gallery_subject .cnt_cmt {color:#ff3600;font-weight:normal}
#rankiss_gallery .rankiss_company {padding:5px 0}

.rankiss_notice {/* 공지사항용 스타일 정의 */}
.rankiss_current {color: #e19e00;font-weight:bold;font-family:'tahoma'}

.board_button {clear:both;margin:6px 0 0 0}
.board_page {clear:both;text-align:center;margin:10px 0 0 0}
.board_page a:link {color:#777}
.board_top1 {border-top:1px solid #eee;margin:10px 0 0 0}
.board_bottom {border-bottom:1px solid #eee}
.board_search {text-align:center;padding:20px}
.board_search .stx {height:21px;border:1px solid #9A9A9A;border-right:1px solid #D8D8D8;border-bottom:1px solid #D8D8D8}

#rankiss_v{background:white;float:left;}

/* 게시판 읽기 */
#rankiss_v_img {float:left;width:45%;margin:0 0 13px;padding:40px 0 20px 40px;zoom:1}

#rankiss_v_img h2 {margin:0 0 10px}
#rankiss_v_bigimg {float:left}
#rankiss_v_bigimg img {width:300px;height:300px;}
#rankiss_v_thumb {float:left;margin:10px 0 0;padding:0;width:426px;list-style:none;zoom:1}
#rankiss_v_thumb:after {display:block;visibility:hidden;clear:both;content:""}
#rankiss_v_thumb li {float:left;margin:0 5px 1px 1px}
#rankiss_v_thumb img {width:100px;height:100px}

#rankiss_v_info {float:right;width:50%;margin:0 0 20px;padding-top:30px;}
#rankiss_v_info h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#rankiss_v_info dl {margin:0;padding:0 0 10px;zoom:1;font-size:11pt;}
#rankiss_v_info dl:after {display:block;visibility:hidden;clear:both;content:""}
#rankiss_v_info dt {float:left;width:15%;font-weight:bold;margin-bottom:15px;padding-bottom:10px;margin-right:2%;}
#rankiss_v_info dd {float:left;margin:0;width:80%;margin-bottom:15px;padding-right:20px;padding-bottom:10px;margin-right:3%}
#rankiss_v_info .det1{border-bottom:none;}
#rankiss_v_desc {clear:both;margin:80px 30px 50px 30px;padding-top:50px;border-top:3px solid #262626;}

#rankiss_v_nav {position:absolute;top:1px;right:-10px;width:20px}
#rankiss_v_nav a {display:block;margin:0 0 1px;background:#333}

#rankiss_v_bot {margin:10px 0;zoom:1}
#rankiss_v_bot:after {display:block;visibility:hidden;clear:both;content:""}
#rankiss_v_nb {float:left;margin:0 0 10px;padding:10px 0;list-style:none;zoom:1}
#rankiss_v_nb:after {display:block;visibility:hidden;clear:both;content:""}
#rankiss_v_nb li {float:left;margin:0 4px 0 0}
#rankiss_v_cmd {float:right;margin:0 0 10px;padding:10px 0;list-style:none;zoom:1}
#rankiss_v_cmd:after {display:block;visibility:hidden;clear:both;content:""}
#rankiss_v_cmd li {float:left;margin:0 0 0 4px}

/* 게시판 댓글 */
#rankiss_vc {padding:20px 0 10px;border-top:1px solid #cfded8}
#rankiss_vc h2 {margin-bottom:10px}
#rankiss_vc article {padding:0 0 10px;border-top:1px dotted #ccc}
#rankiss_vc header {position:relative;padding:15px 0 5px}
#rankiss_vc header .icon_reply {position:absolute;top:15px;left:-40px}
#rankiss_vc .sv_wrap {margin-right:15px}
#rankiss_vc .member, #rankiss_vc .guest, #rankiss_vc .sv_member, #rankiss_vc .sv_guest {font-weight:bold}
.rankiss_vc_hdinfo {display:inline-block;margin:0 15px 0 5px}
#rankiss_vc h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#rankiss_vc a {color:#000;text-decoration:none}
#rankiss_vc p {padding:0 0 5px;line-height:1.8em}
#rankiss_vc p a {text-decoration:underline}
#rankiss_vc_empty {margin:0;padding:20px !important;text-align:center}
#rankiss_vc fieldset {margin:0 0 10px;padding:0}
#rankiss_vc #rankiss_vc_winfo {float:left}
#rankiss_vc footer {zoom:1}
#rankiss_vc footer:after {display:block;visibility:hidden;clear:both;content:""}

.rankiss_vc_act {float:right;margin:0;list-style:none;zoom:1}
.rankiss_vc_act:after {display:block;visibility:hidden;clear:both;content:""}
.rankiss_vc_act li {float:left;margin-left:5px}

#rankiss_vc_ww {position:relative;margin:0 0 10px;padding:10px;border:1px solid #e9e9e9;background:#f5f6fa}
#rankiss_vc_ww h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#rankiss_vc_ww p {margin:0;padding:10px 0}
#rankiss_vc_w_panel button {margin:0;padding:0;border:0;background:transparent;vertical-align:middle}
#rankiss_vc_w_panel .frm_input {margin:0 5px 0 0;background:#fff !important;color:#000 !important}
#rankiss_vc_w_panel #captcha {position:absolute;top:10px;right:10px !important;right:27px}
.full_input {
    width: 100%;
}
#rankiss_vc_w_ta {padding:0 80px 0 0}
#rankiss_vc_w_ta textarea {width:100%;height:50px;border:1px solid #c9c9c9;background:#fff !important}
#rankiss_vc_w_submit {position:absolute;top:72px !important;top:69px;right:10px !important;right:30px} /* IE6 대응하지 않을 경우 top 보다 bottom 이 편리합니다. - 지운아빠 2013-05-21 */

#rankiss_v_bigimg{width:45%;}
.rankiss_v_title{font-size:20pt;font-weight:bold;letter-spacing:-1px;margin-bottom:50px;}
.frm_tbl{border:1px solid red;}

 


/* view.skin.php */

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

$sql_search = "";
// 검색이면
if ($sca || $stx) {
    // where 문을 얻음
    $sql_search = get_sql_search($sca, $sfl, $stx, $sop);
    $search_href = '/bbs/board.php?bo_table='.$bo_table.'&page='.$page.$qstr;
    $list_href = '/bbs/board.php?bo_table='.$bo_table;
} else {
    $search_href = '';
    $list_href = '/bbs/board.php?bo_table='.$bo_table.'&page='.$page;
}

if (!$board['bo_use_list_view']) {
    if ($sql_search)
       $sql_search = " and " . $sql_search;

// 윗글을 얻음
    $sql = " select wr_id, wr_subject from $write_table where wr_is_comment = 0 and wr_num = '$write[wr_num]' and wr_reply < '$write[wr_reply]' $sql_search order by wr_num desc, wr_reply desc limit 1 ";
    $prev = sql_fetch($sql);
    // 위의 쿼리문으로 값을 얻지 못했다면
    if (!$prev['wr_id']) {
        $sql = " select wr_id, wr_subject from $write_table where wr_is_comment = 0 and wr_num < '$write[wr_num]' $sql_search order by wr_num desc, wr_reply desc limit 1 ";
        $prev = sql_fetch($sql);
    }

    // 아래글을 얻음
    $sql = " select wr_id, wr_subject from $write_table where wr_is_comment = 0 and wr_num = '$write[wr_num]' and wr_reply > '$write[wr_reply]' $sql_search order by wr_num, wr_reply limit 1 ";
    $next = sql_fetch($sql);
    // 위의 쿼리문으로 값을 얻지 못했다면
    if (!$next['wr_id']) {
        $sql = " select wr_id, wr_subject from $write_table where wr_is_comment = 0 and wr_num > '$write[wr_num]' $sql_search order by wr_num, wr_reply limit 1 ";
        $next = sql_fetch($sql);
    }
}

// 이전글 링크
$prev_href = '';
if ($prev['wr_id']) {
    $prev_wr_subject = get_text(cut_str($prev['wr_subject'], 255));
    $prev_href = '/bbs/board.php?bo_table='.$bo_table.'&wr_id='.$prev['wr_id'].'&page='.$page.$qstr;
}

// 다음글 링크
$next_href = '';
if ($next['wr_id']) {
    $next_wr_subject = get_text(cut_str($next['wr_subject'], 255));
    $next_href = '/bbs/board.php?bo_table='.$bo_table.'&wr_id='.$next['wr_id'].'&page='.$page.$qstr;
}
?>

<!-- 이 내용은 <head> 안으로 옮기시길 권장합니다. -->
<link rel="stylesheet" href="<?php echo $board_skin_url; ?>/style.css">
<style>
#rankiss_v_title {position:relative;margin:0 0 10px;padding:14px 0 0;height:28px;text-align:center;font-weight:bold;font-size:1em; background:url('<?=$board_skin_url?>/img/board_listC.gif') repeat-x}
#rankiss_v_titlel {position:absolute;top:0;left:0;width:8px;height:42px;background:url('<?=$board_skin_url?>/img/board_listL.gif') repeat-x}
#rankiss_v_titler {position:absolute;top:0;right:0;width:8px;height:42px;background:url('<?=$board_skin_url?>/img/board_listR.gif') repeat-x}
</style>
<!-- 여기까지 -->

<article id="rankiss_v" style="width:<?php echo $width; ?>">
    

    <section id="rankiss_v_img">
        
        <div id="rankiss_v_bigimg">
            <?php
            if ($view['file'][0]['file']) {
                $image = urlencode($view['file'][0]['file']);
            ?>
            <a href="<?php echo G5_BBS_URL; ?>/view_image.php?fn=<?php echo $bo_table.'/'.$image; ?>" target="_blank" class="visible view_image">
                <?php
                if (preg_match("/\.(gif|jpg|png)$/i", $image) && file_exists(G5_PATH.'/data/file/'.$bo_table.'/'.$image)) { // 첨부파일이 있고, 이미지라면
                    echo '<img src="'.G5_URL.'/data/file/'.$bo_table.'/'.$image.'" alt="'.$view['file'][$i]['bf_content'].'">';
                } else {
                    echo '<img src="'.$board_skin_url.'/img/noimg.gif" alt="">';
                }
                ?>
            </a>
            <?php } ?>
        </div>

        <?php
        for ($i=0; $i<count($view['file']); $i++)
        {
            echo $size[0];
            if ($i == 0) echo '<ul id="rankiss_v_thumb">'.PHP_EOL;
            $rankiss_clear = '';
            if ($i%3 == 0) $rankiss_clear = ' style="clear:both"';
            if ($view[file][$i][file]) {
                $image = urlencode($view['file'][$i]['file']);
                if (preg_match("/\.(gif|jpg|png)$/i", $image) && file_exists(G5_PATH.'/data/file/'.$bo_table.'/'.$image)) { // 첨부파일이 있고, 이미지라면
                    echo '<li'.$rankiss_clear.'><a href="'.G5_BBS_URL.'/view_image.php?fn='.$bo_table.'/'.$image.'" target="_blank" class="img_thumb view_image"><img src="'.G5_URL.'/data/file/'.$bo_table.'/'.$image.'" alt="'.$view['file'][$i]['bf_content'].'" class="'.$size[0].' '.$size[1].'"></a></li>'.PHP_EOL;
                }
            }
        }
        if ($i > 0) echo '</ul>'.PHP_EOL;
        ?>

        <script>
        $(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;
            });
            // 이미지 미리보기
            $("#rankiss_v_thumb .img_thumb").bind("mouseover focus", function(){
                var img_src = $(this).children('img').attr('src');
                var img_alt = $(this).children('img').attr('alt');
                $('#rankiss_v_bigimg img').attr('src', img_src);
                $('#rankiss_v_bigimg img').attr('alt', img_alt);
            });
        });
        </script>
    </section>

    <section id="rankiss_v_info">
        <h2>제품 정보</h2>

         <h3 class="rankiss_v_title">
            
            <?php
            if ($category_name) echo ($category_name ? ' | '.$view['ca_name'] : ''); // 분류 출력 끝
            echo cut_str(get_text($view['wr_subject']), 70); // 글제목 출력
            ?>
         </h3>

        <dl>
            <dt>생산기업</dt>
            <dd><?php echo $view['wr_1']; ?></dd>
            <dt>가격</dt>
            <dd style="color:red;"><?php echo number_format($view['wr_2']); ?>원</dd>
         <dt>상품구성</dt>
             <dd><?php echo $view['wr_3']; ?></dd>
         <dt>문의전화</dt>
            <dd><?php echo $view['wr_4']; ?></dd>
         <dt>배송비</dt>
            <dd style="color:#0034ff;"><?php echo number_format($view['wr_5']); ?>원</dd>
         <dt class="det1">상품특징</dt>
            <dd class="det1"><?php echo $view['wr_6']; ?></dd>
        </dl>
    </section>

    <section id="rankiss_v_desc">
        <h2 style="font-size:0;">제품설명</h2>
        <ul class="tab" id="tab">
            <li>상세설명</li>
            <li>사이즈 안내</li>
            <li>사용자 리뷰</li>
        </ul>

        <div class="tab_con" id="tab_con">

            <div><p><?php echo $view['wr_content']; ?></p></div>
            <div><p><?php echo $view['wr_content']; ?></p></div>
            <div><p><?php echo $view['wr_content']; ?></p></div>

        </div>

    </section>

</article>

<? if ($prev_href || $next_href) { ?>
<div id="rankiss_v_nav">
    <?php if ($prev_href) { ?><a href="<?php echo $prev_href; ?>"><img src="<?php echo $board_skin_url; ?>/img/prev.png" alt="이전 <?php echo $prev_wr_subject; ?>"></a><?php } ?>
    <?php if ($next_href) { ?><a href="<?php echo $next_href; ?>"><img src="<?php echo $board_skin_url; ?>/img/next.png" alt="다음 <?php echo $next_wr_subject; ?>"></a><?php } ?>
</div>
<script src="<?php echo $board_skin_url; ?>/js/rankiss_scroll.js"></script>
<? } ?>

<?
// 코멘트 입출력
include_once("./view_comment.php");
?>

<div id="rankiss_v_bot">
    <ul id="rankiss_v_nb">
        <?php if ($prev_href) { ?><li><a href="<?php echo $prev_href; ?>"><img src="<?php echo $board_skin_url; ?>/img/btn_prev.gif" alt="이전"></a></li><?php } ?>
        <li><a href="<?php echo $list_href; ?>"><img src="<?php echo $board_skin_url; ?>/img/btn_list.gif" alt="목록"></a></li>
        <?php if ($next_href) { ?><li><a href="<?php echo $next_href; ?>"><img src="<?php echo $board_skin_url; ?>/img/btn_next.gif" alt="다음"></a></li><?php } ?>
    </ul>

    <?php if ($copy_href || $move_href || $search_href || $update_href || $delete_href || $reply_href || $write_href) { ?>
    <ul id="rankiss_v_cmd">
        <?php if ($copy_href) { ?><li><a href="<?php echo $copy_href; ?>"><img src="<?php echo $board_skin_url; ?>/img/btn_copy.gif" alt="복사"></a></li><?php } ?>
        <?php if ($move_href) { ?><li><a href="<?php echo $move_href; ?>"><img src="<?php echo $board_skin_url; ?>/img/btn_move.gif" alt="이동"></a></li><?php } ?>
        <?php if ($search_href) { ?><li><a href="<?php echo $search_href; ?>"><img src="<?php echo $board_skin_url; ?>/img/btn_list_search.gif" alt="검색목록"></a></li><?php } ?>
        <?php if ($update_href) { ?><li><a href="<?php echo $update_href; ?>"><img src="<?php echo $board_skin_url; ?>/img/btn_modify.gif" alt="수정"></a></li><?php } ?>
        <?php if ($delete_href) { ?><li><a href="<?php echo $delete_href; ?>"><img src="<?php echo $board_skin_url; ?>/img/btn_delete.gif" alt="삭제"></a></li><?php } ?>
        <?php if ($reply_href) { ?><li><a href="<?php echo $reply_href; ?>"><img src="<?php echo $board_skin_url; ?>/img/btn_reply.gif" alt="답글"></a></li><?php } ?>
        <?php if ($write_href) { ?><li><a href="<?php echo $write_href; ?>"><img src="<?php echo $board_skin_url; ?>/img/btn_write.gif" alt="글쓰기"></a></li><?php } ?>
    </ul>
    <? } ?>
</div>

<script>
function file_download(link, file) {
    <? if ($board[bo_download_point] < 0) { ?>if (confirm("'"+file+"' 파일을 다운로드 하시면 포인트가 차감(<?php echo number_format($board[bo_download_point])?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?"))<?}?>
    document.location.href=link;
}
</script>
<!-- 게시글 보기 끝 -->


 


/* write.skin.php */

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<style>
/* 이 내용은 <head> 안으로 옮기시길 권장합니다. */
#rankiss_w_title {position:relative;margin:0 0 10px;padding:14px 0 0;height:28px;text-align:center;font-weight:bold;font-size:1em; background:url('<?=$board_skin_url?>/img/board_listC.gif') repeat-x}
#rankiss_w_titlel {position:absolute;top:0;left:0;width:8px;height:42px;background:url('<?=$board_skin_url?>/img/board_listL.gif') repeat-x}
#rankiss_w_titler {position:absolute;top:0;right:0;width:8px;height:42px;background:url('<?=$board_skin_url?>/img/board_listR.gif') repeat-x}
.rankiss_write_head {width:120px;height:30px;text-align:center; font-size:11px; font-family:돋움; font-weight:bold; color:#666; letter-spacing:-1px}
.rankiss_write_head1 {width:120px;height:30px;text-align:right; color:#444444;padding:0 7px 0 0}
.rankiss_field {border:1px solid #ccc}
.rankiss_oimg {margin:10px 0 0;width:600px/* IE 에서 table 내 요소에 max-width 를 사용하려면 부모의 넓이를 지정해줘야 합니다. - 지운아빠 2013-05-16 */}
.rankiss_oimg img {max-width:100% !important}
</style>

<h1 id="rankiss_w_title"><span id="rankiss_w_titlel"></span><span id="rankiss_w_titler"></span><?=$g4['title']?></h1>

<form name="fwrite" id="fwrite" action="<?=$action_url?>" onsubmit="return fwrite_submit(this);" method="post" enctype="multipart/form-data" autocomplete="off" style="width:<?=$width;?>">
<input type="hidden" name="w" value="<?=$w?>">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="wr_id" value="<?=$wr_id?>">
<input type="hidden" name="sca" value="<?=$sca?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="spt" value="<?=$spt?>">
<input type="hidden" name="sst" value="<?=$sst?>">
<input type="hidden" name="sod" value="<?=$sod?>">
<input type="hidden" name="page" value="<?=$page?>">

<?
$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 class="frm_tbl" style="width:100%;background:white;">
<tbody>
<? if ($is_name) { ?>
<tr>
    <th scope="row"><label for="wr_name">이름</label></th>
    <td><input type="text" name="wr_name" value="<?=$name?>" id="wr_name" required class="frm_input required" maxlength="20" size="15"></td>
</tr>
<? } ?>

<? if ($is_password) { ?>
<tr>
    <th scope="row"><label for="wr_password">패스워드</label></th>
    <td><input type="password" name="wr_password" id="wr_password" <?=$password_required?> class="frm_input <?=$password_required?>" maxlength="20" size="15"></td>
</tr>
<? } ?>

<? if ($is_email) { ?>
<tr>
    <th scope="row"><label for="wr_email">이메일</label></th>
    <td><input type="text" name="wr_email" value="<?=$email?>" id="wr_email" class="frm_input email" maxlength="100" size="50"></td>
</tr>
<? } ?>

<? if ($is_homepage) { ?>
<tr>
    <th scope="row"><label for="wr_homepage">홈페이지</label></th>
    <td><input type="text" name="wr_homepage" value="<?=$homepage?>" id="wr_homepage" class="frm_input" size="50"></td>
</tr>
<? } ?>

<? if ($option) { ?>
<tr>
    <th scope="row">옵션</th>
    <td><?=$option?></td>
</tr>
<? } ?>

<? if ($is_category) { ?>
<tr>
    <th scope="row"><label for="ca_name">분류</label></th>
    <td>
        <select name="ca_name" id="ca_name" required class="required" >
            <option value="">선택하세요</option>
            <?=$category_option?>
        </select>
    </td>
</tr>
<? } ?>

<tr>
    <th scope="row"><label for="wr_subject">제품명</label></th>
    <td><input name="wr_subject" value="<?=$subject?>" id="wr_subject" required class="frm_input full_input required"></td>
</tr>

<tr>
    <th scope="row"><label for="wr_1" >생산기업</label></th>
    <td><input name="wr_1" value="<?=$write['wr_1']?>" id="wr_1" required class="frm_input full_input required"></td>
</tr>

<tr>
    <th scope="row"><label for="wr_2">가격</label></th>
    <td>
        <input name="wr_2" value="<?=$write['wr_2']?>" id="wr_2" class="frm_input full_input required">
    </td>
</tr>

<tr>
    <th scope="row"><label for="wr_3">상품구성</label></th>
    <td>
        <input name="wr_3" value="<?=$write['wr_3']?>" id="wr_3" class="frm_input full_input required">
    </td>
</tr>

<tr>
    <th scope="row"><label for="wr_4">문의전화</label></th>
    <td>
        <input name="wr_4" value="<?=$write['wr_4']?>" id="wr_4" class="frm_input full_input required">
    </td>
</tr>

<tr>
    <th scope="row"><label for="wr_5">배송비</label></th>
    <td>
        <input name="wr_5" value="<?=$write['wr_5']?>" id="wr_5" class="frm_input full_input required">
    </td>
</tr>

<tr>
   <th scope="row"><label for="wr_6">상품특징</label></th>
    <td>
        <input name="wr_6" value="<?=$write['wr_6']?>" id="wr_6" class="frm_input full_input required">
    </td>
</tr>

<tr>
    <th scope="row">제품설명</th>
    <td><ul class="tab" id="tab">
            <li>상세설명</li>
            <li>사이즈 안내</li>
            <li>사용자 리뷰</li>
        </ul>

        <div class="tab_con" id="tab_con">

            <div><p><? echo $editor_html; ?></p></div>


        </div>
    </td>
</tr>

<? for ($i=1; $is_link && $i<=G4_LINK_COUNT; $i++) { ?>
<tr>
    <th scope="row"><label for="wr_link<?=$i?>">링크 #<?=$i?></label></th>
    <td><input type="text" name="wr_link<?=$i?>" value="<?if($w=="u"){echo$write['wr_link'.$i];}?>" id="wr_link<?=$i?>" class="frm_input" size="50"></td>
</tr>
<? } ?>

<? if ($board['bo_related']) { ?>
<tr>
    <th scope="row"><label for="wr_related">관련글</label></th>
    <td>
        <span class="frm_info">예 : 키워드1, 키워드2, 키워드3 / 콤마로 분류</span>
        <input type="text" name="wr_related" value="<?=$write['wr_related']?>" id="wr_related" class="frm_input" size="60">
    </td>
</tr>
<? } ?>

<? for ($i=0; $is_file && $i<$file_count; $i++) {
    $file_path = $file[$i]['path']."/".$file[$i][file];//이미지의 경로 
?>
<tr>
    <th scope="row">제품사진 #<?=$i+1?></th>
    <td>
        <input type="file" name="bf_file[]" title="파일첨부 <?=$i+1?> :  용량 <?=$upload_max_filesize?> 이하만 업로드 가능" class="frm_file frm_input">
        <? if ($is_file_content) { ?>
        <input type="text" name="bf_content[]" value="<? echo $file[$i]['bf_content']; ?>" title="파일 설명을 입력해주세요." class="frm_file frm_input" size="50">
        <? } ?>
        <? if($w == 'u' && $file[$i]['file']) { ?>
        <input type="checkbox" id="bf_file_del<?=$i?>" name="bf_file_del[<? echo $i; ?>]" value="1"> <label for="bf_file_del<?=$i?>"><? echo $file[$i]['source'].'('.$file[$i]['size'].')'; ?> 파일 삭제</label>
        <div class="rankiss_oimg">
            <a href="<?php echo G4_BBS_URL; ?>/view_image.php?fn=<?php echo $bo_table.'/'.urlencode($file[$i][file]); ?>" target="_blank"><img src="<?php echo $file_path; ?>" alt="<?php echo $file[$i]['source']; ?>"></a>
        </div>
        <? } ?>
    </td>
</tr>
<? } ?>

<? if ($is_guest) { ?>
<tr>
    <th scope="row">자동등록방지</th>
    <td>
        <?=$captcha_html?>
    </td>
</tr>
<? } ?>
</tbody>
</table>

<div class="btn_confirm">
    <p>
       작성하신 내용을 제출하시려면 <strong>작성완료</strong> 버튼을, 작성을 취소하고 목록으로 돌아가시려면 <strong>목록보기</strong> 링크를 누르세요.
    </p>
    <input type="image" src="<?=$board_skin_url?>/img/btn_write_save.gif" alt="작성완료" id="btn_submit" accesskey="s">
    <a href="./board.php?bo_table=<?=$bo_table?>"><img id="btn_list" src="<?=$board_skin_url?>/img/btn_write_list.gif" alt="목록보기"></a>
</div>

</form>

<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() {
    $(".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;
    });
});

function view_image_resize()
{
    var $img = $(".rankiss_oimg img");
    var img_wrap = $(".rankiss_oimg").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);
        }
    });
}

<?
// 관리자라면 분류 선택에 '공지' 옵션을 추가함
if ($is_admin)
{
    echo '
    if (ca_name_select = document.getElementById("ca_name")) {
        ca_name_select.options.length += 1;
        ca_name_select.options[ca_name_select.options.length-1].value = "공지";
        ca_name_select.options[ca_name_select.options.length-1].text = "공지";
    }';
}
?>

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)
{
    <? echo $editor_js; // 에디터 사용시 자바스크립트에서 내용을 폼필드로 넣어주며 내용이 입력되었는지 검사함  ?>

    var subject = "";
    var content = "";
    $.ajax({
        url: g4_bbs_url+"/filter.ajax.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;
    }

    <? echo $captcha_js; // 캡챠 사용시 자바스크립트에서 입력된 캡챠를 검사함 ?>

    return true;
}
</script>


 

ㅠㅠ그누보드 고수님들 존경합니당..

이 질문에 댓글 쓰기 :

답변 1

머지 이건 ㅋㅋㅋㅋ 질문을 하셔야지 일을 시키면 어떻게해요..

뭔가 시도하시고 잘 안되는부분을 질문하세요.

헉 그렇구나 죄송해요ㅠㅠ 전에 한 답변자분이 코드전문올리는게 더 보기편하다는분이 계셨엇는데 너무 대책없이 올렸네요제가..ㅠㅠ 앞으론 궁금한것추려서 제대로 질문올리도록하겠습니다ㅠ!!

답변을 작성하시기 전에 로그인 해주세요.
전체 95
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT