加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
schedule.html 4.33 KB
一键复制 编辑 原始数据 按行查看 历史
风原 提交于 2022-04-03 18:07 . 去掉select2,太难用了。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
<link rel="shortcut icon" type="image/x-icon" href="assets/img/favicon.ico">
<title>Preclinic - Medical & Hospital - Bootstrap 4 Admin Template</title>
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap-datetimepicker.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
<!--[if lt IE 9]>
<script src="assets/js/html5shiv.min.js"></script>
<script src="assets/js/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="content">
<div class="row">
<div class="col-sm-4 col-3">
<h4 class="page-title">医生计划</h4>
</div>
<div class="col-sm-8 col-9 text-right m-b-20">
<a href="add-schedule.html" class="btn btn btn-primary btn-rounded float-right"><i class="fa fa-plus"></i> 添加计划</a>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="table-responsive">
<table class="table table-border table-striped custom-table mb-0">
<thead>
<tr>
<th>医生姓名</th>
<th>所在部门</th>
<th>值班日期</th>
<th>值班时间</th>
<th>状态</th>
<th class="text-right">操作</th>
</tr>
</thead>
<tbody id="schedule">
</tbody>
</table>
</div>
</div>
</div>
</div>
<div id="delete_schedule" class="modal fade delete-modal" role="dialog">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-body text-center">
<h3>确定删除这个计划?</h3>
<div class="m-t-20"> <a href="#" class="btn btn-white" data-dismiss="modal">Close</a>
<button type="submit" class="btn btn-danger">Delete</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="sidebar-overlay" data-reff=""></div>
<script src="assets/js/jquery-3.2.1.min.js"></script>
<script src="assets/js/popper.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/jquery.slimscroll.js"></script>
<script src="assets/js/moment.min.js"></script>
<script src="assets/js/bootstrap-datetimepicker.min.js"></script>
<script src="assets/js/app.js"></script>
<!--json data-->
<script type="text/javascript" src="json/schedule.json"></script>
<script type="text/javascript">
$(document).ready(function () {
var scheduleStr = "";
for(var i = 0; i < schedule.length; i++){
scheduleStr = scheduleStr + '<tr>';
scheduleStr = scheduleStr + '<td><img width="28" height="28" src="assets/img/'+ schedule[i].img +'" class="rounded-circle m-r-5" alt=""> '+ schedule[i].doctorName +'</td>';
scheduleStr = scheduleStr + '<td>'+ schedule[i].departmentName +'</td>';
scheduleStr = scheduleStr + '<td>'+ schedule[i].days +'</td>';
scheduleStr = scheduleStr + '<td>'+ schedule[i].time +'</td>';
scheduleStr = scheduleStr + '<td><span class="custom-badge status-green">Active</span></td>';
scheduleStr = scheduleStr + '<td class="text-right">';
scheduleStr = scheduleStr + '<div class="dropdown dropdown-action">';
scheduleStr = scheduleStr + '<a href="#" class="action-icon dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="fa fa-ellipsis-v"></i></a>';
scheduleStr = scheduleStr + '<div class="dropdown-menu dropdown-menu-right">';
scheduleStr = scheduleStr + '<a class="dropdown-item" href="edit-schedule.html"><i class="fa fa-pencil m-r-5"></i> Edit</a>';
scheduleStr = scheduleStr + '<a class="dropdown-item" href="#" data-toggle="modal" data-target="#delete_schedule"><i class="fa fa-trash-o m-r-5"></i> Delete</a>';
scheduleStr = scheduleStr + '</div>';
scheduleStr = scheduleStr + '</div>';
scheduleStr = scheduleStr + '</td>';
scheduleStr = scheduleStr + '</tr>';
}
$("#schedule").html(scheduleStr);
});
</script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化