📄 com_workmanage.asp
字号:
<!--#include file="../Include/Class_Conn.asp" -->
<!--#include file="../Include/Class_Main.asp" -->
<!--#include file="../Public/Company_Cookies.asp" -->
<%
Dim Comid,Username,Tmp
Dim Cmd,Rs,Action
Dim Ncid,DeptName,Burden,Email
'//获取会员登陆的标记
Username = Session("Company")(0)
Comid = Session("Company")(2)
'//调用存储过程
Set Cmd = Server.CreateObject("ADODB.Command")
Cmd.ActiveConnection = Conn
Cmd.CommandText = "Com_Dept"
Cmd.CommandType = 4
Cmd.Parameters.Append Cmd.CreateParameter("@Comid",200,1,30)
Cmd.Parameters("@Comid") = Comid
Set Rs = Cmd.Execute
If Rs.Eof Then
Rs.Close
Set Cmd = Nothing
CloseDB
Response.write "没有找到会员资料!"
Response.End()
End if
Tmp = Rs.GetRows() '//将数据填充到数组
'//0企业名称
'//如 Tmp(0,0) 表示企业名称
'//关闭记录集对象
Rs.Close
Set Cmd = Nothing
'//查找
SQL = "Select id,Userid,Title,AddDate,ViewClicks,HfClicks,i_Flag,Zt From [Ph_WorkInfo] Where UserType='Com' And Userid='"&Comid&"' Order By AddDate Desc"
Rs.open SQL,Conn,1,1
Rs.Pagesize = 15
Psize = Rs.PageSize
PCount = Rs.PageCount
RCount = Rs.RecordCount
PageNo = Cint(Request.QueryString("PageNo"))
If PageNo < 1 Then
PageNo = 1
Elseif PageNo > PCount Then
PageNo = PCount
End if
TheRecord = (PageNo-1)*Psize '//计算记录编号的基数
If Not Rs.Eof Then Rs.AbsolutePage = PageNo
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script language="JavaScript">
function SelectAllItem(item)
{
if( typeof(item.length) == "undefined" )
{
item.checked = !item.checked
}
else
{
for(i=0;i<item.length;i++)
{
item[i].checked=!item[i].checked
}
}
}
function theForm_Submit(id)
{
if (id=="delinfo")
{
if(confirm('确认彻底删除选定的记录'))
{
form.target='rslt';
form.action="Com_Option.asp?param=delinfo";
openwin();
form.submit();
}
}
if (id=="actions")
{
form.target='rslt';
form.action="Com_Option.asp?param=actions";
openwin();
form.submit();
}
if (id=="noactions")
{
form.target='rslt';
form.action="Com_Option.asp?param=noactions";
openwin();
form.submit();
}
if (id=="refresh")
{
form.target='rslt';
form.action="Com_Option.asp?param=refresh";
openwin();
form.submit();
}
}
function openwin()
{
disp=window.open("","rslt","width=500,height=320,resizable=yes");
disp.focus();
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../Css/Style.css" type=text/css rel=stylesheet>
<title><%= Cls_WebName %> -- 企业会员管理中心 -- 英才库</title>
</head>
<body>
<table width="768" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td>
<!--#include file="../Include/Header.asp" -->
</td>
</tr>
</table>
<table width="768" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td><table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="1" bgcolor="#eeeeee"></td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="175">
<!--#include file="../Public/Company_Left.asp" -->
</td>
<td width="5"> </td>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25"><img src="../Images/icon.gif" width="11" height="11" align="absmiddle">
<%= Tmp(0,0) %> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<Form action="" method="post" name="form">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="eeeeee">
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="eeeeee">
<tr>
<td bgcolor="#FFFFFF"><table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="2"></td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="eeeeee">
<tr>
<td height="25" bgcolor="f5f5f5"><b><font color="#000000"> 劳务信息</font></b></td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><%= Cls_Page("Com_WorkManage.asp",PageNo,PCount,RCount) %></td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="eeeeee">
<tr align="center" bgcolor="f5f5f5">
<td width="6%" height="25">选择</td>
<td width="30%" height="25" bgcolor="f5f5f5">标
题</td>
<td width="10%" height="25" bgcolor="f5f5f5">审
核</td>
<td width="13%" bgcolor="f5f5f5">状 态</td>
<td width="15%" height="25">浏览/回复</td>
<td width="15%">发布日期</td>
<td height="25">操 作</td>
</tr>
<%
For i = 1 to Psize
If Rs.Eof Then Exit For
Ncid = Rs("id")
Title = Rs("Title")
AddDate = FormatDateTime(Rs("AddDate"),2)
ViewClicks = Rs("ViewClicks")
HfClicks = Rs("HfClicks")
Flag = Rs("i_Flag")
FlagStr = "<img src=../Images/Flag"&Flag&".Gif>"
Zt = Rs("zt")
If Zt = True Then
ZtStr = "显示中"
Else
ZtStr = "<Font Color=#FF0000>屏蔽中</Font>"
End if
%>
<tr align="center">
<td height="25" bgcolor="#FFFFFF"><INPUT type=checkbox value=<%= Ncid %> name=perid></td>
<td height="25" align="left" bgcolor="#FFFFFF"><a href="../Company/Info/View_Work.asp?Param=<%= Rs("Id") %>&Comid=<%= Rs("Userid") %>" target="_blank"><%= Title %></a></td>
<td height="25" align="center" bgcolor="#FFFFFF"><%= Flagstr %></td>
<td height="25" align="center" bgcolor="#FFFFFF"><%= ZtStr %></td>
<td height="25" align="center" bgcolor="#FFFFFF"><%= ViewClicks %>/<%= HfClicks %> </td>
<td height="25" align="center" bgcolor="#FFFFFF"><%= AddDate %></td>
<td height="25" bgcolor="#FFFFFF">
<a href="Com_WorkEdit.asp?id=<%= Ncid %>">编辑</a>
</td>
</tr>
<%
Rs.Movenext
Next
Rs.Close
%>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="right"> <INPUT onclick=SelectAllItem(this.form.perid) type=checkbox value=all name=chk_all>
选中所有记录 </td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="2"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="30" align="right">
<input type="button" name="delete" value="删除信息" onClick="javascript:theForm_Submit('delinfo')">
<input type="button" name="actions" value="激活信息" onClick="javascript:theForm_Submit('actions')">
<input type="button" name="noactions" value="屏蔽信息" onClick="javascript:theForm_Submit('noactions')">
<input name="refresh" type="button" id="refresh2" value="刷新信息" onClick="javascript:theForm_Submit('refresh')">
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</Form>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><hr size="1" color="#CCCCCC"></td>
</tr>
<tr>
<td><font color="#666666">操作说明: </font></td>
</tr>
<tr>
<td><font color="#666666">编辑 - 即对当前的信息条件作修改 ;<br>
刷新信息 - 更新信息的发布日期,能将职位排到网站搜索结果的前面,提高浏览效果 ;<br>
激活信息 - 即对"已经屏蔽"的信息重新进行显示 ;<br>
屏蔽信息 - 即对"暂时不需要显示"的信息进行隐藏,以后如果需要显示时再激活该信息即可 ;<br>
删除信息 - 即对"已经显示完成",以后不再需要显示的信息彻底进行删除 ;<br>
</font></td>
</tr>
</table></td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="1" bgcolor="#eeeeee"></td>
</tr>
</table>
<!--#include file="../Include/Footer.asp" -->
</td>
</tr>
</table>
</body>
</html>
<%
'//关闭数据库连接
CloseDB
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -