head.php 랑 index.php가 따로 놀아요 ㅠㅠ 정보
head.php 랑 index.php가 따로 놀아요 ㅠㅠ
본문

이렇게 틀을 잡았는데요
저기 하얀 빈칸안에 index.php가 들어가게 할려고 했습니다만 ;
안에 들어가지 않고 ..

이런식으로 따로 노네요 ;;
음.. 대략 어떻게 하면 좋을까나용;; ㅇㅅㅇ..
제 생각으론 head랑 index.php 수정중 잘못 된것 같은데 ;
대략 소스는 이렇습니다.
< 원본보기 했을때의 소스 >
<!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>그누보드4</title>
<link rel="stylesheet" href="./style.css" type="text/css">
</head>
<script language="javascript">
// 자바스크립트에서 사용하는 전역변수 선언
var g4_path = ".";
var g4_bbs = "bbs";
var g4_bbs_img = "img";
var g4_url = "http://127.0.0.1/gnuboard4";
var g4_is_member = "";
var g4_is_admin = "";
var g4_bo_table = "";
var g4_sca = "";
var g4_charset = "euc-kr";
var g4_cookie_domain = "";
var g4_is_gecko = navigator.userAgent.toLowerCase().indexOf("gecko") != -1;
var g4_is_ie = navigator.userAgent.toLowerCase().indexOf("msie") != -1;
</script>
<script type="text/javascript" src="./js/common.js"></script>
<body topmargin="0" leftmargin="0" >
<a name="g4_head"></a>
<!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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>臾댁? 臾몄?</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background:#FFF;
}
-->
</style>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td rowspan="2" valign="top"><embed src="http://127.0.0.1/gnuboard4/img/left_menu.swf" width="375" height="780"></embed></td>
<td valign="top"><embed src="http://127.0.0.1/gnuboard4/img/top_menu.swf" width="825" height="50"></embed></td>
</tr>
<tr>
<td valign="top"> </td>
</tr>
</table>
<script language="javascript" src="./js/wrest.js"></script>
<!-- 새창 대신 사용하는 iframe -->
<iframe width=0 height=0 name='hiddenframe' style='display:none;'></iframe>
</body>
</html>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><embed src="http://127.0.0.1/gnuboard4/img/menu_bottom.swf" width="1200" height="120"></embed></td>
</tr>
</table></body>
</html>
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding=0 cellspacing=0><tr><td valign=top>
</td></tr></table>
<!-- 메인화면 최신글 끝 -->
<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 = 912;
?>
<!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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>무제 문서</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background:#FFF;
}
-->
</style>
</head>
?>
<!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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>무제 문서</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background:#FFF;
}
-->
</style>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td rowspan="2" valign="top"><embed src="http://127.0.0.1/gnuboard4/img/left_menu.swf" width="375" height="780"></embed></td>
<td valign="top"><embed src="http://127.0.0.1/gnuboard4/img/top_menu.swf" width="825" height="50"></embed></td>
</tr>
<tr>
<td valign="top"> </td>
</tr>
</table>
<?
include_once("./_tail.php");
?>
</body>
</html>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td rowspan="2" valign="top"><embed src="http://127.0.0.1/gnuboard4/img/left_menu.swf" width="375" height="780"></embed></td>
<td valign="top"><embed src="http://127.0.0.1/gnuboard4/img/top_menu.swf" width="825" height="50"></embed></td>
</tr>
<tr>
<td valign="top"> </td>
</tr>
</table>
<?
include_once("./_tail.php");
?>
</body>
</html>
</body>
</html>
<index.php 소스>
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
include_once("./_head.php");
?>
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding=0 cellspacing=0><tr><td valign=top>
<?
// 최신글
$sql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
<table width="100%" cellpadding=0 cellspacing=0><tr><td valign=top>
<?
// 최신글
$sql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
// 사용방법
// latest(스킨, 게시판아이디, 출력라인, 글자수);
// latest(스킨, 게시판아이디, 출력라인, 글자수);
}
?>
</td></tr></table>
<!-- 메인화면 최신글 끝 -->
?>
</td></tr></table>
<!-- 메인화면 최신글 끝 -->
<?
include_once("./_tail.php");
?>
대략 요정돕니다 1천겁니다 ㅠㅠ
include_once("./_tail.php");
?>
대략 요정돕니다 1천겁니다 ㅠㅠ
댓글 전체
일단 head.php 소스가 잘못된거같습니다.
head.php 소스에서 중간쯤에 <td valign="top"> 이부분까지만 끊으시구요. 뒷부분은 삭제하시고
tail.php 를
그 이후 부분을 넣어주세요 물로 _tail.php 삽입하는 부분 삭제하시구요.
head.php 소스에서 중간쯤에 <td valign="top"> 이부분까지만 끊으시구요. 뒷부분은 삭제하시고
tail.php 를
그 이후 부분을 넣어주세요 물로 _tail.php 삽입하는 부분 삭제하시구요.