forked from yuezhongxin/MessageManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinbox.html
More file actions
86 lines (82 loc) · 4.47 KB
/
inbox.html
File metadata and controls
86 lines (82 loc) · 4.47 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>收件箱</title>
<script type="text/javascript" src="scripts/jquery.js"></script>
<script type="text/javascript" src="scripts/lib.js"></script>
<script type="text/javascript">
function RemoveMsg(Id) {
if (confirm("确认要删除吗?")) {
$("#span_" + Id).html('<td colspan="4" style="color:red">删除中......</td>');
$.ajax({
url: '/mvcajax/msg/DeleteMsg',
type: 'post',
data: '{"Id":' + Id + '}',
dataType: 'text',
contentType: 'application/json; charset=utf-8',
success: function (data) {
$("#msg_item_" + Id).html('<td colspan="4" style="color:red">' + data + '</td>');
},
error: function (xhr) {
$("#msg_item_" + Id).html('<td colspan="4" style="color:red">' + xhr.responseText + '</td>');
}
});
}
}
</script>
<link rel="stylesheet" href="css/cnblogs.css" type="text/css">
</head>
<body>
<form name="ListForm" method="post" id="ListForm">
<div id="main_wrapper">
<div id="sideleft">
<div style="padding-left: 20px; width: 95%">
<div id="navcontainer" class="floatright" style="margin-top: 1px">
<ul id="navlist">
<li><a href="inbox.html" class="current">收件箱</a></li>
<li><a href="outbox.html">发件箱</a></li>
</ul>
</div>
<div class="clear"></div>
<div style="margin-top: 10px;">
<table width="100%" cellpadding="5" cellspacing="0" border="0" class="bt">
<tbody>
<tr>
<td width="100px">发件人</td>
<td>标题</td>
<td width="150px" align="center">发送时间</td>
<td width="60px" align="center" colspan="2">处理</td>
</tr>
<tr id="msg_item_940611">
<td><a href="http://home.cnblogs.com/u/1/" class="graylink">dudu</a></td>
<td><a target="_blank" href="http://space.cnblogs.com/message/940611/" title="演示">演示</a></td>
<td align="center" class="gray">2014-05-24 22:24</td>
<td align="center" style="width: 40px;"><a class="click_del_off" onclick="RemoveMsg(940611)" title="删除">删除</a></td>
</tr>
<tr id="msg_item_940606">
<td><a href="http://home.cnblogs.com/u/1/" class="graylink">dudu</a></td>
<td><a target="_blank" href="http://space.cnblogs.com/message/940606/" title="演示">演示</a></td>
<td align="center" class="gray">2014-05-24 21:44</td>
<td align="center" style="width: 40px;"><a class="click_del_off" onclick="RemoveMsg(940606)" title="删除">删除</a></td>
</tr>
<tr id="msg_item_940577">
<td><a href="http://home.cnblogs.com/u/1/" class="graylink">dudu</a></td>
<td><a target="_blank" href="http://space.cnblogs.com/message/940577/" title="演示">演示</a></td>
<td align="center" class="gray">2014-05-24 21:25</td>
<td align="center" style="width: 40px;"><a class="click_del_off" onclick="RemoveMsg(940577)" title="删除">删除</a></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div id="sideright">
> 当前用户:小菜<br /><br />
> <a href="compose.html" class="big blue">撰写新短消息</a><br />
</div>
</div>
</form>
</body>
</html>