- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
TalentsList.asp
上传用户:mtjhgs
上传日期:2021-12-08
资源大小:3755k
文件大小:9k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
HTML/CSS
- <HTML xmlns="http://www.w3.org/1999/xhtml">
- <HEAD>
- <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312" />
- <TITLE>人才信息列表</TITLE>
- <link rel="stylesheet" href="Images/Admin.css">
- <script language="javascript" src="../Script/Admin.js"></script>
- </HEAD>
- <!--#include file="../Include/Const.asp" -->
- <!--#include file="../Include/ConnSiteData.asp" -->
- <!--#include file="CheckAdmin.asp"-->
- <BODY>
- <%
- if Instr(session("AdminPurview"),"|26,")=0 then
- response.write ("<br><br><div align=""center""><font style=""color:red; font-size:9pt; "")>您没有管理该模块的权限!</font></div>")
- response.end
- end if
- %>
- <br>
- <table class="tableborder" width="95%" border="0" align="center" cellpadding="3" cellspacing="1">
- <tr>
- <th>招聘信息:添加,修改招聘信相关的内容</th>
- </tr>
- <tr>
- <td height="24" align="center" nowrap="nowrap" class="forumrow"><a href="JobsEdit.asp?Result=Add" onclick='changeAdminFlag("添加招聘信息")'>添加招聘信息</a><font color="#0000FF"> | </font><a href="JobsList.asp" onclick='changeAdminFlag("招聘信息列表")'>查看招聘信息 </a> | <a href="TalentsList.asp" onclick='changeAdminFlag("人才信息列表")'>查看人才信息</a></td>
- </tr>
- </table>
- <%
- dim Result,Keyword
- Result=request.QueryString("Result")
- Keyword=request.QueryString("Keyword")
- function PlaceFlag()
- if Result="Search" then
- If Keyword<>"" Then
- Response.Write "人才:列表 -> 检索 -> 关键字:<font color='red'>"&Keyword&"</font>"
- Else
- Response.Write "人才:列表 -> 检索 -> 关键字为空(显示全部人才)"
- End If
- else
- if SortPath<>"" then
- Response.Write "人才:列表 -> <a href='TalentsList.asp'>全部</a>"
- TextPath(SortID)
- else
- Response.Write "人才:列表 -> 全部"
- end if
- end if
- end function
- %>
- <br>
- <table class="tableborder" width="95%" border="0" align="center" cellpadding="3" cellspacing="1">
- <form name="formSearch" method="post" action="Search.asp?Result=Talents">
- <tr>
- <th height="22">【人才检索、查看】</th>
- </tr>
- <tr>
- <td class="forumRow">关键字:<input name="Keyword" type="text" value="<%=Keyword%>" size="20"> <input name="submitSearch" type="submit" value="搜索人才"></td>
- </tr>
- <tr>
- <td class="forumRow"><%PlaceFlag()%></td>
- </tr>
- </form>
- </table>
- <br>
- <table class="tableborder" width="95%" border="0" align="center" cellpadding="3" cellspacing="1">
- <form action="DelContent.asp?Result=Talents" method="post" name="formDel">
- <tr>
- <td class="title" width="20">ID</td>
- <td class="title" width="80">姓名</td>
- <td class="title" width="200">职位名称</td>
- <td class="title" >电子信箱</td>
- <td class="title" width="120">提交时间</td>
- <td class="title" width="120">回复时间</td>
- <td class="title" width="80">操作</td>
- <td width="80" align="center" class="title"><input onClick="CheckAll(this.form)" name="buttonAllSelect" type="button" id="submitAllSearch" value="全选"> <input onClick="CheckOthers(this.form)" name="buttonOtherSelect" type="button" id="submitOtherSelect" value="反选"> </td> </tr>
- <% TalentsList() %>
- </form>
- </table>
- </BODY>
- </HTML>
- <%
- function TalentsList()
- dim idCount
- dim pages
- pages=20
- dim pagec
- dim page
- page=clng(request("Page"))
- dim pagenc
- pagenc=2
- dim pagenmax
- dim pagenmin
- dim datafrom
- datafrom="Wygkcnflash_Talents"
- dim datawhere
- if Result="Search" then
- datawhere="where TalentsName like '%" & Keyword &_
- "%' "
- else
- if SortPath<>"" then
- datawhere="where Instr(SortPath,'"&SortPath&"')>0 "
- else
- datawhere=""
- end if
- end if
- dim sqlid
- dim Myself,PATH_INFO,QUERY_STRING
- PATH_INFO = request.servervariables("PATH_INFO")
- QUERY_STRING = request.ServerVariables("QUERY_STRING")'
- if QUERY_STRING = "" or Instr(PATH_INFO & "?" & QUERY_STRING,"Page=")=0 then
- Myself = PATH_INFO & "?"
- else
- Myself = Left(PATH_INFO & "?" & QUERY_STRING,Instr(PATH_INFO & "?" & QUERY_STRING,"Page=")-1)
- end if
- dim taxis
- taxis="order by id desc"
- dim i
- dim rs,sql
- sql="select count(ID) as idCount from ["& datafrom &"]" & datawhere
- set rs=server.createobject("adodb.recordset")
- rs.open sql,conn,0,1
- idCount=rs("idCount")
- if(idcount>0) then
- if(idcount mod pages=0)then
- pagec=int(idcount/pages)
- else
- pagec=int(idcount/pages)+1
- end if
- sql="select id from ["& datafrom &"] " & datawhere & taxis
- set rs=server.createobject("adodb.recordset")
- rs.open sql,conn,1,1
- rs.pagesize = pages
- if page < 1 then page = 1
- if page > pagec then page = pagec
- if pagec > 0 then rs.absolutepage = page
- for i=1 to rs.pagesize
- if rs.eof then exit for
- if(i=1)then
- sqlid=rs("id")
- else
- sqlid=sqlid &","&rs("id")
- end if
- rs.movenext
- next
- end if
- if(idcount>0 and sqlid<>"") then
- sql="select * from ["& datafrom &"] where id in("& sqlid &") "&taxis
- set rs=server.createobject("adodb.recordset")
- rs.open sql,conn,0,1
- while(not rs.eof)
- Response.Write "<tr>" & vbCrLf
- Response.Write "<td nowrap class=""forumRow"">"&rs("ID")&"</td>" & vbCrLf
- Response.Write "<td nowrap class=""forumRow"">"&Guest(rs("MemID"),rs("Linkman"))&"</td>" & vbCrLf
- if StrLen(rs("TalentsName"))>33 then
- Response.Write "<td title="&rs("TalentsName")&" nowrap class=""forumRow"">"&StrLeft(rs("TalentsName"),30)&"</td>" & vbCrLf
- else
- Response.Write "<td title="&rs("TalentsName")&" nowrap class=""forumRow"">"&rs("TalentsName")&"</td>" & vbCrLf
- end if
- if StrLen(rs("Email"))>21 then
- Response.Write "<td title="&rs("Email")&" nowrap class=""forumRow"">"&StrLeft(rs("Email"),18)&"</td>" & vbCrLf
- else
- Response.Write "<td title="&rs("Email")&" nowrap class=""forumRow"">"&rs("Email")&"</td>" & vbCrLf
- end If
- If rs("ReplyTime") <> "" Then
- ReplyTime = rs("ReplyTime")
- Else
- ReplyTime = "<font color=""#CC0000"">暂无回复</font>"
- End If
- Response.Write "<td nowrap class=""forumRow"">"&rs("AddTime")&"</td>" & vbCrLf
- Response.Write "<td nowrap class=""forumRow"">"&ReplyTime&"</td>" & vbCrLf
- Response.Write "<td align=""center""nowrap class=""forumRow""><a href='TalentsEdit.asp?Result=Modify&ID="&rs("ID")&"'>查看、回复</a></td>" & vbCrLf
- Response.Write "<td nowrap align='center' class=""forumRow""><input name='selectID' type='checkbox' value='"&rs("ID")&"'></td>" & vbCrLf
- Response.Write "</tr>" & vbCrLf
- rs.movenext
- wend
- Response.Write "<tr>" & vbCrLf
- Response.Write "<td colspan='8' nowrap align=""right"" class=""forumRow""><input name='submitDelSelect' type='button' id='submitDelSelect' value='删除所选' onClick='ConfirmDel(""是否确定删除?删除后不能恢复!"");'></td>" & vbCrLf
- Response.Write "</tr>" & vbCrLf
- else
- response.write "<tr><td nowrap align='center' colspan='8' class=""forumRow"">暂无人才信息</td></tr>"
- end if
- Response.Write "<tr>" & vbCrLf
- Response.Write "<td colspan='8' nowrap class=""forumRow"">" & vbCrLf
- Response.Write "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'>" & vbCrLf
- Response.Write "<tr>" & vbCrLf
- Response.Write "<td class=""forumRow"">共计:<font color='red'>"&idcount&"</font>条记录 页次:<font color='red'>"&page&"</font></strong>/"&pagec&" 每页:<font color='red'>"&pages&"</font>条</td>" & vbCrLf
- Response.Write "<td align='right'>" & vbCrLf
- pagenmin=page-pagenc
- pagenmax=page+pagenc
- if(pagenmin<1) then pagenmin=1
- if(page>1) then response.write ("<a href='"& myself &"Page=1'><font style='font-size: 14px; font-family: Webdings'>9</font></a> ")
- if(pagenmin>1) then response.write ("<a href='"& myself &"Page="& page-(pagenc*2+1) &"'><font style='font-size: 14px; font-family: Webdings'>7</font></a> ")
- if(pagenmax>pagec) then pagenmax=pagec
- for i = pagenmin to pagenmax
- if(i=page) then
- response.write (" <font color='red'>"& i &"</font> ")
- else
- response.write ("[<a href="& myself &"Page="& i &">"& i &"</a>]")
- end if
- next
- if(pagenmax<pagec) then response.write (" <a href='"& myself &"Page="& page+(pagenc*2+1) &"'><font style='font-size: 14px; font-family: Webdings'>8</font></a> ")
- if(page<pagec) then response.write ("<a href='"& myself &"Page="& pagec &"'><font style='font-size: 14px; font-family: Webdings'>:</font></a> ")
- Response.Write "第<input name='SkipPage' onKeyDown='if(event.keyCode==13)event.returnValue=false' onchange=""if(/D/.test(this.value)){alert('请输入需要跳转到的页数并且必须为整数!');this.value='"&Page&"';}"" style='width: 28px;' type='text' value='"&Page&"'>页" & vbCrLf
- Response.Write "<input name='submitSkip' type='button' onClick='GoPage("""&Myself&""")' value='转到'>" & vbCrLf
- Response.Write "</td>" & vbCrLf
- Response.Write "</tr>" & vbCrLf
- Response.Write "</table>" & vbCrLf
- rs.close
- set rs=nothing
- Response.Write "</td>" & vbCrLf
- Response.Write "</tr>" & vbCrLf
- end Function
- function Guest(ID,Linkman)
- Dim rs,sql
- Set rs=server.CreateObject("adodb.recordset")
- sql="Select * From Wygkcnflash_Members where ID="&ID
- rs.open sql,conn,1,1
- if rs.bof and rs.eof then
- Guest=Linkman
- else
- Guest="<font color='green'>会员:</font><a href='MemEdit.asp?Result=Modify&ID="&ID&"'>"&Linkman&"</a>"
- end if
- rs.close
- set rs=nothing
- end function
- %>