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
<?php
|
|
$token = $_REQUEST["token"];
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, viewport-fit=cover" />
|
|
<title>常用表單</title>
|
|
<link rel="stylesheet" href="css/plugins/fontawesome-free/css/all.min.css">
|
|
<link rel="stylesheet" href="css/dist/css/adminlte.min.css">
|
|
<script src="../css/jquery.min.js"></script>
|
|
<script src="../css/bootstrap.min.js"></script>
|
|
<style>
|
|
.content-wrapper {
|
|
background-color: #fff;
|
|
}
|
|
.col-lg-6 {
|
|
padding:8px 0 0 0!important;
|
|
}
|
|
.card {
|
|
height: 97vh;
|
|
line-height: 14 px;
|
|
font-size: 14px;
|
|
}
|
|
.card-header {
|
|
background-color: #f4f6f9;
|
|
padding-left: 16px;
|
|
}
|
|
.card-body ol {
|
|
font-size: 14px;
|
|
margin-left: -30px;
|
|
}
|
|
.nav-pills .nav-link {
|
|
color: #446887;
|
|
}
|
|
h5 svg {
|
|
vertical-align: baseline;
|
|
}
|
|
h5 a {
|
|
color: #000;
|
|
}
|
|
@media screen and (max-width: 992px){
|
|
.card {
|
|
height: 95vh;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="wrapper">
|
|
<!-- Content Wrapper. Contains page content -->
|
|
<div class="content-wrapper">
|
|
<!-- Main content -->
|
|
<div class="content">
|
|
<div class="container">
|
|
<div class="row">
|
|
<!-- /.col-md-6 -->
|
|
<div class="col-lg-6">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h5 class="card-title m-0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-table" viewBox="0 0 16 16"><path d="M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zm15 2h-4v3h4V4zm0 4h-4v3h4V8zm0 4h-4v3h3a1 1 0 0 0 1-1v-2zm-5 3v-3H6v3h4zm-5 0v-3H1v2a1 1 0 0 0 1 1h3zm-4-4h4V8H1v3zm0-4h4V4H1v3zm5-3v3h4V4H6zm4 4H6v3h4V8z"/></svg>
|
|
<a href="/wms/forms-index.php?function_name=forms&token=<?php echo $token; ?>" target="_parent">表單下載</a></h5>
|
|
</div>
|
|
<div class="card-body p-0">
|
|
Loading...
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.col-md-6 -->
|
|
</div>
|
|
<!-- /.row -->
|
|
</div><!-- /.container-fluid -->
|
|
</div>
|
|
<!-- /.content -->
|
|
</div>
|
|
<!-- /.content-wrapper -->
|
|
</div>
|
|
<script>
|
|
$(document).ready(function() {
|
|
here();
|
|
});
|
|
|
|
function here() {
|
|
var URL = 'api_getdata.php?p=forms';
|
|
$.ajax({
|
|
type: "GET",
|
|
url: URL,
|
|
success: function (msg) {
|
|
var obj = JSON.parse(msg);
|
|
var myhtml = '';
|
|
if (obj.st == 'ok') {
|
|
myhtml += '<ul class="nav nav-pills flex-column">';
|
|
for (i=1; i<=Object.keys(obj.content).length; i++) {
|
|
myhtml += '<li class="nav-item"><a href="/wms/forms-file.php?id='+obj.content[i].id+'&token=<?php echo $token; ?>" class="nav-link" title="點我下載" target="_blank">'+obj.content[i].title+'</a></li>';
|
|
}
|
|
if (Object.keys(obj.content).length == 6) {
|
|
myhtml += '<li class="nav-item"><a href="/wms/forms-index.php?function_name=forms&token=<?php echo $token; ?>" class="nav-link" target="_parent">.... 顯示更多</a></li>';
|
|
}
|
|
myhtml += '</ul>';
|
|
$('.card-body').empty().append(myhtml);
|
|
}
|
|
}
|
|
})
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|