📄 dict_add.jsp
字号:
<%@ page language="java" pageEncoding="GBK" %>
<%@ 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="/WEB-INF/jb-common.tld" prefix="jb" %>
<script src="validate.js" ></script>
<script src="icommon.js" ></script>
<html:errors/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<title>新建数据字典项</title>
<link rel="stylesheet" type="text/css" href="styles.css" >
<script>
function doDel(id){
if ( window.confirm("确定删除?") ){
window.location.href = "?o=doDel&id=" + id;
}
}
</script>
</head>
<body class="main">
<html:form action="dict" method="post">
<html:hidden property="o" value="doAdd" />
<span class="page_title">新建数据字典项</span>
<div class="button_bar">
<button class="common_button" onclick="javascript:history.go(-1);">返回</button>
<button class="common_button" onclick="javascript:doSubmit('doAdd');">保存</button>
</div>
<table class="query_form_table" border="0" cellPadding="3" cellSpacing="0">
<tr>
<th>编号</th>
<td><html:text property="item.dictId" readonly="true" /></td>
<th>类别</th>
<td><html:text property="item.dictType" /></td>
</tr>
<tr>
<th>条目</th>
<td><html:text property="item.dictItem" /></td>
<th>值</th>
<td><html:text property="item.dictValue" /></td>
</tr>
<tr>
<th>是否可编辑</th>
<td>
<html:select property="item.dictIsEditable">
<html:option value="1">是</html:option>
<html:option value="0">否</html:option>
</html:select>
</td>
<th> </th>
<td> </td>
</tr>
</table>
<script>
// build_validate("item.dictId","编号不能为空","Limit","1","8"); build_validate("item.dictType","类别不能为空","Limit","1","50"); build_validate("item.dictItem","条目不能为空","Limit","1","50"); build_validate("item.dictValue","值不能为空","Limit","1","50");// build_validate("item.dictIsEditable","1-可以;0-不可以不能为空","Limit","1","1"); </script>
</html:form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -