www.gusucode.com > 漂亮的地方旅游景点景观介绍网站源代码 > admin/back/yp.asp
<!--#include file="../config.asp" --> <!--#include file="../../inc/page.asp" --> <% call zwtj() mytit=mytit&"<a href=?>应聘信息管理</a>" call chkqx(3,7) select case action case "del" call del() case "show","" call show() case "ups" mytit=mytit&" >> 详情" call ups() end select '显示 sub show() sql="select * from jw_yp order by id desc" call record(rs,sql,1) call head() %> <link href="../inc/mm.css" rel="stylesheet" type="text/css" /> <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#116BAE"> <tr> <td bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF"> <tr> <td id="tit"><%= mytit %></td> </tr> <tr> <td> <table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#FFFFFF"> <form name="form1" id="form1" method="post" action=""> <tr> <td width="6%" align="center" bgcolor="#C5E0F3"><strong>ID</strong></td> <td width="41%" bgcolor="#C5E0F3"><strong>姓名</strong></td> <td width="25%" align="center" bgcolor="#C5E0F3"><strong>时间</strong></td> <td width="25%" align="center" bgcolor="#C5E0F3"><strong>查看</strong></td> <td width="3%" align="center" bgcolor="#C5E0F3"><input type="checkbox" name="selectall" onClick="selectit()"/></td> </tr> <% dim i,sz sz=20 i=sz dim bgc %> <div style="display:none"><% call fenpage(sz,rs,10) %></div> <% do while not rs.eof and i>0 if i mod 2=0 then bgc="#D2E9FF" else bgc="#D2E1EE" end if %> <tr id="r<%=rs("id")%>" bgcolor=<%= bgc %> onMouseOver="museing(r<%=rs("id")%>,0,'<%= bgc %>')" onMouseOut="museing(r<%=rs("id")%>,1,'<%= bgc %>')"> <td align="center"><%= rs("id") %></td> <td><a href="?action=ups&id=<%= rs("id") %>"><%= rs("gname") %> </a></td> <td align="center"><%= rs("ctim") %></td> <td align="center"> <% If rs("ck")=1 Then Response.Write("已查看") else Response.Write("未查看") end if %></td> <td align="center"><input name="idstr" type="checkbox" value="<%= rs("id") %>" onclick="td_bgcolor(r<%=rs("id")%>,1);"></td> </tr> <% i=i-1 rs.movenext loop %> <tr> <td colspan="5" bgcolor="#C5E0F3"> <table width="100%" border="0" cellpadding="2" cellspacing="0"> <tr> <td width="11%"><input name="del" type="button" class="button_1" id="del" value="删除所选" onmouseup="tjqr('您确定要删除?此操作无法逆转!','?action=del')" onmouseover="this.className='button_2'" onmouseout="this.className='button_1'"/></td> <td width="89%" align="right"><% call fenpage(sz,rs,10) %></td> </tr> </table></td> </tr> </form> </table></td> </tr> </table></td> </tr> </table> <% call recordend(rs) call connend() call foot() end sub '修改 sub ups() call record(rs,"select * from jw_yp where id="&id,3) if rs.eof then call cc("记录不存在!") end if rs("ck")=1 rs.update call head() %> <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#116BAE"> <tr> <td bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF"> <tr> <td id="tit"> <%= mytit %></td> </tr> <tr> <td> <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF"> <form action="?action=doup&id=<%= id %>" name="form1" id="form1" method="post"> <tr> <td align="right" bgcolor="#D9ECF7">应聘岗位:</td> <td bgcolor="#D9ECF7"><%= getmc("jw_zp","id",rs("zid"),"mc") %></td> </tr> <tr> <td width="19%" align="right" bgcolor="#D9ECF7">姓名:</td> <td width="81%" bgcolor="#D9ECF7"><%= rs("gname") %></td> </tr> <tr> <td align="right" bgcolor="#D9ECF7">性别:</td> <td bgcolor="#D9ECF7"> <% if rs("sex")=0 then Response.Write("男") else Response.Write("女") end if %></td> </tr> <tr> <td align="right" bgcolor="#D9ECF7">生日:</td> <td bgcolor="#D9ECF7"><%= rs("brithday") %></td> </tr> <tr> <td align="right" bgcolor="#D9ECF7">婚姻:</td> <td bgcolor="#D9ECF7"> <% if rs("hy")=0 then Response.Write("未婚") else Response.Write("已婚") end if %></td> </tr> <tr> <td align="right" bgcolor="#D9ECF7">学历:</td> <td bgcolor="#D9ECF7"> <% dim xueli select case int(rs("xueli")) case 0 xueli="高中以下" case 1 xueli="高中、中专" case 2 xueli="大专" case 3 xueli="本科" case 4 xueli="硕士" case 5 xueli="博士" case 6 xueli="博士以上" end select Response.Write(xueli) %></td> </tr> <tr> <td align="right" bgcolor="#D9ECF7">毕业院校:</td> <td bgcolor="#D9ECF7"><%= rs("byyx") %></td> </tr> <tr> <td align="right" bgcolor="#D9ECF7">专业:</td> <td bgcolor="#D9ECF7"><%= rs("zhuanye") %></td> </tr> <tr> <td align="right" bgcolor="#D9ECF7">毕业时间:</td> <td bgcolor="#D9ECF7"><%= rs("bysj") %></td> </tr> <tr> <td align="right" bgcolor="#D9ECF7">电话:</td> <td bgcolor="#D9ECF7"><%= rs("tel") %></td> </tr> <tr> <td align="right" bgcolor="#D9ECF7">E-mail:</td> <td bgcolor="#D9ECF7"><%= rs("email") %></td> </tr> <tr> <td align="right" bgcolor="#D9ECF7">地址:</td> <td bgcolor="#D9ECF7"><%= rs("address") %></td> </tr> <tr> <td align="right" bgcolor="#D9ECF7">水平与能力:</td> <td bgcolor="#D9ECF7"><%= rs("spnl") %></td> </tr> <tr> <td align="right" bgcolor="#D9ECF7">个人简历:</td> <td bgcolor="#D9ECF7"><%= rs("grjl") %></td> </tr> <tr> <td colspan="2" align="right" bgcolor="#D9ECF7" class="fonth">时间:<%= rs("ctim") %> IP:<%= rs("ip") %></td> </tr> </form> </table> </td> </tr> </table> </td> </tr> </table> <% call connend() call foot() end sub '执行修改 sub doup() dim con con=Trim(Request.Form("hf")) conn.execute("update jw_yp set hf='"&con&"' where id="&id) call connend() response.Redirect("?") end sub '删除 sub del() '删除单条记录 if id<>"" then conn.execute("delete * from jw_yp where id="&id) end if '批量删除 dim idstr,iid,i idstr=replace(Trim(Request.Form("idstr"))," ","") iid=split(idstr,",") for i=0 to ubound(iid) conn.execute("delete * from jw_yp where id="&iid(i)) next call connend() response.Redirect(request.ServerVariables("HTTP_REFERER")) end sub '禁用////////////////////////////////////////////////////////////////////////////////////// sub jy() dim val val=1 if id<>"" then call uptab("jw_yp","show",val,"id",id) call zhgx("jw_yp",id) end if call connend() response.Redirect(request.ServerVariables("HTTP_REFERER")) end sub '起用////////////////////////////////////////////////////////////////////////////////////// sub qy() dim val val=0 if id<>"" then call uptab("jw_yp","show",val,"id",id) call zhgx("jw_yp",id) end if call connend() response.Redirect(request.ServerVariables("HTTP_REFERER")) end sub %>