|
<tr>
<td width="544" colspan="3" height="40" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0; border-top: 1px solid #C0C0C0">
<map name="FPMap2">
<area href="grqz.asp" shape="rect" coords="423, 7, 508, 27">
</map>
<img border="0" src="images/job1.gif" width="544" height="40" usemap="#FPMap2"></td>
</tr>
<tr>
<td width="544" colspan="3" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0; border-top-width: 1px; border-bottom: 1px solid #C0C0C0" valign="top">
<%
sql="select top "&index3&" a.enid,a.addtime,Name,vip,zyes,pthuas,sexs ,shisus from job a ,en_user where a.enid = en_user.id and en_user.lock=false and en_user.name<>'' order by vip asc, addtime desc"
rs.open sql,conn,1,1
if rs.recordcount=0 then
rs.close
response.write "暂时没有职业信息!"
else
%> <table border="0" width="744" cellspacing="0" cellpadding="0" id="table12" height="49">
<tr>
<td height="25" bgcolor="#FEEBD5" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="88" align="center">
<p></td>
<td height="25" bgcolor="#FEEBD5" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="105" align="center">
<p><b>招聘职位</b></td>
<td height="25" bgcolor="#FEEBD5" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="75" align="center">证书</td>
<td bgcolor="#FEEBD5" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="87" align="center">船舶类型</td>
<td bgcolor="#FEEBD5" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="83" align="center">总吨</td>
<td bgcolor="#FEEBD5" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="100" align="center">航线</td>
<td bgcolor="#FEEBD5" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="132" align="center"><b>公 司</b></td>
<td bgcolor="#FEEBD5" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="74" align="center"><b>日 期</b></td>
</tr>
<%
set rs2=server.createobject("adodb.recordset")
lenn=22
for ii=1 to index3
sql2="select id,jtzw,zyes,pthuas, sexs, shisus from job where enid="&rs("enid")&" order by addtime desc"
rs2.open sql2,conn,1,1
test=""
zpzw=""
for ii2=1 to rs2.recordcount
test=test&rs2("jtzw")&"/"
jtzw=rs2("jtzw")
if len(test)>=lenn then jtzw=".."
zpzw=zpzw&"<a target='_blank' href='job.asp?id="&rs2("id")&"'>"&jtzw&"</a>、"
rs2.movenext
if rs2.eof or len(test)>=lenn then exit for
next
zpzw=left(zpzw,len(zpzw)-1)
cname=rs("name")
if len(cname)>16 then cname=left(cname,14)&"..."
%>
<tr>
<td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="88" height="25" align="center" background="images/bg1.gif"><p align="left">
<%if rs("vip")=true then response.write "<font color='#FF0000'>(VIP)</font>"
%>
</td>
<td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="105" height="25" align="center" background="images/bg1.gif">
<p align="center"> </a><%=zpzw%></td>
<td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="75" height="25" align="center" background="images/bg1.gif">
<p align="center"><%=rs("zyes")%>
</td>
<td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="87" align="center" background="images/bg1.gif"><p align="center"><%=rs("pthuas")%></td>
<td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="83" align="center" background="images/bg1.gif"><p ><%=rs("sexs")%></td>
<td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="100" align="center" background="images/bg1.gif"><%=rs("shisus")%></td>
<td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="132" align="center" background="images/bg1.gif"><a target =_blank href="company.asp?id=<%=rs("enid")%>"><%=cname%></a></td>
<td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="74" align="center" background="images/bg1.gif"><%
a=instr(rs("addtime"),chr(32))-1
response.write Mid(rs("addtime"),1,a)
%></td>
</tr>
<%
rs.movenext
if rs.eof then exit for
rs2.close
next
rs.close
set rs2=nothing
%>
</table>
<%
end if
%>
</td>
</tr>
这段代码在显示招聘职位时把这个公司的所有招聘职位在同一行同时显示出来,怎么才能改成一行显示一个招聘职位? |
|