开发后台管理系统页面

后台管理页面主要有管理员登录页面和后台管理系统页面

效果如图展示

image.png
image.png

管理员登录页代码如下

<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>管理员登录页面</title>
    <style>
        body {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }

        .login-container {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 15px;
            padding: 30px;
            width: 350px;
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
            transition: transform 0.3s ease;
        }

        .login-container:hover {
            transform: scale(1.02);
        }

        .login-container h2 {
            text-align: center;
            margin-bottom: 25px;
            color: #333;
            font-size: 24px;
        }

        .login-container input {
            width: calc(100% - 20px);
            padding: 12px;
            margin-bottom: 20px;
            border: none;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.6);
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
            transition: box-shadow 0.3s ease;
        }

        .login-container input:focus {
            outline: none;
            box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
        }

        .login-container button {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 8px;
            background-color: #007BFF;
            color: white;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s ease;
        }

        .login-container button:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>
    <div class="login-container">
        <h2>管理员登录</h2>
        <input type="text" placeholder="用户名">
        <input type="password" placeholder="密码">
        <button>登录</button>
    </div>
</body>
</html>

后台管理系统页面代码如下

<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>后台管理系统主页</title>
    <style>
        body {
            font-family: 'Open Sans', sans-serif;
            margin: 0;
            padding: 0;
            display: flex;
            height: 100vh;
            background-color: #f9f9f9;
        }


        .sidebar {
            width: 220px;
            background: linear-gradient(to bottom, #3f51b5, #2196f3);
            color: white;
            padding-top: 30px;
            box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
            transition: width 0.3s ease;
        }

        .sidebar ul {
            list-style-type: none;
            padding: 0;
        }

        .sidebar li {
            padding: 18px 25px;
            cursor: pointer;
            transition: background-color 0.3s, transform 0.3s;
            display: flex;
            align-items: center;
        }

        .sidebar li:hover {
            background-color: rgba(255, 255, 255, 0.1);
            transform: translateX(5px);
        }


        .main-content {
            flex: 1;
            padding: 30px;
            background-color: #f9f9f9;
        }

        .main-content h1 {
            color: #333;
            border-bottom: 2px solid #007BFF;
            padding-bottom: 15px;
            font-size: 28px;
        }

        .main-content p {
            color: #666;
            line-height: 1.6;
        }


        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
        }

        th,
        td {
            border: 1px solid #ddd;
            padding: 12px;
            text-align: left;
        }

        th {
            background-color: #f0f0f0;
            color: #333;
        }


        .image-placeholder {
            width: 100%;
            height: 220px;
            background-color: #e9e9e9;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #999;
            margin-top: 15px;
            border-radius: 5px;
        }
    </style>
</head>

<body>

    <div class="sidebar">
        <ul>
            <li>首页</li>
            <li>人员管理</li>
            <li>系统管理</li>
            <li>日志管理</li>
        </ul>
    </div>

    <div class="main-content">
        <h1>欢迎使用后台管理系统</h1>

        <div class="card">
            <h2>人员管理</h2>
            <p>在人员管理模块,您可以添加、编辑和删除员工信息,管理员工权限,确保系统的安全性和数据的准确性。</p>
            <table>
                <thead>
                    <tr>
                        <th>员工姓名</th>
                        <th>部门</th>
                        <th>职位</th>
                        <th>权限等级</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>张三</td>
                        <td>技术部</td>
                        <td>开发工程师</td>
                        <td>高级</td>
                    </tr>
                    <tr>
                        <td>李四</td>
                        <td>市场部</td>
                        <td>市场专员</td>
                        <td>中级</td>
                    </tr>
                    <tr>
                        <td>王五</td>
                        <td>客服部</td>
                        <td>客服代表</td>
                        <td>初级</td>
                    </tr>
                </tbody>
            </table>
        </div>

        <div class="card">
            <h2>日志管理</h2>
            <p>日志管理模块记录了系统的所有操作记录,您可以通过查看日志来监控系统的运行状态,及时发现并解决问题。</p>
            <table>
                <thead>
                    <tr>
                        <th>操作时间</th>
                        <th>操作人员</th>
                        <th>操作内容</th>
                        <th>操作结果</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>2025-03-22 09:00</td>
                        <td>张三</td>
                        <td>修改用户权限</td>
                        <td>成功</td>
                    </tr>
                    <tr>
                        <td>2025-03-22 10:30</td>
                        <td>李四</td>
                        <td>添加新员工信息</td>
                        <td>成功</td>
                    </tr>
                    <tr>
                        <td>2025-03-22 14:15</td>
                        <td>王五</td>
                        <td>删除系统日志</td>
                        <td>失败</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</body>

</html>
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容