깜찍한 악마님 보세요... 아이콘 공유 스킨 관련 .. > 그누4 질문답변

그누4 질문답변

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

깜찍한 악마님 보세요... 아이콘 공유 스킨 관련 .. 정보

깜찍한 악마님 보세요... 아이콘 공유 스킨 관련 ..

본문

_copy4.jpg
님 말씀 처럼 하니 이렇게 나와요 ....


밑에 소스 구요....
아참 그리고 저 리스트에 1 대신 내용이 나오게 하고 싶은데 ..
방법을 모르 겠어요 ㅜ.ㅜ



<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<table width="100%" cellpadding="0" cellspacing="0" border="0" style="table-layout:fixed">
    <colgroup width="100">
    <colgroup>
    <colgroup width="30">
    <tr height="27">
        <td align="center" style="padding-top:5px;" background="<?=$latest_skin_path?>/img/tap_bg.gif">
        <a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><strong><?=$board[bo_subject]?></strong></a></td>
        <td background="<?=$latest_skin_path?>/img/line_bg_27.gif"> </td>
        <td valign="bottom"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src='<?=$latest_skin_path?>/img/more.gif' border=0></a></td>
    </tr>

    <? for ($i=0; $i<count($list); $i++) {// 파일 출력
for ($j=0; $j<=count($list[$i][file]); $j++) {

//썸네일 코드 시작
$data_path = $g4['path'] . "/data/file/{$bo_table}";//라이브러리 파일 참조
    $filename = $list[$i][file][$j][file]; //파일명
    $thumb = $data_path.'/'.$filename; //파일 URL
    if ($filename) {
echo "<IMG src=\"{$thumb}\" style=\"CURSOR: hand;\" name='target_resize_image[]'><p>";
    }
}  ?>
    <tr>
        <td colspan="3">

        <table width="100%" cellpadding="0" cellspacing="0" border="0">
            <colgroup width="1">
            <colgroup>
            <colgroup width="1">
            <tr height="24">
                <td background="<?=$latest_skin_path?>/img/line_bg.gif"></td>
                <td style="padding-top:5px;padding-left:10px;">
               
               
                <strong>ㆍ</strong>
                <?
                    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>
                <td background="<?=$latest_skin_path?>/img/line_bg.gif"></td>
            </tr>
            <tr height="1">
                <td background="<?=$latest_skin_path?>/img/line_bg.gif"></td>
                <td background="<?=$latest_skin_path?>/img/dot.gif"></td>
                <td background="<?=$latest_skin_path?>/img/line_bg.gif"></td>
            </tr>
        </table>
       
        </td>
    </tr>
    <? } ?>

    <? if (count($list) == 0) { ?>
        <tr><td colspan=3>
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <colgroup width="1">
                <colgroup>
                <colgroup width="1">
                <tr height="150">
                    <td background="<?=$latest_skin_path?>/img/line_bg.gif"></td>
                    <td align="center"><font color=#6A6A6A>게시물이 없습니다.</font></td>
                    <td background="<?=$latest_skin_path?>/img/line_bg.gif"></td>
                </tr>
            </table>
        </td></tr><? } ?>

    <tr height="1">
        <td colspan="3" background="<?=$latest_skin_path?>/img/line_bg.gif"></td>
    </tr>
    <script language="JavaScript">
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
function resize_image()
{
    var target = document.getElementsByName('target_resize_image[]');
    var image_width = parseInt('100');
    var image_height = 0;

    for(i=0; i<target.length; i++) {
        // 원래 사이즈를 저장해 놓는다
        target[i].tmp_width  = target[i].width;
        target[i].tmp_height = target[i].height;
        // 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
        if(target[i].width > image_width) {
            image_height = parseFloat(target[i].width / target[i].height)
            target[i].width = image_width;
            target[i].height = parseInt(image_width / image_height);
        }
    }
}
window.onload = resize_image;
</script>
</table>
  • 복사

댓글 전체

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<table width="100%" cellpadding="0" cellspacing="0" border="0" style="table-layout:fixed">
    <colgroup width="100">
    <colgroup>
    <colgroup width="30">
    <tr height="27">
        <td align="center" style="padding-top:5px;" background="<?=$latest_skin_path?>/img/tap_bg.gif">
        <a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><strong><?=$board[bo_subject]?></strong></a></td>
        <td background="<?=$latest_skin_path?>/img/line_bg_27.gif">&nbsp;</td>
        <td valign="bottom"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src='<?=$latest_skin_path?>/img/more.gif' border=0></a></td>
    </tr>

    <? for ($i=0; $i<count($list); $i++) { ?>
    <tr>
        <td colspan="3">

        <table width="100%" cellpadding="0" cellspacing="0" border="0">
            <colgroup width="1">
            <colgroup>
            <colgroup width="1">
            <tr height="24">
                <td background="<?=$latest_skin_path?>/img/line_bg.gif"></td>
                <td style="padding-top:5px;padding-left:10px;">

                <strong>ㆍ</strong>
                <?
// 파일 출력
for ($j=0; $j<=count($list[$i][file]); $j++) {

//썸네일 코드 시작
$data_path = $g4['path'] . "/data/file/{$bo_table}";//라이브러리 파일 참조
    $filename = $list[$i][file][$j][file]; //파일명
    $thumb = $data_path.'/'.$filename; //파일 URL
    if ($filename) {
echo "<IMG src=\"{$thumb}\" style=\"CURSOR: hand;\" name='target_resize_image[]'>";
    }
}
                    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>
                <td background="<?=$latest_skin_path?>/img/line_bg.gif"></td>
            </tr>
            <tr height="1">
                <td background="<?=$latest_skin_path?>/img/line_bg.gif"></td>
                <td background="<?=$latest_skin_path?>/img/dot.gif"></td>
                <td background="<?=$latest_skin_path?>/img/line_bg.gif"></td>
            </tr>
        </table>
     
        </td>
    </tr>
    <? } ?>

    <? if (count($list) == 0) { ?>
        <tr><td colspan=3>
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <colgroup width="1">
                <colgroup>
                <colgroup width="1">
                <tr height="150">
                    <td background="<?=$latest_skin_path?>/img/line_bg.gif"></td>
                    <td align="center"><font color=#6A6A6A>게시물이 없습니다.</font></td>
                    <td background="<?=$latest_skin_path?>/img/line_bg.gif"></td>
                </tr>
            </table>
        </td></tr><? } ?>

    <tr height="1">
        <td colspan="3" background="<?=$latest_skin_path?>/img/line_bg.gif"></td>
    </tr>
</table>


<script language="JavaScript">
// HTML 로 넘어온 <img ... > 태그의 폭이 테이블폭보다 크다면 테이블폭을 적용한다.
function resize_image()
{
    var target = document.getElementsByName('target_resize_image[]');
    var image_width = parseInt('100');
    var image_height = 0;

    for(i=0; i<target.length; i++) {
        // 원래 사이즈를 저장해 놓는다
        target[i].tmp_width  = target[i].width;
        target[i].tmp_height = target[i].height;
        // 이미지 폭이 테이블 폭보다 크다면 테이블폭에 맞춘다
        if(target[i].width > image_width) {
            image_height = parseFloat(target[i].width / target[i].height)
            target[i].width = image_width;
            target[i].height = parseInt(image_width / image_height);
        }
    }
}
window.onload = resize_image;
</script>
감사 합니다 ... 잘 나와요..
그런데  리스트에 1 대신  내용으로 나오게 할수는 없나요?
그것도좀 알려 주시면 정말 감사 하겠습니다 ㅜ.ㅜ
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>";
© SIRSOFT
현재 페이지 제일 처음으로