';
$tmp_write_table = $g5['write_prefix'] . $board['bo_table']; // 게시판 테이블 전체이름
$sql_detail = " select * from {$tmp_write_table} where wr_subject = {$data[wr_subject]} order by wr_subject $board[bo_4], wr_1, wr_2 ";
$result_detail = sql_query($sql_detail);
$history_icon = '';
for ($i=0; $hList = sql_fetch_array($result_detail); $i++) {
if($i == 0) {
if($i > -1) $margin_top = "mt30";
echo '
';
echo '
'.$hList[wr_subject].' ';
echo '
';
echo '
';
}
$disp_month = $hList[wr_1];
$disp_day = $hList[wr_2];
if($board[bo_3]=="d") {
$display = $disp_month.".".$disp_day." ";
}else{
$display = $disp_month.". ";
}
echo '
';
if($is_admin || $is_checkbox) echo ' ';
if($is_admin) {
echo ' ';
}
echo $display.nl2br($hList[wr_content]);
if ($is_admin)
{
set_session("ss_delete_token", $token = uniqid(time()));
$delete_href ='./delete_all.php?bo_table='.$bo_table.'&wr_id='.$hList[wr_id];
echo ' ';
echo ' ';
}
echo '
';
$thumb = get_list_thumbnail($bo_table, $hList['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height']);
$sql = " select bf_file, bf_content from {$g5['board_file_table']}
where bo_table = '$bo_table' and wr_id = '$hList[wr_id]' and bf_type between '1' and '3' order by bf_no limit 0, 1 ";
$row = sql_fetch($sql);
if($thumb['src']) {
$history_icon .= '
';
$history_icon .= '
'.$hList[wr_subject].' ';
$history_icon .= '
'.$thumb['alt'].'
';
$history_icon .= '
';
$history_icon .= '
';
}
}
echo '