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.
117 lines
2.7 KiB
117 lines
2.7 KiB
<!doctype html>
|
|
<html lang="en">
|
|
|
|
<!-- 主頁header -->
|
|
<?php
|
|
|
|
/*--- 處理session ----*/
|
|
include "include-session-security.php"; #確認session
|
|
|
|
include "include-header.php";
|
|
|
|
$data = unserialize($_REQUEST["function_list"]);
|
|
#print_r($data);
|
|
#echo $data["type"];
|
|
|
|
$image_directory = "assets/img/functions/" . $data['type'] . "/";
|
|
#$img_list = glob($image_directory . "*.png");
|
|
#print_r($img_list);
|
|
|
|
$img_list=array();
|
|
for($i=0; $i<count($data["list"]); $i++) {
|
|
#echo "name: " . $data["list"][$i]["name"] . "<br/>\n";
|
|
#echo "path: " . $data["list"][$i]["path"] . "<br/>\n";
|
|
$str_tmp = strrchr($data["list"][$i]["path"], "/");
|
|
#echo "path: " . strpos($str_tmp, ".") . "<br/>\n";
|
|
#echo substr($str_tmp, 1, strpos($str_tmp, ".")-1) . "<br/>\n";
|
|
$str_tmp = substr($str_tmp, 1, strpos($str_tmp, ".")-1);
|
|
$img_list[] = $image_directory . $str_tmp . ".png";
|
|
}
|
|
#print_r($img_list);
|
|
|
|
|
|
|
|
?>
|
|
<!-- * 主頁header -->
|
|
|
|
<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">Masada電梯</div>
|
|
<!--
|
|
<div class="right">
|
|
<a href="tel:+886 12345678901" class="headerButton">
|
|
<ion-icon name="call-outline"></ion-icon>
|
|
</a>
|
|
</div>
|
|
-->
|
|
</div>
|
|
<!-- * App Header -->
|
|
|
|
<!-- App Capsule -->
|
|
<div id="appCapsule">
|
|
|
|
<div class="section full mt-2">
|
|
|
|
<!--版型測試-->
|
|
<div class="section full mt-3 mb-3">
|
|
<div class="carousel-multiple owl-carousel owl-theme">
|
|
<?php
|
|
for($i=0; $i<count($data["list"]); $i++) {
|
|
?>
|
|
<div class="item" onClick="window.location.href='<?php echo $data["list"][$i]["path"]; ?>'">
|
|
<div class="card">
|
|
<img src="<?php echo $img_list[$i]; ?>" class="card-img-top" alt="image">
|
|
<div class="card-body pt-2">
|
|
<h4 class="mb-0"><?php echo $data["list"][$i]["name"]; ?></h4>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php } ?>
|
|
</div>
|
|
|
|
</div>
|
|
<!--版型測試-->
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<!-- * App Capsule -->
|
|
|
|
<!-- 主頁頁尾 -->
|
|
<?php
|
|
include "include-footer.php";
|
|
mysqli_close($link); #代表結束連線
|
|
?>
|
|
<!-- * 主頁頁尾 -->
|
|
|
|
<!-- 主頁頁尾按鈕 -->
|
|
<?php
|
|
# include "include-bottom-menu.php";
|
|
?>
|
|
<!-- * 主頁頁尾按鈕 -->
|
|
|
|
<!-- ///////////// Js Files //////////////////// -->
|
|
<!-- Jquery -->
|
|
<?php
|
|
include "include-jsfiles.php";
|
|
?>
|
|
|
|
</body>
|
|
|
|
</html>
|