ㅠ 죄송 하지만 질문점여
페이지 정보
본문
에서
gb4/include/mainmenu/mainmenu.php
에다가 적용 결과
첨부 이미지처럼 이상하게 출력 되던데 왜 그런가여??
(아이콘 엑박 말구 테이블 길이 이며, 적용 모습이 이상 합니다.)
소스 내용
<table width='<?=$table_width?>' cellpadding='0' cellspacing='0' border='0'>
<tr><td width="19"></td>
<td>
<table width='100%' cellpadding='0' cellspacing='3' border='0' bgcolor=#F9F9F9>
<tr>
<td>
<table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor=#FFFFFF>
<tr>
<?
<tr><td width="19"></td>
<td>
<table width='100%' cellpadding='0' cellspacing='3' border='0' bgcolor=#F9F9F9>
<tr>
<td>
<table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor=#FFFFFF>
<tr>
<?
$cells = 0;
switch(true)
{
case $member[mb_level] <= 2 : // 정회원 2 미만일때
$except="'banner','html'"; // 제외 그룹
break;
case $member[mb_level] <= 3 : // 정회원일때
$except="'banner','html'"; // 제외 그룹
break;
default:
$except="''";
}
$sql = " SELECT a.gr_id, a.gr_subject, a.gr_use_access, b.mb_id FROM $g4[group_table] AS a LEFT JOIN $g4[group_member_table] AS b ON a.gr_id = b.gr_id WHERE (b.mb_id = '$member[mb_id]' AND a.gr_use_access = '1' ) OR a.gr_use_access = '0' ORDER BY a.gr_1";
$sql = " select * from $g4[group_table] where gr_id not in ('html', 'banner', 'guest') order by gr_1";
//$sql = " select gr_id, gr_subject from $g4[group_table] where gr_id not in ($except) order by gr_subject desc ";
$rst1 = sql_query($sql);
{
case $member[mb_level] <= 2 : // 정회원 2 미만일때
$except="'banner','html'"; // 제외 그룹
break;
case $member[mb_level] <= 3 : // 정회원일때
$except="'banner','html'"; // 제외 그룹
break;
default:
$except="''";
}
$sql = " SELECT a.gr_id, a.gr_subject, a.gr_use_access, b.mb_id FROM $g4[group_table] AS a LEFT JOIN $g4[group_member_table] AS b ON a.gr_id = b.gr_id WHERE (b.mb_id = '$member[mb_id]' AND a.gr_use_access = '1' ) OR a.gr_use_access = '0' ORDER BY a.gr_1";
$sql = " select * from $g4[group_table] where gr_id not in ('html', 'banner', 'guest') order by gr_1";
//$sql = " select gr_id, gr_subject from $g4[group_table] where gr_id not in ($except) order by gr_subject desc ";
$rst1 = sql_query($sql);
while ($row=sql_fetch_array($rst1)) {
if($cells%6==0)
echo "</tr><tr>";
echo "</tr><tr>";
echo "<td valign='top' align='center'>";
echo "<table width='155' height='100%' cellpadding='0' cellspacing='0' border='0' bgcolor=#FFFFFF>";
echo "<tr><td width='155' height='30' align='center' bgcolor='#000066'><strong><font color=#ffffff>$row[gr_subject]</font></strong></td></tr>"; // 그룹명 출력
echo "<table width='155' height='100%' cellpadding='0' cellspacing='0' border='0' bgcolor=#FFFFFF>";
echo "<tr><td width='155' height='30' align='center' bgcolor='#000066'><strong><font color=#ffffff>$row[gr_subject]</font></strong></td></tr>"; // 그룹명 출력
$sql2 = " select * from $g4[board_table] where gr_id = '$row[gr_id]' order by bo_order_search ";
$rst2 = sql_query($sql2);
$cells++;
$rst2 = sql_query($sql2);
$cells++;
while ($row2=sql_fetch_array($rst2)) {
$new_time = date("Y-m-d H:i:s", time()-3600*$row2[bo_new]);
$sql3 = " select count(*) as cnt from $g4[write_prefix]$row2[bo_table] where wr_datetime >= '$new_time' ";
$row3 = sql_fetch($sql3);
if ($row3[cnt] > 0)
$new = " <img src='$g4[path]/include/topmainmenu/img/icon_new.gif'>"; // new 아이콘
else
$new = ""; //new 아이콘 없음
echo "<tr><td style='padding-left:18px; height:26px;' bgcolor='#F9F9F9'><img src='$g4[path]/include/topmainmenu/img/top_icon.gif'><a href='$g4[bbs_path]/board.php?bo_table=$row2[bo_table]'>$row2[bo_subject]</a> $new <br /></td>";
echo "<tr><td height='1' bgcolor='#FFFFFF'></td></tr>";
}
echo "</table>";
echo "</td>";
}
?>
</tr>
</table>
</td>
</tr>
</table>
$new_time = date("Y-m-d H:i:s", time()-3600*$row2[bo_new]);
$sql3 = " select count(*) as cnt from $g4[write_prefix]$row2[bo_table] where wr_datetime >= '$new_time' ";
$row3 = sql_fetch($sql3);
if ($row3[cnt] > 0)
$new = " <img src='$g4[path]/include/topmainmenu/img/icon_new.gif'>"; // new 아이콘
else
$new = ""; //new 아이콘 없음
echo "<tr><td style='padding-left:18px; height:26px;' bgcolor='#F9F9F9'><img src='$g4[path]/include/topmainmenu/img/top_icon.gif'><a href='$g4[bbs_path]/board.php?bo_table=$row2[bo_table]'>$row2[bo_subject]</a> $new <br /></td>";
echo "<tr><td height='1' bgcolor='#FFFFFF'></td></tr>";
}
echo "</table>";
echo "</td>";
}
?>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="49"></td></td>
</tr>
</table>
<td width="49"></td></td>
</tr>
</table>
추천0