전체목록보이기가 이상해요 ㅜ 정보
전체목록보이기가 이상해요 ㅜ본문
위 캡쳐처럼 코멘트쓰기란이 있을땐 전체목록 즉, list.skin.php 이부분이 멀쩡하게 나오는데요
비회원 코멘트 쓰기를 제안한후 코멘트쓰기란이 사라진후에는 두번째 캡쳐처럼
전체목록이 오른쪽으로 쏠리고 글내용 부분이 가로로 엄청나게 늘어나는 현상이 나타나네요
제 추측엔 뷰화면 왼쪽에 카테고리를 달아서 이런 현상이 생긴것 같은데 어떻게 방법이 없을까요?
이건 view.skin.php 파일 소스내용입니다.
<style>
#writeContents { line-height:160%;}
</style>
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$tagsArray = explode(",",$view[wr_1]);
$tags = '';
for($ti=0; $ti<count($tagsArray); $ti++) {
$tagTemp = trim($tagsArray[$ti]);
$tagText = urlencode($tagTemp);
if($tagKey == $tagTemp) {
$tags .= "<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&sca=$tagText'><span style='background-color:yellow'>$tagTemp</span></a> ";
} else {
$tags .= "<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&sca=&bo_table=$bo_table&sca=&sfl=wr_1&chk_wr_1=Y&stx=$tagText&sop=and'>$tagTemp</a> ";
}
}
?>
<style type="text/css">
/* 카테고리 스타일*/
.wireframemenu{border: 1px solid #ffffff;background-color: white;border-bottom-width: 0;width: 100px; }
* html .wireframemenu{ /*IE only rule. Original menu width minus all left/right paddings */width: 100px;}
.wireframemenu ul{padding: 0;margin: 0;list-style-type: none;}
.wireframemenu a{font: 12px gulim;padding: 4px 3px;display: block;width: 100%; /*Define width for IE6's sake*/color: #333333;text-decoration: none;border-bottom: 1px solid #E7E7E7;}
.wireframemenu a:visited{color: #333333;}
html>body .wireframemenu a{ /*Non IE rule*/width: auto;}
.wireframemenu a:hover{background-color: #ffffff;color: black;}
</style>
<?
// 카테고리 뽑아오기
if ($is_category) {
//카테고리별 게시물수 체크
$cate_print = "";
$cate_print .="
<div class=\"wireframemenu\" align=left>
<ul>
<li><a href=\"\gnuboard4\bbs\board.php?bo_table=$bo_table&sca={$category_location}\"><b>전체보기</b></a></li>
";
$cate = explode("|", $board[bo_category_list]);
for ($i=0; $i<count($cate); $i++){
$row1 = sql_fetch(" SELECT count(*) as cat_cnt FROM {$g4[write_prefix]}{$bo_table} WHERE ca_name = '$cate[$i]' and wr_comment >= '0' ");
if (trim($cate[$i])){
$cate_print .=" <li><a href=\"\gnuboard4\bbs\board.php?bo_table=$bo_table&sca={$category_location}{$cate[$i]}\">".$cate[$i]." (".$row1[cat_cnt].")</a></li>";
}
}
$cate_print .= "
</ul>
</div>
";
} ?>
<!-- 게시글 보기 시작 -->
<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0"><tr><td>
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr height="25">
<td width="50%"></td>
<td align="right" style="font:normal 11px tahoma; color:#BABABA;">
<?
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
?>
<? echo outlogin("stepa_euckr"); ?>
<? if ($admin_href) { ?><a href="<?=$admin_href?>">admin</a><?}?></td>
</tr>
<tr><td height=5></td></tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top" width="15%">
<!-- 카테고리 출력 -->
<? if ($is_category) { ?>
<div id="cate" style="float:left; padding-top:2px; padding-right:5px;"><?=$cate_print?></div>
<? } ?>
</td>
<td align="center" valign="top" width="100%">
<table width="100%" cellspacing="0" cellpadding="0">
<tr><td height=2 bgcolor="#ffffff"></td></tr>
<tr><td height=30 style="padding:5px 0 5px 0;">
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td style='word-break:break-all; height:28px;'> <font style="font:normal 11px 돋움; color:#BABABA;">제목</font> <strong><span id="writeSubject"><? if ($is_category) { echo ($category_name ? "[$view[ca_name]] " : ""); } ?><?=cut_hangul_last(($view[wr_subject]))?></span></strong></td>
<td width=70><? if ($update_href) { echo "<a href=\"$update_href\">수정</a> "; } ?> <? if ($delete_href) { echo "<a href=\"$delete_href\">삭제</a> "; } ?></td>
</tr>
<tr><td colspan="2" height=3 style="background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x;"></td></tr>
</table></td></tr>
</td>
</tr>
<tr><td width=100% align="right"><font style="font:normal 11px 돋움; color:#BABABA;">NAME : <?=$view[name]?> HIT : <?=number_format($view[wr_hit])?> </font></td></tr>
<?
// 가변 파일
if ($member[mb_id]){
$total_commnt = mysql_num_rows(mysql_query(" select * from $write_table where wr_parent = '$wr_id' and mb_id ='$member[mb_id]'"));
}
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++)
{
if ($view[file][$i][source] && !$view[file][$i][view])
{
$cnt++;
if ($board[bo_1] =="1"){
if ($is_admin || $total_commnt > 0){
echo "<tr><td height=22> <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle> <a href=\"javascript:file_download('{$view[file][$i][href]}', '{$view[file][$i][source]}');\" title='{$view[file][$i][content]}'><strong>{$view[file][$i][source]}</strong> ({$view[file][$i][size]}), Down : {$view[file][$i][download]}, {$view[file][$i][datetime]}</a></td></tr>";
}else {
echo "<tr><td height=22> <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle> <a href=\"javascript:alert('코멘트를 남기셔야 다운로드가 가능합니다.\n\n잘쓰겠다는 감사의 말씀 부탁드려요. ^^');\" title=''><strong>{$view[file][$i][source]}</strong> ({$view[file][$i][size]}), Down : {$view[file][$i][download]}, {$view[file][$i][datetime]}</a></td></tr>";
}
}else {
echo "<tr><td height=22> <img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle> <a href=\"javascript:file_download('{$view[file][$i][href]}', '{$view[file][$i][source]}');\" title='{$view[file][$i][content]}'><strong>{$view[file][$i][source]}</strong> ({$view[file][$i][size]}), Down : {$view[file][$i][download]}, {$view[file][$i][datetime]}</a></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> <img src='{$board_skin_path}/img/icon_link.gif' align=absmiddle> <a href='{$view[link_href][$i]}' target=_blank><font style='normal 11px 돋움;'>{$link} ({$view[link_hit][$i]})</font></a></td></tr><tr><td height='1' bgcolor='#E7E7E7'></td></tr>";
}
}
?>
<!-- <tr><td height=1 bgcolor=#"E7E7E7"></td></tr> //-->
<tr>
<td height="30" style='word-break:break-all;padding:10px;'>
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
echo $view[file][$i][view] . "<p>";
}
?>
<!-- 내용 출력 -->
<span id="writeContents"><?=$view[content];?></span>
<?//echo $view[rich_content]; // 과 같은 코드를 사용할 경우?>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
<div style="padding:0px;">
<?
if ($member[mb_id] != $view[mb_id] or !$is_admin) {
$sql = mysql_query(" select count(wr_id) as cnt from $g4[write_prefix]$bo_table where wr_parent = '$wr_id' and wr_is_comment = '1' and mb_id = '$member[mb_id]' ");
$row = mysql_fetch_array($sql);
if (!$row[cnt])
echo "";
else
echo $view[wr_1];
} else
echo $view[wr_1];
?>
<div>
</td>
</tr>
<tr><td height="20" bgcolor="#ffffff"></td></tr>
<?
// 코멘트 입출력
include_once("./view_comment.php");
?>
<?=$link_buttons?>
</td></tr></table><br>
<script language="JavaScript">
function file_download(link, file) {
<? if ($board[bo_download_point] < 0) { ?>if (confirm("'"+file+"' 파일을 다운로드 하시면 포인트가 차감(<?=number_format($board[bo_download_point])?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?"))<?}?>
document.location.href=link;
}
</script>
<script language="JavaScript" src="<?="$g4[path]/js/board.js"?>"></script>
<script language="JavaScript">
window.onload=function() {
resizeBoardImage(<?=(int)$board[bo_image_width]?>);
drawFont();
}
</script>
-------------
제가 이것저것 만져보긴 했는데 계속 해매게 되네요 ㅜ
누가 좀 도와주세요 ㅠㅠ
댓글 전체
제목 수정 삭제아랫부분에 </td></tr>
</td>
</tr>
이렇게 두번들어간것도 그렇고
아래 테이블 마감이 안되어있고...
<tr><td bgcolor="#ffffff">
<?
// 코멘트 입출력
include_once("./view_comment.php");
?>
<?=$link_buttons?>
</td></tr></table><br>
수정해보세요....