테이블 늘어남 형상 때문에 골머리네요 ㅠ.ㅠ; > 그누4 질문답변

그누4 질문답변

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

테이블 늘어남 형상 때문에 골머리네요 ㅠ.ㅠ; 정보

테이블 늘어남 형상 때문에 골머리네요 ㅠ.ㅠ;

본문

include_once("$g4[path]/head.sub.php");
이것만 삽입하면 에러가 나서....
방법 없을까요? 참고로 인덱스만 따로 출력하기 때문에 이미지는 상대 경로로 잡았어요

<?
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<title>석죽원에 오신것을 환영합니다.</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<link rel="stylesheet" href="<?=$g4['path']?>/style.css" type="text/css">
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="1003px"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td background="./images/index_02.jpg" height="30" align="right"><font color="#6D6D6D"><?=outlogin("login")?></font></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0" background="images/index_05.jpg">
          <tr>
            <td height="70"><a href="./index.html"><img src="images/index_04.jpg" width="227" height="70" border="0"></a></td>
            <td align="right" height="70"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="740" height="70">
              <param name="movie" value="swf/menu.swf">
              <param name="quality" value="high">
              <param NAME="wmode" VALUE="transparent">
              <embed src="swf/menu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="740" height="70"></embed>
            </object><img src="images/index_07.jpg">
			<!-- <img src="images/index_06.jpg" width="740" height="70"> --></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="1003" height="400">
          <param name="movie" value="swf/main.swf">
          <param name=quality value=high>
		      <param NAME="wmode" VALUE="transparent">
          <embed src="swf/main.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1003" height="400"></embed>
        </object></td>
      </tr>
      <tr>
        <td><table width="100%" height="159px"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="60px"></td>
            <td width="317px" valign="top">
<!-- 텝메뉴 시작 -->
<style type="text/css">

#ddimagetabs{
}

#ddimagetabs a{
display: block;
text-decoration: none;
font: bold 12px Arial; /*tab font */
color: black; /*font color */
width: 52px; /*width of tab image */
height: 20px; /*height of tab image */
float: left;
display: inline;
margin-left: 0px; /*spacing between tabs */
padding-top: 0px; /*vertical offset of tab text from top of tab*/
background-image:url(./img/bluetab.jpg); /*URL to tab image */
background-repeat: no-repeat;
text-align: center;
}

#ddimagetabs a:hover, #ddimagetabs a.current{
background-image:url(./img/bluetabover.jpg); /*URL to tab image onmouseover */
color:#ffffff;
}

#tabcontentcontainer{
width:307px; /*width of 2nd level content*/
height:40px; /*height of 2nd level content. Set to largest's content height to avoid jittering.*/
}

.tabcontent{
display:none;
}

</style>

<script type="text/javascript">

/***********************************************
* DD Tab Menu II script- ⓒ Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

//Set tab to intially be selected when page loads:
//[which tab (1=first tab), ID of tab content to display]:
var initialtab=[1, "sc1"]

//Turn menu into single level image tabs (completely hides 2nd level)?
var turntosingle=0 //0 for no (default), 1 for yes

//Disable hyperlinks in 1st level tab images?
var disabletablinks=0 //0 for no (default), 1 for yes


////////Stop editting////////////////

var previoustab=""

if (turntosingle==1)
document.write('<style type="text/css">\n#tabcontentcontainer{display: none;}\n</style>')

function expandcontent(cid, aobject){
if (disabletablinks==1)
aobject.onclick=new Function("return false")
if (document.getElementById && turntosingle==0){
highlighttab(aobject)
if (previoustab!="")
document.getElementById(previoustab).style.display="none"
document.getElementById(cid).style.display="block"
previoustab=cid
}
}

function highlighttab(aobject){
if (typeof tabobjlinks=="undefined")
collectddimagetabs()
for (i=0; i<tabobjlinks.length; i++)
tabobjlinks[i].className=""
aobject.className="current"
}

function collectddimagetabs(){
var tabobj=document.getElementById("ddimagetabs")
tabobjlinks=tabobj.getElementsByTagName("A")
}

function do_onload(){
collectddimagetabs()
expandcontent(initialtab[1], tabobjlinks[initialtab[0]-1])
}

if (window.addEventListener)
window.addEventListener("load", do_onload, false)
else if (window.attachEvent)
window.attachEvent("onload", do_onload)
else if (document.getElementById)
window.onload=do_onload

</script>
<br style="clear:left" />
<table border="0" cellpadding="0px" cellspacing="0px">
<tr><td>
<div id="ddimagetabs">
<a href="http://xn--3i4b87hzzb.kr/dd/bbs/bbs/board.php?bo_table=Notice" onMouseover="expandcontent('sc1', this)">Notice</a> <a href="http://xn--3i4b87hzzb.kr/dd/bbs/bbs/board.php?bo_table=event" onMouseover="expandcontent('sc2', this)">Event</a>
</div></td></tr>
<tr><td bgcolor="#e0e0e0" height="1"></td></tr>
<tr><td>

<DIV id="tabcontentcontainer">

<div id="sc1" class="tabcontent">
<?=latest("latest", Notice, 4, 70);?>
</div>

<div id="sc2" class="tabcontent">
<?=latest("latest", event, 4, 70);?>
</div>

</DIV>
</td></tr></table>
<!-- 텝메뉴 끝 -->
			</td>
            <td width="423px" valign="top">
            <!-- 갤러리 시작 -->
            <?=latest("gallery", Gallery, 4, 70);?>
            <!-- 갤러리 끝 -->
            
            </td>
            <td width="204px"><img src="images/index_09_04.jpg" width="204" height="159"></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><img src="images/index_10.jpg" width="1003" height="191"></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>

댓글 전체

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

include_once("$g4[path]/head.sub.php");

?>

이런식으로 개별페이지 접근 불가라는 저것은 안없애구 한번 해보세요 ...안될리가 없는데 ...
사이트 한번 보고싶네요..........
7번 부터  24번줄까지 head 관련 된거  head.sub.php 에도 있으니 궂이 저기다 또 넣을필요가

없을거같은데염..

글구 하단에도 199 부터 마지막까지  tail.php 인크루드 하시거나 하면

그냥 인덱스만 해도 실행되지 않을가염?
한번 해보세요..


<?
$g4_path = ".";
include_once("$g4_path/common.php");
include_once("./head.sub.php");
include_once("./lib/outlogin.lib.php");
include_once("./lib/latest.lib.php");
?>

//내용//

내용중에 html head body style 등은 빼고
실제 내용만 입력합니다.
head.sub.php, tail.php 에 이미 포함되어있으므로.

<?
include_once("./tail.php");
?>
현제 파일은 그누보드 하위에 존재 합니다.
위치 맞게 _common.php를 빼와서 common.php를 지정하고 있습니다.
해당 방법은 이미 해봤구요.
그래서 올린글 입니다. ^^
전체 61 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT