Ai
4 Star 0 Fork 0

softwareengineering1/software

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Adminmajor.php 2.56 KB
一键复制 编辑 原始数据 按行查看 历史
softwareengineering1 提交于 2021-05-30 19:41 +08:00 . contents of comment
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>专业管理</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/Admin.css" />
<script src="js/jquery-3.3.1.min.js" type="text/javascript"></script>
<script src="js/bootstrap.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="css/header2.css" />
<!-- <link rel="stylesheet" type="text/css" href="css/footer.css" />-->
<style type="text/css">
</style>
</head>
<body>
<?php
//管理员权限检测
if(!isset($_COOKIE['gm']))
{
echo"非管理员不得操作!";
//没有读取到管理权限
exit();
}
$gm=$_COOKIE['gm'];
if($gm<=0)
{
echo"非管理员不得操作!";
//管理权限不足
exit();
}
include("header2.php");
include_once ("./conn.php");
?>
<section class="secright" >
<div class="table-title">
<h3>专业管理</h3>
<hr/>
<div class="newbutton">
<a href="Adminnew.php?kind=addnewmajor"><button>+ 添加新的专业</button></a>
</div>
</div>
<table class="table-fill">
<thead>
<tr>
<th class="text-left">专业号</th>
<th class="text-left">专业名</th>
<th class="text-left">专业选修学分限制</th>
<th class="text-left">编辑</th>
<th class="text-left">删除</th>
</tr>
</thead>
<tbody class="table-hover">
<?php
//查询专业
$sql="select * from major as m where m.delete='0' order by m.majorid asc";
//执行sql命令
$result=mysqli_query($link,$sql);
while ($row=mysqli_fetch_assoc($result))
{
?>
<tr>
<td class="text-left"><?=$row['majorid']?></td>
<td class="text-left"><?=$row['majorname']?></td>
<td class="text-left"><?=$row['creditlimit']?></td>
<td class="text-left"><a id="<?=$row['majorid']?>" class="editmajor">编辑</a></td>
<td class="text-left"><a id="<?=$row['majorid']?>" class="deletemajor">删除</a></td>
</tr>
<?php
}
?>
</tbody>
</table>
</section>
<script src="js/Adminmajor.js" type="text/javascript"></script>
<?php
$link->close();
?>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/softwareengineering1/software.git
git@gitee.com:softwareengineering1/software.git
softwareengineering1
software
software
master

搜索帮助