czy ktos moglby mi pomoc siedze nad tym od godziny i nie wiem co jest otoz gdy przesle skorke jportala na serwer menu po lewej i prawej stronie jest za bardzo rozszerzone. chicalem to zmienic ale oto chodzi ze nie wiem juz co robic wszystkiego probowalem. Jak ktos moze to prosze o pomoc.
to jest plik function.inc.php
Kod 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
<?

// ==================================================
// UWAGA! ta skorka jest rekomendowana do przerobek
// jako wzor przez autora systemu jPORTAL
// ==================================================

$color[1] = '#DEE8EE';   // kolor uzytkownika
$color[2] = '#DEE8EE';   // kolor uzytkownika 
$color[3] = $theme;      // zawiera nazwe katalogu theme'a
$color[4] = '#DEE8EE';   // kolor uzytkownika 
$color[5] = '#DEE8EE';   // 1 kolor listy (forum, panel admina, itp.)
$color[6] = '#FEAB1B';   // naglowek listy (opis kolumn na forum itp.)
$color[7] = '#000000';   // kolor czcionki naglowkow listy
$color[8] = '#4A99BD';   // 2 kolor listy (forum, panel admina, itp.)
$color[9] = '#000000';   // kolor drobnych podpisow np. w katalogu stron

# =======================
#  poczatek strony (do bannera)
# =======================


function header_open() {

global 
$color;

echo 
'<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"5\"><img src=\"theme/'
.$color[3].'/gfx/frame_top_left.gif\"></td>
<td valign=\"top\" background=\"theme/'
.$color[3].'/gfx/frame_top_mid.gif\" class=\"title\">
<img src=\"theme/'
.$color[3].'/gfx/separ.gif\" width=\"6\" height=\"3\"><br><b><center>

</center></b></td>
<td width=\"5\"><img src=\"theme/'
.$color[3].'/gfx/frame_top_right.gif\"></td>
</tr>

<tr>
<td background=\"theme/'
.$color[3].'/gfx/frame_left.gif\">&nbsp;</td>
<td align=\"center\" valign=\"middle\" background=\"theme/'
.$color[3].'/gfx/cell.gif\"><a href=\"index.php\"><img SRC=\"theme/'.$color[3].'/gfx/logo.jpg\" border=\"0\"></a>
<table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td class=\"block\">

</td>
</tr>
</table>
</td>
<td background=\"theme/'
.$color[3].'/gfx/frame_right.gif\">&nbsp;</td>
</tr>
<tr>
<td height=\"4\"><img src=\"theme/'
.$color[3].'/gfx/frame_foot_left.gif\" width=\"5\" height=\"9\"></td>
<td height=\"4\" background=\"theme/'
.$color[3].'/gfx/frame_foot_mid.gif\"></td>
<td height=\"4\"><img src=\"theme/'
.$color[3].'/gfx/frame_foot_right.gif\" width=\"5\" height=\"9\"></td>
</tr>
</table>




'
;


}

# fragment za bannerem
# w przypadku braku bannera mozna
# wszystko wstawic do funkcji poprzedniej

function header_close() {

global 
$color$f_author;

echo 
'</td>
</tr>
</table>
</td>
</tr>
</table>

</td>
</tr>
</table>
</td>
</tr>
</table><img src=\"images/separ.gif\" height=\"2\"><table align=\"center\" bgcolor=\"black\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\" border=\"0\">
<tr>
<td>
<table align=\"center\" bgcolor=\"white\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">
<tr>
<td>
<table align=\"center\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">
<tr>
<td bgcolor=\"'
.$color[2].'\" class=\"title\" style=\"padding-top: 2; padding-bottom: 2\"  style=\"background-image: url(theme/'.$color[3].'/gfx/menu_bg_.gif); background-repeat: repeat-x; background-position: bottom\">';

// MENU GORNE

echo '<b>Menu:</b> <a href=\"index.php\">Strona Główna</a>';


echo 
'</td><form method=\"post\" action=\"search.php\">
<td bgcolor=\"'
.$color[2].'\" align=\"right\" class=\"title\"
style=\"padding-top: 2; padding-bottom: 2\" style=\"background-image: url(theme/'
.$color[3].'/gfx/menu_bg_.gif); background-repeat: repeat-x; background-position: bottom\"><b>szukaj:</b> <input type=\"text\" name=\"word\" value=\"'.$word.'\" size=\"25\" style=\"font-size: 10px\"></td></form>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>

'
;



}


#
#
#


function left_menu_open() {

global 
$color;

echo 
'
<table width=\"200\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td>'
;

}

function 
left_menu_close() {

global 
$color;

echo 
'
</td>
</tr>
</table>'
;

}

function 
right_menu_open() {

global 
$color;

echo 
'
<table width=\"100\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td>
'
;

}

function 
right_menu_close() {

global 
$color;

echo 
'
</td>
</tr>
</table>'
;

}


#==============================
# tytul lewego okienka menu
#==============================

function left_menu_title_open() {

global 
$color;

echo 
'<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"5\"></td>
<td valign=\"top\" class=\"title\">
<br><b><center>'
;

}

function 
left_menu_title_close() {

global 
$color;

echo 
'</center></b></td>
<td width=\"5\"></td>
</tr>'
;

}

#==============================
# end: tytul lewego okienka menu
#==============================

#==============================
# tresc lewego okienka menu
#==============================

function left_menu_text_open() {

global 
$color;

echo 
'<tr>
<td>&nbsp;</td>
<td align=\"center\" valign=\"middle\">
<table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td class=\"block\">'
;

}

function 
left_menu_text_close() {

global 
$color;

echo 
'</td>
</tr>
</table>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height=\"4\"></td>
<td height=\"4\"></td>
<td height=\"4\"></td>
</tr>
</table>
<img src=\"theme/'
.$color[3].'/gfx/hr.gif\">';

}



#==============================
# end: tresc lewego okienka menu
#==============================

# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

#==============================
# tytul prawego okienka menu
#==============================

function right_menu_title_open() {

global 
$color;

echo 
'<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"5\"></td>
<td valign=\"top\" class=\"title\">
<br><b><center>'
;

}

function 
right_menu_title_close() {

global 
$color;

echo 
'</center></b></td>
<td width=\"5\"></td>
</tr>'
;

}

#==============================
# end: tytul prawego okienka menu
#==============================

#==============================
# tresc prawego okienka menu
#==============================

function right_menu_text_open() {

global 
$color;

echo 
'<tr>
<td>&nbsp;</td>
<td align=\"center\" valign=\"middle\">
<table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td class=\"block\">'
;

}


function 
right_menu_text_close() {

global 
$color;

echo 
'</td>
</tr>
</table>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height=\"4\"></td>
<td height=\"4\"></td>
<td height=\"4\"></td>
</tr>
</table>
<img src=\"theme/'
.$color[3].'/gfx/hr.gif\">';

}



#==============================
# end: tresc prawego okienka menu
#==============================

# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

#==============================
# tytul okienka main'a
#==============================

function main_title_open() {

global 
$color;

echo 
'<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"5\"><img src=\"theme/'
.$color[3].'/framki/frame_top_left.gif\"></td>
<td valign=\"top\" background=\"theme/'
.$color[3].'/framki/frame_top_mid.gif\" class=\"title\">
<img src=\"theme/'
.$color[3].'/gfx/separ.gif\" width=\"6\" height=\"3\"><br><b><center>';


}

function 
main_title_close() {

global 
$color;

echo 
'</center></b></td>
<td width=\"5\"><img src=\"theme/'
.$color[3].'/framki/frame_top_right.gif\"></td>
</tr>'
;

}

#==============================
# end: tytul okienka main'a
#==============================

#==============================
# tresc okienka main'a
#==============================

function main_text_open() {

global 
$color;

echo 
'<tr>
<td background=\"theme/'
.$color[3].'/framki/frame_left.gif\">&nbsp;</td>
<td align=\"center\" valign=\"middle\" background=\"theme/'
.$color[3].'/gfx/cell.gif\">
<table width=\"98%\" height=\"99%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td class=\"block\">'
;
}

function 
main_text_close($poster=0$date=0$comment=0$comment_num=0$print=0) {

global 
$color;


echo 
'</td>
</tr>
</table>
</td>
<td background=\"theme/'
.$color[3].'/framki/frame_right.gif\">&nbsp;</td>
</tr>
<tr>
<td height=\"4\"><img src=\"theme/'
.$color[3].'/framki/frame_foot_left.gif\" width=\"5\" height=\"9\"></td>
<td height=\"4\" background=\"theme/'
.$color[3].'/framki/frame_foot_mid.gif\"></td>
<td height=\"4\"><img src=\"theme/'
.$color[3].'/framki/frame_foot_right.gif\" width=\"5\" height=\"9\"></td>
</tr>
</table>
<img SRC=\"theme/'
.$color[3].'/gfx/separ.gif\" width=\"1\" height=\"7\">';

$print '<a href=\"'.$print.'\"><img SRC=\"theme/'.$color[3].'/gfx/print.gif\" border=\"0\" align=\"absmiddle\"></a>';

if(
$comment<>'')
$comment '<a href=\"'.$comment.'\">komentarz['.$comment_num.']</a> | ';



if(
$portal<>'0' AND $date<>0) {

}
}
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

#==============================
# tytul okienka main'a NM
#==============================

function mn_title_open() {

global 
$color;

echo 
'<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"5\"><img src=\"theme/'
.$color[3].'/framki/frame_top_left.gif\"></td>
<td valign=\"top\" background=\"theme/'
.$color[3].'/framki/frame_top_mid.gif\" class=\"title\">
<img src=\"theme/'
.$color[3].'/gfx/separ.gif\" width=\"6\" height=\"3\"><br><b><center>';

}

function 
mn_title_close() {

global 
$color;

echo 
'</center></b></td>
<td width=\"5\"><img src=\"theme/'
.$color[3].'/framki/frame_top_right.gif\"></td>
</tr>'
;

}

#==============================
# end: tytul okienka main'a
#==============================

#==============================
# tresc okienka main'a
#==============================

function mn_text_open() {

global 
$color;

echo 
'<tr>
<td background=\"theme/'
.$color[3].'/framki/frame_left.gif\">&nbsp;</td>
<td align=\"center\" valign=\"middle\" background=\"theme/'
.$color[3].'/framki/cell.gif\">
<table width=\"98%\" height=\"99%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td class=\"block\">'
;
}

function 
mn_text_close($poster=0$date=0$comment=0$comment_num=0$print=0) {

global 
$color;


echo 
'</td>
</tr>
</table>
</td>
<td background=\"theme/'
.$color[3].'/framki/frame_right.gif\">&nbsp;</td>
</tr>
<tr>
<td height=\"4\"><img src=\"theme/'
.$color[3].'/framki/frame_foot_left.gif\" width=\"5\" height=\"9\"></td>
<td height=\"4\" background=\"theme/'
.$color[3].'/framki/frame_foot_mid.gif\"></td>
<td height=\"4\"><img src=\"theme/'
.$color[3].'/framki/frame_foot_right.gif\" width=\"5\" height=\"9\"></td>
</tr>
</table>
<img SRC=\"theme/'
.$color[3].'/gfx/separ.gif\" width=\"1\" height=\"7\">';

$print '<a href=\"'.$print.'\"><img SRC=\"theme/'.$color[3].'/gfx/print.gif\" border=\"0\" align=\"absmiddle\"></a>';

if(
$comment<>'')
$comment '<a href=\"'.$comment.'\">komentarz['.$comment_num.']</a> | ';



if(
$portal<>'0' AND $date<>0) {

}
}

# podpisy do newsow

function news_theme($mod$title$icon$text$poster$textcd$date$comment$comment_num$print$send) {

global 
$color;

if(
$mod=='list') {
if(
$textcd<>''$textcd '<a href=\"'.$textcd.'\">więcej</a> | '; else $textcd '';
} else {
if(
$textcd<>''$text '<font color=\"#666666\">'.$text.'</font>
<br><br>
'
.$textcd;
}


if(
$icon<>''$text '<img src=\"'.$icon.'\" align=\"right\">'.$text;
$send '<a href=\"'.$send.'\" title=\"wyślij znajomemu\"><img SRC=\"theme/'.$color[3].'/gfx/mail.gif\" border=\"0\" align=\"absmiddle\"></a> ';
$print '<a href=\"'.$print.'\" title=\"wersja do druku\" target=\"_blank\"><img SRC=\"theme/'.$color[3].'/gfx/print.gif\" border=\"0\" align=\"absmiddle\"></a>';
$comment '<a href=\"'.$comment.'\">komentarz['.$comment_num.']</a>';



echo 
'<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"5\"><img src=\"theme/'
.$color[3].'/framki/frame_top_left.gif\"></td>
<td valign=\"top\" background=\"theme/'
.$color[3].'/framki/frame_top_mid.gif\" class=\"title\"><B>'.$title.'</b> '.$date.'
<img src=\"theme/'
.$color[3].'/gfx/separ.gif\" width=\"6\" height=\"3\"></td>
<td width=\"5\"><img src=\"theme/'
.$color[3].'/framki/frame_top_right.gif\"></td>
</tr>

<tr>
<td background=\"theme/'
.$color[3].'/framki/frame_left.gif\">&nbsp;</td>
<td align=\"center\" valign=\"middle\" background=\"theme/'
.$color[3].'/framki/cell.gif\"></a>
<table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td class=\"block\">'
;
echo 
$text;
if(
$mod=='more') unset($textcd);
if(
$mod<>'err') {
echo 
'</td>
</tr>
<tr> 
<td background=\"theme/'
.$color[3].'/gfx/poz.gif\"><img SRC=\"theme/'.$color[3].'/gfx/separ.gif\" width=\"1\" height=\"1\"></td>
</tr>
<tr> 
<td><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
<tr>
<td class=\"title\"><font SIZE=\"1\">dodał: <b>'
.$poster.'</b></td>
<td class=\"title\" align=\"right\">'
.$textcd.$comment.' | '.$print.' '.$send.'</td>
</tr>
</table></td>
</tr>'
;

}

echo 
'</td>
</tr>
</table>
</td>
<td background=\"theme/'
.$color[3].'/framki/frame_right.gif\">&nbsp;</td>
</tr>
<tr>
<td height=\"4\"><img src=\"theme/'
.$color[3].'/framki/frame_foot_left.gif\" width=\"5\" height=\"9\"></td>
<td height=\"4\" background=\"theme/'
.$color[3].'/framki/frame_foot_mid.gif\"></td>
<td height=\"4\"><img src=\"theme/'
.$color[3].'/framki/frame_foot_right.gif\" width=\"5\" height=\"9\"></td>
</tr>
</table><BR>
'
;



}



function 
art_theme($title$text$poster$date$comment$comment_num$print$more$opened) {

global 
$color;


$more '<a href=\"'.$more.'\">pokaż artykuł</a>';

if(
$icon==''$icon 'icon/news.png';
$print '<a href=\"'.$print.'\" title=\"wersja do druku\" target=\"_blank\"><img SRC=\"theme/'.$color[3].'/gfx/print.gif\" border=\"0\" align=\"absmiddle\"></a>';
$comment '<
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.