|
|
@@ -216,7 +216,7 @@ include($_SERVER['DOCUMENT_ROOT'] . "/Authorization/script/php/permission/check_
|
|
|
<div class="widget-summary-col">
|
|
|
<div class="summary">
|
|
|
<h2 class="panel-title">資料庫最後更新時間</h2>
|
|
|
- <div class="info"> <strong class="amount"><?php include($_SERVER['DOCUMENT_ROOT'] . '/BIM-Monitor/script/php/dbUpdateTime.php'); ?></strong> </div>
|
|
|
+ <div class="info"> <strong id="dbTime" class="amount"></strong> </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -235,24 +235,19 @@ include($_SERVER['DOCUMENT_ROOT'] . "/Authorization/script/php/permission/check_
|
|
|
addUserImage(userName.charAt(0), role);
|
|
|
getTable("SM");
|
|
|
$(document).ready(function() {
|
|
|
-
|
|
|
+ getUpdateTime();
|
|
|
})
|
|
|
|
|
|
- /*function getTable(type) {
|
|
|
+ function getUpdateTime() {
|
|
|
$.ajax({
|
|
|
- url: '/BIM-Monitor/script/php/get_monitor_table.php',
|
|
|
- type: "POST",
|
|
|
- dataType: "JSON",
|
|
|
- data: {
|
|
|
- type: type
|
|
|
- }
|
|
|
+ url: '/BIM-Monitor/script/php/dbUpdateTime-r03.php',
|
|
|
+ type: "POST"
|
|
|
}).success(function(data) {
|
|
|
- console.log("回傳資料:");
|
|
|
- console.log(data);
|
|
|
+ $("#dbTime").text(data);
|
|
|
}).error(function(error) {
|
|
|
console.log(error);
|
|
|
});
|
|
|
- }*/
|
|
|
+ }
|
|
|
</script>
|
|
|
|
|
|
<!-- Vendor -->
|