曝自己举行的一个管制网(清新作风)EasyUI

多年来档扫尾了,现在也要是和谐总结一下祥和之硕果了,总结会加重自己对项目之记忆的。这里自己虽先行晾一些作图片了,希望大家看了会面拍手叫好一个!

列则结束了,但是连下去的之路而是即使不是本人一个人口得以搞定的了,太多的未知数(X)伴随着咱IT男!

第一是登录界面—登录界面我一直比较好的风格就简,大气,没有太多的信展示,毕竟是一个管理体系,不是前台网站

其时统筹之界面的当儿也是纪念了非常悠久的,当然是页面可以起众多之背景图片风格的。你可任意的就配图!个人于欣赏冷色调的

立即虽是登录界面的代码了!

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="WD_Web.Dzd.login" %>

<html>
<head>
    <title>后台管理员登录</title>
    <link href="css/progressbar.css" rel="stylesheet" />
    <style type="text/css">
        * { margin: 0px; padding: 0px; font-family: 微软雅黑; list-style: none; }

        #u { background-color: white; width: 327px; text-align: left; border: 1px solid #ccc; z-index: 10; display: none; margin: 0px; color: #B3B3B3; position: relative; top: 0px; left: 0px; }

            #u ul li { padding: 5px; height: 20px; line-height: 20px; }

        input { background-color: transparent; color: #B3B3B3; border: none; font-size: 16px; }

        #btnLogin { border-radius: 2px; font-size: 16px; color: #fff; text-shadow: 0 1px 0 rgba(117,155,0,0.65); width: 74px; height: 53px; cursor: pointer; -moz-border-radius: 2px; -webkit-border-radius: 2px; background-color: #84af00; }
    </style>
    <script src="../Scripts/jquery-1.7.1.min.js"></script>
    <script src="../artDialog4.1.6/artDialog.js?skin=aero"></script>
    <script src="../js/Jquery.form.js"></script>
    <script type="text/javascript">
        var email = new Array("163.com", "126.com", "yeah.net", "qq.com", "gmail.com", "hotmail.com", "sina.com", "yahoo.com");
        var imgs = new Array("1.jpg", "2.jpg", "3.jpg", "4.jpg", "5.jpg", "6.jpg", "7.jpg", "8.jpg", "9.jpg", "10.jpg");
        var tips = function (mess, icon)
        {
            art.dialog({ content: mess, title: '消息', lock: true, opacity: 0.2, icon: icon, ok: function () { this.close(); } });
        }
        function randImg()
        {
            var i = Math.floor((Math.random() * 10));
            var path = "img/bg/";
            if (i <= imgs.length - 1)
            {
                $('#bgImg').fadeIn(600).attr("src", path + imgs[i]);
            }
        }
        function loading(percent)
        {
            $('.container').show();
            $('.progress span').animate({ width: percent }, 1000, function ()
            {
                $(this).children().html(percent);
                if (percent == '100%')
                {
                    $(this).children().html('登陆成功,正在转向后台...    ');
                    setTimeout(function ()
                    {
                        $('.container').fadeOut();

                    }, 1000);
                }
            })
        }
        $(function ()
        {

            randImg();
            var k = 0;

            setBg();
            $('#btnLogin').click(function ()
            {
                var icon = "warning";
                if ($('#txtUserName').val() == '')
                {
                    tips('<p>请输入账号</p>', icon)

                    $('#txtUserName').focus();
                    return false;
                }
                if ($('#txtPassword').val() == '')
                {
                    tips('<p>请输入密码</p>', icon);
                    $('#txtPassword').focus();
                    return false;
                }

                return true;
            })



            window.onresize = function ()
            {
                setBg();
            }
            function setBg()
            {
                $("#login").css({ "margin-top": $(window).height() > $("#login").height() ? ($(window).height() - $("#login").height()) / 2 : 0 });
                $("#bg img").width($(window).width()).height($(window).height());
            }
        })
    </script>
</head>
<body style="overflow: hidden;">
    <div id="bg" style="text-align: center; background-repeat: no-repeat; background-attachment: fixed;">
        <div id="login" style="width: 800px; height: 53px; margin: 0px auto; display: block;">
            <form id="form1" runat="server">
                <div style="width: 339px; height: 53px; float: left;">
                    <asp:TextBox ID="txtUserName" runat="server" BorderColor="#cccccc" BackColor="White" BorderStyle="Solid" BorderWidth="1" Style="height: 53px; margin-right: 10px; padding-left: 10px; line-height: 53px; width: 317px;" MaxLength="25" placeholder="账号" Text="sysadmin"></asp:TextBox>
                    <ul id="u"></ul>
                </div>
                <div style="width: 339px; height: 53px; float: left; margin-right: 10px;">
                    <asp:TextBox ID="txtPassword" runat="server" BorderColor="#cccccc" BackColor="White" BorderStyle="Solid" BorderWidth="1" TextMode="Password" Style="height: 53px; line-height: 53px; width: 317px; padding-left: 10px; margin-right: 10px;" MaxLength="25" placeholder="密码" Text="123456"></asp:TextBox>
                </div>
                <div style="width: 74px; height: 53px; float: left;">
                    <asp:Button ID="btnLogin" runat="server" Text="登陆" OnClick="btnLogin_Click" />
                </div>
                <%--      <section class="container">
                    <div class="progress">
                        0%
                    </div>
                </section>--%>
            </form>

        </div>
        <div style="position: absolute; z-index: -1; overflow: hidden; top: 0; left: 0; width: 100%; height: 100%; opacity: 1; filter: alpha(opacity=100);">
            <img id="bgImg" style="margin-left: 0px; visibility: visible; opacity: 1;" />
        </div>
    </div>
</body>
</html>

View Code

 

举凡休是使赞美我瞬间之计划风格为!个人计划,希望大家看了可拉及大家

脚就是登陆后的主界面了!哈哈,这是同等栽小清新的感觉到了!你们要爱哦!

更来平等摆吧!就是锁屏的界面了。这是一个稍微作用!希望大家看了喜爱!

自我这边所有应用的且是EasyUI的框架!所以希望大家好良好的读书一下,不要怕劳累,有时候不得不逼自己瞬间,不然你实在不知底自己实际深不错!

稍微弟不才,只是放了一晃融洽之成果!大家而喜欢可以跟本身联络!