• 转载别人的一个人事考勤


    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <link rel="stylesheet" type="text/css" href="touch/resources/css/sencha-touch.css">
        <script id="microloader" type="text/javascript" src="touch/sencha-touch-debug.js"></script>
    </head>
        <style type="text/css">
            a {
                text-decoration: none;
            }
        </style>
        <script>
            Ext.require("Ext.MessageBox");
            Ext.application({
                name: "PersonnelAttendanceSystem",
                launch: function() {
                    var dockedItems = [{
                        xtype: 'toolbar',
                        dock: 'top',
                        items: [
                            {
                                text: '退出',
                                ui: 'back',
                                handler: function() {
    
                                }
                            },
                            { xtype: 'spacer' },
                            {
                                text: '注册',
                                ui: 'action',
                                handler: function() {
    
                                }
                            }
                        ]
                    }];
                    var mainPanel = Ext.create('Ext.Container', {
                        fullscreen: true,
                        layout: 'vbox',
                        items: [
                            {
                                dockedItems: dockedItems
                            },
                            { xtype: 'spacer' },
                            {
                                xtype: 'panel',
                                style: 'text-align:center;font-size: 24pt;',
                                html: '人事考勤系统',
                                id: 'form',
                                flex: 2
                            },
                            {
                                xtype: 'panel',
                                flex: 4,
                                items: [
                                    {
                                        xtype: 'fieldset',
                                        items: [
                                            {
                                                xtype: 'emailfield',
                                                labelAlign: 'left',
                                                name: 'username',
                                                id: 'username',
                                                label: '用户名:',
                                                placeHolder:'输入用户名'
                                            },
                                            {
                                                xtype: 'passwordfield',
                                                labelAlign: 'left',
                                                name: 'password',
                                                id: 'password',
                                                label: '密码:',
                                                placeHolder: '输入密码'
                                            }
                                        ]
                                    }
                                ]
                            },
                            {
                                layout:'hbox',
                                items:[
                                    {
                                        xtype: 'button',
                                        name: 'login',
                                        id: 'login',
                                        text: '登录',
                                        style: 'margin-left:10px;',
                                        ui:'action',
                                         150,
                                        handler:function() {
                                            var usernameProxy = Ext.getCmp('username').getValue();
                                            var passwordProxy = Ext.getCmp('password').getValue();
                                            if(usernameProxy == '') {
                                                Ext.Msg.alert("错误信息", "用户名不能为空.");
                                            } else if(passwordProxy == '') {
                                                Ext.Msg.alert("错误信息", "密码不能为空.");
                                            }
    
                                        }
                                    },
                                    {
                                        xtype: 'panel',
                                        style: 'margin-left:10px;padding-top:10px;',
                                        html: "<a href='#'>忘记密码?</a>"
                                    }
                                ]
                            },
                            { xtype: 'spacer' }
                        ]
                    });
                    Ext.Viewport.add(mainPanel);
                }
            });
    
        </script>
    <body>
    
    </body>
    </html>


    原文:http://blog.csdn.net/nihaozhangchao/article/details/9153689

      

  • 相关阅读:
    随想 20180517
    随想 20180516
    随想 20180514
    alpinelinux
    装系统时总是提示 保存分区表时出现错误(0000000001)函数不正确
    kindeditor在Firefoxt 和 Chrome 下不能取到值的解决方法
    浏览器兼容
    php生成随机密码的几种方法
    按钮效果
    linux下修改/dev/shm tmpfs文件系统大小
  • 原文地址:https://www.cnblogs.com/sarahVSEve/p/3523732.html
Copyright © 2020-2023  润新知