204 lines
12 KiB
HTML
204 lines
12 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
<title>修改设备信息 | 智能截流闸管理平台</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta content="智能截流闸管理平台" name="description" />
|
|
<meta content="Themesdesign" name="author" />
|
|
<!-- App favicon -->
|
|
<link rel="shortcut icon" href="assets/images/favicon.ico">
|
|
|
|
<!-- jquery.vectormap css -->
|
|
<link href="assets/libs/admin-resources/jquery.vectormap/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css" />
|
|
|
|
<!-- DataTables -->
|
|
<link href="assets/libs/datatables.net-bs4/css/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
|
|
|
<!-- Responsive datatable examples -->
|
|
<link href="assets/libs/datatables.net-responsive-bs4/css/responsive.bootstrap4.min.css" rel="stylesheet" type="text/css" />
|
|
|
|
<!-- Bootstrap Css -->
|
|
<link href="assets/css/bootstrap.min.css" id="bootstrap-style" rel="stylesheet" type="text/css" />
|
|
<!-- Icons Css -->
|
|
<link href="assets/css/icons.min.css" rel="stylesheet" type="text/css" />
|
|
<!-- App Css-->
|
|
<link href="assets/css/app.min.css" id="app-style" rel="stylesheet" type="text/css" />
|
|
|
|
</head>
|
|
|
|
<body data-sidebar="dark">
|
|
|
|
<!-- Begin page -->
|
|
<div id="layout-wrapper">
|
|
|
|
<!-- 头部开始 -->
|
|
<?php include_once('header.tpl.html'); ?>
|
|
<!-- 头部结束 -->
|
|
<!-- ========== Left Sidebar Start ========== -->
|
|
<?php include_once('leftsidebar.tpl.html'); ?>
|
|
<!-- Left Sidebar End -->
|
|
|
|
<!-- ============================================================== -->
|
|
<!-- Start right Content here -->
|
|
<!-- ============================================================== -->
|
|
<div class="main-content">
|
|
|
|
<div class="page-content">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="page-title-box d-flex align-items-center justify-content-between">
|
|
<h4 class="mb-0">修改设备信息</h4>
|
|
|
|
<div class="page-title-right">
|
|
<ol class="breadcrumb m-0">
|
|
<li class="breadcrumb-item"><a href="javascript: void(0);">设备管理</a></li>
|
|
<li class="breadcrumb-item active">修改设备信息</li>
|
|
</ol>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<form id="myForm" class="custom-validation">
|
|
<div class="modal-body">
|
|
<div class="form-group row">
|
|
<label for="example-text-input" class="col-md-1 col-form-label">序号</label>
|
|
<label for="example-text-input" class="col-md-11 col-form-label">
|
|
<input type="text" id="example-text-input" class="form-control rounded chat-input pl-3" name="id" value="<?php echo $data['id'];?>" readonly="readonly">
|
|
</label>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label for="example-text-input" class="col-md-1 col-form-label">项目</label>
|
|
<label for="example-text-input" class="col-md-11 col-form-label">
|
|
<input type="text" id="example-text-input" class="form-control rounded chat-input pl-3" placeholder="" name="project_name" required value="<?php echo $data['project_name'];?>" readonly="readonly">
|
|
</label>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label for="example-text-input" class="col-md-1 col-form-label">产站</label>
|
|
<label for="example-text-input" class="col-md-11 col-form-label">
|
|
<input type="text" id="example-text-input" class="form-control rounded chat-input pl-3" name="terminal_name" required value="<?php echo $data['terminal_name'];?>" readonly="readonly">
|
|
</label>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label for="example-text-input" class="col-md-1 col-form-label">设备名称</label>
|
|
<label for="example-text-input" class="col-md-11 col-form-label">
|
|
<input class="form-control" type="text" id="example-text-input" name="name" ref="name" style="margin-top:-12px;" required value="<?php echo $data['name'];?>">
|
|
</label>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label for="example-text-input" class="col-md-1 col-form-label">地址</label>
|
|
<label for="example-text-input" class="col-md-11 col-form-label">
|
|
<input type="text" class="form-control" id="validationCustom04" name="address" required value="<?php echo $data['address'];?>">
|
|
</label>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label for="example-text-input" class="col-md-1 col-form-label">经度</label>
|
|
<label for="example-text-input" class="col-md-11 col-form-label">
|
|
<input type="text" class="form-control" id="validationCustom04" name="longitude" required value="<?php echo $data['longitude'];?>">
|
|
</label>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label for="example-text-input" class="col-md-1 col-form-label">纬度</label>
|
|
<label for="example-text-input" class="col-md-11 col-form-label">
|
|
<input type="text" class="form-control" id="validationCustom04" name="latitude" required value="<?php echo $data['latitude'];?>">
|
|
</label>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label for="example-text-input" class="col-md-1 col-form-label">编码</label>
|
|
<label for="example-text-input" class="col-md-11 col-form-label">
|
|
<input type="text" class="form-control" id="validationCustom04" name="sn" required value="<?php echo $data['sn'];?>">
|
|
</label>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<div>
|
|
<button type="submit" class="btn btn-primary">提交</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- end row -->
|
|
|
|
</div> <!-- container-fluid -->
|
|
</div>
|
|
<!-- End Page-content -->
|
|
|
|
<!-- 尾部开始 -->
|
|
<?php include_once('footer.tpl.html'); ?>
|
|
<!-- 尾部结束 -->
|
|
|
|
</div>
|
|
<!-- end main content-->
|
|
|
|
</div>
|
|
<!-- END layout-wrapper -->
|
|
|
|
|
|
<!-- Right bar overlay-->
|
|
<div class="rightbar-overlay"></div>
|
|
|
|
<!-- JAVASCRIPT -->
|
|
<script src="assets/libs/jquery/jquery.min.js"></script>
|
|
<script src="assets/libs/bootstrap/js/bootstrap.bundle.min.js"></script>
|
|
<script src="assets/libs/metismenu/metisMenu.min.js"></script>
|
|
<script src="assets/libs/simplebar/simplebar.min.js"></script>
|
|
<script src="assets/libs/node-waves/waves.min.js"></script>
|
|
|
|
<!-- apexcharts -->
|
|
<script src="assets/libs/apexcharts/apexcharts.min.js"></script>
|
|
|
|
<!-- jquery.vectormap map -->
|
|
<script src="assets/libs/admin-resources/jquery.vectormap/jquery-jvectormap-1.2.2.min.js"></script>
|
|
<script src="assets/libs/admin-resources/jquery.vectormap/maps/jquery-jvectormap-us-merc-en.js"></script>
|
|
|
|
<!-- Required datatable js -->
|
|
<script src="assets/libs/datatables.net/js/jquery.dataTables.min.js"></script>
|
|
<script src="assets/libs/datatables.net-bs4/js/dataTables.bootstrap4.min.js"></script>
|
|
|
|
<!-- Responsive examples -->
|
|
<script src="assets/libs/datatables.net-responsive/js/dataTables.responsive.min.js"></script>
|
|
<script src="assets/libs/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js"></script>
|
|
|
|
<!-- <script src="assets/js/pages/dashboard.init.js"></script> -->
|
|
|
|
<script src="assets/js/app.js"></script>
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
$('#myForm').submit(function(e) {
|
|
e.preventDefault(); // 阻止表单默认提交行为
|
|
|
|
var formData = $(this).serialize(); // 序列化表单数据
|
|
|
|
$.ajax({
|
|
url: '?c=device&a=device_update',
|
|
method: 'POST',
|
|
data: formData,
|
|
success: function(response) {
|
|
// 请求成功的处理
|
|
console.log(response);
|
|
if(response.data =='success'){
|
|
window.location.href = '?c=home&a=device';
|
|
}
|
|
},
|
|
error: function(xhr, status, error) {
|
|
// 请求失败的处理
|
|
console.log(error);
|
|
}
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|