Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Manage_Column.jsp
Package: zyp.rar [view]
Upload User: zdly666
Upload Date: 2022-08-09
Package Size: 6511k
Code Size: 3k
Category:
WEB(ASP,PHP,...)
Development Platform:
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>