user.php
2.67 KB
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户信息查看</title>
</head>
<body>
<br><br><br>
<form method="post" action="<?php echo url('/user') ?>">
<table>
<tr>
<td>账号类型:</td>
<td>
<?php foreach ($this->view->types as $k => $v):?>
<input type="radio" name="type" id="type<?php echo $k ;?>" value="<?php echo $k?>" <?php if ($this->view->type == $k):?>checked="checked"<?php endif;?>>
<label for="type<?php echo $k ;?>"><?php echo $v?></label>
<?php endforeach;?>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>账号名称:</td>
<td><input type="text" name="account" value="<?php echo $this->view->account ;?>"></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input type="submit" value="查询 "></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td colspan=2 style="color: red;"><?php echo $this->view->error ;?></td>
</tr>
<?php if ($this->view->userinfo):?>
<tr>
<td colspan=2>账号列表</td>
</tr>
<?php foreach ($this->view->auth_list as $type => $val):?>
<tr>
<td><?php echo $this->view->types[$type]?>:</td>
<td>
<?php echo $val['auth_id']?>
</td>
</tr>
<?php endforeach;?>
<tr>
<td> </td>
</tr>
<tr>
<td>用户ID:</td>
<td>
<?php echo $this->view->userinfo['uid'];?>
</td>
</tr>
<tr>
<td>状态: </td>
<td>
<?php echo ($this->view->userinfo['state'])?'<font style="color:green;">有效</font>':'<font style="color:red;">禁用</font>';?><br>
</td>
</tr>
<?php endif;?>
</table>
</form>
</body>
</html>