c-innovacion2/resoft/field_manager_new/process/bcb/educator/insert.jsp

132 lines
4.4 KiB
Plaintext

<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/field_manager/include/manager_head.jsp"%>
<%
String c_project_no = r_call(request.getParameter("c_project_no"));
String c_type = r_call(request.getParameter("c_type"));
if(c_project_no.equals("")){
%>
<script>
alert("잘못 된 접속입니다.")
location.href="/"
</script>
<%
}else{
String sql_up = " SELECT c.*, a.c_name as u_name, b.c_name as f_name from tbl_project c ";
sql_up = sql_up + " inner join tbl_project a on a.c_no = c.c_up_no ";
sql_up = sql_up + " inner join tbl_field b on b.c_no = a.c_field ";
sql_up = sql_up + " where c.c_no = " + c_project_no ;
ResultSet rs_up = stmt.executeQuery(sql_up);
if (rs_up.next()) {
%>
<script>
function go(){
if(document.bcb.c_id.value == ""){
alert("Member ID(이메일)를 입력해 주세요.");
document.bcb.c_id.focus();
}else{
document.bcb.action = "insert_ok.jsp";
document.bcb.target = "exec";
document.bcb.method = "post";
document.bcb.submit();
}
}
</script>
<center>
<table width="800" cellSpacing="0" cellPadding="0" border="0">
<tr >
<td >
<table width="100%" cellSpacing="0" cellPadding="0" border="0" bgcolor=ffffff>
<tr >
<td height="60" style="font-weight:bold;">
<%if(c_type.equals("1")){%>
Instructor 등록
<%}%>
<%if(c_type.equals("2")){%>
Mentor 등록
<%}%>
<%if(c_type.equals("3")){%>
Observer 등록
<%}%>
</td>
</tr>
</table>
<!---------------------------------------------------------------------------------------->
<table width="100%" cellSpacing="0" cellPadding="0" border="0" bgcolor=ffffff>
<tr >
<td align=right style="line-height:120%">
<font color=red>
* 표시가 있는 항목은 반드시 입력해 주세요.
</font>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor=eeeeee >
<form name="bcb" method="post" >
<input name="c_project_no" value="<%=c_project_no%>" type="hidden">
<input name="c_type" value="<%=c_type%>" type="hidden">
<tr bgcolor=ffffff>
<td width="15%" align=center style="font-weight:bold;"> 메인필드 </td>
<td width="85%" style="padding:5px"> <b><%=rs_up.getString("f_name")%> </td>
</tr>
<tr bgcolor=ffffff>
<td align=center style="font-weight:bold;"> Category </td>
<td style="padding:5px"> <b><%=rs_up.getString("u_name")%> </td>
</tr>
<tr bgcolor=ffffff>
<td align=center style="font-weight:bold;"> Educator Type </td>
<td style="padding:5px">
<%if(c_type.equals("1")){%>
<font color="blue"><b>Instructor
<%}%>
<%if(c_type.equals("2")){%>
<font color="green"><b>Mentor록
<%}%>
<%if(c_type.equals("3")){%>
<font color="787878"><b>Observer
<%}%>
</td>
</tr>
<tr height=30 bgcolor=ffffff>
<td align=center style="font-weight:bold;"> <font color=red>*</font>
<%if(c_type.equals("1")){%>
<font color="blue"><b>Instructor
<%}%>
<%if(c_type.equals("2")){%>
<font color="green"><b>Mentor록
<%}%>
<%if(c_type.equals("3")){%>
<font color="787878"><b>Observer
<%}%>
ID(이메일) </td>
<td style="padding:5px">
<textarea style="width:400px" rows=10 name="c_id"></textarea><font color=red>* 엔터를 구분하여 여러개 입력 가능
</td>
</tr>
</form>
</table>
<!---------------------------------------------------------------------------------------->
<table width="100%">
<tr>
<td height="35" align="right" colspan="5" style="padding-bottom:10px;padding-top:10px;font-weight:bold;">
<a href="#none" onclick="go()" style="width: 50px; line-height: 26px; text-align: center;display: inline-block; background: #5e7cc4; border: 1px solid #555; border-radius: 5px; color: #ffffff;">등록</a>
<a href="list.jsp?c_project_no=<%=c_project_no%>" style="width: 50px; line-height: 26px; text-align: center;display: inline-block; background: #ededed; border: 1px solid #555; border-radius: 5px; color: #000000;">취소</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<iframe name="exec" width=0 height=0 src=""></iframe>
<%
}
rs_up.close();
%>
<%}%>
<%@include file="/field_manager/include/manager_bottom.jsp"%>