?? activeshow.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="java.util.Date,java.sql.*"%>
<jsp:useBean id="condata" scope="page" class="wuliu.conndata"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="/logistics/CSS/style.css">
<title>
placard_show page
</title>
</head>
<script language="javascript">
function check()
{
if(form1.title.vlaue=="")
{
alert("請填寫標題?。?!");
form1.title.focus();
}
if(form1.content.value=="")
{
alert("請填寫內容?。?!");
form1.content.focus();
}
if(form1.author.value=="")
{
alert("請填寫作者?。?!");
form1.author.focus();
}
}
</script>
<%!
ResultSet rs;
String sql;
int code;
%>
<body bgcolor="#ffffff">
<form method="POST" action="/logistics/Manager/Active/activechange_config.jsp"name="form1">
<table width="785" height="238" border="1" align="center" cellpadding="0" cellspacing="0"bordercolor="#FFFFFF" bordercolordark="#333333" bordercolorlight="#FFFFFF">
<tr>
<td width="100%" height="39">
<p align="center"><font size="7" face="隸書">動態信息修改</font></td>
</tr>
<%
sql="select * from tb_Active where ID="+request.getParameter("id");
try
{
rs=condata.executeQuery(sql);
if(rs.next())
{
code=rs.getInt("ID");
%>
<tr>
<td width="100%" height="37"><font size="5"> 標題:
<input type="text" name="title" size="37" value="<%=rs.getString("Title")%>"></font></td>
</tr>
<tr>
<td width="100%" height="37"> * 注意以下內容最多可以寫2000個字</td>
</tr>
<tr>
<td width="100%" height="36">
<textarea rows="20" name="content" cols="100">
<%=rs.getString("Content")%></textarea></td>
</tr>
<tr>
<td width="100%" height="16"> 發布人:
<input type="text" name="author" size="37" value="<%=rs.getString("Author")%>">
</td>
</tr>
<tr>
<td width="100%" height="16"> 發布時間:
<%=rs.getDate("IssueDate")%>
</td>
</tr>
<tr>
<td width="100%" height="16"> 文章號:<%=code%>
<input type="hidden" name="id" size="37" value="<%=code%>">
</td>
</tr>
<%
}
}catch(Exception e)
{
e.printStackTrace();
}
%>
<tr>
<td width="30%" height="16">
<input type="submit" value="修改" name="B1"onClick="return check()">
<input type="reset" value="重寫" name="B2">
<a href="/logistics/Manager/Active/active.jsp">返回</a>
</td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -