1:1문의 게시판 삽입문제로 질문드려요 채택완료
테스트 아이디 : test
테스트 비밀번호 : test
제가 디자인한 html파일을 두개로 쪼개서
각각 header.php와 footer.php로 만든다음에 1:1문의 게시판 설정 부분에서
적용을 시켜주었거든요?
먼저 리스트 화면은 제대로 출력이 되었는데
(http://paohao.dothome.co.kr/data/bbs/qalist.php">http://paohao.dothome.co.kr/data/bbs/qalist.php)
글쓰기와 글 제목을 클릭해서 들어가면
단축키 알람이라는 버튼 하나만 나오게 되네요..
이 오류는 어떤 부분을 수정해야 하는지 알려주셨으면 합니다ㅠㅠ
header.php
</strong></p><p><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank" rel="noopener noreferrer">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"><a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank" rel="noopener noreferrer">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a></a>">
<html xmlns="<a href="<a href="http://www.w3.org/1999/xhtml" target="_blank" rel="noopener noreferrer">http://www.w3.org/1999/xhtml</a>"><a href="http://www.w3.org/1999/xhtml" target="_blank" rel="noopener noreferrer">http://www.w3.org/1999/xhtml</a></a>">
<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="<a href="<a href="http://paohao.dothome.co.kr/data/css/default.css" target="_blank" rel="noopener noreferrer">http://paohao.dothome.co.kr/data/css/default.css</a>"><a href="http://paohao.dothome.co.kr/data/css/default.css" target="_blank" rel="noopener noreferrer">http://paohao.dothome.co.kr/data/css/default.css</a></a>">
<link rel="stylesheet" href="<a href="<a href="http://paohao.dothome.co.kr/data/skin/qa/basic/style.css" target="_blank" rel="noopener noreferrer">http://paohao.dothome.co.kr/data/skin/qa/basic/style.css</a>"><a href="http://paohao.dothome.co.kr/data/skin/qa/basic/style.css" target="_blank" rel="noopener noreferrer">http://paohao.dothome.co.kr/data/skin/qa/basic/style.css</a></a>">
<!--[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="<a href='<a href="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" target="_blank" rel="noopener noreferrer">http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js</a>"></script'><a href="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" target="_blank" rel="noopener noreferrer">http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js</a>"></script</a>>
<script src="<a href='<a href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js" target="_blank" rel="noopener noreferrer">http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js</a>"></script'><a href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js" target="_blank" rel="noopener noreferrer">http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js</a>"></script</a>>
<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,
});</p><p> });
$(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></p><p><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></p><p><main class="cd-main-content"></p><p> </p><p> </p><p><div id="fullpage">
<!--메인 스크립트-->
<div class="section " id="section0" style=" background:url(images/main_bg.jpg)center;">
</p><p><strong>
footer.php
</strong></p><p><strong></strong> </p><p></div>
<!--메인 스크립트 끝-->
</main> <!-- cd-main-content --></p><p> <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 --></p><p> <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 --></p><p> <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 --></p><p> <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 --></p><p> <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
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></p><p><script src="js/main.js"></script>
<!-- Resource jQuery --></p><p> </p><p></body>
</html>
</p><p> </p><p><strong>
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인
<?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('/^&/', '?', $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');
?>