图8 删除和修改信息界面 删除的核心代码如下: <%//设置操作 String menu=""; try { menu = request.getParameter("menu"); } catch(Exception ex) { menu="update"; } if (menu==null || menu =="") { menu="update"; } //删除操作代码 if(menu.equals("del")) { String tmp; //根据信息的id号进行删除信息 tmp="delete from jobinfo where jobid="+request.getParameter("jobid"); if(dbc.executeUpdate(tmp)>=0) out.println("<script>alert('信息删除成功!'); location.href='joblist.jsp'</script>"); else out.println("<script>alert('信息删除失败!'); location.href='joblist.jsp'</script>"); } %> 猎头浏览信息的界面如图9所示:
图9猎头浏览信息界面 猎头浏览信息的核心代码如下: //获得猎头号 <%String user_name= (String) session.getAttribute("user_name");%> <%= session.getAttribute("user_name") %><br> </center> <tr> <b>//查看猎头经理留言的代码 -猎头经理留言- </b> </tr> <td width="392" valign="top"> <table width="100%" border="1" cellspacing="0" cellpadding="0" bgCOLOR=Silver > <% String sql=null; //通过猎头号实现只能相应的猎头才可看留言 sql=new String(" select top 5 jobid,title,uptime , copyfrom from jobinfo where jobtypeid=1 and copyfrom='"+user_name+"' order by uptime desc "); String jobid=""; String title=""; String content=""; String uptime=""; ResultSet rs=dbc.executeQuery(sql); while(rs.next()) {//获得数据库相应内容 jobid=rs.getString("jobid"); title=rs.getString("title"); uptime=rs.getString("uptime");
首页 上一页 4 5 6 7 8 9 10 下一页 尾页 7/10/10