<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>{% block title %}{% endblock %}首頁</title> <!-- 新 Bootstrap 核心 CSS 文件 --> <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> <script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script> <!-- 最新的 Bootstrap 核心 JavaScript 文件 --> <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> <script src="{{ url_for('static',filename='js/switch.js') }}"></script> <link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='css/base.css') }}"> {% block head %}{% endblock %} </head> <body id="myBody"> <nav class="navbar"> <img src="{{ url_for('static',filename='images/8-1306061335461b.jpg') }}" alt="" width="50px"> <a href="{{ url_for('index') }}">首頁</a> <input type="text" name="title" required lay-verify="required" placeholder="請輸入搜索內容" autocomplete="off" class="layui-input"> <button class="seek" style="padding-left: 10px;" type="submit">搜索</button> <a class="login" href="{{ url_for('login') }}">登陸</a> <a class="enroll" href="{{ url_for('enroll') }}">註冊</a> <select class="navigate"> <option>學校概況</option> <option>專業部門</option> <option>校園管理</option> <option>招生信息</option> <option>國際教育</option> </select> <img id="myOnOff" onclick="mySwitch()" src="http://www.runoob.com/images/pic_bulbon.gif" width="25px"> </nav> {% block main %}{% endblock %} </body> <footer> <div class="footer_box"> copyright@yangjlee </div> </footer> </html>
{% extends'base.html' %} {% block title %}註冊{% endblock %} {% block head %} <link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='css/enroll.css') }}"> <script src="{{ url_for('static',filename='js/enroll.js') }}"></script> {% endblock %} {% block main %} <div class="box"> <h2>註冊</h2> <div class="input_box"> 名稱:<input id="zname" type="text"placeholder="設置您的用戶名"> </div> <div class="input_box"> 密碼:<input id="zpass1" type="text"placeholder="設置您的密碼"> </div> <div class="input-box"> 重輸該密碼:<input id="zpass2" type="text" placeholder="從新輸入同樣的密碼"> </div> <div class="input_box"> <a href="{{ url_for('login') }}">已有帳號,登陸</a> </div> <div id="error_box"><br></div> <div class="input_box"> <button class="button" onclick="fnEnroll()">當即註冊</button> </div> </div> {% endblock %}
{% extends'base.html' %} {% block title %}登陸{% endblock %} {% block head %} <link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='css/login.css') }}"> <script src="{{ url_for('static',filename='/js/login.js')}}"></script> {% endblock %} {% block main %} <div class="box"> <h2>登陸</h2> <div class="input_box"> <input id="uname" type="text"placeholder="請輸入用戶名"> </div> <div class="input_box"> <input id="upass" type="text"placeholder="請輸入密碼"> </div> <div class="input_box"> <a href="{{ url_for('enroll') }}">沒有帳號?當即註冊</a> </div> <div id="error_box"><br></div> <div class="input_box"> <button class="button" onclick="fnLogin()">登陸</button> </div> </div> {% endblock %}