c-innovacion2/resoft/manager_for_cms/process/f_manager/insert.jsp

126 lines
5.6 KiB
Plaintext

<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/manager_for_cms/include/manager_head.jsp"%>
<%
String c_relation = r_call(request.getParameter("c_relation"));
%>
<script>
function go(){
if(document.bcb.c_relation.value == ""){
alert("Please select a field.");
document.bcb.c_relation.focus();
}else if(document.bcb.c_name.value == ""){
alert("Please enter the administrator's name.");
document.bcb.c_name.focus();
}else if(document.bcb.c_id.value == ""){
alert("Please enter your ID.");
document.bcb.c_id.focus();
}else if(document.bcb.c_pass.value == ""){
alert("Please enter your Password.");
document.bcb.c_pass.focus();
}else if(document.bcb.c_pass2.value == ""){
alert("Enter Password Confirmation.");
document.bcb.c_pass2.focus();
}else if(document.bcb.c_pass.value != document.bcb.c_pass2.value){
alert("Password verification is incorrect.");
document.bcb.c_pass2.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;">
Mainfield Manager Insert
</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" >
<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_relation" style="height:24px" onchange="s_search()">
<option value="" <%if(c_relation.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_relation.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>Manage Name </td>
<td width="85%" style="padding:5px"> <input type="text" name="c_name" id="" style="width:60px" maxlength="10"/> </td>
</tr>
<tr height=30 bgcolor=ffffff>
<td width="15%" align=center style="font-weight:bold;"> <font color=red>*</font>ID </td>
<td width="85%" style="padding:5px"> <input type="text" name="c_id" id="" style="width:100px" maxlength="20"/> <font color=red>* Please register ID carefully with security.</font></td>
</tr>
<tr height=30 bgcolor=ffffff>
<td width="15%" align=center style="font-weight:bold;"> <font color=red>*</font>Password </td>
<td width="85%" style="padding:5px"> <input type="password" name="c_pass" id="" style="width:100px" maxlength="20"/> <font color=red>* Please register your password carefully with security.</font></td>
</tr>
<tr height=30 bgcolor=ffffff>
<td width="15%" align=center style="font-weight:bold;"> <font color=red>*</font>Password Confirm</td>
<td width="85%" style="padding:5px"> <input type="password" name="c_pass2" id="" style="width:100px" maxlength="20"/> <font color=red>* Enter the same password once more.</font></td>
</tr>
<tr bgcolor=ffffff>
<td width="15%" align=center style="font-weight:bold;"> Department </td>
<td width="85%" style="padding:5px"> <input type="text" name="c_part" id="" style="width:150px" /> </td>
</tr>
<tr bgcolor=ffffff>
<td width="15%" align=center style="font-weight:bold;"> rank </td>
<td width="85%" style="padding:5px"> <input type="text" name="c_position" id="" style="width:120px" maxlength="20"/> </td>
</tr>
<tr bgcolor=ffffff>
<td width="15%" align=center style="font-weight:bold;"> Phone </td>
<td width="85%" style="padding:5px"> <input type="text" name="c_phone" id="" style="width:100px" maxlength="20"/> </td>
</tr>
<tr bgcolor=ffffff>
<td width="15%" align=center style="font-weight:bold;"> Email </td>
<td width="85%" style="padding:5px"> <input type="text" name="c_email" 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?s_relation=<%=c_relation%>" 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="/manager_for_cms/include/manager_bottom.jsp"%>