최신글 불러오기에서 새창띄우기 문제

· 18년 전 · 1513 · 2
<?
if (!defined("_GNUBOARD_")) exit; // 
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<table width=100% cellpadding=0 cellspacing=0>
<colgroup width=14>
<colgroup>
<colgroup width=37>
<colgroup width=14>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
    <td colspan=4 align=center>
        <table width="100%" cellspacing="1">
        <tr>
            <td height=20><img src='<?=$latest_skin_path?>/img/<?=$i+1?>.gif' align=absmiddle>
            <?
            echo $list[$i]['icon_reply'] . " ";
            echo "<a href='{$list[$i]['href']}'>";
            if ($list[$i]['is_notice'])
                echo "<font style='font-family:; font-size:9pt; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";
            else
                echo "<font style='font-family:; font-size:9pt; color:#6A6A6A;'>{$list[$i]['subject']}</font>";
            echo "</a>";
            if ($list[$i]['comment_cnt'])
                echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:; font-size:8pt; color:#9A9A9A;'>{$list[$i]['comment_cnt']}</span></a>";
            // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
            // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
            //echo " " . $list[$i]['icon_new'];
            //echo " " . $list[$i]['icon_file'];
            //echo " " . $list[$i]['icon_link'];
            //echo " " . $list[$i]['icon_hot'];
            //echo " " . $list[$i]['icon_secret'];
            ?></td></tr>
        <tr><td background="<?=$latest_skin_path?>/img/bg_dot.gif" height=1></td></tr>
        </table></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>
 아직없음.</a></td></tr><? } ?>
</table>
 
 
 
이걸 새창띄우려고 합니다 고수님들 도와주세여....
|

댓글 2개

echo "<a href='{$list[$i]['href']}'>";
위 코드에 target=_blank 를 적용해보시기 바랍니다.
echo "<a href='{$list[$i]['href']}' target=_blank>";
곱슬최씨님 너무 감사합니다..잘 되네여..수고햇습니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
18년 전 조회 2,273
18년 전 조회 908
18년 전 조회 821
18년 전 조회 950
18년 전 조회 986
18년 전 조회 1,628
18년 전 조회 1,344
18년 전 조회 1,531
18년 전 조회 1,576
18년 전 조회 1,514
18년 전 조회 1,537
18년 전 조회 1,702
18년 전 조회 1,517
18년 전 조회 1,510
18년 전 조회 1,095
18년 전 조회 1,556
18년 전 조회 1,453
18년 전 조회 1,524
18년 전 조회 1,520
18년 전 조회 1,685