P版MSSQL连接工具
来源:韦江代博客 责任编辑:栏目编辑 发表时间:2013-07-02 06:21 点击:次
Jsp代码
- <%@ page import="java.sql.*" contentType="text/html; charset=GBK"%>
- <%@ page import="java.util.*"%>
- <html>
- <head>
- <title>rootkit</title>
- <script type="javascript">
- var db = "master";
- function getTables() {
- window.open("<%=request.getRequestURL().toString()%>?action=getTables&db="+db,"","scrollbars=yes");
- }
- function logout() {
- location.href="<%=request.getRequestURL().toString()%>?action=logout";
- }
- function changevalue(select) {
- document.getElementById("sqlcmd").value = "use "+select.options[select.selectedIndex].value+";select * from sysobjects";
- }
- </script>
- </head>
- <body bgcolor="#ffffff">
- <base href="<%=request.getRequestURL()%>" />
- <%
- if ((session.getAttribute("conn") == null && request.getParameter("username") == null) || request.getParameter("action") == null) {
- %>
- <form method="post" action="?action=getConn">
- <table cellpadding="0" cellspacing="0" width="200" border="1">
- <tr>
- <td>
- IP:
- </td>
- <td>
- <input name="ip" type="text" id="ip">
- </td>
- </tr>
- <tr>
- <td>
- USERNAME:
- </td>
- <td>
- <input name="username" type="text" id="username">
- </td>
- </tr>
- <tr>
- <td>
- PASSWORD:
- </td>
- <td>
- <input name="password" type="password" id="password">
- </td>
- </tr>
- <tr>
- <td>
- PORT:
- </td>
- <td>
- <input name="port" type="text" id="port">
- </td>
- </tr>
- </table>
- <p>
- <input name="btnok" type="submit" id="btnok" value="连接">
- </p>
- </form>
相关新闻>>
- 发表评论
-
- 最新评论 更多>>