extjs form image box 布局
来源:互联网 发布:淘宝卖虚拟赚钱吗 编辑:程序博客网 时间:2024/06/06 02:36
form5 = new Ext.FormPanel({
frame : true,
height : 500,
// labelWidth:90,
items : [{
layout : 'column',
items : [{
layout : "form",
items : [{
xtype : 'box', // 或者xtype: 'component',
// fieldLabel : '照片',
labelStyle : "text-align:center;",
width : 150, // 图片宽度
height : 150
// 图片高度
// autoEl : {
// tag : 'img', // 指定为img标签
// src :
// '/sshas/UploadFile/u=811744678,3980154701&fm=23&gp=0.jpg'
// }
}]
}]
}, {
layout : 'column',
items : [{
columnWidth : .3,
layout : "form",
items : []
}, {
columnWidth : .5,
layout : "form",
items : [{
fieldLabel : '照片',
labelStyle : "font-size:'20px';text-align:center;"
// labelStyle : "text-align:center;"
}, {
xtype : 'box', // 或者xtype: 'component',
width : 150, // 图片宽度
height : 150, // 图片高度
autoEl : {
tag : 'img', // 指定为img标签
src : '/sshas/UploadFile/u=811744678,3980154701&fm=23&gp=0.jpg'
}
}]
}]
}]
});
form3 = new Ext.FormPanel({
// renderTo:"cyrydetail",
bodyStyle : 'padding:20 40',
frame : true,
fileUpload : true,
height : 500,
title : "从业人员详细信息",
// width:700,
labelWidth : 104,
url : "cyryadd",
items : [{
layout : 'column',
items : [{
columnWidth : .5,
layout : "form",
items : [{
xtype : 'textfield',
fieldLabel : '<div style=\"vertical-align:middle;color:red;display:inline\">*</div>单位序号',
name : "dwid"
}]
}, {
columnWidth : .5,
layout : "form",
items : [{
xtype : 'textfield',
name : 'job',
fieldLabel : '<div style=\"vertical-align:middle;color:red;display:inline\">*</div>职务'
}]
}]
}, {
layout : 'column',
items : [{
columnWidth : .5,
layout : "form",
items : [{
xtype : 'textfield',
name : 'pname',
fieldLabel : '<div style=\"vertical-align:middle;color:red;display:inline\">*</div>姓名'
}]
}, {
columnWidth : .5,
layout : "form",
items : [{
xtype : 'textfield',
name : 'byname',
fieldLabel : '别名'
}]
}]
}, {
layout : 'column',
items : [{
columnWidth : .5,
layout : "form",
items : [{
xtype : 'textfield',
vtype : 'cardidyan',
name : 'cardid',
fieldLabel : '<div style=\"vertical-align:middle;color:red;display:inline\">*</div>身份证号'
}]
}, {
columnWidth : .5,
layout : "form",
items : [{
fieldLabel : '性别',
defaultType : 'radio',
layout : 'table',
isFormField : true,
items : [{
columnWidth : .25,
checked : true,
name : 'sex',
boxLabel : '男',
inputValue : '男'
}, {
columnWidth : .25,
name : 'sex',
boxLabel : '女',
inputValue : '女'
}]
}]
}]
}, {
layout : 'column',
items : [{
columnWidth : .5,
layout : "form",
items : [{
xtype : 'datefield',
fieldLabel : '出生日期',
format : 'Y-m-d',
name : "birthday",
width : 125,
editable : false
}]
}, {
columnWidth : .5,
layout : "form",
items : [{
xtype : 'textfield',
fieldLabel : '<div style=\"vertical-align:middle;color:red;display:inline\">*</div>手机号码',
name : "phone",
vtype : 'phoneyan'
}]
}
]
}
, {
layout : 'column',
items : [{
columnWidth : .5,
layout : "form",
items : [{
xtype : 'textfield',
fieldLabel : 'QQ号',
name : "qq",
vtype : 'qqyan'
}]
}, {
columnWidth : .5,
layout : "form",
items : [{
xtype : 'textfield',
fieldLabel : '户籍地址',
name : "address"
}]
}
]
}, {
layout : 'column',
items : [{
columnWidth : .5,
layout : "form",
items : [{
xtype : 'textfield',
fieldLabel : '户籍地详址',
name : "adddetail"
}]
}, {
columnWidth : .5,
layout : "form",
items : [{
xtype : 'textfield',
fieldLabel : '<div style=\"vertical-align:middle;color:red;display:inline\">*</div>现住地址',
name : "nowaddress"
}]
}
]
}, {
layout : 'column',
items : [{
columnWidth : .5,
layout : "form",
items : [{
xtype : 'textfield',
fieldLabel : '现住地详址',
name : "nadddetail"
}]
}, {
columnWidth : .5,
layout : "form",
items : [{
xtype : 'textfield',
fieldLabel : '<div style=\"vertical-align:middle;color:red;display:inline\">*</div>邮箱',
name : "email",
vtype : 'emailyan'
}]
}
]
}, {
layout : 'column',
items : [{
columnWidth : .9,
layout : "form",
items : [{
fieldLabel : '人员备注'
}, {
xtype : 'textarea',
name : 'detail',
hideLabel : true,
height : 50,
anchor : '99%'
}]
}]
}, {
layout : 'column',
items : [{
columnWidth : .5,
layout : "form",
items : [{
id : 'upload',
name : 'upload',
fieldLabel : "照片",
inputType : "file",
xtype : "field",
vtype : 'uploadyan'
}]
}, {
columnWidth : .5,
layout : "form",
items : [{
xtype : 'textfield',
fieldLabel : '<div style=\"vertical-align:middle;color:red;display:inline\">*</div>固定电话',
name : "tel",
vtype : 'telyan'
}]
}]
}, {
layout : 'column',
items : [{
columnWidth : .5,
layout : "form",
items : [{
xtype : 'textfield',
fieldLabel : '其他证件',
name : "otherzj"
}]
}, {
columnWidth : .5,
layout : "form",
items : [{
xtype : 'textfield',
fieldLabel : '其他证件联系方式',
name : "othercon"
}]
}]
}, {
layout : 'column',
items : [{
columnWidth : .5,
layout : "form",
items : [{
xtype : 'textfield',
fieldLabel : '填报人',
name : "iipersion"
}]
}, {
columnWidth : .5,
layout : "form",
items : [{
xtype : 'textfield',
fieldLabel : '填报人单位',
name : "idepname"
}]
}]
}
, {
layout : 'column',
items : [{
columnWidth : .5,
layout : "form",
items : [{
xtype : 'datefield',
format : 'Y-m-d',
fieldLabel : '填报时间',
name : "itime",
width : 125,
editable : false
}]
}, {
columnWidth : .5,
layout : "form",
items : [{
xtype : 'datefield',
fieldLabel : '入职时间',
format : 'Y-m-d',
name : "ruzhitime",
width : 125,
editable : false
}]
}]
}, {
layout : 'column',
items : [
/*
* ,{ columnWidth : .5, layout : "form", items : [{
* xtype:'datefield', fieldLabel:'离职时间', format:'Y-m-d',
* name:"lizhitime", width:120, editable:false }] }
*/
]
}]
});
var window = new Ext.Window({
title : '从业人员',
width : 1000,
height : 520,
minWidth : 300,
minHeight : 200,
layout : 'fit',
minimizable : true,
maximizable : true,
plain : true,
bodyStyle : 'padding:5px;',
buttonAlign : 'center',
// items : form3
items : [{
baseCls : "x-plain",
layout : "column",
items : [{
columnWidth : .7,
layout : "form",
items : [form3]
}, {
columnWidth : .3,
layout : "form",
items : [form5]
}]
}]
});
window.show();
- extjs form image box 布局
- ExtJs Form布局
- ExtJs Form布局
- Extjs form 表单布局技巧
- (转)form和column:extJS的布局
- form和column:extJS的布局关键字
- 学习ExtJS(十) form布局
- EXTJS FORM
- ExtJS Form
- extjs-->form
- 移动布局box||-webkit-box
- EXTJS 布局
- ExtJs 布局
- ExtJs布局
- extjs布局
- Extjs-布局
- extjs布局
- extjs 布局
- 突然感觉很孤独
- JSF中的columnClasses和rowClasses样式类
- poj 2318 TOYS(计算几何)
- 正则表达式:数值及数值型字符串三位一组格式化
- Android组件之使用ScrollView实现屏幕滚动【防止屏幕不够用】
- extjs form image box 布局
- 单片机上FLASH、EEPROM、RAM区别
- C# WinForm开发系列 - DataGridView
- ceph主要数据结构解析2-Rados.h文件
- 【研究生版】《漫漫邮子路(五)--我的研究生之路--吕林输》
- Eclipse自动插件依赖的一种配置解决方式
- 我钟爱的一段话,希望能对您有帮助
- CountDownLatch的介绍和使用
- 请注释你那该死的代码