⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.asp

📁 数据库应用技术的实验代码及相关文档,供有需要的人使用
💻 ASP
字号:
<% Response.Buffer=True %>
<!--#include file="../inc/company.inc"-->
<!--#include file="../lib/inctop.asp"-->
<% uname=session("cuid")
set rs=server.createobject("adodb.recordset")
sql="select * from cmailbox where reid='"&uname&"'and newmail=0"
rs.open sql,conn,1,1
mailnum=rs.recordcount
rs.close                                                                    
set rs=nothing
set rs=server.createobject("adodb.recordset")
sql2="select * from company where uname='"&uname&"'"
rs.open sql2,conn,1,1
click=rs("click") %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<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>学生社会实践信息管理系统—&gt;单位登录首页</title>
<script language="JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
</script>
</head>
<SCRIPT language=JavaScript src="../inc/window.js"></SCRIPT>
<body bgcolor="#666666">
<form action=search.asp method=post>

  <div align="center">
    <table border="0" cellpadding="0" cellspacing="0" width="760" height="488" bgcolor="#FFFFFF">
      <tr>
      <td width="778" height="18" valign="top" colspan="5" bgcolor="#396BA5">
         
      </td>
    </tr>
    <tr>
      <td width="139" valign="top" bgcolor="#396BA5" 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.asp">登录首页</a><br>
        <br>
		<a href="register.asp">登录/更新公司资料</a><br>
        <br>
		<a href="publish.asp">发布/更新招聘信息</a><br>
        <br>
        <a href="../changepwd.asp?stype=company" target="_blank">修改登录密码</a><br>
        <br>
        <a href="search.asp">全部人才列表</a>
              </td>
            </tr>
            <tr>
              <td width="100%" height="117" background="../images/stat-bg.GIF" valign="top">
        <p align="center"><br>
        <br>
        <a href="favorite.asp">我的收藏夹<br>
        <br>
        <a href="mailbox.asp">我的信箱</a><br>
        <br>
        <a href="../exit.asp">退出登录</a>
              </td>
            </tr>
          </table>
          </center>
        </div>
      </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>
              &nbsp;亲爱的用户:<%=uname%>,您好!<br>
              
			  <% if rs("job")<>"" then %> 
			  <br>
              &nbsp;您的<a href="publish.asp">招聘信息</a>共被查阅[<%=click%>]次!               
			  <%else%>
			  <br>
              &nbsp;您尚未发布<a href="publish.asp">招聘信息,<p><span style="background-color: #FFFF00">请尽快发布招聘信息,否则别人将无法查阅您的<a href="publish.asp">招聘信息</a>。</span></p>
<p><span style="background-color: #FFFF00">只有您登陆个人简历后才能发送站内消息。 
</span></p>               
			  <%end if%>
              <% if mailnum="0" then %>                
			  <p>&nbsp;你的信箱内暂无新邮件!</p>
			  <%else%>
              <p>&nbsp;您的信箱内共有[<%=mailnum%>]封新邮件,请进入我的信箱查阅,回复信件!</p>
			  <%end if%>
          
          </td>
          </tr>
          <tr>
            <td width="445" height="3" valign="top">
 
            </td>
          </tr>
        </table>
      </div>
      <% set rs=server.createobject("adodb.recordset")
      sql3="select * from person where job<>'""' order by id desc"           
      rs.open sql3,conn,1,1%>
      <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">&nbsp;最新十条应聘信息</td>
          </tr>
          <tr>
          <td width="61" height="18" bgcolor="#EBEEF3" valign="bottom">&nbsp;姓名</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">&nbsp;应聘职位</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>
          <% do while not rs.eof %>
		  <tr>
          <td width="61" height="18" bgcolor="#EBEEF3" valign="bottom">&nbsp;<a href="javascript:openwin('../person.asp?uid=<%=rs("uname")%>','top=10,left=300,width=460,height=420')"><%=rs("iname")%></a></td>
          <td width="37" height="18" bgcolor="#EBEEF3" valign="bottom"><p align="center">[<%=rs("sex")%>]</p></td>
          <td width="49" height="18" bgcolor="#EBEEF3" valign="bottom"><p align="center">[<%=rs("edu")%>]</p></td>
          <td width="166" height="18" bgcolor="#EBEEF3" valign="bottom">&nbsp;<%=rs("job")%></td>
          <td width="73" height="18" bgcolor="#EBEEF3" valign="bottom"><p align="center"><%=rs("idate")%></p></td>
          <td width="33" height="18" bgcolor="#EBEEF3" valign="bottom">
            <p align="center"><a href="javascript:openwin('sendmail.asp?reid=<%=rs("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.asp?fav=<%=rs("uname")%>">1</a></font></td>
          </tr>
      <% c=c+1                                                                     
     rs.movenext                                                                     
     if c>=10 then exit do                                                                     
     loop                                                                    
     rs.close                                                                    
     set rs=nothing %>  
        </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='';">&nbsp;          
      <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="#396BA5">
      <p align="center">
      </td>
    </tr>
    <tr>
      <td height="3" valign="top" colspan="5" width="778">
      </td>
    </tr>
    <tr>
        <td height="2" valign="top" colspan="5" width="778"> 
          <p align="center">
        </td>
    </tr>
    <tr>
        <td height="2" valign="top" colspan="5" width="778"> </td>
    </tr>
  </table>
  </center>

</div>
</body>
</form>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -