여분필드를 list.skin.php에 넣는법좀 알려주세요... 정보
여분필드를 list.skin.php에 넣는법좀 알려주세요...본문
고수님 가르쳐주세요.
아래내용은 "팁"게시판에서 나와 있는 여분필드 사용법 인데요.
1번하고 2번은 대충 위치에 넣으니깐 나오는데요
3번은 리스트에서 출력할때 방법이거든요? 위 그림의 빨간 테두리처럼 만들려면 소스 어느부분에 넣어야 할까요?
그림 올렸으니 참고하시고 소스좀 알려주세요.
스킨명은 gallery_list입니다.
======================================
1. 글작성 및 수정 : write.skin.php
<input name=wr_1 itemname="wr_1" value="<?=$write[wr_1]?>">
<input name=wr_2 itemname="wr_2" value="<?=$write[wr_2]?>">
2. 글보기 : view.skin.php
<?=$view[wr_1]?>
<?=$view[wr_2]?>
3. 글목록/리스트 : list.skin.php
<?=$list[$i][wr_1]?>
<?=$list[$i][wr_2]?>
------------------------------------------------------
아래서 부터는 gellery_list 소스입니다. 너무긴데요~
------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 게시판 설정
if (!$board[bo_10]) $board[bo_10]="100"; // 이미지박스크기
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
$max = $board[bo_10] - 5 ; // 이미지의 가로세로(긴쪽)의 최대치.
$noIMG = $board_skin_path."/img/noimage.gif"; // URL
$resol = 80 ; // 생성되는 썸네일의 JPG압축률.(퍼센트%)
function smaller( $W, $H ) {
global $max, $thum_W, $thum_H ;
if ( $W > $H ) { //가로형일 경우.
$thum_W = $max ;
$thum_H = ceil( $H * ( $max / $W ) );
}
if ( $W < $H ) { //세로형일 경우.
$thum_H = $max ;
$thum_W = ceil( $W * ( $max / $H ) );
}
if ( $W == $H ) { //정사각형일 경우.
$thum_W = ceil( $max * 0.8 );
$thum_H = ceil( $max * 0.8 );
}
return $thum_W ;
return $thum_H ;
}
function maker( $thum_W, $thum_H ) {
global $thum, $resol, $ori, $ori_info ;
//$newImg = ImageCreate($thum_W,$thum_H); // GD라이브러리 2.0 (이하일 경우)
$newImg = ImageCreateTrueColor($thum_W,$thum_H); // GD라이브러리 2.0 전용함수
if($ori_info[2]=="2") $origImg=ImageCreateFromjpeg($ori);
if($ori_info[2]=="3") $origImg=ImageCreateFrompng($ori);
//ImageCopyResized($newImg,$origImg,0,0,0,0,$thum_W,$thum_H,ImageSX($origImg),ImageSY($origImg));
imageCopyResampled($newImg,$origImg,0,0,0,0,$thum_W,$thum_H,ImageSX($origImg),ImageSY($origImg));
Imagejpeg($newImg, $thum, $resol );
@chmod($thum,0707);
ImageDestroy($newImg);
ImageDestroy($origImg);
return $thum ;
}
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 10;
if ($is_category) $colspan++;
if ($is_checkbox) $colspan++;
if ($is_good) $colspan++;
if ($is_nogood) $colspan++;
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
?>
<style type="text/css">
<!--
.w_fixed { table-layout:fixed; }
.w_font { font-family:돋움; font-size:9pt; color:#5E5E5E; }
.w_title { font-family:돋움; font-size:9pt; color:#5E5E5E; }
.w_num { font-family:돋움; font-size:9pt; color:#7BB2D6; }
.w_list { font-family:돋움; font-size:9pt; color:#6A6A6A; }
.w_notice { font-family:돋움; font-size:9pt; color:#2C88B9; }
.w_comment_cnt { font-family:돋움; font-size:8pt; color:#9A9A9A; }
.w_padding { PADDING-LEFT: 15px; PADDING-BOTTOM: 5px; PADDING-TOP: 5px; }
.w_padding2 { PADDING-LEFT: 15px; PADDING-TOP: 5px; }
.w_text { BORDER: #D3D3D3 1px solid; HEIGHT: 18px; BACKGROUND-COLOR: #ffffff; }
.w_textarea { BORDER: #D3D3D3 1px solid; BACKGROUND-COLOR: #ffffff; WIDTH: 100%; WORD-BREAK: break-all; }
.w_message { font-family:돋움; font-size:9pt; color:#4B4B4B; }
.w_norobot { font-family:돋움; font-size:9pt; color:#BB4681; }
.title_han {color:FFFFFF;font-weight:bold;font-size:9pt}
.list_han {color:13485D;font-size:9pt;text-decoration:none;text-decoration:none}
.title_eng {font-family:tahoma;color:FFFFFF;font-weight:bold;font-size:8pt;text-decoration:none}
.list_eng {font-family:tahoma;color:13485D;font-size:8pt;text-decoration:none}
-->
</style>
<table width="<?=$width?>" align="center" cellpadding="0" cellspcing="0">
<tr><td height=2 bgcolor=#BDBEBB colspan=10></td></tr>
<tr><td height=30> <B><?=$group[gr_subject]?> > <?=$board[bo_subject]?></B></td>
<tr><td height=2 bgcolor=#BDBEBB colspan=10></td></tr>
</table>
<table width="<?=$width?>" align="center" cellpadding="0" cellspcing="0"><tr><td>
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 시작 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<? if ($is_category) { ?><form name="fcategory" method="get">
<td width="50%"><select name=sca onchange="location='<?=$category_location?>'+this.value;"><option value=''>전체</option><?=$category_option?></select></td>
</form><? } ?>
<td height=25 align="right"><font class=w_font>게시물 <?=number_format($total_count)?>건</font><? if ($admin_href) { ?><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/admin_button.gif" title="관리자" width="63" height="22" border="0" align="absmiddle"></a><? } ?></td>
</tr>
</table>
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 끝 -->
<!-- 여백 --><table width="100%" cellspacing="0" cellpadding="0"><tr><td height="5"></td></tr></table>
<!-- 게시판 제목 시작 -->
<table width="100%" height=25 border=0 cellpadding=0 cellspacing=0 background="<?=$board_skin_path?>/img/board_t_bg.gif">
<form name="fboardlist" method="post">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="spt" value="<?=$spt?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="sw" value="">
<tr height=26>
<td width="40" align="center" valign="middle"><img src="<?=$board_skin_path?>/img/t_num.gif" alt='번호' border=0></td>
<? if ($is_checkbox) { ?><td width="40" align="center" valign="middle"><INPUT onclick="if (this.checked) all_checked(true); else all_checked(false);" type=checkbox></td><? } ?>
<td width="110" align="center" valign="middle"><img src="<?=$board_skin_path?>/img/t_cart.gif" alt='이미지' border=0></a></td>
<td width='' align="center" valign="middle"><?=subject_sort_link('wr_subject', $qstr2, 1)?><img src="<?=$board_skin_path?>/img/t_subject.gif" alt='제목' border=0></a><? if ($sod =='desc' && $sst==wr_subject) { echo "<img src='$board_skin_path/img/asc.gif' border=0"; } elseif ($sod =='asc' && $sst==wr_subject) { echo "<img src='$board_skin_path/img/desc.gif' border=0"; } ?></td>
<td width="110" align="center" valign="middle"><?=subject_sort_link('wr_name', $qstr2, 1)?><img src="<?=$board_skin_path?>/img/t_name.gif" alt='이름' border=0></a><? if ($sod =='desc' && $sst==wr_name) { echo "<img src='$board_skin_path/img/asc.gif' border=0"; } elseif ($sod =='asc' && $sst==wr_name) { echo "<img src='$board_skin_path/img/desc.gif' border=0"; } ?></td>
<td width="40" align="center" valign="middle"><?=subject_sort_link('wr_datetime', $qstr2, 1)?><img src="<?=$board_skin_path?>/img/t_date.gif" alt='날짜' border=0></a><? if ($sod =='desc' && $sst==wr_datetime) { echo "<img src='$board_skin_path/img/asc.gif' border=0"; } elseif ($sod =='asc' && $sst==wr_datetime) { echo "<img src='$board_skin_path/img/desc.gif' border=0"; } ?></td>
<td width="40" align="center" valign="middle"><?=subject_sort_link('wr_hit', $qstr2, 1)?><img src="<?=$board_skin_path?>/img/t_read.gif" alt='조회' border=0></a><? if ($sod =='desc' && $sst==wr_hit) { echo "<img src='$board_skin_path/img/asc.gif' border=0"; } elseif ($sod =='asc' && $sst==wr_hit) { echo "<img src='$board_skin_path/img/desc.gif' border=0"; } ?></td>
<? if ($is_good) { ?><td width="40" align="center" valign="middle"><img src="<?=$board_skin_path?>/img/t_good.gif" alt='추천' border=0></td><? } ?>
<? if ($is_nogood) { ?><td width="40" align="center" valign="middle"><img src="<?=$board_skin_path?>/img/t_nogood.gif" alt='비추천' border=0></td><? } ?>
</tr>
<!-- 게시판 제목 끝 -->
<!-- 게시물 리스트 시작 -->
<? for ($i=0; $i<count($list); $i++) { ?>
<tr><td colspan="<?=$colspan?>" height="5" bgcolor=white></td></tr>
<tr height=28 class=list<?=($i%2)?> <? if ($list[$i][is_notice]) { ?>bgcolor="#F9FBFB"<? } else { ?>bgcolor="#FFFFFF"<? } ?>>
<td width="40" align="center" valign="middle">
<?
if ($list[$i][is_notice]) // 공지사항
echo "<img src=\"$board_skin_path/img/notice_icon.gif\" width=30 height=16>";
else if ($wr_id == $list[$i][wr_id]) // 현재위치
echo "<font class=list_eng><strong>{$list[$i][num]}</strong></font>";
else
echo "<font class=list_eng>{$list[$i][num]}</font>";
?></td>
<? if ($is_checkbox) { ?><td width="40" align="center" valign="middle"><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"></td><? } ?>
<? // 이미지 처리부분
##################################################################################################
$thum = "";
$list_view = "";
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
$images = "$g4[path]/data/file/$bo_table/$image";
if (preg_match("/\.(gif|jpg|png)$/i", $image) && file_exists("$g4[path]/data/file/$bo_table/$image")) {
if (preg_match("/\.(gif|jpg|png)$/i", $image) && file_exists("$g4[path]/data/file/$bo_table/$image")) {
$ori = "$g4[path]/data/file/$bo_table/$image"; //[필수](URL) "./img/Test.gif"
}
$ext = strtolower(substr(strrchr($ori,"."), 1)); //확장자
if ( $ext=="gif"||$ext=="jpg"||$ext=="jpeg"||$ext=="png"||$ext=="bmp"||$ext=="tif"||$ext=="tiff")
$ori_info=getimagesize($ori);
else
$ori_info="";
//===== 원파일이 [ 2JPG, 2JPEG, 3PNG ] 경우
if ( $ori_info[2]=="2" || $ori_info[2]=="3" ) {
$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 );
}
}
}
//===== 원파일이 [ 1GIF,6BMP,7TIF ] 경우
else if ( $ori_info[2]=="1" || $ori_info[2]=="6" || $ori_info[2]=="7" ) {
if ( smaller( $ori_info[0], $ori_info[1] ) ) { $thum = $ori ; }
}
//===== 원파일이 [ 1,2,3,6,7 ] 아닐 경우
else {
$thum = $noIMG ;
$noIMG_info = getimagesize ($noIMG);
$thum_W = $noIMG_info[0] ;
$thum_H = $noIMG_info[1] ;
}
$list_view = "<img src='$thum' width='$thum_W' height='$thum_H' alt='$list[$i][wr_subject]' border=0 align=absmiddle style='border-width:1; border-color:rgb(102,102,102); border-style:solid;'>";
} else if (preg_match("/\.($config[cf_flash_extension])$/i", $image)) {
$list_view = "<embed src='$images' width='96' height='72' style='border-width:1; border-color:rgb(102,102,102); border-style:solid;'></embed>";
} else if (preg_match("/\.($config[cf_movie_extension])$/i", $image)) {
$list_view = "<embed src='$images' width='96' height='72' style='border-width:1; border-color:rgb(102,102,102); border-style:solid;'></embed>";
} else { $list_view = "<img src='$noIMG' alt='이미지 없음' width='96' height='72' style='border-width:1; border-color:rgb(102,102,102); border-style:solid;'>"; }
##################################################################################################
?>
<td width='110' align="left" valign="middle" style='word-break:break-all;'>
<a href='<?=$list[$i][href]?>'><?=$list_view?></a>
</td>
<td width='' align="left" valign="middle" style='word-break:break-all;'>
<?
echo $nobr_begin;
echo $list[$i][reply];
echo $list[$i][icon_reply];
echo "<a href='{$list[$i][href]}'>";
if ($list[$i][is_notice])
echo "<font class=w_notice><strong>{$list[$i][subject]}</strong></font>";
else
echo "<font class=w_list>{$list[$i][subject]}</font>";
echo "</a>";
if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span class=w_comment_cnt>{$list[$i][comment_cnt]}</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];
echo $nobr_end;
?>
<? if ($is_category) { ?><br><font class=w_font><strong>□ <a href="<?=$list[$i][ca_name_href]?>"><?=$list[$i][ca_name]?></a></strong></font><? } ?>
</td>
<td width="110" align="center" valign="middle"><font class=w_font><?=$list[$i][name]?></font></td>
<td width="40" align="center" valign="middle"><font class=list_eng><?=$list[$i][datetime2]?></font></td>
<td width="40" align="center" valign="middle"><font class=list_eng><?=$list[$i][wr_hit]?></font></td>
<? if ($is_good) { ?><td width="40" align="center" valign="middle"><font class=list_eng><?=$list[$i][wr_good]?></font></td><? } ?>
<? if ($is_nogood) { ?><td width="40" align="center" valign="middle"><font class=list_eng><?=$list[$i][wr_nogood]?></font></td><? } ?>
</tr>
<tr><td colspan="<?=$colspan?>" height="5" bgcolor=white></td></tr>
<tr><td colspan="<?=$colspan?>" height="1" background="<?=$board_skin_path?>/img/board_line.gif"></td></tr>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
</form>
</table>
<!-- 게시물 리스트 끝 -->
<!-- 페이지 표시 시작 -->
<? if ($write_pages) { ?>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td height="37" align="center" valign="middle" background="<?=$board_skin_path?>/img/number_line.gif">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center">
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' width=50 height=20 border=0 align=absmiddle title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<font style=\"font-family:돋움; font-size:9pt; color:#797979\">$1</font>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<font style=\"font-family:돋움; font-size:9pt; color:orange;\">$1</font>", $write_pages);
?>
<strong><?=$write_pages?></strong>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' width=50 height=20 border=0 align=absmiddle title='다음검색'></a>"; } ?>
</td>
</tr>
</table></td>
</tr>
</table>
<? } ?>
<!-- 페이지 표시 끝 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr align="left" valign="middle">
<td width="50%" height="40">
<? if ($list_href) { ?><a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/list.gif" border="0" align="absmiddle"></a><? } ?>
<? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/write.gif" border="0" align="absmiddle"></a><? } ?>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/allchkdel.gif" border="0" align="absmiddle"></a>
<a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/copy.gif" border="0" align="absmiddle"></a>
<a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/move.gif" border="0" align="absmiddle"></a>
<? } ?>
</td>
<form name=fsearch method=get>
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca value="<?=$sca?>">
<td width="50%" align="right">
<select name=sfl>
<option value='wr_subject'>제목</option>
<option value='wr_content'>내용</option>
<option value='mb_id'>회원아이디</option>
<option value='wr_name'>이름</option>
</select>
<INPUT maxLength=15 size=10 name=stx itemname="검색어" required value="<?=$stx?>">
<SELECT name=sop>
<OPTION value=and>And</OPTION>
<OPTION value=or>Or</OPTION>
</SELECT>
</td>
<td width="10%" align="center"><INPUT type=image width="49" height="20" src="<?=$board_skin_path?>/img/search.gif" border=0></td>
</form>
</tr>
</table>
</td></tr></table>
<script language="JavaScript">
if ("<?=$sca?>") document.fcategory.sca.value = "<?=$sca?>";
if ("<?=$stx?>") {
document.fsearch.sfl.value = "<?=$sfl?>";
document.fsearch.sop.value = "<?=$sop?>";
}
</script>
<? if ($is_checkbox) { ?>
<script language="JavaScript">
function all_checked(sw)
{
var f = document.fboardlist;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]")
f.elements[i].checked = sw;
}
}
function check_confirm(str)
{
var f = document.fboardlist;
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(str + "할 게시물을 하나 이상 선택하세요.");
return false;
}
return true;
}
// 선택한 게시물 삭제
function select_delete()
{
var f = document.fboardlist;
str = "삭제";
if (!check_confirm(str))
return;
if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
return;
f.action = "./delete_all.php";
f.submit();
}
// 선택한 게시물 복사 및 이동
function select_copy(sw)
{
var f = document.fboardlist;
if (sw == "copy")
str = "복사";
else
str = "이동";
if (!check_confirm(str))
return;
var sub_win = window.open("", "move", "left=50, top=50, width=396, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<? } ?>
아래내용은 "팁"게시판에서 나와 있는 여분필드 사용법 인데요.
1번하고 2번은 대충 위치에 넣으니깐 나오는데요
3번은 리스트에서 출력할때 방법이거든요? 위 그림의 빨간 테두리처럼 만들려면 소스 어느부분에 넣어야 할까요?
그림 올렸으니 참고하시고 소스좀 알려주세요.
스킨명은 gallery_list입니다.
======================================
1. 글작성 및 수정 : write.skin.php
<input name=wr_1 itemname="wr_1" value="<?=$write[wr_1]?>">
<input name=wr_2 itemname="wr_2" value="<?=$write[wr_2]?>">
2. 글보기 : view.skin.php
<?=$view[wr_1]?>
<?=$view[wr_2]?>
3. 글목록/리스트 : list.skin.php
<?=$list[$i][wr_1]?>
<?=$list[$i][wr_2]?>
------------------------------------------------------
아래서 부터는 gellery_list 소스입니다. 너무긴데요~
------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 게시판 설정
if (!$board[bo_10]) $board[bo_10]="100"; // 이미지박스크기
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
$max = $board[bo_10] - 5 ; // 이미지의 가로세로(긴쪽)의 최대치.
$noIMG = $board_skin_path."/img/noimage.gif"; // URL
$resol = 80 ; // 생성되는 썸네일의 JPG압축률.(퍼센트%)
function smaller( $W, $H ) {
global $max, $thum_W, $thum_H ;
if ( $W > $H ) { //가로형일 경우.
$thum_W = $max ;
$thum_H = ceil( $H * ( $max / $W ) );
}
if ( $W < $H ) { //세로형일 경우.
$thum_H = $max ;
$thum_W = ceil( $W * ( $max / $H ) );
}
if ( $W == $H ) { //정사각형일 경우.
$thum_W = ceil( $max * 0.8 );
$thum_H = ceil( $max * 0.8 );
}
return $thum_W ;
return $thum_H ;
}
function maker( $thum_W, $thum_H ) {
global $thum, $resol, $ori, $ori_info ;
//$newImg = ImageCreate($thum_W,$thum_H); // GD라이브러리 2.0 (이하일 경우)
$newImg = ImageCreateTrueColor($thum_W,$thum_H); // GD라이브러리 2.0 전용함수
if($ori_info[2]=="2") $origImg=ImageCreateFromjpeg($ori);
if($ori_info[2]=="3") $origImg=ImageCreateFrompng($ori);
//ImageCopyResized($newImg,$origImg,0,0,0,0,$thum_W,$thum_H,ImageSX($origImg),ImageSY($origImg));
imageCopyResampled($newImg,$origImg,0,0,0,0,$thum_W,$thum_H,ImageSX($origImg),ImageSY($origImg));
Imagejpeg($newImg, $thum, $resol );
@chmod($thum,0707);
ImageDestroy($newImg);
ImageDestroy($origImg);
return $thum ;
}
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 10;
if ($is_category) $colspan++;
if ($is_checkbox) $colspan++;
if ($is_good) $colspan++;
if ($is_nogood) $colspan++;
// 제목이 두줄로 표시되는 경우 이 코드를 사용해 보세요.
// <nobr style='display:block; overflow:hidden; width:000px;'>제목</nobr>
?>
<style type="text/css">
<!--
.w_fixed { table-layout:fixed; }
.w_font { font-family:돋움; font-size:9pt; color:#5E5E5E; }
.w_title { font-family:돋움; font-size:9pt; color:#5E5E5E; }
.w_num { font-family:돋움; font-size:9pt; color:#7BB2D6; }
.w_list { font-family:돋움; font-size:9pt; color:#6A6A6A; }
.w_notice { font-family:돋움; font-size:9pt; color:#2C88B9; }
.w_comment_cnt { font-family:돋움; font-size:8pt; color:#9A9A9A; }
.w_padding { PADDING-LEFT: 15px; PADDING-BOTTOM: 5px; PADDING-TOP: 5px; }
.w_padding2 { PADDING-LEFT: 15px; PADDING-TOP: 5px; }
.w_text { BORDER: #D3D3D3 1px solid; HEIGHT: 18px; BACKGROUND-COLOR: #ffffff; }
.w_textarea { BORDER: #D3D3D3 1px solid; BACKGROUND-COLOR: #ffffff; WIDTH: 100%; WORD-BREAK: break-all; }
.w_message { font-family:돋움; font-size:9pt; color:#4B4B4B; }
.w_norobot { font-family:돋움; font-size:9pt; color:#BB4681; }
.title_han {color:FFFFFF;font-weight:bold;font-size:9pt}
.list_han {color:13485D;font-size:9pt;text-decoration:none;text-decoration:none}
.title_eng {font-family:tahoma;color:FFFFFF;font-weight:bold;font-size:8pt;text-decoration:none}
.list_eng {font-family:tahoma;color:13485D;font-size:8pt;text-decoration:none}
-->
</style>
<table width="<?=$width?>" align="center" cellpadding="0" cellspcing="0">
<tr><td height=2 bgcolor=#BDBEBB colspan=10></td></tr>
<tr><td height=30> <B><?=$group[gr_subject]?> > <?=$board[bo_subject]?></B></td>
<tr><td height=2 bgcolor=#BDBEBB colspan=10></td></tr>
</table>
<table width="<?=$width?>" align="center" cellpadding="0" cellspcing="0"><tr><td>
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 시작 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<? if ($is_category) { ?><form name="fcategory" method="get">
<td width="50%"><select name=sca onchange="location='<?=$category_location?>'+this.value;"><option value=''>전체</option><?=$category_option?></select></td>
</form><? } ?>
<td height=25 align="right"><font class=w_font>게시물 <?=number_format($total_count)?>건</font><? if ($admin_href) { ?><a href="<?=$admin_href?>"><img src="<?=$board_skin_path?>/img/admin_button.gif" title="관리자" width="63" height="22" border="0" align="absmiddle"></a><? } ?></td>
</tr>
</table>
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 끝 -->
<!-- 여백 --><table width="100%" cellspacing="0" cellpadding="0"><tr><td height="5"></td></tr></table>
<!-- 게시판 제목 시작 -->
<table width="100%" height=25 border=0 cellpadding=0 cellspacing=0 background="<?=$board_skin_path?>/img/board_t_bg.gif">
<form name="fboardlist" method="post">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="sfl" value="<?=$sfl?>">
<input type="hidden" name="stx" value="<?=$stx?>">
<input type="hidden" name="spt" value="<?=$spt?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="sw" value="">
<tr height=26>
<td width="40" align="center" valign="middle"><img src="<?=$board_skin_path?>/img/t_num.gif" alt='번호' border=0></td>
<? if ($is_checkbox) { ?><td width="40" align="center" valign="middle"><INPUT onclick="if (this.checked) all_checked(true); else all_checked(false);" type=checkbox></td><? } ?>
<td width="110" align="center" valign="middle"><img src="<?=$board_skin_path?>/img/t_cart.gif" alt='이미지' border=0></a></td>
<td width='' align="center" valign="middle"><?=subject_sort_link('wr_subject', $qstr2, 1)?><img src="<?=$board_skin_path?>/img/t_subject.gif" alt='제목' border=0></a><? if ($sod =='desc' && $sst==wr_subject) { echo "<img src='$board_skin_path/img/asc.gif' border=0"; } elseif ($sod =='asc' && $sst==wr_subject) { echo "<img src='$board_skin_path/img/desc.gif' border=0"; } ?></td>
<td width="110" align="center" valign="middle"><?=subject_sort_link('wr_name', $qstr2, 1)?><img src="<?=$board_skin_path?>/img/t_name.gif" alt='이름' border=0></a><? if ($sod =='desc' && $sst==wr_name) { echo "<img src='$board_skin_path/img/asc.gif' border=0"; } elseif ($sod =='asc' && $sst==wr_name) { echo "<img src='$board_skin_path/img/desc.gif' border=0"; } ?></td>
<td width="40" align="center" valign="middle"><?=subject_sort_link('wr_datetime', $qstr2, 1)?><img src="<?=$board_skin_path?>/img/t_date.gif" alt='날짜' border=0></a><? if ($sod =='desc' && $sst==wr_datetime) { echo "<img src='$board_skin_path/img/asc.gif' border=0"; } elseif ($sod =='asc' && $sst==wr_datetime) { echo "<img src='$board_skin_path/img/desc.gif' border=0"; } ?></td>
<td width="40" align="center" valign="middle"><?=subject_sort_link('wr_hit', $qstr2, 1)?><img src="<?=$board_skin_path?>/img/t_read.gif" alt='조회' border=0></a><? if ($sod =='desc' && $sst==wr_hit) { echo "<img src='$board_skin_path/img/asc.gif' border=0"; } elseif ($sod =='asc' && $sst==wr_hit) { echo "<img src='$board_skin_path/img/desc.gif' border=0"; } ?></td>
<? if ($is_good) { ?><td width="40" align="center" valign="middle"><img src="<?=$board_skin_path?>/img/t_good.gif" alt='추천' border=0></td><? } ?>
<? if ($is_nogood) { ?><td width="40" align="center" valign="middle"><img src="<?=$board_skin_path?>/img/t_nogood.gif" alt='비추천' border=0></td><? } ?>
</tr>
<!-- 게시판 제목 끝 -->
<!-- 게시물 리스트 시작 -->
<? for ($i=0; $i<count($list); $i++) { ?>
<tr><td colspan="<?=$colspan?>" height="5" bgcolor=white></td></tr>
<tr height=28 class=list<?=($i%2)?> <? if ($list[$i][is_notice]) { ?>bgcolor="#F9FBFB"<? } else { ?>bgcolor="#FFFFFF"<? } ?>>
<td width="40" align="center" valign="middle">
<?
if ($list[$i][is_notice]) // 공지사항
echo "<img src=\"$board_skin_path/img/notice_icon.gif\" width=30 height=16>";
else if ($wr_id == $list[$i][wr_id]) // 현재위치
echo "<font class=list_eng><strong>{$list[$i][num]}</strong></font>";
else
echo "<font class=list_eng>{$list[$i][num]}</font>";
?></td>
<? if ($is_checkbox) { ?><td width="40" align="center" valign="middle"><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"></td><? } ?>
<? // 이미지 처리부분
##################################################################################################
$thum = "";
$list_view = "";
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
$images = "$g4[path]/data/file/$bo_table/$image";
if (preg_match("/\.(gif|jpg|png)$/i", $image) && file_exists("$g4[path]/data/file/$bo_table/$image")) {
if (preg_match("/\.(gif|jpg|png)$/i", $image) && file_exists("$g4[path]/data/file/$bo_table/$image")) {
$ori = "$g4[path]/data/file/$bo_table/$image"; //[필수](URL) "./img/Test.gif"
}
$ext = strtolower(substr(strrchr($ori,"."), 1)); //확장자
if ( $ext=="gif"||$ext=="jpg"||$ext=="jpeg"||$ext=="png"||$ext=="bmp"||$ext=="tif"||$ext=="tiff")
$ori_info=getimagesize($ori);
else
$ori_info="";
//===== 원파일이 [ 2JPG, 2JPEG, 3PNG ] 경우
if ( $ori_info[2]=="2" || $ori_info[2]=="3" ) {
$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 );
}
}
}
//===== 원파일이 [ 1GIF,6BMP,7TIF ] 경우
else if ( $ori_info[2]=="1" || $ori_info[2]=="6" || $ori_info[2]=="7" ) {
if ( smaller( $ori_info[0], $ori_info[1] ) ) { $thum = $ori ; }
}
//===== 원파일이 [ 1,2,3,6,7 ] 아닐 경우
else {
$thum = $noIMG ;
$noIMG_info = getimagesize ($noIMG);
$thum_W = $noIMG_info[0] ;
$thum_H = $noIMG_info[1] ;
}
$list_view = "<img src='$thum' width='$thum_W' height='$thum_H' alt='$list[$i][wr_subject]' border=0 align=absmiddle style='border-width:1; border-color:rgb(102,102,102); border-style:solid;'>";
} else if (preg_match("/\.($config[cf_flash_extension])$/i", $image)) {
$list_view = "<embed src='$images' width='96' height='72' style='border-width:1; border-color:rgb(102,102,102); border-style:solid;'></embed>";
} else if (preg_match("/\.($config[cf_movie_extension])$/i", $image)) {
$list_view = "<embed src='$images' width='96' height='72' style='border-width:1; border-color:rgb(102,102,102); border-style:solid;'></embed>";
} else { $list_view = "<img src='$noIMG' alt='이미지 없음' width='96' height='72' style='border-width:1; border-color:rgb(102,102,102); border-style:solid;'>"; }
##################################################################################################
?>
<td width='110' align="left" valign="middle" style='word-break:break-all;'>
<a href='<?=$list[$i][href]?>'><?=$list_view?></a>
</td>
<td width='' align="left" valign="middle" style='word-break:break-all;'>
<?
echo $nobr_begin;
echo $list[$i][reply];
echo $list[$i][icon_reply];
echo "<a href='{$list[$i][href]}'>";
if ($list[$i][is_notice])
echo "<font class=w_notice><strong>{$list[$i][subject]}</strong></font>";
else
echo "<font class=w_list>{$list[$i][subject]}</font>";
echo "</a>";
if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span class=w_comment_cnt>{$list[$i][comment_cnt]}</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];
echo $nobr_end;
?>
<? if ($is_category) { ?><br><font class=w_font><strong>□ <a href="<?=$list[$i][ca_name_href]?>"><?=$list[$i][ca_name]?></a></strong></font><? } ?>
</td>
<td width="110" align="center" valign="middle"><font class=w_font><?=$list[$i][name]?></font></td>
<td width="40" align="center" valign="middle"><font class=list_eng><?=$list[$i][datetime2]?></font></td>
<td width="40" align="center" valign="middle"><font class=list_eng><?=$list[$i][wr_hit]?></font></td>
<? if ($is_good) { ?><td width="40" align="center" valign="middle"><font class=list_eng><?=$list[$i][wr_good]?></font></td><? } ?>
<? if ($is_nogood) { ?><td width="40" align="center" valign="middle"><font class=list_eng><?=$list[$i][wr_nogood]?></font></td><? } ?>
</tr>
<tr><td colspan="<?=$colspan?>" height="5" bgcolor=white></td></tr>
<tr><td colspan="<?=$colspan?>" height="1" background="<?=$board_skin_path?>/img/board_line.gif"></td></tr>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
</form>
</table>
<!-- 게시물 리스트 끝 -->
<!-- 페이지 표시 시작 -->
<? if ($write_pages) { ?>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td height="37" align="center" valign="middle" background="<?=$board_skin_path?>/img/number_line.gif">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" align="center">
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/btn_search_prev.gif' width=50 height=20 border=0 align=absmiddle title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<font style=\"font-family:돋움; font-size:9pt; color:#797979\">$1</font>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<font style=\"font-family:돋움; font-size:9pt; color:orange;\">$1</font>", $write_pages);
?>
<strong><?=$write_pages?></strong>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/btn_search_next.gif' width=50 height=20 border=0 align=absmiddle title='다음검색'></a>"; } ?>
</td>
</tr>
</table></td>
</tr>
</table>
<? } ?>
<!-- 페이지 표시 끝 -->
<table width="100%" cellspacing="0" cellpadding="0">
<tr align="left" valign="middle">
<td width="50%" height="40">
<? if ($list_href) { ?><a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/list.gif" border="0" align="absmiddle"></a><? } ?>
<? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/write.gif" border="0" align="absmiddle"></a><? } ?>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/allchkdel.gif" border="0" align="absmiddle"></a>
<a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/copy.gif" border="0" align="absmiddle"></a>
<a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/move.gif" border="0" align="absmiddle"></a>
<? } ?>
</td>
<form name=fsearch method=get>
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca value="<?=$sca?>">
<td width="50%" align="right">
<select name=sfl>
<option value='wr_subject'>제목</option>
<option value='wr_content'>내용</option>
<option value='mb_id'>회원아이디</option>
<option value='wr_name'>이름</option>
</select>
<INPUT maxLength=15 size=10 name=stx itemname="검색어" required value="<?=$stx?>">
<SELECT name=sop>
<OPTION value=and>And</OPTION>
<OPTION value=or>Or</OPTION>
</SELECT>
</td>
<td width="10%" align="center"><INPUT type=image width="49" height="20" src="<?=$board_skin_path?>/img/search.gif" border=0></td>
</form>
</tr>
</table>
</td></tr></table>
<script language="JavaScript">
if ("<?=$sca?>") document.fcategory.sca.value = "<?=$sca?>";
if ("<?=$stx?>") {
document.fsearch.sfl.value = "<?=$sfl?>";
document.fsearch.sop.value = "<?=$sop?>";
}
</script>
<? if ($is_checkbox) { ?>
<script language="JavaScript">
function all_checked(sw)
{
var f = document.fboardlist;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]")
f.elements[i].checked = sw;
}
}
function check_confirm(str)
{
var f = document.fboardlist;
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(str + "할 게시물을 하나 이상 선택하세요.");
return false;
}
return true;
}
// 선택한 게시물 삭제
function select_delete()
{
var f = document.fboardlist;
str = "삭제";
if (!check_confirm(str))
return;
if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
return;
f.action = "./delete_all.php";
f.submit();
}
// 선택한 게시물 복사 및 이동
function select_copy(sw)
{
var f = document.fboardlist;
if (sw == "copy")
str = "복사";
else
str = "이동";
if (!check_confirm(str))
return;
var sub_win = window.open("", "move", "left=50, top=50, width=396, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<? } ?>
댓글 전체
</td>
<td align="center" valign="middle"><font class=w_font><?=$list[$i][wr_1]?></font></td>
<td width="110" align="center" valign="middle"><font class=w_font><?=$list[$i][name]?></font></td>
<td align="center" valign="middle"><font class=w_font><?=$list[$i][wr_1]?></font></td>
<td width="110" align="center" valign="middle"><font class=w_font><?=$list[$i][name]?></font></td>
root님 위 소스 어느위치에 넣어야 하나요?
<? if ($is_category) { ?><br><font class=w_font><strong>□ <a href="<?=$list[$i][ca_name_href]?>"><?=$list[$i][ca_name]?></a></strong></font><? } ?>
</td>
<td width="110" align="center" valign="middle"><font class=w_font><?=$list[$i][name]?></font></td>
<td width="40" align="center" valign="middle"><font class=list_eng><?=$list[$i][datetime2]?></font></td>
---------------------------------------------------------------------------------------------------------------------------------------
요부분입니다...
카테고리와 제목추출부 사이에
---------------------------------------------------------------------------------------------------------------------------------------
<td align="center" valign="middle"><font class=w_font><?=$list[$i][wr_1]?></font></td>
---------------------------------------------------------------------------------------------------------------------------------------
를 넣으시라는 말씀이네요...
이렇게 하시고 소비자가격에 해당하는 표제이미지를 만들어 표현하시면 되겠네요..
</td>
<td width="110" align="center" valign="middle"><font class=w_font><?=$list[$i][name]?></font></td>
<td width="40" align="center" valign="middle"><font class=list_eng><?=$list[$i][datetime2]?></font></td>
---------------------------------------------------------------------------------------------------------------------------------------
요부분입니다...
카테고리와 제목추출부 사이에
---------------------------------------------------------------------------------------------------------------------------------------
<td align="center" valign="middle"><font class=w_font><?=$list[$i][wr_1]?></font></td>
---------------------------------------------------------------------------------------------------------------------------------------
를 넣으시라는 말씀이네요...
이렇게 하시고 소비자가격에 해당하는 표제이미지를 만들어 표현하시면 되겠네요..
정말 감사합니다.
시그너스님 표제이미지 만들고 나서 어느사이에 넣어요? 가르쳐주세용
그리구요, 게시판 관리자 모드드로 들어가면 여분필드 나오잖아요. 여분필드에다가는 뭘 입력하는건가요?
시그너스님 표제이미지 만들고 나서 어느사이에 넣어요? 가르쳐주세용
그리구요, 게시판 관리자 모드드로 들어가면 여분필드 나오잖아요. 여분필드에다가는 뭘 입력하는건가요?
---------------------------------------------------------------------------------------------------------------------------------------
//이상생략
<td width='' align="center" valign="middle"><?=subject_sort_link('wr_subject', $qstr2, 1)?><img src="<?=$board_skin_path?>/img/t_subject.gif" alt='제목' border=0></a><? if ($sod =='desc' && $sst==wr_subject) { echo "<img src='$board_skin_path/img/asc.gif' border=0"; } elseif ($sod =='asc' && $sst==wr_subject) { echo "<img src='$board_skin_path/img/desc.gif' border=0"; } ?></td>
//이하생략
---------------------------------------------------------------------------------------------------------------------------------------
요부분의 앞뒤로
---------------------------------------------------------------------------------------------------------------------------------------
<td width='' align="center" valign="middle"><?=subject_sort_link('wr_1', $qstr2, 1)?><img src="<?=$board_skin_path?>/img/t_wr_1.gif" alt='여분필드1' border=0></a><? if ($sod =='desc' && $sst==wr_1) { echo "<img src='$board_skin_path/img/asc.gif' border=0"; } elseif ($sod =='asc' && $sst==wr_1) { echo "<img src='$board_skin_path/img/desc.gif' border=0"; } ?></td>
---------------------------------------------------------------------------------------------------------------------------------------
을 (여기서 t_wr_1.gif는 소비자가격 표제이미지에 해당하는 파일명으로 대체)
추출부가 아래와 같다면
---------------------------------------------------------------------------------------------------------------------------------------
<td align="center" valign="middle"><font class=w_font><?=$list[$i][wr_1]?></font></td>
<td width="110" align="center" valign="middle"><font class=w_font><?=$list[$i][name]?></font></td>
---------------------------------------------------------------------------------------------------------------------------------------
앞에다 붙여넣기하시고
다음과 같다면
---------------------------------------------------------------------------------------------------------------------------------------
<td width="110" align="center" valign="middle"><font class=w_font><?=$list[$i][name]?></font></td>
<td align="center" valign="middle"><font class=w_font><?=$list[$i][wr_1]?></font></td>
---------------------------------------------------------------------------------------------------------------------------------------
뒤에다 붙여넣기 하세요...
관리자 게시판관리 여분필드에는 특별한 목적이 없이 단순히 write.skin.php에서 정의된 wr_1을 넘겨 받는식이라면 아무런 입력안하셔도 됩니다...
//이상생략
<td width='' align="center" valign="middle"><?=subject_sort_link('wr_subject', $qstr2, 1)?><img src="<?=$board_skin_path?>/img/t_subject.gif" alt='제목' border=0></a><? if ($sod =='desc' && $sst==wr_subject) { echo "<img src='$board_skin_path/img/asc.gif' border=0"; } elseif ($sod =='asc' && $sst==wr_subject) { echo "<img src='$board_skin_path/img/desc.gif' border=0"; } ?></td>
//이하생략
---------------------------------------------------------------------------------------------------------------------------------------
요부분의 앞뒤로
---------------------------------------------------------------------------------------------------------------------------------------
<td width='' align="center" valign="middle"><?=subject_sort_link('wr_1', $qstr2, 1)?><img src="<?=$board_skin_path?>/img/t_wr_1.gif" alt='여분필드1' border=0></a><? if ($sod =='desc' && $sst==wr_1) { echo "<img src='$board_skin_path/img/asc.gif' border=0"; } elseif ($sod =='asc' && $sst==wr_1) { echo "<img src='$board_skin_path/img/desc.gif' border=0"; } ?></td>
---------------------------------------------------------------------------------------------------------------------------------------
을 (여기서 t_wr_1.gif는 소비자가격 표제이미지에 해당하는 파일명으로 대체)
추출부가 아래와 같다면
---------------------------------------------------------------------------------------------------------------------------------------
<td align="center" valign="middle"><font class=w_font><?=$list[$i][wr_1]?></font></td>
<td width="110" align="center" valign="middle"><font class=w_font><?=$list[$i][name]?></font></td>
---------------------------------------------------------------------------------------------------------------------------------------
앞에다 붙여넣기하시고
다음과 같다면
---------------------------------------------------------------------------------------------------------------------------------------
<td width="110" align="center" valign="middle"><font class=w_font><?=$list[$i][name]?></font></td>
<td align="center" valign="middle"><font class=w_font><?=$list[$i][wr_1]?></font></td>
---------------------------------------------------------------------------------------------------------------------------------------
뒤에다 붙여넣기 하세요...
관리자 게시판관리 여분필드에는 특별한 목적이 없이 단순히 write.skin.php에서 정의된 wr_1을 넘겨 받는식이라면 아무런 입력안하셔도 됩니다...
★시그너스님 과★ root님 가르쳐주셔서 완벽하게 수정했습니다.
덕분에 많이 배웠습니다. 너무너무 마음에 들어요....
정말 감사드립니다.
덕분에 많이 배웠습니다. 너무너무 마음에 들어요....
정말 감사드립니다.