⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shenqing.jsp

📁 这是一个简单的办公管理系统
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" errorPage="error.jsp" %>
<%@ page import="java.sql.ResultSet" %>
<jsp:useBean id="cx" class="admin.CommonX"/>
<%@ 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"%>

<!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">
<!--
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 + "?" + languageCode ;
}

function a(){
	if (document.mm.title.value==""){
		alert("请输入申请标题");
		return false;
	}
	if (document.mm.title.length>200){
		alert("申请标题不得大于200字");
		return false;
	}
	return true;
}

</script>

</head>
<%
	String dept = ( String )session.getAttribute( "dept" );
	if ( dept == null || dept.equals( "" )||dept.equals( "领导" ) ){
		response.sendRedirect( "../../../logina.jsp" );	
 	}
	else{
%>
<body>

<form action="../../../shenqing.do" 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/sq.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">
            <tr>
              <td align="center"><table width="95%"  border="1" cellpadding="0" cellspacing="0" bordercolor="#006666" style="border-collapse: collapse" frame=above>
                <tr>
                  <td style="BORDER-top: rgb(0,0,0) 1px dotted; BORDER-bottom: rgb(0,0,0) 1px dotted;"><table width="100%" height="27"  border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="23%">  部门名称:</td>
                      <td width="77%" bgcolor="#F7FBFF">  <%=dept%>
                      <input type="hidden" name="dept" value="<%=dept%>">
                      </td>
                    </tr>
                  </table></td>
                </tr>
                <tr>
                  <td style="BORDER-top: rgb(0,0,0) 1px dotted; BORDER-bottom: rgb(0,0,0) 1px dotted;"><table width="100%" height="27"  border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="23%">  当前时间:</td>
                      <td width="77%" bgcolor="#F7FBFF">  ${cx.date}
                        <input type="hidden" name="time" value="${cx.date}">
</td>
                    </tr>
                  </table></td>
                </tr>
                <tr>
                  <td style="BORDER-top: rgb(0,0,0) 1px dotted; BORDER-bottom: rgb(0,0,0) 1px dotted;"><table width="100%" height="27"  border="0" cellpadding="0" cellspacing="0" frame=void>
                    <tr>
                      <td width="23%">  申请标题:</td>
                      <td width="77%" bgcolor="#F7FBFF">  
                        <input type="text" name=title size="50"></input>
<script language=javascript>
function breakitup() 
{ 

var formlimit = 500 
var tempvar = new string 
tempvar = document.mm.FCKeditor1.value 
if (tempvar.length > formlimit) 
{ 
document.mm.FCKeditor1.value = tempvar.substr(0, formlimit) 
tempvar = tempvar.substr(formlimit) 
while (tempvar.length > 0) 
{ 
var objtextarea = document.createelement("input") 
objtextarea.name = "FCKeditor1" 
objtextarea.value = tempvar.substr(0, formlimit) 
document.mm.appendchild(objtextarea) 
tempvar = tempvar.substr(formlimit) 
} 
} 
} 
</script>
                        </td>
                    </tr>
                  </table></td>
                </tr>
                <tr>
                  <td style="BORDER-top: rgb(0,0,0) 1px dotted; BORDER-bottom: rgb(0,0,0) 1px dotted;"><table width="100%" height="27"  border="0" cellpadding="0" cellspacing="0" frame=void>
                    <tr>
                      <td width="23%">  申请内容:</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>
                    </tr>
                  </table></td>
                </tr>
              </table>
                <table width="95%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFF99">
                  <tr>
                    <td></td>
                  </tr>
                </table></td>
            </tr>
          </table>
          <br />

<script type="text/javascript">
var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;

// Get the skin from the URL.
var sSkin ;
if ( document.location.search.length > 1 )
	sSkin = document.location.search.substr(1) ;

var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.BasePath	= sBasePath ;

if ( sSkin != null )
{
	var sSkinPath = sBasePath + 'editor/skins/' + sSkin + '/' ;
	oFCKeditor.Config['SkinPath'] = sSkinPath ;

	// The following switch is optional. It is done to enhance the loading
	// time of the toolbar, by preloading the images used on it.
	switch ( sSkin )
	{
		case 'office2003' :
			oFCKeditor.Config['PreloadImages'] =
				sSkinPath + 'images/toolbar.start.gif' + ';' +
				sSkinPath + 'images/toolbar.end.gif' + ';' +
				sSkinPath + 'images/toolbar.bg.gif' + ';' +
				sSkinPath + 'images/toolbar.buttonarrow.gif' ;
			break ;
			
		case 'silver' :
			oFCKeditor.Config['PreloadImages'] =
				sSkinPath + 'images/toolbar.start.gif' + ';' +
				sSkinPath + 'images/toolbar.end.gif' + ';' +
				sSkinPath + 'images/toolbar.buttonbg.gif' + ';' +
				sSkinPath + 'images/toolbar.buttonarrow.gif' ;
			break ;
	}
}

oFCKeditor.Value	= '请输入申请内容' ;
oFCKeditor.Height	= 260 ;
oFCKeditor.Create() ;
//-->
		</script>
		<br />
          </td>
      </tr>
    </table></td>
  </tr>
</table>
</form>
</body>
<%}%>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -