<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.biz_nis.cmn.CommonMethod" %>
<%@ page import="com.biz_nis.bbs.BbsMgtDAO" %>
<%@ page import="com.biz_nis.bbs.BbsMgtDTO" %>
<%@ page import="org.apache.log4j.Logger" %>
<%
  Logger l_oLogger = Logger.getLogger( "" );

  //parameter
  int    p_nCurPage      = CommonMethod.intNullChk(request.getParameter("cur_page"), 1);
  int    p_nListSize     = CommonMethod.intNullChk(request.getParameter("list_size"), 10);
  String p_sSlct_flag   = CommonMethod.nullChk(request.getParameter("slct_flag"));
  String p_sSrch_text   = CommonMethod.nullChk(request.getParameter("srch_text"));
  String p_sBbs_gubn    = CommonMethod.nullChk(request.getParameter("bbs_gubn"), "A");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>â–’â–’â–’ SCG  â–’â–’â–’</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="/css/style.css">
<script type="text/javascript" src="/js/cmn/jquery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/js/cmn/cmn.js"></script>
<script type="text/javascript" src="/js/cmn/validation.js"></script>
<script type="text/javascript" src="/js/cmn/paging.js"></script>
<script language="javascript">
<!--
$(document).ready(function(){
	$("#bbs_mbr_id_nm").attr("readonly", true);

	$("#btnLogOut").click(function(){
		fn_logout();
	});

	$("#btnInsert").click(function(){
        fn_insert();
    });

	$("#btnList").click(function(){
		$("#form").attr("action", "/jsp/bbs/prrs_dmnd/prrs_dmnd_list.jsp");
        $("#form").submit();
    });
});

function fn_logout() {
	document.location.href="/jsp/login/logout.jsp";
}

function fn_insert() {
	if (confirm("저장하시겠습니까?")) {
		if (!validate(form)) {
            return;
        }
        else {
		    $("#form").attr("action", "/jsp/bbs/prrs_dmnd/prrs_dmnd_proc.jsp");
	        $("#form").submit();
        }
	}
}
//-->
</script>
</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<!-- top START -->
<%@ include file = "/include/inc_sub_top.jsp"%>
<!-- top END -->

<table border="0" cellspacing="0" cellpadding="0" width="100%">
  <tr>
	<td width="167" valign="top" >
	  <!-- top START -->
      <%@ include file = "/include/inc_sub_left_menu_bbs.jsp"%>
      <!-- top END -->
    </td>
    <td width="20" background='/image/new_top/left_line.gif' valign="top"><img src='/image/new_top/left_top.gif' ></td>
	<td valign="top">
      <table border="0" cellPadding="0" cellSpacing="0" width="100%">
		<tr>
	      <td bgcolor="E4E3E3" height="1"><img src='/image/new_top/spacer.gif'></td>
	    </tr>
		<tr>
		  <td height="10"></td>
		</tr>
	  </table>
	  <table border="0" cellPadding="0" cellSpacing="0">
        <tr>
          <td width="10"></td>
		  <td>
            <table width="780" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>
                  <!--내용시작-->
                  <!--타이틀-->
                  <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#E2F4DD">
                    <tr bgcolor="FFFFFF" height="30">
                      <td class="p14" style="padding-top:10" height="45">
                        <img src="/image/icon/ico_01.gif" width="18" height="11" border="0" align="absmiddle" hspace="3"> <b> 인맥요
                        청 게시판</b>
                      </td>
                    </tr>
                  </table>
                  <TABLE cellSpacing=0 cellPadding=0 width="750" border=0 align=center>
	                <TR><TD bgColor="#cccccc" height=4><IMG height=4 src="/img/spacer.gif" width=1></TD></TR>
	                <TR height=27><TD align=middle bgColor=#f3f3f3 colSpan=4><B><FONT size=3>글쓰기</FONT></B></TD></TR>
	                <TR height=1><TD bgColor=#cccccc colSpan=4></TD></TR>
                  </TABLE>

                  <form id="form" name="form" method="post">
                  <input type="hidden" id="flag" name="flag" value="I">
				  <input type="hidden" id="cur_page" name="cur_page" value="<%=p_nCurPage %>">
				  <input type="hidden" id="list_size" name="list_size" value="<%=p_nListSize %>">
				  <input type="hidden" id="slct_flag" name="slct_flag" value="<%=p_sSlct_flag %>">
				  <input type="hidden" id="srch_text" name="srch_text" value="<%=p_sSrch_text %>">
				  <input type="hidden" id="bbs_gubn" name="bbs_gubn" value="<%= p_sBbs_gubn %>">
                  <table border="0" cellpadding="5" cellspacing="0" width="750" align=center>
<TR>

<TD align=right width="20%">
	<p align="right" style="margin-right:10px;">성명<font color="red"> * </font></TD>
<TD width="80%"><INPUT id="bbs_mbr_id_nm" name="bbs_mbr_id_nm" value="<%= (String)session.getAttribute("mbr_nm") %>" size=12 value="" 
class=input1></TD>
</TR>
<TR>
<TD align=right><p align="right" style="margin-right:10px;">제목<font color="red"> * </font></TD>
<TD><INPUT maxLength=100 id="bbs_title" name="bbs_title" size=80 class=input1 hname="제목" required></TD>
</TR>
<TR>
<TD align=middle><p align="right" style="margin-right:10px;">ë‚´ìš©<font color="red"> * </font></TD>
<TD>

<textarea id="bbs_cont" name="bbs_cont" rows="15" cols="80" wrap="hard" hname="ë‚´ìš©" required></textarea>


</TD>
</TR>

</TABLE>
<br>
<div align=center>
<table border="0" cellpadding="5" cellspacing="0" width="750">
	<tr><td height=1 bgcolor="#cccccc"></td></tr>
	<tr>
		<td align=center background="/img/list_back.gif" height=50>
			<img id="btnInsert" src="/img/submit.gif" style="cursor:hand">
			<img id="btnList" src="/img/cancel.gif" border=0 style="cursor:hand">

		</td>
	</tr>
	<tr><td height=1 bgcolor="#cccccc"></td></tr>
</table>
</div>
</form>

                  <br>
				  <br>
                </td>
              </tr>
            </table>
          </TD>
        </TR>
      </TABLE>
    </td>


  </tr>
</table>
<!-- bottom START -->
<%@ include file = "/include/inc_sub_bottom.jsp"%>
<!-- bottom END -->
</body>
</html>