📄 archive_basicdata_list.jsp
字号:
<%@ page contentType="text/html;charset=utf-8"%>
<%@ page import = "java.net.URLEncoder"%>
<%@ page import = "java.util.*"%>
<%@ page import = "cn.js.fan.util.*"%>
<%@ page import = "cn.js.fan.web.*"%>
<%@ page import = "java.util.Enumeration"%>
<%@ page import = "java.util.Iterator"%>
<%@ page import = "org.jdom.*"%>
<%@ page import = "com.redmoon.oa.BasicDataMgr"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>基础数据维护</title>
<link href="../../common.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {font-size: 14px}
.STYLE3 {color: #FFFFFF}
.STYLE4 {
color: #000000;
font-weight: bold;
}
.STYLE5 {color: #FF0000}
.STYLE6 {color: #000000}
-->
</style>
</head>
<body background="" leftmargin="0" topmargin="5" marginwidth="0" marginheight="0">
<jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
<%
if (!privilege.isUserPrivValid(request, "archive.basicdata")) {
out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request, "pvg_invalid")));
return;
}
%>
<table width="90%" height="89" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="main">
<tr>
<td width="98%" height="23" class="right-title"><span> 基础数据维护管理</span></td>
</tr>
<tr>
<td width="98%" height="4"></td>
</tr>
<tr>
<td align="center">
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="0">
<tr>
<td width="16%" height="25" align="center" bgcolor="#C4DAFF">基础数据名称</td>
<td width="28%" align="center" bgcolor="#C4DAFF">内容</td>
<td height="25" colspan="3" align="center" bgcolor="#C4DAFF">操作</td>
</tr>
<%
BasicDataMgr bdm = new BasicDataMgr("archive");
Element root = bdm.getRootElement();
List childs = root.getChildren();
Iterator ir = childs.iterator();
int k = 0;
while (ir.hasNext()) {
Element e = (Element)ir.next();
k++;
%>
<tr>
<form name="form<%=k%>" action="archive_basicdata_do.jsp" method="post">
<td width="16%" height="22" align="left"><%=e.getAttributeValue("name")%></td>
<td width="28%" align="left">
<input type="hidden" name="op" value="delOption">
<select name="<%=e.getAttributeValue("code")%>">
<%
String options = bdm.getOptionsStr(e.getAttributeValue("code"));
%>
<%=options%>
</select> </td>
<td width="19%" height="22" align="center"><a href="javascript:form<%=k%>.op.value='setDefaultValue';form<%=k%>.submit()">设置默认项</a></td>
<td width="16%" height="22" align="center"><input type="hidden" name="itemCode" value="<%=e.getAttributeValue("code")%>">
<a href="javascript:form<%=k%>.submit()">删除项</a></td>
</form>
<form name="formAdd<%=k%>" action="archive_basicdata_do.jsp?op=addOption" method="post">
<td width="21%" height="22" align="center">
<input name="<%=e.getAttributeValue("code")%>" value="<%=e.getAttributeValue("code")%>" type="hidden">
<input type="hidden" name="itemCode" value="<%=e.getAttributeValue("code")%>">
<input name="optionValue" value="" size="5">
<a href="javascript:formAdd<%=k%>.submit()">添加项</a></td>
</form>
</tr>
<%}%>
</table>
</td>
</tr>
</table>
<br>
<br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -