chuliwenjian.jsp
来自「这是一个简单的办公管理系统」· JSP 代码 · 共 217 行
JSP
217 行
<%@ page contentType="text/html; charset=gb2312" errorPage="error.jsp" %>
<%@ page import="java.sql.ResultSet" %>
<%@ page language="java" import="com.fredck.FCKeditor.*" %>
<jsp:useBean id="cx" class="admin.CommonX"/>
<%String id = (String)session.getAttribute("chuliid");
String dept = ( String )session.getAttribute( "dept" );
%>
<%@ page import="admin.*" %>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%DataControl data = new DataControl();
String sql = "select * from fabu where id ="+id;
ResultSet rs = data.getResulSet(sql);
rs.next();
String content = rs.getString("content");
String time = rs.getString("timea");
String skinStr=request.getParameter("skin");
String jinji = rs.getString("jinji");
String shixian = rs.getString("shixian");
String title = rs.getString("title");
if(shixian == null ||shixian.equals("null")){
shixian = "";
}
String dept5 = "0";
DataControl data5 = new DataControl();
String sql5 = "select * from fabudept where fabuid="+id+" and dept='"+dept+"'";
ResultSet rs5 = data5.getResulSet(sql5);
if(rs5.next()){
dept5 = "1";
}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<html:base />
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="robots" content="noindex, nofollow" />
<script type="text/javascript" src="../../fckeditor.js"></script>
<style type="text/css">
<!--
#top1 img {
margin: 0px;
float: left;
}
#top1 p {
line-height: 1.5;
color: #000000;
font-size: 12px;
}
body,td,th {
font-size: 12px;
}
.style1 {color: #FFFFFF;
}
body {
background-color: #E7EBEF;
}
-->
</style>
<script type="text/javascript">
function FCKeditor_OnComplete( editorInstance )
{
var oCombo = document.getElementById( 'cmbSkins' ) ;
// Get the active skin.
var sSkin = editorInstance.Config['SkinPath'] ;
sSkin = sSkin.match( /[^\/]+(?=\/$)/g ) ;
oCombo.value = sSkin ;
oCombo.style.visibility = '' ;
}
function ChangeLanguage( languageCode )
{
window.location.href = window.location.pathname + "?skin=" + languageCode ;
}
</script>
</head>
<%
if ( !(dept5.equals( "1" ))) {
response.sendRedirect( "../../../logina.jsp" );
}
else{
%>
<body>
<form action="../../../chuli.do?dept=<%=dept%>&id=<%=id%>" name=mm onsubmit="breakitup()" method="post">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td align="center" valign="middle"><table width="98%" height="98%" border="1" cellpadding="0" cellspacing="0" bordercolor="737573" bgcolor="#FFFFFF" style="border-collapse: collapse">
<tr>
<td width="50%" height="55%" valign="top"><table width="100%" height="15" border="0" cellspacing="3">
<tr>
<td align="left" valign="top"><img src="../../../images/main_11.JPG" width="10" height="10"></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="30" align="center" valign="middle"><img src="../../../images/cl.JPG" width="243" height="35"></td>
</tr>
</table>
<table width="100%" height="30" border="0">
<tr>
<td>
<logic:messagesPresent>
<bean:message key="errors.header"/>
<bean:message key="errors.prefix"/>
<ul>
<html:messages id="error">
<li><bean:write name="error"/></li>
</html:messages >
</ul>
<bean:message key="errors.suffix"/>
<bean:message key="errors.footer"/>
</logic:messagesPresent></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="word-break:break-all;word-wrap:break-word">
<tr>
<td align="center"><table width="95%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFF99">
<tr>
<td></td>
</tr>
</table>
<table width="95%" border="0">
<tr>
<td> </td>
</tr>
</table>
<div id="top1">
<table width="95%" rules=none border="1" cellpadding="0" cellspacing="0" bordercolor="#E7E7EF" style="border-collapse: collapse">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0" rules=none>
<tr>
<td><img src="../../../images/cl1.JPG" width="100" height="84"><br/>
<p>文件标题:<%=title%><br/>发布时间:<%=time%><br/>紧急级别:<%=jinji%>
<%if(jinji.equals("限时")){out.print(" 时限:"+shixian);}%>
<input type="hidden" name="time" value="${cx.date}">
<br/>文件内容:
</p>
</td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="5">
<tr>
<td><%=content%></td>
</tr>
</table></td>
</tr>
</table>
<br/>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFF99">
<tr>
<td></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<br/>
<table width="100%" border="0">
<tr>
<td align="center"><table width="95%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="23%" bgcolor="#F7FBFF"> 处理内容:</td>
<td width="77%" bgcolor="#F7FBFF"> 界面风格:
<select id="cmbSkins" onchange="ChangeLanguage(this.value);" style="VISIBILITY: hidden">
<option value="silver" selected>Silver</option>
<option value="office2003">Office 2003</option>
<option value="default" selected>Default</option>
</select>
<input type="submit" value="提交" onclick="javascript:return(a());"/>
(处理内容不能大于8000字)</td>
<td> </td>
</tr>
</table></td>
</tr>
</table>
<br />
<%
FCKeditor oFCKeditor ;
oFCKeditor = new FCKeditor( request, "FCKeditor1" ) ;
oFCKeditor.setBasePath( "/office/FCKeditor/" ) ;
oFCKeditor.setValue( "请输入处理结果" );
//oFCKeditor.setToolbarSet("Silver");
String SkinPath = "/office/FCKeditor/editor/skins/silver/";
if(skinStr!=null) {
skinStr= "/office/FCKeditor/" + "editor/skins/" + skinStr + "/";
oFCKeditor.getConfig().put("SkinPath",skinStr);
}else{
oFCKeditor.getConfig().put("SkinPath",SkinPath);
}
out.println( oFCKeditor.create() ) ;
%>
<br />
</td>
</tr>
</table></td>
</tr>
</table>
</form>
</body>
<%}data.close();%>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?