求助:怎样实现下载简历页面功能(ASP语言)?

huxi2009tang 2010-05-05 07:21:10
我有一个求职招聘网站,是asp+sql server做的,其中单位可以预览求职者的简历页面,但缺少一个简历下载功能,准备在简历页面下方加一个“下载简历”按钮,可以将求职者的简历下载成.doc格式保存到电脑里。但不知道代码怎么写。
~~希望知道或懂的人帮助一下~~

我的简历页面person.asp代码如下:

<!--#include file="conn/conn.asp"-->
<!-- #include file="conn/index.css"-->
<% uid=request("uid")
set rs=server.createobject("adodb.recordset")
sql1="update person set click=click+1 where pname='"&uid&"'"
rs.open sql1,conn,1,1
sql2="select * from person where pname='"&uid&"' and pzw<>'""'"
rs.open sql2,conn,1,1 %>
<% if rs.eof or rs.bof then
response.write"<SCRIPT language=JavaScript>alert('对不起,该用户不存在或已被删除!');"
response.write"javascript:history.go(-1);</SCRIPT>"
response.End
end if %>
<html>
<head>
<title><%=rs("pxm")%>详细信息</title>
</head>
<div align="center">
<center>
<table border="2" cellpadding="0" cellspacing="0" width="390" height="18" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
<tr>
<td height="19" bgcolor="#C6CEDE" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#FFFFFF" valign="bottom" colspan="2" width="384">
<p align="center">=== 个人求职简历 ===</td>
</tr>
<tr>
<td height="19" valign="bottom" width="176"> 姓名:<%=rs("pxm")%></td>
</center>

<td height="19" valign="bottom" width="206">
<p align="right">点击数:<%=rs("click")%> </p>
</td>
</tr>
<center>
<tr>
<td height="19" valign="bottom" bgcolor="#EBEEF3" colspan="2" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#FFFFFF" width="384"> 个人基本资料
------------------------------------------------></td>
</tr>
<tr>
<td height="19" valign="bottom" colspan="2" width="384"> 性别:<%=rs("psex")%> 出生年月:<%=rs("pdate")%></td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#F3F3F3" colspan="2" width="384"> 民族:<%=rs("pmz")%> 政治面貌:<%=rs("pzzmm")%></td>
</tr>
<tr>
<td height="19" valign="bottom" colspan="2" width="384"> 户籍所在地:<%=rs("pjg")%></td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#F3F3F3" colspan="2" width="384"> 最高教育程度:<%=rs("pxl")%></td>
</tr>
<tr>
<td height="19" valign="bottom" colspan="2" width="384"> 学  位:<%=rs("pxw")%></td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#F3F3F3" colspan="2" width="384"> 专  业:<%=rs("pzy")%></td>
</tr>
<tr>
<td height="19" valign="bottom" colspan="2" width="384">毕业院校:<%=rs("pbyyx")%></td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#EBEEF3" colspan="2" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#FFFFFF" width="384"> 希望工作条件—联系信息
--------------------------------------></td>
</tr>
<tr>
<td height="19" valign="bottom" colspan="2" width="384"> 求职类型:<%=rs("pqzlx")%></td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#F3F3F3" colspan="2" width="384"> 应聘岗位:<%=rs("pzw")%></td>
</tr>
<tr>
<td height="19" valign="bottom" colspan="2" width="384"> 希望工作地点:<%=rs("pgzdd")%></td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#F3F3F3" colspan="2" width="384"> 薪金要求:<%if rs("pgz")="面议" then response.write"面议" else response.write"月薪["&rs("pgz")&"]RMB" end if%></td>
</tr>
<% if rs("potheryq")<>"无其他要求" then%>
<tr>
<td height="19" valign="bottom" colspan="2" width="384"> 其他要求:</td>
</tr>
<tr>
<td height="3" valign="top" bgcolor="#00006A" colspan="2" width="384">
</td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#F3F3F3" colspan="2" width="384">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="379" align="right">
<tr>
<td width="377">    <%=rs("potheryq")%></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td height="3" valign="top" bgcolor="#00006A" colspan="2" width="384">
</td>
</tr>
<%end if%>
<tr>
<td height="19" valign="bottom" colspan="2" width="384"> 联系人:<%=rs("pxm")%></td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#F3F3F3" colspan="2" width="384"> 联系电话:<%=rs("psjhm")%></td>
</tr>
<tr>
<td height="19" valign="bottom" colspan="2" width="384"> 家庭电话号码:<%=rs("pjthm")%></td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#F3F3F3" colspan="2" width="384"> E-mail:<a href="mailto:<%=rs("pmail")%>"><%=rs("pmail")%></a></td>
</tr>
<tr>
<td height="19" valign="bottom" colspan="2" width="384"> QQ号码:<%=rs("pqq")%></td>
</tr>
<tr>
<td height="19" valign="bottom" colspan="2" bgcolor="#F3F3F3" width="384"> 个人主页:<a href="<%=rs("pnet")%>"><%=rs("pnet")%></a></td>
</tr>
<tr>
<td height="19" valign="bottom" colspan="2" width="384"> 联系地址:<%=rs("plxaddress")%></td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#EBEEF3" colspan="2" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#FFFFFF" width="384"> 个人主要特长-相关工作经历
-----------------------------------></td>
</tr>
<tr>
<td height="19" valign="bottom" colspan="2" width="384"> 外语特长:<%=rs("pyysp")%> 等级:<%=rs("pyylevel")%></td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#F3F3F3" colspan="2" width="384"> 普通话程度:<%=rs("ppth")%> 计算机能力:<%=rs("pclevel")%></td>
</tr>
<% if rs("ptc")<>"无其他特长" then%>
<tr>
<td height="19" valign="bottom" bgcolor="#FFFFFF" colspan="2" width="384"> 平时业余:</td>
</tr>
<tr>
<td height="3" valign="top" bgcolor="#00006A" colspan="2" width="384">
</td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#F3F3F3" colspan="2" width="384">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="379" align="right">
<tr>
<td width="377">个人特长:<%=rs("ptc")%></td>
</tr>

</table>
</div>
</td>
</tr>
<tr>
<td height="3" valign="top" bgcolor="#00006A" colspan="2" width="384">
</td>
</tr>
</center>
<%end if%>
<tr>
<td height="19" valign="bottom" width="176"> 详细工作经历:</td>
<td height="19" valign="bottom" width="206">
<p align="right">相关工作经验:<%=rs("pgzy")%>年  </p>
</td>
</tr>
<tr>
<td height="3" valign="top" bgcolor="#00006A" colspan="2" width="384">
</td>
</tr>
<tr>
<td height="19" valign="bottom" bgcolor="#F3F3F3" colspan="2" width="384">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="379" align="right">
<tr>
<td width="377">    <%=rs("pgzjl")%></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td height="3" valign="top" bgcolor="#00006A" colspan="2" width="384">
</td>
</tr>
<% if session("cuid")<>"" then%>
<tr>
<td height="24" valign="bottom" colspan="2" width="384">
<p align="center">[<a href="company/addfav.asp?fav=<%=rs("pname")%>">添加到收藏夹</a>]
[<a href="company/sendmail.asp?rid=<%=rs("pname")%>">发送站内信件</a>]</td>
</tr>
<%end if%>
</table>
</div>
<br>
<CENTER>【<a href="javascript:history.go(-1)">返回</a>】</CENTER>
</html>

...全文
114 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
asprain论坛是一个适合于各中小学、中专、技校、职高建设校园论坛、师生交流论坛,一些教科研部门、公司企业建设内部论坛、IT技术爱好者建设技术交流论坛的免费论坛程序。它有两个版本,分别是asp+Access版和asp+sqlServer版,功能完全一致,建站者可以根据自己的需要选用不同的版本。 Asprain论坛体积小巧,但是功能完整。它前端脚本基于jquery框架,跨浏览器性能出色。对IE6、IE7、IE8、firefox、Chrome、Saferi、Opera七种主流浏览器有良好的兼容性。可以轻松松换肤,制作个性皮肤也很方便,只要修改几个css就可以了。 asprain论坛使用了大量的ajax效果,不仅能够很有效地节省数据流量、应付网络拥堵,而且极酷的脚本动画和遮罩框效果也能使用户获得更好的应用体验。在asprain里,用户切换隐身/在线状态、更换自己的头像、版主删除水帖、加亮优秀帖等很多操作,都只要一键完成,不需要页面刷新或者跳转。asprain论坛还支持版主批量删帖、转移帖子、将帖子设为精华等等操作,并支持用户对帖子的评分、举报帖子等功能asprain论坛使用了一个非常独创的可视化UBB在线编辑器,实现了真正的所见即所得的UBB编辑,安全与便捷兼顾。在asprain论坛的在线编辑器中,可以做到一键插入本地图片、一键完成远程图片上传、轻松插入优酷网等视频网站上的的视频地址、插入回复可读、付费可读等标记,还可以插入程序代码。asprain论坛使用了改进版的chili插件,UBB标签[code]****[/code]能够很好地对javascript、php、asp、sql、css、html、C++、C#、Delphi、java、locus这十种开发语言进行语法高亮(这个功能对IT技术爱好者建设技术交流论坛非常有用)。 asprain论坛自带无图版、rss订阅等功能,即将推出wap版(手机版)。asprain支持滚动公告条、帖子引用通告、邮件群发、自定义论坛访问统计代码等功能,支持下载统计、支持文件反盗链、支持支付宝、财付通绑定。用户可以通过支付宝、财付通两种在线支付通道进行站内积分充值。站内积分可以用于悬赏求助、购买付费可读帖的阅读权、下载权等。这既方便了用户,也给站长增加了收入来源。 asprain自带五套漂亮的皮肤,表情和头像都非常可爱搞笑,而且可以轻松更换。网站头也可以根据需要轻松修改。asprain论坛支持多种论坛广告形式,包括页头广告、页脚广告、帖子中的文字广告、帖子右边的图片广告、全屏浮动广告、左右对联广告、页面右下角的弹出广告等。所有的广告位都支持循环轮播。也就是说,你可以在同一个广告位中插入十几条广告内容,然后前台会自动从这十几条预设广告中轮流播送。循环轮播广告比固定广告更容易抢得眼球,不易带来视觉疲劳。 如果你想学习研究asp编程技术或者jquery开发技术,也不妨来下载这个程序。 asprain论坛的后台界面也很漂亮,模仿了yeah邮件的标签功能,而且还可以搜索后台功能。 这个程序初始管理员用户名是Admin,前台密码和后台密码都是987654321。安装方法是:把下载包里的两个文件install.aspasprain.asa解压出来,放到服务器空间根目录上,然后访问http://yourdomain/install.asp,然后填写几个表单,程序会自动把文件解压出来的。这样可以使论坛安装更方便,因为不需要再把几百个小文件通过ftp上传了,保需要把两个大文件传上去就

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧