⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 modify.jsp

📁 【功能】 1:多用户统计系统
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%
/*
     季风流量统计系统1.0版(JSP)                   
                                                        
                                                         
     程序作者:季风                                     
                                                        
     QQ:9183838                                         
     E-Mail:feng0904@163.com                             
     网站:http://www.hxwa.net       
*/	
String admin=request.getParameter("id");
  if (session.getValue("UserName")==null){
    response.sendRedirect("login.jsp");  
}
else {
	
    if (session.getValue("admin")==null){
       if (session.getValue("UserName").equals(admin))
       {
      
       }else
        response.sendRedirect("err.jsp?id=6");
	   }
    }
	%>
<jsp:useBean id="feng" scope="page" class="feng.jdbc" />
<script language="JavaScript">
function JM_cc(ob){
  var obj=MM_findObj(ob);
  if (obj) { 
    obj.select();js=obj.createTextRange();js.execCommand("Copy");
  }
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
</script>



<%
Connection con = feng.getConn() ;
Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
String sql = "select * from InfoList where admin='"+admin+"' order by id" ;
ResultSet rs = stmt.executeQuery(sql) ;	 
String name="湖湘网安"; 
String url ="Http://www.hxwa.net/";
String mail="feng0904@163.com";
String memo="作者:季风";
String Key ="Delphi,Java";
String password="123456";
 if (rs.next()){
 name=rs.getString("Name"); 
 url =rs.getString("Url");
 mail=rs.getString("email");
 memo=rs.getString("note2");
 Key =rs.getString("keys");
 password=rs.getString("PassWord");

 }

 sql = "select * from lktype order by id" ;
 rs = stmt.executeQuery(sql) ;	 

%>
<html>
<head>
<script language=vbscript>
 sub chk()
  if trim(reg.id.value)="" or trim(reg.pws.value)="" or trim(reg.webname.value)="" or trim(reg.url.value)=""  or trim(reg.keys.value)="" or trim(reg.intro.value)="" then
     alert("每一项必须填写")
      exit sub
  end if
  if trim(reg.pws.value)<>trim(reg.repws.value) then
  alert("密码前后输入不一致")
      exit sub
  end if
  if instr(trim(reg.txtemail.value),"@")=0 or instr(trim(reg.txtemail.value),".")=0 then
  alert("Email地址输入错误")
      exit sub
  end if
  if instr(reg.intro.value,"色")<>0 and instr(reg.intro.value,"情")<>0  then
  alert("非法网站登录,操作已被记录在档!")
      exit sub
  end if
  if instr(reg.webname.value,"色")<>0 and instr(reg.webname.value,"情")<>0  then
  alert("非法网站登录,操作已被记录在档!")
      exit sub
  end if
  document.reg.submit
 end sub
</script>
<title>湖湘网安统计系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="images/admin.css" type="text/css">
</head>
<body bgcolor="#f0f0f0" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<body bgcolor="#e7e7e7" text="#000000">
<TABLE cellSpacing=0 cellPadding=0 width=777 align=center bgColor=#f0f0f0 
border=0>
  <TBODY>
    <TR> 
      <TD vAlign=bottom align=right bgColor=#cccccc>[<A 
      href="admin.jsp">管理</A>][<A 
      href="reg1.jsp">申请</A>][<a href=ph.jsp>排行</a>]</TD>
    </TR>
    <TR> 
      <TD width=777> <TABLE height=450 cellSpacing=0 cellPadding=0 width=777 border=0>
          <TBODY>
            <TR> 
              <TD vAlign=top width=176> <TABLE cellSpacing=0 cellPadding=0 width=150 border=0>
                  <TBODY>
                    <TR> 
                      <TD vAlign=top width=150 height=44><IMG height=44 
                  src="images/menu1.jpg" width=150></TD>
                    </TR>
                    <TR> 
                      <TD vAlign=top background=images/menu2.jpg height=280> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                          <TBODY>
                            
                            <TR> 
                              <TD width="30%" height=25>&nbsp;</TD>
                              <TD width="70%" rowspan="9"> <TABLE height=19 cellSpacing=0 cellPadding=0 width=15 border=0>
                                  <TBODY>
                                    <TR> 
                                      <TD vAlign=center width=76><img src="images/top.gif" width="67" height="219"></TD>
                                    </TR>
                                  </TBODY>
                                </TABLE></TD>
                            </TR>
                            <TR> 
                              <TD width="30%" height=25>&nbsp;</TD>
                            </TR>
                            <TR> 
                              <TD width="30%" height=25>&nbsp;</TD>
                            </TR>
                            <TR> 
                              <TD width="30%" height=25>&nbsp;</TD>
                            </TR>
                            <TR> 
                              <TD width="30%" height=25>&nbsp;</TD>
                            </TR>
                            <TR> 
                              <TD width="30%" height=25>&nbsp;</TD>
                            </TR>
                            <TR> 
                              <TD width="30%" height=25>&nbsp;</TD>
                            </TR>
                            <TR> 
                              <TD width="30%" height=25>&nbsp;</TD>
                            </TR>
                            <TR> 
                              <TD width="30%" height=25>&nbsp;</TD>
                            </TR>
                            <TR> 
                              <TD width="30%" height=25>&nbsp;</TD>
                              <TD width="70%" 
              height=25>&nbsp;</TD>
                            </TR>
                          </TBODY>
                        </TABLE></TD>
                    </TR>
                    <TR> 
                      <TD vAlign=top width=150 height=10><IMG height=10 
                  src="images/menu3.jpg" width=150></TD>
                    </TR>
                    <TR> 
                      <TD width=150 background=images/menu4.jpg 
                height=80>&nbsp;</TD>
                    </TR>
                    <TR> 
                      <TD vAlign=top width=150 height=14><IMG height=14 
                  src="images/menu5.jpg" width=150></TD>
                    </TR>
                  </TBODY>
                </TABLE></TD>
              <TD vAlign=top align=middle width=588><BR> <TABLE cellSpacing=0 cellPadding=0 border=0>
                  <TBODY>
                    <TR> 
                      <TD vAlign=top colSpan=2 rowSpan=2> <TABLE cellSpacing=0 cellPadding=0 width=488 bgColor=#000000 
                  border=0>
                          <TBODY>
                            <TR> 
                              <TD vAlign=top bgColor=#ffffff> <TABLE cellSpacing=0 cellPadding=0 width="100%" 
border=0>
                                  <TBODY>
                                    <TR> 
                                      <TD bgColor=#666666><IMG height=20 
                              src="image/oka.gif" width=20 
                              align=absMiddle> <FONT color=#ffffff><b>湖湘网安统计</b></FONT></TD>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -