?? 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="#5388C1">
</td>
</tr>
<tr>
<td width="139" valign="top" bgcolor="#5388C1" 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="#5388C1">
<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 + -