add_question.jsp
来自「人力资源管理系统」· JSP 代码 · 共 62 行
JSP
62 行
<%@ 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="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/page.tld" prefix="page" %>
<html>
<head>
<base href="http://localhost:8080/accp_hr/"/>
<title>一级试题==添加页面</title>
</head>
<body bgcolor="#DADEDD" style="background-image: url('images/accphr/main.jpg');background-attachment :fixed ;">
<input type="button" value="返回" onclick="location.href='firstQuestion.do?opfq=toList'" >
<html:form action="firstQuestion" onsubmit="return tijiao();">
<input type="hidden" name="opfq" value="doAdd"/>
<table align="center" width="100%">
<tr>
<td>
<table border="1" cellspacing="0" align="center" width="90%" bordercolor="black" style="font-size: 12px">
<tr>
<th>属性ID</th>
<td>
<html:text property="firstQuestion.firstKindId" value="${newid}" readonly="true"></html:text>
</td>
</tr>
<tr>
<th>属性名称</th>
<td>
<html:text property="firstQuestion.firstKindName" styleId="kname"></html:text>
</td>
</tr>
</table></td>
</tr>
<tr>
<td align="center">
<html:submit value="保存"></html:submit> <html:reset value="重置"></html:reset>
</td>
</tr>
</table>
</html:form>
</body>
</html>
<script type="text/javascript">
<!--
function tijiao(){
var kindn=document.getElementById("kname").value;
if(kindn==''){
alert("名称不能为空");
return false;
}
}
//-->
</script>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?