c-innovacion2/resoft/field_manager/process/bcb/team/member/insert.jsp

108 lines
3.9 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_team_no = r_call(request.getParameter("c_team_no"));
if(c_team_no.equals("")){
%>
<script>
alert("Wrong Connection.")
location.href="/"
</script>
<%
}else{
String sql_up = " SELECT c.*, a.c_name as u_name, b.c_name as f_name, d.c_team_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 + " inner join tbl_team d on d.c_project_no = c.c_no ";
sql_up = sql_up + " where c.c_no = " + c_project_no + " and d.c_no = " + c_team_no;
ResultSet rs_up = stmt.executeQuery(sql_up);
if (rs_up.next()) {
%>
<script>
function go(){
if(document.bcb.c_id.value == ""){
alert("Please enter your Member ID (email).");
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;">
Member registration
</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>
* Please be sure to enter the items marked with the mark.
</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_team_no" value="<%=c_team_no%>" type="hidden">
<tr bgcolor=ffffff>
<td width="15%" align=center style="font-weight:bold;"> Field </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;"> Project </td>
<td style="padding:5px"> <b><%=rs_up.getString("c_name")%> </td>
</tr>
<tr bgcolor=ffffff>
<td align=center style="font-weight:bold;"> Team Name </td>
<td style="padding:5px"> <font color=red><b><%=rs_up.getString("c_team_name")%></b></font> </td>
</tr>
<tr height=30 bgcolor=ffffff>
<td align=center style="font-weight:bold;"> <font color=red>*</font>Member ID(Email) </td>
<td style="padding:5px">
<textarea style="width:400px" rows=10 name="c_id"></textarea><font color=red>* Multiple inputs are possible by separating enter
</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;">Insert</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;">Cancel</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"%>