📄 jcy_ry_new_submit.jsp
字号:
<%@ page contentType="text/html; charset=GBK" language="java" import="java.sql.*,com.vstsoft.std.*" errorPage="errorPage.jsp" %>
<%vststd std = new vststd();%>
<%
String errtext = "";
String username = std.getValue(request, "username");
String sfzh = std.getValue(request, "sfzh");
if (username.equals(""))
errtext = "请填写姓名!";
else if (sfzh.equals(""))
errtext = "请填写身份证号码!";
else if (!std.checkNumber(sfzh))
errtext = "身份证号码必须为数字!";
else if (sfzh.length() != 15 & sfzh.length() != 18)
errtext = "请正确填写身份证号码!身份证号码长度必须为15或者18位数字!";
else if (!username.equals("") && !sfzh.equals("")){
String sql_select = "select count(*) from jcy_ry where username = '"+username+"' and sfzh = '"+sfzh+"'";
sun.jdbc.rowset.CachedRowSet crs = std.getResultBySelect(sql_select);
crs.next();
String num = crs.getString(1);
if (!num.equals("0"))
errtext = "此公务员已经存在!";
else
errtext = "ok";
}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>无标题文档</title>
</head>
<body onLoad="parent.f_err('<%=errtext%>', '<%=username%>', '<%=sfzh%>')">
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -