📄 clientinsert.jsp~9~
字号:
<%@page contentType="text/html; charset=gb2312"%>
<%@page import="java.sql.*"%>
<%@page import="java.util.*"%>
<%@page import="com.domain.BankVO"%>
<%@page import="com.dao.BankDao"%>
<%@page import="com.domain.CreditVO"%>
<%@page import="com.dao.CreditDao"%>
<%@page import="com.domain.ClientStyleVO"%>
<%@page import="com.dao.ClientStyleDao"%>
<%@page import="com.domain.TypeVO"%>
<%@page import="com.dao.TypeDao"%>
<%@page import="com.domain.AreaVO"%>
<%@page import="com.dao.AreaDao"%>
<%BankDao bank = new BankDao();%>
<%CreditDao credit = new CreditDao();%>
<%ClientStyleDao clientStyle = new ClientStyleDao();%>
<%TypeDao type = new TypeDao();%>
<%AreaDao area = new AreaDao();%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/style.css" rel="stylesheet" type="text/css">
<title>添加企业信息</title>
<script language="JavaScript">
function insertUnit(){
if(document.form.name.value==""){
window.alert("请填写名称");
return false;
}
if(document.form.remark.value==""){
window.alert("请填写备注信息");
return false;
}
return true;
}
</script></head>
<body>
<table width="80%" height="100%" border="1" align="center" cellpadding="0" cellspacing="0">
<tr align="left" valign="top">
<td height="20%" colspan="3">
<jsp:include page="../top.jsp"/>
</td>
</tr>
<tr>
<td width="189" height="80%" scope="row">
<jsp:include page="../ba.jsp"/>
</td>
<td width="612" height="80%" scope="row">
<div align="center">
<p> </p>
<p>
<strong>添加企业信息</strong>
</p>
<form name="form" method="post" action="unitservlet?method=1&operate=1" onSubmit="return insertUnit()">
<table width="87%" border="1" cellspacing="0" cellpadding="0">
<tr align="center">
<td width="16%" height="30">企业名称</td>
<td width="33%">
<div align="left">
<input type="text" name="name">
</div></td>
<td width="16%">企业类型</td> <%List clientStyleList =clientStyle.bankSelect(); %>
<td width="35%">
<div align="left">
<select name="ptype">
<option value="">请选择</option>
<%
for (int i = 0; i < clientStyleList.size(); i++) {
ClientStyleVO clientStyleVO = (ClientStyleVO) clientStyleList.get(i);
%>
<option value="<%=clientStyleVO.getClientStyle_name()%>"><%=clientStyleVO.getClientStyle_name()%> </option>
<%} %>
</select>
</div></td>
</tr>
<tr align="center">
<td height="30">企业资信</td>
<%List creditList =credit.creditSelect(); %>
<td>
<div align="left">
<select name="credit">
<option value="">请选择</option>
<%
for (int i = 0; i < creditList.size(); i++) {
CreditVO creditvo = (CreditVO) creditList.get(i);
%>
<option value="<%=creditvo.getCredit_name()%>"><%=creditvo.getCredit_name()%> </option>
<%} %>
</select>
</div></td>
<td>企业实质类型</td> <%List typeList =type.typeSelect(); %>
<td>
<div align="left">
<select name="type">
<option value="">请选择</option>
<%
for (int i = 0; i < typeList.size(); i++) {
TypeVO typevo = (TypeVO) typeList.get(i);
%>
<option value="<%=typevo.getType_name()%>"><%=typevo.getType_name()%> </option>
<%} %>
</select>
</div></td>
</tr>
<tr align="center">
<td height="30">开户银行</td>
<%List bankList = bank.bankSelect(); %>
<td>
<div align="left">
<select name="bank">
<option value="">请选择</option>
<%
for (int i = 0; i < bankList.size(); i++) {
BankVO bankvo = (BankVO) bankList.get(i);
%>
<option value="<%=bankvo.getBank_name()%>"><%=bankvo.getBank_name()%> </option>
<%} %>
</select>
</div></td>
<td>银行账号</td>
<td>
<div align="left">
<input type="text" name="bankNumber">
</div></td>
</tr>
<tr align="center">
<td height="30">所在省份</td><%List areaList=area.areaSelectProvicne();%>
<td>
<div align="left">
<select name="provicne">
<option value="">请选择</option>
<%
for (int i = 0; i < areaList.size(); i++) {
AreaVO areavo = (AreaVO) areaList.get(i);
%>
<option value="<%=areavo.getCsxx_csmc()%>"><%=bankvo.getCsxx_csmc()%> </option>
<%} %>
</select>
</div></td>
<td>所在城市</td>
<td>
<div align="left">
<input type="text" name="city">
</div></td>
</tr>
<tr align="center">
<td height="30">主要产品</td>
<td>
<div align="left">
<input type="text" name="content">
</div></td>
<td>联系电话</td>
<td>
<div align="left">
<input type="text" name="tel">
</div></td>
</tr>
<tr align="center">
<td height="30">联系人姓名</td>
<td>
<div align="left">
<input type="text" name="contact">
</div></td>
<td>电子邮件</td>
<td>
<div align="left">
<input type="text" name="email">
</div></td>
</tr>
<tr align="center">
<td height="30">详细地址</td>
<td>
<div align="left">
<input type="text" name="address">
</div></td>
<td>备注信息</td>
<td>
<div align="left">
<input type="text" name="remark">
</div></td>
</tr>
</table>
<p>
<input type="submit" name="Submit2" value="提交">
<input type="reset" name="Submit3" value="重置">
<input type="button" name="Submit3" value="返回" onclick="javascript:history.back();">
</p>
</form>
</div>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -