135 lines
4.7 KiB
Plaintext
135 lines
4.7 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"));
|
|
String c_no = r_call(request.getParameter("c_no"));
|
|
%>
|
|
<script>
|
|
function go(){
|
|
if(document.bcb.c_name.value == ""){
|
|
alert("항목명을 입력해 주세요.");
|
|
document.bcb.c_name.focus();
|
|
}else{
|
|
|
|
document.bcb.action = "edit_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;">
|
|
평가항목 등록
|
|
</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");
|
|
%>
|
|
관리지표 : <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>
|
|
* 표시가 있는 항목은 반드시 입력해 주세요.
|
|
</font>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<%
|
|
sql_ji = "select * from tbl_point_ji_detail where c_no = " + c_no;
|
|
rs_ji = stmt.executeQuery(sql_ji);
|
|
if(rs_ji.next()){
|
|
%>
|
|
<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">
|
|
<input name="c_no" value="<%=c_no%>" type="hidden">
|
|
<tr height=30 bgcolor=ffffff>
|
|
<td width="15%" align=center style="font-weight:bold;"> <font color=red>*</font>항목형태</td>
|
|
<td width="85%" style="padding:5px">
|
|
<%if(c_up_no.equals("0")){%>
|
|
<b>항목 1
|
|
<%}else{%>
|
|
<b>
|
|
<%
|
|
String sql_ji2 = "select * from tbl_point_ji_detail where c_no = " + c_up_no;
|
|
ResultSet rs_ji2 = stmt.executeQuery(sql_ji2);
|
|
if(rs_ji2.next()){
|
|
%>
|
|
<b><%=rs_ji2.getString("c_title")%></b>의 하위 항목
|
|
<%
|
|
}
|
|
rs_ji2.close();
|
|
%>
|
|
<%}%>
|
|
</td>
|
|
</tr>
|
|
<tr height=30 bgcolor=ffffff>
|
|
<td width="15%" align=center style="font-weight:bold;"> <font color=red>*</font>항목명</td>
|
|
<td width="85%" style="padding:5px"> <input type="text" name="c_name" value="<%=rs_ji.getString("c_title")%>" 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>설명</td>
|
|
<td width="85%" style="padding:5px">
|
|
<textarea name="c_exp" id="" style="width:100%;height=50px" ><%=rs_ji.getString("c_exp")%></textarea>
|
|
</td>
|
|
</tr>
|
|
<tr height=30 bgcolor=ffffff>
|
|
<td width="15%" align=center style="font-weight:bold;"> <font color=red>*</font>배점</td>
|
|
<td width="85%" style="padding:5px">
|
|
<select name="c_point">
|
|
<%for(int i = 1;i<101;i++){%>
|
|
<option <%if(rs_ji.getInt("c_point") == i ){%>selected<%}%>><%=i%></option>
|
|
<%}%>
|
|
</select>점
|
|
</td>
|
|
</tr>
|
|
<%}%>
|
|
</form>
|
|
</table>
|
|
<%}
|
|
rs_ji.close();
|
|
%>
|
|
<!---------------------------------------------------------------------------------------->
|
|
<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_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;">취소</a>
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<iframe name="exec" width=0 height=0 src=""></iframe>
|
|
<%@include file="/field_manager/include/manager_bottom.jsp"%>
|