📄 infmodify.jsp
字号:
<%
/**
* Title:Lerx计数器(JSP+MySQL)
* Description:含有动网最新IP数据库 165501条 2004年11月5日更新,我找到的最新的也最合适的就是这个了,花了些时间处理导入到MySQL里。
* Copyright: Copyright (c) 2005
* Company:www.lerx.com,www.5z.com.cn,www.huafang.com.cn
* @author:lzh@5z.com.cn() QQ:27723812
* @version 1.0
* 开发平台:红旗Linux4.1,JDK 1.5.0_04-b05,Tomcat 5.5.9,MySQL 3.23.58
* 完成时间:2005.12.2
*/
%>
<%@ page contentType="text/html;charset=gb2312" %>
<%@ page import="java.util.*" %>
<%@ page import="java.util.Date" %>
<%@ page import="java.sql.*" %>
<%@ include file="const.jsp" %>
<%@ include file="conn.jsp" %>
<%
request.setCharacterEncoding("GB2312");
String ps_id,ps_SQLCmd="",ps_SiteName="",ps_URL="",ps_Email="";
boolean pb_continue=false;
long pl_InitIP=0;
int pi_graph=0,pi_type=0;
ps_id = request.getParameter("id");
ps_SQLCmd="select * from statuser where id='"+ps_id+"'";
rs=stmt.executeQuery(ps_SQLCmd);
if (rs.next())
{
pb_continue =true;
ps_SiteName = rs.getString("SiteName");
ps_URL = rs.getString("url");
ps_Email = rs.getString("email");
pl_InitIP = rs.getInt("InitIP");
pi_graph = rs.getInt("GraphType");
pi_type = rs.getInt("ShowStyle");
}
if (pb_continue)
{
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>修改计数器系统中您的基本信息</title>
</head>
<body bgcolor="<%=ps_BgColor%>" text="#FFFFFF" link="#FFFFCC" vlink="#FFFFCC" alink="#CCCCFF">
<div align="center">
<center>
<table border="0" width="750" height="100%" bgcolor="<%=ps_TableColor%>">
<tr>
<td width="100%" valign="middle" align="center">
<div align="center">
<center>
<table border="0" width="80%">
<tr>
<td width="100%" align="center" colspan="2"><b>计数器——请修改您的基本信息</b></td>
</tr>
<form method="POST" action="infmodify_do.jsp?id=<%=ps_id%>">
<tr>
<td width="100%" height="20" align="center" colspan="2"> </td>
</tr>
<tr>
<td width="35%" align="right">用户名:</td>
<td width="65%">
<p><%=ps_id%></td>
</tr>
<tr>
<td width="35%" align="right">管理密码:</td>
<td width="65%"><input type="text" name="T_password" size="30" tabindex="1">(不改请留空!)</td>
</tr>
<tr>
<td width="35%" align="right">网站名:</td>
<td width="65%"><input type="text" name="T_sitename" value="<%=ps_SiteName%>" size="30" tabindex="2"></td>
</tr>
<tr>
<td width="35%" align="right">网站URL:</td>
<td width="65%"><input type="text" name="T_url" value="<%=ps_URL%>" size="30" tabindex="3"></td>
</tr>
<tr>
<td width="35%" align="right">网管信箱:</td>
<td width="65%"><input type="text" name="T_email" value="<%=ps_Email%>" size="30" tabindex="4"></td>
</tr>
<tr>
<td width="35%" align="right">初始值:</td>
<td width="65%"><input type="text" name="T_initnum" value="<%=pl_InitIP%>" size="30" value="0" tabindex="5"></td>
</tr>
<tr>
<td width="100%" height="20" align="center" colspan="2"> </td>
</tr>
<tr>
<td width="100%" align="center" colspan="2"><input type="submit" value="提交" name="B1">
<input type="reset" value="重写" name="B2"></td>
</tr>
</form>
<tr>
<td width="100%" align="center" colspan="2"><hr size=1></td>
</tr>
<tr>
<td width="100%" align="center" colspan="2"><b>获取代码选项</b></td>
</tr>
<form name="form" method="POST" action="getcode.jsp?id=<%=ps_id%>&from=modify">
<tr>
<td width="35%" align="right">计数风格:</td>
<td width="65%"><input type="radio" value="1" <%if (pi_type==1){%>checked<%}%> name="showstype" tabindex="6">文本
<input type="radio" name="showstype" value="0" <%if (pi_type==0){%>checked<%}%> tabindex="7">图形<input type="radio" name="showstype" value="2" <%if (pi_type==2){%>checked<%}%> tabindex="7">隐藏<input type="radio" name="showstype" value="3" <%if (pi_type==3){%>checked<%}%> tabindex="7">图标</td>
</tr>
<tr>
<td width="35%" align="right">图像风格:</td>
<td width="65%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="20%">
<script>
function showimage()
{document.images.p0.src=
"<%=ps_RootPath%>images/"+
document.form.graphstyle.options[document.form.graphstyle.selectedIndex].value+
"/0.gif";
document.images.p1.src=
"<%=ps_RootPath%>images/"+
document.form.graphstyle.options[document.form.graphstyle.selectedIndex].value+
"/1.gif";
document.images.p2.src=
"<%=ps_RootPath%>images/"+
document.form.graphstyle.options[document.form.graphstyle.selectedIndex].value+
"/2.gif";
document.images.p3.src=
"<%=ps_RootPath%>images/"+
document.form.graphstyle.options[document.form.graphstyle.selectedIndex].value+
"/3.gif";
document.images.p4.src=
"<%=ps_RootPath%>images/"+
document.form.graphstyle.options[document.form.graphstyle.selectedIndex].value+
"/4.gif";
document.images.p5.src=
"<%=ps_RootPath%>images/"+
document.form.graphstyle.options[document.form.graphstyle.selectedIndex].value+
"/5.gif";
}
</script>
<select name="graphstyle" size=1 onChange="showimage()">
<script language=vbs>
for i = 0 to 19
document.write"<option value='"&i&"'>"&i&"</option>"
next
</script>
</select>
</td>
<td width="80%" align="left">
<table border="0" cellpadding="0" cellspacing="0" width="40" bgcolor="#FFFFFF">
<tr>
<td align="left"><img src="<%=ps_RootPath%>images/0/0.gif" name="p0" border=0><img src="<%=ps_RootPath%>images/0/1.gif" name="p1" border=0><img src="<%=ps_RootPath%>images/0/2.gif" name="p2" border=0><img src="<%=ps_RootPath%>images/0/3.gif" name="p3" border=0><img src="<%=ps_RootPath%>images/0/4.gif" name="p4" border=0><img src="<%=ps_RootPath%>images/0/5.gif" name="p5" border=0></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%" align="center" colspan="2"><input type="submit" value="获取代码" name="B1"></td>
</tr>
</form>
<tr>
<td width="100%" height="40" align="center" colspan="2"> </td>
</tr>
<tr>
<td width="100%" align="center" colspan="2"><%@ include file="./copyright.jsp" %></td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
</center>
</div>
</body>
</html>
<%
}
else
{
%>
<p>用户不存在!</p>
<%
}
%>
<%@ include file="disconn.jsp" %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -