c-innovacion2/resoft/field_manager/process/point/ji/detail/insert.jsp

124 lines
4.2 KiB
Plaintext

<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/field_manager/include/manager_head.jsp"%>
<%
String c_home = r_call(request.getParameter("c_home"));
String c_ji_no = r_call(request.getParameter("c_ji_no"));
String c_up_no = r_call(request.getParameter("c_up_no"));
%>
<script>
function go(){
if(document.bcb.c_name.value == ""){
alert("Insert Item Name .");
document.bcb.c_name.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;">
Registration of evaluation items
</td>
</tr>
</table>
<table width="100%" cellSpacing="0" cellPadding="0" border="0" bgcolor=ffffff>
<tr >
<td height=30>
<%
int change_ok = 0;
String sql_ji = "select * from tbl_point_ji where c_home = " +c_home + " and c_no = " + c_ji_no;
ResultSet rs_ji = stmt.executeQuery(sql_ji);
if(rs_ji.next()){
change_ok = rs_ji.getInt("c_change");
%>
Management indicator : <b><%=rs_ji.getString("c_name")%></b>
<%
}
rs_ji.close();
%>
</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_home" value="<%=c_home%>" type="hidden">
<input name="c_ji_no" value="<%=c_ji_no%>" type="hidden">
<input name="c_up_no" value="<%=c_up_no%>" type="hidden">
<tr height=30 bgcolor=ffffff>
<td width="15%" align=center style="font-weight:bold;"> <font color=red>*</font>Item type</td>
<td width="85%" style="padding:5px">
<%if(c_up_no.equals("0")){%>
<b>Item
<%}else{%>
<%
sql_ji = "select * from tbl_point_ji_detail where c_no = " + c_up_no;
rs_ji = stmt.executeQuery(sql_ji);
if(rs_ji.next()){
%>
Children of <b><%=rs_ji.getString("c_title")%></b>
<%
}
rs_ji.close();
%>
<%}%>
</td>
</tr>
<tr height=30 bgcolor=ffffff>
<td width="15%" align=center style="font-weight:bold;"> <font color=red>*</font>Item Name</td>
<td width="85%" style="padding:5px"> <input type="text" name="c_name" id="" style="width:300px" maxlength="50"/> </td>
</tr>
<%if(!c_up_no.equals("0")){%>
<tr height=30 bgcolor=ffffff>
<td width="15%" align=center style="font-weight:bold;"> <font color=red>*</font>Explain</td>
<td width="85%" style="padding:5px">
<textarea name="c_exp" id="" style="width:100%;height=50px" ></textarea>
</td>
</tr>
<tr height=30 bgcolor=ffffff>
<td width="15%" align=center style="font-weight:bold;"> <font color=red>*</font>points</td>
<td width="85%" style="padding:5px">
<select name="c_point">
<%for(int i = 1;i<101;i++){%>
<option><%=i%></option>
<%}%>
</select> Point
</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_home=<%=c_home%>&c_ji_no=<%=c_ji_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>
<%@include file="/field_manager/include/manager_bottom.jsp"%>