<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
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 'registervalidate.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">
<SCRIPT>var isomorphicDir="isomorphic/";</SCRIPT>
<SCRIPT SRC=modules/ISC_History.js></SCRIPT>
<SCRIPT SRC=modules/ISC_Core.js></SCRIPT>
<SCRIPT SRC=modules/ISC_Foundation.js></SCRIPT>
<SCRIPT SRC=modules/ISC_Containers.js></SCRIPT>
<SCRIPT SRC=modules/ISC_Grids.js></SCRIPT>
<SCRIPT SRC=modules/ISC_Forms.js></SCRIPT>
<SCRIPT SRC=modules/ISC_DataBinding.js></SCRIPT>
<SCRIPT SRC=modules/load_skin.js></SCRIPT>
</head>
<body>
<script type="text/javascript">
isc.Window.create({
ID: "modalWindow",
title: "注册窗口",
autoSize:true,
autoCenter: true,
showFooter: true,
isModal: true,
showModalMask: true,
autoDraw: false,
closeClick : function () {this.Super("closeClick", arguments)},
items: [
isc.DynamicForm.create({
autoDraw: false,
height: 48,
padding:4,
fields: [
{type:"header", defaultValue:"注册信息"},
{name: "username",title:"用户名"},
{name:"password1",title:"密码",type:"password"},
{name: "password2", title: "确认密码", type: "password",
length: 20, validators: [{type: "matchesField",otherField: "password1",
errorMessage: "Passwords do not match"}]
},
{name:"nickname", title:"昵称"},
{name:"phone",title:"联系电话",type:"text"
/* validators:[{
type:"mask",
mask:"^\s*(1?)\s*\(?\s*(\d{3})\s*\)?\s*-?\s*(\d{3})\s*-?\s*(\d{4})\s*$",
transformTo:"$1($2)$3-$4"
}]*/
},
{name:"email",title:"Email",type:"text",requried:"true",
validators:[{
type:"regesp",
expression:"^([a-zA-Z0-9_.\-+])+@(([a-zA-Z0-9\-])+\.)+[a-zA-Z0-9]{2,4}$"
}]
},
{name:"education", title:"学历",editorType:"select",valueMap:["------博士","-------硕士","-------本科","------大专","-------中专","---高中毕业","初中毕业","小学毕业","文盲"]},
{name:"birthday",title:"生日",editorType:"date"},
{name:"remark",title:"备注",editorType:"textArea",width:200},
{name:"upload",title:"上载图片",editorType:"upload",length:20,width:180},
{name: "acceptTerms", title: "I accept the terms of use.", type: "checkbox", required: true, width: "150"},
{name:"submit",title:"提交",editorType:"button",width:50,click:"form.validate()"},
{name:"reset",title:"重置",editorType:"reset",width:50,left:200},
{type: "button", title: "Done",click: "modalWindow.hide()" }
]
})
]
});
});
</script>
</body>
</html>