You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
108 lines
3.5 KiB
108 lines
3.5 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<!-- 主頁header -->
|
|
<?php
|
|
|
|
/*--- 處理session ----*/
|
|
include "include-session-security.php"; #確認session
|
|
/*--- 處理session ----*/
|
|
|
|
include "include-header.php";
|
|
require_once "db/database.php"; # 載入db.php來連結資料庫
|
|
|
|
$facilityno = $_REQUEST["facilityno"];
|
|
|
|
# 從資料庫取出jason並轉成array
|
|
$sql_query = "select f.speed, f.weight, f.numberofpassenger, f.numberofstop, f.numberoffloor, c.address, c.start_date, c.end_date ";
|
|
$sql_query .= "from facility f, contract c where f.facilityno = '$facilityno' and f.customerid = c.customerid";
|
|
$res = mysqli_query($link, $sql_query);
|
|
$row = mysqli_fetch_row($res);
|
|
list($speed, $weight, $numberofpassenger, $numberofstop, $numberoffloor, $address, $start_date, $end_date) = $row;
|
|
mysqli_free_result($res);
|
|
?>
|
|
<body>
|
|
|
|
<!-- loader -->
|
|
<div id="loader">
|
|
<div class="spinner-border text-primary" role="status"></div>
|
|
</div>
|
|
<!-- * loader -->
|
|
|
|
<!-- App Header -->
|
|
<div class="appHeader bg-primary text-light">
|
|
<div class="left">
|
|
<a href="javascript:;" class="headerButton goBack">
|
|
<ion-icon name="chevron-back-outline"></ion-icon>
|
|
</a>
|
|
</div>
|
|
<div class="pageTitle">電梯資訊</div>
|
|
<!--
|
|
<div class="right">
|
|
</div>
|
|
-->
|
|
</div>
|
|
<!-- * App Header -->
|
|
|
|
<!-- App Capsule -->
|
|
<div id="appCapsule">
|
|
|
|
|
|
|
|
|
|
<div>
|
|
<div class="col-md-12">
|
|
<div id="choosecontent" style="height: 430px;">
|
|
|
|
<div class="card-body box-profile" id="facility">
|
|
<ul class="list-group list-group-unbordered mb-3 lead">
|
|
<li class="list-group-item list-group-item-secondary">
|
|
<b>電梯ID</b> <a class="float-right"><?php echo $facilityno; ?></a>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<b>人乘</b> <a class="float-right"><?php echo $numberofpassenger; ?>m/min</a>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<b>載重</b> <a class="float-right"><?php echo $weight; ?>m/min</a>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<b>速度</b> <a class="float-right"><?php echo $speed; ?>m/min</a>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<b>樓層</b> <a class="float-right"><?php echo $numberoffloor; ?>樓</a>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<b>樓停</b> <a class="float-right"><?php echo $numberofstop; ?>停</a>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<b>地址</b> <a class="float-right"><?php echo $address; ?></a>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<b>合約起迄</b> <a class="float-right"><?php echo $start_date."~".$end_date; ?></a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
<!-- * App Capsule -->
|
|
|
|
<!-- 主頁頁尾 -->
|
|
<?php
|
|
include "include-footer.php";
|
|
mysqli_close($link); #代表結束連線
|
|
?>
|
|
<!-- * 主頁頁尾 -->
|
|
|
|
<?php
|
|
include "include-jsfiles.php";
|
|
?>
|
|
|
|
</body>
|
|
|
|
</html>
|