📄 updateclient.jsp~9~
字号:
<%@page contentType="text/html; charset=gb2312"%>
<%java.util.Date date=new java.util.Date();%>
<%@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.TypeVO"%>
<%@page import="com.dao.TypeDao"%>
<%@page import="com.domain.AreaVO"%>
<%@page import="com.dao.AreaDao"%>
<%@page import="com.domain.ClientVO"%>
<%BankDao bank = new BankDao();%>
<%CreditDao credit = new CreditDao();%>
<%TypeDao type = new TypeDao();%>
<%AreaDao area = new AreaDao();%>
<%List creditList =credit.creditSelect();%>
<%List typeList =type.typeSelect();%>
<%List bankList = bank.bankSelect();%>
<%List areaList=area.areaSelectProvicne();%>
<%String provinceID=(String)request.getAttribute("provinceID");%>
<%List areaCity=area.areaSelectCity(provinceID);%>
<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 insert(){ //登录的脚本
if(document.form.name.value==""){
window.alert("请输入企业名称");
return false;
}
if(document.form.ptype.value==""){
window.alert("请选择企业类型");
return false;
}
if(document.form.type.value==""){
window.alert("请选择企业实质类型");
return false;
}
if(document.form.credit.value==""){
window.alert("请选择企业资信");
return false;
}
if(document.form.content.value==""){
window.alert("请输入企业产品");
return false;
}
if(document.form.tel.value==""){
window.alert("请输入电话号码");
return false;
}
if(document.form.provicne.value==""){
window.alert("请选择省份");
return false;
}
if(document.form.city.value==""){
window.alert("请选择城市");
return false;
}
if(document.form.bank.value==""){
window.alert("请选择开户银行");
return false;
}
if(document.form.bankNumber.value==""){
window.alert("请输入银行账号");
return false;
}
if(document.form.contact.value==""){
window.alert("请输入联系人姓名");
return false;
}
if(document.form.email.value==""){
window.alert("请输入电子邮件");
return false;
}
if(document.form.address.value==""){
window.alert("请输入具体地址");
return false;
}
if(document.form.remark.value==""){
window.alert("请输入备注信息");
return false;
}
return true;
}
function ChangeItem(){
var provinceID=form.provicne.value;
window.location.href="clientservlet?method=4&provinceID="+provinceID;
}
</script>
<style type="text/css">
<!--
.style2 {
font-size: 12px;
font-weight: bold;
color: #FF0000;
}
-->
</style>
</head>
<body>
<%ClientVO client=(ClientVO)request.getAttribute("client");%>
<table width="80%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#004C86" class="tableBorder_r">
<tr align="left" valign="top">
<td height="20%" colspan="3">
<jsp:include page="../top.jsp"/>
</td>
</tr>
<tr>
<td width="192" height="80%" scope="row" background="picture/left.jpg">
<jsp:include page="../ba.jsp"/> </td>
<td width="635" height="80%" scope="row">
<div align="center">
<p> </p>
<form name="form" method="post" action="clientservlet?method=5&id=<%=client.getId()%>" onSubmit="return insert()">
<table width="77%" border="1" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF" bordercolordark="#819BBC" bordercolorlight="#FFFFFF">
<tr bgcolor="#EFF6FE">
<td width="16%" height="28" colspan="4"><div align="center"><strong>修改企业信息</strong></div></td>
</tr>
<tr bgcolor="#EFF6FE">
<td width="16%" height="28" bgcolor="#EFF6FE"><div align="center">企业名称</div></td>
<td width="34%">
<input type="text" name="name" value="<%=client.getClient_name()%>">
</td>
<td width="16%" bgcolor="#EFF6FE"><div align="center"> 所属类别 </div></td>
<td width="34%">
<div align="left">
<select name="ptype">
<%if(client.getClient_ptype().equals("供应商")){%>
<option value="供应商">供应商</option>
<option value="客户">客户</option>
<%}else{%>
<option value="客户">客户</option>
<option value="供应商">供应商</option>
<%}%>
</select>
</div>
</td>
</tr>
<tr>
<td height="28" bgcolor="#EFF6FE"><div align="center">企业资信</div></td>
<td>
<div align="left">
<select name="type">
<%
for (int i = 0; i < creditList.size(); i++) {
CreditVO creditvo = (CreditVO) creditList.get(i);
%>
<option value="<%=creditvo.getCredit_name()%>" <%if(client.getClient_credit().equals(creditvo.getCredit_name())){out.println("selected");}%> ><%=creditvo.getCredit_name()%></option>
<%} %>
</select>
</div>
</td>
<td bgcolor="#EFF6FE"><div align="center">企业类型</div></td>
<td><div align="left">
<select name="credit">
<%
for (int i = 0; i < typeList.size(); i++) {
TypeVO typevo = (TypeVO) typeList.get(i);
%>
<option value="<%=typevo.getType_name()%>" <%if(client.getClient_type().equals(typevo.getType_name())){out.println("selected");}%>><%=typevo.getType_name()%></option>
<%} %>
</select>
</div>
</td>
</tr>
<tr>
<td height="28" bgcolor="#EFF6FE"><div align="center">企业产品</div></td>
<td> <input name="content" type="text" value="<%=client.getClient_content()%>"></td>
<td bgcolor="#EFF6FE"><div align="center">电话</div></td>
<td> <input name="tel" type="text" value="<%=client.getClient_tel()%>"></td>
</tr>
<tr>
<td height="28" bgcolor="#EFF6FE"><div align="center">所在省份</div></td>
<td> <%=client.getClient_provicne()%></td>
<td bgcolor="#EFF6FE"><div align="center">所在城市</div></td>
<td> <%=client.getClient_city()%></td>
</tr>
<tr>
<td height="28" bgcolor="#EFF6FE"><div align="center">开户银行</div></td>
<td><div align="left">
<select name="bank">
<%
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 bgcolor="#EFF6FE"><div align="center">银行账号</div></td>
<td> <input name="bankNumber" type="text" value="<%=client.getClient_bankNumber()%>"></td>
</tr>
<tr>
<td height="28" bgcolor="#EFF6FE"><div align="center">联系人</div></td>
<td> <input name="contact" type="text" value="<%=client.getClient_contact()%>"></td>
<td bgcolor="#EFF6FE"><div align="center">电子邮件</div></td>
<td> <input name="email" type="text" value="<%=client.getClient_email()%>"></td>
</tr>
<tr>
<td height="28" bgcolor="#EFF6FE"><div align="center">具体地址</div></td>
<td> <input name="address" type="text" value="<%=client.getClient_address()%>"></td>
<td bgcolor="#EFF6FE"><div align="center">信息时间</div></td>
<td> <%=client.getCreatTime()%></td>
</tr>
<tr>
<td height="28" bgcolor="#EFF6FE"><div align="center">备注信息</div></td>
<td colspan="3"> <input name="remark" type="text" size="50" value="<%=client.getClient_remark()%>"></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> </td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -