메인에 보이는 게시판내용을 클릭하면... 상단과 좌측/우측이 없어지고 딸랑 게시판만 출력이됩니다... 정보
메인에 보이는 게시판내용을 클릭하면... 상단과 좌측/우측이 없어지고 딸랑 게시판만 출력이됩니다...본문
http://www.sir.co.kr/bbs/tb.php/g4_qa/62687
<--제가 올려놨었는데요... 방법을 도무지 알수없어서.. 다시올립니다.
http://www.totalphil.kr <--토탈필리핀 홈페이지 입니다..
메인에 보이는 게시판을 보면... 게시판을 클릭하면... 상단메뉴와 우측/좌측 메뉴들이 분리 되어서 출력이 됩니다..
방법좀 알려주세요..
먼저.. head.php 소스는 아래처럼 되어있구요
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
$table_width = 1000;
?>
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
$table_width = 1000;
?>
<!-- 상단 배경 시작 -->
<!-- 상단 배경 끝 -->
<!-- 상단 배경 끝 -->
<!-- 상단 로고 및 버튼 시작 -->
<table width="<?=$table_width?>" border="0" cellspacing="3" cellpadding="0">
<tr>
<td width="59%"> </td>
<td width="4%"> </td>
<td width="16%"> </td>
<td width="14%">토탈필을 시작페이지로</td>
<td width="7%">즐겨찾기</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../img/top_menu.gif" usemap="#main_top" border="0" width="1000" height="51"></td>
</tr>
</table>
<!-- 상단 로고 및 버튼 끝 -->
<!-- 검색 시작 -->
<script language="JavaScript">
function fsearchbox_submit(f)
{
if (f.stx.value == '')
{
alert("검색어를 입력하세요.");
f.stx.select();
f.stx.focus();
return;
}
<table width="<?=$table_width?>" border="0" cellspacing="3" cellpadding="0">
<tr>
<td width="59%"> </td>
<td width="4%"> </td>
<td width="16%"> </td>
<td width="14%">토탈필을 시작페이지로</td>
<td width="7%">즐겨찾기</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../img/top_menu.gif" usemap="#main_top" border="0" width="1000" height="51"></td>
</tr>
</table>
<!-- 상단 로고 및 버튼 끝 -->
<!-- 검색 시작 -->
<script language="JavaScript">
function fsearchbox_submit(f)
{
if (f.stx.value == '')
{
alert("검색어를 입력하세요.");
f.stx.select();
f.stx.focus();
return;
}
/*
// 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
var cnt = 0;
for (var i=0; i<f.stx.value.length; i++)
{
if (f.stx.value.charAt(i) == ' ')
cnt++;
}
// 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
var cnt = 0;
for (var i=0; i<f.stx.value.length; i++)
{
if (f.stx.value.charAt(i) == ' ')
cnt++;
}
if (cnt > 1)
{
alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
f.stx.select();
f.stx.focus();
return;
}
*/
{
alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
f.stx.select();
f.stx.focus();
return;
}
*/
f.action = "<?=$g4['bbs_path']?>/search.php";
f.submit();
}
</script>
<!-- 검색 끝 -->
f.submit();
}
</script>
<!-- 검색 끝 -->
<div style='height:18px;'></div>
<style type="text/css">
#middiv {
width:<?=$table_width?>px;
position:relative;
margin:0px auto;
vertical-align:top;
float:left;
}
#middiv #mleft { width:220px; float:left; padding:0 0 0 43; }
#middiv #mright { width:683px; float:left; padding:0 0 0 15; }
</style>
#middiv {
width:<?=$table_width?>px;
position:relative;
margin:0px auto;
vertical-align:top;
float:left;
}
#middiv #mleft { width:220px; float:left; padding:0 0 0 43; }
#middiv #mright { width:683px; float:left; padding:0 0 0 15; }
</style>
<table width=684 cellpadding=2 cellspacing=2 border=0>
<tr>
<!-- 왼쪽 메뉴 -->
<td width=190 valign=top>
<?=outlogin("simple"); // 외부 로그인 ?>
<br>
<table width="190" height="20" cellspacing="0" cellpadding="0">
<form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);">
<!-- <input type="hidden" name="sfl" value="concat(wr_subject,wr_content)"> -->
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="hidden" name="sop" value="and">
<tr>
<td width="1" height="25"> </td>
<td width="145" valign="middle">
<div align="center">
<input name="stx" maxlengt=20 style="BORDER : 1px solid; width: 125px; HEIGHT: 20px; BACKGROUND-COLOR: #F4F4F4" maxlength="24">
</div>
</td>
<td width="48">
<input type="image" src="<?=$g4['path']?>/img/search_button.gif" border="0" name="image" width="40" height="20">
</td>
</tr>
</form>
</table>
<br>
<?=popular("goodkey",10)?>
<?=poll("basic"); // 설문조사 ?>
<?=visit("basic"); // 방문자수 ?>
<?=connect(); // 현재 접속자수 ?>
<? include_once("$g4[path]/member_new.php"); ?>
</td>
<td width=18></td>
<!-- 중간 -->
<td width=644 valign=top>
<map name="main_top">
<area shape="rect" coords="26,1,185,48" href="../">
<area shape="rect" coords="234,14,291,32" href="../commpany">
<area shape="rect" coords="303,14,359,32" href="../study">
<area shape="rect" coords="375,15,434,32" href="../traval">
<area shape="rect" coords="450,14,509,32" href="../imin">
<area shape="rect" coords="525,14,578,32" href="../visa">
<area shape="rect" coords="595,15,647,32" href="../marry">
<area shape="rect" coords="664,15,730,33" href="../news">
<area shape="rect" coords="745,15,800,33" href="../commu">
</map>
<tr>
<!-- 왼쪽 메뉴 -->
<td width=190 valign=top>
<?=outlogin("simple"); // 외부 로그인 ?>
<br>
<table width="190" height="20" cellspacing="0" cellpadding="0">
<form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);">
<!-- <input type="hidden" name="sfl" value="concat(wr_subject,wr_content)"> -->
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="hidden" name="sop" value="and">
<tr>
<td width="1" height="25"> </td>
<td width="145" valign="middle">
<div align="center">
<input name="stx" maxlengt=20 style="BORDER : 1px solid; width: 125px; HEIGHT: 20px; BACKGROUND-COLOR: #F4F4F4" maxlength="24">
</div>
</td>
<td width="48">
<input type="image" src="<?=$g4['path']?>/img/search_button.gif" border="0" name="image" width="40" height="20">
</td>
</tr>
</form>
</table>
<br>
<?=popular("goodkey",10)?>
<?=poll("basic"); // 설문조사 ?>
<?=visit("basic"); // 방문자수 ?>
<?=connect(); // 현재 접속자수 ?>
<? include_once("$g4[path]/member_new.php"); ?>
</td>
<td width=18></td>
<!-- 중간 -->
<td width=644 valign=top>
<map name="main_top">
<area shape="rect" coords="26,1,185,48" href="../">
<area shape="rect" coords="234,14,291,32" href="../commpany">
<area shape="rect" coords="303,14,359,32" href="../study">
<area shape="rect" coords="375,15,434,32" href="../traval">
<area shape="rect" coords="450,14,509,32" href="../imin">
<area shape="rect" coords="525,14,578,32" href="../visa">
<area shape="rect" coords="595,15,647,32" href="../marry">
<area shape="rect" coords="664,15,730,33" href="../news">
<area shape="rect" coords="745,15,800,33" href="../commu">
</map>
그리고 tail.php의 내용은 다음과 같습니다...
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 사용자 화면 우측과 하단을 담당하는 페이지입니다.
// 우측, 하단 화면을 꾸미려면 이 파일을 수정합니다.
?>
// 우측, 하단 화면을 꾸미려면 이 파일을 수정합니다.
?>
</td>
<td width=40> </td>
</tr>
</table>
<div style='height:5px;'></div>
<div style="clear:both;"></div>
<td width=40> </td>
</tr>
</table>
<div style='height:5px;'></div>
<div style="clear:both;"></div>
<!-- 카피라이트 시작 -->
<div style='float:left;'>
<table width="100%" border="0" cellspacing="0" cellpadding="10" height="80">
<tr>
<td background="../img/buttom.gif"> </td>
</tr>
</table>
</div>
<!-- 카피라이트 끝 -->
<div style='float:left;'>
<table width="100%" border="0" cellspacing="0" cellpadding="10" height="80">
<tr>
<td background="../img/buttom.gif"> </td>
</tr>
</table>
</div>
<!-- 카피라이트 끝 -->
<?
include_once("$g4[path]/tail.sub.php");
?>
include_once("$g4[path]/tail.sub.php");
?>
댓글 전체
http://www.morssola.com/bbs/board.php?bo_table=g4_tip&wr_id=19&page=4
위 링크를 참조하여 게시판의 상, 하단 파일에
./_head.php
./_tail.php
를 입력하시기 바랍니다.
위 링크를 참조하여 게시판의 상, 하단 파일에
./_head.php
./_tail.php
를 입력하시기 바랍니다.
불친절한아원씨 처럼 해봤는데요..
select * from g4_write_send_mail where wr_is_comment = 0 order by mb_datetime desc limit 0, 15
1054 : Unknown column 'mb_datetime' in 'order clause'
error file : /bbs/board.php
이런 메세지 가 나오네요.. 어디부분이 잘못되었나요? ㅜㅜ
select * from g4_write_send_mail where wr_is_comment = 0 order by mb_datetime desc limit 0, 15
1054 : Unknown column 'mb_datetime' in 'order clause'
error file : /bbs/board.php
이런 메세지 가 나오네요.. 어디부분이 잘못되었나요? ㅜㅜ
mb_datetime 부분을 wr_datetime 로 바꿔보시죠...
head 아니면,,tail 부분입니까?
제가 초보라서..그러니.. 초보자가 알수있게 쉽게 해주세요.ㅜㅜ
제가 초보라서..그러니.. 초보자가 알수있게 쉽게 해주세요.ㅜㅜ
./_head.php ./_tail.php 를 붙이고 나니깐...
select * from g4_write_send_mail where wr_is_comment = 0 order by mb_datetime desc limit 0, 15
1054 : Unknown column 'mb_datetime' in 'order clause'
error file : /bbs/board.php
에러문구가 뜹니..
관리자 모드 게시판에서 ./_head.php ./_tail.php 를 붙이지 않으면 에러가 뜨지 않는데요... ㅜㅜ 미치겠습니당
select * from g4_write_send_mail where wr_is_comment = 0 order by mb_datetime desc limit 0, 15
1054 : Unknown column 'mb_datetime' in 'order clause'
error file : /bbs/board.php
에러문구가 뜹니..
관리자 모드 게시판에서 ./_head.php ./_tail.php 를 붙이지 않으면 에러가 뜨지 않는데요... ㅜㅜ 미치겠습니당