【调度系统】广东民航医疗快线调度系统源代码
hzj
2025-07-09 4418374d26a16ec759e06059c2b1fedabe1827e6
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
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%Session.CodePage=65001%>
<!--#include virtual="/inc/chkadmin.gds"-->
<!--#include virtual="/inc/function.gds"-->
<%
if isDepartment("0502")=0 then
  Response.Redirect "/"
  Response.End()
end If
 
searchTXT=SafeRequest(Request("searchTXT"))
 
Set rs = Server.CreateObject("ADODB.Recordset")
'默认显示字段
If OrdState="" Then OrdState=0
If OrdClassList="" Then OrdClassList="0"
If OrdClassList="0" Then
    OrdClassName="未审核"
ElseIf OrdClassList="1" Then
    OrdClassName="已审核"
Else
    OrdClassName="全部"
End if
 
'各种返回信息
SystemMessageType=trim(Request("SystemMessageType"))
SMT=trim(Request("SMT"))
if SystemMessageType<>"" then
  if SMT="1" then
    SystemMessageTXT="请选择需要操作的车辆"
  elseif SMT="2" then
    SystemMessageTXT="单据状态错误或重复提交"
  elseif SMT="3" then
    SystemMessageTXT="维修保养单提交完成!!"
  elseif SMT="4" then
    SystemMessageTXT="请选择需要修改的维修保养记录!!"
  elseif SMT="5" then
    SystemMessageTXT="删除完成!!"
  elseif SMT="6" then
    SystemMessageTXT="请选择需要删除的维修保养记录!!"
  elseif SMT="7" then
    SystemMessageTXT="维修保养记录导入完成!!"
  end if
end if
 
 
If OrdState<>"0" then
    OrdListName    = ServiceOrdStateA(OrdState)&"记录"
Else
    OrdListName    = "维修保养记录"
End If
 
 
page_URL="&searchTXT="&searchTXT&""
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title><%=LindemanAdmin%></title>
        <!--#include virtual="/inc/ccs.gds"-->
        <script src="js/jquery-1.12.3.min.js"></script>
    </head>
    <body onkeydown="xKeyEvent(event)">
        <!--#INCLUDE FILE="menu_header.gds" -->
        <!-- content -->
        <div id="content">
            <!--#INCLUDE FILE="Car_menu_left.gds" -->
            <!-- content / right -->
            <div id="right">
                <!-- table -->
                <div class="box">
                    <!-- box / title -->
                    <div class="title">
                        <h5><%If searchTXT<>"" then%>维修保养单查询 <%=searchTXT%><%else%><%=OrdDateTypeName1&" "&OrdListName%><%End if%></h5>
                        <ul class="links">
                            <%If isDepartment("050201")=1 Then%>
                            <li>
                            <form action="CarRepair_uploadExcel.php" method="post" enctype="multipart/form-data" style="padding: 11px 16px 8px 16px;color: #ffffff;">
                                
                                <input type="file" name="userfile" id="userfile" value="" style="width: 160px;" />
                                <input type="submit" name="submin" id="submin" value="导入Excel表格" />
                                
                            </form>
                            </li>
                            <li><a href="/PHPExcel/车辆维修保养登记表格.xlsx">模板下载</a></li>
                            <!--<li><a onclick="javascript:JS_CarRepairAdd();">新建</a></li>--><%End If%>
                            <%If isDepartment("050201")=1 Then%><li><a onClick="javascript:JS_CarRepairDel()">删除</a></li><%End If%>
                    <script LANGUAGE="javascript">
                        //审核
                        function form1_AP_1(){
                        if(confirm("确定审核所选费用单?"))
                            {
                                document.form1.action = "admin_save.gds";
                                document.form1.admin_save.value="34"
                                document.form1.Car_Check.value="1"
                                form1.submit();
                            }
                        }
                        //反审核
                        function form1_AP_0(){
                        if(confirm("确定反审核所选费用单?"))
                            {
                                document.form1.action = "admin_save.gds";
                                document.form1.admin_save.value="34"
                                document.form1.Car_Check.value="0"
                                form1.submit();
                            }
                        }
                        //作废
                        function JS_CarRepairDel(){
                        if(confirm("确定删除所选维修保养记录?"))
                            {
                                document.form1.action = "admin_save.gds";
                                document.form1.admin_save.value="52"
                                document.form1.Car_Check.value="-1"
                                form1.submit();
                            }
                        }
 
                        //新建字典-关闭上传窗口
                        function JS_CarCreateClose()
                        {
                        CarCreate.style.display="none";
                        }
                        //新建字典-保存
                        function JS_CarCreateSave()
                        {
                        form2.submit();
                        }
                        //受理单调单查询
                        function JS_CarSearch()
                        {
                        CarLicense=document.form2.CarLicense.value;
                        window.HiddenFrame.location.replace('CarData_Search.gds?CarLicense='+CarLicense);
                        }
                        //显示车牌号
                        function JS_CarData(CarID,CarLicense)
                        {
                            document.form2.RepairCarID.value=CarID;
                            if (CarLicense=='车牌号错误')
                            {
                                document.getElementById('RepairMileage').className = 'valid'; 
                                document.getElementById('RepairMileage').readOnly=true;
                                document.getElementById('MaintenanceItem').className = 'valid'; 
                                document.getElementById('MaintenanceItem').readOnly=true;
                                document.getElementById('ReplacementParts').className = 'valid'; 
                                document.getElementById('ReplacementParts').readOnly=true;
                                document.getElementById('MaterialMoney').className = 'valid'; 
                                document.getElementById('MaterialMoney').readOnly=true;
                                document.getElementById('ManHourMoney').className = 'valid'; 
                                document.getElementById('ManHourMoney').readOnly=true;
                                alert("车牌号错误!!");
                            }
                            else 
                            {
                                document.getElementById('RepairMileage').className = ''; 
                                document.getElementById('RepairMileage').readOnly=false;
                                document.getElementById('MaintenanceItem').className = ''; 
                                document.getElementById('MaintenanceItem').readOnly=false;
                                document.getElementById('ReplacementParts').className = ''; 
                                document.getElementById('ReplacementParts').readOnly=false;
                                document.getElementById('MaterialMoney').className = ''; 
                                document.getElementById('MaterialMoney').readOnly=false;
                                document.getElementById('ManHourMoney').className = ''; 
                                document.getElementById('ManHourMoney').readOnly=false;
                                document.form2.CarLicense.value=CarLicense;
                            }
                        }
                        //新建单据信息
                        function JS_CarRepairAdd()
                        {
                            CarCreate.style.display='block';
                            document.getElementById('EditPhotoTXT').innerHTML = '新建维修保养单'; 
                            document.form2.admin_save.value='50';
                            document.form2.CarRepairID.value='';
                            document.form2.RepairCarID.value='';
                            document.getElementById('RepairMileage').value = ''; 
                            document.getElementById('RepairMileage').className = 'valid'; 
                            document.getElementById('RepairMileage').readOnly=true;
                            document.getElementById('MaintenanceItem').value = ''; 
                            document.getElementById('MaintenanceItem').className = 'valid'; 
                            document.getElementById('MaintenanceItem').readOnly=true;
                            document.getElementById('ReplacementParts').value = ''; 
                            document.getElementById('ReplacementParts').className = 'valid'; 
                            document.getElementById('ReplacementParts').readOnly=true;
                            document.getElementById('MaterialMoney').value = ''; 
                            document.getElementById('MaterialMoney').className = 'valid'; 
                            document.getElementById('MaterialMoney').readOnly=true;
                            document.getElementById('ManHourMoney').value = ''; 
                            document.getElementById('ManHourMoney').className = 'valid'; 
                            document.getElementById('ManHourMoney').readOnly=true;
                            document.getElementById('MaintenancePlace').value = ''; 
                            document.getElementById('RepairDate').value = ''; 
                            document.form2.CarLicense.value='';
                        }
                        //显示修改单据信息
                        function JS_CarRepairEdit(CarRepairID,CarID,CarLicense,RepairMileage,MaintenanceItem,ReplacementParts,MaterialMoney,ManHourMoney,MaintenancePlace,RepairDate)
                        {
                            CarCreate.style.display='block';
                            document.getElementById('EditPhotoTXT').innerHTML = '修改维修保养单'; 
                            document.form2.admin_save.value='51';
                            document.form2.CarRepairID.value=CarRepairID;
                            document.form2.RepairCarID.value=CarID;
                            document.getElementById('RepairMileage').value = RepairMileage; 
                            document.getElementById('RepairMileage').className = ''; 
                            document.getElementById('RepairMileage').readOnly=false;
                            document.getElementById('MaintenanceItem').value = MaintenanceItem; 
                            document.getElementById('MaintenanceItem').className = ''; 
                            document.getElementById('MaintenanceItem').readOnly=false;
                            document.getElementById('ReplacementParts').value = ReplacementParts.replace("<BR>",'\r\n'); 
                            document.getElementById('ReplacementParts').className = ''; 
                            document.getElementById('ReplacementParts').readOnly=false;
                            document.getElementById('MaterialMoney').value = MaterialMoney; 
                            document.getElementById('MaterialMoney').className = ''; 
                            document.getElementById('MaterialMoney').readOnly=false;
                            document.getElementById('ManHourMoney').value = ManHourMoney; 
                            document.getElementById('ManHourMoney').className = ''; 
                            document.getElementById('ManHourMoney').readOnly=false;
                            document.getElementById('MaintenancePlace').value = MaintenancePlace; 
                            document.getElementById('RepairDate').value = RepairDate; 
                            document.form2.CarLicense.value=CarLicense;
                        }
                    </script>
                    <div class="dialogJ  dialogJfix dialogJshadow" id="CarCreate" style="width:500px; right: 300px; top: 150px;display:none;">
                    
                        <div class="dialogJtitle">
                            <a href="javascript:JS_CarCreateClose();" class="dialogJclose" title="关闭本窗口">&nbsp;</a>
                            <span class="dialogJtxt" id="EditPhotoTXT">维修保养单</span>
                        </div>
                        <form id="form2" name="form2" action="admin_save.gds" method="post">
                        <input name="admin_save" type="hidden" value="50">
                        <input name="searchTXT" type="hidden" value="<%=searchTXT%>">
                        <input name="CarRepairID" type="hidden" value="">
                        <input name="RepairCarID" type="hidden" value="">
                        <input name="page" type="hidden" value="<%=acc1%>">
                        <div class="dialogJcontent">
                            <div class="dialogJbody" id="dialogJbody" style="height: 400px;">
                                <div class="modify-album-name">
                                    <span>车牌号码:</span>
                                    <input id="CarLicense" name="CarLicense" type="text" value="<%=CarLicense%>" style="width: 165px;" maxlength="99/"><input type="button" style="text-indent:initial;" class="dialogJbtn first-child" onclick="JS_CarSearch()" value="调用"> 
                                </div>
                                <div class="modify-album-name">
                                    <span>当前里程:</span>
                                    <input id="RepairMileage" name="RepairMileage" type="text" value="" maxlength="99/" style="width: 80px;" readonly="true" class="valid"><span>&nbsp;公里</span>
                                </div>
                                <div class="modify-album-name">
                                    <span>保养项目:</span>
                                    <input id="MaintenanceItem" name="MaintenanceItem" type="text" value="" maxlength="99/" style="width: 370px;"  readonly="true" class="valid">
                                </div>
                                <div class="modify-album-name">
                                    <span>更换配件:</span>
                                    <textarea name="ReplacementParts" id="ReplacementParts" style="width: 370px;height: 100px;" readonly="true" class="valid"></textarea>
                                </div>
                                <div class="modify-album-name">
                                    <span>材料费用:</span>
                                    <input id="MaterialMoney" name="MaterialMoney" type="text" value="" maxlength="99/" style="width: 60px;" readonly="true" class="valid"><span>&nbsp;元</span>
 
                                    <span>&nbsp;&nbsp;&nbsp;&nbsp;工时费用:</span>
                                    <input id="ManHourMoney" name="ManHourMoney" type="text" value="" maxlength="99/" style="width: 60px;" readonly="true" class="valid"><span>&nbsp;元</span>
                                </div>
                                <div class="modify-album-name">
                                    <span>保养日期:</span>
                                    <input type="text" id="RepairDate" name="RepairDate" class="date" style="width:140px;" value="">
                                </div>
                                <div class="modify-album-name">
                                    <span>保养地点:</span>
                                    <select name="MaintenancePlace" id="MaintenancePlace" style="padding: 5px 0 5px 8px;">
                                        <option value="">请选择</option>
                                        <%sql="select vID,vtext from dictionary where vtitle='MaintenancePlace' and vType>=1 order by vOrder"
                                        rs.open Sql,objConn,1,1
                                        do while not rs.Eof%>
                                        <option value="<%=rs("vtext")%>"><%=rs("vtext")%></option>
                                        <%rs.movenext
                                        Loop
                                        rs.close()%>
                                    </select>
                                </div>
                            </div>
                        </div>
                        </form>
                        <div class="dialogJanswers">
                            <input type="button" class="dialogJbtn first-child" onclick="JS_CarCreateSave()" value="确定"> 
                            <input type="button" class="dialogJbtn" onclick="JS_CarCreateClose()" value="取消">
                        </div>
                    </div>
                            <div class="search">
                            <form action="?" method="post">
                                <div class="input">
                                    <input type="text" id="searchTXT" name="searchTXT" value="<%=searchTXT%>" />
                                </div>
                                <div class="button">
                                    <input type="submit" name="submit" value="搜索" />
                                </div>
                            </form>
                            </div>
                        </ul>
                    </div>
                    <!-- end box / title -->
            <%
            acc1=request("page")
            if acc1=empty then acc1=clng(1)
            QuantityInt = 20
            acc2=0
            acc3=0
 
            if searchTXT<>"" Then
              searchSql=" and (CarLicense like '%"&searchTXT&"%' or MaintenanceItem like '%"&searchTXT&"%' or MaintenancePlace like '%"&searchTXT&"%') "
            else
              searchSql=""
            end If
 
            sql="select * from CarRepair left join CarData on CarID=RepairCarID where RepairState>=0"&searchSql&" order by id desc"
            'Response.Write sql
            rs.open sql,objConn,1,1
            if not rs.eof then
            rs.pagesize=QuantityInt
            rs.absolutepage=acc1
            acc2=rs.pagecount
            acc3=rs.recordcount
            else
            SystemMessageType=2
            SystemMessageTXT="数据库中相关无数据!"
            end if
            %>
                    <!--#include virtual="/inc/SystemMessages.gds" -->
                    <script>
                    //全选按钮点击事件
                    function allCheck(allBoxName,itemBoxName) {
                     
                        if($("input[name="+allBoxName+"]").prop("checked")){
                            $("input[name=" + itemBoxName + "]").prop("checked",true);
                        } else {
                            $("input[name=" + itemBoxName + "]").prop("checked",false);
                        }
                    }
                     
                    //子项按钮点击事件
                    function itemCheck(allBoxName,itemBoxName) {
                        var hasNoSel = false;
                        var itemBoxArray = $("input[name="+itemBoxName+"]");
                        itemBoxArray.each(function() {
                            if(!$(this).prop("checked")){
                                hasNoSel = true;
                            }
                        });
                        if(hasNoSel){
                            $("input[name="+allBoxName+"]").prop("checked",false);
                        } else {
                            $("input[name="+allBoxName+"]").prop("checked",true);
                        }
                    }
                    </script>
                    <div class="table" style="overflow:auto">
                        <form id="form1" name="form1" action="" method="post">
                        <input name="admin_save" type="hidden" value="52">
                        <input name="Car_Check" type="hidden" value="">
                        <input name="searchTXT" type="hidden" value="<%=searchTXT%>">
                        <input name="page" type="hidden" value="<%=acc1%>">
                        <table>
                            <thead>
                                <tr style="white-space: nowrap;">
                                    <th class="selected"><input type="checkbox" class="checkall"  name="checkAll"  onclick="allCheck('checkAll','CarRepairID')"/></th>
                                    <!--<th>单据编号</th>-->
                                    <th>维修厂家</th>
                                    <th>车牌</th>
                                    <th>车架号</th>
                                    <th>发动机号</th>
                                    <th>进场时间</th>
                                    <th>进场公里数</th>
                                    <th>工时项目</th>
                                    <th>机修配件</th>
                                    <th>单价</th>
                                    <th>数量</th>
                                    <th>单位</th>
                                    <th>金额</th>
                                    <th>操作人</th>
                                    <th class="last">操作时间</th>
                                </tr>
                            </thead>
                            <tbody>
            
            <%i=1
            do while not rs.Eof and i<=QuantityInt
              CarRepairID        = rs("id")                    '维修保养单号
              RepairCarID        = rs("RepairCarID")            '车辆ID
              MaintenancePlace    = rs("MaintenancePlace")    '维修厂家
              CarLicense        = rs("RepairCarLicense")    '车牌
              RepairCarFrame    = rs("RepairCarFrame")        '车架号
              RepairCarVIN        = rs("RepairCarVIN")        '发动机号
              RepairDate        = rs("RepairDate")            '进场时间
              RepairMileage        = rs("RepairMileage")        '进场公里数
              MaintenanceItem    = rs("MaintenanceItem")        '工时项目
              ReplacementParts    = rs("ReplacementParts")    '机修配件
              UnitPrice            = rs("UnitPrice")            '单价
              UnitInt            = rs("UnitInt")                '数量
              UnitName            = rs("UnitName")            '单位
              MaterialMoney        = rs("MaterialMoney")        '金额
              ManHourMoney        = rs("ManHourMoney")        '工时费用
              
              OAID                = rs("OAID")
              OATime            = rs("OATime")
              RepairState        = rs("RepairState")
 
              ReplacementParts = Replace(ReplacementParts,CHR(10),"")
              ReplacementParts = Replace(ReplacementParts,CHR(13),"<BR>")
              If not isnull(Car_AP_Time) And Car_AP_Time<>"" Then Car_AP_Time=FORMATDATETIME(Car_AP_Time,vbShortDate)
              If RepairMileage<>"" Then 
                RepairMileageTXT = RepairMileage&"公里"
              Else
                RepairMileageTXT = "--"
              End If
              If MaterialMoney<>"0" Then 
                MaterialMoneyTXT = MaterialMoney&"元"
              Else
                MaterialMoneyTXT = "--"
              End If
              If ManHourMoney<>"0" Then 
                ManHourMoneyTXT = ManHourMoney&"元"
              Else
                ManHourMoneyTXT = "--"
              End If
              i=i+1
 
              %>
              <tr style="white-space: nowrap;">
                <td class="selected"><input type="checkbox" id="CarRepairID_<%=CarRepairID%>" name="CarRepairID" value="<%=CarRepairID%>" onclick="itemCheck('checkAll','CarRepairID')"/></td>
                <!--
                <td class="category category2"><A <%If isDepartment("050201")=1 Then%>onclick="JS_CarRepairEdit('<%=CarRepairID%>','<%=RepairCarID%>','<%=CarLicense%>','<%=RepairMileage%>','<%=MaintenanceItem%>','<%=ReplacementParts%>','<%=MaterialMoney%>','<%=ManHourMoney%>','<%=MaintenancePlace%>','<%=RepairDate%>');"<%End If%>>CR<%=Right("000000"&CarRepairID,6)%></A></td>
                -->
                <td class="category category2"><%=MaintenancePlace%></td>
                <td class="category category2"><%=CarLicense%></td>
                <td class="category category2"><%=RepairCarFrame%></td>
                <td class="category category2"><%=RepairCarVIN%></td>
                <td class="category category2"><%=FORMATDATETIME(RepairDate,vbShortDate)%></td>
                <td class="category category2"><%=RepairMileageTXT%></td>
                <td class="category category2"><%=MaintenanceItem%></td>
                <td class="category category2" style="text-align: left;line-height: 13px;"><%=ReplacementParts%></td>
                <td class="category category2"><%=UnitPrice%></td>
                <td class="category category2"><%=UnitInt%></td>
                <td class="category category2"><%=UnitName%></td>
                <td class="category category2"><%=MaterialMoneyTXT%></td>
                
                <td class="category category2"><%=OAUser(OAID,"UserName")%></td>
                <td class="category category2 last"><%=OATime%></td>
              </tr>
            <%rs.movenext
            loop
            rs.close()
            %>
            <%for j=i to 20%>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td class="last">&nbsp;</td>
            </tr>
            <%next%>
                            </tbody>
                        </table>
                        <!-- pagination -->
                        <div class="pagination pagination-left">
                            <div class="results">
                                <%
                                ShowingLeast = (acc1-1)*QuantityInt+1
                                ShowingMax = QuantityInt*acc1
                                if ShowingMax>acc3 then ShowingMax=acc3
                                %>
                                <span><%="显示&nbsp;"& ShowingLeast &"-"& ShowingMax &"&nbsp;of&nbsp;"&acc3%></span>
                            </div>
                            <%if acc2>1 then%>
                            <ul class="pager">
                                <%if acc1=1 then%>
                                  <li class="disabled">&laquo; 上页</li>
                                <%else%>
                                  <li><a href="?page=<%=acc1-1%><%=page_URL%>">&laquo; 上页</a></li>
                                <%end if%>
                                <%
                                acc4=""
                                for i=1 to acc2
                                  if acc2<=9 then
                                    acc4=acc4&","&i
                                  else
                                    if i=1 then
                                      acc4=acc4&","&i
                                    elseif acc1<=5 and i<=7 then
                                      acc4=acc4&","&i
                                    elseif acc1>=acc2-4 and i>=acc2-6 then
                                      acc4=acc4&","&i
                                    elseif i>=acc1-2 and i<=acc1+2 then 
                                      acc4=acc4&","&i
                                    elseif i=acc2 then
                                      acc4=acc4&","&i
                                    elseif i=2 or i=acc2-1 then
                                      acc4=acc4&",0"
                                    end if
                                  end if
                                next
                                acc4SP=SPLIT(acc4,",")
                                for i = 1 to UBOUND(acc4SP)%>
                                  <%if acc4SP(i)="0" then%>
                                    <li class="separator">...</li>
                                  <%elseif acc1=cint(acc4SP(i)) then%>
                                    <li class="current"><%=acc4SP(i)%></li>
                                  <%else%>
                                    <li><a href="?page=<%=acc4SP(i)%><%=page_URL%>"><%=acc4SP(i)%></a></li>
                                  <%end if%>
                                <%next%>
                                <%if acc1>=acc2 then%>
                                  <li class="disabled">下页 &raquo;</li>
                                <%else%>
                                  <li><a href="?page=<%=acc1+1%><%=page_URL%>">下页 &raquo;</a></li>
                                <%end if%>
                            </ul>
                            <%end if%>
                        </div>
                        <!-- end pagination -->
                        </form>
                    </div>
                </div>
                <!-- end table -->
 
 
                
            </div>
            <!-- end content / right -->
        </div>
        <!-- end content -->
        <!--#include FILE="vicgame.asp"-->
        <IFRAME id="HiddenFrame" name="HiddenFrame" WIDTH=0 HEIGHT=0 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR=#ffffff></IFRAME>
    </body>
</html>