📄 join_c.jsp
字号:
<html>
<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="java.sql.*"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>添加客户</title>
</head>
<jsp:useBean id="db" scope="page" class="sale.dbBean" />
<script language="JavaScript">
function nocontent()
{
if(document.form.c_id.value=="")
{
alert("请输入客户id!");
document.form.c_id.focus();
return false;
}
if(document.form.d_id.value=="")
{
alert("请输入客户片区信息!");
document.form.d_id.focus();
return false;
}
if(document.form.name.value=="")
{
alert("请输入客户姓名!");
document.form.name.focus();
return false;
}
if(document.form.address.value=="")
{
alert("请输入客户地址!");
document.form.address.focus();
return false;
}
if(document.form.postcode.value=="")
{
alert("请输入客户邮编!");
document.form.postcode.focus();
return false;
}
if(document.form.tel.value=="")
{
alert("请输入客户电话!");
document.form.tel.focus();
return false;
}
if(document.form.tax.value=="")
{
alert("请输入客户传真!");
document.form.tax.focus();
return false;
}
}
</script>
<body>
<%
String id=new String();
id=(String)session.getAttribute("id");
if(id==null)
{
response.sendRedirect("index.htm");
}
%>
<p><font size="4">
请输入信息:</font></p>
<form name="form" method="POST" action="do_join_c.jsp" onSubmit="return nocontent();">
<center>
<table border="1" width="450" cellpadding="2">
<tr>
<td width="50%">
<p align="center">客户id: <input type="text" name="c_id" size="20"></p>
<p align="center">片区编号:<input type="text" name="d_id" size="20"></p>
<p align="center">姓名 : <input type="text" name="name" size="20"></p>
<p align="center">地址 : <input type="text" name="address" size="20"></p>
<p align="center">邮编 : <input type="text" name="postcode" size="20"></p>
<p align="center">电话 : <input type="text" name="tel" size="20"></p>
<p align="center">传真 : <input type="text" name="tax" size="20"></p>
</td>
</tr>
</table>
</center>
<p align="center"><input type="submit" value="确认"> <input type="reset" value="重填"></p>
</form>
<p align="center"><a href="customer.jsp"><font color="#000080">返回</font></a></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -