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

📄 nt_list.jsp.svn-base

📁 用JSP JAVA 做的 系统 只是初来扎到还望西黄!别乱来哦!
💻 SVN-BASE
字号:
<!--function:公告列表
	author:zxh
-->
<%@ page language="java" import="java.util.*" pageEncoding="GB2312"%>
<%@ taglib uri="/WEB-INF/tlds/frametag.tld" prefix="by"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>公告列表</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<script language="javascript">
	
	
	function getNow(){
	    var Stamp=new Date();
	    var year = Stamp.getYear();
	    var month = Stamp.getMonth()+1;
	    var day = Stamp.getDate();
		var hour=Stamp.getHours();
		var minute=Stamp.getMinutes();
		var second=Stamp.getSeconds();
	
	    if(month<10){
		month="0"+month;
	    }
	    if(day<10){
		day="0"+day;
	    }
		
		if(hour<10){
		hour="0"+hour;
	    }
	
		if(minute<10){
		minute="0"+minute;
	    }
	
		if(second<10){
		second="0"+second;
	    }
	
	    return year+"-"+month+"-"+day+" "+hour+":"+minute+":"+second;
	}
	
	
		function isDelBm(id)
		{	
			location.href="<%=path%>/Selevet.do?action=NT_DELETE&id="+id;
		}			
		function looknt(id)
		{
			location.href="<%=path%>/Selevet.do?action=NT_LOOK&id="+id+"&time="+getNow();
		}					
		</script>
	
	<link rel="stylesheet" href="<%=path %>/CSS/style.css" type="text/css">
	</head>

	<body topmargin="0" leftmargin="0">
		<center>
		<div align="center">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td height="26" align="center" valign="middle" bgcolor="#66CCFF">
						公告列表
					</td>
				</tr>
			</table>
			</div>
			<p></p>
		<div align="center">
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td>
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<%=path%>/JSP/notice/nt_add.jsp">添加公告
					</a>
				</td>
			</tr>
		</table>
		</div>
		<input type="hidden" name="rowsel" value="注意,这个必须要">
		<table width="96%" border="1" id='rowTable' cellspacing="0" cellpadding="0"
					bordercolor="#99CCFF" bordercolordark="#FFFFFF">
			<tr>
						<td width="40%" height="27" bgcolor="#A4CDFF" align="center">
							<strong>公告标题</strong>
						</td>
						<td width="10%" height="27" bgcolor="#A4CDFF" align="center">
							<strong>发布人员</strong>
						</td>

						<td width="15%" height="27" bgcolor="#A4CDFF" align="center">
							<strong>发布时间</strong>
						</td>
						<td width="10%" height="27" bgcolor="#A4CDFF" align="center">
							<strong>操作</strong>
						</td>
					</tr>
					<by:forby name="nt_list" id="ntlist">
						<tr>
							<td height="25px" align="center" style="word-break:break-all">
								&nbsp;
								<by:logic col1="0" col2="${ntlist.STATUS}" logic="==">
									<IMG src="<%=path%>/IMAGES/newnote.gif" />
								</by:logic>
								<a href="javascript:{looknt('${ntlist.ID}');}" class="tex">${ntlist.TITLE}</a>
							</td>
							<td height="25px" align="center">
								&nbsp;${ntlist.ISSUE_USER_NAME}
							</td>
							<td height="25px" align="center">
								&nbsp;${ntlist.ISSUE_DATE}
							</td>

							<td height="25px" align="center">
								<a href="javascript:{looknt('${ntlist.ID}');}">查看</a>&nbsp;
								<by:logic col1="${ntlist.REMARKS}" col2="1" logic="==">

									<a href="javascript:{isDelBm('${ntlist.ID}');}"
										onClick="return confirm('删除该公告所有被通知的人员将一并删除,是否确定要删除?');">删除</a>
								</by:logic>
							</td>
						</tr>
					</by:forby>
				</table>
				
			${pagebar}
			
		</center>
	</body>
</html>

⌨️ 快捷键说明

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