📄 jobinfomanage.jsp
字号:
<%@ page contentType="text/html; charset=gb2312"%>
<%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
<jsp:include page="/CheckLogin.jsp" flush="true"/>
<%Session m_session = new Session(session);%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
<title>招聘岗位管理-- </title>
<link href="../css/txt.jsp" rel="stylesheet" type="text/css">
<script language="JavaScript" src="/js/changestyle.js"></script>
</head>
<body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
<%
Request m_request = new Request(request);
int iPageSize = 18;
int iPage = m_request.GetInt("Page");
String strCurrentPageURL = request.getRequestURI();
String strIDs = m_request.GetString("ID");
String strMultUserID = m_request.GetString("MultUserID");
String strMultSysID = m_request.GetString("MultSysID");
String strJobName = m_request.GetString("JobName");
String strRequestNumber = m_request.GetString("RequestNumber");
String strJobContent = m_request.GetString("JobContent");
String strUntilTime = m_request.GetString("UntilTime");
String strIsShow = m_request.GetString("IsShow");
String strUpdateTimeFrom = m_request.GetString("UpdateTimeFrom");
String strUpdateTimeTo = m_request.GetString("UpdateTimeTo");
String strUpdateUserID = m_request.GetString("UpdateUserID");
String strUserID = m_request.GetString("UserID");
String strUserName = m_request.GetString("UserName");
String strRemark = m_request.GetString("Remark");
String strJobRequest = m_request.GetString("JobRequest");
String strPayAndDeal = m_request.GetString("PayAndDeal");
String strOrderBy=m_request.GetString("OrderBy");
String strIsDesc=m_request.GetString("IsDesc");
String strOrderArrow="↑";
if(strIsDesc.equalsIgnoreCase("True"))
{
strOrderArrow="↓";
}
else
{
strOrderArrow="↑";
}
%>
<script language="JavaScript">
function changeorder(orderBy)
{
with(document.WebSiteDirManage)
{
if(OrderBy.value==orderBy)
{
if(IsDesc.value=="")
IsDesc.value="True";
else
IsDesc.value="";
}
else
{
OrderBy.value=orderBy;
IsDesc.value="";
Page.value="1";
}
}
document.WebSiteDirManage.submit();
}
function changepage(pageNum)
{
with(document.WebSiteDirManage)
{
Page.value=pageNum;
}
document.WebSiteDirManage.submit();
}
function checkWebSiteDir()
{
var isIDCheck = false;
var isIDCheck = false;
with(document.WebSiteDir)
{
try
{
for(i=0;i<elements.length;i++)
{
if(elements[i].type=="checkbox"&&elements[i].name=="ID")
{
if(elements[i].checked)
{
isIDCheck = true;
break;
}
}
}
}
catch(ex)
{
}
}
if(!isIDCheck)
{
alert("请先选择友情链接,再进行删除操作!");
return false;
}
return window.confirm('确实要删除这些友情链接吗?');
}
function checktall()
{
var allselect=true;
with(document.WebSiteDir)
{
if(selectall.value=="全部选择")
{
allselect = true;
selectall.value="全部取消";
}
else
{
allselect = false;
selectall.value="全部选择";
}
for(i=0;i<elements.length;i++)
{
if(elements[i].type=="checkbox")
elements[i].checked = allselect;
}
}
}
</script>
<table width="100%" height="100%" border="0" align="center" cellspacing="0">
<tr>
<td align="center" valign="top"><p> </p>
<form name="WebSiteDirManage" action="<%=strCurrentPageURL%>?MultUserID=<%=strMultUserID%>&MultSysID=<%=strMultSysID%>" method="post">
<input name="Page" type="hidden" value="<%=iPage%>">
<input name="ID" type="hidden" value="<%=strIDs%>">
<input name="JobName" type="hidden" value="<%=strJobName%>">
<input name="RequestNumber" type="hidden" value="<%=strRequestNumber%>">
<input name="JobContent" type="hidden" value="<%=strJobContent%>">
<input name="UntilTime" type="hidden" value="<%=strUntilTime%>">
<input name="IsShow" type="hidden" value="<%=strIsShow%>">
<input name="UpdateTimeFrom" type="hidden" value="<%=strUpdateTimeFrom%>">
<input name="UpdateTimeTo" type="hidden" value="<%=strUpdateTimeTo%>">
<input name="UserID" type="hidden" value="<%=strUserID%>">
<input name="UserName" type="hidden" value="<%=strUserName%>">
<input name="UpdateUserID" type="hidden" value="<%=strUpdateUserID%>">
<input name="Remark" type="hidden" value="<%=strRemark%>">
<input name="JobRequest" type="hidden" value="<%=strJobRequest%>">
<input name="PayAndDeal" type="hidden" value="<%=strPayAndDeal%>">
<input name="OrderBy" type="hidden" value="<%=strOrderBy%>">
<input name="IsDesc" type="hidden" value="<%=strIsDesc%>"><font color="#000000"><b>招聘岗位管理</b></font>
<br><br>
</form>
<form name="WebSiteDir" action="DelJobInfo.jsp?MultUserID=<%=strMultUserID%>&MultSysID=<%=strMultSysID%>" method="post" onsubmit="return checkWebSiteDir();">
<table width="90%" border="1" cellpadding="3" cellspacing="0" bordercolordark="#ffffff" bordercolorlight="#0a0a0a" style="">
<tr align="center" valign="middle" bgcolor="<%=m_session.GetString("TitleColor")%>">
<th width="2%" height="24" nowrap><img src="/images/white.gif" width="12"></th>
<th width="4%" nowrap><font color="#000000">编号</font></th>
<th width="14%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.JobName');return false;">岗位名称</a><%=(strOrderBy.equalsIgnoreCase("a.JobName"))?strOrderArrow:""%></font></th>
<th width="7%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.RequestNumber');return false;">招聘人数</a><%=(strOrderBy.equalsIgnoreCase("a.RequestNumber"))?strOrderArrow:""%></font></th>
<th width="7%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.UntilTime');return false;">招聘截至时间</a><%=(strOrderBy.equalsIgnoreCase("a.UntilTime"))?strOrderArrow:""%></font></th>
<th width="14%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.IsShow');return false;">是否显示</a><%=(strOrderBy.equalsIgnoreCase("a.IsShow"))?strOrderArrow:""%></font></th>
<th width="14%" nowrap><font color="#000000"><a href="" onclick="changeorder('c.Name');return false;">发布用户</a><%=(strOrderBy.equalsIgnoreCase("c.Name"))?strOrderArrow:""%></font></th>
<th width="14%" nowrap><font color="#000000"><a href="" onclick="changeorder('a.UpdateTime');return false;">发布时间</a><%=(strOrderBy.equalsIgnoreCase("a.UpdateTime"))?strOrderArrow:""%></font></th>
<th width="3%" nowrap><font color="#000000">修改</font></th>
<th width="3%" nowrap><font color="#000000">删除</font></th>
</tr>
<%
Vector vt = JobInfoManager.getRecordBySearch(strIDs,strJobName,strRequestNumber,strJobContent,strUntilTime,strUpdateTimeFrom,strUpdateTimeTo,strUpdateUserID,strRemark,strIsShow,strJobRequest,strPayAndDeal,strUserID,strUserName,strMultUserID,strMultSysID,strOrderBy,strIsDesc);
if(iPage<1)iPage=1;
int iPageCount = StringNew.getPageCount(vt.size(),iPageSize);
if(iPage>iPageCount) iPage=1;
for(int i=(iPage-1)*iPageSize;i<vt.size()&&i<iPage*iPageSize;i++)
{
String strID = ((Vector)vt.get(i)).get(0).toString();
if(i % 2 == 0)
{
out.println("<tr id=\"Row"+ i+ "\" class=\"DataRowsSingle\" onmouseover=\"mouseon(this,'image" + i + "');\" onmouseout=\"mouseout(this,'image" + i + "','DataRowsSingle');\">");
}
else
{
out.println("<tr id=\"Row"+ i+ "\" class=\"DataRowsDouble\" onmouseover=\"mouseon(this,'image" + i + "');\" onmouseout=\"mouseout(this,'image" + i + "','DataRowsDouble');\">");
}
out.println("<td align=\"right\" valign=\"middle\"><img id=\"image" + i + "\" src=\"../images/lastpost1.gif\" style=\"display:none;\"> </td>");
out.println("<td align=\"right\" valign=\"middle\">" + (i+1) + "</td>");
out.println("<td align=\"left\" valign=\"middle\" nowrap title=\"" + ((Vector)vt.get(i)).get(1).toString() + "\" ><input type=\"checkbox\" name=\"ID\" value=\"" + strID + "\">" + ((Vector)vt.get(i)).get(1).toString() + " </td>");
out.println("<td align=\"center\" valign=\"middle\" nowrap >" + ((Vector)vt.get(i)).get(2).toString() + " </td>");
out.println("<td align=\"center\" valign=\"middle\" nowrap >" + ((Vector)vt.get(i)).get(4).toString() + " </td>");
out.println("<td align=\"center\" valign=\"middle\" nowrap >" + (((Vector)vt.get(i)).get(8).toString().equalsIgnoreCase("True")?"是":"否") + " </td>");
out.println("<td align=\"center\" valign=\"middle\" nowrap >" + ((Vector)vt.get(i)).get(15).toString() + " </td>");
out.println("<td align=\"left\" valign=\"middle\" nowrap >" + StringNew.GetDateString(((Vector)vt.get(i)).get(5).toString(),"MM-dd HH:mm") + " </td>");
out.println("<td align=\"center\" valign=\"middle\" nowrap ><a href=\"EditJobInfo.jsp?MultUserID=" + strMultUserID + "&MultSysID=" + strMultSysID + "&ID=" + strID + "\">修改</a></td>");
out.println("<td align=\"center\" valign=\"middle\" nowrap ><a href=\"DelJobInfo.jsp?MultUserID=" + strMultUserID + "&MultSysID=" + strMultSysID + "&ID=" + strID + "\">删除</a></td>");
out.println("</tr>");
}
%>
<tr>
<th align="center" valign="top" colspan="6">
<%
if(iPage<2)
out.print("首页 上页");
else
out.print("<a href=\"\" onclick=\"changepage(" + 1 + ");return false;\">首页</a> <a href=\"\" onclick=\"changepage(" + (iPage-1) + ");return false;\">上页</a>");
out.print(" 当前是第" + iPage + "页,共" + vt.size() + "条记录" + iPageCount + "页 ");
if(iPage>=iPageCount)
out.print("下页 末页");
else
out.print("<a href=\"\" onclick=\"changepage(" + (iPage+1) + ");return false;\">下页</a> <a href=\"\" onclick=\"changepage(" + iPageCount + ");return false;\">末页</a>");
%>
</th>
<th colspan="4">
<input name="AddNew" type="button" value="新增" onclick="window.location='AddJobInfo.jsp?MultUserID=<%=strMultUserID%>&MultSysID=<%=strMultSysID%>'" style="background-color: #FFFFFF; border: 1 solid #000000">
<input name="selectall" type="button" value="全部选择" onclick="checktall()" style="background-color: #FFFFFF; border: 1 solid #000000">
<input name="subm" type="submit" value="删除" style="background-color: #FFFFFF; border: 1 solid #000000">
</th>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -