-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathapp_chatgroup_users.html
283 lines (260 loc) · 11.6 KB
/
app_chatgroup_users.html
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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>环信开发者中心</title>
<!--
<link href="//cdnjscn.b0.upaiyun.com/libs/twitter-bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="//cdnjscn.b0.upaiyun.com/libs/twitter-bootstrap/2.3.2/css/bootstrap-responsive.css" rel="stylesheet" type="text/css" media="screen"/>
-->
<link href="assets/css/bootstrap-2.3.2.min.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="assets/css/bootstrap-responsive-2.3.2.min.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="assets/css/font-awesome-3.1.0.min.css" rel="stylesheet" type="text/css" media="screen"/>
<!--[if IE 7]>
<link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css" />
<![endif]-->
<!--fonts-->
<!-- <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,300" /> -->
<!--ace styles-->
<link href="assets/css/ace.min.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="assets/css/ace-responsive.min.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="assets/css/ace-skins.min.css" rel="stylesheet" type="text/css" media="screen"/>
<!--[if lte IE 8]>
<link rel="stylesheet" href="assets/css/ace-ie.min.css" />
<![endif]-->
<link href="assets/css/management.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="assets/css/manage.css" rel="stylesheet" type="text/css" media="screen"/>
<style type="text/css">
.row-fluid td{ text-align:center;}
.row-fluid a{ margin:auto;}
.row-fluid dt{float:left;}
.row-fluid dd{float:left;}
.a_button:link{ text-decoration:none;}
.a_button:hover{ background-color:#2283c5;}
</style>
<!--
<script src="//cdnjscn.b0.upaiyun.com/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="//cdnjscn.b0.upaiyun.com/libs/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
<script src="//cdnjscn.b0.upaiyun.com/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<script src="//cdnjscn.b0.upaiyun.com/libs/json2/20130526/json2.min.js"></script>
-->
<script src="assets/js/jquery-1.7.2.min.js"></script>
<script src="assets/js/bootstrap-2.3.2.min.js"></script>
<script src="assets/js/jquery.cookie-1.3.js"></script>
<script src="assets/js/json2.js"></script>
<script src="assets/js/ace-elements.min.js"></script>
<script src="assets/js/ace.min.js"></script>
<script src="assets/js/management.js"></script>
<script type="text/javascript">
var appUuid;
$(function(){
if (!getToken() || getToken()==''){
logout();
}
//getAppList();
appUuid = getQueryString('appUuid').split(',')[0];
//var groupid=getQueryString('appUuid').split(',')[1];
var groupid=getQueryString('groupid');
getAppChatroomsuser(appUuid,groupid);
$("#groupName").text(groupid);
});
//删除选定的用户
function deleteAppUsersBox(){
deleteAppqunzuCheckBox(appUuid);
}
// 应用概述页
function toApppofile(){
window.location.href = 'app_profile.html?appUuid='+appUuid;
}
// 用户管理页
function toAppUsersPage(){
window.location.href = 'app_users.html?appUuid='+appUuid;
}
// 群组页
function togroupAppAdmin(){
window.location.href = 'app_group.html?appUuid='+appUuid;
}
// 推送证书管理页
function toAppCredentialsPage(){
window.location.href = 'app_credentials.html?appUuid='+appUuid;
}
// 数据统计页面
function toApppofileCounter(){
window.location.href = 'app_profile_counter.html?appUuid='+appUuid;
}
// 应用管理员创建页面
function toCreateAppAdmin(){
window.location.href = 'app_admin_create.html?appUuid='+appUuid;
}
// 添加群组
function togroupaddAppAdmin(){
window.location.href = 'app_group.html?appUuid='+appUuid;
}
//管理员列表页面
function toAppUserAdmin(){
window.location.href = 'app_users_admin.html?appUuid='+appUuid;
}
// 去除字符串中所有空格
function removeAllSpace(str) {
return str.replace(/\s+/g, "");
}
//发送消息
function showSendMessge(){
sendMessge(appUuid);
}
//添加好友
function showAddFriendHTML(){
var appUuid = getQueryString('appUuid').split(',')[0];
//var owner_username = getQueryString('appUuid').split(',')[1];
var owner_username = getQueryString('groupid');
showAddFriend(appUuid,owner_username);
}
</script>
</head>
<body>
<div class="navbar navbar-inverse">
<div class="navbar-inner">
<div class="container-fluid"> <a class="brand" href="javascript:void(0);"> <small> <img style="height:45px;" src="assets/images/home_logo.png" alt="管理后台"/> </small> </a>
<div class="lianjie">
<ol>
<li><a href="http://www.easemob.com" target="_blank"><h5>主页</h5></a></li>
<li><a href="http://developer.easemob.com" target="_blank"><h5>文档</h5></a></li>
<li><a href="http://www.easemob.com/faq" target="_blank"><h5>帮助</h5></a></li>
<li><a href="http://www.easemob.com/sdk" target="_blank"><h5>下载SDK</h5></a></li>
</ol>
</div>
<ul class="nav ace-nav pull-right">
<li class="light-blue user-profile"> <a class="user-menu dropdown-toggle" href="javascript:void(0);" data-toggle="dropdown"> <span id="user_info"></span> <i class="icon-caret-down"></i> </a>
<ul id="user_menu" class="pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-closer">
<li class="divider"></li>
<li> <a href="admin_home.html"> <i class="icon-user"></i> 账户 </a> </li>
<li> <a onClick="logout();" href="javascript:void(0);"> <i class="icon-off"></i> 退出 </a> </li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<div id="main-container" class="container-fluid"> <a href="javascript:void(0);" id="menu-toggler"> <span></span> </a>
<div id="sidebar">
<div id="sidebar-shortcuts">
<div style="min-height: 40px;" id="sidebar-shortcuts-large"> </div>
<div style="min-height: 40px;" id="sidebar-shortcuts-mini"> </div>
</div>
<ul class="nav nav-list">
<li class="active"> <a href="app_list.html" target="_self"> <i class="icon-ambulance"></i> <span>我的应用</span> </a></li>
<li> <a href="admin_home.html" target="_self"> <i class="icon-user"></i> <span>个人信息</span> </a></li>
</ul>
<div id="sidebar-collapse"> <i class="icon-double-angle-left"></i> </div>
</div>
<div class="clearfix" id="main-content">
<div id="breadcrumbs">
<ul class="breadcrumb">
<li> <i class="icon-home"></i> 我的应用 </li><li><span class="divider"> <i class="icon-angle-right"></i> </span> <a href="javascript:toApppofile()"><span id="showName"></span></a> </li><li><span class="divider"> <i class="icon-angle-right"></i> </span> 群组</span> </li><li><span class="divider"> <i class="icon-angle-right"></i> </span><span id="groupName"></span> </li><li><span class="divider"> <i class="icon-angle-right"></i> </span> 成员列表</span> </li>
</ul>
</div>
<div class="clearfix" id="page-content">
<div class="row-fluid">
<div class="pagination pagination-left">
<ul>
<li> <a href="javascript:toApppofile()">应用概况</a> </li>
</ul>
<ul>
<li> <a href="javascript:toAppUsersPage()">IM用户</a> </li>
</ul>
<ul>
<li> <a href="javascript:togroupAppAdmin()"><font color="green">群组</font></a> </li>
</ul>
<ul>
<li> <a href="javascript:toAppCredentialsPage()">推送证书</a> </li>
</ul>
<ul>
<li> <a href="javascript:toApppofileCounter()">统计数据</a> </li>
</ul>
<ul>
<li> <a href="javascript:toAppUserAdmin()">App管理员</a> </li>
</ul>
<hr/>
</div>
<div class="pagination pagination-left">
<div class="inbox-header">
<form id="searchForm" action="#" class="form-search pull-right">
<div class="input-append">
<input class="m-wrap" value="" id="userInbox" type="text" placeholder="输入完整用户名" />
<button class="btn green" id="searchBtn" onClick="searchUserTmp()" type="button">搜索</button>
<input value="" id="userInboxBak" type="hidden" />
</div>
</form>
</div>
<!--<ul>
<li> <a href="app_create.html">发送消息</a></li>
</ul>-->
<ul>
<li><a href="javascript:showAddFriendHTML()" data-toggle="modal" role="button">添加成员</a> </li>
<li style="display:none"> <a id="showAddFriend" href="#addFriend" data-toggle="modal" role="button"></a> </li>
</ul>
</div>
<div class="row-fluid">
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th class="hidden-480 text-center"><i></i>成员名称</th>
<th class="hidden-240 text-center"><i></i>操 作</th>
</tr>
</thead>
<tbody id="appIMBody" style="text-align:center;position:">
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!--添加成员-->
<div id="addFriend" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button id="closeButn" type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">添加好友</h3>
</div>
<div class="modal-body">
<div class="row-fluid">
<div class="span12">
<div class="control-group">
<label class="control-label" for="messegeContent">好友名称:</label>
<div class="controls">
<input type="text" id="friendUsername" name="friendUsername" value=""/>
<input type="hidden" id="usernameFriend" name="usernameFriend" value=""/>
<input type="hidden" id="appUuidFriend" name="appUuidFriend" value=""/>
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<a class="btn" onClick="addIMFriendusers();" href="javascript:void(0);">添加</a>
<button id="messageCloseBtn" class="btn" data-dismiss="modal" onClick="clsSpan()" aria-hidden="true">关闭</button>
</div>
</div>
<!--添加成员end-->
<!--焦点高亮添加好友模块-->
<!--<div style="width:100%; height:2000px; text-align:center; vertical-align:middle; position:fixed; z-index:100; overflow:hidden;">
<div style="width:400px; height:200px; margin:auto; border:#ccc 1px solid">
<div style="float:right; width:20px; height:20px; background:#ccc;border:1ps solid #333;"><a style="text-decoration:none">X</a></div>
<dl style="padding-top:20px;">
<dt style="width:400px; float:right; padding-right:20px; margin-bottom:10px;">title: <input type="text" style="width:200px;" /></dt>
<dd style="width:400px; float:right; padding-right:34px; margin-bottom:10px;">content: <textarea type="text" style="width:200px; height:50px;"></textarea></dd>
<dd style="width:400px; float:right; margin-bottom:10px;"">
<a class="a_button" href="#" style="display:block; float:left; margin-left:91px; background:#fafafa; border:1px solid #e0e8eb; width:100px; height:30px; line-height:30px; font-size:14px;">发送</a>
<a href="#" style="display:block; float:left; margin-left:10px; background:#fafafa; border:1px solid #e0e8eb; width:100px; height:30px; line-height:30px; font-size:14px;">取消</a>
</dd>
</dl>
</div>
</div>-->
</body>
</html>