|
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UploadIVR.aspx.cs" Inherits="IVRConfig_UploadIVR" %>
|
|
|
2
|
+<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
3
|
+<head id="Head1" runat="server">
|
|
|
4
|
+ <title>IVR上传</title>
|
|
|
5
|
+ <link href="../_common/styles/global.css" rel="stylesheet" type="text/css" />
|
|
|
6
|
+ <link href="../_common/styles/dialogs.css" rel="stylesheet" type="text/css" />
|
|
|
7
|
+ <link href="../_common/styles/select.css" rel="stylesheet" type="text/css" />
|
|
|
8
|
+ <link href="../_common/styles/form.css" rel="stylesheet" type="text/css" />
|
|
|
9
|
+ <link href="../_common/styles/controls.css" rel="stylesheet" type="text/css" />
|
|
|
10
|
+ <link href="../_common/styles/nav.css" rel="stylesheet" type="text/css" />
|
|
|
11
|
+ <link href="../_grid/grid.css" rel="stylesheet" type="text/css" />
|
|
|
12
|
+ <link href="../_grid/AppGrid.css" rel="stylesheet" type="text/css" />
|
|
|
13
|
+ <link href="../_common/styles/menu.css" rel="stylesheet" type="text/css" />
|
|
|
14
|
+ <link href="../_common/styles/tabs.css" rel="stylesheet" type="text/css" />
|
|
|
15
|
+
|
|
|
16
|
+ <script src="../_common/scripts/Global.js" type="text/javascript"></script>
|
|
|
17
|
+
|
|
|
18
|
+ <script src="../Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
|
|
|
19
|
+
|
|
|
20
|
+ <script src="../_common/scripts/windowinformation.js" type="text/javascript"></script>
|
|
|
21
|
+
|
|
|
22
|
+ <script src="../_common/scripts/Util.js" type="text/javascript"></script>
|
|
|
23
|
+
|
|
|
24
|
+ <script src="../_grid/action.js" type="text/javascript"></script>
|
|
|
25
|
+
|
|
|
26
|
+ <script src="../_javascripts/globalctrl.js" type="text/javascript"></script>
|
|
|
27
|
+
|
|
|
28
|
+ <script src="../Scripts/RecPlayer.js" type="text/javascript"></script>
|
|
|
29
|
+
|
|
|
30
|
+ <link rel="stylesheet" type="text/css" href="../_css/ext-all.css" />
|
|
|
31
|
+ <style type="text/css">
|
|
|
32
|
+ .wbox
|
|
|
33
|
+ {
|
|
|
34
|
+ width: 100%;
|
|
|
35
|
+ height: 100%;
|
|
|
36
|
+ border: 1px solid #849bba;
|
|
|
37
|
+ background: #FFF;
|
|
|
38
|
+ padding: 1px;
|
|
|
39
|
+ }
|
|
|
40
|
+ .lbox
|
|
|
41
|
+ {
|
|
|
42
|
+ width: 100%;
|
|
|
43
|
+ height: 100%;
|
|
|
44
|
+ padding-bottom: 4px;
|
|
|
45
|
+ padding-left: 4px;
|
|
|
46
|
+ padding-right: 4px;
|
|
|
47
|
+ background: #c6d4e4;
|
|
|
48
|
+ }
|
|
|
49
|
+ .tbox
|
|
|
50
|
+ {
|
|
|
51
|
+ height: 25px;
|
|
|
52
|
+ color: #15428b;
|
|
|
53
|
+ font-size: 14px;
|
|
|
54
|
+ cursor: move;
|
|
|
55
|
+ margin: 0px;
|
|
|
56
|
+ padding: 0px;
|
|
|
57
|
+ padding-left: 5px;
|
|
|
58
|
+ line-height: 25px; *overflow:hidden;}
|
|
|
59
|
+ .tbox img
|
|
|
60
|
+ {
|
|
|
61
|
+ float: right;
|
|
|
62
|
+ margin-right: 3px;
|
|
|
63
|
+ margin-top: 5px; *top:-28px;*position:relative;}
|
|
|
64
|
+ .nrbox
|
|
|
65
|
+ {
|
|
|
66
|
+ width: 100%;
|
|
|
67
|
+ height: auto;
|
|
|
68
|
+ border: 1px solid #849bba;
|
|
|
69
|
+ background: #dfe8f6;
|
|
|
70
|
+ margin: 0px auto;
|
|
|
71
|
+ }
|
|
|
72
|
+ </style>
|
|
|
73
|
+
|
|
|
74
|
+ <script language="javascript">
|
|
|
75
|
+ var divmark = "";
|
|
|
76
|
+ divmark += "<div id=\"divLock\" style=\"z-index:1;background-color:#AAA;filter:alpha(opacity=50);position: absolute;width:expression(this.parentNode.scrollWidth);top:expression(this.parentNode.scrollTop); left:0; height:100%;right:0; bottom:0; display:none;\"></div>";
|
|
|
77
|
+ divmark += "<div id=\"divMessageBox\" onmousedown=\"MM_dragLayer('divMessageBox','',0,0,0,0,true,false,-1,-1,-1,-1,false,false,0,'',false,'')\" style=\"display:none;position: absolute;top:expression(this.parentNode.scrollHeight/2-100);left:expression(this.parentNode.scrollWidth/2-100);z-index:2;\">";
|
|
|
78
|
+ divmark += "<div class=\"wbox\"><div class=\"lbox\"><h1 class=\"tbox\"><span id=\"spanTitle\"></span><img src=\"../_images/dialogclose.gif\" style=\"cursor:hand;\" onclick=\"MessageBoxClose();\" /></h1>";
|
|
|
79
|
+ divmark += "<div id=\"divContent\" class=\"nrbox\"></div></div></div></div>";
|
|
|
80
|
+ document.write(divmark);
|
|
|
81
|
+ </script>
|
|
|
82
|
+
|
|
|
83
|
+ <script language="javascript" type="text/javascript">
|
|
|
84
|
+ var frmId = "";
|
|
|
85
|
+ var win;
|
|
|
86
|
+ var winmessage;
|
|
|
87
|
+ function OpenMessage(strid, strtitle, strmessage, strwidth, btnstyle, _height) {
|
|
|
88
|
+ var btnstr = "";
|
|
|
89
|
+ switch (btnstyle) {
|
|
|
90
|
+ case 0:
|
|
|
91
|
+ btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();'>确 定</button></div>";
|
|
|
92
|
+ break;
|
|
|
93
|
+ case 1:
|
|
|
94
|
+ btnstr = "<br /><div style='padding-bottom:15px; text-align:center;'><img alt='加载数据中' style='width:180px;' src='../_imgs/inprogress.gif'></div><br />";
|
|
|
95
|
+ break;
|
|
|
96
|
+ case 2:
|
|
|
97
|
+ btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();pagination(1);'>确 定</button></div>";
|
|
|
98
|
+ break;
|
|
|
99
|
+ case 3:
|
|
|
100
|
+ btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();LoadingData();'>确 定</button></div>";
|
|
|
101
|
+ break;
|
|
|
102
|
+ case 4:
|
|
|
103
|
+ btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();DeleteOpt();'>确 定</button> <button style='width: 65px;' onclick='MessageBoxClose();'>取 消</button></div>";
|
|
|
104
|
+ break;
|
|
|
105
|
+ default:
|
|
|
106
|
+ break;
|
|
|
107
|
+ }
|
|
|
108
|
+ if (_height != null) {
|
|
|
109
|
+ strmessage = "<div style='padding:0px;'>" + strmessage + "</div>" + btnstr;
|
|
|
110
|
+ document.getElementById("divMessageBox").style.height = _height;
|
|
|
111
|
+ }
|
|
|
112
|
+ else {
|
|
|
113
|
+ strmessage = "<div style='padding:10px;'>" + strmessage + "</div>" + btnstr;
|
|
|
114
|
+ document.getElementById("divMessageBox").style.height = 50;
|
|
|
115
|
+ _height = 120;
|
|
|
116
|
+ }
|
|
|
117
|
+ document.getElementById("spanTitle").innerHTML = strtitle;
|
|
|
118
|
+ document.getElementById("divContent").innerHTML = strmessage;
|
|
|
119
|
+ document.getElementById("divMessageBox").style.width = strwidth;
|
|
|
120
|
+
|
|
|
121
|
+ try {
|
|
|
122
|
+ document.getElementById("divMessageBox").style.top = (document.body.clientHeight - _height) / 2;
|
|
|
123
|
+ document.getElementById("divMessageBox").style.left = (document.body.clientWidth - strwidth) / 2;
|
|
|
124
|
+ }
|
|
|
125
|
+ catch (e)
|
|
|
126
|
+ { }
|
|
|
127
|
+ document.getElementById("divLock").style.display = "block";
|
|
|
128
|
+ document.getElementById("divMessageBox").style.display = "block";
|
|
|
129
|
+ }
|
|
|
130
|
+ function OpenWindowPage(_title, _id, _width, _height, _url) {
|
|
|
131
|
+ var html = "<iframe id='" + _id + "' src='" + _url + "' style='width:100%; height:" + _height + ";'></iframe>";
|
|
|
132
|
+ OpenMessage(_id, _title, html, _width, -1, _height);
|
|
|
133
|
+ }
|
|
|
134
|
+ function MessageBoxClose() {
|
|
|
135
|
+ document.getElementById("divLock").style.display = "none";
|
|
|
136
|
+ document.getElementById("divMessageBox").style.display = "none";
|
|
|
137
|
+ }
|
|
|
138
|
+ function CloseWindowPage(type) {
|
|
|
139
|
+ MessageBoxClose();
|
|
|
140
|
+ }
|
|
|
141
|
+
|
|
|
142
|
+ </script>
|
|
|
143
|
+
|
|
|
144
|
+ <script language="javascript" type="text/javascript">
|
|
|
145
|
+
|
|
|
146
|
+ var pageIndex = "";
|
|
|
147
|
+ var _searchitems;
|
|
|
148
|
+ function Init() {
|
|
|
149
|
+
|
|
|
150
|
+ pagination(1);
|
|
|
151
|
+ }
|
|
|
152
|
+
|
|
|
153
|
+
|
|
|
154
|
+ function pagination(index) {
|
|
|
155
|
+ pageIndex = index;
|
|
|
156
|
+ LoadingData();
|
|
|
157
|
+ }
|
|
|
158
|
+ function GetSearchOperationsObj() {
|
|
|
159
|
+ _searchitems = new Array;
|
|
|
160
|
+ _searchitems[0] = pageIndex;
|
|
|
161
|
+ _searchitems[1] = 20;
|
|
|
162
|
+ _searchitems[2] = GetSql();
|
|
|
163
|
+
|
|
|
164
|
+ }
|
|
|
165
|
+
|
|
|
166
|
+ //获取sql
|
|
|
167
|
+ function GetSql() {
|
|
|
168
|
+ var strWhere = "";
|
|
|
169
|
+
|
|
|
170
|
+ return strWhere;
|
|
|
171
|
+
|
|
|
172
|
+ }
|
|
|
173
|
+ function LoadingData() {
|
|
|
174
|
+ try {
|
|
|
175
|
+ //OpenMessage('framemessage', '加载数据', '正在读取数据...', 220, 1);
|
|
|
176
|
+ }
|
|
|
177
|
+ catch (e) {
|
|
|
178
|
+ OpenMessage('framemessage', '加载数据', e.message, 220, 0);
|
|
|
179
|
+ }
|
|
|
180
|
+ finally {
|
|
|
181
|
+ }
|
|
|
182
|
+ }
|
|
|
183
|
+
|
|
|
184
|
+ function LoadingData_callback(res) {
|
|
|
185
|
+ document.getElementById("divDataItems").innerHTML = res.value;
|
|
|
186
|
+ res = null;
|
|
|
187
|
+ MessageBoxClose();
|
|
|
188
|
+ }
|
|
|
189
|
+ document.onkeyup = click;
|
|
|
190
|
+ function click() {
|
|
|
191
|
+ if (event.keyCode == 13) {
|
|
|
192
|
+ document.all("btnSelect").click();
|
|
|
193
|
+ }
|
|
|
194
|
+ }
|
|
|
195
|
+
|
|
|
196
|
+
|
|
|
197
|
+ //操作
|
|
|
198
|
+ function Operate(type, id, callid, phone) {
|
|
|
199
|
+ switch (type) {
|
|
|
200
|
+ case 'deal':
|
|
|
201
|
+ addBusiness(phone, callid);
|
|
|
202
|
+ break;
|
|
|
203
|
+ case 'cancle':
|
|
|
204
|
+ if (confirm("您确定要替换掉原来的文件么?")) {
|
|
|
205
|
+ var userid = document.getElementById("hfUserId").value;
|
|
|
206
|
+ var userCode = document.getElementById("hfUserCode").value;
|
|
|
207
|
+ var userName = document.getElementById("hfUserName").value;
|
|
|
208
|
+
|
|
|
209
|
+ var result = CallManage_LeaveVoice.Cancle(callid, userid, userCode, userName).value;
|
|
|
210
|
+ if (result == "success") {
|
|
|
211
|
+ OpenMessage('framemessage', '提示', "操作成功", 220, 3);
|
|
|
212
|
+ }
|
|
|
213
|
+ else if (result == "fail") {
|
|
|
214
|
+ OpenMessage('framemessage', '提示', "操作失败", 220, 0);
|
|
|
215
|
+ }
|
|
|
216
|
+ else {
|
|
|
217
|
+ OpenMessage('framemessage', '提示', "操作异常", 220, 0);
|
|
|
218
|
+ }
|
|
|
219
|
+ }
|
|
|
220
|
+
|
|
|
221
|
+ break;
|
|
|
222
|
+ }
|
|
|
223
|
+ }
|
|
|
224
|
+
|
|
|
225
|
+
|
|
|
226
|
+ </script>
|
|
|
227
|
+
|
|
|
228
|
+</head>
|
|
|
229
|
+<body onload="Init()">
|
|
|
230
|
+ <form id="form1" runat="server">
|
|
|
231
|
+ <asp:HiddenField ID="hfPlayPath" runat="server" />
|
|
|
232
|
+ <asp:HiddenField ID="hfUserId" runat="server" />
|
|
|
233
|
+ <asp:HiddenField ID="hfUserCode" runat="server" />
|
|
|
234
|
+ <asp:HiddenField ID="hfUserName" runat="server" />
|
|
|
235
|
+ <table class="stdTable" cellspacing="0" cellpadding="0">
|
|
|
236
|
+ <colgroup>
|
|
|
237
|
+ <col width="160">
|
|
|
238
|
+ <col>
|
|
|
239
|
+ </colgroup>
|
|
|
240
|
+ <tbody>
|
|
|
241
|
+ <tr height="100%">
|
|
|
242
|
+ <td colspan="2">
|
|
|
243
|
+ <table class="stdTable" style="background-color: #DBEBF8" cellspacing="0" cellpadding="0">
|
|
|
244
|
+ <colgroup>
|
|
|
245
|
+ <col width="200">
|
|
|
246
|
+ <col>
|
|
|
247
|
+ </colgroup>
|
|
|
248
|
+ <tbody>
|
|
|
249
|
+ <tr>
|
|
|
250
|
+ <td style="padding-right: 8px; border-top: #A0A2AF 1px solid; padding-left: 8px;
|
|
|
251
|
+ padding-bottom: 8px; border-left: #A0A2AF 1px solid; padding-top: 0px; border-bottom: #A0A2AF 1px solid">
|
|
|
252
|
+ <table class="stdTable" cellspacing="0" cellpadding="0">
|
|
|
253
|
+ <colgroup>
|
|
|
254
|
+ <col width="8">
|
|
|
255
|
+ <col>
|
|
|
256
|
+ <col width="8">
|
|
|
257
|
+ </colgroup>
|
|
|
258
|
+ <tbody>
|
|
|
259
|
+ <tr height="28">
|
|
|
260
|
+ <td rowspan="2" style="width: 7px">
|
|
|
261
|
+ </td>
|
|
|
262
|
+ <td style="padding-top: 5px;">
|
|
|
263
|
+ <table class="tabBar" cellspacing="0" cellpadding="0">
|
|
|
264
|
+ <tbody>
|
|
|
265
|
+ <tr>
|
|
|
266
|
+ <td id="tabs" valign="bottom" nowrap>
|
|
|
267
|
+ <span class="tab tabOn" id="tabFront" tabindex="1" tabid="tab0">上传文件</span>
|
|
|
268
|
+ </td>
|
|
|
269
|
+ </tr>
|
|
|
270
|
+ </tbody>
|
|
|
271
|
+ </table>
|
|
|
272
|
+ <hr class="tabGlow" id="hrSelectedTab">
|
|
|
273
|
+ <hr class="tabGlow" id="hrGlowTab">
|
|
|
274
|
+ </td>
|
|
|
275
|
+ <td>
|
|
|
276
|
+ <br>
|
|
|
277
|
+ </td>
|
|
|
278
|
+ </tr>
|
|
|
279
|
+ <tr height="100%">
|
|
|
280
|
+ <td colspan="2">
|
|
|
281
|
+ <div id="tab0">
|
|
|
282
|
+ <table id="main" height="100%" cellspacing="0" cellpadding="1" width="100%">
|
|
|
283
|
+ <tbody>
|
|
|
284
|
+ <tr valign="top">
|
|
|
285
|
+ <td>
|
|
|
286
|
+ <div class="tab" id="searchDiv" style="display: inline">
|
|
|
287
|
+ <table id="SearchPanelInt" height="100%" cellspacing="0" cellpadding="1" width="100%">
|
|
|
288
|
+ <tbody>
|
|
|
289
|
+ <tr>
|
|
|
290
|
+ <td style="padding-top: 5px">
|
|
|
291
|
+ 上传类型:
|
|
|
292
|
+ <div style="padding-top: 2px">
|
|
|
293
|
+ <asp:DropDownList ID="ddlType" runat="server" CssClass="selectBox" AutoPostBack="True" OnSelectedIndexChanged="ddlType_SelectedIndexChanged">
|
|
|
294
|
+ <asp:ListItem Value="ivr">IVR文件</asp:ListItem>
|
|
|
295
|
+ <asp:ListItem Value="wav">语音文件</asp:ListItem>
|
|
|
296
|
+ </asp:DropDownList>
|
|
|
297
|
+ </div>
|
|
|
298
|
+ </td>
|
|
|
299
|
+ </tr>
|
|
|
300
|
+ <tr>
|
|
|
301
|
+ <td style="padding-top: 5px">
|
|
|
302
|
+ <div style="padding-top: 2px">
|
|
|
303
|
+ <input type="file" id="FileUpload1" class="txt" runat="server" />
|
|
|
304
|
+ </div>
|
|
|
305
|
+ </td>
|
|
|
306
|
+ </tr>
|
|
|
307
|
+ <tr>
|
|
|
308
|
+ <td style="padding-top: 5px" valign="top" align="right" height="100%">
|
|
|
309
|
+ <button title="上传" style="width: 60px;" onclick="pagination('1');" tabindex="5" id="btnSelect">
|
|
|
310
|
+ 上传</button>
|
|
|
311
|
+ </td>
|
|
|
312
|
+ </tr>
|
|
|
313
|
+ </tbody>
|
|
|
314
|
+ </table>
|
|
|
315
|
+ </div>
|
|
|
316
|
+ </td>
|
|
|
317
|
+ </tr>
|
|
|
318
|
+ </tbody>
|
|
|
319
|
+ </table>
|
|
|
320
|
+ </div>
|
|
|
321
|
+ </td>
|
|
|
322
|
+ </tr>
|
|
|
323
|
+ </tbody>
|
|
|
324
|
+ </table>
|
|
|
325
|
+ </td>
|
|
|
326
|
+ <td>
|
|
|
327
|
+ <div id="divDataItems">
|
|
|
328
|
+ <asp:Repeater ID="rptItems" runat="server">
|
|
|
329
|
+ <HeaderTemplate>
|
|
|
330
|
+ <table class="gridControl gridArea" id="crmGrid" cellspacing="0" cellpadding="0">
|
|
|
331
|
+ <tbody>
|
|
|
332
|
+ <tr>
|
|
|
333
|
+ <td>
|
|
|
334
|
+ <div style="height: 99.9%">
|
|
|
335
|
+ <table class="gridArea" cellspacing="0" cellpadding="0">
|
|
|
336
|
+ <tbody>
|
|
|
337
|
+ <tr>
|
|
|
338
|
+ <td>
|
|
|
339
|
+ <div id="fixedrow" style="overflow-x: hidden; width: 100%">
|
|
|
340
|
+ <table class="gridBar" id="gridBar" style="border-bottom: #a0a0a4 1px solid" cellspacing="0"
|
|
|
341
|
+ cellpadding="0">
|
|
|
342
|
+ <colgroup id="crmGrid_gridBarCols">
|
|
|
343
|
+ <col style="padding-left: 0px" width="28">
|
|
|
344
|
+ <col class="grid" width="60%" name="f1">
|
|
|
345
|
+ </colgroup>
|
|
|
346
|
+ <tbody>
|
|
|
347
|
+ <tr height="20">
|
|
|
348
|
+ <td align="middle">
|
|
|
349
|
+ </td>
|
|
|
350
|
+ <td field="f1">
|
|
|
351
|
+ <nobr>
|
|
|
352
|
+ 文件</nobr>
|
|
|
353
|
+ </td>
|
|
|
354
|
+ </tr>
|
|
|
355
|
+ </tbody>
|
|
|
356
|
+ </table>
|
|
|
357
|
+ </div>
|
|
|
358
|
+ </td>
|
|
|
359
|
+ </tr>
|
|
|
360
|
+ <tr valign="top" height="100%">
|
|
|
361
|
+ <td>
|
|
|
362
|
+ <div class="gdDataBody" id="divDataBody">
|
|
|
363
|
+ <table class="gridArea" cellspacing="0" cellpadding="0">
|
|
|
364
|
+ <tbody>
|
|
|
365
|
+ <tr>
|
|
|
366
|
+ <td id="tdDataArea">
|
|
|
367
|
+ <div class="gdDataArea" id="divDataArea">
|
|
|
368
|
+ <table class="gridData" id="gridBodyTable" tabindex="0" cellspacing="0" cellpadding="1"
|
|
|
369
|
+ morerecords="0" oname="">
|
|
|
370
|
+ <colgroup>
|
|
|
371
|
+ <col style="padding-left: 10px;" width="60%" name="f1">
|
|
|
372
|
+ </colgroup>
|
|
|
373
|
+ <tbody>
|
|
|
374
|
+ </HeaderTemplate>
|
|
|
375
|
+ <ItemTemplate>
|
|
|
376
|
+ <tr class="grid" >
|
|
|
377
|
+ <td class="grid">
|
|
|
378
|
+ <nobr>
|
|
|
379
|
+ <%# Eval("filename")%>
|
|
|
380
|
+ </nobr>
|
|
|
381
|
+ </td>
|
|
|
382
|
+ </tr>
|
|
|
383
|
+ </ItemTemplate>
|
|
|
384
|
+ <FooterTemplate>
|
|
|
385
|
+ </tbody> </table> </div> </td> </tr> </tbody> </table> </div> </td> </tr> </tbody> </table> </div></td> </tr></tbody> </table>
|
|
|
386
|
+ </FooterTemplate>
|
|
|
387
|
+ </asp:Repeater>
|
|
|
388
|
+ </div>
|
|
|
389
|
+ </td>
|
|
|
390
|
+ </tr>
|
|
|
391
|
+ </tbody>
|
|
|
392
|
+ </table>
|
|
|
393
|
+ </td>
|
|
|
394
|
+ </tr>
|
|
|
395
|
+ </tbody>
|
|
|
396
|
+ </table>
|
|
|
397
|
+ </form>
|
|
|
398
|
+</body>
|
|
|
399
|
+</html>
|