DHTMLX-Form
来源:互联网 发布:政治庇护 知乎 编辑:程序博客网 时间:2024/06/08 02:40
DHTMLX-Form
dhtmlxForm提供了一个标准形式与一些有用的补充,如不同风格,使用的数据从客户端和服务器端,与其他dhtmlx组件的集成、验证等。
例子
<!DOCTYPE html><html><head> <title>Web skin</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge"/> <link rel="stylesheet" type="text/css" href="../../../skins/web/dhtmlx.css"/> <script src="../../../codebase/dhtmlx.js"></script> <script> var myForm, formData; function doOnLoad() { formData = [ {type: "settings", position: "label-right", labelWidth: "auto", inputWidth: 130}, {type: "label", label: "Web Skin"}, {type: "checkbox", label: "Sync data with FTP server", checked: true, list:[ {type: "settings", labelWidth: 90, inputWidth: 200, position: "label-left"}, {type: "input", name: "ftp_server", label: "Server", value: "ftp://backup.mydomain.com"}, {type: "input", name: "ftp_login", label: "Login", value: "user"}, {type: "password", name: "ftp_pwd", label: "Password", value: "password"}, {type: "select", name: "ftp_sync", label: "Sync every", options:[ {value: "day", text: "day"}, {value: "2ndday", text: "second day"}, {value: "friday", text: "friday"}, {value: "2ndfriday", text: "second friday", selected: true}, {value: "Month", text: "last friday in a month"} ]}, {type: "checkbox", name: "ftp_log", value: 1, label: "Enable log", checked: true} ]}, {type: "checkbox", label: "Init system hardware upgrade", offsetTop: 10, checked: true, list: [ // {type: "settings", labelWidth: 90, inputWidth: 100, position: "label-left"}, {type: "calendar", label: "Start Date", name: "reminder", enableTime: false, calendarPosition: "right", value:"2013-03-01" }, {type: "select", label: "Duration", options:[ {value: "day", text: "day"}, {value: "week", text: "week", selected: true}, {value: "2weeks", text: "two weeks"} ]} ]}, {type: "checkbox", label: "Use custom UI colors", checked: true, offsetTop: 10, list:[ {type: "settings", labelWidth: "auto", inputWidth: "auto"}, {type: "fieldset", label: "Font", inputWidth: 160, list: [ {type: "radio", name: "fontcolor", label: "Black", checked: true}, {type: "radio", name: "fontcolor", label: "Blue"}, {type: "radio", name: "fontcolor", label: "Green"} ]}, {type: "newcolumn"}, {type: "fieldset", label: "Background", inputWidth: 160, offsetLeft: 30, list:[ {type: "radio", name: "bgcolor", label: "White", checked: true}, {type: "radio", name: "bgcolor", label: "Yellow"}, {type: "radio", name: "bgcolor", label: "Gray"} ]} ]}, {type: "checkbox", label: "Custom font", checked: true, offsetTop: 10, list:[ {type: "combo", label: "", inputWidth: 120, options: [ {value: "tahoma", text: "Tahoma"}, {value: "arial", text: "Arial", selected: true}, {value: "verdana", text: "Verdana"} ]}, {type: "newcolumn"}, {type: "combo", label: "", inputWidth: 70, offsetLeft: 5, options: [ {value: "12", text: "12px"}, {value: "13", text: "13px"}, {value: "14", text: "14px", selected: true} ]} ]}, {type: "checkbox", label: "Upload new data", checked: true, offsetTop: 10, list:[ {type: "fieldset", label: "Files", inputWidth: 350, list:[ {type: "upload", name: "myFiles", inputWidth: 330, url: "../07_uploader/php/dhtmlxform_item_upload.php", _swfLogs: "enabled", swfPath: "../../../codebase/ext/uploader.swf", swfUrl: "../../samples/07_uploader/php/dhtmlxform_item_upload.php"} ]} ]}, // {type: "checkbox", label: "Yes! I'm sure to save changes", offsetTop: 10, checked: 1, list:[ // {type: "button", value: "Save", offsetLeft: 50, offsetTop: 10, inputWidth: 50}, {type: "newcolumn"}, {type: "button", value: "Cancel", offsetLeft: 8, offsetTop: 10} ]} ]; myForm = new dhtmlXForm("myForm", formData); myForm.setFocusOnFirstActive(); } </script></head><body onload="doOnLoad();"> <div id="myForm"></div></body></html>
效果
0 0
- DHTMLX-Form
- Dhtmlx
- DHTMLX TabBar
- DHTMLX 简介
- dhtmlx touch
- dhtmlx使用
- 讲一讲dhtmlx
- ajax dhtmlx
- dhtmlx menus
- dhtmlx-calendar
- DHTMLX-Vault
- DHTMLX-Grid
- DHTMLX-Tree
- DHTMLX-Tabbar
- DHTMLX-Windows
- struts2 结合 dhtmlx tree
- DHTMLX Tree示例
- DHTMLX TREE userdata 使用
- Android--关于Gradle的一些记录
- 基础了解
- MySQL数据库学习——运算符和函数
- Visual studio中AStyle Extension插件的安装和配置及使用
- JavaScript中的Date对象
- DHTMLX-Form
- Python高级技巧
- PHP 模板 smarty 逻辑运算符号
- 解决Centos关闭You have new mail in /var/spool/mail/root提示
- 遍历HashMap的四种方法
- 【杭电】 1001 Sum Problem
- 现代化Web的微服务架构最佳实践全景
- 深度增强学习方向论文整理
- [Android Studio 权威教程]打包、生成jks密钥、签名Apk、多渠道打包