최신글에서.....정렬문제.. > 그누3질답

그누3질답

최신글에서.....정렬문제.. 정보

그누보드 최신글에서.....정렬문제..

본문

그림에서 보는 바와 같이....양쪽으로 똑같이 정렬이 안되네요..
-------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

define("_DOCTYPE_", "STYLE");

$html_title = "MODOOM 클럽";

include "./club/head.php";

if (!$cb[cb_club]) {
    alert("존재하지 않는 클럽입니다.");
}

if ($cb[cb_main_head_file]) { include $cb[cb_main_head_file]; }
if ($cb[cb_main_head_content]) { echo stripslashes($cb[cb_main_head_content]); }
?>

<table width='100%' cellpadding=0 cellspacing=0>
<tr>
    <td valign=top>
    <?
    //  최신글 시작
    if ($cb[cb_latest_menu]) {
       
        $sql = " select a.cn_id, b.ca_name, b.ca_id
                  from $cfg[table_clubmenu] as a, gb_write_{$cb[cb_club]}_cat as b
                  where a.ca_id = b.ca_id
                    and a.cb_club = '$cb_club'
              order by a.cn_order asc ";
        $result = sql_query($sql);
        echo "<table width=100%><tr>";
        for ($i=0; $row=mysql_fetch_array($result); $i++) {
            if ($i < 2){
            echo "<td width=50%><table width=100%><tr><td height=25 bgcolor=#F0F0F0>&nbsp;<img src='image/icon_01.gif' align=absmiddle>&nbsp; <a href='./?doc=bbs/gnuboard.php&bo_table=$cb[cb_club]&sselect=ca_id&stext=$row[ca_id]&ca_id=$row[ca_id]'><b>$row[ca_name]</b></a></td></tr></table>";
            # 이 함수가 바로 최신글을 추출하는 역할을 합니다.
            # 사용방법
            # latest_club(스킨, 클럽아이디, 클럽메뉴, 출력라인, 글자수);
            # 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
            latest_club($cb[cb_latest_skin], $cb[cb_club], $row[ca_id], 5, 70);
            echo "<p></td>";
            if ($i == 1){echo "</tr>";}
          }else{
            echo "<tr><td colspan=2><table width=100%><tr><td height=25 bgcolor=#F0F0F0>&nbsp;<img src='image/icon_01.gif' align=absmiddle>&nbsp; <a href='./?doc=bbs/gnuboard.php&bo_table=$cb[cb_club]&sselect=ca_id&stext=$row[ca_id]&ca_id=$row[ca_id]'><b>$row[ca_name]</b></a></td></tr></table>";
            # 이 함수가 바로 최신글을 추출하는 역할을 합니다.
            # 사용방법
            # latest_club(스킨, 클럽아이디, 클럽메뉴, 출력라인, 글자수);
            # 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
            latest_club($cb[cb_latest_skin], $cb[cb_club], $row[ca_id], 5, 70);
            echo "<p></td></tr>";
        }
      } 
    echo "</table>";
    }
    //  최신글 끝
    ?>
    </td>
</tr>
</table>

<?
if ($cb[cb_main_tail_file]) { include $cb[cb_main_tail_file]; }
if ($cb[cb_main_tail_content]) { echo stripslashes($cb[cb_main_tail_content]); }
include "./club/tail.php";
?>
--------------------------------------------------------------------------------
수정할 부분이 있는지......검토해 주시기 바랍니다..
  • 복사

댓글 전체

아래 내용으로 대체해 보십시오.. 수정했습니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<table width=100%>
<tr><td colspan="3" height=10 width="100%"></td></tr>

<? for ($i=0; $i<count($list); $i++) { ?>
<? if ($i) { echo "<tr><td colspan=2 height=1 background='$latest_skin/dot_line.gif'></td></tr>"; } ?>
<tr>
    <td width="57" align=center bgcolor="#EBEBEB"><img src='<?=$latest_skin?>/icon_li.gif'></td>
    <td width="" height="20" bgcolor="#EBEBEB"><a href='<?="./?doc=bbs/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><span class=content><?=$list[$i][subject]?>  <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span></span></a> <?=$list[$i][icon_new]?></td>
    <td width="87" height="20" bgcolor="#EBEBEB"><?=$list[$i][date]?></td>
</tr>
<? } ?>

<? if (count($list) == 0) { echo "<tr><td colspan=3 align=center height=50>자료가 없습니다.</td></tr>"; } ?>

<tr><td colspan="3" height=5 width="100%"></td></tr>
</table>
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<table width=355 bgcolor="#EBEBEB" cellpadding=0 cellspacing=0>
<tr><td colspan="3" height=10 width="730"></td></tr>

<? for ($i=0; $i<count($list); $i++) { ?>
<? if ($i) { echo "<tr><td colspan=2 height=1 background='$latest_skin/dot_line.gif'></td></tr>"; } ?>
<tr>
    <td width="57" align=center bgcolor="#EBEBEB"><img src='<?=$latest_skin?>/icon_li.gif'></td>
    <td width="586" height=20 bgcolor="#EBEBEB"><a href='<?="./?doc=bbs/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><span class=content><?=$list[$i][subject]?>  <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span></span></a> <?=$list[$i][icon_new]?></td>
        <td width="87" height="20" bgcolor="#EBEBEB"><?=$list[$i][date]?></td>
</tr>
<? } ?>

<? if (count($list) == 0) { echo "<tr><td colspan=2 align=center height=50>자료가 없습니다.</td></tr>"; } ?>

<tr><td colspan="3" height=5 width="730"></td></tr>
</table>
----------------------------------------------------------------------
적용된 스킨입니다..
© SIRSOFT
현재 페이지 제일 처음으로