<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String webpath = request.getContextPath();
String checktitle="不能为空";
//验证邮箱
String yzemail="class=\"easyui-textbox\" required=\"true\" validType=\"email\" invalidMessage=\"邮箱格式错误\" missingMessage=\"请输入邮箱\"";
//不能为空
String yz="class=\"easyui-textbox\" required=\"true\"  missingMessage=\""+checktitle+"\"";
//验证日期不能为空
String yzrq="class=\"easyui-validatebox Wdate\" required=\"true\"  missingMessage=\""+checktitle+"\"";
//不验证日期
String byzrq="class=\"Wdate\"";
//验证ip
String yzip="class=\"easyui-textbox\" required=\"true\" validType=\"ip\"  missingMessage=\""+checktitle+"\"";
//验证URL
String yzurl ="class=\"easyui-textbox\" required=\"true\" validType=\"url\" invalidMessage=\"网址格式错误\"  missingMessage=\"请输入网址\"";
//只能输入数字
String yznum ="class=\"easyui-numberbox\" required=\"true\" min=\"0\" precision=\"0\"  missingMessage=\"请输入数字\"";
//只能输入数字两个小数点
String yznum2 ="class=\"easyui-numberbox\" required=\"true\" min=\"0\" precision=\"2\" validType=\"length[1,8]\"  missingMessage=\"请输入数字\"";
//只能输入数字不验证
String yznumbyz ="class=\"easyui-numberbox\"";
//只能输入数字两个小数点不验证
String yznum2byz ="class=\"easyui-numberbox\" precision=\"2\" ";
//构造下拉框验证
String gzselyz ="class=\"easyui-combobox\" required=\"true\" editable=\"false\" missingMessage=\"请选择\"";
//构造下拉框不验证
String gzsel ="class=\"easyui-combobox\" required=\"false\" editable=\"false\"";
//验证序号
String yzxu ="class=\"easyui-numberbox\" required=\"true\"  validType=\"maxLength[2]\" missingMessage=\"请输入数字\"";
//验证手机号码
String mobile ="class=\"easyui-textbox\" required=\"true\" validType=\"mobile\" missingMessage=\""+checktitle+"\"";
//验证电话号码
String phone ="class=\"easyui-textbox\" required=\"true\" validType=\"phone\" missingMessage=\""+checktitle+"\"";
//验证货币
String currency ="class=\"easyui-textbox\" required=\"true\" validType=\"currency\" missingMessage=\""+checktitle+"\"";
//验证QQ
String qq ="class=\"easyui-textbox\" required=\"true\" validType=\"qq\" missingMessage=\""+checktitle+"\"";
//验证整数 
String integer ="class=\"easyui-textbox\" required=\"true\" validType=\"integer\" missingMessage=\""+checktitle+"\"";
//验证年龄
String age ="class=\"easyui-textbox\" required=\"true\" validType=\"age\" missingMessage=\""+checktitle+"\"";
//验证中文
String chinese ="class=\"easyui-textbox\" required=\"true\" validType=\"chinese\" missingMessage=\""+checktitle+"\"";
// 验证英语
String english ="class=\"easyui-textbox\" required=\"true\" validType=\"english\" missingMessage=\""+checktitle+"\"";
// 验证是否包含空格和非法字符
String unnormal ="class=\"easyui-textbox\" required=\"true\" validType=\"unnormal\" missingMessage=\""+checktitle+"\"";
// 验证用户名必须依字母开头
String username ="class=\"easyui-textbox\" required=\"true\" validType=\"username\" missingMessage=\""+checktitle+"\"";
// 验证传真 
String faxno ="class=\"easyui-textbox\" required=\"true\" validType=\"faxno\" missingMessage=\""+checktitle+"\"";
// 验证邮政编码 
String zip ="class=\"easyui-textbox\" required=\"true\" validType=\"zip\" missingMessage=\""+checktitle+"\"";
//验证msn账号
String msn ="class=\"easyui-textbox\" required=\"true\" validType=\"msn\" missingMessage=\""+checktitle+"\"";
//身份证验证
String idcard ="class=\"easyui-textbox\" required=\"true\" validType=\"idcard\" missingMessage=\""+checktitle+"\"";
//验证确认密码
String confirmpwd ="class=\"easyui-textbox\" required=\"true\" validType=\"same['upexpertpass']\" missingMessage=\"两次输入密码不一致\"";

String yzappaccount ="class=\"easyui-textbox\" required=\"true\" validType=\"sysuseraccount['"+webpath+"']\" missingMessage=\""+checktitle+"\"";
//获取当前年份
Calendar cal = Calendar.getInstance(); 
//手机+电话号码验证
String yzsjdh ="class=\"easyui-textbox\" required=\"true\" validType=\"sjdh['"+webpath+"']\" missingMessage=\""+checktitle+"\"";

String yzsjdhs ="class=\"easyui-textbox\" required=\"false\" validType=\"sjdh['"+webpath+"']\" missingMessage=\""+checktitle+"\"";
//密码字符验证
String yzpwd="class=\"easyui-textbox\" required=\"true\" validType=\"length[6,20]\"  missingMessage=\""+checktitle+"\"";

int year = cal.get(Calendar.YEAR); 
int y1=year-1;
int y2=year-2;
int y3=year-3;


%>