【JSP开源代码栏目提醒】:网学会员--在 JSP开源代码编辑为广大网友搜集整理了:actions.jsp绩等信息,祝愿广大网友取得需要的信息,参考学习。
<%@ page contentType="text/html; charset=GBK"%>
<%@ page import="java.util.*"%>
<%@ page import="org.appfuse.model.*"%>
<%@ page import="org.appfuse.webapp.form.*"%>
<%@ page import="org.appfuse.util.*"%>
<%@ 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"%>
<SCRIPT language=JavaScript src="<%=request.getContextPath()%>/include/check.js" type="text/javascript"></SCRIPT>
<html>
<head>
<link rel=stylesheet href="<%=request.getContextPath()%>/include/style.css">
<title>动作管理</title>
<SCRIPT language="javascript">
function searchAction()
{
document.actionForm.action="<%=request.getContextPath()%>/functionAction.do?method=search";
document.actionForm.submit();
}
function createAction()
{
document.actionForm.action="<%=request.getContextPath()%>/sysmanage/actionmanage/action_create.jsp";
document.actionForm.submit();
}
</SCRIPT>
</head>
<%
List actions = (List)request.getAttribute("actions");
%>
<body>
<form name="actionForm" method="POST" >
<table border="1px" cellspacing="0" cellpadding="10" align=center width="80%" bgColor=#E4E8EF>
<tr>
<td width="70%">动作编号
<input name="actionid" type="text" size="15">
<a href="#" onClick="searchAction();">查询</a>
</td>
<td width="30%">
<div align="center">
<a href="#" onClick="createAction();">创建新动作</a>
</div>
</td>
</tr>
</table>
<!--
<table border="1px" cellspacing="0" cellpadding="10" align=center width="80%" bgColor=#E4E8EF>
<tr>
<td align="left" width="70%">动作列表</td>
<td align="right" width="30%">
<input type="button" name="create" value="创建新动作" onClick="createStaff();">
</td>
</tr>
</table>
-->
<table border="1px" cellspacing="0" cellpadding="10" align=center width="80%" bgColor=#E4E8EF>
<tr bgcolor="#76aef0">
<th width="10%"><div align="center">动作编号</div></th>
<th width="30%"><div align="center">动作名称</div></th>
<th width="30%"><div align="center">动作描述</div></th>
<th width="30%"><div align="center">操作</div></th>
</tr>
<%
if(actions != null)
{
for(int i = 0; i< actions.size(); i++)
{
Action action = (Action)actions.get(i);
%>
<tr>
<td><%=StringUtil.getString(action.getActionid())%></td>
<td><%=action.getActionname()%></td>
<td><%=action.getDescription()%></td>
<td align="center">
<a href="<%=request.getContextPath()%>/functionAction.do?method=update&actionid=<%=action.getActionid()%>">编辑</a>
<a href="<%=request.getContextPath()%>/functionAction.do?method=delete&actionid=<%=action.getActionid()%>">删除</a>
<!--
<a href="<%=request.getContextPath()%>/actionAction.do?method=actionauth&actionid=<%=action.getActionid()%>">分配权限</a>
-->
</td>
</tr>
<%
}
}
%>
</table>
</form>
</body>
</html>
上一篇:
actionResult.jsp
下一篇:
经济酒店发展:China''s economy hotel market development strategies