206 lines
5.7 KiB
Plaintext
206 lines
5.7 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"));
|
|
int c_now_propose = 0;
|
|
if(c_project_no.equals("")){
|
|
%>
|
|
<script>
|
|
alert("Wrong Connection.")
|
|
location.href="/"
|
|
</script>
|
|
<%
|
|
}else{
|
|
String slq_chekc = "select * from tbl_apply_team where c_project_no = "+ c_project_no + " and c_no = " + c_team_no + " and c_use = 0 ";
|
|
ResultSet rs_check = stmt.executeQuery(slq_chekc);
|
|
if (rs_check.next()) {
|
|
|
|
int c_home = 0;
|
|
String sql_up = " SELECT c.*, a.c_name as u_name, b.c_name as f_name ";
|
|
sql_up = sql_up + " , (select c_now_propose from tbl_project_plan where c_relation = 0 and c_project_no = c.c_no) as c_now_propose " ;
|
|
sql_up = sql_up + " 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()) {
|
|
c_now_propose = rs_up.getInt("c_now_propose");
|
|
c_home = rs_up.getInt("c_field");
|
|
|
|
%>
|
|
|
|
|
|
<center>
|
|
<table width="1000" 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;">
|
|
Project Application Team Information
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<!---------------------------------------------------------------------------------------->
|
|
|
|
<table width="50%" border="0" cellspacing="1" cellpadding="0" bgcolor=dddddd >
|
|
<tr height="40" bgcolor=ffffff>
|
|
<td colspan=2 width="25%" align=center style="font-weight:bold;"> Field</td>
|
|
<td width="75%" style="padding:5px">
|
|
<b><%=rs_up.getString("f_name")%>
|
|
</td>
|
|
</tr>
|
|
<tr height="40" bgcolor=ffffff>
|
|
<td colspan=2 align=center style="font-weight:bold;"> Category</td>
|
|
<td style="padding:5px">
|
|
<b><%=rs_up.getString("u_name")%>
|
|
</td>
|
|
</tr>
|
|
<tr height="40" height=30 bgcolor=ffffff>
|
|
<td colspan=2 align=center style="font-weight:bold;"> Project Name </td>
|
|
<td style="padding:5px">
|
|
<font color=red><b><%=rs_up.getString("c_name")%></b></font>
|
|
</tr>
|
|
|
|
</table>
|
|
<%
|
|
|
|
}
|
|
rs_up.close();
|
|
|
|
%>
|
|
<table width="100%" cellSpacing="0" cellPadding="0" border="0" bgcolor=ffffff>
|
|
<tr >
|
|
<td align=left style="line-height:120%;height:40px">
|
|
<b>* Application Team Information</b>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor=dddddd >
|
|
<tr height="30" bgcolor=efefef>
|
|
<td align=center style="width:15%;min-width:50px" > Item</td>
|
|
<td align=center style="width:85%" > Name</td>
|
|
|
|
</tr>
|
|
<%
|
|
int i = 0;
|
|
int stu_check = 1;
|
|
String sql_field = " SELECT * from tbl_apply_field where c_project_no = " + c_project_no +" order by c_order asc ";
|
|
ResultSet rs_field = stmt.executeQuery(sql_field);
|
|
while (rs_field.next()) {
|
|
if(rs_field.getString("c_use_field").equals("c_grade")){
|
|
stu_check = 0;
|
|
}
|
|
i = i + 1;
|
|
%>
|
|
|
|
<tr bgcolor=ffffff>
|
|
|
|
<td height="30" align=center >
|
|
<%=rs_field.getString("c_name")%>
|
|
</td>
|
|
<td align=left style="padding:5px">
|
|
<%if(rs_field.getInt("c_type") == 1){%>
|
|
<%=rs_check.getString(rs_field.getString("c_use_field"))%>
|
|
<%}%>
|
|
<%if(rs_field.getInt("c_type") == 2){
|
|
%>
|
|
<%=rs_check.getString(rs_field.getString("c_use_field"))%>
|
|
<%}%>
|
|
<%if(rs_field.getInt("c_type") == 3){%>
|
|
<%=rs_check.getString(rs_field.getString("c_use_field"))%>
|
|
<%}%>
|
|
<%if(rs_field.getInt("c_type") == 4){%>
|
|
File : <%=rs_check.getString(rs_field.getString("c_use_field")).replaceAll("\n\r","<br />")%>
|
|
|
|
<%}%>
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
<%
|
|
|
|
}
|
|
rs_field.close();
|
|
%>
|
|
</table>
|
|
<%
|
|
String major_t = "Department";
|
|
String grade_t = "grade";
|
|
if( stu_check == 1){
|
|
major_t = "Department";
|
|
grade_t = "rank";
|
|
}
|
|
%>
|
|
<table width="100%" cellSpacing="0" cellPadding="0" border="0" bgcolor=ffffff>
|
|
<tr >
|
|
<td align=left style="line-height:120%;height:40px">
|
|
<b>* Team member information</b>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor=dddddd >
|
|
<tr height="24" bgcolor=efefef>
|
|
<td align=center > Cap.</td>
|
|
<td align=center > Email</td>
|
|
<td align=center > Name</td>
|
|
<td align=center > Phone</td>
|
|
<td align=center > <%=major_t%></td>
|
|
<td align=center > <%=grade_t%></td>
|
|
</tr>
|
|
<%
|
|
String slq_t = "select * from tbl_apply_team_member where c_project_no = "+ c_project_no + " and c_team_no = " + c_team_no + " and c_use = 0 order by c_type desc ";
|
|
ResultSet rs_t = stmt2.executeQuery(slq_t);
|
|
while(rs_t.next()) {
|
|
%>
|
|
<tr bgcolor=ffffff>
|
|
<td height="24" align=center>
|
|
<%if(rs_t.getInt("c_type") == 1){%>
|
|
Cap
|
|
<%}else{%>
|
|
Member
|
|
<%}%>
|
|
</td>
|
|
<td align=center>
|
|
<%=rs_t.getString("c_email")%>
|
|
</td>
|
|
<td align=center>
|
|
<%=rs_t.getString("c_name")%>
|
|
</td>
|
|
<td align=center>
|
|
<%=rs_t.getString("c_phone")%>
|
|
</td>
|
|
<td align=center>
|
|
<%=rs_t.getString("c_major")%>
|
|
</td>
|
|
<td align=center>
|
|
<%=rs_t.getString("c_grade")%>
|
|
</td>
|
|
</tr>
|
|
<%}
|
|
rs_t.close();
|
|
%>
|
|
</table>
|
|
|
|
<br><br>
|
|
<br><br>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
<iframe name="exec" width=0 height=0 src=""></iframe>
|
|
<%}else{%>
|
|
<script>
|
|
alert("There is no application for the selected program");
|
|
location.href="list.jsp?c_project_no=<%=c_project_no%>"
|
|
</script>
|
|
<%}
|
|
rs_check.close();
|
|
%>
|
|
<%}%>
|
|
<%@include file="/field_manager/include/manager_bottom.jsp"%>
|