-
Notifications
You must be signed in to change notification settings - Fork 0
/
del_manager.php
196 lines (186 loc) · 5.73 KB
/
del_manager.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<?php
session_start();
if($_SESSION['name']=="")
{
header("Location:http:login.php");
}
?>
<!DOCTYPE html>
<html>
<head>
<title>删除管理员</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<link rel="stylesheet" href="css/easyui.css"/>
<link rel="stylesheet" href="css/demo.css"/>
<link rel="stylesheet" href="css/icon.css"/>
<link rel="stylesheet" href="css/bootstrap.min.css"/>
<link rel="stylesheet" href="css/bootstrap-theme.css"/>
<script type="text/javascript" src="javascripts/jquery.min.js"></script>
<script type="text/javascript" src="javascripts/jquery.easyui.min.js"></script>
<script type="text/javascript" src="javascripts/bootstrap.min.js"></script>
<script type="text/javascript" src="javascripts/javascript.js"></script>
</head>
<body>
<div style="margin-left:20px;width:1200px;background:url(images/bg.png)">
<img src="images/head.png"/>
</div>
<div class="container-fluid">
<div style="height:25px;padding:12px;">
<b>欢迎您:</b><?php echo $_SESSION["name"];?>
<span><?php $time=date('Y/m/d',time());echo $time?>
<?php
$weekarray=array("日","一","二","三","四","五","六");
echo "星期".$weekarray[date("w")];
?>
</span>
</div>
<div class="row-fluid" style="width:1200px;">
<div class="span12">
<div class="navbar navbar-inverse">
<div class="navbar-inner">
<div class="container-fluid">
<a data-target=".navbar-responsive-collapse" data-toggle="collapse" class="btn btn-navbar"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a>
<div class="nav-collapse collapse navbar-responsive-collapse">
<ul class="nav">
<li class="active">
<a href="index.php">首页</a>
</li>
<!-- 个人信息管理 -->
<li class="dropdown">
<a data-toggle="dropdown" class="dropdown-toggle" href="#">个人信息管理<strong class="caret"></strong></a>
<ul class="dropdown-menu">
<li>
<a href="ch_passwd.php">修改个人密码</a>
</li>
<?php
if($_SESSION['name']=="admin")
{
echo "<li class='divider'>
</li>
<li>
<a href='add_manager.php'>添加管理员</a>
</li>
<li>
<a href='del_manager.php'>删除管理员</a>
</li>";
}
?>
</ul>
</li>
<!-- 分类管理 -->
<li class="dropdown">
<a data-toggle="dropdown" class="dropdown-toggle" href="#">分类管理<strong class="caret"></strong></a>
<ul class="dropdown-menu">
<li>
<a href="add_fenlei.php">添加分类</a>
</li>
<li>
<a href="ch_fenlei.php">修改分类</a>
</li>
<li>
<a href="del_fenlei.php">删除分类</a>
</li>
</ul>
</li>
<!-- 课件管理 -->
<li class="dropdown">
<a data-toggle="dropdown" class="dropdown-toggle" href="#">课件管理<strong class="caret"></strong></a>
<ul class="dropdown-menu">
<li>
<a href="add_kejian.php">添加课件</a>
</li>
<li>
<a href="del_kejian.php">删除课件</a>
</li>
</ul>
</li>
<!-- 留言管理 -->
<li class="dropdown">
<a data-toggle="dropdown" class="dropdown-toggle" href="#">留言管理<strong class="caret"></strong></a>
<ul class="dropdown-menu">
<li>
<a href="ping.php">回复留言</a>
</li>
<li>
<a href="del_ping.php">删除留言</a>
</li>
</ul>
</li>
<!-- 通知管理 -->
<li class="dropdown">
<a data-toggle="dropdown" class="dropdown-toggle" href="#">通知管理<strong class="caret"></strong></a>
<ul class="dropdown-menu">
<li>
<a href="add_note.php">添加通知</a>
</li>
<li>
<a href="del_note.php">删除通知</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="margin-left:20px;margin-top:0px;width:1200px;height:500px;">
<table class="table table-hover table-striped">
<thead>
<tr>
<th>
编号
</th>
<th>
管理员名
</th>
<th>
密码
</th>
<th>
操作
</th>
</tr>
</thead>
<tbody>
<?php
include 'conn/daocon.php';
$ConDB=new BeanConn;
$ConDB->getConn();
$sql="select name,passwd from tb_manager";
$resultset=@mysql_query($sql);
//$items = array();
$var=1;
while($row = @mysql_fetch_array($resultset)){
echo "<tr class='";
if($var%6 == 0) echo "default'";
if($var%6 == 1) echo "warning'";
if($var%6 == 2) echo "success'";
if($var%6 == 3) echo "info'";
if($var%6 == 4) echo "warning'";
if($var%6 == 5) echo "success'";
echo "><td>";
echo $var;
echo "</td>";
echo "<td>";
echo $row["name"];
echo "</td>";
echo "<td>";
echo $row["passwd"];
echo "</td>";
echo "<td>";
echo "<a href='conn/conn.php?type=delManager&name=".$row["name"]."'>删除</a>";
echo "</td>";
echo "</tr>";
$var++;
}
?>
</tbody>
</table>
</div>
</body>
</html>