좌측메뉴와 인덱스 구성이 어렵네요 도와주세요 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

좌측메뉴와 인덱스 구성이 어렵네요 도와주세요 정보

좌측메뉴와 인덱스 구성이 어렵네요 도와주세요

본문

좌측메뉴와 인덱스에 이미지 삽입중인데
제 실력으론 좀 어렵네요 ~~
보시고 뭐가문제인지 살펴주세요 부탁합니다
 
처음접해보는 그누보드라 깜깜하네요
포인트가 몇점안되서 500점만 드립니다 죄송 ㅎㅎㅎ
 
//head.php
 
<?
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");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
$table_width = 1024;
?>
<!-- 상단 배경 시작 -->
<center>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="<?=$table_width?>" border="0" cellspacing="0" cellpadding="0">
 
 <tr>
  <td width="169" height="150" rowspan="2"><img src="<?=$g4['path']?>/edo/main_01.jpg"></td>
   
  <td width="855" height="66"><img src="<?=$g4['path']?>/edo/main_02.jpg"></td>
   
  
  <td>
   <img src="<?=$g4['path']?>/edo/spacer.gif" width="1" height="66"></td></tr> 
 
 <tr>
  <td width="855" height="84"><img src="<?=$g4['path']?>/edo/main_03.jpg"></td>
  <td>
   <img src="<?=$g4['path']?>/edo/spacer.gif" width="1" height="84"></td>
 </tr></table> 
  
  
    
 
<table width='<?=$table_width?>' cellpadding="0" cellspacing="0" border="0">
<tr>
  
    <!-- 왼쪽 메뉴-->
 <td width=169 valign=top>
 <table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
 <td width="169" height="142" valign="top">
 <?=outlogin("red"); // 외부 로그인 ?>
</td>
</tr>

<tr>
<td width="169" align="center" valign="top"><? include_once("$g4[path]/php/left_b.php"); ?>
</td>
</tr>
</table></td>
 
<td width="855" valign="top">
 
//index.php
 
 
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding="0" cellspacing="0"><tr><td valign=top>
<tr>
<td width="307" height="505" valign="top"><? include_once("$g4[path]/php/main_image.php"); ?></td>
</tr>
 

</table>
<!-- 메인화면 최신글 끝 -->
<?
include_once("./_tail.php");
?>
  • 복사

댓글 전체

<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding="0" cellspacing="0"><tr><td valign=top>
<tr>
<td width="307" height="505" valign="top"><? include_once("$g4[path]/php/main_image.php"); ?></td>
</tr>
</table>

이 부분에서 </tr>을 안 닫으신것 같습니다..
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding="0" cellspacing="0"><tr><td valign=top>
<tr>
<td width="307" height="505" valign="top"><? include_once("$g4[path]/php/main_image.php"); ?></td>
</tr>
 

</table>
<!-- 메인화면 최신글 끝 -->이 부분으로 추정되네욧

메인화면과 좌측 메뉴는 같은 <table> 에서 같은 <tr> 한 라인으로 되어있고 첫번째 <td></td> <--요기는 좌측메뉴 약 170px로 그 속에 <div> 또는 테이블을 삽입하고, 두번째 <td></td>사이에는 메인화면인데..<table>를 삽입해서 나타내고 있는 것 같습니다. 현재나타난 테이블을 보면 하나의 라인<tr>을 두개의 <td>로 양쪽으로 구분 하실려고 한 것 같은데....그리고 현재의 소스를 보면 두줄<tr>두개 로 되어있네요!! 넓이 지정등이 되어 있질 않습니다. <tr>하나를 지우시던지 하시고, 넓이를 % 또는 px로 지정해서 조정해보세요.. <tr>과 <td>는 닫는 태그가지고는 오류가 나질 않을 겁니다. ^^  아마도 모양상으로 문제가 되어서 질문하신 것 같아서....윗줄과 아랫줄의 <td> 갯수가 같지 않을때는 colspan를이용하세요..
좌측 화면 그리고 메인화면에 들어갈 이미지 이름이 xx.php인가요? 아니면 yy.gif인가요? 아니면 좌측 그리고 메인에 들어갈 내용이 php의 프로그램내용인가요? 내용이 php프로그램이라면... 그 소스를 한번 검토해보세요. 파일 확장자 주의!! 단순히 그림을 넣으실려면 src="<? =$g4[paht]?>/xxfolder/yyimage.gif" 또는 src="http://www.xxx.co.kr/anyfolder/anyimage.gif"로 해보세욧
© SIRSOFT
현재 페이지 제일 처음으로