📄 itemlist.jsp
字号:
<%@ page contentType="text/html;charset=gb2312"%>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
<html:html>
<head>
<title>无标题文档</title>
<link href="css/default.css" rel="stylesheet" type="text/css">
</head>
<SCRIPT LANGUAGE=javascript>
<!--
function SetFlag(act,menuid,id)
{
var ret=false;
if (act=="dodel") if(!(confirm("你确信要删除这篇文章吗?"))) ret=true;
if (!ret)
{ if (act=="loadadd") {
document.itemForm.action=document.itemForm.action+"?act="+act+"&menuid="+menuid;
}else {
document.itemForm.action=document.itemForm.action+"?act="+act+"&menuid="+menuid+"&id="+id;
}
document.itemForm.submit();
}
}
//-->
</SCRIPT>
<body>
<%
String menuid=(String)request.getAttribute("menuid");
String menuName=(String)request.getAttribute("menuName");
%>
<form name="itemForm" action="ItemAction.do" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td align="left">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="34" align="left"> 文章管理:<%=menuName%>=>文章列表</td>
<td height="34" align="right"> <a href="ItemAction.do?act=dolist&menuid=<%=menuid%>"><FONT color="#FF0000">文章管理</FONT></a> | <a href="MenuAction.do?act=dolist&menuid=<%=menuid%>">栏目管理</a></td>
</tr>
</table>
<hr>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20" align="right" width="100%" colspan="2">
<input type="button" name="addItem" value="添加文章" onclick="SetFlag('loadadd','<%=menuid%>','')">
</td>
</tr>
<tr>
<td colspan="2"><table width="100%">
<tr align="center">
<td height="30" nowrap>文章标题</td>
<td height="30" nowrap>上传日期</td>
<td height="30" nowrap>是否在用</td>
<td height="30" colspan="3" nowrap>操作</td>
</tr>
<logic:iterate id="item" name="itemList">
<tr>
<td height="25" align="left" nowrap> <bean:write name="item" property="dnetName"/></td>
<td height="25" align="left" nowrap> <bean:write name="item" property="dnetDate"/></td>
<td height="25" align="center" nowrap>
<logic:equal name="item" property="isUse" value="1">是</logic:equal>
<logic:equal name="item" property="isUse" value="0">否</logic:equal>
</td>
<td width="7%" height="25" align="center"><input type="button" name="editItem" value="修改" onclick="SetFlag('loadedit','<%=menuid%>','<bean:write name="item" property="ID"/>')"></td>
<td width="7%" height="25" align="center"><input type="button" name="delItem" value="删除" onclick="SetFlag('dodel','<%=menuid%>','<bean:write name="item" property="ID"/>')"></td>
<td width="7%" height="25" align="center">
<logic:equal name="item" property="isUse" value="1">
<input type="button" name="stopItem" value="禁用" onclick="SetFlag('dostop','<%=menuid%>','<bean:write name="item" property="ID"/>')">
</logic:equal>
<logic:equal name="item" property="isUse" value="0">
<input type="button" name="startItem" value="启用" onclick="SetFlag('dostart','<%=menuid%>','<bean:write name="item" property="ID"/>')">
</logic:equal>
</td>
</tr>
</logic:iterate>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<hr>
<table width="100%">
<tr>
<td width="100%" height="10" align="center" colspan="6"><%@ include file="../../include/page_control.jsp"%></td>
</tr>
</table>
</form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -