★가능할까요? view_skin.php 내의 그림삽입...배우고싶어요 정보
★가능할까요? view_skin.php 내의 그림삽입...배우고싶어요본문
-소스-
$ex2_filed = explode("|",$view[wr_2]); // 소비자가/판매가/가격절충여부
$ext2_00 = $ex2_filed[0];
$ext2_01 = $ex2_filed[1];
$ext2_02 = $ex2_filed[2];
$ex3_filed = explode("|",$view[wr_3]); // 물품배송/거래상태/판매수량
$ext3_00 = $ex3_filed[0]; // 물품배송
$ext3_01 = $ex3_filed[1]; // 거래상태
$ext3_02 = $ex3_filed[2]; // 판매수량
?>
</table>
<table width="100%" cellspacing="0" cellpadding="0"style="border-right-width:1px; border-bottom-width:1px; border-left-width:1px; border-color:rgb(204,204,204); border-right-style:solid; border-bottom-style:solid; border-left-style:solid;">
<tr height="30">
<td width="50%" align=center style='padding-left:10px; padding-top:10px; padding-BOTTOM:10px; padding-right:10px;'>
<? for ($i=0; $i<=4; $i++) {$image[$i] = "$g4[path]/data/file/$bo_table/".$view[file][$i][file];}?>
<table width="220" cellspacing="0" cellpadding="0" style="border-width:1px; border-style:solid;padding-left:10px; padding-top:10px; padding-BOTTOM:10px; padding-right:10px;" align=center>
<tr>
<td width="100%">
<? if ($view[file][0][view]) {?>
<img src="<?=$image[0]?>" name=gallery_img width="200" height="190" border=0 value=0>
<? } else {?>
<img src="<?=$board_skin_path?>/img/no_image.gif" border=0 value=0>
<? } ?>
</td>
</tr>
</table>
<table width="100%">
<tr>
<td align="center">
<? if ($view[file][0][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[0]."','".$image[0]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>><img src="<?=$board_skin_path?>/img/p_1.gif" align="absmiddle" border="0"></a><? }?>
<? if ($view[file][1][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[1]."','".$image[1]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>><img src="<?=$board_skin_path?>/img/p_2.gif" align="absmiddle" border="0"></a><? }?>
<? if ($view[file][2][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[2]."','".$image[2]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$board_skin_path?>/img/p_3.gif" align="absmiddle" border="0"></a><? }?>
<? if ($view[file][3][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[3]."','".$image[3]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$board_skin_path?>/img/p_4.gif" align="absmiddle" border="0"></a><? }?>
<? if ($view[file][4][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[4]."','".$image[4]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$board_skin_path?>/img/p_5.gif" align="absmiddle" border="0"></a><? }?>
</td>
</tr>
</table>
</td>
<td width="50%">
<table width="90%" cellspacing="0" cellpadding="0" style="border-width:1px; border-style:solid;">
<tr height="30">
<td width="100%"> <img src="<?=$board_skin_path?>/img/icon_nemo.gif" width="11" height="10"> <strong>상품명 : <?=$view[wr_6]?>
<? // 아이콘출력
if ($view[is_notice]) { echo "<img src=\"$board_skin_path/img/icon_level01.gif\" width=15 height=15 align='absmiddle'>"; }
else if ($view[wr_1] == "1") { echo "<img src=\"$board_skin_path/img/icon_level02.gif\" width=15 height=15 align='absmiddle'>"; }
else { echo ""; }
?>
<!-- // 거래관련 아이콘 출력 --//-->
<? if($ext3_01 == "on") {echo "<img src='{$board_skin_path}/img/icon_on.gif' border='0' width='47' height='16' align='absmiddle'>"; } ?>
<? if($ext3_01 == "off") {echo "<img src='{$board_skin_path}/img/icon_off.gif' border='0' width='47' height='16' align='absmiddle'>";} ?>
</td>
</tr>
<tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
<tr height="30"><td width="100%"> <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>물품수량 : </strong><?=$ext3_02?> 개</td></tr>
<tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
<tr height="30"><td width="100%"> <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>소비자가 : <?=number_format($ext2_00)?> 원</td></tr>
<tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
<tr height="30"><td width="100%"> <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>판매가 : </strong><?=number_format($ext2_01)?> 원</td></tr>
<tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
<tr height="30"><td width="100%"> <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>배송여부 : </strong><?=$ext3_00?></td></tr>
<tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
<tr height="30"><td width="100%"> <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>가격절충 : </strong><?=$ext2_02?></td></tr>
<tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
</table>
</td>
</tr>
<tr><td height="5" colSpan=2></td></tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dotline.gif" colSpan=2></td></tr>
<tr><td height="5" colSpan=2></td></tr>
<tr>
<td height="150" valign="top" style='word-break:break-all; padding:10px;' colSpan=2>
<div id="ContentsLayer">
<span class="ct lh"><?=$view[content];?></span>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
</div>
</td>
</tr>
</table>
<table width='100%'><tr><td height='5'></td></tr></table>
<table width="100%"><tr><td class="blue"><img src="<?=$board_skin_path?>/img/icon7.gif" align="absmiddle"> <b> 판매자정보</b></td></tr></table>
<table width="100%" cellspacing="0" cellpadding="0" style="border-width:1px; border-style:solid;">
<tr height="30">
<td width="50%"> <strong>글쓴이 : <?=$view[name]?><? if ($is_ip_view) { echo " ($ip)"; } ?></td>
<td width="50%"><strong>E-Mail : <a href="mailto:<?=$view[wr_email]?>"><?=$view[wr_email]?></a></td>
</tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=3></td></tr>
<tr height="30">
<td width="50%">
<strong>전화번호 : <?=$view_TEL?>
</td>
<td width="50%"><strong>핸드폰 : </strong><?=$view_HP?></td>
</tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=3></td></tr>
</table>
<table width='100%'><tr><td height='5'></td></tr></table>
<table width="100%"><tr><td class="blue"><img src="<?=$board_skin_path?>/img/icon7.gif" align="absmiddle"> <b>상품 주문신청하기 - 로그인을 하시면 주문신청란이 나옵니다.</b></td></tr></table>
<table width="100%" cellspacing="0" cellpadding="0" style="border-width:1px; border-style:solid;">
<tr><td width="100%" style='padding-left:10px; padding-right:10px;'>
<table width='100%'><tr><td height='5'></td></tr></table>
<?}else{?>
<tr>
<td height="150" valign="top" style='word-break:break-all; padding:10px;' colSpan=3>
<?
$n = $view[wr_8]; // 한줄당 출력 이미지수
if ($n > (count($view[file])-1)) {
$i_count = (count($view[file])-1); //원본이미지수가 적으면 적은갯수를..
}
else {
$i_count = $n; //원본이미지수가 많으면 설정갯수를..
}
if ($i_count > 0) {
$wid = (int)($board[bo_image_width]/$i_count); //게시판환경설정->'이미지폭크기'를 갖고 나눈다
$board[bo_image_width] = $wid; //자동이미지폭 조정을 위해 다시 넘겨준다..
$wid = (int)(1/$n*100);
}
echo "<table width='100%' cellpadding=3 cellspacing=0 border=0>";
echo "<tr>";
for ($i=0; $i<=count($view[file]); $i++) {
if (($view[file][$i][view]) && $i>0 && ($i%$n == 0)) {
echo "</tr><tr>";
}
if ($view[file][$i][view]) {
echo "<td align='center' valign='top' style='word-break:break-all'>";
echo "<td align='center' valign='top' style='word-break:break-all'>";
echo "<table cellpadding=10 cellspacing=0 border=0 style='border:1px solid #cccccc;'><tr><td>";
echo "<table cellpadding=0 cellspacing=0 border=0 style='border:1px solid #888888;'><tr><td>";
echo $view[file][$i][view];
echo "</td></tr></table>";
echo "</td></tr></table>";
echo "<br><br>". $view[file][$i][content]; // 이미지 설명글 {게시판 환경설정에서 체크}
}
}
$ex2_filed = explode("|",$view[wr_2]); // 소비자가/판매가/가격절충여부
$ext2_00 = $ex2_filed[0];
$ext2_01 = $ex2_filed[1];
$ext2_02 = $ex2_filed[2];
$ex3_filed = explode("|",$view[wr_3]); // 물품배송/거래상태/판매수량
$ext3_00 = $ex3_filed[0]; // 물품배송
$ext3_01 = $ex3_filed[1]; // 거래상태
$ext3_02 = $ex3_filed[2]; // 판매수량
?>
</table>
<table width="100%" cellspacing="0" cellpadding="0"style="border-right-width:1px; border-bottom-width:1px; border-left-width:1px; border-color:rgb(204,204,204); border-right-style:solid; border-bottom-style:solid; border-left-style:solid;">
<tr height="30">
<td width="50%" align=center style='padding-left:10px; padding-top:10px; padding-BOTTOM:10px; padding-right:10px;'>
<? for ($i=0; $i<=4; $i++) {$image[$i] = "$g4[path]/data/file/$bo_table/".$view[file][$i][file];}?>
<table width="220" cellspacing="0" cellpadding="0" style="border-width:1px; border-style:solid;padding-left:10px; padding-top:10px; padding-BOTTOM:10px; padding-right:10px;" align=center>
<tr>
<td width="100%">
<? if ($view[file][0][view]) {?>
<img src="<?=$image[0]?>" name=gallery_img width="200" height="190" border=0 value=0>
<? } else {?>
<img src="<?=$board_skin_path?>/img/no_image.gif" border=0 value=0>
<? } ?>
</td>
</tr>
</table>
<table width="100%">
<tr>
<td align="center">
<? if ($view[file][0][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[0]."','".$image[0]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>><img src="<?=$board_skin_path?>/img/p_1.gif" align="absmiddle" border="0"></a><? }?>
<? if ($view[file][1][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[1]."','".$image[1]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>><img src="<?=$board_skin_path?>/img/p_2.gif" align="absmiddle" border="0"></a><? }?>
<? if ($view[file][2][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[2]."','".$image[2]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$board_skin_path?>/img/p_3.gif" align="absmiddle" border="0"></a><? }?>
<? if ($view[file][3][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[3]."','".$image[3]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$board_skin_path?>/img/p_4.gif" align="absmiddle" border="0"></a><? }?>
<? if ($view[file][4][file]) {?><a href=# <? echo "onClick=\"chgImg( '".$image[4]."','".$image[4]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$board_skin_path?>/img/p_5.gif" align="absmiddle" border="0"></a><? }?>
</td>
</tr>
</table>
</td>
<td width="50%">
<table width="90%" cellspacing="0" cellpadding="0" style="border-width:1px; border-style:solid;">
<tr height="30">
<td width="100%"> <img src="<?=$board_skin_path?>/img/icon_nemo.gif" width="11" height="10"> <strong>상품명 : <?=$view[wr_6]?>
<? // 아이콘출력
if ($view[is_notice]) { echo "<img src=\"$board_skin_path/img/icon_level01.gif\" width=15 height=15 align='absmiddle'>"; }
else if ($view[wr_1] == "1") { echo "<img src=\"$board_skin_path/img/icon_level02.gif\" width=15 height=15 align='absmiddle'>"; }
else { echo ""; }
?>
<!-- // 거래관련 아이콘 출력 --//-->
<? if($ext3_01 == "on") {echo "<img src='{$board_skin_path}/img/icon_on.gif' border='0' width='47' height='16' align='absmiddle'>"; } ?>
<? if($ext3_01 == "off") {echo "<img src='{$board_skin_path}/img/icon_off.gif' border='0' width='47' height='16' align='absmiddle'>";} ?>
</td>
</tr>
<tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
<tr height="30"><td width="100%"> <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>물품수량 : </strong><?=$ext3_02?> 개</td></tr>
<tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
<tr height="30"><td width="100%"> <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>소비자가 : <?=number_format($ext2_00)?> 원</td></tr>
<tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
<tr height="30"><td width="100%"> <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>판매가 : </strong><?=number_format($ext2_01)?> 원</td></tr>
<tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
<tr height="30"><td width="100%"> <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>배송여부 : </strong><?=$ext3_00?></td></tr>
<tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
<tr height="30"><td width="100%"> <img src="<?=$board_skin_path?>/img/icon_nemo.gif"> <strong>가격절충 : </strong><?=$ext2_02?></td></tr>
<tr height="30"><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=2></td></tr>
</table>
</td>
</tr>
<tr><td height="5" colSpan=2></td></tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dotline.gif" colSpan=2></td></tr>
<tr><td height="5" colSpan=2></td></tr>
<tr>
<td height="150" valign="top" style='word-break:break-all; padding:10px;' colSpan=2>
<div id="ContentsLayer">
<span class="ct lh"><?=$view[content];?></span>
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
</div>
</td>
</tr>
</table>
<table width='100%'><tr><td height='5'></td></tr></table>
<table width="100%"><tr><td class="blue"><img src="<?=$board_skin_path?>/img/icon7.gif" align="absmiddle"> <b> 판매자정보</b></td></tr></table>
<table width="100%" cellspacing="0" cellpadding="0" style="border-width:1px; border-style:solid;">
<tr height="30">
<td width="50%"> <strong>글쓴이 : <?=$view[name]?><? if ($is_ip_view) { echo " ($ip)"; } ?></td>
<td width="50%"><strong>E-Mail : <a href="mailto:<?=$view[wr_email]?>"><?=$view[wr_email]?></a></td>
</tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=3></td></tr>
<tr height="30">
<td width="50%">
<strong>전화번호 : <?=$view_TEL?>
</td>
<td width="50%"><strong>핸드폰 : </strong><?=$view_HP?></td>
</tr>
<tr><td height="1" background="<?=$board_skin_path?>/img/dot_bg.gif" colSpan=3></td></tr>
</table>
<table width='100%'><tr><td height='5'></td></tr></table>
<table width="100%"><tr><td class="blue"><img src="<?=$board_skin_path?>/img/icon7.gif" align="absmiddle"> <b>상품 주문신청하기 - 로그인을 하시면 주문신청란이 나옵니다.</b></td></tr></table>
<table width="100%" cellspacing="0" cellpadding="0" style="border-width:1px; border-style:solid;">
<tr><td width="100%" style='padding-left:10px; padding-right:10px;'>
<table width='100%'><tr><td height='5'></td></tr></table>
<?}else{?>
<tr>
<td height="150" valign="top" style='word-break:break-all; padding:10px;' colSpan=3>
<?
$n = $view[wr_8]; // 한줄당 출력 이미지수
if ($n > (count($view[file])-1)) {
$i_count = (count($view[file])-1); //원본이미지수가 적으면 적은갯수를..
}
else {
$i_count = $n; //원본이미지수가 많으면 설정갯수를..
}
if ($i_count > 0) {
$wid = (int)($board[bo_image_width]/$i_count); //게시판환경설정->'이미지폭크기'를 갖고 나눈다
$board[bo_image_width] = $wid; //자동이미지폭 조정을 위해 다시 넘겨준다..
$wid = (int)(1/$n*100);
}
echo "<table width='100%' cellpadding=3 cellspacing=0 border=0>";
echo "<tr>";
for ($i=0; $i<=count($view[file]); $i++) {
if (($view[file][$i][view]) && $i>0 && ($i%$n == 0)) {
echo "</tr><tr>";
}
if ($view[file][$i][view]) {
echo "<td align='center' valign='top' style='word-break:break-all'>";
echo "<td align='center' valign='top' style='word-break:break-all'>";
echo "<table cellpadding=10 cellspacing=0 border=0 style='border:1px solid #cccccc;'><tr><td>";
echo "<table cellpadding=0 cellspacing=0 border=0 style='border:1px solid #888888;'><tr><td>";
echo $view[file][$i][view];
echo "</td></tr></table>";
echo "</td></tr></table>";
echo "<br><br>". $view[file][$i][content]; // 이미지 설명글 {게시판 환경설정에서 체크}
}
}
댓글 전체