-
Notifications
You must be signed in to change notification settings - Fork 0
/
index_part.php
807 lines (798 loc) · 29.2 KB
/
index_part.php
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
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="imagetoolbar" content="no">
<script type="text/javascript" src="./js/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="./js/lazyload.min.js"></script>
<!-- <script type="text/javascript" src="./js/jquery.lazyload.min.js"></script> -->
<style type="text/css">
html {
overflow: hidden;
}
body {
margin: 0px;
padding: 0px;
background: #000;
width: 100%;
height: 100%;
}
#imageFlow {
position: absolute;
width: 100%;
height: 100%;
left: 0%;
background: #000;
}
#imageFlow .diapo {
position: absolute;
left: -1000px;
cursor: pointer;
-ms-interpolation-mode: nearest-neighbor;
}
#imageFlow .link {
border: dotted #fff 1px;
margin-left: -1px;
margin-bottom: -1px;
}
#imageFlow .bank {
visibility: hidden;
/*display: none;*/
}
#imageFlow .text {
position: absolute;
left: 0px;
width: 100%;
bottom: 15%;
text-align: center;
color: #FFF;
font-family: verdana, arial, Helvetica, sans-serif;
z-index: 1000;
}
#imageFlow .title {
font-size: 0.9em;
font-weight: bold;
}
#imageFlow .legend {
font-size: 0.8em;
}
#imageFlow .scrollbar {
position: absolute;
left: 10%;
bottom: 5%;
width: 80%;
height: 16px;
z-index: 1000;
}
#imageFlow .track {
position: absolute;
left: 1%;
width: 98%;
height: 16px;
filter: alpha(opacity=30);
opacity: 0.3;
}
#imageFlow .arrow-left {
position: absolute;
top: -9px;
}
#imageFlow .arrow-right {
position: absolute;
right: 0px;
top: -9px;
}
#imageFlow .bar {
position: absolute;
left: 25px;
top: -50px;
}
#imageFlow .scrollbar1 {
position: absolute;
left: 25%;
bottom: 12%;
width: 50%;
height: 16px;
z-index: 1000;
}
#imageFlow .track1 {
position: absolute;
left: 1%;
width: 98%;
height: 16px;
filter: alpha(opacity=30);
opacity: 0.3;
}
#imageFlow .arrow-left1 {
position: absolute;
top: -8px;
}
#imageFlow .arrow-right1 {
position: absolute;
right: 0px;
top: -8px;
}
#imageFlow .bar1 {
position: absolute;
left: 25px;
height: 100%;
/*top: -50px;*/
}
#form1 {
font-size: 20px;
}
#attr {
padding-top: 3px;
font-size: 25px;
color: #DDFF77;
}
#example {
position: absolute;
top: 10px;
right: 50px;
width: 250px;
}
#example img {
width: 100%;
}
#example #txt {
text-align: center;
font-size: 25px;
color: #FFF;
}
#example_left {
position: absolute;
top: 10px;
left: 50px;
width: 250px;
}
#example_left img {
width: 100%;
}
#example_left #txt {
text-align: center;
font-size: 25px;
color: #FFF;
}
#prepage {
text-align: center;
font-size: 15px;
color: red;
position: absolute;
top: 50px;
left: 50px;
}
#prepage a {
color: red;
}
#nextpage {
text-align: center;
font-size: 15px;
color: green;
position: absolute;
top: 50px;
left: 120px;
}
#nextpage a {
color: green;
}
.pages {
visibility: visible;
position: absolute;
top: 40%;
left: 50%;
z-index: 99;
}
.page {
visibility: visible;
color: green;
font-size: 25px;
}
#explanation {
position: absolute;
width: 600px;
/*height: 500px;*/
top: 10px;
left: 35%;
/*margin: auto;*/
}
.header {
/*position: absolute;
left: 50%;
transform: translateX(-50%);*/
font-size: 15px;
color: red;
}
.mainbody {
/*position: absolute;
left: 50%;
transform: translateX(-50%);*/
font-size: 15px;
color: #FFF;
}
</style>
<script type="text/javascript">
var num = 0; // 第几个属性
var imf = function () {
var lf = 0;
var instances = [];
//定义一个通过class获得元素的方法
function getElementsByClass (object, tag, className) {
var o = object.getElementsByTagName(tag);
for ( var i = 0, n = o.length, ret = []; i < n; i++)
if (o[i].className == className) ret.push(o[i]);
if (ret.length == 1) ret = ret[0];
return ret;
}
function addEvent (o, e, f) {
if (window.addEventListener) o.addEventListener(e, f, false);
else if (window.attachEvent) r = o.attachEvent('on' + e, f);
}
function createReflexion (cont, img) {
var flx = false;
if (document.createElement("canvas").getContext) {
flx = document.createElement("canvas");
flx.width = img.width;
flx.height = img.height;
var context = flx.getContext("2d");
context.translate(0, img.height);
context.scale(1, -1);
context.drawImage(img, 0, 0, img.width, img.height);
context.globalCompositeOperation = "destination-out";
var gradient = context.createLinearGradient(0, 0, 0, img.height * 2);
gradient.addColorStop(1, "rgba(255, 255, 255, 0)");
gradient.addColorStop(0, "rgba(255, 255, 255, 1)");
context.fillStyle = gradient;
context.fillRect(0, 0, img.width, img.height * 2);
} else {
/* ---- DXImageTransform ---- */
flx = document.createElement('img');
flx.src = img.src;
flx.style.filter = 'flipv progid:DXImageTransform.Microsoft.Alpha(' +
'opacity=50, style=1, finishOpacity=0, startx=0, starty=0, finishx=0, finishy=' +
(img.height * .25) + ')';
}
/* ---- insert Reflexion ---- */
flx.style.position = 'absolute';
flx.style.left = '-1000px';
cont.appendChild(flx);
return flx;
}
/* //////////// ==== ImageFlow Constructor ==== //////////// */
function ImageFlow(oCont, size, zoom, border) {
this.diapos = [];
this.scr = false;
this.size = size;
this.zoom = zoom;
this.bdw = border;
this.oCont = oCont;
this.oc = document.getElementById(oCont);
this.scrollbar = getElementsByClass(this.oc, 'div', 'scrollbar');
this.text = getElementsByClass(this.oc, 'div', 'text');
this.title = getElementsByClass(this.text, 'div', 'title');
this.legend = getElementsByClass(this.text, 'div', 'legend');
this.bar = getElementsByClass(this.oc, 'img', 'bar');
this.arL = getElementsByClass(this.oc, 'img', 'arrow-left');
this.arL1 = getElementsByClass(this.oc, 'img', 'arrow-left1');
this.arR = getElementsByClass(this.oc, 'img', 'arrow-right');
this.arR1 = getElementsByClass(this.oc, 'img', 'arrow-right1');
this.bw = this.bar.width;
this.alw = this.arL.width - 5;
this.arw = this.arR.width - 5;
this.bar.parent = this.oc.parent = this;
this.arL.parent = this.arR.parent = this;
this.arL1.parent= this.arR1.parent = this;
this.view = this.back = -1;
this.resize();
this.oc.onselectstart = function () { return false; }
/* ---- create images ---- */
// var img = getElementsByClass(this.oc, 'div', 'bank').getElementsByTagName('a');
var img = getElementsByClass(this.oc, 'a', 'pic');
this.NF = img.length;
for (var i = 0, o; o = img[i]; i++) {
this.diapos[i] = new Diapo(this, i,
o.rel,
o.title || '- ' + i + ' -',
o.innerHTML || o.rel,
o.href || '',
o.target || '_self'
);
}
/* ==== add mouse wheel events ==== */
if (window.addEventListener)
this.oc.addEventListener('DOMMouseScroll', function(e) {
this.parent.scroll(-e.detail);
}, false);
else this.oc.onmousewheel = function () {
this.parent.scroll(event.wheelDelta);
}
/* ==== scrollbar drag N drop ==== */
this.bar.onmousedown = function (e) {
if (!e) e = window.event;
var scl = e.screenX - this.offsetLeft;
var self = this.parent;
var old_left = self.bar.style.left;
var old_view = self.view;
var old_num = num;
var old_attr = $("#attr").html();
/* ---- move bar ---- */
this.parent.oc.onmousemove = function (e) {
if (!e) e = window.event;
self.bar.style.left = Math.round(Math.min((self.ws - self.arw - self.bw), Math.max(self.alw, e.screenX - scl))) + 'px';
self.view = Math.round(((e.screenX - scl) ) / (self.ws - self.alw - self.arw - self.bw) * self.NF);
if (self.view != self.back) self.calc();
return false;
}
/* ---- release scrollbar ---- */
this.parent.oc.onmouseup = function (e) {
if (old_num != 0 && old_num != 16) {
alert("请将此人的属性标注完整,最后一个属性是“年轻”!");
self.bar.style.left = old_left;
self.view = old_view;
if (self.view != self.back) self.calc();
// num = old_num;
// $("#attr").html(old_attr);
}
self.oc.onmousemove = null;
return false;
}
return false;
}
/* ==== right arrow ==== */
this.arR.onclick = this.arR.ondblclick = function () {
if (num == 0 || num == 16) {
if (this.parent.view < this.parent.NF - 1)
this.parent.calc(1);
}
else {
alert("请将此人的属性标注完整,最后一个属性是“年轻”!");
}
}
/* ==== Left arrow ==== */
this.arL.onclick = this.arL.ondblclick = function () {
if (num == 0 || num == 16) {
if (this.parent.view > 0)
this.parent.calc(-1);
}
else {
alert("请将此人的属性标注完整,最后一个属性是“年轻”!");
}
}
// this.arL1.onclick = this.arL1.ondblclick = function () {
// if (this.parent.view > 0)
// this.parent.calc(-1);
// }
// this.arR1.onclick = this.arR1.ondblclick = function () {
// if (this.parent.view < this.parent.NF - 1)
// this.parent.calc(1);
// }
}
/* //////////// ==== ImageFlow prototype ==== //////////// */
ImageFlow.prototype = {
/* ==== targets ==== */
calc : function (inc) {
if (inc) this.view += inc;
var tw = 0;
var lw = 0;
var o = this.diapos[this.view];
if (o && o.loaded) {
/* ---- reset ---- */
var ob = this.diapos[this.back];
if (ob && ob != o) {
ob.img.className = 'diapo';
ob.z1 = 1;
}
/* ---- update legend ---- */
this.title.replaceChild(document.createTextNode(o.title), this.title.firstChild);
this.legend.replaceChild(document.createTextNode(o.text), this.legend.firstChild);
/* ---- update hyperlink ---- */
if (o.url) {
o.img.className = 'diapo lazyload link';
window.status = 'hyperlink: ' + o.url;
} else {
o.img.className = 'diapo lazyload';
window.status = '';
}
/* ---- calculate target sizes & positions ---- */
o.w1 = Math.min(o.iw, this.wh * .5) * o.z1;
var x0 = o.x1 = (this.wh * .5) - (o.w1 * .5);
var x = x0 + o.w1 + this.bdw;
for (var i = this.view + 1, o; o = this.diapos[i]; i++) {
if (o.loaded) {
o.x1 = x;
o.w1 = (this.ht / o.r) * this.size;
x += o.w1 + this.bdw;
tw += o.w1 + this.bdw;
}
}
x = x0 - this.bdw;
for (var i = this.view - 1, o; o = this.diapos[i]; i--) {
if (o.loaded) {
o.w1 = (this.ht / o.r) * this.size;
o.x1 = x - o.w1;
x -= o.w1 + this.bdw;
tw += o.w1 + this.bdw;
lw += o.w1 + this.bdw;
}
}
/* ---- move scrollbar ---- */
if (!this.scr && tw) {
var r = (this.ws - this.alw - this.arw - this.bw) / tw;
this.bar.style.left = Math.round(this.alw + lw * r) + 'px';
}
/* ---- save preview view ---- */
this.back = this.view;
}
},
/* ==== mousewheel scrolling ==== */
scroll : function (sc) {
if (sc < 0) {
if (this.view < this.NF - 1) this.calc(1);
} else {
if (this.view > 0) this.calc(-1);
}
},
/* ==== resize ==== */
resize : function () {
this.wh = this.oc.clientWidth;
this.ht = this.oc.clientHeight;
this.ws = this.scrollbar.offsetWidth;
this.calc();
this.run(true);
},
/* ==== move all images ==== */
run : function (res) {
var i = this.NF;
while (i--) this.diapos[i].move(res);
}
}
/* //////////// ==== Diapo Constructor ==== //////////// */
Diapo = function (parent, N, src, title, text, url, target) {
this.parent = parent;
this.loaded = false;
this.title = title;
this.text = text;
this.url = url;
this.target = target;
this.N = N;
this.img = document.createElement('img');
this.img.src = '';
// this.img.src = src;
this.img.parent = this;
this.img.className = 'diapo lazyload';
this.x0 = this.parent.oc.clientWidth;
this.x1 = this.x0;
this.w0 = 0;
this.w1 = 0;
this.z1 = 1;
this.img.parent = this;
this.img.onclick = function() { this.parent.click(); }
this.parent.oc.appendChild(this.img);
// this.img.setAttribute("data-original", src);
this.img.setAttribute("data-src", src);
this.img.width = "120";
this.img.height = "200";
/* ---- display external link ---- */
if (url) {
this.img.onmouseover = function () { this.className = 'diapo link lazyload'; }
this.img.onmouseout = function () { this.className = 'diapo lazyload'; }
}
}
/* //////////// ==== Diapo prototype ==== //////////// */
Diapo.prototype = {
/* ==== HTML rendering ==== */
move : function (res) {
if (this.loaded) {
var sx = this.x1 - this.x0;
var sw = this.w1 - this.w0;
if (Math.abs(sx) > 2 || Math.abs(sw) > 2 || res) {
/* ---- paint only when moving ---- */
this.x0 += sx * .1;
this.w0 += sw * .1;
if (this.x0 < this.parent.wh && this.x0 + this.w0 > 0) {
/* ---- paint only visible images ---- */
this.visible = true;
var o = this.img.style;
var h = this.w0 * this.r;
/* ---- diapo ---- */
o.left = Math.round(this.x0) + 'px';
o.bottom = Math.floor(this.parent.ht * .25) + 'px';
o.width = Math.round(this.w0) + 'px';
o.height = Math.round(h) + 'px';
/* ---- reflexion ---- */
if (this.flx) {
var o = this.flx.style;
o.left = Math.round(this.x0) + 'px';
o.top = Math.ceil(this.parent.ht * .75 + 1) + 'px';
o.width = Math.round(this.w0) + 'px';
o.height = Math.round(h) + 'px';
}
} else {
/* ---- disable invisible images ---- */
if (this.visible) {
this.visible = false;
this.img.style.width = '0px';
if (this.flx) this.flx.style.width = '0px';
}
}
}
} else {
/* ==== image onload ==== */
if (this.img.complete && this.img.width) {
/* ---- get size image ---- */
this.iw = this.img.width;
this.ih = this.img.height;
this.r = this.ih / this.iw;
this.loaded = true;
/* ---- create reflexion ---- */
this.flx = createReflexion(this.parent.oc, this.img);
if (this.parent.view < 0) this.parent.view = this.N;
this.parent.calc();
}
}
},
/* ==== diapo onclick ==== */
click : function () {
if (this.parent.view == this.N) {
/* ---- click on zoomed diapo ---- */
if (this.url) {
/* ---- open hyperlink ---- */
window.open(this.url, this.target);
} else {
/* ---- zoom in/out ---- */
this.z1 = this.z1 == 1 ? this.parent.zoom : 1;
this.parent.calc();
}
} else {
/* ---- select diapo ---- */
this.parent.view = this.N;
this.parent.calc();
}
return false;
}
}
/* //////////// ==== public methods ==== //////////// */
return {
/* ==== initialize script ==== */
create : function (div, size, zoom, border) {
/* ---- instanciate imageFlow ---- */
var load = function () {
var loaded = false;
var i = instances.length;
while (i--) if (instances[i].oCont == div) loaded = true;
if (!loaded) {
/* ---- push new imageFlow instance ---- */
instances.push(
new ImageFlow(div, size, zoom, border)
);
$("img.lazyload").lazyload();
/* ---- init script (once) ---- */
if (!imf.initialized) {
imf.initialized = true;
/* ---- window resize event ---- */
addEvent(window, 'resize', function () {
var i = instances.length;
while (i--) instances[i].resize();
});
/* ---- stop drag N drop ---- */
addEvent(document.getElementById(div), 'mouseout', function (e) {
if (!e) e = window.event;
var tg = e.relatedTarget || e.toElement;
if (tg && tg.tagName == 'HTML') {
var i = instances.length;
while (i--) instances[i].oc.onmousemove = null;
}
return false;
});
/* ---- set interval loop ---- */
setInterval(function () {
var i = instances.length;
while (i--) instances[i].run();
}, 16);
}
}
}
/* ---- window onload event ---- */
addEvent(window, 'load', function () { load(); });
}
}
}();
/* ==== create imageFlow ==== */
// div ID , size, zoom, border
imf.create("imageFlow", 0.15, 1.5, 10);
</script>
</head>
<body>
<script type="text/javascript">
var num = 0; //第几个属性
$(document).ready(function() {
var folder = "C0084";
var local_url = document.location.href;
var params = local_url.split("?")[1].split("&");
for (var i = 0; i < params.length; i++) {
var param = params[i];
var idx = param.split("=")[0];
var val = param.split("=")[1];
if (idx == "folder") folder = val;
}
$("img.lazyload").lazyload();
$(".selected").click(function() {
var val = $(this).val();
// if (isset($_GET["folder"]) $_GET["folder"] = "C0084";
$.post('server.php', {val: val, num: num, filename: $(".legend").html(), partid: folder}, function(msg) {
if (msg.status == 1)
{
if (num < 0) {
$("#example #attr").html(msg.attr);
$("#example #txt").html(msg.attr + "样例");
$("#example img").attr("src", "./pic/example/" + msg.attr + ".jpg");
$("#example_left #attr").html(msg.attr);
$("#example_left #txt").html(msg.attr + "样例");
$("#example_left img").attr("src", "./pic/example/" + msg.attr + ".jpg");
num++;
}
else {
$(".arrow-right").click();
// $(".selected").attr('checked', false);
}
}
}, "json");
});
// $("#nextpage").click(function() {
// window.location.reload()
// });
$(".title").bind("DOMNodeInserted", function() {
$("#example #attr").html("**");
// $("#attr").html("拱眉");
$("#example #txt").html("**样例");
$("#example img").attr("src", "./pic/example/大嘴唇.jpg");
$("#example_left #attr").html("非**");
// $("#attr").html("拱眉");
$("#example_left #txt").html("非**样例");
$("#example_left img").attr("src", "./pic/example/浓眉.jpg");
num = 0;
});
});
function test() {
if (event.keyCode == 37) {
$("#select1").click();
}
else if (event.keyCode == 39) {
$("#select2").click();
}
else if (event.keyCode == 38) {
$("#select3").click();
}
}
document.onkeydown = function() {test();}
</script>
<div id="imageFlow">
<div class="bank">
<?php
function readPic($dir)
{
$files = array();
if (is_dir($dir))
{
if ($handle = opendir($dir))
{
while (($file = readdir($handle)) !== false) {
if ($file != '.' && $file != '..')
{
if (is_dir($dir."/".$file))
{
$files[$file] = readPic($dir."/".$file);
}
else
{
$files[] = $dir."/".$file;
}
}
}
closedir($handle);
}
}
return $files;
}
// $data = readPic("./pic/gallery");
if (!isset($_GET["folder"])) $_GET["folder"] = "C0084";
$data = readPic("./pic/figure/".$_GET["folder"]);
$pagenum = intval(count($data) / 1000);
$lastnum = count($data) % 1000;
if ($pagenum == 0) {
for ($i = 0; $i < count($data); $i++)
// for ($i = 0; $i < 1000; $i++)
{
?>
<a rel="<?php echo($data[$i]); ?>" title="" href="#" class="pic">
<?php
$filename_arr = explode("/", $data[$i]);
$filename = explode(".", $filename_arr[count($filename_arr)-1])[0];
echo trim($filename);
?>
</a>
<?php
}
}
else {
$protocol = ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
$url = $protocol.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$url = explode("?", $url)[0]
?>
<div class="pages">
<?php
for ($i = 1; $i <= $pagenum + 1; $i++) {
?>
<a class="page" href="<?php echo $url.'?folder='.$_GET['folder'].'&page='.strval($i-1); ?>"><?php echo $i ?></a>
<?php
}
?>
</div>
<?php
if (!isset($_GET["page"])) $_GET["page"] = 0;
if ($_GET["page"] > $pagenum) $_GET["page"] = 0;
$start = $_GET["page"] * 1000;
$end = 1000;
if ($_GET["page"] == $pagenum) $end = count($data);
else $end = ($_GET["page"] + 1) * 1000;
for ($i = $start; $i < $end; $i++) {
?>
<a rel="<?php echo($data[$i]); ?>" title="" href="#" class="pic">
<?php
$filename_arr = explode("/", $data[$i]);
$filename = explode(".", $filename_arr[count($filename_arr)-1])[0];
echo trim($filename);
?>
</a>
<?php
}
}
?>
</div>
<div class="text">
<div class="title">
Loading</div>
<div class="legend">
Please wait...</div>
<div id="attr">
折指
</div>
<div id="form1">
<input type="radio" name="attribute" value="1" class="selected" id="select1" />是
<input type="radio" name="attribute" value="0" class="selected" id="select2" />否
<input type="radio" name="attribute" value="-1" class="selected" id="select3" />删
</div>
</div>
<div class="scrollbar1" style="display: none">
<img class="track1" src="pic/common/track.jpg" alt="">
<img class="arrow-left1" src="pic/common/sign_out.png" alt="">
<img class="arrow-right1" src="pic/common/sign_in.png" alt="">
<img class="bar1" src="pic/common/bar.jpg" alt="">
</div>
<div class="scrollbar">
<img class="track" src="pic/common/track.jpg" alt="">
<img class="arrow-left" src="pic/common/left-arrow.png" alt="">
<img class="arrow-right" src="pic/common/right-arrow.png" alt="">
<img class="bar" src="pic/common/bar.gif" alt="">
</div>
<div id="example">
<div><img src="./pic/example/大嘴唇.jpg"></div>
<div id="txt">**样例</div>
</div>
<div id="example_left">
<div><img src="./pic/example/浓眉.jpg"></div>
<div id="txt">非**样例</div>
</div>
<div id="explanation">
<div class="header">**说明:</div>
<div class="mainbody">
</div>
<div class="header">标注说明:</div>
<div class="mainbody">
1. 快捷键:左方向键(←)是,右方向键(→)否,上方向键(↑)删。
</div>
</div>
</div>
<!-- <div id="prepage" class="changepage"><a href="">上一页</a></div>
<div id="nextpage" class="changepage"><a href="">下一页</a></div> -->
</body>
</html>