서브페이지 빈공간과 최근게시물 정보
서브페이지 빈공간과 최근게시물본문
서브페이지를 만들려고 폴더를 만들고 안데 index.php파일만 만들어서 아래 그림처럼 소스를 넣었습니다.
만들때 아래 처럼하니 로고위에 빈공간이 생깁니다. 어디가 잘못된건가요?
아무리봐도 위 공간을 준 곳이없는데요...
그리고 index.php만 넣어서 그런지 최근게시물 추출도 안되구요..
서브페이지 만들시 폴더를 만들었을때 어떤 파일을 더 추가해야하나요?
head.php와 tail.php파일도 넣어 봤는데 안되더라구요....
아래소스는 index.php파일만 넣어서 한것입니다.
머리가 나빠서인가 아무리 쳐다봐도 모르겠어요... 매뉴얼도 읽어보고 했는데 ㅠㅠ
아시는분 답변 부탁드립니다.
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
<td width="43" height="57"></td>
<!-- 로고 -->
<td width="220"><a href="<?=$g4['path']?>/"><img src="<?=$g4['path']?>/img/logo.jpg" width="220" height="57" border="0"></a></td>
<td>
<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
<td> </td>
</tr>
</table>
</td>
<td width="390" align="right">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<!-- 처음으로 버튼 -->
<td width="78"><a href="<?=$g4['path']?>/"><img src="<?=$g4['path']?>/img/top_m01.gif" width="78" height="31" border="0"></a></td>
<tr>
<td width="43" height="57"></td>
<!-- 로고 -->
<td width="220"><a href="<?=$g4['path']?>/"><img src="<?=$g4['path']?>/img/logo.jpg" width="220" height="57" border="0"></a></td>
<td>
<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
<td> </td>
</tr>
</table>
</td>
<td width="390" align="right">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<!-- 처음으로 버튼 -->
<td width="78"><a href="<?=$g4['path']?>/"><img src="<?=$g4['path']?>/img/top_m01.gif" width="78" height="31" border="0"></a></td>
<? if (!$member['mb_id']) { ?>
<!-- 로그인 이전 -->
<td width="78"><a href="<?=$g4['bbs_path']?>/login.php?url=<?=$urlencode?>"><img src="<?=$g4['path']?>/img/top_m02.gif" width="78" height="31" border="0"></a></td>
<td width="78"><a href="<?=$g4['bbs_path']?>/register.php"><img src="<?=$g4['path']?>/img/top_m03.gif" width="78" height="31" border="0"></a></td>
<? } else { ?>
<!-- 로그인 이후 -->
<td width="78"><a href="<?=$g4['bbs_path']?>/logout.php"><img src="<?=$g4['path']?>/img/top_m04.gif" width="78" height="31" border="0"></a></td>
<td width="78"><a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php"><img src="<?=$g4['path']?>/img/top_m05.gif" width="78" height="31" border="0"></a></td>
<? } ?>
<!-- 최근게시물 버튼 -->
<td width="78"><a href="<?=$g4['bbs_path']?>/new.php"><img src="<?=$g4['path']?>/img/top_m06.gif" width="78" height="31" border="0"></a></td>
<!-- 로그인 이전 -->
<td width="78"><a href="<?=$g4['bbs_path']?>/login.php?url=<?=$urlencode?>"><img src="<?=$g4['path']?>/img/top_m02.gif" width="78" height="31" border="0"></a></td>
<td width="78"><a href="<?=$g4['bbs_path']?>/register.php"><img src="<?=$g4['path']?>/img/top_m03.gif" width="78" height="31" border="0"></a></td>
<? } else { ?>
<!-- 로그인 이후 -->
<td width="78"><a href="<?=$g4['bbs_path']?>/logout.php"><img src="<?=$g4['path']?>/img/top_m04.gif" width="78" height="31" border="0"></a></td>
<td width="78"><a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php"><img src="<?=$g4['path']?>/img/top_m05.gif" width="78" height="31" border="0"></a></td>
<? } ?>
<!-- 최근게시물 버튼 -->
<td width="78"><a href="<?=$g4['bbs_path']?>/new.php"><img src="<?=$g4['path']?>/img/top_m06.gif" width="78" height="31" border="0"></a></td>
</tr>
</table></td>
<td width="35"></td>
</tr>
</table>
</table></td>
<td width="35"></td>
</tr>
</table>

댓글 전체
body가 없거든요
그 폴더안에는 index파일만 있고 그 파일안에 위소스가 전부에요...
그 폴더안에는 index파일만 있고 그 파일안에 위소스가 전부에요...
상단에
<?
if(!isset($g4_path)) $g4_path = "..";
include_once("$g4_path/common.php");
include_once("$g4[path]/head.sub.php");
?>
하단에
<?
include_once("$g4[path]/tail.sub.php");
?>
이걸 추가해보세요...^^
<?
if(!isset($g4_path)) $g4_path = "..";
include_once("$g4_path/common.php");
include_once("$g4[path]/head.sub.php");
?>
하단에
<?
include_once("$g4[path]/tail.sub.php");
?>
이걸 추가해보세요...^^
상단에 이것을 적으니 (include_once("$g4[path]/head.sub.php");
2번째줄 오류라고 나옵니다. 이 태그가 2번째줄이거든요..
아무래도 서브페이지는 접어야될듯^^;;
답변 감사합니다. 주말 즐겁게 보내세요~
<?
include_once("$g4[path]/head.sub.php");
?>
2번째줄 오류라고 나옵니다. 이 태그가 2번째줄이거든요..
아무래도 서브페이지는 접어야될듯^^;;
답변 감사합니다. 주말 즐겁게 보내세요~
<?
include_once("$g4[path]/head.sub.php");
?>
소스 추가했으니 다시해보세요...^^
너무 잘되네요^^
감사합니다~~~
감사합니다~~~
감사합니다~~~