Themes und Templates fuer COMBRIX und PHP-Fusion - Themes by Janilein - Diskussionsforum
Thema ansehen
Autor
Spruchkalender-Panel
1 # 2
Janilein Site Admin
Beiträge: 108
Ort: Neustadt-Glewe
Eingetreten: 13.03.10 Status: Offline
Eingetragen am 21.12.2011
Hier bekommt Ihr Support für das Spruchkalender-Panel, fragen dazu bitte ausschliesslich hier stellen.
Autor
RE: Spruchkalender-Panel
2 # 2
Janilein Site Admin
Themenstarter Beiträge: 108
Ort: Neustadt-Glewe
Eingetreten: 13.03.10 Status: Offline
Eingetragen am 21.12.2011
Version: PHP-Fusion (v.7.02.04 compatibel)
CSS:
Code 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
. topgrafik{
background- color: transparent;
background- image: url( infusions/ spruchkalender_panel/ images/ s01. png) ;
background- repeat: repeat- x;
height: 30px;
}
. monat- jahr{
background- color: #ffffff;
font- family: Arial, Verdana, "Times New Roman" ;
font- weight: normal;
font- size: 10px;
color: #000000;
padding: 5px 0 2px 0 ;
margin- right: 5px;
border- bottom: 1px dotted #aaaaaa;
text- align: right;
}
. kalenderwoche {
background: #ffffff;
text- align. left;
font- family: Arial, Verdana, "Times New Roman" ;
font- weight: normal;
font- size: 8px;
color: #000000;
padding: 2px 0 0 0 ;
}
. tag{
background- color: #ffffff;
font- family: Verdana, Arial, "Times New Roman" ;
font- weight: bolder;
font- size: 60px;
color: #a60000;
height: 65px;
text- align: center;
}
. wochentag{
font- family: Arial, Verdana, "Times New Roman" ;
font- weight: normal;
font- size: 15px;
color: #000000;
height: 40px;
text- align: center;
}
. inhalt{
background: url( infusions/ spruchkalender_panel/ images/ eselsohr. png) right bottom no- repeat #ffffff;
border- left: 1px solid #858a84;
border- right: 1px solid #858a84;
border- bottom: 1px solid #858a84;
- webkit- border- bottom- right- radius: 5px;
- webkit- border- bottom- left- radius: 5px;
- moz- border- radius- bottomright: 5px;
- moz- border- radius- bottomleft: 5px;
border- bottom- right- radius: 5px;
border- bottom- left- radius: 5px;
- webkit- box- shadow: 3px 3px 3px 0px #cccccc;
- moz- box- shadow: 3px 3px 3px 0px #cccccc;
box- shadow: 3px 3px 3px 0px #cccccc;
}
. spruch{
background: url( infusions/ spruchkalender_panel/ images/ blume. png) left bottom no- repeat;
font- family: "Buda" , Verdana, Arial, sans- serif, "Times New Roman" ;
font- weight: normal;
font- size: 15px;
color: #000000;
padding: 15px 5px 5px 5px;
}
. copy {
font- family: Arial, Verdana, "Times New Roman" ;
font- weight: normal;
font- size: 10px;
color: #000000;
text- align: left;
padding- left: 2px
}
Code:
Code 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
$random = true ; // if you want random, keep true, set to false if want sequential
$directory = INFUSIONS. "spruchkalender_panel/" ; // Webserver path to your quote files with / on end!
$quotefile = "randomquote.inc" ; // The Random Quote file
$quotecountfile = "displayquote.inc" ; // The Display Quote file (IF SEQUENTIAL!)
opentable( "" ) ;
$quotes = file ( $directory . $quotefile ) ;
$number = count ( $quotes ) ;
if ( $random ) {
$num = rand ( 0 , $number - 1 ) ;
}
else {
$num = file ( $directory . $quotecountfile ) ;
$num = $num [ 0 ] & #43;1;
if ( $num > $number - 1 ) {
$num = 0 ;
}
if ( file_exists ( $directory . $quotecountfile ) ) {
$nu = fopen ( $directory . $quotecountfile , "w" ) ;
fputs ( $nu , $num ) ;
}
else {
die ( "Cant Find $quotecountfile " ) ;
}
}
// Aufruf der sprücheecho "$quotes[$num]";
// <<< Tabelle anfang
echo '<table width="400" cellpadding="0" cellspacing="0" valign="top">
<tr>' ;
//Spirale
echo '<td align="left" style="width:20px;"><img src="' . INFUSIONS. 'spruchkalender_panel/images/s01-left.png"></td>
<td class="topgrafik"> </td>
<td align="right" style="width:20px;"><img src="' . INFUSIONS. 'spruchkalender_panel/images/s01-right.png"></td>' ;
echo '</tr>' ;
echo '<tr>' ;
echo '<td colspan="3" class="inhalt" valign="top">' ;
// Kalenderteil
echo '<table width="100%" cellpadding="0" cellspacing="0">
<tr>' ;
//links
echo '<td class="spruch" valign="top">' . $quotes [ $num ] . '</td>' ;
//rechts
setlocale ( LC_TIME, "de_DE" ) ;
echo '<td width="145" rowspan="2">
<div class="monat-jahr">' . strftime ( "%B %Y" ) . '</div>
<div class="kalenderwoche">' . strftime ( "%W." ) . ' Woche</div>
<div class="tag">' . strftime ( "%e " ) . '</div>
<div class="wochentag">' . strftime ( "%A" ) . '</div>
</td>
<tr>
<td align="left" valign="bottom" height="10" class="copy"><a href="http://themes.lewitzgalerie.de/" target="_blank">©</a></td>
</tr>' ;
echo '</tr></table>' ;
// Kalenderteil ende
echo '</td>' ;
echo '</tr></table>' ;
closetable( ) ;
Bearbeitet von Janilein am 21.12.2011
Springe zu Forum:
COMBRIX - Themes by Janilein · Orange-Web Themesupport für Fremdthemes Templates Hinweise & Ankündigungen BS-Fusion themes Tipps & Tricks Anregungen PHP-Fusion Themes by Janilein · Graystyle_one · PHPF-4You Themesupport für Fremdthemes Hinweise & Ankündigungen Tipps & Tricks Anregungen OffTopic Spruchkalender-Panel PHP-Fusion v7.xx PHP Codeschnipsel für COMBRIX
Login