Manage_Column.jsp
资源名称:zyp.rar [点击查看]
上传用户:zdly666
上传日期:2022-08-09
资源大小:6511k
文件大小:3k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
JavaScript
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ include file="conn.jsp"%>
- <%
- /*if(session.getAttribute("Uid")==null){
- out.print("<script language='javascript'>");
- out.print("alert('用户名或密码错误,请重新登陆');");
- out.print("window.location.href='Bokee_Index.jsp';");
- out.print("</script>");
- response.sendRedirect("Bokee_Index.jsp");
- }*/
- %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <link rel="stylesheet" type="text/css" href="../Admin_Style.css">
- <title>栏目管理</title>
- </head>
- <body background="img/beijing.gif">
- <p>
- <jsp:include page="Menu.jsp" flush="true"/>
- </p>
- <table width="97%" height="88" border="0" align="center" cellspacing="2">
- <tr>
- <td height="100%" colspan="3"><div align="center"><strong>文件栏目管理</strong></div></td>
- </tr>
- <tr>
- <td><div align="center"><strong>栏目名称</strong></div></td>
- <td><div align="center"><strong>修改操作</strong></div></td>
- <td><div align="center"><strong>删除操作</strong></div></td>
- </tr>
- <%
- String condition="select * from S_fileColumn";
- rs=stmt.executeQuery(condition);
- %>
- <%
- rs.beforeFirst();
- while (rs.next())
- {
- String column_name = rs.getString("column_name");
- String column_id = String.valueOf(rs.getInt("column_id"));
- %>
- <tr>
- <td><div align="center"><%=column_name%></div></td>
- <td><div align="center"><a href="#" onClick="window.open('Edit_Column_Name.jsp?columnid=<%=column_id%>&columnname=<%=column_name%>','','width=330,height=160','menubar=no');">修改</a></div></td>
- <td><div align="center"><a href="Operate_Column.jsp?EditType=columnDel&columnid=<%=column_id%>" onClick="return isok()">删除</a></div></td>
- </tr>
- <%
- }
- rs.close();
- rs=null;
- stmt.close();
- conn.close();
- %>
- </table>
- <form name="form1" method="post" action="Operate_Column.jsp?&EditType=columnAdd" onSubmit="return showtip()">
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
- <tr>
- <td height="25" colspan="2"><div align="center">添加文件栏目</div></td>
- </tr>
- <tr>
- <td width="380" height="33" align="right" valign="middle">请输入你要添加的栏目名称:</td>
- <td width="397"><input type="text" name="column_name" value=""></td>
- </tr>
- <tr> </tr>
- <tr>
- <td width="380" height="24" align="right" valign="middle"> <input type="submit" name="Submit" value=" 确 定 "></td>
- <td width="397" height="24" align="left" valign="middle"> <input type="reset" name="Submit2" value="重置" > </td>
- </tr>
- <tr>
- <td height="25" colspan="2" align="right" valign="middle"> </td>
- </tr>
- </table>
- </form>
- </body>
- </html>
- <script language="JavaScript">
- function showtip()
- {
- if (form1.column_name.value=="")
- {alert("请输入栏目名称!");form1.column_name.focus();return false;}
- }
- function isok()
- {
- if(confirm("确认删除?将会同时删除n该栏目的所有记录和文件!"))
- {return true;}
- else
- {return false;}
- }
- </script>