|
|
@ -3,134 +3,107 @@ $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: 90vh; |
|
|
|
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> |
|
|
|
<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: 90vh; |
|
|
|
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-pencil-square" viewBox="0 0 16 16"> |
|
|
|
<path d="M15.502 1.94a.5.5 0 0 1 0 .706L14.459 3.69l-2-2L13.502.646a.5.5 0 0 1 .707 0l1.293 1.293zm-1.75 2.456-2-2L4.939 9.21a.5.5 0 0 0-.121.196l-.805 2.414a.25.25 0 0 0 .316.316l2.414-.805a.5.5 0 0 0 .196-.12l6.813-6.814z" /> |
|
|
|
<path fill-rule="evenodd" d="M1 13.5A1.5 1.5 0 0 0 2.5 15h11a1.5 1.5 0 0 0 1.5-1.5v-6a.5.5 0 0 0-1 0v6a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .5-.5H9a.5.5 0 0 0 0-1H2.5A1.5 1.5 0 0 0 1 2.5v11z" /> |
|
|
|
</svg> |
|
|
|
<a href="/wms/sign/list.php?function_name=show&token=<?php echo $token; ?>" target="_parent">待我簽核</a> |
|
|
|
</h5> |
|
|
|
</div> |
|
|
|
<div class="card-body p-0"> |
|
|
|
Loading... |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<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-pencil-square" viewBox="0 0 16 16"><path d="M15.502 1.94a.5.5 0 0 1 0 .706L14.459 3.69l-2-2L13.502.646a.5.5 0 0 1 .707 0l1.293 1.293zm-1.75 2.456-2-2L4.939 9.21a.5.5 0 0 0-.121.196l-.805 2.414a.25.25 0 0 0 .316.316l2.414-.805a.5.5 0 0 0 .196-.12l6.813-6.814z"/><path fill-rule="evenodd" d="M1 13.5A1.5 1.5 0 0 0 2.5 15h11a1.5 1.5 0 0 0 1.5-1.5v-6a.5.5 0 0 0-1 0v6a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .5-.5H9a.5.5 0 0 0 0-1H2.5A1.5 1.5 0 0 0 1 2.5v11z"/></svg> |
|
|
|
<a href="/wms/sign/list.php?function_name=show&token=<?php echo $token; ?>" target="_parent">待我簽核</a></h5> |
|
|
|
</div> |
|
|
|
<div class="card-body p-0"> |
|
|
|
Loading... |
|
|
|
</div> |
|
|
|
<!-- /.col-md-6 --> |
|
|
|
</div> |
|
|
|
<!-- /.row --> |
|
|
|
</div><!-- /.container-fluid --> |
|
|
|
</div> |
|
|
|
<!-- /.col-md-6 --> |
|
|
|
</div> |
|
|
|
<!-- /.row --> |
|
|
|
</div><!-- /.container-fluid --> |
|
|
|
</div> |
|
|
|
<!-- /.content --> |
|
|
|
</div> |
|
|
|
<!-- /.content-wrapper --> |
|
|
|
</div> |
|
|
|
<script> |
|
|
|
$(document).ready(function() { |
|
|
|
here(); |
|
|
|
}); |
|
|
|
<script> |
|
|
|
$(document).ready(function() { |
|
|
|
here(); |
|
|
|
}); |
|
|
|
|
|
|
|
function here() { |
|
|
|
var URL = 'api_getdata.php'; |
|
|
|
$.ajax({ |
|
|
|
type: "GET", |
|
|
|
data: { |
|
|
|
p: 'pending', |
|
|
|
token: '<?php echo $token; ?>' |
|
|
|
}, |
|
|
|
url: URL, |
|
|
|
success: function(msg) { |
|
|
|
var obj = JSON.parse(msg); |
|
|
|
console.log(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++) { |
|
|
|
if (obj.content[i].fname == '新梯價審流程') { |
|
|
|
myhtml += '<li class="nav-item"><a href="/wms/mkt/pricereview-index.php?system_id=' + obj.content[i].sid + '&flow_id=' + obj.content[i].fid + '&function_name=show&token=<?php echo $token; ?>" class="nav-link" target="_parent">' + obj.content[i].sname + ' > ' + obj.content[i].fname + '(' + obj.content[i].cnt + ')</a></li>'; |
|
|
|
} else if (obj.content[i].fname == '汰改價審流程') { |
|
|
|
myhtml += '<li class="nav-item"><a href="/wms/mkt/pricereview_renovate-index.php?system_id=' + obj.content[i].sid + '&flow_id=' + obj.content[i].fid + '&function_name=show&token=<?php echo $token; ?>" class="nav-link" target="_parent">' + obj.content[i].sname + ' > ' + obj.content[i].fname + '(' + obj.content[i].cnt + ')</a></li>'; |
|
|
|
} else if (obj.content[i].fname == '契约價審流程') { |
|
|
|
myhtml += '<li class="nav-item"><a href="/wms/cont/sign_list.php?system_id=' + obj.content[i].sid + '&flow_id=' + obj.content[i].fid + '&function_name=show&token=<?php echo $token; ?>" class="nav-link" target="_parent">' + obj.content[i].sname + ' > ' + obj.content[i].fname + '(' + obj.content[i].cnt + ')</a></li>'; |
|
|
|
} else { |
|
|
|
myhtml += '<li class="nav-item"><a href="/wms/sign/list.php?system_id=' + obj.content[i].sid + '&flow_id=' + obj.content[i].fid + '&function_name=show&token=<?php echo $token; ?>" class="nav-link" target="_parent">' + obj.content[i].sname + ' > ' + obj.content[i].fname + '(' + obj.content[i].cnt + ')</a></li>'; |
|
|
|
} |
|
|
|
} |
|
|
|
if (Object.keys(obj.content).length == 6) { |
|
|
|
myhtml += '<li class="nav-item"><a href="/wms/sign/list.php?function_name=show&token=<?php echo $token; ?>" class="nav-link" target="_parent">.... 顯示更多</a></li>'; |
|
|
|
} |
|
|
|
myhtml += '</ul>'; |
|
|
|
$('.card-body').empty().append(myhtml); |
|
|
|
} |
|
|
|
function here() { |
|
|
|
var URL = 'api_getdata.php'; |
|
|
|
$.ajax({ |
|
|
|
type: "GET", |
|
|
|
data: {p: 'pending', token: '<?php echo $token; ?>'}, |
|
|
|
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/sign/list.php?system_id='+obj.content[i].sid+'&flow_id='+obj.content[i].fid+'&function_name=show&token=<?php echo $token; ?>" class="nav-link" target="_parent">'+obj.content[i].sname+' > '+obj.content[i].fname+'('+obj.content[i].cnt+')</a></li>'; |
|
|
|
} |
|
|
|
}) |
|
|
|
if (Object.keys(obj.content).length == 6) { |
|
|
|
myhtml += '<li class="nav-item"><a href="/wms/sign/list.php?function_name=show&token=<?php echo $token; ?>" class="nav-link" target="_parent">.... 顯示更多</a></li>'; |
|
|
|
} |
|
|
|
myhtml += '</ul>'; |
|
|
|
$('.card-body').empty().append(myhtml); |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
}) |
|
|
|
} |
|
|
|
</script> |
|
|
|
</body> |
|
|
|
|
|
|
|
</html> |