日期:2014-05-16 浏览次数:20625 次
var addAdminForm = new Ext.form.FormPanel({
width: 315,
height: 270,
plain: true,
layout: "form",
defaultType: "textfield",
labelWidth: 55,
baseCls: "x-plain",
defaults: { anchor: "95%", msgTarget: "side" },
buttonAlign: "center",
bodyStyle: "padding:0 0 0 0",
items: [
{
fieldLabel: '管理员',
id: "adminName",
allowBlank: false,
blankText: "请输入账号和密码"
}, {
fieldLabel: '密码',
id: "adminPwd",
allowBlank: false,
blankText: "请输入账号和密码",
inputType: "password"
}, {
fieldLabel: '确认密码',
id: "reAdminPwd",
allowBlank: false,
blankText: "确认密码不能为空",
inputType: "password",
invalidText: '两次密码不一致',
validator: function() {
if (Ext.get('adminPwd').dom.value == Ext.get('reAdminPwd').dom.value) {
return true;
} else {
return false;
}
}
}, new Ext.form.Checkbox({
boxLabel: "创建管理员账号",
id: "aCreateAdmin"
}),
{
xtype: "checkbox",