알릭님의 태그 소스.. 정보
알릭님의 태그 소스..본문
알릭님의 태그 소스 입니다.
$tagsArray = explode(",",$view[wr_1]);
$tags = '';
for($ti=0; $ti<count($tagsArray); $ti++) {
$tagTemp = trim($tagsArray[$ti]);
$tagText = urlencode($tagTemp);
if($tagKey == $tagTemp) {
$tags .= "<a href='$g4[bbs_path]/tags.php?tagKey=$tagText'><font color=#7A8FDB>$tagTemp</font></a> ";
} else {
$tags .= "<a href='$g4[bbs_path]/tags.php?tagKey=$tagText'><font color=#7A8FDB>$tagTemp </font></a><font color='#333333'>/</font> ";
}
}
위가 페이지 상단에 삽입하는 소스 입니다.
<?=$tags?>
이것이 viw.skin.php에 삽입하는 소스인데,
이상하게 list.skin.php에서는 작동하지 않습니다.
$view[wr_1])를 $list[$i][wr_1]으로도 수정해보았습니다.
그런데도 안되네요
수정좀 부탁드릴게요.
$tagsArray = explode(",",$view[wr_1]);
$tags = '';
for($ti=0; $ti<count($tagsArray); $ti++) {
$tagTemp = trim($tagsArray[$ti]);
$tagText = urlencode($tagTemp);
if($tagKey == $tagTemp) {
$tags .= "<a href='$g4[bbs_path]/tags.php?tagKey=$tagText'><font color=#7A8FDB>$tagTemp</font></a> ";
} else {
$tags .= "<a href='$g4[bbs_path]/tags.php?tagKey=$tagText'><font color=#7A8FDB>$tagTemp </font></a><font color='#333333'>/</font> ";
}
}
위가 페이지 상단에 삽입하는 소스 입니다.
<?=$tags?>
이것이 viw.skin.php에 삽입하는 소스인데,
이상하게 list.skin.php에서는 작동하지 않습니다.
$view[wr_1])를 $list[$i][wr_1]으로도 수정해보았습니다.
그런데도 안되네요
수정좀 부탁드릴게요.
댓글 전체
common.lib.php파일안에 get_list()함수안에 적당한 위치에다가
$list['이름'] = $list['wr_1'];
$tagsArray = explode(",",$list[이름]);
$list['이름'] = $list['wr_1'];
$tagsArray = explode(",",$list[이름]);
되지 않네요.. 스킨 소스 입니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$img_width = 325;
$img_height = 245;
$img_quality = 95;
if (!$img_width) alert("게시판 설정 : 여분 필드 1 에 목록에서 보여질 이미지의 폭을 설정하십시오. (픽셀 단위)");
if (!$img_height) alert("게시판 설정 : 여분 필드 2 에 목록에서 보여질 이미지의 높이를 설정하십시오. (픽셀 단위)");
if (!$img_quality) alert("게시판 설정 : 여분 필드 3 에 목록에서 보여질 이미지의 질(quality)을 비율로 설정하십시오. (100 이하)");
if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 갤러리 게시판 입니다.");
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 5;
//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>
$tagsArray = explode(",",$list[$i][wr_1]);
$tags = '';
for($ti=0; $ti<count($tagsArray); $ti++) {
$tagTemp = trim($tagsArray[$ti]);
$tagText = urlencode($tagTemp);
if($tagKey == $tagTemp) {
$tags .= "<a href='$g4[bbs_path]/tags.php?tagKey=$tagText'><font color=#7A8FDB>$tagTemp</font></a> ";
} else {
$tags .= "<a href='$g4[bbs_path]/tags.php?tagKey=$tagText'><font color=#7A8FDB>$tagTemp </font></a><font color='#333333'>/</font> ";
}
}
?>
<img src="<?=$board_skin_path?>/img/gline.gif" />
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 -->
<!-- 제목 -->
<form name="fboardlist" method="post" style="margin:0;">
<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=''>
<table width=720 border=0 cellpadding=0 cellspacing=0>
<!-- 목록 -->
<?
for ($i=0; $i<count($list); $i++)
{
$img = "<img src='$board_skin_path/img/noimage.gif' border=0 width='325' height='245' title='이미지 없음' align=left style='margin-right:5px; border:1 solid #CCCCCC; padding:3px;'>";
$thumb = $thumb_path.'/'.$list[$i][wr_id];
// 썸네일 이미지가 존재하지 않는다면
if (!file_exists($thumb)) {
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
// 업로드된 파일이 이미지라면
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file)) {
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;
$rate = $img_width / $size[0];
$height = (int)($size[1] * $rate);
// 계산된 썸네일 이미지의 높이가 설정된 이미지의 높이보다 작다면
if ($height < $img_height)
// 계산된 이미지 높이로 복사본 이미지 생성
$dst = imagecreatetruecolor($img_width, $height);
else
// 설정된 이미지 높이로 복사본 이미지 생성
$dst = imagecreatetruecolor($img_width, $img_height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $img_width, $height, $size[0], $size[1]);
imagepng($dst, $thumb_path.'/'.$list[$i][wr_id], $img_quality);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
}
if (file_exists($thumb))
$img = "<img src='$thumb' border=0 style='border:0px solid #CCCCCC; padding:3px;'>";
else
if(preg_match("/\.(swf|wma|asf)$/i","$file") && file_exists($file))
{ $img = "<script>doc_write(flash_movie('$file', 'flash$i', '$img_width', '$img_height', 'transparent'));</script>"; }
?>
<tr align=center>
<td width="662" align=left style='word-break:break-all; padding-top:1px; padding-bottom:15px;'><table width="720" cellpadding="0" cellspacing="0">
<tr>
<td width=337 height="106" valign="top"><table width="100%" height="245" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="18" align="center"><?
echo "<a href='{$list[$i][href]}'>";
echo $img;
echo "</a>";
?></td>
</tr>
</table></td>
<td width="381" valign=top>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td><?
echo $nobr_begin;
echo $list[$i][reply];
echo $list[$i][icon_reply];
$style = "";
if ($list[$i][is_notice]) $style = " style='font-weight:bold;'";
echo "<a href='{$list[$i][href]}' style='font-weight:bold;'>";
echo $list[$i][subject];
echo "</a>";
if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-family:Tahoma;font-size:10px;color:#EE5A00;'>{$list[$i][comment_cnt]}</span></a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
echo $nobr_end;
?>
<span style="font:normal 11px tahoma; color:#333333;">
<?=date("F j, Y", strtotime($list[$i][wr_datetime]))?>
</span></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><font color=#777777>
<?=cut_str(strip_tags($list[$i][wr_content]),750,"…")?>
</font></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<span style="font:normal 11px tahoma; color:#333333;">Tags : <a href=<? $g4[bbs_path] ?>/bbs/tags.php?tagKey=<?=$list[$i][wr_1]?>><font color=#7A8FDB><?=$tags?></font></span></td>
</tr>
<tr>
<td height="13"> </td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan=<?=$colspan?> height=1 bgcolor=#eeeeee></td>
</tr>
<?}?>
<? if (count($list) == 0) { echo "<tr><td colspan='$colspan' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
</table>
</form>
<div style="clear:both; margin-top:7px; height:31px;">
<div style="float:left;">
<? if ($list_href) { ?>
<a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" align=absmiddle></a>
<? } ?>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" align=absmiddle></a>
<a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" align=absmiddle></a>
<a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" align=absmiddle></a>
<? } ?>
</div>
<div style="float:right;">
<? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a><? } ?>
</div>
</div>
<img src="<?=$board_skin_path?>/img/gline.gif" />
<!-- 페이지 -->
<div style="text-align:center; line-height:30px; clear:both; margin:5px 0 10px 0; padding:5px 0; font-family:gulim;">
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/page_search_prev.gif' border=0 align=absmiddle title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/page_begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/page_prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/page_next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/page_end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<b><span style=\"color:#B3B3B3; font-size:12px;\">$1</span></b>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><span style=\"color:#4D6185; font-size:12px; text-decoration:underline;\">$1</span></b>", $write_pages);
?>
<?=$write_pages?>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/page_search_next.gif' border=0 align=absmiddle title='다음검색'></a>"; } ?>
<? 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=500, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<? } ?>
<!-- 게시판 목록 끝 -->
그리고 common.lib.php 입니다.
// 게시물 정보($write_row)를 출력하기 위하여 $list로 가공된 정보를 복사 및 가공
function get_list($write_row, $board, $skin_path, $subject_len=40)
{
global $g4, $config;
global $qstr, $page;
//$t = get_microtime();
// 배열전체를 복사
$list = $write_row;
unset($write_row);
$list['이름'] = $list['wr_1'];
$tagsArray = explode(",",$list[이름]);
$list['is_notice'] = preg_match("/[^0-9]{0,1}{$list['wr_id']}[\r]{0,1}/",$board['bo_notice']);
if ($subject_len)
$list['subject'] = conv_subject($list['wr_subject'], $subject_len, "…");
else
$list['subject'] = conv_subject($list['wr_subject'], $board['bo_subject_len'], "…");
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$img_width = 325;
$img_height = 245;
$img_quality = 95;
if (!$img_width) alert("게시판 설정 : 여분 필드 1 에 목록에서 보여질 이미지의 폭을 설정하십시오. (픽셀 단위)");
if (!$img_height) alert("게시판 설정 : 여분 필드 2 에 목록에서 보여질 이미지의 높이를 설정하십시오. (픽셀 단위)");
if (!$img_quality) alert("게시판 설정 : 여분 필드 3 에 목록에서 보여질 이미지의 질(quality)을 비율로 설정하십시오. (100 이하)");
if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 갤러리 게시판 입니다.");
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 5;
//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>
$tagsArray = explode(",",$list[$i][wr_1]);
$tags = '';
for($ti=0; $ti<count($tagsArray); $ti++) {
$tagTemp = trim($tagsArray[$ti]);
$tagText = urlencode($tagTemp);
if($tagKey == $tagTemp) {
$tags .= "<a href='$g4[bbs_path]/tags.php?tagKey=$tagText'><font color=#7A8FDB>$tagTemp</font></a> ";
} else {
$tags .= "<a href='$g4[bbs_path]/tags.php?tagKey=$tagText'><font color=#7A8FDB>$tagTemp </font></a><font color='#333333'>/</font> ";
}
}
?>
<img src="<?=$board_skin_path?>/img/gline.gif" />
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 -->
<!-- 제목 -->
<form name="fboardlist" method="post" style="margin:0;">
<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=''>
<table width=720 border=0 cellpadding=0 cellspacing=0>
<!-- 목록 -->
<?
for ($i=0; $i<count($list); $i++)
{
$img = "<img src='$board_skin_path/img/noimage.gif' border=0 width='325' height='245' title='이미지 없음' align=left style='margin-right:5px; border:1 solid #CCCCCC; padding:3px;'>";
$thumb = $thumb_path.'/'.$list[$i][wr_id];
// 썸네일 이미지가 존재하지 않는다면
if (!file_exists($thumb)) {
$file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
// 업로드된 파일이 이미지라면
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file)) {
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;
$rate = $img_width / $size[0];
$height = (int)($size[1] * $rate);
// 계산된 썸네일 이미지의 높이가 설정된 이미지의 높이보다 작다면
if ($height < $img_height)
// 계산된 이미지 높이로 복사본 이미지 생성
$dst = imagecreatetruecolor($img_width, $height);
else
// 설정된 이미지 높이로 복사본 이미지 생성
$dst = imagecreatetruecolor($img_width, $img_height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $img_width, $height, $size[0], $size[1]);
imagepng($dst, $thumb_path.'/'.$list[$i][wr_id], $img_quality);
chmod($thumb_path.'/'.$list[$i][wr_id], 0606);
}
}
if (file_exists($thumb))
$img = "<img src='$thumb' border=0 style='border:0px solid #CCCCCC; padding:3px;'>";
else
if(preg_match("/\.(swf|wma|asf)$/i","$file") && file_exists($file))
{ $img = "<script>doc_write(flash_movie('$file', 'flash$i', '$img_width', '$img_height', 'transparent'));</script>"; }
?>
<tr align=center>
<td width="662" align=left style='word-break:break-all; padding-top:1px; padding-bottom:15px;'><table width="720" cellpadding="0" cellspacing="0">
<tr>
<td width=337 height="106" valign="top"><table width="100%" height="245" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="18" align="center"><?
echo "<a href='{$list[$i][href]}'>";
echo $img;
echo "</a>";
?></td>
</tr>
</table></td>
<td width="381" valign=top>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td><?
echo $nobr_begin;
echo $list[$i][reply];
echo $list[$i][icon_reply];
$style = "";
if ($list[$i][is_notice]) $style = " style='font-weight:bold;'";
echo "<a href='{$list[$i][href]}' style='font-weight:bold;'>";
echo $list[$i][subject];
echo "</a>";
if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-family:Tahoma;font-size:10px;color:#EE5A00;'>{$list[$i][comment_cnt]}</span></a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
echo $nobr_end;
?>
<span style="font:normal 11px tahoma; color:#333333;">
<?=date("F j, Y", strtotime($list[$i][wr_datetime]))?>
</span></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><font color=#777777>
<?=cut_str(strip_tags($list[$i][wr_content]),750,"…")?>
</font></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<span style="font:normal 11px tahoma; color:#333333;">Tags : <a href=<? $g4[bbs_path] ?>/bbs/tags.php?tagKey=<?=$list[$i][wr_1]?>><font color=#7A8FDB><?=$tags?></font></span></td>
</tr>
<tr>
<td height="13"> </td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan=<?=$colspan?> height=1 bgcolor=#eeeeee></td>
</tr>
<?}?>
<? if (count($list) == 0) { echo "<tr><td colspan='$colspan' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
</table>
</form>
<div style="clear:both; margin-top:7px; height:31px;">
<div style="float:left;">
<? if ($list_href) { ?>
<a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" align=absmiddle></a>
<? } ?>
<? if ($is_checkbox) { ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" align=absmiddle></a>
<a href="javascript:select_copy('copy');"><img src="<?=$board_skin_path?>/img/btn_select_copy.gif" align=absmiddle></a>
<a href="javascript:select_copy('move');"><img src="<?=$board_skin_path?>/img/btn_select_move.gif" align=absmiddle></a>
<? } ?>
</div>
<div style="float:right;">
<? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a><? } ?>
</div>
</div>
<img src="<?=$board_skin_path?>/img/gline.gif" />
<!-- 페이지 -->
<div style="text-align:center; line-height:30px; clear:both; margin:5px 0 10px 0; padding:5px 0; font-family:gulim;">
<? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/page_search_prev.gif' border=0 align=absmiddle title='이전검색'></a>"; } ?>
<?
// 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
//echo $write_pages;
$write_pages = str_replace("처음", "<img src='$board_skin_path/img/page_begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
$write_pages = str_replace("이전", "<img src='$board_skin_path/img/page_prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
$write_pages = str_replace("다음", "<img src='$board_skin_path/img/page_next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
$write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/page_end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<b><span style=\"color:#B3B3B3; font-size:12px;\">$1</span></b>", $write_pages);
$write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><span style=\"color:#4D6185; font-size:12px; text-decoration:underline;\">$1</span></b>", $write_pages);
?>
<?=$write_pages?>
<? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/page_search_next.gif' border=0 align=absmiddle title='다음검색'></a>"; } ?>
<? 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=500, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<? } ?>
<!-- 게시판 목록 끝 -->
그리고 common.lib.php 입니다.
// 게시물 정보($write_row)를 출력하기 위하여 $list로 가공된 정보를 복사 및 가공
function get_list($write_row, $board, $skin_path, $subject_len=40)
{
global $g4, $config;
global $qstr, $page;
//$t = get_microtime();
// 배열전체를 복사
$list = $write_row;
unset($write_row);
$list['이름'] = $list['wr_1'];
$tagsArray = explode(",",$list[이름]);
$list['is_notice'] = preg_match("/[^0-9]{0,1}{$list['wr_id']}[\r]{0,1}/",$board['bo_notice']);
if ($subject_len)
$list['subject'] = conv_subject($list['wr_subject'], $subject_len, "…");
else
$list['subject'] = conv_subject($list['wr_subject'], $board['bo_subject_len'], "…");
ㅜ.ㅡ
common.lib.php에서
$list['이름'] = $list['wr_1'];
//여기서 이름은 본인이 정하라는 말이거던요. 예) $list['test'] = $list['$wr_1'];
$tagsArray = explode(",",$list[이름]); <--- 이놈은 지우삼.
common.lib.php에서
$list['이름'] = $list['wr_1'];
//여기서 이름은 본인이 정하라는 말이거던요. 예) $list['test'] = $list['$wr_1'];
$tagsArray = explode(",",$list[이름]); <--- 이놈은 지우삼.
해봤는데 안되네요..
그냥 소스를 수정해주시면 안될까요? ㅠㅠ
그냥 소스를 수정해주시면 안될까요? ㅠㅠ
저두 이 정보 찾고 있었어요...
고수님들 답변 꼭 부탁드립니다 ^^;
고수님들 답변 꼭 부탁드립니다 ^^;