返回关于使用com......登陆

关于使用composer安装/配置thinkphp的验证码插件案例

҈果҈果҈果҈ ҈ ҈2019-07-24 00:35:1530
<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" type="text/css" href="/static/plugins/layui/css/layui.css">
    <script type="text/javascript" src="/static/plugins/layui/layui.js"></script>
    <style type="text/css">
        body{background: #0094ff;}
    </style>
</head>
<body>
<div style="position: absolute;left: 50%;top: 50%;width: 500px;margin-left: -250px;margin-top: -200px;">
    <div style="background: #ffffff;padding: 20px;border-radius: 4px;box-shadow:5px 5px 20px #444444;">
        <div>
            <div style="color: gray;">
                <h2>后台管理系统</h2>
            </div>
            <hr>
            <div>
                <label>用户名</label>
                <div>
                    <input type="text" id="username">
                </div>
            </div>
            <div>
                <label>密&nbsp;&nbsp;&nbsp;&nbsp;码</label>
                <div>
                    <input type="password" id="password">
                </div>
            </div>
            <div>
                <label>验证码</label>
                <div>
                    <input type="text" id="verifycode">
                </div>
                <img src="{:captcha_src()}" id="img" onclick="reloadImg()">
            </div>
            <div>
                <div>
                    <button onclick="dologin()">登录</button>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>

2019-07-24_002358.jpg

2019-07-24_002623.jpg

2019-07-24_002957.jpg

2019-07-24_003302.jpg

最新手记推荐

• 依赖注入小例子• 模板显示用户信息表,并分页显示• 模板继承,模仿php页面• 模拟用户登录验证的案例 依赖注入 Facade• 创建一个验证器, 用来对模型对应的表中字段进行验证处理

全部回复(0)我要回复

暂无评论~
  • 取消回复发送
  • PHP中文网