📄 employdisplay.jsp
字号:
<%@ page language="java" import="java.io.*,java.util.*" %>
<%@ page import="java.sql.*" %>
<%@ page contentType="text/html;charset=gb2312" %>
<%@ include file="conn.jsp" %>
<html>
<head>
<title>大连中连房地产开发有限公司</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
margin-top: 0px;
}
-->
</style></head>
<%
String id = request.getParameter("id");
String title = null;
String content = null;
String pic = null;
String sql = null;
String employ="";
try{
sql = "select title, content, pic from employ where ID='"+id+"'";
rs=stmt.executeQuery(sql);
while (rs.next())
{
title = rs.getString(1);
content = rs.getString(2);
pic = rs.getString(3);
byte[] titlebyte=title.getBytes("ISO8859_1");
title=new String(titlebyte);
byte[] contentbyte=content.getBytes("ISO8859_1");
content=new String(contentbyte);
}
//读取内容中的空格和回车
int loc1 = content.indexOf(" ");
while (loc1 != -1) {
String s = content.substring(0,loc1);
employ=employ + s +" ";
// out.print("<font size=\"3\" color=\"#000099\">");
// out.print(s + " </font>");
content = content.substring(loc1+1);
loc1 = content.indexOf(" ");
}
content = employ + content ;
employ="";
int loc = content.indexOf("\r\n");
while (loc != -1) {
String s = content.substring(0,loc);
employ = employ + s + "<br>";
content = content.substring(loc+2);
loc = content.indexOf("\r\n");
}
content = employ + content ;
rs.close();
stmt.close();
conn.close();
}catch(java.sql.SQLException e)
{
out.print(e.toString());
rs.close();
stmt.close();
conn.close();
}
%>
<body>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"><img src="../images/001.gif" width="750" height="67" usemap="#Map2" border="0"></td>
</tr>
<tr>
<td colspan="2"><img src="../images/002.gif" width="750" height="30" border="0" usemap="#Map"></td>
</tr>
<tr>
<td width="202" valign="top" background="../images/bg001.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><img src="../images/003.gif" width="202" height="13"></td>
</tr>
<tr>
<td align="center"> </td>
</tr>
<tr>
<td align="center"><a href="../jingyuan/index.html" target="_blank"><img src="../images/008.gif" width="202" height="50" border="0"></a></td>
</tr>
<tr>
<td align="center"><a href="../juxin/index.htm" target="_blank"><img src="../images/009.gif" width="202" height="51" border="0"></a></td>
</tr>
<tr>
<td align="center"><a href="../jinling/index.htm" target="_blank"><img src="../images/010.gif" width="202" height="54" border="0"></a></td>
</tr>
<tr>
<td align="center"> </td>
</tr>
</table></td>
<td width="524" valign="top" background="../images/bg003.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0" cols="3">
<tr>
<td width="540"><table width="100%" border="0">
<%
if (!(pic.equals("nopic")))
{
%>
<tr>
<td> </td>
<td align="center"><img src="<%=pic%>" ></td>
<td> </td>
</tr>
<%
}
%>
<tr>
<td> </td>
<td align="center"><span class="black"><br><br><%=title%><br><br></span></td>
<td> </td>
</tr>
<tr>
<td width="6%"> </td>
<td align="left"><span class="black"><%=content%></span><br></td>
<td width="6%"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><img src="../images/029.gif" width="750" height="14"></td>
</tr>
<tr>
<td colspan="2"><img src="../images/030.gif" width="750" height="56"></td>
</tr>
</table>
<map name="Map">
<area shape="rect" coords="128,9,159,30" href="../home.jsp">
<area shape="rect" coords="170,7,224,28" href="../home/zhonglian.htm">
<area shape="rect" coords="242,8,295,27" href="../news/newslist.jsp">
<area shape="rect" coords="312,7,370,28" href="../building/buildinglist.jsp">
<area shape="rect" coords="388,8,442,30" href="../home/invest.htm">
<area shape="rect" coords="462,8,516,30" href="../home/item.htm">
<area shape="rect" coords="536,9,588,27" href="employlist.jsp">
<area shape="rect" coords="606,7,660,29" href="../home/contact.htm">
</map>
<map name="Map2">
<area shape="rect" coords="618,44,710,64" href="../admin/login.jsp">
</map>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -