smartclient --registervalidate

<%@ 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>


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值