글자정렬문제

· 18년 전 · 1517 · 4
Untitled-3.gif
아래소스를 사용하면 첨부한 이미지처럼  정렬이 안됩니다.
 
정렬이되게 하려면 어떻게 해야 하나요
 
 
 
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table border="0" width="185" cellpadding="0" cellspacing="0">
<tr>
 <td colspan="3"><img width='185' height='5' src="<?=$popular_skin_path?>/img/top.gif" border='0'></td>
</tr>
<tr>
 <td width='1' background="<?=$popular_skin_path?>/img/line.gif"></td>
 <td width='184'>
  <center><font color="black"><b>실시간 검색어</b></font><br>
  <img width='1' height='5' src="<?=$popular_skin_path?>/img/none.gif" border='0'><br>
  <img width='180' height='1' src="<?=$popular_skin_path?>/img/line.gif" border='0'><br>
  <img width='1' height='5' src="<?=$popular_skin_path?>/img/none.gif" border='0'><br>
  </center>
 </td>
 <td width='1' background="<?=$popular_skin_path?>/img/line.gif"></td>
</tr>
<tr> 
 <td width='1' background="<?=$popular_skin_path?>/img/line.gif"></td>
 <td><table width="185" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="155"><?
  for ($i=0; $i<count($list); $i++)
  {
    if($i=="0")
    {
        echo "&nbsp;&nbsp;&nbsp;<img width='14' height='13' align='absmiddle' border='0' src='$popular_skin_path/img/num_0".$i.".gif'>&nbsp;&nbsp;<a href='$g4[bbs_path]/search.php?sfl=wr_subject&sop=and&stx=".urlencode($list[$i][pp_word])."' target='_parent'><font style=font-size:9pt; color=#00285A><b>{$list[$i][pp_word]}</b></font></a><br>";
    }
    else
    {
        echo "&nbsp;&nbsp;&nbsp;<img width='14' height='13' align='absmiddle' border='0' src='$popular_skin_path/img/num_0".$i.".gif'>&nbsp;&nbsp;<a href='$g4[bbs_path]/search.php?sfl=wr_subject&sop=and&stx=".urlencode($list[$i][pp_word])."' target='_parent'><font style=font-size:9pt; color=#00285A><b>{$list[$i][pp_word]}</b></font></a><br>";
    }
    
  } //for문으로 이루어진 전체루틴 종료(빼 먹지 말것)
  ?></td>
        <td width="30"><?
  for ($i=0; $i<count($list); $i++)
  {
         echo "<font style=font-size:7pt; color=#ef5d00>{$list[$i][cnt]}</font> <br> ";//검색 카운트 출력
  } //for문으로 이루어진 전체루틴 종료(빼 먹지 말것)
  ?></td>
      </tr>
    </table></td>
 <td width='1' background="<?=$popular_skin_path?>/img/line.gif"></td>
</tr>
<tr>
 <td colspan="3"><img width='185' height='5' src="<?=$popular_skin_path?>/img/bottom.gif" border='0'></td>
</tr>
</table>

첨부파일

Untitled-3.gif (3.2 KB)
0회 2007-08-22 19:13
|

댓글 4개

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table border="0" width="185" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3"><img width='185' height='5' src="<?=$popular_skin_path?>/img/top.gif" border='0'></td>
</tr>
<tr>
<td width='1' background="<?=$popular_skin_path?>/img/line.gif"></td>
<td width='184'>
<center>
<font color="black"><b>실시간 검색어</b></font><br>
<img width='1' height='5' src="<?=$popular_skin_path?>/img/none.gif" border='0'><br>
<img width='180' height='1' src="<?=$popular_skin_path?>/img/line.gif" border='0'><br>
<img width='1' height='5' src="<?=$popular_skin_path?>/img/none.gif" border='0'><br>
</center></td>
<td width='1' background="<?=$popular_skin_path?>/img/line.gif"></td>
</tr>
<tr>
<td width='1' background="<?=$popular_skin_path?>/img/line.gif"></td>
<td>
<table width="185" border="0" cellspacing="0" cellpadding="0">
<?
for ($i=0; $i<count($list); $i++) {
?>
<tr height="20">
<td width="155">
<?
// 첫번째
if ($i == '0') {
echo "&nbsp;&nbsp;&nbsp;<img width='14' height='13' align='absmiddle' border='0' src='$popular_skin_path/img/num_0".$i.".gif'>&nbsp;&nbsp;<a href='$g4[bbs_path]/search.php?sfl=wr_subject&sop=and&stx=".urlencode($list[$i][pp_word])."' target='_parent'><font style=font-size:9pt; color=#00285A><b>{$list[$i][pp_word]}</b></font></a><br>";
} else {
echo "&nbsp;&nbsp;&nbsp;<img width='14' height='13' align='absmiddle' border='0' src='$popular_skin_path/img/num_0".$i.".gif'>&nbsp;&nbsp;<a href='$g4[bbs_path]/search.php?sfl=wr_subject&sop=and&stx=".urlencode($list[$i][pp_word])."' target='_parent'><font style=font-size:9pt; color=#00285A><b>{$list[$i][pp_word]}</b></font></a><br>";
}
?></td>
<td width="30"><font style=font-size:7pt; color=#ef5d00><?=$list[$i][cnt]?></font></td>
</tr>
<? } ?>
</table></td>
<td width='1' background="<?=$popular_skin_path?>/img/line.gif"></td>
</tr>
<tr>
<td colspan="3"><img width='185' height='5' src="<?=$popular_skin_path?>/img/bottom.gif" border='0'></td>
</tr>
</table>
ㅋ.ㅋ...
다른데 정신이 가 있으니 질문의 요지도 파악 못하고 댓글 썼다가 삭제를....^^
>> ㅋ.ㅋ...

왠지, 소주가 연상되는 이모티콘 +_+
답변 감사합니다.
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
18년 전 조회 1,668
18년 전 조회 1,677
18년 전 조회 1,500
18년 전 조회 1,804
18년 전 조회 1,701
18년 전 조회 1,512
18년 전 조회 1,894
18년 전 조회 1,664
18년 전 조회 1,527
18년 전 조회 1,518
18년 전 조회 1,512
18년 전 조회 1,875
18년 전 조회 1,597
18년 전 조회 2,878
18년 전 조회 1,249
18년 전 조회 1,671
18년 전 조회 1,532
18년 전 조회 1,257
18년 전 조회 1,906
18년 전 조회 2,203
🐛 버그신고