[재질문]또다른 간단한 방법 > 그누3질답

그누3질답

[재질문]또다른 간단한 방법 정보

그누보드 [재질문]또다른 간단한 방법

본문

또다른 방법

해당 스킨 gbview.skin.php상단에

$file[$i][file1_v]="./data/file/$bo_table/" .$row[wr_file1];      를 추가하고

보여줄 곳에

<img src='$file[$i][file1_v]' width='???' height='????'>

이렇게 함 해보셔요...
  • 복사

댓글 전체

상단에
<?
if($write[wr_file1]){
$row=$write;
$file1_v= "<img src='./data/file/$board[bo_table]/$row[wr_file1]' width='223' height='208' align='center' style='border:1 solid #222222' >";} <=== 사이즈는 여기서 조정하시구요
?>
이렇게 하구요

<?
    for ($i=1; $i<=$cfg[file_count]; $i++) {
    if ($file[$i][view]) {
                        echo "$file1_v"; }
                }
?>
상단에 아래를 삭제하시고
$file[$i][file1_v]="./data/file/$bo_table/" .$row[wr_file1];

이렇게 해보세요
<?
    for ($i=1; $i<=$cfg[file_count]; $i++) {
    if ($file[$i][view]) {
                    $file[$i][file1_v]="./data/file/$bo_table/" .$row[wr_file1];
                    echo "<img src='$file[$i][file1_v]' width='???' height='????'>"; }
                }
?>
아래부분을 위처럼 수정해 보셔요

<?
                for ($i=1; $i<=$cfg[file_count]; $i++) {
                    if ($file[$i][view]) { echo $file[$i][view]; }
                }
                ?>

                <!-- 내용 출력 -->
<?
    for ($i=1; $i<=$cfg[file_count]; $i++) {
    if ($file[$i][view]) { echo "<img src='$file[$i][file1_v]' width='???' height='????'>"; }
                }
<?
$file[$i][file1_v]="./data/file/$bo_table/" .$row[wr_file1];
?>
<!-- 2003.11.26 작성 -->
<!-- 원글 내용 -->
<style>
  .tt {font-size:9pt; COLOR: #575757;}
</style>

<table width=<?=$width?> border=0 align=center cellpadding=0 cellspacing=0>
<tr height=30 bgcolor=#F5F3EE>
    <td>&nbsp;&nbsp;<span class=tt><b><?=$subject?></b></span></td>
    <td align=right><span class=tt><?=$datetime?></span>&nbsp;&nbsp;</td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#C3BEB2></td></tr>
<tr><td colspan=2 height=25>&nbsp;&nbsp;<font color="cf4900">이름</font> : <?=$name?> &nbsp;(<?=$ip?>) &nbsp;<font color="cf4900">조회</font> : <?=$hit?>&nbsp;&nbsp;<? if ($is_good) echo "<font color='#cf4900'>추천</font> : " . $good; ?>&nbsp;&nbsp;<? if ($is_nogood) echo "<font color='#cf4900'>비추천</font> : " . $nogood; ?></td></tr>
<tr><td colspan=2 height=1 bgcolor=#D4CFC3></td></tr>                                                                                                                                                                                                                                                                   
<tr><td colspan=2 height=25>&nbsp;&nbsp;<font color="cf4900">평점</font> : <?=$write[wr_1]?></td></tr>
<tr><td colspan=2 height=25>&nbsp;&nbsp;<font color="cf4900">감독</font> : <?=$write[wr_2]?></td></tr>
<? if ($is_category) echo "<tr><td colspan=2 height=25>&nbsp;&nbsp;<font color='cf4900'>장르</font> : $category_name</td></tr>"; ?>
<tr><td colspan=2 height=25>&nbsp;&nbsp;<font color="cf4900">주연</font> : <?=$write[wr_3]?></td></tr>
<tr><td colspan=2 height=25>&nbsp;&nbsp;<font color="cf4900">상영일</font> : <?=$write[wr_4]?></td></tr>
<tr><td colspan=2 height=25>&nbsp;&nbsp;<font color="cf4900">O.S.T</font> : <embed src=<?=$write[wr_5]?> autostart="false" align=absmiddle></td></tr>
<tr><td colspan=2 height=1 bgcolor=#D4CFC3></td></tr>
<tr>
    <td colspan=2>
        <table width=100% cellpadding=5>
        <tr>
            <td style='word-break:break-all;' class='lh' height=100>

                <?
                for ($i=1; $i<=$cfg[file_count]; $i++) {
                    if ($file[$i][view]) { echo $file[$i][view]; }
                }
                ?>

                <!-- 내용 출력 -->
                <span class=content><?=$content?></span>

                <!-- 테러 태그 방지용 -->
                </xml></xmp><a href=""></a><a href=''></a>
            </td>
        </tr>

        <?
        // 링크 설정한 값만큼 출력
        for ($i=1; $i<=$cfg[link_count]; $i++) {
            if ($link[$i][link]) { echo "<tr><td class=tt>&nbsp;<img src='$board_skin/icon_link.gif' align='absmiddle'> <a href='{$link[$i][href]}' target='$default[de_link_target]'><span class=tt>{$link[$i][link]}</span></a>, Hit:{$link[$i][hit]}</td></tr>"; }
        }
        ?>

        <?
        // 파일 업로드 설정한 값만큼 출력
        for ($i=1; $i<=$cfg[file_count]; $i++) {
            if ($file[$i][source]) { echo "<tr><td class=tt>&nbsp;<img src='$board_skin/icon_download.gif' align='absmiddle'> <a href='{$file[$i][href]}'><span class=tt>{$file[$i][source]} ({$file[$i][size]})</span></a>, Down:{$file[$i][download]}</td></tr>"; }
        }
        ?>

        <? if ($is_signature) { echo "<tr><td>$signature</td></tr>"; } // 서명 출력 ?>
        </table>
    </td>
</tr>
</table><br>


<? if ($is_comment) { ?>
    <!-- 코멘트 내용 -->
    <? for ($i=0; $i<count($list); $i++) { ?>
    <a name='c<?=$list[$i][wr_id]?>'></a>

    <table width=<?=$width?> border=0 align=center cellpadding=0 cellspacing=0>
    <tr>
        <td height=25 bgcolor=#F1F1F1>&nbsp;&nbsp;<?=$list[$i][name]?></td>
        <td align=right bgcolor=#F1F1F1><font color="cf4900"><?=$list[$i][datetime]?></font>&nbsp;<? if ($list[$i][is_del]) { echo "{$list[$i][del_href]}<img src='$board_skin/com_del.gif' border=0 align=absmiddle></a>&nbsp;"; } ?></td>
    </tr>
    <tr>
        <td colspan=2 valign=top>
            <table width=100% cellpadding=7 cellspacing=0>
            <tr>
                <td style='word-break:break-all; text-align:justify;' class='lh tt'><?=$list[$i][content]?></td>
            </tr>
            <tr><td colspan=2 align=right> <?=$list[$i][ip]?></td></tr>
            </table>
        </td>
    </tr>
    </table>
    <? } // for ?>

    <? if ($is_comment_write) { ?>
    <!-- 코멘트 쓰기 -->
    <table width=<?=$width?> border=0 align=center cellpadding=0 cellspacing=0>
    <tr><td height=1 bgcolor=#D4CFC3></td></tr>
    </table><br>
    <table width=<?=$width?> align=center cellpadding=0 cellspacing=0 border=0>
    <form name=fgbview method=post action='./?doc=bbs/gbupdate.php'>
    <input type=hidden name=w        value='c'>
    <input type=hidden name=bo_table value='<?=$bo_table?>'>
    <input type=hidden name=sselect  value='<?=$sselect?>'>
    <input type=hidden name=stext    value='<?=$stext?>'>
    <input type=hidden name=wr_id    value='<?=$wr_id?>'>
    <input type=hidden name=page    value='<?=$page?>'>
    <input type=hidden name=section  value='<?=$section?>'>
    <colgroup width=170>
    <colgroup width=''>
    <colgroup width=50>
    <tr>
        <td>
            <table width=100%>
            <tr>
                <td width=70><img src='<?=$board_skin?>/img_name.gif'></td>
                <td width=100><?=$c_name?></td>
            </tr>
            <? if ($is_guest) { ?>
            <tr>
                <td><img src='<?=$board_skin?>/img_pw.gif'></td>
                <td><input type=password name=wr_passwd size=10 class=input required itemname='비밀번호'></td>
            </tr>
            <? } ?>
            </table>
        </td>
        <td> &nbsp;<textarea name=wr_content rows=3 style='width:98%; line-height:150%;' required itemname='내용' class=textarea></textarea></td>
        <td>
            <table width=100%>
            <tr><td><input type=image src='<?="$board_skin/btncomment.gif"?>' border=0 align=absmiddle></td></tr>
            <tr><td><a href='javascript:textarea_size(document.fgbview.wr_content, 5)'><img src='<?=$board_skin?>/icon_down.gif' border=0></a> <a href='javascript:textarea_size(document.fgbview.wr_content, -5)'><img src='<?=$board_skin?>/icon_up.gif' border=0></a></td></tr>
            </table>
        </td>
    </tr>
    </form>
    </table><br>
    <? } // if ?>
<? } // if ?>


<!-- 링크 -->
<table width=<?=$width?> align=center border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2 height=1 bgcolor=#D4CFC3></td></tr>
<tr>
    <td width=70% height=35>
        <? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin/searchlist.gif' border=0 alt='검색목록' align=absmiddle></a>"; } ?>
        <? echo "<a href=\"$list_href\"><img src='$board_skin/list.gif' border=0 alt='목록' align=absmiddle></a>"; ?>

        <? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin/write.gif' border=0 alt='글쓰기' align=absmiddle></a>"; } ?>
        <? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin/reply.gif' border=0 alt='답변' align=absmiddle></a>"; } ?>

        <? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin/edit.gif' border=0 alt='수정' align=absmiddle></a>"; } ?>
        <? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin/delete.gif' border=0 alt='삭제' align=absmiddle></a>"; } ?>

        <? if ($good_href) { echo "<a href=\"$good_href\"><img src='$board_skin/good.gif' border=0 alt='추천' align=absmiddle></a>"; } ?>
        <? if ($nogood_href) { echo "<a href=\"$nogood_href\"><img src='$board_skin/nogood.gif' border=0 alt='비추천' align=absmiddle></a>"; } ?>

        <? if ($copy_href) { echo "<a href=\"$copy_href\"><img src='$board_skin/copy.gif' border=0 alt='복사' align=absmiddle></a>"; } ?>
        <? if ($move_href) { echo "<a href=\"$move_href\"><img src='$board_skin/move.gif' border=0 alt='이동' align=absmiddle></a>"; } ?>
    </td>
    <td width=30% align=right>
        <? if ($prev_href) { echo "<a href=\"$prev_href\" title=\"$prev_wr_subject\"><img src='$board_skin/prev.gif' border=0 alt='이전글' align=absmiddle></a>"; } ?>
        <? if ($next_href) { echo "<a href=\"$next_href\" title=\"$next_wr_subject\"><img src='$board_skin/next.gif' border=0 alt='다음글' align=absmiddle></a>"; } ?>
    </td>
</tr>
</table>
만도님,zzzz님 저는 초보 랍니다^^
어느부분에 넣어야 할지 모르것슈...
© SIRSOFT
현재 페이지 제일 처음으로