-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.php_o
10854 lines (9339 loc) · 763 KB
/
template.php_o
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
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
class viewTemplate {
static function headerHTML($info = false) {
global $STATIC;
$result = "";
$result .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'."\n";
$result .= '<html xmlns="http://www.w3.org/1999/xhtml">'."\n";
$result .= ' <head>'."\n";
$result .= ' <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />'."\n";
$result .= ' <title>'.(isset($info['title'])? stripslashes($info['title']): $STATIC['name_syte']).'</title>'."\n";
$result .= ' <meta name="google-site-verification" content="_-nLjK9DsB5ww7XasixChzAlCOYLCKjE98qVVY1AYsE" />'."\n";
$result .= ' <meta name="description" content="'.(isset($info['description'])? stripslashes($info['description']): "").'" >'."\n";
$result .= ' <meta name="keywords" content="'.(isset($info['keywords'])? stripslashes($info['keywords']): "").'" >'."\n";
$result .= ' <link rel="stylesheet" type="text/css" href="/css/css-core/css-core.css"/>'."\n";
$result .= '<link rel="icon" href="/favicon.ico" type="image/x-icon">'."\n";
$result .= '<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"> '."\n";
$result .= ' <link rel="stylesheet" type="text/css" href="/css/css-core/round.css"/>'."\n";
$result .= ' <link rel="stylesheet" type="text/css" href="/css/snippet/equal-columns.css"/>'."\n";
$result .= ' <link rel="stylesheet" type="text/css" href="/css/index.css"/>'."\n";
$result .= ' <link rel="stylesheet" type="text/css" href="/css/header.css"/>'."\n";
$result .= ' <link rel="stylesheet" type="text/css" href="/css/icons.css"/>'."\n";
$result .= ' <link rel="stylesheet" type="text/css" href="/css/buttons.css"/>'."\n";
$result .= ' <link rel="stylesheet" type="text/css" href="/css/video.css"/>'."\n";
$result .= ' <link rel="stylesheet" type="text/css" href="/css/main.css"/>'."\n";
$result .= ' <link rel="stylesheet" type="text/css" href="/css/footer.css"/>'."\n";
$result .= ' <link rel="stylesheet" type="text/css" href="/css/equal-columns.css"/>'."\n";
$result .= ' <link rel="stylesheet" type="text/css" href="/css/jgrowl.css"/>'."\n";
$result .= ' <!--[if lt IE 7]>'."\n";
$result .= ' <link rel="stylesheet" href="/css/css-core/css-ie.css" type="text/css"/>'."\n";
$result .= ' <script type="text/javascript" src="/class/js/iepngfix.js"></script>'."\n";
$result .= ' <![endif]--> '."\n";
$result .= '<script type="text/javascript" src="/class/js/jquery.js"></script>'."\n";
$result .= '<script type="text/javascript" src="/class/js/jquery.jcarousel.pack.js"></script>'."\n";
$result .= '<script src="/class/js/operation.js"></script>'."\n";
$result .= '<script src="/class/js/jquery.simplemodal.js"></script>'."\n";
$result .= '<script src="/class/js/jquery.fancybox.pack.js"></script>'."\n";
$result .= '<script src="/class/js/jquery.jgrowl.js"></script>'."\n";
$result .= '<script src="/class/ajax/lib/JsHttpRequest/JsHttpRequest.js"></script>'."\n";
$result .= '<script type="text/javascript" src="/class/js/swfobject.js"></script>'."\n";
$result .= "<script type='text/javascript'> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-29058375-1']); _gaq.push(['_setDomainName', '555hf.tv']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();</script>\n";
$result .= ' </head>'."\n";
$result .= '</head>'."\n";
return $result;
}
static function topMenu($img="") {
global $pagename;
$result = '';
$result .= ' <div class="main-menu">'."\n";
$result .= ' <a class="first program-menu" href="/programguide">'."\n";
$result .= ' <i class="tl"></i>'."\n";
$result .= ' Ïðîãðàììà ïåðåäà÷'."\n";
$result .= ' </a>'."\n";
$result .= ' <a class="club-menu" href="http://www.555hf.ru" target="_blank">555 êëóá</a>'."\n";
$result .= ' <a class="feder-menu" href="http://federationofsniping.ru/" target="_blank">Ôåäåðàöèÿ ñíàéïèíãà</a>'."\n";
$result .= ' <a class="school-menu" href="http://www.555sh.ru" target="_blank">Øêîëà îõîòíèêà</a>'."\n";
$result .= ' <a class="fisher" href="http://www.555sf.ru" target="_blank">Øêîëà ðûáîëîâà</a>'."\n";
$result .= ' <a class="forum-menu" href="/forum">Ôîðóì</a>'."\n";
$result .= ' <a class="konk" href="/contest">'."\n";
$result .= ' <i class="tr"></i>'."\n";
$result .= ' Êîíêóðñû'."\n";
$result .= ' </a>'."\n";
$result .= ' </div>'."\n";
return $result;
}
static function header($img, $info = false) {
global $STATIC, $pagename;
$result = "";
#$result .= $_SERVER['SERVER_HOST'];
#print_r($_SERVER);
$result .= viewTemplate::headerHTML($info);
$result .= '<body>'."\n";
$result .= '<div id="container">'."\n";
$result .= ' <div id="header">'."\n";
$result .= ' <body>'."\n";
$result .= ' <div class="container-html">'."\n";
$result .= ' <div class="container-body">'."\n";
$result .= ' <div class="main container"> '."\n";
$result .= ' <div class="head-wood">'."\n";
$result .= ' <img src="/img/common/head-wood.png" width="1048" height="307" />'."\n";
$result .= ' </div>'."\n";
$result .= ' <div class="head">'."\n";
$result .= ' <div class="header">'."\n";
$result .= ' <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="966" height="288" id="FlashID" title="tt">'."\n";
$result .= ' <param name="movie" value="/images/header.swf" />'."\n";
$result .= ' <param name="quality" value="high" />'."\n";
$result .= ' <param name="wmode" value="opaque" />'."\n";
$result .= ' <param name="swfversion" value="6.0.65.0" />'."\n";
$result .= ' <param name="expressinstall" value="Scripts/expressInstall.swf" />'."\n";
$result .= ' <!--[if !IE]>-->'."\n";
$result .= ' <object type="application/x-shockwave-flash" data="/images/header.swf" width="966" height="288">'."\n";
$result .= ' <!--<![endif]-->'."\n";
$result .= ' <param name="quality" value="high" />'."\n";
$result .= ' <param name="wmode" value="opaque" />'."\n";
$result .= ' <param name="swfversion" value="6.0.65.0" />'."\n";
$result .= ' <param name="expressinstall" value="Scripts/expressInstall.swf" />'."\n";
$result .= ' <div>'."\n";
$result .= ' <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>'."\n";
$result .= ' <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>'."\n";
$result .= ' </div>'."\n";
$result .= ' <!--[if !IE]>-->'."\n";
$result .= ' </object>'."\n";
$result .= ' <!--<![endif]-->'."\n";
$result .= ' </object>'."\n";
$result .= ' </div>'."\n";
# $result .= ' <div class="header">'."\n";
# $result .= '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="player" width="966" height="288" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" ><param name="movie" value="/images/header.swf" ></param><param name="quality" value="high"></param><embed src="/images/header.swf" quality="high" bgcolor="#000000" width="966" height="288" name="player" align="middle" play="true" loop="true" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"></embed></object>';
# $result .= ' <img src="/images/header/'.($img!="" && $img!=0 && file_exists("../images/header/{$img}.png")? $img: "header").'.png" width="966" height="288" />'."\n";
# $result .= ' </div>'."\n";
$result .= ' <div class="logo">'."\n";
$result .= ' <a href="/"><img src="/img/common/555hf-logo.png" width="247" height="154" alt="555hf.tv" /></a>'."\n";
$result .= ' </div>'."\n";
$result .= ' <div class="logo1">'."\n";
$result .= ' <img src="/images/headers/1.png" alt="18+" />'."\n";
$result .= ' </div>'."\n";
$result .= ' <div class="avt-reg">'."\n";
$result .= ' <a href="/account">Âõîä</a> | <a href="/reg">Ðåãèñòðàöèÿ</a>'."\n";
$result .= ' </div>'."\n";
$result .= viewTemplate::topMenu($img);
$result .= ' </div>'."\n";
return $result;
}
static function headerPrint($info = false) {
global $STATIC, $pagename;
$result = "";
$result .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";
$result .= '<html xmlns="http://www.w3.org/1999/xhtml">'."\n";
$result .= '<head>'."\n";
$result .= '<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />'."\n";
$result .= '<title>'.(isset($info['title'])? stripslashes($info['title']): $STATIC['name_syte']).'</title>'."\n";
$result .= '<meta name="description" content="'.(isset($info['description'])? stripslashes($info['description']): "").'" >'."\n";
$result .= '<meta name="keywords" content="'.(isset($info['keywords'])? stripslashes($info['keywords']): "").'" >'."\n";
$result .= '<link rel="icon" href="/favicon.ico" type="image/x-icon">'."\n";
$result .= '<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"> '."\n";
$result .= '<link rel="stylesheet" type="text/css" href="/style000.css" />'."\n";
$result .= '<!--[if IE 6]>'."\n";
$result .= ' <link rel="stylesheet" type="text/css" href="/ie6.css" />'."\n";
$result .= '<![endif]-->'."\n";
$result .= '<script type="text/javascript" src="/class/js/jquery.js"></script>'."\n";
$result .= '</head>'."\n";
$result .= '<body>'."\n";
return $result;
}
static function headerRecommend($img, $info) {
global $STATIC;
$result = "";
$result .= viewTemplate::headerHTML($info);
$result .= '<body>'."\n";
$result .= '<div id="container">'."\n";
$result .= ' <div id="header">'."\n";
$result .= viewTemplate::topMenu($img);
$result .= ' <div id="header_find_friends"></div>'."\n";
return $result;
}
static function headerFootstep($img, $info) {
global $STATIC;
$result = "";
$result .= viewTemplate::headerHTML($info);
$result .= '<body>'."\n";
$result .= '<div id="container">'."\n";
$result .= ' <div id="header">'."\n";
$result .= viewTemplate::topMenu($img);
$result .= ' <div id="header_find_sled"></div>'."\n";
return $result;
}
static function headerTest($img, $info) {
global $STATIC;
$result = "";
$result .= viewTemplate::headerHTML($info);
$result .= '<body>'."\n";
$result .= '<div id="container">'."\n";
$result .= ' <div id="header">'."\n";
$result .= viewTemplate::topMenu($img);
$result .= ' <div id="header_find_test"></div>'."\n";
return $result;
}
static function headerProgrammAll($img, $info) {
global $STATIC;
$result = "";
$result .= viewTemplate::headerHTML($info);
$result .= '<body>'."\n";
$result .= '<div id="container">'."\n";
$result .= ' <div id="header">'."\n";
$result .= viewTemplate::topMenu($img);
$result .= ' <div id="header_find"><div id="header_find_layer"></div>'."\n";
$result .= ' <form action="/search/" method="post">'."\n";
$result .= ' <input type="text" class="find" name="searchtext" />'."\n";
$result .= ' <input type="image" src="/images/find.gif" class="button" />'."\n";
$result .= ' </form>'."\n";
$result .= ' </div>'."\n";
$result .= ' </div>'."\n";
return $result;
}
static function headerReg($img, $info = false) {
global $STATIC;
$result = "";
$result .= viewTemplate::headerHTML($info);
$result .= '<body>'."\n";
$result .= '<div id="container">'."\n";
$result .= ' <div id="header">'."\n";
$result .= viewTemplate::topMenu($img);
$result .= ' <div id="header_find_reg"></div>'."\n";
$result .= ' </div>'."\n";
return $result;
}
static function headerProgramm($img) {
global $STATIC, $pagename;
$result = "";
$result .= viewTemplate::headerHTML();
$result .= '<body>'."\n";
$result .= '<div id="container">'."\n";
$result .= ' <div id="header">'."\n";
$result .= viewTemplate::topMenu($img);
$result .= ' <div id="header_find_prog2">'."\n";
$result .= ' <a href="/programm/'.$pagename[1].'/" title=" íà÷àëî" class="vnachalo"></a>'."\n";
$result .= ' <a href="#" title="5 çàáðîñîâ" class="zabros"></a>'."\n";
$result .= ' <a href="/programm/'.$pagename[1].'/episode/" title="Ýïèçîäû" class="epizod"></a>'."\n";
$result .= ' <a href="/programm/'.$pagename[1].'/photos/" title="Ôîòîãðàôèè" class="fotografii"></a>'."\n";
$result .= ' <a href="/programm/'.$pagename[1].'/bio/" title="Áèî" class="bio"></a>'."\n";
$result .= ' <a href="/programm/'.$pagename[1].'/blog/" title="Áëîã" class="blog"></a>'."\n";
$result .= ' </div>'."\n";
$result .= ' </div>'."\n";
return $result;
}
static function headerVideo($img) {
global $STATIC;
$result = "";
$result .= viewTemplate::headerHTML();
$result .= '<body>'."\n";
$result .= '<div id="container">'."\n";
$result .= ' <div id="header">'."\n";
$result .= viewTemplate::topMenu($img);
$result .= ' <div id="header_find_prog2">'."\n";
$result .= ' <a href="#" title=" íà÷àëî" class="vnachalo"></a>'."\n";
$result .= ' <a href="#" title="5 çàáðîñîâ" class="zabros_active"></a>'."\n";
$result .= ' <a href="#" title="Ýïèçîäû" class="epizod"></a>'."\n";
$result .= ' <a href="#" title="Ôîòîãðàôèè" class="fotografii"></a>'."\n";
$result .= ' <a href="#" title="Áèî" class="bio"></a>'."\n";
$result .= ' <a href="#" title="Áëîã" class="blog"></a>'."\n";
$result .= ' </div>'."\n";
$result .= ' </div>'."\n";
return $result;
}
static function footer($info = false) {
global $STATIC, $modules;
$result = '';
if (isset($_SESSION['noReadMessagesCount']) and $_SESSION['noReadMessagesCount']>0 && $_SERVER['REQUEST_URI'] != "/account/forum") {
$result .= '<script>'."\n";
$result .= '$.jGrowl("Ó Âàñ åñòü '.$_SESSION['noReadMessagesCount'].' íåïðî÷èòàííûõ ñîîáùåíèé íà ôîðóìå. ×òîáû ïðîñìîòðåòü ñïèñîê, ïåðåéäèòå ïî <a href=\'/account/forum\' style=\'color: white;\' onClick=\'jQuery(\"div.jGrowl\").trigger(\"jGrowl.close\");\'>ññûëêå</a>", { sticky: true });'."\n";
$result .= '</script>'."\n";
}
$result .= ' <div class="footer">'."\n";
$result .= ' <div class="footer-wood">'."\n";
$result .= ' <img src="/img/common/footer-wood.png" width="1048" height="137" />'."\n";
$result .= ' </div>'."\n";
$result .= ' <div class="footer-box">'."\n";
$result .= ' <div class="search-back">'."\n";
$result .= ' <form action="/search/" method="post" id="formSearch"> '."\n";
$result .= ' <a onClick="document.getElementById(\'formSearch\').submit()">ÏÎÈÑÊ</a>'."\n";
$result .= ' <span>'."\n";
$result .= ' <input type="text" class="find" name="searchtext" />'."\n";
$result .= ' </span>'."\n";
$result .= ' </form> '."\n";
$result .= ' </div>'."\n";
$result .= ' <div>'."\n";
$result .= ' <ul class="bottom-menu">'."\n";
$result .= ' <li>'."\n";
$result .= ' <a href="/map">Ñòðóêòóðà ñàéòà</a>'."\n";
$result .= ' </li>'."\n";
$result .= ' <li>'."\n";
$result .= ' <a href="/about">Âñå î 555hf.tv</a>'."\n";
$result .= ' </li>'."\n";
$result .= ' <li>'."\n";
$result .= ' <a href="/rules">Ïðàâèëà</a>'."\n";
$result .= ' </li>'."\n";
$result .= ' <li>'."\n";
$result .= ' <a href="/cooperation">Ñîòðóäíè÷åñòâî</a>'."\n";
$result .= ' </li>'."\n";
$result .= ' <li>'."\n";
$result .= ' <a href="/partners">Ïàðòíåðû</a>'."\n";
$result .= ' </li>'."\n";
$result .= ' <li>'."\n";
$result .= ' <a href="/reg">Êàê ïîäêëþ÷èòüñÿ</a>'."\n";
$result .= ' </li>'."\n";
$result .= ' <li>'."\n";
$result .= ' <a href="/faq">FAQ</a>'."\n";
$result .= ' </li>'."\n";
$result .= ' <li>'."\n";
$result .= ' <a href="/view">Ïðîñìîòð âèäåî</a>'."\n";
$result .= ' </li>'."\n";
$result .= ' <li>'."\n";
$result .= ' <a href="/viewtv">Ñìîòðèòå íà 555hf.tv</a>'."\n";
$result .= ' </li>'."\n";
$result .= ' <li>'."\n";
$result .= ' <a href="/wantsee">Õî÷ó óâèäåòü</a>'."\n";
$result .= ' </li>'."\n";
$result .= ' <li>'."\n";
$result .= ' <a href="/footstep">Îñòàâü ñâîé ñëåä</a>'."\n";
$result .= ' </li>'."\n";
$result .= ' <li>'."\n";
$result .= ' <a href="/details">Ðåêâèçèòû</a>'."\n";
$result .= ' </li>'."\n";
$result .= ' <li>'."\n";
$result .= ' <a href="/lesson">Îíëàéí óðîêè</a>'."\n";
$result .= ' </li>'."\n";
$result .= ' </ul>'."\n";
$result .= ' <BR/><div class="copy">'."\n";
$result .= ' <p>555hf.tv. Îõîòíè÷üå - ðûáîëîâíûé èíòåðíåò êàíàë.</p>'."\n";
$result .= ' <p>© 2009-2011. Êîïèðîâàíèå ìàòåðèàëîâ ñ ñàéòà çàïðåùåíî! ';
$result .= '<!--LiveInternet counter--><script type="text/javascript">document.write("<a href=\'http://www.liveinternet.ru/click\' target=_blank><img src=\'//counter.yadro.ru/hit?t44.3;r" + escape(document.referrer) + ((typeof(screen)=="undefined")?"":";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?screen.colorDepth:screen.pixelDepth)) + ";u" + escape(document.URL) + ";" + Math.random() + "\' border=0 width=16 height=16 alt=\'\' title=\'LiveInternet\'><\/a>")</script><!--/LiveInternet--></p>'."\n";
$result .= ' </div>'."\n";
$result .= ' </div>'."\n";
$result .= ' </div>'."\n";
$result .= ' </div>'."\n";
$result .= ' </div>'."\n";
$result .= ' </div>'."\n";
$result .= ' </div>'."\n";
$result .= ' <div class="box-fixed" style="display: none;">'."\n";
$result .= ' <div class="box-body"></div>'."\n";
$result .= ' <div class="wrapper">box fixed</div>'."\n";
$result .= ' </div>'."\n";
$result .= ' </body>'."\n";
$result .= '</html>'."\n";
return $result;
}
static function footerPrint($info = false) {
$result = '';
$result .= '</body>'."\n";
$result .= '</html>'."\n";
return $result;
}
static function footerProgramm() {
$result = '';
$result .= '<div id="footer">'."\n";
$result .= ' <form action="/search/" method="post">'."\n";
$result .= ' <input type="text" class="find" name="searchtext" />'."\n";
$result .= ' <input type="image" src="/images/find.gif" class="button" />'."\n";
$result .= ' </form>'."\n";
$result .= ' <a href="/about">âñå î 555huntfishing.TV</a><div class="footer_razdel"></div>'."\n";
$result .= ' <a href="/rules">ïðàâèëà</a><div class="footer_razdel"></div>'."\n";
$result .= ' <a href="/cooperation">ñîòðóäíè÷åñòâî</a><div class="footer_razdel"></div>'."\n";
$result .= ' <a href="/partners/">ïàðòíåðû</a><div class="footer_razdel"></div>'."\n";
$result .= ' <a href="/reg">êàê ïîäêëþ÷èòüñÿ</a>'."\n";
$result .= '</div>'."\n";
$result .= '</body>'."\n";
$result .= '</html>'."\n";
return $result;
}
static function footerReg() {
$result = '';
$result .= '<div id="footer">'."\n";
$result .= ' <form action="/search/" method="post">'."\n";
$result .= ' <input type="text" class="find" name="searchtext" />'."\n";
$result .= ' <input type="image" src="/images/find.gif" class="button" />'."\n";
$result .= ' </form>'."\n";
$result .= ' <a href="/about">âñå î 555huntfishing.TV</a><div class="footer_razdel"></div>'."\n";
$result .= ' <a href="/reg">êàê ïîäêëþ÷èòüñÿ</a><div class="footer_razdel"></div>'."\n";
$result .= ' <a href="/rules">ïðàâèëà</a><div class="footer_razdel"></div>'."\n";
$result .= ' <a href="/cooperation">ñîòðóäíè÷åñòâî</a><div class="footer_razdel"></div>'."\n";
$result .= ' <a href="/partners">ïàðòíåðû</a><div class="footer_razdel"></div>'."\n";
$result .= '</div>'."\n";
$result .= '</body>'."\n";
$result .= '</html>'."\n";
return $result;
}
static function footerVideo() {
$result = '';
$result .= '<div id="footer">'."\n";
$result .= ' <form action="/search/" method="post">'."\n";
$result .= ' <input type="text" class="find" name="searchtext" />'."\n";
$result .= ' <input type="image" src="/images/find.gif" class="button" />'."\n";
$result .= ' </form>'."\n";
$result .= ' <a href="/about">âñå î 555huntfishing.TV</a><div class="footer_razdel"></div>'."\n";
$result .= ' <a href="/reg">êàê ïîäêëþ÷èòüñÿ</a><div class="footer_razdel"></div>'."\n";
$result .= ' <a href="/rules">ïðàâèëà</a><div class="footer_razdel"></div>'."\n";
$result .= ' <a href="/cooperation">ñîòðóäíè÷åñòâî</a><div class="footer_razdel"></div>'."\n";
$result .= ' <a href="/faq">÷àâî</a>'."\n";
$result .= ' <a href="/map">êàðòà ñàéòà</a>'."\n";
$result .= '</div>'."\n";
$result .= '</body>'."\n";
$result .= '</html>'."\n";
return $result;
}
function mainArticlesView($mainArticles) {
$full = 0;
$small = 0;
$result = '<div style="position: relative">'."\n";
if (!empty($mainArticles) and count($mainArticles)>0) {
$result .= ' <div class="jornal-list">'."\n";
foreach ($mainArticles as $key=>$article) {
if ($article['viewstate'] == "simple1") {
$full++;
$result .= ' <div class="jornal-big-prw">'."\n";
$result .= ' <div class="black-opacity">'."\n";
$result .= ' <p>'.stripslashes($article['comment']).'</p>'."\n";
$result .= ' </div>'."\n";
$result .= ' <a href="/blog/'.$article['id'].'">'."\n";
$result .= ' <img src="/images/articles/'.$article['id'].'m.jpg" width="396" height="242" alt="" title="" />'."\n";
$result .= ' </a>'."\n";
$result .= ' </div>'."\n";
}
else if ($article['viewstate'] == "simple2") {
if ($small == 0)
$result .= ' <div class="jornal-list-smals">'."\n";
$result .= ' <div class="jornal-small-prw">'."\n";
$result .= ' <div class="black-opacity">'."\n";
$result .= ' <p>'.stripslashes($article['comment']).'</p>'."\n";
$result .= ' </div>'."\n";
$result .= ' <a href="/blog/'.$article['id'].'">'."\n";
$result .= ' <img src="/images/articles/'.$article['id'].'n.jpg" width="188" height="115" alt="" title="" />'."\n";
$result .= ' </a>'."\n";
$result .= ' </div>'."\n";
$small++;
}
}
if ($small > 0)
$result .= ' </div>'."\n";
$result .= ' </div>'."\n";
}
$result .= ' </div>'."\n";
return $result;
}
static function templateMainOld($programms, $carusel, $rightBlock, $lastArticles, $mainArticles, $bigAnswerTopic, $oursAuthor, $lastAlbum, $currentVoting, $seesoon, $lastProgramm) {
$result = '';
$result .= ' <div id="left">'."\n";
$result .= ' <div id="video">'."\n";
$result .= '<div class="pl" id="playerMain">'."\n";
$result .= ' <a href="http://www.adobe.com/go/getflashplayer">'."\n";
$result .= ' <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"/>'."\n";
$result .= ' </a>'."\n";
$result .= '</div>'."\n";
/*
$result .= '
<script type="text/javascript">
var flashvars = {\'showcase\': true, \'autostart\': true, \'id\':\'/video/online\', \'local\': true, \'online\': true, \'quality\': \'sd\'};
var params = {};
params.bgcolor = "#F2EEE9";
params.allowFullscreen = true;
var attributes = {};
swfobject.embedSWF("/images/playerrtmp.swf", "playerMain", "100%", "100%", "10.0.0", false, flashvars, params, attributes);
</script>';
*/
$result .= ' <div class="clear"></div>'."\n";
$result .= ' </div>'."\n";
$result .= ' <div class="clear"></div>'."\n";
$result .= '<div class="now-online">'."\n";
$result .= ' <div class="title">Ñåé÷àñ â ýôèðå</div>'."\n";
$result .= ' <ul class="now-online-list" style="height: 100px; overflow-y: scroll;">'."\n";
if (!empty($lastProgramm) and count($lastProgramm)>0)
foreach ($lastProgramm as $key=>$p)
if ($key < 10)
if ($key == 0)
$result .= ' <li><a href="#" class="active"><span class="time">'.date("H:i", $p['datetime_begin']).'</span> <span style="color: #000000"><B>'.trim($p['name']).":</B></span> ".$p['programmname'].'</a></li>'."\n";
else
$result .= ' <li><a href="#"><span class="time">'.date("H:i", $p['datetime_begin']).'</span> '.$p['name']." ".$p['name2'].": ".$p['programmname'].'</a></li>'."\n";
$result .= ' </ul>'."\n";
$result .= '</div>'."\n";
$result .= '<div id="tv_is_t">'."\n";
$result .= '<a href="/reg/"><img src="/images/preimbanner.png" alt="" /></a>'."\n";
$result .= '</div>'."\n";
$result .= '<div class="clear"></div>'."\n";
/*
$result .= ' <div id="tv_is_t">'."\n";
$result .= ' <img src="/images/podpbanner.png" alt="" />'."\n";
#$result .= ' <div id="tv_is_t_top"><p>Àáîíåíòñêàÿ ïëàòà</p></div>'."\n";
#$result .= ' <p>Ñòîèìîñòü ïðîñìîòðà óíèêàëüíîãî âèäåî î ðûáàëêå, îõîòå è ïîäâîäíîé îõîòå ñîñòàâëÿåò âñåãî 150 ðóáëåé â ìåñÿö!</p>'."\n";
$result .= ' </div>'."\n";
$result .= ' <div id="tv_is_t">'."\n";
$result .= ' <a href="/reg/"><img src="/images/freebanner.png" alt="" /></a>'."\n";
#$result .= ' <div id="tv_is_t_top"><p>Íîâîñòè</p></div>'."\n";
#$result .= ' <p>Ïîäïèñêà íà íîâîñòè. Ââåäèòå ñâîé E-mail â ôîðìó íèæå. <input id="emailSubscribe" type="text"><a onClick="subscribe()"> Îê</a></p>'."\n";
$result .= ' </div>'."\n";
$result .= ' <div id="tv_is_t">'."\n";
$result .= ' <a href="/reg/"><img src="/images/preimbanner.png" alt="" /></a>'."\n";
#$result .= ' <div id="tv_is_t_top"><p>Íîâîñòè</p></div>'."\n";
#$result .= ' <p>Ïîäïèñêà íà íîâîñòè. Ââåäèòå ñâîé E-mail â ôîðìó íèæå. <input id="emailSubscribe" type="text"><a onClick="subscribe()"> Îê</a></p>'."\n";
$result .= ' </div>'."\n";
*/
/*$result .= ' <div id="small_box"><div id="small_box_top"></div>'."\n";
$result .= ' <a href="/reg/"><img src="/images/preimbanner.png" alt="" /></a>'."\n";
$result .= ' <div class="clear"></div>'."\n";
$result .= ' <div id="small_box_bottom"></div></div>'."\n";*/
$result .= ' <div class="clear"></div>'."\n";
if (!empty($seesoon) and count($seesoon)>0) {
# $result .= '<div id="big_box"><div id="big_box_top"></div>'."\n";
# $result .= '<div id="big_box_bottom"></div></div>'."\n";
$result .= '<div id="big_box"><div id="big_box_top"><div><span>Ñìîòðèòå ñêîðî</span></div></div>'."\n";
foreach ($seesoon as $key=>$programm) {
$result .= '<div class="big_subbox">
<div class="big_subbox_top"><p>'.$programm['nameType'].'</p></div>
<a href="/trailer/'.$programm['id'].'"><img style="z-index:1; left:83px; top:80px; position:relative; margin-top:-22px;" src="/images/playbtn1.png" width="23" height="22"></a>
<div class="big_subbox_foto">
<a href="/trailer/'.$programm['id'].'"><img src="/images/video/'.$programm['id'].'.png" alt="" /></a></div>
<p>'.stripslashes($programm['small_text']).'</p>
<div class="big_subbox_bottom"></div>
<div class="clear"></div>
</div>
'."\n";
if ($key % 3 == 2)
$result .= '<div class="clear" style="height: 15px;"></div>'."\n";
}
$result .= '<div class="clear"></div>'."\n";
$result .= '<div id="big_box_bottom"></div></div>'."\n";
}
if (!empty($programms) and count($programms)>0) {
# $result .= '<div id="big_box"><div id="big_box_top"></div>'."\n";
# $result .= '<div id="big_box_bottom"></div></div>'."\n";
$result .= '<div id="big_box"><div id="big_box_top"><div><span>Íîâûå ïðîãðàììû</span></div></div>'."\n";
foreach ($programms as $key=>$programm) {
$result .= '<div class="big_subbox">
<div class="big_subbox_top"><p>'.$programm['nameType'].'</p></div>
<a href="/trailer/'.$programm['id'].'"><img style="z-index:1; left:83px; top:80px; position:relative; margin-top:-22px;" src="/images/playbtn1.png" width="23" height="22"></a>
<div class="big_subbox_foto">
<a href="/trailer/'.$programm['id'].'"><img src="/images/video/'.$programm['id'].'.png" alt="" /></a></div>
<p>'.stripslashes($programm['small_text']).'</p>
<div class="big_subbox_bottom"></div>
<div class="clear"></div>
</div>
'."\n";
if ($key % 3 == 2)
$result .= '<div class="clear" style="height: 15px;"></div>'."\n";
}
$result .= '<div class="clear"></div>'."\n";
$result .= '<div id="big_box_bottom"></div></div>'."\n";
}
$result .= ' </div>'."\n";
$result .= ' <div id="right_column"><div id="right_column_top"></div>'."\n";
#$result .= ' <div class="count_video_exclus"><p>145</p></div>'."\n";
$result .= ' <div class="count_video_exclus"><p><img src="/images/count1.png"></p></div>'."\n";
# $result .= ' <a href="#"><img src="/images/]35new_videos.png" alt="145 íîâûõ âèäåî" /></a>'."\n";
$result .= ' <a href="#"><img src="/images/banner-web.gif" alt="35 íîâûõ âèäåî"/></a><BR/>'."\n";
$result .= ' <a href="'.$rightBlock[0]['url'].'"><img style="z-index:1; left:-10px; top:90px; position:relative; margin-top:-22px;" src="/images/playbtn2.png" width="23" height="22"></a>'."\n";
$result .= ' <div class="right_big_box" onClick="window.location = \''.$rightBlock[0]['url'].'\';" style="cursor: pointer">'."\n";
$result .= ' <img src="/images/main_right/'.$rightBlock[0]['id'].'.jpg" alt="" /><div class="right_big_box_border"></div>'."\n";
$result .= ' <span>'.$rightBlock[0]['name'].'</span>'."\n";
$result .= ' <p>'.$rightBlock[0]['text'].'</p>'."\n";
$result .= ' </div>'."\n";
$result .= ' <a href="'.$rightBlock[1]['url'].'"><img style="z-index:1; left:-70px; top:70px; position:relative; margin-top:-22px;" src="/images/playbtn2.png" width="23" height="22"></a>'."\n";
$result .= ' <div class="right_small_box" onClick="window.location = \''.$rightBlock[1]['url'].'\';" style="cursor: pointer">'."\n";
$result .= ' <img src="/images/main_right/'.$rightBlock[1]['id'].'.jpg" alt="" /><div class="right_small_box_border"></div>'."\n";
$result .= ' <span>'.$rightBlock[1]['name'].'</span>'."\n";
$result .= ' <p>'.$rightBlock[1]['text'].'</p>'."\n";
$result .= ' </div>'."\n";
$result .= ' <a href="'.$rightBlock[2]['url'].'"><img style="z-index:1; left:-70px; top:70px; position:relative; margin-top:-22px;" src="/images/playbtn2.png" width="23" height="22"></a>'."\n";
$result .= ' <div class="right_small_box" onClick="window.location = \''.$rightBlock[2]['url'].'\';" style="cursor: pointer">'."\n";
$result .= ' <img src="/images/main_right/'.$rightBlock[2]['id'].'.jpg" alt="" /><div class="right_small_box_border"></div>'."\n";
$result .= ' <span>'.$rightBlock[2]['name'].'</span>'."\n";
$result .= ' <p>'.$rightBlock[2]['text'].'</p>'."\n";
$result .= ' </div>'."\n";
if ($rightBlock[4]['url'] != "") {
$result .= ' <a href="'.$rightBlock[4]['url'].'"><img style="z-index:1; left:-70px; top:70px; position:relative; margin-top:-22px;" src="/images/playbtn2.png" width="23" height="22"></a>'."\n";
$result .= ' <div class="right_small_box" onClick="window.location = \''.$rightBlock[4]['url'].'\';" style="cursor: pointer">'."\n";
$result .= ' <img src="/images/main_right/'.$rightBlock[4]['id'].'.jpg" alt="" /><div class="right_small_box_border"></div>'."\n";
$result .= ' <span>'.$rightBlock[4]['name'].'</span>'."\n";
$result .= ' <p>'.$rightBlock[4]['text'].'</p>'."\n";
$result .= ' </div>'."\n";
}
$result .= ' <a href="/wantsee"><img src="/images/hochu_uvidet.jpg" alt="" /></a>'."\n";
$result .= ' <a href="/footstep"><img src="/images/ostav_sled.jpg" alt="" /></a>'."\n";
$result .= ' <a href="/contest"><img src="/images/konkurs.png" alt="" /></a>'."\n";
$result .= ' <div class="clear"></div>'."\n";
$result .= ' <div id="right_column_bottom"></div></div>'."\n";
$result .= ' <div class="clear"></div>'."\n";
$result .= ' <div id="lenta" >'."\n";
$result .= ' <a title="Ñîâåòû" class="sovet" id="asovet"></a>'."\n";
$result .= ' <a title="Ñþæåòû" class="syuzhet_mini" id="asyuzhet_mini"></a>'."\n";
$result .= ' <a title="Òðåéëåðû" class="trallers" id="atrallers"></a>'."\n";
$result .= ' <div id="lenta_empty"></div>'."\n";
$result .= ' <div>'."\n";
$random = array();
$count_carusel = 5;
if (isset($carusel['video'])) {
if (count($carusel['video'])>$count_carusel)
$randC = $count_carusel;
else
$randC = count($carusel['video']);
$rand_keys = array_rand($carusel['video'], $randC);
foreach ($rand_keys as $key) {
# $carusel['video'][$key]['color'] = "video";
$random[] = $carusel['video'][$key];
$random[count($random)-1]['color'] = "video";
}
}
if (isset($carusel['story'])) {
if (count($carusel['story'])>$count_carusel)
$randC = $count_carusel;
else
$randC = count($carusel['story']);
$rand_keys = array_rand($carusel['story'], $randC);
foreach ($rand_keys as $key) {
# $carusel['video'][$key]['color'] = "story";
$random[] = $carusel['story'][$key];
$random[count($random)-1]['color'] = "story";
}
}
if (isset($carusel['trailer'])) {
if (count($carusel['trailer'])>$count_carusel)
$randC = $count_carusel;
else
$randC = count($carusel['trailer']);
$rand_keys = array_rand($carusel['trailer'], $randC);
foreach ($rand_keys as $key) {
# $carusel['video'][$key]['color'] = "trailer";
$random[] = $carusel['trailer'][$key];
$random[count($random)-1]['color'] = "trailer";
}
}
shuffle($random);
foreach ($carusel as $key=>$c) {
$result .= ' <div id="conteiner'.$key.'" style="visibility: hidden;">'."\n";
$result .= ' <ul id="lenta_conteiner'.$key.'" class="jcarousel-skin">'."\n";
if (!empty($c) and count($c)>0) {
foreach ($c as $car) {
$result .= '<li class="lenta_block">'."\n";
# $result .= '<a href="/video/'.$car['id'].'"><img style="z-index:1; left:56px; top:50px; position:relative; margin-top:-22px;" src="/images/playbtn2.png" width="23" height="22"></a>'."\n";
$result .= '<img src="/images/video/'.$car['id'].'s.png" alt="" border="0"/>';
$result .= '<img style="z-index:1; left:47px; top:-47px; position:relative; margin-top:0px;" src="/images/playbtn2.png" width="23" height="22">'."\n";
$result .= '<div class="lenta_'.($key=="trailer"? "green": ($key=="story"? "red": "blue")).'_block_border"></div>'."\n";
$result .= '<span><a href="/programm/'.$car['id_typeprogramm'].'">'.($key=="trailer"? "Òðåéëåð": $car['typeName']).'</a></span>
<p><a href="/'.($key=="trailer"? "trailer": "video").'/'.$car['id'].'">'.$car['name'].'</a></p>
<div class="lenta_empty"></div></li>'."\n";
}
}
$result .= '</ul>'."\n";
$result .= ' </div>'."\n";
}
$result .= ' <div id="conteinercarusel">'."\n";
$result .= ' <ul id="lenta_conteinercarusel" class="jcarousel-skin">'."\n";
if (!empty($random) and count($random)>0) {
foreach ($random as $car) {
$result .= '<li class="lenta_block">'."\n";
$result .= '<img src="/images/video/'.$car['id'].'s.png" alt="" border="0"/>'."\n";
# $result .= '<img style="z-index:1; left:47px; top:-47px; position:relative; margin-top:0px;" src="/images/playbtn2.png" width="23" height="22">'."\n";
$result .= '<img style="z-index:1; left:47px; top:-47px; position:relative; margin-top:0px;" src="/images/playbtn2.png" width="23" height="22">'."\n";
$result .= '<div class="lenta_'.($car['color'] == "trailer"? "green": ($car['color'] == "story"? "red": "blue")).'_block_border"></div>'."\n";
# $result .= '<span><a href="/programm/'.$car['id_typeprogramm'].'">'.($car['color']=="trailer"? "Òðåéëåð": $car['typeName']).'</a></span>
$result .= '<span><a href="/programm/'.$car['id_typeprogramm'].'">'.$car['typeName'].'</a></span>
<p><a href="/'.($car['id_typeprogramm']==4 || $car['id_typeprogramm']==8? "video": "trailer").'/'.$car['id'].'">'.$car['name'].'</a></p>
<div class="lenta_empty"></div></li>'."\n";
}
}
$result .= '</ul>'."\n";
$result .= ' </div>'."\n";
$result .= ' </div>'."\n";
$result .= '<script type="text/javascript">'."\n";
$result .= 'jQuery(document).ready(function() {'."\n";
$result .= ' jQuery(\'#lenta_conteinervideo\').jcarousel();'."\n";
$result .= ' jQuery(\'#lenta_conteinertrailer\').jcarousel();'."\n";
$result .= ' jQuery(\'#lenta_conteinerstory\').jcarousel();'."\n";
$result .= ' jQuery(\'#lenta_conteinercarusel\').jcarousel();'."\n";
$result .= ' $("#atrallers").click(function() {'."\n";
$result .= ' $("#atrallers").addClass("trallers_active");'."\n";
$result .= ' $("#asovet").removeClass("sovet_active");'."\n";
$result .= ' $("#asovet").addClass("sovet");'."\n";
$result .= ' $("#asyuzhet_mini").removeClass("syuzhet_mini_active");'."\n";
$result .= ' $("#asyuzhet_mini").addClass("syuzhet_mini");'."\n";
$result .= ' $("#conteinertrailer").css("visibility", "visible");'."\n";
$result .= ' $("#conteinervideo").css("visibility", "hidden");'."\n";
$result .= ' $("#conteinerstory").css("visibility", "hidden");'."\n";
$result .= ' $("#conteinercarusel").css("visibility", "hidden");'."\n";
$result .= ' });'."\n";
$result .= ' $("#asovet").click(function() {'."\n";
$result .= ' $("#atrallers").removeClass("trallers_active");'."\n";
$result .= ' $("#atrallers").addClass("trallers");'."\n";
$result .= ' $("#asovet").addClass("sovet_active");'."\n";
$result .= ' $("#asyuzhet_mini").removeClass("syuzhet_mini_active");'."\n";
$result .= ' $("#asyuzhet_mini").addClass("syuzhet_mini");'."\n";
$result .= ' $("#conteinertrailer").css("visibility", "hidden");'."\n";
$result .= ' $("#conteinerstory").css("visibility", "hidden");'."\n";
$result .= ' $("#conteinervideo").css("visibility", "visible");'."\n";
$result .= ' $("#conteinercarusel").css("visibility", "hidden");'."\n";
$result .= ' });'."\n";
$result .= ' $("#asyuzhet_mini").click(function() {'."\n";
$result .= ' $("#atrallers").removeClass("trallers_active");'."\n";
$result .= ' $("#atrallers").addClass("trallers");'."\n";
$result .= ' $("#asovet").removeClass("sovet_active");'."\n";
$result .= ' $("#asovet").addClass("sovet");'."\n";
$result .= ' $("#asyuzhet_mini").addClass("syuzhet_mini_active");'."\n";
$result .= ' $("#conteinervideo").css("visibility", "hidden");'."\n";
$result .= ' $("#conteinerstory").css("visibility", "visible");'."\n";
$result .= ' $("#conteinertrailer").css("visibility", "hidden");'."\n";
$result .= ' $("#conteinercarusel").css("visibility", "hidden");'."\n";
$result .= ' });'."\n";
# $result .= '$("#atrallers").click();'."\n";
$result .= '});'."\n";
$result .= '</script>'."\n";
$result .= ' </div><div class="clear"></div>'."\n";
$result .= ' <div id="down">'."\n";
$result .= ' <div id="left_down_container">'."\n";
$result .= ' <div id="left_down2">'."\n";
$result .= ' <div id="left_down_top2"><p><B>ËÅÍÒÀ Ó×ÀÑÒÍÈÊÎÂ</B></p></div>'."\n";
if (!empty($lastArticles) and count($lastArticles)>0) {
foreach ($lastArticles as $article) {
$result .= ' <div id="zapis">'."\n";
$result .= ' <a href="/blog/'.$article['id'].'"><img src="/images/users/'.(file_exists($_SERVER['DOCUMENT_ROOT'].'images/users/'.$article['id_user'].'.jpg')===true? $article['id_user']: "nophoto").'.jpg" width="38" height="38"></a>'."\n";
$result .= ' <div id="autor"><a href="/profile/'.$article['id_user'].'">'.$article['author'].'</a></div>'."\n";
list($date, $time) = explode(" ", date("d.m.Y H:i", $article['datetime']));
if ($date == date("d.m.Y"))
$date = "Ñåãîäíÿ";
else if ($date == date("d.m.Y", strtotime("NOW -1day")))
$date = "Â÷åðà";
$result .= ' <div id="date">'.$time.' / '.$date.'</div>'."\n";
$result .= ' <div class="clear"></div>'."\n";
$result .= ' <div id="text">'.stripslashes($article['name']).' <a href="/blog/'.$article['id'].'">»</a></div>'."\n";
$result .= ' </div><div class="clear"></div>'."\n";
}
}
$result .= ' <div id="left_down_bottom2"></div>'."\n";
$result .= ' </div>'."\n";
$result .= ' <a href="/recommend"><img src="/images2/images/banner1.png" /></a>'."\n";
# $result .= ' <a href="/lesson"><img src="/images/banner2-1.png" /></a>'."\n";
$result .= ' <a href="/lesson"><img src="/images/banner2-1.png" /></a>'."\n";
$result .= ' <a href="/shop"><img src="/images2/images/banner3.png" /></a>'."\n";
$result .= ' <a href="/viewtv"><img src="/images2/images/banner4.png" /></a>'."\n";
$result .= ' </div>'."\n";
$result .= '<div id="right_down_container2">'."\n";
//bigAnswerTopic
$result .= ' <div id="right_down2">'."\n";
$result .= ' <div id="right_down_top2"><p>ÑÀÌÛÅ ÀÊÒÈÂÍÛÅ ÒÅÌÛ ÔÎÐÓÌÀ</p></div>'."\n";
function cmp($a, $b) {
if ($a['count'] == $b['count']) {
return 0;
}
return ($a['count'] > $b['count']) ? -1 : 1;
}
if (!empty($bigAnswerTopic) and count($bigAnswerTopic)>0) {
foreach ($bigAnswerTopic as $key=>$forum) {
$result .= ' <div id="forum" '.($key+1 == count($bigAnswerTopic)? 'class="last"': "").'>'."\n";
$result .= ' <span id="zap1">Òåìà:</span> <span id="theme"><a href="/forum/'.$forum['id_forum'].'/'.$forum['id'].'">'.stripslashes($forum['name']).'</a></span><br />'."\n";
$result .= ' <span id="zap1">Âñåãî ðåïëèê:</span> '.$forum['count_post'].'<br />'."\n";
$result .= ' <span id="zap1">Âñåãî ó÷àñòíèêîâ:</span> '.$forum['count_users'].'<br />'."\n";
$temp = array();
uasort($forum['users'], 'cmp');
$i = 0;
foreach ($forum['users'] as $user) {
$temp[] = '<a href="/profile/'.$user['id_user'].'">'.$user['autor'].'</a>';
if (++$i > 5) break;
}
$result .= implode(", ", $temp).($i>5? "
": "")."\n";
$result .= ' </div>'."\n";
}
}
//oursAuthor
$result .= ' <div id="right_down_bottom2"> </div>'."\n";
$result .= ' </div>'."\n";
$result .= ' <div class="clear"></div>'."\n";
$result .= ' <div id="right_down2">'."\n";
$result .= ' <div id="right_down_top3"><p>ÍÀØÈ ÀÂÒÎÐÛ</p></div>'."\n";
if (!empty($oursAuthor) and count($oursAuthor)>0) {
uasort($oursAuthor, 'cmp');
foreach ($oursAuthor as $key=>$user) {
$result .= ' <div id="author" '.($key==count($oursAuthor)? 'class="last"': "").'>'."\n";
$result .= ' <a href="/profile/'.$user['id_user'].'"><img src="/images/users/'.(file_exists($_SERVER['DOCUMENT_ROOT'].'images/users/'.$user['id_user'].'.jpg')===true? $user['id_user']: "nophoto").'.jpg" width="38" height="38"></a>'."\n";
$result .= ' <div><a href="/profile/'.$user['id_user'].'">'.str_replace(" ", "<BR />", $user['author']).'</a></div>'."\n";
$result .= ' </div>'."\n";
}
}
$result .= ' <div id="right_down_bottom2"> </div>'."\n";
$result .= ' </div>'."\n";
$result .= ' <div class="clear"></div>'."\n";
if (!empty($currentVoting) and count($currentVoting)>0) {
$result .= ' <div id="right_down2"><form id="formVote" method="POST" enctype="multipart/form-data">'."\n";
$result .= ' <div id="right_down_top4"><p>ÎÏÐÎÑ</p></div>'."\n";
$result .= ' <div id="question">'.$currentVoting[0]['name'].'</div>'."\n";
$result .= ' <div id="answer">'."\n";
foreach ($currentVoting as $vote) {
if ($vote['state'] == 'check')
$result .= ' <input name="vote[]" value="'.$vote['id'].'" type="checkbox" id="vote'.$vote['id'].'"> <label for="vote'.$vote['id'].'">'.$vote['answer'].'</label>'."\n";
else
$result .= ' <input name="vote[]" value="'.$vote['id'].'" type="radio" id="vote'.$vote['id'].'"> <label for="vote'.$vote['id'].'">'.$vote['answer'].'</label>'."\n";
$result .= ' <br><br>'."\n";
}
$result .= ' <a onclick="vote('.$currentVoting[0]['id_voting'].')">Ãîëîñîâàòü</a> | <a onclick="viewResult('.$currentVoting[0]['id_voting'].')">Ðåçóëüòàòû</a>'."\n";
$result .= ' </div>'."\n";
$result .= ' <div id="right_down_bottom2"> </div>'."\n";
$result .= ' </form></div>'."\n";
}
$result .= ' </div>'."\n";
$result .= ' <div id="center_down_container">'."\n";
$result .= ' <div id="center_down">'."\n";
$result .= ' <div id="center_down_top"><p>'."\n";
$result .= ' <ul>'."\n";
$result .= ' <li class="current" id="allLink"><a>âñå</a></li>'."\n";
$result .= ' <li id="fishingLink"><a>ðûáàëêà</a></li>'."\n";
$result .= ' <li id="huntingLink"><a>îõîòà</a></li>'."\n";
$result .= ' <li id="underwaterLink"><a>ïîäâîäíàÿ îõîòà</a></li>'."\n";
$result .= ' </ul>'."\n";
$result .= ' </p>'."\n";
$result .= ' </div>'."\n";
$result .= '<div id="allTab">'."\n";
$result .= viewTemplate::mainArticlesView($mainArticles['all']);
$result .= ' <div style="width: 100%; visibility: hidden;">555huntfishing.tv</div>'."\n";
$result .= ' <div id="center_down_bottom"> </div>'."\n";
$result .= '</div>'."\n";
$result .= '<div id="fishingTab" style="display: none">'."\n";
$result .= viewTemplate::mainArticlesView($mainArticles['fish']);
$result .= ' <div style="width: 100%; visibility: hidden;">555huntfishing.tv</div>'."\n";
$result .= ' <div id="center_down_bottom"> </div>'."\n";
$result .= '</div>'."\n";
$result .= '<div id="huntingTab" style="display: none">'."\n";
$result .= viewTemplate::mainArticlesView($mainArticles['ohota']);
$result .= ' <div style="width: 100%; visibility: hidden; ">555huntfishing.tv</div>'."\n";
$result .= ' <div id="center_down_bottom"> </div>'."\n";
$result .= '</div>'."\n";
$result .= '<div id="underwaterTab" style="display: none">'."\n";
$result .= viewTemplate::mainArticlesView($mainArticles['waterfish']);
$result .= ' <div style="width: 100%; visibility: hidden;">555huntfishing.tv</div>'."\n";
$result .= ' <div id="center_down_bottom"> </div>'."\n";
$result .= '</div>'."\n";
$result .= '<script type="text/javascript">'."\n";
$result .= 'jQuery(document).ready(function() {'."\n";
$result .= ' $("#allLink").click(function() {'."\n";
$result .= ' $("#allLink").removeClass("current");'."\n";
$result .= ' $("#allLink").addClass("current");'."\n";
$result .= ' $("#fishingLink").removeClass("current");'."\n";
$result .= ' $("#huntingLink").removeClass("current");'."\n";
$result .= ' $("#underwaterLink").removeClass("current");'."\n";
$result .= ' $("#allTab").css("display", "block");'."\n";
$result .= ' $("#fishingTab").css("display", "none");'."\n";
$result .= ' $("#huntingTab").css("display", "none");'."\n";
$result .= ' $("#underwaterTab").css("display", "none");'."\n";
$result .= ' });'."\n";
$result .= ' $("#fishingLink").click(function() {'."\n";
$result .= ' $("#fishingLink").removeClass("current");'."\n";
$result .= ' $("#fishingLink").addClass("current");'."\n";
$result .= ' $("#allLink").removeClass("current");'."\n";
$result .= ' $("#huntingLink").removeClass("current");'."\n";
$result .= ' $("#underwaterLink").removeClass("current");'."\n";
$result .= ' $("#fishingTab").css("display", "block");'."\n";
$result .= ' $("#allTab").css("display", "none");'."\n";
$result .= ' $("#huntingTab").css("display", "none");'."\n";
$result .= ' $("#underwaterTab").css("display", "none");'."\n";
$result .= ' });'."\n";
$result .= ' $("#huntingLink").click(function() {'."\n";