📄 guestbook_manage.jsp
字号:
<%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
<%
/*
* ┌──────────────────── 深度学习 ──┐
* │程序名称:留言板后台管理
* │软件类别:功能模块
* │授权方式:
* │作 用:用于网站一般留言
* │说 明:
* │日 期:2007/8/10
* │编写人:吕海鹏
* └──────────────────── www.deepteach.com ──┘
*/
%>
<%@page import="com.deepteach.guestBook.*" %>
<%@page import="java.util.ArrayList"%>
<%
//-----------------定义留言板常用信息 开始 -----------------
String meta_keywords="deepteach.com,";
String meta_description="deepteach.com";
String head_title="deepteach.com,";
String siteName="深度学习(jsp)留言板";
String siteCopyRight="版权所有 deepteach.com";
int GuestBook_user_id = 0 ; //GuestBook_user_id网站变量定义留言板用户 默认0
//-----------------定义留言板常用信息 结束 -----------------
%>
<!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=GBK" />
<meta name="keywords" content="<%=meta_keywords%>" />
<meta name="description" content="<%=meta_description%>" />
<title>【<%=siteName%>后台管理】<%=head_title%></title>
<link href="../styles/style_GuestBook.css" rel="stylesheet" type="text/css" />
</head>
<body>
<br /> <br />
<h3><%=siteName%></h3>
<hr width="90%"/>
<br />
<!-------留言板 开始-------------->
<%
String action="noAction";
if(request.getParameter("action")!=null)
{action=request.getParameter("action");}
if ( action.equals("add") )
{
%>
<script language="javascript">
function check_form() {
if (document.form1.username.value=="") {
window.alert("请输入姓名!!!");
document.form1.username.focus();
return false;
}
if (document.form1.tel.value=="") {
window.alert("请输入电话!!!");
document.form1.tel.focus();
return false;
}
if (document.form1.email.value=="") {
window.alert("请输入E-mail!!!");
document.form1.email.focus();
return false;
}
if (document.form1.content.value=="") {
window.alert("请输入留言内容!!!");
document.form1.content.focus();
return false;
}
}
</script>
<form id="form1" name="form1" method="post" action="?action=save&GuestType=<%=request.getParameter("GuestType")%>" onSubmit="return check_form()">
<table width="95%" align="center" cellpadding="0" cellspacing="0"class="table_td_guest">
<tr>
<td colspan="2" height="25"> 书写留言(*为必填项)</td>
</tr>
<tr>
<td align="center">姓
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -