이은태님 갤러리를 gblist에서 새창으로 뛰울려고 하는데 > 그누3질답

그누3질답

이은태님 갤러리를 gblist에서 새창으로 뛰울려고 하는데 정보

그누보드 이은태님 갤러리를 gblist에서 새창으로 뛰울려고 하는데

본문

오류에 대한 질문이신 경우 아래의 내용을 상세히 채워주시면 답변이 수월해 집니다.
오류발생 주소 (반드시) :
그누보드 버전 :
OS (리눅스, 윈도우즈, 기타) :
PHP 버전 :
register_globals (On, Off 여부) :
MySQL 버전 :
웹호스팅 회사 :
답변하실분께 미리 감사의 마음을 전해주세요. :

질문내용 : 이은태님 갤러리를 gblist에서 새창으로 뛰울려고 하는데
요기다가 새창을 뛰우면 되는지요?-----><a href='<?=$list[$i][href]?>' onfocus=blur()><img src='<?=$thum?>' width='<?=$thum_W?>' height='<?=$thum_H?>' alt='<?=$list[$i][wr_subject]?>' style='border-color:#A5A5A5;' border=0 ></a></td>

-------------------------------
<?
include_once $board_skin."/_include.php";
?>

<?
//$image_width  = 300; // 이미지 폭
//$image_height = 200; // 이미지 높이
?>

<table width='<?=$width?>' align=center><tr><td>

<table width=100%>
<tr>
    <form name=fcategory method=get action='./'>
    <input type=hidden name=doc value='<?=$doc?>'>
    <td width=50%>
        <? if ($is_category) { ?>
            <select name=ca_id onchange="location='<?=$category_location?>'+this.value;" class=select>
            <option value=''>전체</option>
            <?=$category_option?>
            </select>
        <? } ?>
    </td>
    </form>
    <td width=50% align=right><span class=etc>게시물 <?=nf($total_count)?>건</span>
    <? if ($admin_href) { echo "<a href='$admin_href'><u>A</u></a>"; } ?></td>
</tr>
</table>

<table width=100% border=0 cellpadding=3 cellspacing=1>
<form name=frmgblist method='post' action='<?="./?doc=$cfg[bbs_dir]/gbdeleteall.php"?>'>
        <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=section  value='<?=$section?>'>
        <input type=hidden name=page    value='<?=$page?>'>

    <tr><td colspan=8 height=5 bgcolor=#ffffff></td></tr>
    <tr><td background='<?=$board_skin?>/sdw_A.gif' width='100%' height='30'></td></tr>
    <tr><td colspan=8 height=10 bgcolor=#ffffff></td></tr>

</table>



<?
// 번호에 이미지를 사용할 경우는 아래의 주석을 제거하고 $list[$i][num]의 내용을 수정후 사용하세요.
// if (!is_int($list[$i][num])) { $list[$i][num] = "<img src='$board_skin/img/arrow.gif'>"; }
?>

<!-- 여기부터 반복 부분 =================================================================================================================== -->

<table width=100% align=center cellpadding=3 border=0 >
<tr>
<? 
for ($i=0; $i<count($list); $i++) {

    $tr = "";
    if ($i && $i%$board[bo_gallery_width]==0) {
        $tr = "</tr><tr>";
    }
echo "$tr";

//if (!file_exists($list[$i][file_image1])) { $list[$i][file_image1] = "$board_skin/noimage.gif"; }


####################################################################################################################################################

$ori = $list[$i][file_image1]; //[필수](URL) "./img/Test.gif"

$ext = strtolower(substr(strrchr($ori,"."), 1)); //확장자

//if ( file_exists($ori) ) $ori_info=getimagesize($ori); else $ori_info=""; //파일이 있을 경우, 확장자 지정.
if ( $ext=="gif"||$ext=="jpg"||$ext=="jpeg"||$ext=="png"||$ext=="bmp"||$ext=="tif"||$ext=="tiff") $ori_info=getimagesize($ori); else $ori_info="";



if ( $ori_info[2]=="2" || $ori_info[2]=="3" ) { //============================================================ 원파일이 [ 2JPG, 2JPEG, 3PNG ] 경우.


$thum = $ori.".Thum" ;
if ( file_exists($thum) ) { // Thumbnail [O] 경우

$thum_info = getimagesize ($thum);
$thum_W = $thum_info[0] ;
$thum_H = $thum_info[1] ;

} else { // Thumbnail [X] 경우

if ( smaller( $ori_info[0], $ori_info[1] ) ) {

maker( $thum_W, $thum_H );
}
}

} else if ( $ori_info[2]=="1" || $ori_info[2]=="6" || $ori_info[2]=="7" ) { //=================== 원파일이 [ 1GIF,6BMP,7TIF ] 경우.

if ( smaller( $ori_info[0], $ori_info[1] ) ) {

$thum = $ori ;
}

} else { //========================================================================================= 원파일이 [ 1,2,3,6,7 ] 아닐 경우.

$thum = $noIMG ;
$noIMG_info = getimagesize ($noIMG);
$thum_W = $noIMG_info[0] ;
$thum_H = $noIMG_info[1] ;
}
####################################################################################################################################################


?>

    <td width='<?=$td_width?>%' valign=top align=center>



        <table !bgcolor=silver cellpadding=0 cellspacing=0 border=0 >

        <tr>


            <td !align=center !valign=middle !bgcolor=#F2F4F4 style='padding:12;'>

요기다가 새창을 뛰우면 되는지요?-----><a href='<?=$list[$i][href]?>' onfocus=blur()><img src='<?=$thum?>' width='<?=$thum_W?>' height='<?=$thum_H?>' alt='<?=$list[$i][wr_subject]?>' style='border-color:#A5A5A5;' border=0 ></a></td>

<td width=10 background='<?=$board_skin?>/sdw_R.gif' ></td>
        </tr>


<tr height=10 >
<td background='<?=$board_skin?>/sdw_B.gif' ></td>
<td background='<?=$board_skin?>/sdw_RB.gif' ></td>
</tr>


        </table>



<TABLE height=5 cellspacing=0 ><TR><TD></TD></TR></TABLE>

        <? if ($is_checkdelete) { ?><input type=checkbox name=chk_wr_id[] value='<?=$list[$i][wr_id]?>'><? } ?>&nbsp;<a href='<?=$list[$i][href]?>'><? if ($list[$i][is_notice]) echo "<b>"; ?><?=cut_str($list[$i][subject],$str,"…");?></a> <?=$list[$i][icon_new]?><? if ($list[$i][is_notice]) echo "</b>"; ?>
            <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span>
    </td>

<? }
 if (count($list) == 0) { echo "<tr><td colspan=8 align=center height=100 class='content contentbg'>자료가 없습니다.</td></tr>"; }
 
?>

</form>


</table>

<table width=100% border=0 cellpadding=0 cellspacing=0>

    <tr><td colspan=8 height=5 bgcolor=#ffffff></td></tr>
    <tr><td colspan=8 height=1 bgcolor=#999999></td></tr>
    <tr><td colspan=8 height=5 bgcolor=#ffffff></td></tr>

</table>



<!-- 여기까지 반복 부분 =================================================================================================================== -->



<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
    <td width=50%>
<? if ($list_href) { echo "<a href='$list_href'><img src='./$board_skin/list.jpg' border='0'></a>"; } ?>
        <? if ($write_href) { echo "<a href='$write_href'><img src='./$board_skin/write.jpg' border='0'></a>"; } ?>
        <? if ($is_checkdelete) { ?>
        <a href='javascript:all_checked(true);'><img src='./<?=$board_skin?>/sel_all.jpg' border='0'></a> <a href='javascript:all_checked(false);'><img src='./<?=$board_skin?>/de_sel.jpg' border='0'></a>
        <a href='javascript:all_delete();'><img src='./<?=$board_skin?>/sel_del.jpg' border='0'></a>
        <script language='javascript'>
            function all_checked(sw)
            {
                var f = document.frmgblist;

                for (var i=0; i<f.length; i++) {
                    if (f.elements[i].name == 'chk_wr_id[]') {
                        f.elements[i].checked = sw;
                    }
                }
            }

            function all_delete()
            {
                var f = document.frmgblist;
                var chk_count = 0;

                for (var i=0; i<f.length; i++) {
                    if (f.elements[i].name == 'chk_wr_id[]' && f.elements[i].checked) {
                        chk_count++;
                    }
                }
               
                if (!chk_count) {
                    alert("게시물을 하나 이상 선택하세요.");
                    return;
                }

                if (!confirm("선택한 게시물을 정말 삭제 하시겠습니까?\n\n한번 삭제한 자료는 복구할 수 없습니다")) {
                    return;
                }

                f.submit();
            }
        </script>
        <? } ?>
    </td>

<form name=fsearch method=get action='./'>
    <input type=hidden name=doc value='<?=$doc?>'>
    <input type=hidden name=bo_table value='<?=$bo_table?>'>

    <td width=50% align=right>
        <select name=sselect class=select>
            <option value='wr_subject|wr_content'>제목+내용</option>
            <option value='wr_name'>이름</option>
            <option value='wr_num'>번호</option>
            <option value='wr_datetime'>날짜</option>
            <option value='wr_subject'>제목</option>
            <option value='wr_content'>내용</option>
            <option value='wr_hit'>읽음</option>
            <? if ($is_good) { ?><option value='wr_good'>추천</option><? } ?>
            <? if ($is_nogood) { ?><option value='wr_nogood'>비추천</option><? } ?>
        </select><input type=text name=stext size=10 required itemname='검색어' class=input2 value='<?=$stext?>'><input type=submit value='검색' class=button>
    </td>
    </form>
</tr>
</table>
<? if ($stext) { ?>
    <script language='JavaScript'>
        if ('<?=$sselect?>' == 'ca_id') {
            document.fcategory.ca_id.value = '<?=$stext?>';
            document.fsearch.stext.value = '';
        } else {
            document.fsearch.sselect.value = '<?=$sselect?>';
        }
    </script>
<? } ?>

<table align=center width=100%>
<tr>
    <td align=right>
        <? if ($prev_section_href) { echo "<a href='$prev_section_href'>이전검색</a>"; } ?>
        <?=$write_pages?>
        <? if ($next_section_href) { echo "<a href='$next_section_href'>다음검색</a>"; } ?>
    </td>
</tr>
</table>

</td></tr></table>
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로