-
Notifications
You must be signed in to change notification settings - Fork 3
/
author.php
executable file
·133 lines (124 loc) · 5.92 KB
/
author.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?php
include_once("PHP/mysql.php");
session_start();
if (!isset($_SESSION['log']) || empty($_SESSION['log']) || $_SESSION['log'] != 1) {
echo "<script>alert('请先登陆!');</script>";
header("Refresh:0;url=index.html");
exit();
}
if (!isset($_SESSION['role']) || empty($_SESSION['role']) || $_SESSION['role'] != 1) {
echo "<script>alert('您没有权力进入此页!');</script>";
header("Refresh:0;url=home.php");
exit();
}
getConnect();
$selectSQL = "SELECT * FROM userinfo";
$res1 = mysql_query($selectSQL);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" charset="utf-8" />
<link rel="stylesheet" href="./assets/css/back.css" />
<script src="./assets/src/jquery.min.js"></script>
<script src="./assets/src/ajax.js"></script>
<title>Ping聘</title>
</head>
<body>
<div class="main">
<div class="head">
<div class="logo">
<div class="logoIcon headImage"></div>
</div>
<div class="seperator">|</div>
<div class=“header_title”>
<h2 class="h2tit"> 后台管理系统</h2>
</div>
<div class="flexBlank"></div>
<div title="消息提醒" class="notificationButton headImage menuButton"></div>
<div title="注销账号" class="logoutButton headImage menuButton" onclick="logout()"></div>
<div class="administratorInfo"></div>
<div class="administratorPortraitContainer">
<div class="administratorPortrait"></div>
</div>
</div>
<div class="body">
<div class="aside">
<div class="asideListTitle" onclick="toggleExpand(this)">
<div class="asideListTitleIcon asideListSystemUsers"></div>
<div class="asideListTitleWord">用户管理</div>
<img src="images/arrow.png" class="asideListTitleStatusIcon" data-expand="false" />
</div>
<ul class="asideListContent" data-expand="false">
<li class="asideListItem"><a href="console.php">删除用户</a></li>
<li class="asideListItem"><a href="annon_delete.php">删除招聘</a></li>
<li class="asideListItem"><a href="appli_delete.php">删除申请</a></li>
<li class="asideListItem">权限控制</li>
</ul>
<div class="asideListTitle" onclick="toggleExpand(this)">
<div class="asideListTitleIcon asideListAdministrator"></div>
<div class="asideListTitleWord">管理员</div>
<img src="images/arrow.png" class="asideListTitleStatusIcon" data-expand="false" />
</div>
<ul class="asideListContent" data-expand="false">
<li class="asideListItem">个人信息</li>
<li class="asideListItem">操作日志</li>
<li class="asideListItem">系统反馈</li>
</ul>
<div class="asideListTitle" onclick="toggleExpand(this)">
<div class="asideListTitleIcon asideListSettings"></div>
<div class="asideListTitleWord">系统设置</div>
<img src="images/arrow.png" class="asideListTitleStatusIcon" data-expand="false" />
</div>
<ul class="asideListContent" data-expand="false">
<li class="asideListItem">控制台主题</li>
<li class="asideListItem">管理表格样式</li>
<li class="asideListItem">预览文章</li>
<li class="asideListItem">导出操作日志</li>
<li class="asideListItem">敏感词设置</li>
</ul>
</div>
<div class="content">
<div class="content_index">用户管理->权限控制</div>
<div class="controlPanelTop">
<input placeholder=" 输入用户名称搜索" class="searchInput" />
<div class="searchButton">搜索</div>
<div class="flexBlank"></div>
<div class="refreshButton"></div>
</div>
<div class="tableArea">
<table>
<tr>
<td>选择</td>
<th>用户名</th>
<th>账号</th>
<th>联系方式</th>
<th>性别</th>
</tr>
<?php
while ($row = mysql_fetch_array($res1)) {
echo "<tr><td><input type=\"radio\" value=\"" . $row['username'] . "\" name=\"all_row\"></input></td>
<td>" . $row['username'] . "</td>
<td>" . $row['name'] . "</td>
<td>" . $row['phone'] . "</td>
<td>" . $row['sex'] . "</td></tr>";
}
closeConnect();
?>
</table>
</div>
<div class="controlPanelBottom">
<div class="controlPanelBottomButton">批量处理</div>
<div class="flexBlank"></div>
<div class="controlPanelBottomButton" onclick="goToPreviousPage()">上一页</div>
<div class="controlPanelBottomButton" onclick="goToNextPage()">下一页</div>
<input placeholder="1" class="pageInput" />
<div class="jumpButton" onclick="goToCertainPage()">跳转</div>
</div>
<div class="btn_div"><button class="del_button" onclick="setAdmin()">设为管理员</button></div>
</div>
</div>
</div>
<script src="./assets/src/back.js"></script>
</body>
</html>