📄 main.jsp
字号:
<% String cuid= (String) session.getValue("cuid");
if((cuid==null)|(cuid=="")){
out.print("<SCRIPT language=JavaScript>alert('操作超时,请重新登录!');");
out.print("this.location.href='../default.jsp';</SCRIPT>");
}
%>
<%@ include file="../conn.jsp"%>
<% request.setCharacterEncoding("GB2312");
String uname= (String) session.getValue("cuid");
String sql="select count(id) as ccount from scott.cmailbox where reid='"+uname+"' and newmail=0";
ResultSet rs=stmt.executeQuery(sql);
rs.next();
int mailnum=rs.getInt("ccount");
String sql2="select * from scott.company where uname='"+uname+"'";
rs=stmt.executeQuery(sql2);
String click1;
if(rs.next()){
click1=rs.getString("click");
}else{
click1="0";
}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-cn">
<link rel="stylesheet" href="../inc/index.css" type="text/css">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>天天人才—>单位登录首页</title>
</head>
<SCRIPT language=JavaScript src="../inc/window.js"></SCRIPT>
<form action=search.jsp method=post>
<body topmargin="0" leftmargin="0">
<%@ include file="../inc/top3.jsp"%>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="780" height="445">
<tr>
<td width="778" height="18" valign="top" colspan="5" bgcolor="#53BEB0">
</td>
</tr>
<tr>
<td width="139" valign="top" bgcolor="#53BEB0" height="371" rowspan="2">
<p align="center">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="118" height="280">
<tr>
<td width="100%" height="163" background="../images/stat-bg.GIF" valign="top">
<p align="center"><br>
<a href="main.jsp">登录首页</a><br>
<br>
<a href="register.jsp">登录/更新公司资料</a><br>
<br>
<a href="publish.jsp">发布/更新招聘信息</a><br>
<br>
<a href="../changepwd.jsp?stype=company" target="_blank">修改登录密码</a><br>
<br>
<a href="search.jsp">全部人才列表</a>
</td>
</tr>
<tr>
<td width="100%" height="117" background="../images/stat-bg.GIF" valign="top">
<p align="center"><br>
<br>
<a href="favorite.jsp">我的收藏夹<br>
<br>
<a href="mailbox.jsp">我的信箱</a><br>
<br>
<a href="../exit.jsp">退出登录</a>
</td>
</tr>
</table>
</center>
</div>
<p align="center">
</td>
<td width="32" height="371" valign="top" rowspan="2"><img border="0" src="../images/selfk.GIF"></td>
</center>
<td width="477" height="349" valign="top">
<div align="left">
<table border="1" cellpadding="0" cellspacing="0" width="447" height="3" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
<tr>
<td width="445" height="8" valign="top">
</td>
</tr>
<tr>
<td width="445" height="109" valign="top" bgcolor="#EBEEF3" bordercolor="#000000" bordercolorlight="#C6CEDE" bordercolordark="#C6CEDE"><br>
亲爱的用户:<%=uname%>,您好!<br>
<% if(rs.getString("job")!=null){ %>
<br>
您的<a href="publish.jsp">招聘信息</a>共被查阅[<%=click1%>]次!
<%}else{%>
<br>
您尚未发布<a href="publish.jsp">招聘信息</a>,请尽快发布<a href="publish.jsp">招聘信息</a>! <%}%>
<% if(mailnum==0){ %>
<p> 你的信箱内暂无新邮件!</p>
<%}else{%>
<p> 您的信箱内共有[<%=mailnum%>]封新邮件,请进入我的信箱查阅,回复信件!</p>
<%}%>
</td>
</tr>
<tr>
<td width="445" height="3" valign="top">
</td>
</tr>
</table>
</div>
<%sql2="select * from scott.person where job is not null order by id desc";
rs=stmt.executeQuery(sql2);
%>
<div align="left">
<table border="1" cellpadding="0" cellspacing="0" width="450" height="24" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
<tr>
<td height="20" width="465" colspan="7" bgcolor="#C6CEDE" valign="bottom"> 最新十条应聘信息</td>
</tr>
<tr>
<td width="61" height="18" bgcolor="#EBEEF3" valign="bottom"> 姓名</td>
<td width="37" height="18" bgcolor="#EBEEF3" valign="bottom">
<p align="center">性别</td>
<td width="49" height="18" bgcolor="#EBEEF3" valign="bottom">
<p align="center">学历</td>
<td width="166" height="18" bgcolor="#EBEEF3" valign="bottom"> 应聘职位</td>
<td height="18" bgcolor="#EBEEF3" valign="bottom" width="73"><p align="center">发布日期</p></td>
<td height="18" bgcolor="#EBEEF3" valign="bottom" width="33">
<p align="center">发信</td>
<td height="18" bgcolor="#EBEEF3" valign="bottom" width="30">
<p align="center">收藏</td>
</tr>
<%
int i=0;
while(i<5 && rs.next()){
%>
<tr>
<td width="61" height="18" bgcolor="#EBEEF3" valign="bottom"> <a href="javascript:openwin('../person.jsp?uid=<%=rs.getString("uname")%>','top=10,left=300,width=460,height=420')"><%=rs.getString("iname")%></a></td>
<td width="37" height="18" bgcolor="#EBEEF3" valign="bottom"><p align="center">[<%=rs.getString("sex")%>]</p></td>
<td width="49" height="18" bgcolor="#EBEEF3" valign="bottom"><p align="center">[<%=rs.getString("edu")%>]</p></td>
<td width="166" height="18" bgcolor="#EBEEF3" valign="bottom"> <%=rs.getString("job")%></td>
<td width="73" height="18" bgcolor="#EBEEF3" valign="bottom"><p align="center"><%=rs.getString("idate")%></p></td>
<td width="33" height="18" bgcolor="#EBEEF3" valign="bottom">
<p align="center"><a href="javascript:openwin('sendmail.jsp?reid=<%=rs.getString("uname")%>','top=10,left=300,width=460,height=420')"><font face="Wingdings" color="#000000" size="2">*</font></a></td>
<td width="30" height="18" bgcolor="#EBEEF3" valign="bottom">
<p align="center"><font face="Wingdings"><a href="addfav.jsp?fav=<%=rs.getString("uname")%>">1</a></font></td>
</tr>
<% i++;
} %>
</table>
</div>
</td>
<center>
<td width="1" height="371" valign="top" bgcolor="#00006A" rowspan="2"></td>
<td width="128" height="371" valign="top" bgcolor="#F3F3F3" rowspan="2"> </td>
</tr>
<tr>
<td width="477" height="22" valign="top">
<p align="center"><font color="#000000"><br>
职位搜索器: </font><INPUT
maxLength=20 size=16 name=key style="background-color: #EBEBEB; color: #00006A; font-family: 宋体; font-size: 9pt" value="请输入关键字-S" onclick="Javascript:this.value='';">
<input type="submit" value="搜 索" style="font-family: 宋体; font-size: 9pt; color: #00006A">
<br>
<br>
</td>
</tr>
<tr>
<td width="778" height="1" valign="top" colspan="5" bgcolor="#53BEB0">
<p align="center"> </td>
</tr>
<tr>
<td height="3" valign="top" colspan="5" width="778">
</td>
</tr>
<tr>
<td height="14" valign="top" colspan="5" width="778">
<p align="center"><script language="javascript" src="../inc/copyright.js"></script>
</td>
</tr>
<tr>
<td height="3" valign="top" colspan="5" width="778">
</td>
</tr>
</table>
</center>
</div>
</body>
</form>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -