Repository navigation
Expand file tree
/
Copy pathLicenseInfoListView.php
More file actions
70 lines (65 loc) · 1.71 KB
/
Copy pathLicenseInfoListView.php
File metadata and controls
70 lines (65 loc) · 1.71 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
<?php
session_start();
require_once('config.php');
include_once('CheckSignin.php');
require_once('EnumFun.php');
$result = $mdb2->query(
'SELECT * FROM LicenceInfo WHERE User1 = '
.$mdb2->quote($_SESSION['UserID'],"text")
." ORDER BY ID DESC"
);
if (PEAR::isError($result)) {
die("{'Error':'".$result->getMessage()."'}");
}
?><!DOCTYPE HTML><html>
<head>
<meta charset="UTF-8">
<title>授权信息列表</title>
</head>
<body>
<a href="LicenseInfoAdd.php" target="_blank">申请新授权</a>
<hr/>
<table border="1">
<tr>
<th>ID</th>
<th>申请人员</th>
<th>申请时间</th>
<th>审核人员</th>
<th>审核时间</th>
<th>产品</th>
<th>状态</th>
<th>备注</th>
<th>详情</th>
<th>删除</th>
</tr>
<?php
while ($row = $result->fetchRow())
{
//$content1 = strval($row[strtolower('Content1')]);
//$content2 = strval($row[strtolower('Content2')]);
$product = $row[strtolower('Product')];
$status = $row[strtolower('Status')];
echo "<tr>";
echo "<td>".$row[strtolower('ID')]."</td>";
echo "<td>".$row[strtolower('User1')]."</td>";
echo "<td>".$row[strtolower('Time1')]."</td>";
echo "<td>".$row[strtolower('User2')]."</td>";
echo "<td>".$row[strtolower('Time2')]."</td>";
echo "<td>".$product."</td>";
echo "<td>".EnumStatusToString($status)."</td>";
echo "<td>".$row[strtolower('Remark')]."</td>";
echo "<td><a href='LicenseInfoView.php?ID=".$row[strtolower('ID')]."' target='_blank'>查看或下载</a></td>";
if($status<4)
{
echo "<td><a href='LicenseInfoAction.php?Action=Delete&ID=".$row[strtolower('ID')]."'>删除</a></td>";
}
else
{
echo "<td></td>";
}
echo "</tr>";
}
?>
</table>
</body>
</html>