noimage를 gbview.skin에서 보이게하려면? 정보
그누보드 noimage를 gbview.skin에서 보이게하려면?본문
아래는 gbview.skin.php 소스입니다.
-----------------------------------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 금액에 컴마 삽입
function money_view($money)
{
$len=strlen($money);
$result=$len/3;
$re1=floor($result);
$re2=$len%3;
if (($len>3)&&($len<7))
{
$re1=$len%3;
if ($re1==0) {$re1=3;}
$v1=substr($money,-3,3);
$v2=substr($money,(-1*$len),$re1);
$view=$v2.",".$v1;
}
else if ($len>=7)
{
$re1=$len%3;
if ($re1==0) {$re1=3;}
$v1=substr($money,-3,3);
$v2=substr($money,-6,3);
$v3=substr($money,(-1*$len),$re1);
$view=$v3.",".$v2.",".$v1;
}
else
{
$view=$money;
}
return $view;
}
$p_one = explode("|",$write[wr_5]);
$one01 = $p_one[0];
$one02 = $p_one[1];
$one03 = $p_one[2];
$one04 = $p_one[3];
$one05 = $p_one[4];
$one06 = $p_one[5];
$one07 = $p_one[6];
$one08 = $p_one[7];
$one09 = $p_one[8];
$one10 = $p_one[9];
$one11 = $p_one[10];
$one12 = $p_one[11];
$one13 = $p_one[12];
$one14 = $p_one[13];
$one15 = $p_one[14];
$one16 = $p_one[15];
$one17 = $p_one[16];
$one18 = $p_one[17];
$one19 = $p_one[18];
$one20 = $p_one[19];
?>
<SCRIPT LANGUAGE="JavaScript">
<!--
function view(what) {
var height = screen.height;
var width = screen.width;
var leftpos = width / 2 - 600;
var toppos = height / 2 - 400;
var imgwin = window.open("",'WIN','scrollbars=yes,status=no,toolbar=no,resizable=1,location=no,menu=no,width=' + width + ',height=' + height + ',left=' + leftpos + ',top=' + toppos);
imgwin.focus();
imgwin.document.open();
imgwin.document.write("<html>\n");
imgwin.document.write("<head>\n");
imgwin.document.write("<title>원본이미지 보기</title>\n");
imgwin.document.write("</head>\n");
imgwin.document.write('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#FFFFFF">\n');
imgwin.document.write("<img src="+what+" width=' + width + ' height=' + height + ' border=0>\n");
imgwin.document.write("<a href='#' onclick='window.close()'><img src='" + what + "' border=0 style='position:absolute;top:0pt;left:0pt;' alt='클릭하면 닫힙니다.'></a>\n");
imgwin.document.write("</body>\n");
imgwin.document.close();
}
//-->
</SCRIPT>
<? if($write[wr_file1]){
$file1_v= "<img src='./data/file/$board[bo_table]/$write[wr_file1]' width='250' height='250' style='border:0' >"; }
?>
<style type="text/css">
<!--
.tt {font-size:9pt; COLOR: #575757;}
-->
</style>
<table cellspacing=0 cellpadding=0 border=0 width=<?=$width?>>
<tr>
<td width=200><div align=center style=width:100%><? if ($file[1][view]) { echo "$file1_v"; } ?></div>
<div align=center style=width:100%><a href="javascript:;" onclick="view('./data/file/<?=$bo_table?>/<?=$write[wr_file1]?>')"><img src=<?=$board_skin?>/bigimages.gif border=0>
</a> <a href='<?=$link[1][href]?>' target="_blank"><img src=<?=$board_skin?>/i_order.gif border=0></a></div></td>
<td width=10></td>
<td valign=top>
<table cellspacing=0 cellpadding=0 border=0 width=100%>
<tr>
<td valign="top" align="left" bgcolor="white" border="0">
<table cellspacing=0 cellpadding=0 border=0 width=100%>
<tr>
<td colspan=3 height=25> <B>ㆍ</B>회사명 : <B><a href=#fb onclick="copyText('<?=$subject?>');">
</a><FONT color=maroon SIZE="2">
<?=$subject?>
</FONT></B> </td>
</tr>
<tr>
<td colspan=3 height=2 bgcolor=cccccc></td>
</tr>
<tr>
<td colspan=3 height=1></td>
</tr>
<tr>
<td colspan=3 height=1 background=<?=$dir?>/dot1.gif></td>
</tr>
<tr>
<td height=25 width=80> <B>ㆍ</B>등록일</td>
<td height=25>:
<span class=tt>
<?=$datetime?>
</span></td>
</tr>
<tr>
<td colspan=3 height=1 background=<?=$dir?>/dot1.gif></td>
</tr>
<tr>
<td height=25 width=80> <B>ㆍ</B>담당자</td>
<td height=25>: <a href=#fb onclick="copyText('<?=$write[wr_1]?>');">
</a>
<?=$write[wr_1]?> </td>
</tr>
<tr>
<td colspan=3 height=1 background=<?=$dir?>/dot1.gif></td>
</tr>
<tr>
<td height=25 width=80> <B>ㆍ</B>전화번호</td>
<td height=25>:
<?=$write[wr_2]?> </td>
</tr>
<tr>
<td colspan=3 height=1 background=<?=$dir?>/dot1.gif></td>
</tr>
<tr>
<td height=25 width=80> <B>ㆍ</B>팩 스 </td>
<td height=25>: <a href=#fb onclick="copyText('<?=$write[wr_2]?>');">
</a><a href='<?=$one02?>' target=_blank>
<?=$one01?>
</a>
</td>
</tr>
<tr>
<td colspan=3 height=1 background=<?=$dir?>/dot1.gif></td>
</tr>
<tr>
<td height=25 width=80> <B>ㆍ</B>메 일 </td>
<td height=25>:
<?=$write[wr_4]?></td>
</tr>
<tr>
<td colspan=3 height=1 background=<?=$dir?>/dot1.gif></td>
</tr>
<tr>
<td height=25 width=80> <B>ㆍ</B>홈페이지 </td>
<td height=25>:
<?=$one02?></td>
</tr>
<tr>
<td colspan=3 height=1 background=<?=$dir?>/dot1.gif></td>
</tr>
<tr>
<td height=25 width=80> <B>ㆍ</B>주 소</td>
<td height=25>:
<?=$one03?></td>
</tr>
<tr>
<td height=25> <B>ㆍ</B>소비자가 </td>
<td height=25>:
<font color=#FF0000><strike><?=$one03?></strike></font>원</td>
</tr>
<tr>
<td height=25> <B>ㆍ</B>판매가</td>
<td height=25>:
<?=$one04?>원</td>
</tr>
<tr>
<td colspan=3 height=1 background=<?=$dir?>/dot1.gif></td>
</tr>
</table></td></tr><br>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td height=10> <td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="1" bgcolor="dddddd"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td><?=$content?></td>
</tr>
</table>
<table cellspacing=0 cellpadding=0 border=0 width=<?=$width?>>
<tr>
<td height=2 bgcolor=cccccc></td>
</tr>
<tr>
<td height=1></td>
</tr>
<tr>
<td height=1 background=<?=$board_skin?>/dot1.gif></td>
</tr>
</table>
<?=$hide_comment_start?>
<table border=0 cellspacing=0 cellpadding=0 width=<?=$width?>>
<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>
<script>
function copyText(x) {
window.clipboardData.setData('Text', x);
alert('복사되었습니다.');
}
</script>
------------------------------------------------------------------------------------------------
no image를 사용하려면 어느부분에 무엇을 추가합니까??
-----------------------------------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 금액에 컴마 삽입
function money_view($money)
{
$len=strlen($money);
$result=$len/3;
$re1=floor($result);
$re2=$len%3;
if (($len>3)&&($len<7))
{
$re1=$len%3;
if ($re1==0) {$re1=3;}
$v1=substr($money,-3,3);
$v2=substr($money,(-1*$len),$re1);
$view=$v2.",".$v1;
}
else if ($len>=7)
{
$re1=$len%3;
if ($re1==0) {$re1=3;}
$v1=substr($money,-3,3);
$v2=substr($money,-6,3);
$v3=substr($money,(-1*$len),$re1);
$view=$v3.",".$v2.",".$v1;
}
else
{
$view=$money;
}
return $view;
}
$p_one = explode("|",$write[wr_5]);
$one01 = $p_one[0];
$one02 = $p_one[1];
$one03 = $p_one[2];
$one04 = $p_one[3];
$one05 = $p_one[4];
$one06 = $p_one[5];
$one07 = $p_one[6];
$one08 = $p_one[7];
$one09 = $p_one[8];
$one10 = $p_one[9];
$one11 = $p_one[10];
$one12 = $p_one[11];
$one13 = $p_one[12];
$one14 = $p_one[13];
$one15 = $p_one[14];
$one16 = $p_one[15];
$one17 = $p_one[16];
$one18 = $p_one[17];
$one19 = $p_one[18];
$one20 = $p_one[19];
?>
<SCRIPT LANGUAGE="JavaScript">
<!--
function view(what) {
var height = screen.height;
var width = screen.width;
var leftpos = width / 2 - 600;
var toppos = height / 2 - 400;
var imgwin = window.open("",'WIN','scrollbars=yes,status=no,toolbar=no,resizable=1,location=no,menu=no,width=' + width + ',height=' + height + ',left=' + leftpos + ',top=' + toppos);
imgwin.focus();
imgwin.document.open();
imgwin.document.write("<html>\n");
imgwin.document.write("<head>\n");
imgwin.document.write("<title>원본이미지 보기</title>\n");
imgwin.document.write("</head>\n");
imgwin.document.write('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#FFFFFF">\n');
imgwin.document.write("<img src="+what+" width=' + width + ' height=' + height + ' border=0>\n");
imgwin.document.write("<a href='#' onclick='window.close()'><img src='" + what + "' border=0 style='position:absolute;top:0pt;left:0pt;' alt='클릭하면 닫힙니다.'></a>\n");
imgwin.document.write("</body>\n");
imgwin.document.close();
}
//-->
</SCRIPT>
<? if($write[wr_file1]){
$file1_v= "<img src='./data/file/$board[bo_table]/$write[wr_file1]' width='250' height='250' style='border:0' >"; }
?>
<style type="text/css">
<!--
.tt {font-size:9pt; COLOR: #575757;}
-->
</style>
<table cellspacing=0 cellpadding=0 border=0 width=<?=$width?>>
<tr>
<td width=200><div align=center style=width:100%><? if ($file[1][view]) { echo "$file1_v"; } ?></div>
<div align=center style=width:100%><a href="javascript:;" onclick="view('./data/file/<?=$bo_table?>/<?=$write[wr_file1]?>')"><img src=<?=$board_skin?>/bigimages.gif border=0>
</a> <a href='<?=$link[1][href]?>' target="_blank"><img src=<?=$board_skin?>/i_order.gif border=0></a></div></td>
<td width=10></td>
<td valign=top>
<table cellspacing=0 cellpadding=0 border=0 width=100%>
<tr>
<td valign="top" align="left" bgcolor="white" border="0">
<table cellspacing=0 cellpadding=0 border=0 width=100%>
<tr>
<td colspan=3 height=25> <B>ㆍ</B>회사명 : <B><a href=#fb onclick="copyText('<?=$subject?>');">
</a><FONT color=maroon SIZE="2">
<?=$subject?>
</FONT></B> </td>
</tr>
<tr>
<td colspan=3 height=2 bgcolor=cccccc></td>
</tr>
<tr>
<td colspan=3 height=1></td>
</tr>
<tr>
<td colspan=3 height=1 background=<?=$dir?>/dot1.gif></td>
</tr>
<tr>
<td height=25 width=80> <B>ㆍ</B>등록일</td>
<td height=25>:
<span class=tt>
<?=$datetime?>
</span></td>
</tr>
<tr>
<td colspan=3 height=1 background=<?=$dir?>/dot1.gif></td>
</tr>
<tr>
<td height=25 width=80> <B>ㆍ</B>담당자</td>
<td height=25>: <a href=#fb onclick="copyText('<?=$write[wr_1]?>');">
</a>
<?=$write[wr_1]?> </td>
</tr>
<tr>
<td colspan=3 height=1 background=<?=$dir?>/dot1.gif></td>
</tr>
<tr>
<td height=25 width=80> <B>ㆍ</B>전화번호</td>
<td height=25>:
<?=$write[wr_2]?> </td>
</tr>
<tr>
<td colspan=3 height=1 background=<?=$dir?>/dot1.gif></td>
</tr>
<tr>
<td height=25 width=80> <B>ㆍ</B>팩 스 </td>
<td height=25>: <a href=#fb onclick="copyText('<?=$write[wr_2]?>');">
</a><a href='<?=$one02?>' target=_blank>
<?=$one01?>
</a>
</td>
</tr>
<tr>
<td colspan=3 height=1 background=<?=$dir?>/dot1.gif></td>
</tr>
<tr>
<td height=25 width=80> <B>ㆍ</B>메 일 </td>
<td height=25>:
<?=$write[wr_4]?></td>
</tr>
<tr>
<td colspan=3 height=1 background=<?=$dir?>/dot1.gif></td>
</tr>
<tr>
<td height=25 width=80> <B>ㆍ</B>홈페이지 </td>
<td height=25>:
<?=$one02?></td>
</tr>
<tr>
<td colspan=3 height=1 background=<?=$dir?>/dot1.gif></td>
</tr>
<tr>
<td height=25 width=80> <B>ㆍ</B>주 소</td>
<td height=25>:
<?=$one03?></td>
</tr>
<tr>
<td height=25> <B>ㆍ</B>소비자가 </td>
<td height=25>:
<font color=#FF0000><strike><?=$one03?></strike></font>원</td>
</tr>
<tr>
<td height=25> <B>ㆍ</B>판매가</td>
<td height=25>:
<?=$one04?>원</td>
</tr>
<tr>
<td colspan=3 height=1 background=<?=$dir?>/dot1.gif></td>
</tr>
</table></td></tr><br>
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td height=10> <td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="1" bgcolor="dddddd"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td><?=$content?></td>
</tr>
</table>
<table cellspacing=0 cellpadding=0 border=0 width=<?=$width?>>
<tr>
<td height=2 bgcolor=cccccc></td>
</tr>
<tr>
<td height=1></td>
</tr>
<tr>
<td height=1 background=<?=$board_skin?>/dot1.gif></td>
</tr>
</table>
<?=$hide_comment_start?>
<table border=0 cellspacing=0 cellpadding=0 width=<?=$width?>>
<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>
<script>
function copyText(x) {
window.clipboardData.setData('Text', x);
alert('복사되었습니다.');
}
</script>
------------------------------------------------------------------------------------------------
no image를 사용하려면 어느부분에 무엇을 추가합니까??
댓글 전체