WebRoot/liuyan/liuyanupdate.jsp
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="com.util.*"%>
<%
request.setCharacterEncoding("gb2312");//设置页面字符集
DBO db=new DBO();//数据库链接
String ly="",yh="",sj="";//初始化变量
String keyid=(String)request.getParameter("keyid");//主键
String sql="select * from liuyan where lyid="+keyid;//定义查询sql语句
ResultSet rs=null;//定义查询结果集
db.open();//打开数据库链接
rs=db.query(sql);//执行查询结果
/*
留言信息修改页面
*/
if(rs.next()){//遍历结果集查询 相应的变量
ly=rs.getString("ly");
yh=rs.getString("yh");
sj=rs.getString("sj");
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script language="javascript" src="../js/prototype.js"></script>
<link href="../images/right.css" rel="stylesheet" type="text/css"/>
<script language="javascript">
function windowHeight() {
var de = document.documentElement;
return self.innerHeight||(de && de.clientHeight)||document.body.clientHeight;
}
window.onload=window.onresize=function(){
var wh=windowHeight();
document.getElementById("contentWrap").style.height = document.getElementById("sidebar").style.height = (wh-document.getElementById("header").offsetHeight-document.getElementById("footer").offsetHeight)+"px";
}
</script>
<script language="javascript">
function checkDo(){
if(form.ly.value==""){
alert("留言不能为空");
return false;
form.ly.focus();
}
if(form.yh.value==""){
alert("用户不能为空");
return false;
form.yh.focus();
}
if(form.sj.value==""){
alert("时间不能为空");
return false;
form.sj.focus();
}
form.action="liuyan_update.jsp";
后面还有 74 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
