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

📄 showallnotice.jsp

📁 图书馆管理系统 能满足 查询
💻 JSP
字号:
<%@ page language="java" pageEncoding="utf-8"%>
<%@page import="com.jxyd.common.Fenye"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
	<head>
		<title>库存图书</title>
		<link href="<%=basePath%>/css/style.css" rel="stylesheet">
		<link href="<%=basePath%>/css/main.css" rel="stylesheet">
	</head>
      <script type="text/javascript">
        function radioshifou(id){
        var yn=document.getElementById("yn"+id).value;
    if( confirm('确定修改?')){
    document.showform.action="notice.do?method=UpdateNoticeYn&id="+id+"&yn="+yn;
    document.showform.submit();   
    return true;
    }
    }
		</script>		
	<body>
		<form action="" name="showform" method="post">
			&nbsp;
			<!--RIGHT-->
			<div class="right">
				<div class="content">
					<p align="center">
						管理已发布公告
					</p>
					<div class="data_bot1" id="lendinfo" align="center">
						<table>
							<tr>
								<th>
									编号
								</th>
								<th>
									主题
								</th>
								<th>
									内容
								</th>
								<th>
									可见类型
								</th>
								<th>
									发布时间
								</th>
								<th>
									操作
								</th>
							</tr>
							<logic:present name="notice">
								<logic:iterate id="nb" name="notice" type="com.jxyd.vo.NoticeBean">
									<tr>
									<td>
									 <%=nb.getId() %>
									</td>
										<td>
											<%=nb.getTitle() %> 
										</td>
										<td>
											<MARQUEE scrollAmount=2 width="100%" height=22 onmouseover="this.stop()"
											onmouseout="this.start()" id=<%=nb.getId() %>><%=nb.getContent()%>
										</MARQUEE>
										</td>
										<td>
											<%=nb.getType() %>
										</td>
										<td>
											<%=nb.getAddDate() %>
										</td>
										<td>
										 <input type="radio" id="yn<%=nb.getId() %>"
												value="<%=nb.getYesno() %>"
												onclick="radioshifou(<%=nb.getId()%>)"
												<% if(nb.getYesno()==1){ %> checked="checked" <%} %>>
											<input type="radio" id="yn<%=nb.getId() %>"
												value="<%=nb.getYesno() %>"
												onclick="radioshifou(<%=nb.getId()%>)"
												<%  if(nb.getYesno()==2){ %> checked="checked" <%} %>>
										</td>
										<td>
											
										</td>
										<td>
											
										</td>
									</tr>
								</logic:iterate>
							</logic:present>
						</table>
						</div>
						<%
							Fenye fenye = (Fenye) request.getAttribute("fenye");
							if (fenye != null) {
						%>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<%=fenye.getDisplay()%>
						<%
							}
						%>
				</div>
			</div>
		</form>
	</body>
</html:html>

⌨️ 快捷键说明

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