Von einigen Usern wurde die Frage nach einer Änderung der Darstellung des Kalenders
von Sonntag bis Montag auf das deutsche Format Montag bis Sonntag gestellt.
Ich möchte Euch dazu folgenden Vorschlag unterbreiten, bei mir funktioniert es im localhost einwandfrei.
Probiert es einfach mal aus. Ein Vorschlag zu Änderungen in dem Block Kalender kommt die nächsten Tage.
Die Zeilennummern beziehen sich auf die entsprechenden Dateien aus dem Update zum phpNuke 5.5 VKP von
maax-design.
Änderungsvorschläge für das Modul Kalender von maax-design phpNuke 5.5 VKP Update
1. In der Datei config.php
##Änderung bzw. Einfügung brauchen nur vorgenommen werden, wenn der Sonntag rot angezeigt werden soll.
Ändern in
$selecteddaycolor = "#FFFF00"; // (gelb) Used in the month and year view
Einfügen
$sonntagbgcolor="#FF0000"; //(rot) Hervorhebung Sonntag
2. In der Datei index.php
In der Funktion "function buildYear($Date)"
## hinzufügen - nur wenn Sonntag rot gekennzeichnet werden soll
Unter Global die Variable $sonntagbgcolor
## Ende hinzufügen bei rot
## ändern von:
Zeile
293 /**** Previous Greyed month days */
294 print("\n<TR>");
295 if ($Day_of_First_Week != 0)
296 print("\n\t<TD colspan=$Day_of_First_Week><font size=1 color=ffffff>.</TD>");
297 $day_of_week = $Day_of_First_Week + 1;
298
299 /**** Build Current Month */
300 for ($day = 1 ; $day <= $Last_Day ; $day++) {
301 if ($day_of_week == 1) {
302 print("\n<TR>");
303 }
304 if (($day == $Today_d) && ($Date_Array[0] == $Today_m) && ($Date_Array[2] == $Today_y))
305 print("\n\t<TD width=10 align=center bgcolor=$selecteddaycolor><FONT color=$yeartextcolor SIZE=1><a href=\"modules.php?op=modload&name=$module_name&file=index&Date=$Date_Array[0]/$day/$Date_Array[2]&type=day\">$day</a></TD>");
306 else
307 print("\n\t<TD width=10 align=center bgcolor=$yearbgcolor><FONT color=$yeartextcolor SIZE=1><a href=\"modules.php?op=modload&name=$module_name&file=index&Date=$Date_Array[0]/$day/$Date_Array[2]&type=day\">$day</a></TD>");
308 if ($day_of_week == 7) {
309 $day_of_week = 0;
310 print("\n</TR>");
311 }
312 $day_of_week += 1;
313 }
## In die neue Form:
/**** Previous Greyed month days */
print("\n<TR>");
if ($Day_of_First_Week == 0)
print("\n\t<TD colspan=6><font size=1 color=ffffff>.</TD>");
if ($Day_of_First_Week == 2)
print("\n\t<TD><font size=1 color=ffffff>.</TD>");
if ($Day_of_First_Week > 2) {
$tmp1 = $Day_of_First_Week - 1;
print("\n\t<TD colspan=$tmp1><font size=1 color=ffffff>.</TD>");
}
$day_of_week = $Day_of_First_Week;
/**** Build Current Month */
for ($day = 1 ; $day <= $Last_Day ; $day++) {
if ($day_of_week == 1) {
print("\n<TR>");
}
if (($day == $Today_d) && ($Date_Array[0] == $Today_m) && ($Date_Array[2] == $Today_y))
print("\n\t<TD width=10 align=center bgcolor=$selecteddaycolor><FONT color=$yeartextcolor SIZE=1><a href=\"modules.php?op=modload&name=$module_name&file=index&Date=$Date_Array[0]/$day/$Date_Array[2]&type=day\">$day</a></TD>");
else
## nur wenn Sonntag rot gekennzeichnet werden soll, sonst weglassen
if (($day_of_week == 7) || ($day_of_week == 0))
print("\n\t<TD width=10 align=center bgcolor=$sonntagbgcolor><FONT color=$yeartextcolor SIZE=1><a href=\"modules.php?op=modload&name=$module_name&file=index&Date=$Date_Array[0]/$day/$Date_Array[2]&type=day\">$day</a></TD>");
else
## Ende der Kennzeichnung für Sonntag
print("\n\t<TD width=10 align=center bgcolor=$yearbgcolor><FONT color=$yeartextcolor SIZE=1><a href=\"modules.php?op=modload&name=$module_name&file=index&Date=$Date_Array[0]/$day/$Date_Array[2]&type=day\">$day</a></TD>");
if ($day_of_week == 7) {
$day_of_week = 0;
print("\n</TR>");
}
$day_of_week += 1;
}
In der Funktion "function buildMonth($Date)"
## hinzufügen - nur wenn Sonntag rot gekennzeichnet werden soll
Unter Global die Variable $sonntagbgcolor
## Ende hinzufügen bei rot
ändern von:
Zeile
509 /**** Build Month */
510 print("\n<CENTER>\n<TABLE border=$monthtableborder cellspacing=$monthtablecellspacing cellpadding=$monthtablecellpadding width=100% bgcolor=$monthbgcolor>");
511 $day_of_week = 1;
512
513 echo "<TR bgcolor=$trimbgcolor>
514 <TH width=15%><FONT SIZE=2 color=$trimtextcolor>"._CALFIRSTDAY."</TH>
515 <TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALSECONDDAY."</TH>
516 <TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALTHIRDDAY."</TH>
517 <TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALFOURTHDAY."</TH>
518 <TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALFIFTHDAY."</TH>
519 <TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALSIXTHDAY."</TH>
520 <TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALSEVENTHDAY."</TH>
521 </TR>";
522
523 /**** Previous Greyed month days */
524 While ($day_of_week < ($Day_of_First_Week + 1)) {
525 if ($day_of_week == 1) {
526 print("\n<TR>");
527 }
528 $Tmp_Date = mktime("", "", "", $Date_Array[0], 1 - (($Day_of_First_Week + 1) - $day_of_week), $Date_Array[2]);
529 $Tmp_Day = Date("d",$Tmp_Date);
530 print("<TD bgcolor=$monthshadedbgcolor align=center valign=top><FONT SIZE=2 color=$monthshadedtextcolor>$Tmp_Day</TD>");
531 $day_of_week += 1;
532 }
533 $usedcount = 0;
534 $cellcount = 0;
In die neue Form:
/**** Build Month */
print("\n<CENTER>\n<TABLE border=$monthtableborder cellspacing=$monthtablecellspacing cellpadding=$monthtablecellpadding width=100% bgcolor=$monthbgcolor>");
$day_of_week = 1;
echo "<TR bgcolor=$trimbgcolor>
<TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALSECONDDAY."</TH>
<TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALTHIRDDAY."</TH>
<TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALFOURTHDAY."</TH>
<TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALFIFTHDAY."</TH>
<TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALSIXTHDAY."</TH>
<TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALSEVENTHDAY."</TH>
## nachfolgendes bgcolor = $sonntagbgcolor nur bei gewünschter roter Kennzeichnung des Sonntages einfügen
## der Rest der Zeile muß erhalten bleiben
<TH width=15% bgcolor = $sonntagbgcolor"><FONT SIZE=2 color=$trimtextcolor>"._CALFIRSTDAY."</TH>
</TR>";
/**** Previous Greyed month days */
While ($day_of_week < ($Day_of_First_Week)) {
if ($day_of_week == 1) {
print("\n<TR>");
}
$Tmp_Date = mktime("", "", "", $Date_Array[0], 1 - (($Day_of_First_Week + 1) - $day_of_week), $Date_Array[2]);
$Tmp_Day = Date("d",$Tmp_Date);
print("<TD bgcolor=$monthshadedbgcolor align=center valign=top><FONT SIZE=2 color=$monthshadedtextcolor>$Tmp_Day</TD>");
$day_of_week += 1;
}
$usedcount = 0;
$cellcount = 0;
In der Funktion "function buildMonthforNetscape($Date)"
## hinzufügen - nur wenn Sonntag rot gekennzeichnet werden soll
Unter Global die Variable $sonntagbgcolor
## Ende hinzufügen bei rot
ändern von:
Zeile
762 /**** Build Month */
763 print("\n<CENTER>\n<TABLE border=$monthtableborder cellspacing=$monthtablecellspacing cellpadding=$monthtablecellpadding width=100% bgcolor=$monthbgcolor>");
764 $day_of_week = 1;
765
766 echo "<TR bgcolor=$trimbgcolor>
767 <TH width=15%><FONT SIZE=2 color=$trimtextcolor>"._CALFIRSTDAY."</TH>
768 <TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALSECONDDAY."</TH>
769 <TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALTHIRDDAY."</TH>
770 <TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALFOURTHDAY."</TH>
771 <TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALFIFTHDAY."</TH>
772 <TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALSIXTHDAY."</TH>
773 <TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALSEVENTHDAY."</TH>
774 </TR>";
775
776 /**** Previous Greyed month days */
777 While ($day_of_week < ($Day_of_First_Week + 1)) {
778 if ($day_of_week == 1) {
779 print("\n<TR>");
780 }
781 $Tmp_Date = mktime("", "", "", $Date_Array[0], 1 - (($Day_of_First_Week + 1) - $day_of_week), $Date_Array[2]);
782 $Tmp_Day = Date("d",$Tmp_Date);
783 print("<TD bgcolor=$monthshadedbgcolor align=center valign=top><FONT SIZE=2 color=$monthshadedtextcolor>$Tmp_Day</TD>");
784 $day_of_week += 1;
785 }
In die neue Form:
/**** Build Month */
print("\n<CENTER>\n<TABLE border=$monthtableborder cellspacing=$monthtablecellspacing cellpadding=$monthtablecellpadding width=100% bgcolor=$monthbgcolor>");
$day_of_week = 1;
echo "<TR bgcolor=$trimbgcolor>
<TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALSECONDDAY."</TH>
<TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALTHIRDDAY."</TH>
<TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALFOURTHDAY."</TH>
<TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALFIFTHDAY."</TH>
<TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALSIXTHDAY."</TH>
<TH width=15%><FONT color=$trimtextcolor SIZE=2>"._CALSEVENTHDAY."</TH>
## nachfolgendes bgcolor = $sonntagbgcolor nur bei gewünschter roter Kennzeichnung des Sonntages einfügen
## der Rest der Zeile muß erhalten bleiben
<TH width=15% bgcolor = $sonntagbgcolor><FONT SIZE=2 color=$trimtextcolor>"._CALFIRSTDAY."</TH>
</TR>";
/**** Previous Greyed month days */
While ($day_of_week < ($Day_of_First_Week)) {
if ($day_of_week == 1) {
print("\n<TR>");
}
$Tmp_Date = mktime("", "", "", $Date_Array[0], 1 - (($Day_of_First_Week + 1) - $day_of_week), $Date_Array[2]);
$Tmp_Day = Date("d",$Tmp_Date);
print("<TD bgcolor=$monthshadedbgcolor align=center valign=top><FONT SIZE=2 color=$monthshadedtextcolor>$Tmp_Day</TD>");
$day_of_week += 1;
}
##########################################################################################################################
Noch eine Bitte:
Ich suche einen Job als Programmierer. Vielleicht kann mir jemand Hinweise geben, wo zur Zeit Bedarf besteht.
Ich habe eine Umschulung als Programmierer abgeschlossen. Aber auf Grund fehlender Berufspraxis
finde ich keine Anstellung. Außer Web-Programmierung verfüge ich auch über Kenntnisse in Delphi, C/C++ sowie Microsoft SQL.
Möglicher Einsatz in ganz Deutschland.
Meine e-Mail-Adresse: MWollmannNY@aol.com
Vielen
HI
Thx dir für den FIX wir werden mal testen.
Zu deinem Job Problem : wir horchen uns mal um , man kennt den einen oder anderen, aber ohne Praxis wird das erfahrungstechnisch nicht einfach !