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

📄 showmsg.jsp

📁 oa办公系统
💻 JSP
字号:
<%@ page language="java" import="java.util.*,java.text.SimpleDateFormat"
	pageEncoding="gbk"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<link href="../common/defaultFa/css/all.css" rel="stylesheet"
		type="text/css" />
	<link href="../common/defaultFa/css/css.css" rel="stylesheet"
		type="text/css" />
	<head>
		<title>查看新短信息</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gbk">
		<script language="JavaScript">
	function MyLoad()
	{
    	MyTimer();
	}

	TimeStart=15;

	function MyTimer()
	{
   		if(TimeStart==0)
      	window.close();

   		document.getElementById("TimeShow").innerHTML=TimeStart;
   		TimeStart--;

   		var timer=setTimeout("MyTimer()",1000);
	}
	function revert(sendId,msgId){
		if(window.opener){
			window.opener.frameRight.location="presendmsg?setread="+msgId+"&toId="+sendId;
			window.close();
		}
		else{
			document.f1.setread.value=msgId;
			document.f1.toId.value=sendId;
			document.f1.action="presendmsg";
			document.f1.submit();
		}
	}
	function deleteMsg(msgId){
			document.f1.msgId.value=msgId;
			document.f1.action="delmsg";
			document.f1.submit();	
	}
	// 修改
	function setReadState(msgId){
		document.f1.action="setreadstate";
		document.f1.setread.value=msgId;
		document.f1.submit();		
		
	}
	function linkTo(msgId){
		if(window.opener){
			window.opener.frameRight.location="acceptmsg?setread="+msgId;
			window.close();
		}else{
			document.f1.setread.value=msgId;
			doucment.f1.action="acceptmsg";
			document.f1.submit();
		}
	}
</script>
	</head>
	<body class="bodycolor" topmargin="0" leftmargin="0" onload="MyLoad();">
		<form action="" name="f1" method="post">
			<table border="0" align="center" cellpadding="0" cellspacing="0"
				class="tb_title">
				<tr>
					<th align="left" valign="middle">
						<img src="${requestScope.message.msgImagePath}"
							alt="${requestScope.message.msgTypeName}" width="15" height="15"
							align="absmiddle">
						${requestScope.message.msgTypeName}
					</th>
					<td>
						&nbsp;
					</td>
				</tr>
			</table>
			<table border="0" cellspacing="0" width="100%" cellpadding="4"
				align="center">
				<tr>
					<td align="left">
						发信人:${requestScope.sendUser.realName}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					</td>
					<td align="right">
						<span class="big4" style="color:#FF0000;FONT-WEIGHT: bold;">${requestScope.msgNum}</span>条新短信
						,本窗口
						<span id="TimeShow" style="color:#FF0000;FONT-WEIGHT: bold;"></span>&nbsp;秒后关闭
					</td>

				</tr>
				<tr valign="top">
					<td height="57" colspan="2">
						<c:choose>
							<c:when test="${fn:length(requestScope.message.msgInfo)>100}">
									消息内容:&nbsp;&nbsp;${fn:substring(requestScope.message.msgInfo,0,80)}...
								</c:when>
							<c:otherwise>
									消息内容:&nbsp;&nbsp;${requestScope.message.msgInfo}
								</c:otherwise>
						</c:choose>
					</td>
				</tr>
				<tr>
					<td align="left">
						收信人:${requestScope.accUser.realName }
					</td>
					<td align="right">
						发送时间:${fn:substring(requestScope.message.sendTime,0,19) }

					</td>

				</tr>
				<tr nowrap>
					<td colspan="2" bgcolor="#0099CC">
						<div align="right">
							<input type="hidden" name="setread" />
							<input type="hidden" name="msgId" />
							<input type="hidden" name="toId" />
							<a
								href="javascript:setReadState(${requestScope.message.msgId });">
								<font color="#FFFFFF">我知道了</font> </a>&nbsp;&nbsp;
							<a
								href="javascript:revert(${requestScope.message.sendId},${requestScope.message.msgId});">
								<font color="#FFFFFF">回复</font> </a>&nbsp;&nbsp;
							<a href="javascript:linkTo(${requestScope.message.msgId});">
								<font color="#FFFFFF">链接</font> </a>&nbsp;&nbsp;
							<a href="javascript:deleteMsg(${requestScope.message.msgId})">
								<font color="#FFFFFF">删除</font> </a>&nbsp;&nbsp;
						</div>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>

⌨️ 快捷键说明

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