head.php 내용인데..좌측메뉴 밑으로 메인내용이 갑니다.고수님들 부탁 정보
head.php 내용인데..좌측메뉴 밑으로 메인내용이 갑니다.고수님들 부탁본문
head.php 내용인데..좌측메뉴 밑으로 메인내용이 갑니다.고수님들 부탁 합니다.
제가 초보라서 좀 쉽게 설명 부탁 드립니다.
아래는 제 head.php 입니다.

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
//$g4[body_script] = "onLoad = \"preload('$g4[path]/img/bg_arrow.gif', '$g4[path]/img/menu_arrow.gif', '$g4[path]/img/bg_submenu.gif', '$g4[path]/img/menu_line.gif');\"";
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
//$g4[body_script] = "onLoad = \"preload('$g4[path]/img/bg_arrow.gif', '$g4[path]/img/menu_arrow.gif', '$g4[path]/img/bg_submenu.gif', '$g4[path]/img/menu_line.gif');\"";
//$table_width = 900;
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 = 900;
?>
?>
<script language="JavaScript">
var save_layer = null;
function layer_view(link_id, menu_id, opt, x, y)
{
var link = document.getElementById(link_id);
var menu = document.getElementById(menu_id);
var save_layer = null;
function layer_view(link_id, menu_id, opt, x, y)
{
var link = document.getElementById(link_id);
var menu = document.getElementById(menu_id);
//for (i in link) { document.write(i + '<br/>'); } return;
if (save_layer != null)
{
save_layer.style.display = "none";
selectBoxVisible();
}
{
save_layer.style.display = "none";
selectBoxVisible();
}
if (link_id == '')
return;
return;
if (opt == 'hide')
{
menu.style.display = 'none';
selectBoxVisible();
}
else
{
x = parseInt(x);
y = parseInt(y);
menu.style.left = get_left_pos(link) + x;
menu.style.top = get_top_pos(link) + link.offsetHeight + y;
menu.style.display = 'block';
}
{
menu.style.display = 'none';
selectBoxVisible();
}
else
{
x = parseInt(x);
y = parseInt(y);
menu.style.left = get_left_pos(link) + x;
menu.style.top = get_top_pos(link) + link.offsetHeight + y;
menu.style.display = 'block';
}
save_layer = menu;
}
}
function preload() {
if (!document.images) return;
var ar = new Array();
var arguments = preload.arguments;
for (var i = 0; i < arguments.length; i++) {
ar[i] = new Image();
ar[i].src = arguments[i];
}
//alert(arguments.length);
}
if (!document.images) return;
var ar = new Array();
var arguments = preload.arguments;
for (var i = 0; i < arguments.length; i++) {
ar[i] = new Image();
ar[i].src = arguments[i];
}
//alert(arguments.length);
}
document.onload = preload('<?=$g4[path]?>/img/bg_arrow.gif', '<?=$g4[path]?>/img/menu_arrow.gif', '<?=$g4[path]?>/img/bg_submenu.gif', '<?=$g4[path]?>/img/menu_line.gif');
</script>
<script language="javascript" src="<?=$g4[path]?>/js/sideview.js"></script>
<script language="javascript" src="./js/common.js"></script>
<link rel="stylesheet" href="./style.css" type="text/css">
<style>
.bg_menu1 { height:20px;
border-left-width:1px; border-left-style:solid; border-left-color:#9DADE5;
border-right-width:1px; border-right-style:solid; border-right-color:#9DADE5;
padding-left:15px;
padding-right:15px;
background-color:#F6FAFF; }
.bg_line1 { height:1px; background-color:#9DADE5; }
</script>
<script language="javascript" src="<?=$g4[path]?>/js/sideview.js"></script>
<script language="javascript" src="./js/common.js"></script>
<link rel="stylesheet" href="./style.css" type="text/css">
<style>
.bg_menu1 { height:20px;
border-left-width:1px; border-left-style:solid; border-left-color:#9DADE5;
border-right-width:1px; border-right-style:solid; border-right-color:#9DADE5;
padding-left:15px;
padding-right:15px;
background-color:#F6FAFF; }
.bg_line1 { height:1px; background-color:#9DADE5; }
.bg_title { background-image:url('<?=$g4[path]?>/img/lm_category.gif');
width:179px;
height:48px;
padding-left:25px;
padding-top:4px; }
.bg_menu2 { height:20px;
padding-left:25px; }
.bg_line2 { background-image:url('<?=$g4[path]?>/img/dot.gif'); height:3px; }
</style>
<style type="text/css">
body { margin-left:0px; text-align:center;}
#shead, #smenu, #smain, #stail {
width:900px;
position:relative;
margin:0 auto;
text-align:left;
}
width:179px;
height:48px;
padding-left:25px;
padding-top:4px; }
.bg_menu2 { height:20px;
padding-left:25px; }
.bg_line2 { background-image:url('<?=$g4[path]?>/img/dot.gif'); height:3px; }
</style>
<style type="text/css">
body { margin-left:0px; text-align:center;}
#shead, #smenu, #smain, #stail {
width:900px;
position:relative;
margin:0 auto;
text-align:left;
}
#shead{height:60px;}
#shead #l, #shead #c, #shead #r{float:left;}
#shead #l{width:180px;}
#shead #c{width:420px;text-align:center;padding-top:10px;}
#shead #r{width:300px;text-align:right;padding-top:10px;}
#shead #l, #shead #c, #shead #r{float:left;}
#shead #l{width:180px;}
#shead #c{width:420px;text-align:center;padding-top:10px;}
#shead #r{width:300px;text-align:right;padding-top:10px;}
#smenu{height:35px;}
#smain{height:450px;}
#smain #l, #smain #c, #smain #r{float:left}
#smain #l{width:180px;}
#smain #c{width:10px;}
#smain #r{width:710px;}
#smain #l, #smain #c, #smain #r{float:left}
#smain #l{width:180px;}
#smain #c{width:10px;}
#smain #r{width:710px;}
#stail{height:100px;background-color:#f5f5f5;}
#stail #l, #stail #c, #stail #r{float:left}
#stail #l{width:190px; padding:10px 0 0 0;}
#stail #r{width:710px; padding:10px 0 0 0;}
</style>
#stail #l, #stail #c, #stail #r{float:left}
#stail #l{width:190px; padding:10px 0 0 0;}
#stail #r{width:710px; padding:10px 0 0 0;}
</style>
<!-- 상단 배경 시작 -->
<table width="900" cellpadding=0 cellspacing=0 >
<!-- 상단 테이블 -->
<tr>
<!-- 로고 -->
<td rowspan=2 height=60 width="217"><a href='<?=$g4[path]?>/'><img src='<?=$g4[path]?>/img/logo.gif' border=0 ></a></td>
<!-- 로고 -->
<!-- 상단 메뉴 -->
<td align=right valign=bottom width="683">
<?
$curr = sql_fetch(" select sum(IF(mb_id<>'',1,0)) as mb_cnt, count(*) as total_cnt from $g4[login_table] where mb_id <> '$config[cf_admin]' ");
?>
<span class=small><a href="<?=$g4[bbs_path]?>/current_connect.php">현재접속자(<?=$curr[total_cnt]?>)</a> :
<a href="<?=$g4[bbs_path]?>/new.php">최근게시물</a> :
<a href="<?=$g4[path]?>/customer/mypage.php">마이페이지</a> :
<a href='<?=$g4[path]?>/customer/support.php'>고객지원</a>
</span>
</td>
<!-- 상단 메뉴 -->
</tr>
<tr>
<form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);">
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="hidden" name="sop" value="and">
<td align=right width="683"><input type=text size=15 class=ed name=stx style='height:17px;'> <input type=image src='<?=$g4[path]?>/img/search.gif' border=0 align=absmiddle width=28 height=16>
<script language="JavaScript">
function fsearchbox_submit(f)
{
if (f.stx.value == '')
{
alert("검색어를 입력하세요.");
f.stx.select();
f.stx.focus();
return;
}
<!-- 상단 테이블 -->
<tr>
<!-- 로고 -->
<td rowspan=2 height=60 width="217"><a href='<?=$g4[path]?>/'><img src='<?=$g4[path]?>/img/logo.gif' border=0 ></a></td>
<!-- 로고 -->
<!-- 상단 메뉴 -->
<td align=right valign=bottom width="683">
<?
$curr = sql_fetch(" select sum(IF(mb_id<>'',1,0)) as mb_cnt, count(*) as total_cnt from $g4[login_table] where mb_id <> '$config[cf_admin]' ");
?>
<span class=small><a href="<?=$g4[bbs_path]?>/current_connect.php">현재접속자(<?=$curr[total_cnt]?>)</a> :
<a href="<?=$g4[bbs_path]?>/new.php">최근게시물</a> :
<a href="<?=$g4[path]?>/customer/mypage.php">마이페이지</a> :
<a href='<?=$g4[path]?>/customer/support.php'>고객지원</a>
</span>
</td>
<!-- 상단 메뉴 -->
</tr>
<tr>
<form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);">
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="hidden" name="sop" value="and">
<td align=right width="683"><input type=text size=15 class=ed name=stx style='height:17px;'> <input type=image src='<?=$g4[path]?>/img/search.gif' border=0 align=absmiddle width=28 height=16>
<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>
</td>
</form>
<!-- 전체 검색 end -->
</tr>
</table>
f.submit();
}
</script>
</td>
</form>
<!-- 전체 검색 end -->
</tr>
</table>
<table width='900' cellpadding=0 cellspacing=0 style='border-bottom:1px solid #58B4E9;'>
<tr><td bgcolor='#AFBCE9' height=1></td></tr>
<tr><td bgcolor='#899CDF' height=1></td></tr>
<tr><td bgcolor='#6B82D6' height=31>
<table width='100%' cellpadding=0 cellspacing=0>
<tr>
<td width=170 style='padding-left:12px;' align=center>
<a href="<?=$g4['bbs_path']?>/board.php?bo_table=philzipcom_notice"><span style='color:yellow; font-weight:bold;'><u>상품광고란</u></span></a>
</td>
<td width=90 align=center><b><font color='#ffffff'>홈</font></b></td>
<td width=90 align=center><b><font color='#ffffff'>연수/유학ZIP</font></b></td>
<td width=90 align=center><b><font color='#ffffff'>여행ZIP</font></b></td>
<td width=90 align=center><b><font color='#ffffff'>자료ZIP</font></b></td>
<td width=90 align=center><b><font color='#ffffff'>이야기ZIP</font></b></td>
<td width=90 align=center><b><font color='#ffffff'>공지ZIP</font></b></td>
<td width=90 align=center><b><font color='#ffffff'>필집닷컴소개</font></b></td>
<td width=''> </td>
</tr>
</table>
</td></tr>
<tr><td bgcolor='#899CDF' height=1></td></tr>
<tr><td bgcolor='#f8faff' height="27">
<table cellpadding=0 cellspacing=0>
<tr><td align=center><?=outlogin("phil_basic")?></td></tr>
</table>
</td></tr>
</table>
<table width='179' cellpadding=0 cellspacing=0 align=center valign=top>
<!-- 메인 테이블 -->
<tr>
<td width=10></td>
<tr><td bgcolor='#AFBCE9' height=1></td></tr>
<tr><td bgcolor='#899CDF' height=1></td></tr>
<tr><td bgcolor='#6B82D6' height=31>
<table width='100%' cellpadding=0 cellspacing=0>
<tr>
<td width=170 style='padding-left:12px;' align=center>
<a href="<?=$g4['bbs_path']?>/board.php?bo_table=philzipcom_notice"><span style='color:yellow; font-weight:bold;'><u>상품광고란</u></span></a>
</td>
<td width=90 align=center><b><font color='#ffffff'>홈</font></b></td>
<td width=90 align=center><b><font color='#ffffff'>연수/유학ZIP</font></b></td>
<td width=90 align=center><b><font color='#ffffff'>여행ZIP</font></b></td>
<td width=90 align=center><b><font color='#ffffff'>자료ZIP</font></b></td>
<td width=90 align=center><b><font color='#ffffff'>이야기ZIP</font></b></td>
<td width=90 align=center><b><font color='#ffffff'>공지ZIP</font></b></td>
<td width=90 align=center><b><font color='#ffffff'>필집닷컴소개</font></b></td>
<td width=''> </td>
</tr>
</table>
</td></tr>
<tr><td bgcolor='#899CDF' height=1></td></tr>
<tr><td bgcolor='#f8faff' height="27">
<table cellpadding=0 cellspacing=0>
<tr><td align=center><?=outlogin("phil_basic")?></td></tr>
</table>
</td></tr>
</table>
<table width='179' cellpadding=0 cellspacing=0 align=center valign=top>
<!-- 메인 테이블 -->
<tr>
<td width=10></td>
<br><!-- 왼쪽 메뉴 -->
<td width=179 valign=top>
<div id=smain onmouseover="layer_view('','','','','')">
<div id=l>
<td width=179 valign=top>
<div id=smain onmouseover="layer_view('','','','','')">
<div id=l>
<table width=179 cellpadding=0 cellspacing=0 background="<?=$g4[path]?>/img/ca_bg.gif"><tr><td class=bg_title height="23"><a href="./customer/support.php"><font color='#0f296e'><b>연수/유학ZIP</b></font></a></td></tr><tr><td class=bg_menu2 ><a href="./customer/solution_stipulation.php" >연수</a></td></tr><tr><td class=bg_line2></td></tr><tr><td class=bg_menu2 ><a href="<?=$g4['bbs_path']?>/board.php?bo_table=cu_buy" >유학</a></td></tr><tr><td class=bg_line2></td></tr><tr><td class=bg_menu2 ><a href="./customer/purchase.php" >그림</a></td></tr><tr><td class=bg_line2></td></tr><tr><td class=bg_menu2 ><a href="./customer/mypage.php" >상품</a></td></tr><tr><td><img src="<?=$g4[path]?>/img/ca_bottom.gif"></td></tr></table>
<!-- 왼쪽 메뉴 end -->
</div>
</div>
</td>
<td width=18 valign=top></td>
<!-- 중간 -->
<td width=863 valign=top>
</td>
</tr>
</table>
<td width=18 valign=top></td>
<!-- 중간 -->
<td width=863 valign=top>
</td>
</tr>
</table>
댓글 전체
<?
include 'head.php';
echo 'XXXXXXXXXXXXXXXXXX';
include 'tail.php'
?>
이렇게 파일 하나 만드시고
테이블 태그 확인해 보세요.
<table border=1>로 해 보시면 도움이 될 겁니다.
include 'head.php';
echo 'XXXXXXXXXXXXXXXXXX';
include 'tail.php'
?>
이렇게 파일 하나 만드시고
테이블 태그 확인해 보세요.
<table border=1>로 해 보시면 도움이 될 겁니다.
답변 고맙습니다.
근디 echo 에서 xxxxxxxx 요게 무슨뜻인지?
근디 echo 에서 xxxxxxxx 요게 무슨뜻인지?
단순 위치 확인용입니다.
echo '<p style="width:100%;height:100%;background-color:red;">XXXXXX</p>';
가 더 쓸모 있겠네요.
echo '<p style="width:100%;height:100%;background-color:red;">XXXXXX</p>';
가 더 쓸모 있겠네요.
잘안되내여.......초자라 미치것습니다.
<?
include 'head.php';
echo 'XXXXXXXXXXXXXXXXXX';
include 'tail.php'
?>
이렇게 만드셨으면 링크라도......
include 'head.php';
echo 'XXXXXXXXXXXXXXXXXX';
include 'tail.php'
?>
이렇게 만드셨으면 링크라도......
답변이 없네여
제가 생각하는 문제점은 테이블 태그가 잘못 쓰여졌나 확인해 보시라는 것입니다.
<?
include 'head.php';
echo 'XXXXXXXXXXXXXXXXXX';
include 'tail.php'
?>
이런 것도 그런 의미로 테스트 해 보시라고 한 거구요.
<?
include 'head.php';
echo 'XXXXXXXXXXXXXXXXXX';
include 'tail.php'
?>
이런 것도 그런 의미로 테스트 해 보시라고 한 거구요.
head.php의 제일 마지막에 있는 </tb>테그부터 </table>까지를 잘라서
Tail.php의 제일 윗줄에 붙여 넣어 보세요.
제가 하는 방식과는 다르긴 합니다만..
Tail.php의 제일 윗줄에 붙여 넣어 보세요.
제가 하는 방식과는 다르긴 합니다만..