123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Aisky-Sixth</title>
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <!-- 新 Bootstrap4 核心 CSS 文件 -->
- <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.1.0/css/bootstrap.min.css">
- <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
- <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
- <!-- popper.min.js 用于弹窗、提示、下拉菜单 -->
- <script src="https://cdn.bootcss.com/popper.js/1.12.5/umd/popper.min.js"></script>
- <!-- 最新的 Bootstrap4 核心 JavaScript 文件 -->
- <script src="https://cdn.bootcss.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
- <!--可用來建立使用者小圖示-->
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
- <script>
- function Monitor(){
- window.location.href='/monitor';
- };
- $(function(){
- var purchase_form = document.getElementById('purchase_form');
- var outside = document.getElementById('outside');
- var inside = document.getElementById('inside');
- var net_4g = document.getElementById('4g');
- var wifi = document.getElementById('wifi');
- var ethernet = document.getElementById('ethernet');
- purchase_form.onsubmit = function(){
- if($("input[name=length]").val() == '' || $("input[name=width]").val() == '' || $("input[name=monitor_num]").val() == '' || (outside.checked == false && inside.checked == false) || (net_4g.checked == false && wifi.checked == false && ethernet.checked == false)){
- alert("請輸入您的完整資訊,謝謝!");
- return false;
- }else{
- return true;
- };
- };
- });
- </script>
- <style>
- body {
- margin:0;
- }
- .navbar-dark .navbar-nav .nav-link {
- color: white;
- cursor: pointer;
- text-decoration:none;
- width: 110px;
- height: 46px;
- }
- .nav-top {
- line-height:40px;
- background-color: #C4C4C4;
- }
- .website_title{
- font-family: Roboto;
- font-style: normal;
- font-weight: normal;
- font-size: 30px;
- color: #000000;
- }
- .navbar-nav > li{
- float: none;
- display: inline-block;
- width: 110px;
- margin: 0 auto;
- text-align: center;
- }
- .navbar-nav > li a{
- font-size: 20px;
- }
- .main-page {
- margin-top: 200px;
- }
- .page-title {
- font-family: Roboto;
- font-style: normal;
- font-weight: bold;
- font-size: 36px;
- }
- .flex {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- justify-content: center;
- }
- .set-link {
- display: inline-block;
- width: 350px;
- height: 100px;
- line-height: 100px;
- background: #008CBA;
- border: 1px solid #CFCFCF;
- box-sizing: border-box;
- color: #FFFFFF;
- border-radius: 10px;
- font-size: 36px;
- }
- .page-bottom {
- margin-top: 70px;
- }
- .form-control {
- background: #008CBA;
- border: 1px solid #CFCFCF;
- box-sizing: border-box;
- border-radius: 5px;
- width: 120px;
- height: 58px;
- text-align: center;
- line-height: 50px;
- font-size:20px;
- color: #FFFFFF;
- display: inline-block;
- }
- .fa{
- display: inline-block;
- font: normal normal normal 14px/1 FontAwesome;
- font-size: inherit;
- text-rendering: auto;
- -webkit-font-smoothing: antialiased;
- }
- .fa-user-o:before{
- content: "\f2c0";
- }
- @media(max-width:373px){
- .card {
- margin-right: 0px;
- }
- }
- @media(max-width:577px){
- }
- @media(min-width:576px){
- }
- @media(min-width:768px){
- .navbar-nav > li {
- margin-left: 0px;
- }
- .navbar-nav .li-block {
- display:none;
- }
- }
- @media(min-width:991px){
- .navbar-nav > li {
- margin-left: 20px;
- }
- .navbar-nav .li-block {
- display:none;
- }
- .page-bottom input:last-child {
- margin-left: 100px;
- }
- }
- @media(min-width:1200px){
- .navbar-nav > li {
- margin-left: 35px;
- }
- .navbar-nav .li-block {
- display: inline-block;
- width: 100px;
- }
- .page-bottom input:last-child {
- margin-left: 100px;
- }
- }
- @media(min-width:1400px){
- .navbar-nav .li-block {
- display: inline-block;
- width: 200px;
- }
- .page-bottom input:last-child {
- margin-left: 100px;
- }
- }
- @media(min-width:1689px) {
- .navbar-nav > li {
- margin-left: 50px;
- }
- .navbar-nav .li-block {
- display: inline-block;
- width: 500px;
- }
- .page-bottom input:last-child {
- margin-left: 100px;
- }
- }
- </style>
- <body>
- <nav class="fixed-top">
- <nav class="navbar navbar-expand-md nav-top justify-content-center">
- <div>
- <span class="website_title">採購</span>
- </div>
- </nav>
- <nav class="navbar navbar-expand-md bg-dark navbar-dark nav-bottom">
- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
- <span class="navbar-toggler-icon"></span>
- </button>
- <div class="collapse navbar-collapse" id="collapsibleNavbar">
- <ul class="navbar-nav">
- <li class="nav-item">
- <a class="nav-link" href="/">首頁</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" href="#">關於我們</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" href="#">案場資訊</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" href="#">聯絡方法</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" href="#">案場地圖</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" href="#">環境資訊</a>
- </li>
- <li class="li-block"></li>
- <li class="nav-item">
- <a class="nav-link" href="#"><i class="fa fa-user-o"></i> {{params.username}}</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" href="/logout">Logout</a>
- </li>
- </ul>
- </div>
- </nav>
- </nav>
- <div class="main-page">
- <form method="post" action="/purchase" id="purchase_form">
- <div class="container">
- <sapn style="color:#008CBA;font-size:22px;">親愛的顧客您好,在您的環境檢測開始之前,請先幫我們填妥下列資料,謝謝!</sapn>
- <table class="table table-bordered" style="font-size:23px;margin-top:30px;">
- <tbody>
- <tr>
- <td>1.</td>
- <td>您需要的監控面積有多大</td>
- <td>
- 長 <input type="text" placeholder="單位公尺" name="length">
- 寬 <input type="text" placeholder="單位公尺" name="width"></td>
- </tr>
- <tr>
- <td>2.</td>
- <td>您監控的地點在露天或室內</td>
- <td>
- <label for="outside">露天 </label><input type="radio" id="outside" name="location" value="outside">
- <label for="inside">室內 </label><input type="radio" id="inside" name="location" value="inside">
- </td>
- </tr>
- <tr>
- <td>3.</td>
- <td>您要設置幾個監控點</td>
- <td>
- 數量 <input type="number" maxlength="2" name="monitor_num">
- </td>
- </tr>
- <tr>
- <td>4.</td>
- <td>您的連接方式為</td>
- <td>
- <label for="4g">4G </label><input type="radio" id="4g" name="connection" value="4g">
- <label for="wifi">WIFI </label><input type="radio" id="wifi" name="connection" value="wifi">
- <label for="ethernet">網路線 </label><input type="radio" id="ethernet" name="connection" value="ethernet">
- </td>
- </tr>
- </tbody>
- </table>
- <div class="row page-bottom">
- <div class="col"></div>
- <div class="col-xl-4 col-lg-6 col-md-8 col-sm-10 col-xs-10" style="text-align:center;">
- <div class="form-group">
- <input type="reset" class="form-control" value="重設" style="margin-right:70px;">
- <input type="submit" class="form-control" value="送出">
- <input type="button" class="form-control" value="下一頁" onclick="Monitor();">
- </div>
- </div>
- <div class="col"></div>
- </div>
- </div>
- </form>
- </div>
- </body>
- </html>
|