c-innovacion2/resoft/field_manager/process/project/insert.jsp

81 lines
3.1 KiB
Plaintext

<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/field_manager/include/manager_head.jsp"%>
<%
String c_field = "" + session.getAttribute("manager_field_no");
%>
<script>
function go(){
if(document.bcb.c_name.value == ""){
alert("Please enter the category 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;">
Category 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 items marked with a mark *.
</font>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor=eeeeee >
<form name="bcb" method="post" >
<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(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(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>c_category Name </td>
<td width="85%" style="padding:5px"> <input type="text" name="c_name" id="" style="width:200px" maxlength="50"/> </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_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"%>