서브페이지 하단파일 부분 문제에 대한 조언부탁드립니다. > 그누4 질문답변

그누4 질문답변

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

서브페이지 하단파일 부분 문제에 대한 조언부탁드립니다. 정보

서브페이지 하단파일 부분 문제에 대한 조언부탁드립니다.

본문

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 : http://wowcebu.co.kr/g4_2/bbs/board.php?bo_table=noblehoney&wr_id=5

안녕하세요..홈페이지 제작중 문제가 발생하여 이렇게 문의 드립니다.
게시판의 상단파일과 하단파일 경로를 지정하여 페이지 구성을 하고 보니
게시판 목록부분은 이상이 없는데 게시글 내용으로 들어가면 하단파일 내용부분이
보시는 바와 같이 늘어나 있습니다.
이틀째 무슨 원인 인가 찾아보려 했지만 짧은 실력에 원인을 도저히 알수가 없어
이렇게 도움을 요청드립니다.
  • 복사

댓글 전체

하단 부분 소스를 올려주시는것이... 좋을듯.
그리고 게시판관리자에 하단에 올 파일을 정확하게 하였다면 리스트와 내용은 차이가 없는것이 일반스킨입니다.
다른게시판스킨을 보니 정상적으로 나오는것 같은데 제품소개? 이부분만이 그러하네요.
문제는 이스킨이 문제가 있는듯 합니다.

그럼
골든님 답변 감사드립니다.
TAIL.SUB.PHP의 소스가 맞는건지 모르겠지만 올려보겠습니다.
다시한번 봐 주시면 감사하겠습니다.

<script language="javascript" src="<?=$g4['path']?>/js/wrest.js"></script>
<!-- 새창 대신 사용하는 iframe -->

<iframe width=0 height=0 name='hiddenframe' style='display:none;'></iframe>

<? if ($is_admin == "super") { ?><!-- <div style='float:left; width:<?=$table_width?>px; text-align:center;'>RUN TIME : <?=get_microtime()-$begin_time;?><br></div> --><? } ?>

</body>
</html>
<?
$tmp_sql = " select count(*) as cnt from $g4[login_table] where lo_ip = '$_SERVER[REMOTE_ADDR]' ";
$tmp_row = sql_fetch($tmp_sql);
//sql_query(" lock table $g4[login_table] write ", false);
if ($tmp_row['cnt'])
{
$tmp_sql = " update $g4[login_table] set mb_id = '$member[mb_id]', lo_datetime = '$g4[time_ymdhis]', lo_location = '$lo_location', lo_url = '$lo_url' where lo_ip = '$_SERVER[REMOTE_ADDR]' ";
sql_query($tmp_sql, FALSE);
}
else
{
$tmp_sql = " insert into $g4[login_table] ( lo_ip, mb_id, lo_datetime, lo_location, lo_url ) values ( '$_SERVER[REMOTE_ADDR]', '$member[mb_id]', '$g4[time_ymdhis]', '$lo_location',  '$lo_url' ) ";
sql_query($tmp_sql, FALSE);

// 시간이 지난 접속은 삭제한다
sql_query(" delete from $g4[login_table] where lo_datetime < '".date("Y-m-d H:i:s", $g4[server_time] - (60 * $config[cf_login_minutes]))."' ");

// 부담(overhead)이 있다면 테이블 최적화
//$row = sql_fetch(" SHOW TABLE STATUS FROM `$mysql_db` LIKE '$g4[login_table]' ");
//if ($row['Data_free'] > 0) sql_query(" OPTIMIZE TABLE $g4[login_table] ");
}
//sql_query
이상하네 댓글에 답글 클릭이 안되네요..ㅋㅋ

위 소스는 tail.sub.php파일입니다. 이것이 아니라.
tail.php파일이 있습니다.

그누보드설치파일에 보시면 head.php가 있고 head.sub.php도 있습니다.
tail.php파일이 있고 tail.sub.php파일이 모두 있습니다.

그런데 중요한것은 리스트에는 정상적으로 나오는데 왜 내용보기때만 이렇게 될까요?
이것은 tail.php파일이 잘못이 아니라. view파일이 잘못된듯 합니다.
저도 그런것 같아 여러차례 살펴보았으나 무엇이 문제인지 찾지를 못했습니다.
스킨의 view 파일을 올려드리니 함 살펴봐 주시면 감사하겠습니다.

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style>
.tp_test_nCell{border-bottom: 1px solid #cccccc;}

.tp_test_Content1{border: 1px solid #cccccc;border-top-width:0;padding:10px}
.tp_test_Content2{font:12px 돋움;}
.tp_test_Cell{
padding-top:5;
font:13px 돋움;
background:url('<?=$g4['path']?>/img/tp_unselect.png')  no-repeat 50%;
height:27;
width:95;
text-align:center;
cursor:pointer;
cursor:hand;
}
.tp_test_sCell{
padding-top:5;
font:13px 돋움;
background-image:url('<?=$g4['path']?>/img/tp_select.png');
background-position: 50%;
background-repeat: no-repeat;
height:23;
width:100;
text-align:center;
cursor:pointer;
cursor:hand;
}
</style>
<script>
function obxTabPage(sizex , sizey, cssHead){
    if(!cssHead) this.cssHead='';
    else this.cssHead=cssHead;
    document.write(
        '<table cellpadding="0" cellspacing="0" style="table-layout:fixed;padding:1;height:'+sizey+';width:'+sizex+'">' +
        '<tr><td class=TP_'+this.cssHead+'_NCELL width=*>&nbsp;</td></tr>'+
        '<tr><td class=TP_'+this.cssHead+'_CONTENT1 width=100%> </td></tr>'+
        '</table>'
    );
    this.height=sizey;
    this.width=sizex;
    var tables=document.getElementsByTagName("table");
this.table=tables[tables.length-1];
    this.titleRow=this.table.rows[0];
    this.nullCell = this.titleRow.cells[0];
    this.contentRow = this.table.rows[1];
    this.contentCell = this.contentRow.cells[0];
    this.item= new Object();

    this.length=0;

    var re=new RegExp("\\bobxtp=(\\w+)\\b",'i');
    if(location.search.match(re)) this.defaultView = RegExp.$1;

    this.addStart= function (id,title,idx,action) {

var iIndex=(idx) ? idx-1 : this.length;
       
        this.item[id] = this.titleRow.insertCell(iIndex);

this.item[id].className='TP_'+this.cssHead+'_CELL';
        this.item[id].parentObject=this;
        this.item[id].onclick=Function("this.parentObject.show('"+id+"');");
        if(action) this.item[id].action = action;
        this.item[id].height=25;
        this.item[id].innerHTML=title;
        document.write('<div style="display:none;width:100%;height:100%">');
var divs=document.getElementsByTagName("div");
        this.item[id].content = divs[divs.length-1];
        this.item[id].content.className='TP_'+this.cssHead+'_CONTENT2';
        this.DrawingID=id;
        this.length++;
        this.contentCell.colSpan=this.length+1;

    }
   
    this.addEnd = function () {
        document.write("</div></div>");
        this.contentCell.appendChild(this.item[this.DrawingID].content);
        if(!this.LastShownItemID) this.show(this.DrawingID,1);
        else if(this.defaultView==this.DrawingID) this.show(this.defaultView,1);
    }
    this.show = function (id,runtime){

        if (this.LastShownItemID) this.hide(this.LastShownItemID);
        this.LastShownItemID = id;
        this.item[id].className='TP_'+this.cssHead+'_SCELL';
        this.item[id].content.style.display='';
        if(this.item[id].action) {
            try{eval(this.item[id].action);}catch(e){}}
    }

    this.hide = function (id){
        this.item[id].className='TP_'+this.cssHead+'_CELL';;
        this.item[id].content.style.display="none";
    }
}
</script>
<script>
//Table Size 조정
function ImageResizing(objFrame) {
if (!objFrame) return;

//height 조정
var conversionSize = 380;
var orgWidth = objFrame.width;
var orgHeight = objFrame.height;

if (( orgWidth > conversionSize) || (orgHeight > conversionSize)){
if (orgWidth > orgHeight){
newWidth = conversionSize;
newHeight = Math.round((conversionSize * orgHeight)/orgWidth);
}else{
newWidth = Math.round((conversionSize * orgWidth)/orgHeight);
newHeight = conversionSize;
}

objFrame.width = newWidth;
objFrame.height = newHeight;
}
}

function ThumbViewer(ImageObj){

// if (ImageObj.src == "http://pics.auction.co.kr/buy/itempage/no_image_thumb.gif") return;

ThumbImage0.style.border = "silver 1px solid";
ThumbImage1.style.border = "silver 1px solid";
ThumbImage2.style.border = "silver 1px solid";

if (ThumbImage0 == ImageObj) ThumbImage0.style.border = "#333333 1px solid";
if (ThumbImage1 == ImageObj) ThumbImage1.style.border = "#333333 1px solid";
if (ThumbImage2 == ImageObj) ThumbImage2.style.border = "#333333 1px solid";


if (ThumbImage1 == ImageObj){
img0.style.display = "none";
img1.style.display = "";
img2.style.display = "none";
ImageResizing(img1);
}
else if (ThumbImage2 == ImageObj){
img0.style.display = "none";
img1.style.display = "none";
img2.style.display = "";
ImageResizing(img2);
}
else
{
img0.style.display = "";
img1.style.display = "none";
img2.style.display = "none";
ImageResizing(img0);
}


}
</script>
<?
//$img = "$g4[path]/data/file/$bo_table/".urlencode($view[file][0][file]);
//if (!file_exists($img) || !$view[file][0][file]) $img = "$board_skin_path/img/progress/no_image.gif";

?>
<!-- 게시글 보기 시작 -->


<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0"><tr><td>

<!-- 링크 버튼 -->
<?
ob_start();
?>
<table width='100%' cellpadding=0 cellspacing=0>
<tr height=35>
    <td width=75%>
        <? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin_path/img/btn_search_list.gif' border='0' align='absmiddle'></a> "; } ?>
        <? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/btn_list.gif' border='0' align='absmiddle'></a> "; ?>

        <? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin_path/img/btn_write.gif' border='0' align='absmiddle'></a> "; } ?>
        <? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin_path/img/btn_reply.gif' border='0' align='absmiddle'></a> "; } ?>

        <? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/btn_update.gif' border='0' align='absmiddle'></a> "; } ?>
        <? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/btn_delete.gif' border='0' align='absmiddle'></a> "; } ?>

        <? if ($good_href) { echo "<a href=\"$good_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_good.gif' border='0' align='absmiddle'></a> "; } ?>
        <? if ($nogood_href) { echo "<a href=\"$nogood_href\" target='hiddenframe'><img src='$board_skin_path/img/btn_nogood.gif' border='0' align='absmiddle'></a> "; } ?>

        <? if ($scrap_href) { echo "<a href=\"javascript:;\" onclick=\"win_scrap('./scrap_popin.php?bo_table=$bo_table&wr_id=$wr_id');\"><img src='$board_skin_path/img/btn_scrap.gif' border='0' align='absmiddle'></a> "; } ?>

        <? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin_path/img/btn_copy.gif' border='0' align='absmiddle'></a> "; } ?>
        <? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin_path/img/btn_move.gif' border='0' align='absmiddle'></a> "; } ?>
    </td>
    <td width=25% align=right>
        <? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin_path/img/btn_prev.gif' border='0' align='absmiddle'></a>&nbsp;"; } ?>
        <? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin_path/img/btn_next.gif' border='0' align='absmiddle'></a>&nbsp;"; } ?>
    </td>
</tr>
</table>
<?
$link_buttons = ob_get_contents();
ob_end_flush();
?>



<table width="100%" cellspacing="0" cellpadding="0">
<!-- <tr><td height=2 bgcolor=#B0ADF5></td></tr>  -->
    <tr>
        <td height="10">&nbsp;</td>
    </tr>
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="210">
                        <table border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td height="9" colspan="3"><img src="product/<?= $board_skin_path?>/img/progress/skin_top.gif" width="210" height="9"></td>
                            </tr>
                            <tr>
                                <td width="9" background="product/<?= $board_skin_path?>/img/progress/skin_left.gif">&nbsp;</td>
                                <td width="192" height="128">
<?
// 파일 출력
$sql = "select * from $g4[board_file_table] where `bo_table`='$bo_table' and `wr_id`='$wr_id'";
$result=mysql_query($sql);
for($i=0 ; $row = mysql_fetch_array($result) ; $i++){
if($i > 0){
$style= "style=\"display:none\"";
}
echo "<img src =$g4[path]/data/file/$bo_table/$row[bf_file] width=192 height=128 border=0 id=img$i $style>";
$thumimg[$i]="&nbsp;<img src =$g4[path]/data/file/$bo_table/$row[bf_file] width=30 height=20 border=0 id=ThumbImage$i onfocus=\"javascript:ThumbViewer(this)\" onmouseover=\"javascript:ThumbViewer(this)\">";
}
?>
</td>
                                <td width="9" valign="top" background="product/<?= $board_skin_path?>/img/progress/skin_right.gif"><img src="product/<?= $board_skin_path?>/img/progress/skin_right_img.gif" width="9" height="5"></td>
                            </tr>
                            <tr>
                                <td colspan="3"><img src="product/<?= $board_skin_path?>/img/progress/skin_down.gif" width="210" height="9"></td>
                            </tr>
                            <tr>
                                <td colspan="3" height="5"></td>
                            </tr>
                            <tr>
                                <td colspan="3" height="30" align="right">
<?php
echo $thumimg[0];
echo $thumimg[1];
echo $thumimg[2];
?>
</td>
                            </tr>
                        </table>
                    </td>
<td width="10"></td>
<td valign="top">
<table width="100%" border="0" align="right" cellpadding="0" cellspacing="0">
<!-- 추가필드시작-->
<tr><td height=2 bgcolor=#B0ADF5></td></tr>
<!-- <tr><td height=1 bgcolor=#E7E7E7></td></tr> -->
<tr><td height=30>&nbsp;&nbsp;<?php echo "<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>" ?> 상&nbsp;품&nbsp;&nbsp;명 : <?php echo $view[subject] ?></td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr><td height=30>&nbsp;&nbsp;<?php echo "<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>" ?> 상&nbsp;품&nbsp;&nbsp;가 : <font color="red"><?php echo $view[wr_1] ?></font> 원</td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr><td height=30>&nbsp;&nbsp;<?php echo "<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>" ?> 판매기간 : <?=$view[wr_3]?></td></tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<tr>
  <td height=30>&nbsp;&nbsp;<?php echo "<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>" ?> 일정표 다운 :<?
// 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++)
{
if ($view[file][$i][source] && !$view[file][$i][view])
{
$cnt++;
echo "<tr><td height=22>&nbsp;&nbsp;<img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle> <a href='{$view[file][$i][href]}' title='{$view[file][$i][content]}'>{$view[file][$i][source]} ({$view[file][$i][size]}), Down : {$view[file][$i][download]}</a></td></tr>";
}
  } ?> </td>
</tr>
<tr><td height=1 bgcolor=#E7E7E7></td></tr>
<!-- 추가필드끝-->
<tr>
<td height="20" valign="bottom">&nbsp;&nbsp;&nbsp;&nbsp;<?=$view[wr_content]?></td>
</tr>
<tr>
<td>
</a>
</td>
</tr>
</table>
                    </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
        </td>
    </tr>
 
</table>
<!-- 박스 시작-->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
  <td width="100%">
  <!--탭시작 -->
<script>tp=new obxTabPage('100%','100%','test'); // 이게 초기설정</script>



<script>tp.addStart("1page","상품개요"); // 1페이지 시작</script>
<?=$view[wr_6]?>
<script>tp.addEnd();// 1페이지 끝</script>


<script>tp.addStart("2page","호텔개요");// 2페이지 시작</script>
<?=$view[wr_7]?>
<script>tp.addEnd();// 2페이지 끝</script>

<script>tp.addStart("3page","일정표");// 3페이지 시작</script>
<?=$view[wr_8]?>
<script>tp.addEnd();</script>
</td>
</tr>
</table>
<!-- 박스 끝-->
</td></tr>


<!-- <tr><td height=1 bgcolor=#E7E7E7></td></tr> -->

<?
// 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++)
{
    if ($view[link][$i])
    {
        $cnt++;
        $link = cut_str($view[link][$i], 70);
        echo "<tr><td height=30>&nbsp;&nbsp;<img src='{$board_skin_path}/img/homepagemake_icon.gif' align=absmiddle>&nbsp;홈페이지 : <a href='{$view[link_href][$i]}' target=_blank>{$link} ({$view[link_hit][$i]})</a></td></tr><tr><td height=1 bgcolor=#E7E7E7></td></tr>";
    }
}
?>
<tr>
    <td>   
        <?//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우?>
        <!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
        <? if ($is_signature) { echo "<br>$signature<br><br>"; } // 서명 출력 ?></td>
</tr>
</table><br>





<?=$link_buttons?>

</td></tr></table><br>

<script language="JavaScript">
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
function resize_image()
{
    var target = document.getElementsByName('target_resize_image[]');
    var image_width = parseInt('<?=$board[bo_image_width]?>');
    var image_height = 0;

    for(i=0; i<target.length; i++) {
        // 원래 사이즈를 저장해 놓는다
        target[i].tmp_width  = target[i].width;
        target[i].tmp_height = target[i].height;
        // 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
        if(target[i].width > image_width) {
            image_height = parseFloat(target[i].width / target[i].height)
            target[i].width = image_width;
            target[i].height = parseInt(image_width / image_height);
        }
    }
}

window.onload = resize_image;
</script>
<!-- 게시글 보기 끝 -->
<script language="JavaScript">
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
function resize_image()
{
    var target = document.getElementsByName('target_resize_image[]');
    var image_width = parseInt('<?=$image_width?>');
    var image_height = 0;

    for(i=0; i<target.length; i++) {
        // 원래 사이즈를 저장해 놓는다
        target[i].tmp_width  = target[i].width;
        target[i].tmp_height = target[i].height;
        // 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
        if(target[i].width > image_width) {
            image_height = parseFloat(target[i].width / target[i].height)
            target[i].width = image_width;
            target[i].height = parseInt(image_width / image_height);
        }
    }
}

window.onload = resize_image;
</script>
<script>
function ch_img(id){
var ol = document.getElementById("orgin_img");
ol.src = document.getElementById(id).src;
}



</script>
© SIRSOFT
현재 페이지 제일 처음으로