<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 
?>
<meta http-equiv="refresh" content="300; url=<?=$g4[path]?>/bbs/board.php?bo_table=static&wr_id=<?=$wr_id?>&want_year=<?=$want_year?>">
<div style="height:12px; line-height:1px; font-size:1px;">&nbsp;</div>
<style type="text/css">
/*<![CDATA[*/
table.t_ex2 {background:#E2F2D3; width:100%; margin:0 auto; text-align:right}
.t_ex2 td, .t_ex2 th {border:1px solid #33904E;padding:5px 0px 5px 0px}
.t_ex2 th {background:#8FC147; color:#fff; text-align:center}
table.t_ex2 .c1 {text-align:center;width:7%}
table.t_ex2 .c2 {text-align:right;background:#CCFFFF;}
table.t_ex2 .c3 {text-align:right;background:#CB9696;color:#fff; }
table.t_ex2 .c4 {text-align:right;background:#FFFF00;}
/*]]>*/
</style>

<link href="<?=$board_skin_path?>/bar.css" rel="stylesheet" type="text/css">
	<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="<?=$board_skin_path?>/js/excanvas.min.js"></script><![endif]-->
	<script language="javascript" type="text/javascript" src="<?=$board_skin_path?>/js/jquery.js"></script>
	<script language="javascript" type="text/javascript" src="<?=$board_skin_path?>/js/jquery.flot.js"></script>
	<script language="javascript" type="text/javascript" src="<?=$board_skin_path?>/js/jquery.flot.pie.js"></script>
<!-- 게시글 보기 시작 -->

<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0"><tr><td>


<div style="clear:both; height:30px;">

    <!-- 링크 버튼 -->
    <div style="float:right;">
    <? 
    ob_start(); 
    ?>
 
    <? //if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/btn_modify.gif' border='0' align='absmiddle'></a> "; } ?>
    <? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin_path/img/btn_list_search.gif' border='0' align='absmiddle'></a> "; } ?>
    <? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/btn_list.gif' border='0' align='absmiddle'></a> "; ?>
  
  
  
    <?
    $link_buttons = ob_get_contents();
    ob_end_flush();
    ?>
    
    </div>
</div>

<div style="border:0px solid #ddd; clear:both;">
    <table border=0 cellpadding=0 cellspacing=0 width=100%>
    <tr>
        <td style="padding:8px 0 0 0;">
            <div style="color:#505050; font-size:26px; font-weight:bold; word-break:break-all;">
            <? if ($is_category) { echo ($category_name ? "[$view[ca_name]] " : ""); } ?>
            <?=$view[wr_subject]?>
            </div>
            
        </td>
    </tr>
    </table>
</div>



<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tr>
    <td height=30 style="color:#888;">
       
<? $table = "g4_write_".$write[wr_1]; ?>

<table>

<? 
switch($write[wr_1]) {

	case 'finance' : include("$board_skin_path/finance.php");
	break;
	case 'stock' : include("$board_skin_path/stock.php");	
	break;
	case 'devices' : include("$board_skin_path/device.php");	
	break;
	case 'buy' : include("$board_skin_path/buy.php");	
	break;
	case 'project' : include("$board_skin_path/project.php");	
		break;
	case 'product' : include("$board_skin_path/Production.php");
	break;
	case 'all' : include("$board_skin_path/all.php");	
	break;
}
	
	?>

        <!-- 내용 출력 -->
        
        
        <?//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우?>
        <!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>

        <? if ($nogood_href) {?>
        <div style="width:72px; height:55px; background:url(<?=$board_skin_path?>/img/good_bg.gif) no-repeat; text-align:center; float:right;">
        <div style="color:#888; margin:7px 0 5px 0;">비추천 : <?=number_format($view[wr_nogood])?></div>
        <div><a href="<?=$nogood_href?>" target="hiddenframe"><img src="<?=$board_skin_path?>/img/icon_nogood.gif" border='0' align="absmiddle"></a></div>
        </div>
        <? } ?>

        <? if ($good_href) {?>
        <div style="width:72px; height:55px; background:url(<?=$board_skin_path?>/img/good_bg.gif) no-repeat; text-align:center; float:right;">
        <div style="color:#888; margin:7px 0 5px 0;"><span style='color:crimson;'>추천 : <?=number_format($view[wr_good])?></span></div>
        <div><a href="<?=$good_href?>" target="hiddenframe"><img src="<?=$board_skin_path?>/img/icon_good.gif" border='0' align="absmiddle"></a></div>
        </div>
        <? } ?>

</td>
</tr>
<? if ($is_signature) { echo "<tr><td align='center' style='border-bottom:1px solid #E7E7E7; padding:5px 0;'>$signature</td></tr>"; } // 서명 출력 ?>
</table>
<br>

<?
// 코멘트 입출력
include_once("./view_comment.php");
?>

<div style="height:1px; line-height:1px; font-size:1px; background-color:#ddd; clear:both;">&nbsp;</div>

<? if ($delete_href) {  if ($is_admin == 'super' || $is_admin == 'group' || $is_admin == 'board') { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/btn_delete.gif' border='0' align='absmiddle'></a> "; } }?>

<div style="height:2px; line-height:1px; font-size:1px; background-color:#dedede; clear:both;">&nbsp;</div>

</td></tr></table><br>

<script type="text/javascript">
function file_download(link, file) {
    <? if ($board[bo_download_point] < 0) { ?>if (confirm("'"+decodeURIComponent(file)+"' 파일을 다운로드 하시면 포인트가 차감(<?=number_format($board[bo_download_point])?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?"))<?}?>
    document.location.href=link;
}
</script>

<script type="text/javascript" src="<?="$g4[path]/js/board.js"?>"></script>
<script type="text/javascript">
window.onload=function() {
    resizeBoardImage(<?=(int)$board[bo_image_width]?>);
    drawFont();
}
</script>
<!-- 게시글 보기 끝 -->
