📄 intercourse.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GB2312"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'intercours.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="../css/sys.css">
<style type="text/css">
<!--
body {
margin-left: 5px;
margin-top: 5px;
margin-right: 5px;
margin-bottom: 5px;
background-color: #FFFFFF;
}
a:link {
color: #1A438E;
text-decoration: underline;
}
a:visited {
text-decoration: underline;
}
a:hover {
text-decoration: none;
color: #000000;
}
a:active {
text-decoration: underline;
}
.style1 { color: #1A438E;
font-size: 12px;
}
.style2 { color:#FF0000;
font-size: 12px;
}
-->
</style>
<script type="text/javascript" language="javascript">
function sub(){
var itype = document.getElementById("i_type").value;
document.getElementById("intercoursframe").src = "intercourse_frame.jsp?i_type="+itype+"";
}
function subPinyin(){
var ipinyin = document.getElementById("i_pinyin").value;
var itype = document.getElementById("i_type").value;
if(ipinyin == ""){
window.alert("请输入要查询的拼音!");
form1.i_pinyin.focus();
return false;
}else{
document.getElementById("intercoursframe").src = "intercourse_frame.jsp?i_pinyin="+ipinyin+"&i_type="+itype+"";
}
}
function subName(){
var iname = document.getElementById("i_name").value;
var itype = document.getElementById("i_type").value;
if(iname == ""){
window.alert("请输入要查询的企业名称!");
form1.i_name.focus();
return false;
}else{
document.getElementById("intercoursframe").src = "intercourse_frame.jsp?i_name="+iname+"&i_type="+itype+"";
}
}
</script>
</head>
<body><form name="form1" action="">
<table width="100%" border="0" cellpadding="0" cellspacing="2" align="center">
<tr>
<td width="31%" height="30" rowspan="2" align="left"><span class="style1">请选择单位类型:
<select name="i_type" id="i_type" onChange="sub()">
<option value="0">--请选择单位类型--</option>
<option value="1">客户</option>
<option value="2">供应商</option>
</select>
</span></td>
<td width="69%" align="left">按拼音查询(支持模糊查询):
<input name="i_pinyin" type="text" id="i_pinyin">
<input name="Submit" type="button" class="button" value="确定" onClick="return subPinyin()"></td>
</tr>
<tr>
<td align="left">按名称查询(支持模糊查询):
<input name="i_name" type="text" id="i_name">
<input name="Submit" type="button" class="button" value="确定" onClick="return subName()"></td>
</tr>
</table>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
<tr>
<td align="left" valign="top"><iframe scrolling='no' width="100%" height="100%" frameborder="0" name="intercoursframe" id="intercoursframe" src="intercourse_frame.jsp"></iframe></td>
</tr>
</table></form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -