1:1문의 게시판 삽입문제로 질문드려요

1:1문의 게시판 삽입문제로 질문드려요

QA

1:1문의 게시판 삽입문제로 질문드려요

본문

테스트 아이디 : test

테스트 비밀번호 : test

 

 

제가 디자인한 html파일을 두개로 쪼개서

각각 header.php와 footer.php로 만든다음에 1:1문의 게시판 설정 부분에서

적용을 시켜주었거든요?

먼저 리스트 화면은 제대로 출력이 되었는데

(http://paohao.dothome.co.kr/data/bbs/qalist.php)

글쓰기와 글 제목을 클릭해서 들어가면

단축키 알람이라는 버튼 하나만 나오게 되네요..

이 오류는 어떤 부분을 수정해야 하는지 알려주셨으면 합니다ㅠㅠ

 

header.php


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
 <meta name="viewport" content="width=device-width, user-scalable=no" />
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <title>BoDA-I SEE [      ]</title>
 <meta name="Resource-type" content="Document" />
 <link rel="stylesheet" type="text/css" href="css/page.css" />
 <link rel="stylesheet" type="text/css" href="examples.css" />
    <link rel="stylesheet" type="text/css" href="css/animate.css" />
 <link rel="stylesheet" href="css/style.css"> <!-- Resource style -->
    <link rel="stylesheet" href="http://paohao.dothome.co.kr/data/css/default.css">
    <link rel="stylesheet" href="http://paohao.dothome.co.kr/data/skin/qa/basic/style.css">
 <!--[if IE]>
 <script type="text/javascript">
    var console = { log: function() {} };
  </script>
        <link rel="stylesheet" href="css/style2.css">
 <![endif]-->
    <!--[if lt IE 9]>
 <script type="text/javascript" src="html5shiv.js"></script>
    <![endif]-->  
 <script>
    document.createElement('header');
    document.createElement('nav');
    document.createElement('aside');
    document.createElement('hgroup');
    document.createElement('footer');
    document.createElement('article');
    document.createElement('section');
 document.createElement('main');
 document.createElement('wrap');
 </script>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
 <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
 <script type="text/javascript" src="js/page.js"></script>
 <script type="text/javascript" src="js/text_rotator.js"></script>
    <script type="text/javascript" src="js/font.js"></script>
 <script type="text/javascript">
  $(document).ready(function() {
   $('#fullpage').fullpage({
    anchors: ['firstPage', 'secondPage', '3rdPage', '4thpage', '5thpage', '6thpage'],
    menu: '#menu',
    loopTop: true,
    loopBottom: true,
    scrollBar: true,
    resize: true,
    autoScrolling:true,
    
   });
  });
   
 $(function(){ // document ready
   if (!!$('#sticky').offset()) { // make sure "#sticky" element exists
     var stickyTop = $('#sticky').offset().top; // returns number 
     $(window).scroll(function(){ // scroll event
       var windowTop = $(window).scrollTop(); // returns number 
       if (stickyTop < windowTop){
         $('#sticky').addClass("fixedtop");
       }
       else {
         $('#sticky').removeClass("fixedtop");
       }
     });
   }
 });
    </script>
<style>
#bo_list{width:70%; margin:0 auto}
</style>
</head>
<body>
<header id="sticky">
 <div class="menu">
 <div style="width:33%; float:left"><a href="#firstPage"><img style="margin-left:1em;" class="pc_logo" src="images/logo_small.png"><img style="margin-left:1em;" class="m_logo" src="images/logo_mobile.png"></a></div>
    <div style="width:34%; float:left">
     
    </div>
    <div style="width:33%; float:left">
  <a id="cd-menu-trigger" href="#0"><span class="cd-menu-text">Menu</span><span class="cd-menu-icon"></span></a>
 </div>
    </div>
</header>
<main class="cd-main-content">
 
 
<div id="fullpage">
 <!--메인 스크립트-->
 <div class="section " id="section0" style=" background:url(images/main_bg.jpg)center;">
    ​

 

 

footer.php


 
</div>
    <!--메인 스크립트 끝-->
    
    
</main> <!-- cd-main-content -->
 <nav id="cd-lateral-nav">
  <ul class="cd-navigation">
   <li class="item-has-children">
    <a href="#secondPage">회사소개</a>
            <ul class="sub-menu">
     <li><a href="#secondPage">'보다'란?</a></li>
     <li><a href="#secondPage/1">마케팅 툴</a></li>
     <li><a href="#secondPage/2">직원소개</a></li>
     <li><a href="#6thpage">오시는 길</a></li>
    </ul>
   </li> <!-- item-has-children -->
   <li class="item-has-children">
    <a href="#0">온라인 마케팅</a>
      <ul class="sub-menu">
     <li><a href="#3rdPage">키워드 마케팅</a></li>
     <li><a href="#3rdPage/1">바이럴 마케팅</a></li>
                    <li><a href="#3rdPage/2">쇼셜 마케팅</a></li>
     <li><a href="#3rdPage/3">브랜드 마케팅</a></li>
     <li><a href="#3rdPage/4">로그 분석</a></li>
    </ul>
   </li> <!-- item-has-children -->
   <li class="item-has-children">
    <a href="#0">오프라인 마케팅</a>
      <ul class="sub-menu">
     <li><a href="#4thpage">지면 광고</a></li>
     <li><a href="#4thpage/1">옥외 광고</a></li>
     <li><a href="#4thpage/2">매체 광고</a></li>
    </ul>
   </li> <!-- item-has-children -->
            
            <li class="item-has-children">
    <a href="#0">Web / Mobile</a>
    <ul class="sub-menu">
     <li><a href="#5thpage">랜딩페이지 제작</a></li>
     <li><a href="#5thPage/1">홈페이지 제작</a></li>
     <li><a href="#5thPage/2">모바일페이지 제작</a></li>
    </ul>
   </li> <!-- item-has-children -->
  </ul> <!-- cd-navigation -->
  <ul class="cd-navigation cd-single-item-wrapper">
   <li><a href="#0">Tour</a></li>
   <li><a href="#0">Login</a></li>
   <li><a href="#0">Register</a></li>
   <li><a href="#0">Pricing</a></li>
   <li><a href="#0">Support</a></li>
  </ul> <!-- cd-single-item-wrapper -->
  <div class="cd-navigation socials">
   <a class="cd-twitter cd-img-replace" href="#0">Twitter</a>
   <a class="cd-github cd-img-replace" href="#0">Git Hub</a>
   <a class="cd-facebook cd-img-replace" href="#0">Facebook</a>
   <a class="cd-google cd-img-replace" href="#0">Google Plus</a>
  </div> <!-- socials -->
        
        <ul class="cd-navigation cd-single-item-wrapper" style="bottom: 0px; position: absolute; width:100%;">
   <li style="padding-left:32px"><img src="images/logo_mobile.png" /></li>
   <li><a href="#0" style="line-height:1.2; font-weight:600;">2014.BODA<br>ALL RIGHT RESEVED</a></li>
   <li><a href="#0" style="font-size:0.5em">Design By PAOHAO</a></li>
  </ul> <!-- cd-single-item-wrapper -->
 </nav>
<script src="js/main.js"></script>
 <!-- Resource jQuery -->
 
</body>
</html>
​
 

 

 

이 질문에 댓글 쓰기 :

답변 1

헤더 푸터에 php구문이 하나도 안들어가는데, qawrite.php 내용을 보여주셔야 알 것 같습니다. 

제가 실력이 없어서.. 기본 php는 거의 안걸드리자는 주의라..


<?php
include_once('./_common.php');
include_once(G5_EDITOR_LIB);

if($w != '' && $w != 'u' && $w != 'r') {
    alert('올바른 방법으로 이용해 주십시오.');
}

/*if($is_guest)
    alert('회원이시라면 로그인 후 이용해 보십시오.', './login.php?url='.urlencode(G5_BBS_URL.'/qalist.php'));*/

$qaconfig = get_qa_config();

$g5['title'] = $qaconfig['qa_title'];
include_once('./qahead.php');

$skin_file = $qa_skin_path.'/write.skin.php';

if(is_file($skin_file)) {
    /*==========================
    $w == a : 답변
    $w == r : 추가질문
    $w == u : 수정
    ==========================*/

    if($w == 'u' || $w == 'r') {
        $sql = " select * from {$g5['qa_content_table']} where qa_id = '$qa_id' ";
        if(!$is_admin) {
            $sql .= " and mb_id = '{$member['mb_id']}' ";
        }

        $write = sql_fetch($sql);

        if($w == 'u') {
            if(!$write['qa_id'])
                alert('게시글이 존재하지 않습니다.\\n삭제되었거나 자신의 글이 아닌 경우입니다.');

            if(!$is_admin) {
                if($write['qa_type'] == 0 && $write['qa_status'] == 1)
                    alert('답변이 등록된 문의글은 수정할 수 없습니다.');

                if($write['mb_id'] != $member['mb_id'])
                    alert('게시글을 수정할 권한이 없습니다.\\n\\n올바른 방법으로 이용해 주십시오.', G5_URL);
            }
        }
    }

    // 분류
    $category_option = '';
    if(trim($qaconfig['qa_category'])) {
        $category = explode('|', $qaconfig['qa_category']);
        for($i=0; $i<count($category); $i++) {
            $category_option .= option_selected($category[$i], $write['qa_category']);
        }
    } else {
        alert('1:1문의 설정에서 분류를 설정해 주십시오');
    }

    $is_dhtml_editor = false;
    // 모바일에서는 DHTML 에디터 사용불가
    if ($config['cf_editor'] && $qaconfig['qa_use_editor'] && !G5_IS_MOBILE) {
        $is_dhtml_editor = true;
    }

    // 추가질문에서는 제목을 공백으로
    if($w == 'r')
        $write['qa_subject'] = '';

    $content = '';
    if ($w == '') {
        $content = $qaconfig['qa_insert_content'];
    } else if($w == 'r') {
        if($is_dhtml_editor)
            $content = '<div><br><br><br>====== 이전 답변내용 =======<br></div>';
        else
            $content = "\n\n\n\n====== 이전 답변내용 =======\n";

        $content .= get_text($write['qa_content'], 0);
    } else {
        $content = get_text($write['qa_content'], 0);
    }

    $editor_html = editor_html('qa_content', $content, $is_dhtml_editor);
    $editor_js = '';
    $editor_js .= get_editor_js('qa_content', $is_dhtml_editor);
    $editor_js .= chk_editor_js('qa_content', $is_dhtml_editor);

    $upload_max_filesize = number_format($qaconfig['qa_upload_size']) . ' 바이트';

    $html_value = '';
    if ($write['qa_html']) {
        $html_checked = 'checked';
        $html_value = $write['qa_html'];

        if($w == 'r' && $write['qa_html'] == 1 && !$is_dhtml_editor)
            $html_value = 2;
    }

    $is_email = false;
    $req_email = '';
    if($qaconfig['qa_use_email']) {
        $is_email = true;

        if($qaconfig['qa_req_email'])
            $req_email = 'required';

        if($w == '' || $w == 'r')
            $write['qa_email'] = $member['mb_email'];

        if($w == 'u' && $is_admin && $write['qa_type'])
            $is_email = false;
    }

    $is_hp = false;
    $req_hp = '';
    if($qaconfig['qa_use_hp']) {
        $is_hp = true;

        if($qaconfig['qa_req_hp'])
            $req_hp = 'required';

        if($w == '' || $w == 'r')
            $write['qa_hp'] = $member['mb_hp'];

        if($w == 'u' && $is_admin && $write['qa_type'])
            $is_hp = false;
    }

    $list_href = G5_BBS_URL.'/qalist.php'.preg_replace('/^&amp;/', '?', $qstr);

    $action_url = https_url(G5_BBS_DIR).'/qawrite_update.php';

    include_once($skin_file);
} else {
    echo '<div>'.str_replace(G5_PATH.'/', '', $skin_file).'이 존재하지 않습니다.</div>';
}

include_once('./qatail.php');
?>

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

회원로그인

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