-
Notifications
You must be signed in to change notification settings - Fork 0
/
Notification.aspx
executable file
·202 lines (197 loc) · 10.1 KB
/
Notification.aspx
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
197
198
199
200
201
202
<%@ Page Language="C#" MasterPageFile="MasterPage.master" AutoEventWireup="true" CodeFile="Notification.aspx.cs" Inherits="NotificationPage" %>
<%@ MasterType TypeName="MasterPage" %>
<asp:Content ContentPlaceHolderID="PageMenu" runat="server">
<li>
<a href="#" onclick="notificationList()">
<span class="glyphicon glyphicon-repeat"></span><span class="hidden-xs"> 刷新</span></a>
</li>
<% if (SAAO.User.Current.IsExecutive || SAAO.User.Current.IsSupervisor || SAAO.User.Current.IsGroupHeadman)
{ %>
<li>
<a href="#" onclick="notificationCompose()">
<span class="glyphicon glyphicon-edit"></span><span class="hidden-xs"> 发布通知</span></a>
</li>
<% } %>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<span class="glyphicon glyphicon-filter"></span><span class="hidden-xs"> 筛选</span> <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li>
<a href="#" onclick="notificationList(1)"><span class="glyphicon glyphicon-tags"></span> 全员通知</a>
</li>
<li>
<a href="#" onclick="notificationList(2)"><span class="glyphicon glyphicon-tag"></span> 组内通知</a>
</li>
<li class="divider"></li>
<li>
<a href="#" onclick="notificationList(3)"><span class="glyphicon glyphicon-file"></span> 监督报告</a>
</li>
</ul>
</li>
<li class="hidden-xs">
<a href="#" data-toggle="modal" data-target="#helpmodal">
<span class="glyphicon glyphicon-question-sign"></span><span class="hidden-xs">帮助</span></a>
</li>
</asp:Content>
<asp:Content ContentPlaceHolderID="PageContent" runat="server">
<ol class="breadcrumb">
<li id="folder">全部通知</li>
</ol>
<div id="container"></div>
</asp:Content>
<asp:Content ContentPlaceHolderID="PageModal" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderID="PageScript" runat="server">
<div class="modal fade" id="notificationmodal" tabindex="-1" role="dialog" aria-hidden="true">
<form class="modal-dialog" enctype="multipart/form-data" method="post">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<ul class="nav nav-tabs">
<% if (SAAO.User.Current.IsExecutive || SAAO.User.Current.IsGroupHeadman)
{ %>
<li>
<a href="#notice" data-toggle="tab">发布通知</a>
</li>
<% }
if (SAAO.User.Current.IsSupervisor)
{ %>
<li>
<a href="#report" data-toggle="tab">监督报告</a>
</li>
<% } %>
</ul>
</div>
<div class="modal-body">
<div class="tab-content">
<div class="tab-pane" id="notice">
<div class="row">
<div class="col-lg-12">
<div class="input-group">
<div class="input-group-btn">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<span id="visibility">可见级别 </span><span class="caret"></span></button>
<ul class="dropdown-menu">
<li>
<a href="#" onclick="$('#visibility').html('组内通知 ');">组内通知 </a>
</li>
<li>
<a href="#" onclick="$('#visibility').html('全员通知 ');">全员通知 </a>
</li>
</ul>
</div>
<input type="text" id="noticetitle" class="form-control" placeholder="通知标题">
<% if (SAAO.User.Current.IsExecutive)
{ %>
<span class="input-group-addon">
<span class="glyphicon glyphicon-flag"></span><abbr title="通知将会置顶,同时会在微信广播">设为重要</abbr>
<input type="checkbox">
</span>
<% } %>
</div>
</div>
</div>
<textarea id="noticecontent" class="form-control" rows="6" placeholder="通知内容"></textarea>
</div>
<div class="tab-pane" id="report">
<div class="form-group">
<label for="reportfile">上传监督报告文档</label>
<p class="help-block">为避免文档排版差异,请上传pdf格式</p>
<input type="file" name="reportfile" id="reportfile">
</div>
<p class="help-block">监督报告概要将显示在通知区主页</p>
<textarea name="reportabstract" class="form-control" rows="2" placeholder="监督报告概要"></textarea>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
<button type="submit" class="btn btn-primary">发布</button>
</div>
</div>
</form>
</div>
<div class="modal fade" id="reportmodal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">监督报告</h4>
</div>
<div class="modal-body">
<iframe src="#" id="reportframe"></iframe>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
<a href="#" target="_blank" class="btn btn-primary">下载</a>
</div>
</div>
</div>
</div>
<div class="modal fade" id="helpmodal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">帮助</h4>
</div>
<div class="modal-body">
<p>若要查看监督报告,请点击监督报告的卡片。</p>
<hr>
<p>发布通知权限</p>
<table class="table table-condensed">
<caption></caption>
<thead>
<tr>
<th>职务</th>
<th>发布组内通知</th>
<th>发布全员通知</th>
<th>发布监督报告</th>
<th>设置重要通知</th>
</tr>
</thead>
<tbody>
<tr>
<td>高一各组组长</td>
<td>
<i class="glyphicon glyphicon-ok"></i>
</td>
<td>
<i class="glyphicon glyphicon-ok"></i>
</td>
<td></td>
<td></td>
</tr>
<tr>
<td>高二全体高层</td>
<td>
<i class="glyphicon glyphicon-ok"></i>
</td>
<td>
<i class="glyphicon glyphicon-ok"></i>
</td>
<td></td>
<td>
<i class="glyphicon glyphicon-ok"></i>
</td>
</tr>
<tr>
<td>审计组组员</td>
<td></td>
<td></td>
<td>
<i class="glyphicon glyphicon-ok"></i>
</td>
<td></td>
</tr>
</tbody>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
</div>
</div>
</div>
</div>
</asp:Content>