汽车租赁管理系统/反编译出来的文件/carRentalSystem/carManager/updateCar.jsp
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'updateCar.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link type="text/css" rel="stylesheet" href="<%=basePath%>css/public.css">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<script type="text/javascript">
function subForm(){
//判断车号
var ity = new RegExp("[^\w]|[a-zA-Z_0-9]|[-]{4,10}");
//判断车型
var cte = new RegExp("[^\w]|[a-zA-Z_0-9]{1,10}");
//判断颜色
var clr = new RegExp("[^\w]{1,10}");
//判断数字
var num = new RegExp("[0-9]{1,10}.?[0-9]{0,2}");
var carnumber = document.getElementById("carNumber");
var cartype = document.getElementById("carType");
var color = document.getElementById("color");
var price = document.getElementById("price");
var rentprice = document.getElementById("rentPrice");
var deposit = document.getElementById("deposit");
//判断车号是否为空,是否匹配
if(carnumber.value == null || carnumber.value == ""){
alert("车号不能为空。中文,大写字母,数字");
carnumber.select();
return false;
}else if(carnumber.value.match(ity) == null){
alert("车号有误。中文,大写字母,数字");
return false;
//判断车型是否为空,是否匹配
}else if(cartype.value == null || cartype.value == ""){
alert("车型不能为空。中文,数字,英文。长度1-10位");
cartype.select();
return false;
}else if(cartype.value.match(cte) == null){
alert("车型有误。中文,数字,英文。长度1-10位");
return false;
//判断颜色是否为空,是否匹配
}else if(color.value == null || color.value == ""){
alert("颜色不能为空。中文,数字,英文。长度1-10位");
后面还有 125 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
