Przedszkolak
Postów: 30
Data rejestracji: 09.12.2005 12:54
|
mam pewien problem z kalendarzem
v6.00-Misc_Expanded_Calendar_v2.00.zip
stawiam strone na własnym kompie, na którym postawiłem sobie server WAMP5
(nie mam zielonego pojęcia o bazach danych ani o skryptach php i pracuję na podstawowej bazie 'test')
zainstalowałem sobie wtyczkę v6.00-Misc_Expanded_Calendar_v2.00.zip
wszystko ładnie działa do czasu.
kalendarz jest widoczny tam gdzie sobie go ustawię w panelu, ale...
gdy na niego nacisnę lub gdy chcę go edytować w PA to mi wyskakuje
\n"; echo "
".$locale['k187']." ".$locale['k183']." ".$locale['k184']." ".$locale['k188']." ".$locale['k191']."
"; closetable(); opentable($locale['k101']); echo '
'; if(iMEMBER) { switch($funk) { case 'addein': opentable($locale['k102']); echo "
".$locale['k103']."
".$locale['k104']."
".$locale['k105']."
".$locale['k106']."
".$locale['k107']."
".$locale['k108']."
".$locale['k109']."
".$locale['k110']." h min
".$locale['k111']."
".$locale['k112']." ".$locale['k131']." ".$locale['k132']."
".$locale['k113']."
".$locale['k114']." ".$locale['k131']." ".$locale['k132']."
"; closetable(); echo ''; break; case 'delein': opentable($locale['k115']); $result = dbquery("DELETE FROM ".$db_prefix."kalender WHERE id=".$id); echo "
".$locale['k116']."
"; closetable(); echo ''; break; case 'meiein': opentable($locale['k117']); $result = dbquery("SELECT * FROM ".$db_prefix."kalender WHERE user_id=".$userdata['user_id']); $anz = dbrows($result); switch($anz) { case 0: echo "
".$locale['k118']."
"; break; case 1: echo "
".$locale['k119']."
"; echo 'ˇ '. mysql_result($result, 0, "title") . ' ('. mysql_result($result, 0, "tag") . '.' . mysql_result($result, 0, "monat") . '.' . mysql_result($result, 0, "jahr") . ')'; break; default: echo "
". $locale['k120'] . " " . $anz . $locale['k121'] ."
"; for($counter=0; $counter<$anz; $counter++) { echo 'ˇ '. mysql_result($result, $counter, "title") . ' ('. mysql_result($result, $counter, "tag") . '.' . mysql_result($result, $counter, "monat") . '.' . mysql_result($result, $counter, "jahr") . ')
'; } } closetable(); echo ''; break; case 'saveein': opentable($locale['k122']); $result = dbquery("INSERT INTO ".$db_prefix."kalender VALUES('', '".$userdata['user_id']."', '$eintitel', '$einbeschreibung', '$eintag', '$einmonat', '$einjahr', '$einstunden', '$einminuten', '".date("U")."', '$einjaehrlich', '$einprivat')"); echo "
".$locale['k123']."
"; closetable(); echo ''; break; case 'saveedit': opentable($locale['k123']); $result = dbquery("UPDATE ".$db_prefix."kalender SET user_id='".$userdata['user_id']."', title='".$eintitel."', text='".$einbeschreibung."', tag='".$eintag."', monat='".$einmonat."', jahr='".$einjahr."', stunden='".$einstunden."', minuten='".$einminuten."', datestamp='".date('U')."', year='".$einjaehrlich."', privat='".$einprivat."' WHERE id=".$id); echo "
".$locale['k124']."
"; closetable(); echo ''; break; case 'showid': $result = dbquery("SELECT * FROM ".$db_prefix."kalender WHERE id=".$id); if(mysql_result($result, 0, "user_id")=="0") { $username = "SYSTEM"; $userid = "1"; } else { $userresult = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_id=".mysql_result($result, 0, "user_id")); $username = mysql_result($userresult, 0, "user_name"); $userid = mysql_result($userresult, 0, "user_id"); } echo "
"; opentable(mysql_result($result, 0, "title")); echo " " . tablebreak() . "
".$locale['k125']." ".mysql_result($result, 0, 'text')."
".$locale['k126']." ".mysql_result($result, 0, 'stunden').":".mysql_result($result, 0, 'minuten')."
".$locale['k127']." ".$username." (".date('Y-n-j G:i', mysql_result($result, 0, 'datestamp')).")
"; if($userdata['user_id']==$userid or $userdata['user_mod']>2) { echo "
".$locale['k128']." | ".$locale['k129']."
"; } closetable(); echo '
'; echo ''; break; case 'editein': opentable($locale['k130']); $result = dbquery("SELECT * FROM ".$db_prefix."kalender WHERE id=".$id); $edittitel = mysql_result($result, 0, "title"); $edittext = mysql_result($result, 0, "text"); $edittag = mysql_result($result, 0, "tag"); $editmonat = mysql_result($result, 0, "monat"); $editjahr = mysql_result($result, 0, "jahr"); $editstunden = mysql_result($result, 0, "stunden"); $editminuten = mysql_result($result, 0, "minuten"); $edityear = mysql_result($result, 0, "year"); $editprivat = mysql_result($result, 0, "privat"); echo "
"; } else { echo "".$locale['k131'].""; } if($editprivat=="N") { echo ""; } else { echo ""; } echo "
".$locale['k103']."
".$locale['k104']."
".$locale['k105']."
".$locale['k106']." ".$edittext."
".$locale['k107']."
".$locale['k108']."
".$locale['k109']."
".$locale['k110']." h ".$locale['k136']."
".$locale['k115']."
".$locale['k112']." "; if($edityear=="N") { echo "".$locale['k131']." ".$locale['k132']."
".$locale['k132']."
".$locale['k113']."
".$locale['k114']." ".$locale['k131']." ".$locale['k132']."
".$locale['k113']."
".$locale['k114']." ".$locale['k131']." ".$locale['k132']."
"; closetable(); echo ''; break; } //Kalender Navigation echo '
'; echo ''; echo ""; echo ''; echo '
".$locale['k137']." | ".$locale['k117']." | ".$locale['k133']."
<<< '.$monate[$km].' '.$kj.' >>>
'; //Einfach nur Kalendermonatsblatt anzeigen mit allen Einträgen //Bestimmen was der Erste im Monat ist (So, Mo, Di, Mi, Do, Fr, Sa) if (date("w", mktime(0,0,0,$km,1,$kj))==0) { $day = 7; } else { $day = date("w", mktime(0,0,0,$km,1,$kj)); } //Tabelle für Kalender beginnen echo ''; //Wochentage erstellen (als Überschrift) echo ''; for ($counter=1; $counter<8; $counter++) { echo ''; } echo ''; //Inhalt und Datum auslesen und im Array speichern for ($i=1; $i<(date(t, mktime(0,0,0,$km,1,$kj))+1); $i++) { $kzahl[$day] = $i; $result = dbquery("SELECT * FROM ".$db_prefix."kalender WHERE monat=".$km." && tag=".$i." ORDER BY stunden"); $anz = mysql_num_rows($result); for ($b=0; $b<$anz; $b++) { if(mysql_result($result, $b, "privat")=="N") { if(mysql_result($result, $b, "year")=="N") { if($kj == mysql_result($result, $b, "jahr")) { $kinhalt[$day] = $kinhalt[$day] . 'ˇ ' . mysql_result($result, $b, "title"). ' (' . mysql_result($result, $b, "stunden") . ':' . mysql_result($result, $b, "minuten") . ')
'; } } else { $kinhalt[$day] = $kinhalt[$day] . 'ˇ ' . mysql_result($result, $b, "title"). ' (' . mysql_result($result, $b, "stunden") . ':' . mysql_result($result, $b, "minuten") . ')
'; } } else { if(mysql_result($result, $b, "user_id")==$userdata['user_id']) { if(mysql_result($result, $b, "year")=="N") { if($kj == mysql_result($result, $b, "jahr")) { $kinhalt[$day] = $kinhalt[$day] . '* ' . mysql_result($result, $b, "title"). ' (' . mysql_result($result, $b, "stunden") . ':' . mysql_result($result, $b, "minuten") . ')
'; } } else { $kinhalt[$day] = $kinhalt[$day] . '* ' . mysql_result($result, $b, "title"). ' (' . mysql_result($result, $b, "stunden") . ':' . mysql_result($result, $b, "minuten") . ')
'; } } } } $day++; } //Kalenderzeilen erstellen for ($z=0; $z<6; $z++) { if (($kzahl[(($z*7)+1)]=="") && ($kzahl[(($z*7)+7)]=="")) { } else { echo ''; for ($x=1; $x<8; $x++) { $y = (($z * 7) + $x); if ($kzahl[$y]=="") { echo ''; } else { if($kzahl[$y] == date(d) && $km == date(n)) { echo ''; } else { echo ''; } } } echo ''; } } //Tabelle für Kalender schließen echo '
' . $wochentage[$counter] . '
' . $kzahl[$y] . '
' . $kinhalt[$y] . ' ' . $kzahl[$y] . '
' . $kinhalt[$y] . '
'; echo $locale['k113']; } else {echo $locale['k134'];} closetable(); echo "\n"; require_once BASEDIR."footer.php"; ?>
i co ja biedny mam począć z tym fantem? :( |