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.
61 lines
2.9 KiB
61 lines
2.9 KiB
<div class="appFooter">
|
|
<!-- <img src="assets/img/logo6.png" alt="icon" class="footer-logo mb-2"> -->
|
|
<img src="assets/img/logo.png" width="50%" height="50%" alt="icon"><br>
|
|
<!--
|
|
<div class="footer-title">
|
|
Copyright © Quickfix 2021. All Rights By <a href="http://www.bootstrapmb.com/">bootstrapmb</a>.
|
|
</div>
|
|
-->
|
|
<div class="footer-title">
|
|
Copyright © Masada維保 2021. All Rights By <a href="#">Masada</a>.
|
|
</div>
|
|
<div>Masada電梯,聰明的就懂!</div>
|
|
|
|
<div class="mt-2">
|
|
<a href="javascript:;" class="btn btn-icon btn-sm btn-facebook">
|
|
<ion-icon name="logo-facebook"></ion-icon>
|
|
</a>
|
|
<a href="javascript:;" class="btn btn-icon btn-sm btn-twitter">
|
|
<ion-icon name="logo-twitter"></ion-icon>
|
|
</a>
|
|
<a href="javascript:;" class="btn btn-icon btn-sm btn-linkedin">
|
|
<ion-icon name="logo-linkedin"></ion-icon>
|
|
</a>
|
|
<a href="javascript:;" class="btn btn-icon btn-sm btn-instagram">
|
|
<ion-icon name="logo-instagram"></ion-icon>
|
|
</a>
|
|
<a href="javascript:;" class="btn btn-icon btn-sm btn-whatsapp">
|
|
<ion-icon name="logo-whatsapp"></ion-icon>
|
|
</a>
|
|
<a href="#" class="btn btn-icon btn-sm btn-secondary goTop">
|
|
<ion-icon name="arrow-up-outline"></ion-icon>
|
|
</a>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
if (isset($user_id)) {
|
|
# 載入db.php來連結資料庫
|
|
require_once "db/database.php";
|
|
|
|
$sql = "SELECT id, message_detail FROM push_message where ((accountid = '$user_id') and (pushed_time IS NULL))"; # sql語法存在變數中
|
|
$result = mysqli_query($link,$sql); # 用mysqli_query方法執行(sql語法)將結果存在變數中
|
|
|
|
foreach($result as $result){
|
|
$id = $result["id"];
|
|
$message_detail = $result["message_detail"];
|
|
#echo "data: The server time is: {$time}\n\n";
|
|
if (strlen($id) > 0){
|
|
echo "<script>";
|
|
//echo "swal('$message_detail');";
|
|
echo "alert('$message_detail')";
|
|
echo "</script>";
|
|
#echo "data: {$message_detail}\n\n"; #data: 與\n\n不能移除
|
|
$sql = "UPDATE push_message set pushed_time = CURRENT_TIMESTAMP where (id = '$id')"; # sql語法存在變數中
|
|
$result_1 = mysqli_query($link,$sql); # 用mysqli_query方法執行(sql語法)將結果存在變數中
|
|
#echo "{$message_detail}\n\n";
|
|
}
|
|
}
|
|
}
|
|
?>
|