嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元微信扫码支付:2 元
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
包含景区管理与游客管理
@using Demo56.Models;
<!DOCTYPE html>
<html>
<head>
<title>教学管理信息服务平台</title>
<link href="~/lib/bootstrap/bootstrap.css" rel="stylesheet" />
<script src="~/lib/bootstrap/bootstrap.js"></script>
<script src="~/lib/jquery/jquery.js"></script>
</head>
<body>
<div class="container">
<div style="margin: 0 auto; height: 100px; margin-top: 0px; background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); border-radius: 8px; padding: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);">
<div style="display: flex; justify-content: space-between; align-items: center;">
<div style="display: flex; align-items: center;">
<img src="~/Images/main1.jpg" style="height: 60px;" />
</div>
<div style="color: white; font-size: 18px;">
<span id="name" runat="server" style="margin-right: 20px; font-weight: 500;">管理员</span>
<button class="btn btn-outline-light btn-sm" style="border-radius: 20px; padding: 3px 15px;">退出</button>
</div>
</div>
</div>
<div style="margin-top: 20px;">
<nav class="navbar navbar-expand-lg navbar-light" style="background: linear-gradient(to right, #ffffff, #f8f9fa); border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05);">
<div class="container">
<a href="~/student/index" class="navbar-brand" style="font-weight: 600; color: #2575fc;">首页</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navmenu">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navmenu">
<ul class="nav navbar-nav">
<li class="dropdown active">
<a href="#" class="nav-link dropdown" data-bs-toggle="dropdown" style="color: #495057; font-weight: 500;">景区管理</a>
<ul class="dropdown-menu bg-light" style="font-size:13px; border-radius: 8px; border: none; box-shadow: 0 4px 12px rgba(0,0,0,0.1);">
<li><a class="nav-link" href="~/department/add" style="color: #495057; padding: 8px 16px;">添加景区</a></li>
<li><a class="nav-link" href="~/department/index" style="color: #495057; padding: 8px 16px;">景区管理</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="nav-link dropdown" data-bs-toggle="dropdown" style="color: #495057; font-weight: 500;">游客管理</a>
<ul class="dropdown-menu bg-light" style="border-radius: 8px; border: none; box-shadow: 0 4px 12px rgba(0,0,0,0.1);">
<li><a class="nav-link" href="~/home/add" style="color: #495057; padding: 8px 16px;">添加游客</a></li>
<li><a class="nav-link" href="~/home/main" style="color: #495057; padding: 8px 16px;">游客列表</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
</div>
<div style="margin-top: 20px;">
<div class="card" style="border-radius: 8px; border: none; box-shadow: 0 4px 12px rgba(0,0,0,0.08);">
<div class="card-body" style="padding: 0;">
<div class="table-responsive">
<table class="table" style="margin-bottom: 0;">
<thead style="background: linear-gradient(to right, #495057, #343a40);">
<tr>
<th style="padding: 12px 16px; color: #fff; font-weight: 600; border-top: none;">游客编号</th>
<th style="padding: 12px 16px; color: #fff; font-weight: 600; border-top: none;">游客姓名</th>
<th style="padding: 12px 16px; color: #fff; font-weight: 600; border-top: none;">性别</th>
<th style="padding: 12px 16px; color: #fff; font-weight: 600; border-top: none;">入园时间</th>
<th style="padding: 12px 16px; color: #fff; font-weight: 600; border-top: none;">联系方式</th>
<th style="padding: 12px 16px; color: #fff; font-weight: 600; border-top: none;">所在景区</th>
<th style="padding: 12px 16px; color: #fff; font-weight: 600; border-top: none;">操作</th>
</tr>
</thead>
<tbody>
@foreach (Student stu in ViewBag.Students)
{
<tr style="transition: all 0.3s ease; background-color: #fff;"
onmouseover="this.style.backgroundColor='#f8f9fa'; this.style.boxShadow='0 2px 8px rgba(0,0,0,0.1)';"
onmouseout="this.style.backgroundColor='#fff'; this.style.boxShadow='none';">
<td style="padding: 12px 16px; border-top: 1px solid #e9ecef;"><a href="~/home/detail/@stu.Id" style="color: #2c3e50; text-decoration: none; font-weight: 500;">@stu.Code</a></td>
<td style="padding: 12px 16px; border-top: 1px solid #e9ecef; color: #495057;">@stu.Name</td>
<td style="padding: 12px 16px; border-top: 1px solid #e9ecef; color: #495057;">
@if (stu.Sex)
{
@:男
}
else
{
@:女
}
</td>
<td style="padding: 12px 16px; border-top: 1px solid #e9ecef; color: #495057;">@stu.Birth</td>
<td style="padding: 12px 16px; border-top: 1px solid #e9ecef; color: #495057;">@stu.Email</td>
<td style="padding: 12px 16px; border-top: 1px solid #e9ecef; color: #495057;">@stu.Department</td>
<td style="padding: 12px 16px; border-top: 1px solid #e9ecef;">
<a href="~/home/edit/@stu.Id" class="btn btn-sm" style="background-color: #3498db; color: white; border-radius: 4px; padding: 2px 8px; margin-right: 5px; border: none; transition: all 0.2s ease;"
onmouseover="this.style.transform='scale(1.05)'; this.style.boxShadow='0 2px 4px rgba(0,0,0,0.2)';"
onmouseout="this.style.transform='scale(1)'; this.style.boxShadow='none';">编辑</a>
<a href="~/home/delete/@stu.Id" class="btn btn-sm" style="background-color: #e74c3c; color: white; border-radius: 4px; padding: 2px 8px; border: none; transition: all 0.2s ease;"
onmouseover="this.style.transform='scale(1.05)'; this.style.boxShadow='0 2px 4px rgba(0,0,0,0.2)';"
onmouseout="this.style.transform='scale(1)'; this.style.boxShadow='none';">删除</a>
</td>
</tr>
}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</body>
</html>