105 lines
3.8 KiB
Plaintext
105 lines
3.8 KiB
Plaintext
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
|
|
<%@include file="/field_manager/include/manager_head.jsp"%>
|
|
<%
|
|
String c_no = r_call(request.getParameter("c_no"));
|
|
String c_field = "" + session.getAttribute("manager_field_no");
|
|
if(c_no.equals("")){
|
|
%>
|
|
<script>
|
|
alert("Wrong connection.");
|
|
location.href="list.jsp"
|
|
</script>
|
|
<%
|
|
}else{
|
|
%>
|
|
<script>
|
|
function go(){
|
|
if(document.bcb.c_name.value == ""){
|
|
alert("Please enter the category name.");
|
|
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;">
|
|
Category modification
|
|
</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>
|
|
<%
|
|
String sql1=" SELECT * from tbl_project where c_no = " + c_no + " ";
|
|
ResultSet rst = stmt.executeQuery(sql1);
|
|
if(rst.next()) {
|
|
%>
|
|
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor=eeeeee >
|
|
<form name="bcb" method="post" >
|
|
<input name="c_no" value="<%=c_no%>" type="hidden">
|
|
<input name="o_field" value="<%=rst.getString("c_field")%>" type="hidden">
|
|
<input name="c_order" value="<%=rst.getString("c_order")%>" type="hidden">
|
|
<tr bgcolor=ffffff>
|
|
<td width="15%" align=center style="font-weight:bold;"> <font color=red>*</font>Main field selection</td>
|
|
<td width="85%" style="padding:5px">
|
|
<select name="c_field" style="height:26px" onchange="s_search()" disabled>
|
|
<option value="" <%if(rst.getString("c_field").equals("")){%>selected<%}%>>Choose</option>
|
|
<%
|
|
String sql12=" SELECT c_no, c_name from tbl_field where c_relation = 0 and c_use = 0 order by c_name asc";
|
|
ResultSet rst2 = stmt.executeQuery(sql12);
|
|
while (rst2.next()) {
|
|
%>
|
|
<option value="<%=rst2.getString("c_no")%>" <%if(rst.getString("c_field").equals(rst2.getString("c_no"))){%>selected<%}%>><%=rst2.getString("c_name")%></option>
|
|
<% }
|
|
rst2.close();
|
|
%>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr height=30 bgcolor=ffffff>
|
|
<td width="15%" align=center style="font-weight:bold;"> <font color=red>*</font>Category Name</td>
|
|
<td width="85%" style="padding:5px"> <input type="text" name="c_name" value="<%=rst.getString("c_name")%>" id="" style="width:200px" maxlength="50"/> </td>
|
|
</tr>
|
|
</form>
|
|
</table>
|
|
<%
|
|
}
|
|
rst.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;">Edit</a>
|
|
<a href="list.jsp?c_field=<%=c_field%>" 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"%>
|