?? bulletinamend.jsp
字號:
<%--
模塊名稱:律所公告
模塊功能:公告修改
版 本:V1.0
著 作 人:蔡靜
著作日期:2001-11-12
使用說明:
主要技術說明:
參考文獻:法律事務設計書
修改歷史:= = = = = = = = = = = = = = = = = = = = = = = = = =
修改日期:2001-12-28
修 改 人:Celts
修改理由:內容無原格式輸出
修改出處:
= = = = = = = = = = = = = = = = = = = = = = = = = =
--%>
<%@ page contentType= "text/html; charset=gb2312" %>
<%@ page language="java" import="java.sql.*" %>
<%@ page import="system.*" %>
<jsp:useBean id="stringset" class="system.ExtendString" scope="page" />
<jsp:useBean id="db" class="dbconnection.DbConnection" scope="page" />
<%
Security auth = new Security();
String employee_id = (String)session.getAttribute("employee_id");
if(employee_id == null || employee_id.equals(""))
{
response.sendRedirect(response.encodeRedirectURL("../Error/nonlogin.htm"));
}
String modelid = "Bbs020";
int authflag = auth.popedom(employee_id, modelid);
if(authflag == 0 || authflag == 2 || authflag == -1)
{
%>
<jsp:forward page="../inc/noauth.jsp" >
</jsp:forward>
<%
}
%>
<%
String bulletin_id = request.getParameter("bulletin_id");
String bulletin_title, bulletin_content;
String sql = "select bulletin_title, bulletin_content";
sql = sql + " from t_bulletin where bulletin_id = '" + bulletin_id + "'";
ResultSet rs = db.executeQuery(sql);
if (rs.next()) {
bulletin_title = rs.getString("bulletin_title");
bulletin_content = rs.getString("bulletin_content");
%>
<html>
<head>
<title>公告修改</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%@ include file="../inc/config.jsp" %>
</head>
<body class=page>
<script language="javascript">
function checkForm() {
if(document.form1.bulletin_title.value == "" ) {
alert("請輸入公告標題!")
document.form1.bulletin.focus();
return false;
}
if(document.form1.bulletin_content.value == "" ) {
alert("請輸入公告內容!")
document.form1.bulletin_content.focus();
return false;
}
}
</script>
<!--顯示工具條-->
<table width="98%" align="center" cellspacing="1">
<tr>
<td><a href="BulletinManage.jsp"><img src="../images/all.gif" height="22" border="0"></a>
<a href="BulletinAdd.jsp"><img src="../images/add.gif" alt="增加內容" width="79" height="22" border="0"></a>
<img src="../images/delete.gif" alt="刪除選中的內容" width="79" height="22">
<a href="BulletinManageSearch.jsp"><img src="../images/query.gif" alt="查詢內容" width="79" height="22" border="0"></a></td>
<td align="right"><img src="../images/back.gif" width="50" height="22" onClick="window.history.back()" style="cursor:hand" alt="返回"></td>
</tr>
</table>
<table width="98%" background="../images/line.gif" border="0" cellspacing="0" cellpadding="0" height="12" align="center">
<tr>
<td> </td>
</tr>
</table>
<!--顯示工具條結束-->
<form name="form1" method="post" action="BulletinAmendRun.jsp">
<table width="98%" border="0" cellspacing="1" cellpadding="5" class="table_bg" align="center">
<tr>
<td width="21%" class="title_bg" align="right"> 公告編號:</td>
<td width="79%" class="tr_bg1">
<input type="text" name="bulletin_id" size="14" class="input" value=<%=bulletin_id%> readOnly>
</td>
</tr>
<tr>
<td width="21%" class="title_bg" height="9" align="right"> 公告標題:</td>
<td width="79%" class="tr_bg1" height="9">
<input type="text" name="bulletin_title" size="70" class="input" value=<%=bulletin_title%>>
</td>
</tr>
<tr>
<td width="21%" class="title_bg" align="right"> 公告內容:</td>
<td width="79%" class="tr_bg1">
<textarea name="bulletin_content" rows="15" cols="70" class="input"><%=bulletin_content%></textarea>
</td>
</tr>
</table>
<div align="center">
<input type="submit" name="save" value="保存" class="button" onClick="return checkForm()">
<input type="reset" name="reset" value="重寫" class="button">
<br>
</div>
</form>
</body>
</html>
<%}%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -