co tedy použít na úpravu kalendáře
http://www.etomite.net/browsesnippets.h ... category=4
aby fungoval v Etomite pod utf-8 v češtině ?
nějak jsem z toho zmatený ...
Moderátor: Moderators






Kód: Vybrať všetko
setlocale(LC_ALL, 'sk_SK.utf-8', 'slovak');
$datum = strftime("%A").date(", <strong>j. ").strftime("%B").date(" Y</strong> (H:i)");
Kód: Vybrať všetko
setlocale(LC_ALL, 'cs_CZ.utf-8', 'czech');
$datum = strftime("%A").date(", <strong>j. ").strftime("%B").date(" Y</strong> (H:i)");

Kód: Vybrať všetko
# Calendar - Calendar for Etomite 0.6 - 2005-01-17
# Created By: Ralph A. Dahlgren - Email: rad14701@yahoo.com
# Usage: Simply customize the Variables & style settings below
# Use [!Calendar!] to call this snippet
# START ---- Variables which can optionally be customized ----- #
# Style Element names are pretty much self-explanatory
#
setlocale(LC_ALL, 'cs_CZ.utf-8', 'czech');
$l_day = '%a';
$output_style = "background-color:#F0F8FF; border:1px solid black; width:100%";
$month_style = "background-color:#FFDDBB; text-align:center; font-weight:bold";
$day_heading_style = "background-color:#BBF0F0; text-align:center; width:14%";
$day_style = "text-align:right; border:1px solid #F0F8FF";
$today_style = "color:red; background-color:#EAEAEA; text-align:right;";
$blogday_style = "color:green; background-color:#EAEAEA; text-align:right; font-weight:bold; border:1px solid red";
$empty_day_style = "";
#
# END ---- Variables which can optionally be customized ----- #
# ----- You should not need to modify code below this point ----- #
#
# Calculate required time & date related variables
#
$time = time(); # Grab the current timestamp
$Ym=$_GET['Ym']; # Else extract $Ym variable if sent
if($Ym != "") { # If $Ym exists, get $year and $month
$year=substr($Ym, 0, 4); # Get year part
$month=substr($Ym, 4, 2); # Get month part
}
else { # If $Ym is empty, assign variables from current date
$year=date('Y', $time);
$month=date('m', $time);
$today=date('j', $time);
}
if(($month == date('m', $time)) && ($year == date('Y', $time))) {
$today=date('j', $time); # If this month and this year, assign $today
}
$first_of_month = mktime(0,0,0,$month,1,$year); # Always start with current month
$lastmonth = strftime("%Y%m%d",mktime(0,0,0,$month-1,1,$year)); # Previous month
$nextmonth = strftime("%Y%m%d",mktime(0,0,0,$month+1,1,$year)); # Next month
# Generate all the day headings according to the current locale
$day_headings = array();
for($n=0,$t=3*86400; $n<7; $n++,$t+=86400) # January 4, 1970 was a Sunday
$day_headings[$n] = gmstrftime($l_day,$t); # %A means full textual day name
$day_headings = array_map('ucfirst',$day_headings); # Some locales don't capitalize day names
list($month, $year, $month_name, $weekday) = explode(',',strftime('%m,%Y,%B,%w',$first_of_month));
# $weekday %= 7; # strftime gives Monday as 1, Sunday as 7. Adjust so Sunday is 0
$month_name = ucfirst($month_name); # Some locales don't capitalize month names
$maxdays = date('t', $first_of_month); # Number of days in the month
$day = 1; # starting day of the month
# Generate Calendar
$output = "<table style='$output_style'>\n"; # Begin actual calendar generation
$output .= "<tr><th colspan='1' style='$month_style'>\n"; # Create previous month link
$output .= "<a href='[~".$etomite->documentObject[id]."~]&Ym=$lastmonth'>&laq"."uo;</a>\n"; # Use << for link
$output .= "</th>\n";
$output .= "<th colspan='5' style='$month_style'>\n"; # Display calendar month and year
$output .= "$month_name, $year";
$output .= "</th>\n";
$output .= "<th colspan='1' style='$month_style'>\n"; # Create next month link
$output .= "<a href='[~".$etomite->documentObject[id]."~]&Ym=$nextmonth'>&raq"."uo;</a>\n"; # Use >> for link
$output .= "</th></tr>\n";
$output .= "<tr>\n"; # Display weekday heading abbreviations
# if day_heading_length is 4, the full name of the day will be printed
# otherwise, just the first n characters
foreach($day_headings as $day_heading){
$output .= "<th style='$day_heading_style'>$day_heading</th>\n";
}
$output .= "</tr>\n<tr>\n"; # Close weekday heading and prepare to print days
# Take care of the first "empty" days of the month
if($weekday > 0) $output .= "<td style='$empty_day_style' colspan='$weekday'> </td>\n";
# Print all days of the month
while($day <= $maxdays){
if($weekday == 7){ # Start a new week - end table row and start a new one
$output .= "</tr>\n<tr>\n";
$weekday = 0;
}
# Create the $Ymd variable to compare against the list of days with content
$Ymd = $year.$month.str_pad($day,2,"0", STR_PAD_LEFT);
$output .="<td><div style='$day_style'>\n"; # Use style formatting of days
# If the day is today, give it special style formatting
if ($day==$today) $output .= "<b style='$today_style'>$day</b>\n";
else $output .= "$day"; # Otherwise just display the day
# Close up the style formatting of days
$output .="</div></td>\n";
$day++; $weekday++; # Goto the next day and weekday
}
# Take care of the remaining "empty" days of the month
if($weekday != 7) $output .= "<td style='$empty_day_style' colspan='".(7-$weekday)."'> </td>\n";
# Close the calendar and finish
$output .="</tr>\n</table>\n";
return $output;

Kód: Vybrať všetko
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="[*contentType*]; charset=UTF-8" />
<meta http-equiv="content-language" content="en-au" />
<meta name="generator" content="Etomite Content Management System 1.1 (Prelude)" />
<title>aimon - Aimon homepage - Aimon - domovská stránka</title>
<meta name="description" content="Aimon - domovská stránka" />
<meta name="abstract" content="aimon - Aimon - domovská stránka" />
<meta name="author" content="Insite Architects Pty Ltd" />
<meta name="copyright" content="Copyright (c) 2006-2009 by Insite Architects Pty Ltd. All rights reserved." />
<meta name="robots" content="noindex, nofollow" />
<meta name="googlebot" content="noindex, nofollow, noarchive, nosnippet" />
<meta http-equiv="last-modified" content="Fri, 20 Mar 2009 14:51:26 +0100" />
<meta name="distribution" content="global" />
<meta name="rating" content="general" />
<meta name="no-email-collection" content="http://puschpull.org/aimon/legal-notices.htm" />
<meta name="gmapkey" content="ABQIAAAATHlEPcEjlaOVBbl3hAih5xSCipRF7c95Y7oXHbDT8JTwO0PaDRTU9loAjaq4zJ2Jof4w8k8ZFAcRVg" />
<meta name="DC.format" content="[*contentType*]; charset=UTF-8" />
<meta name="DC.language" content="en-au" />
<meta name="DC.title" content="aimon - Aimon homepage - Aimon - domovská stránka" />
<meta name="DC.description" content="Aimon - domovská stránka" />
<meta name="DC.title.alternative" content="aimon - Aimon - domovská stránka" />
<meta name="DC.publisher" content="Insite Architects Pty Ltd" />
<meta name="DC.creator" content="Insite Architects Pty Ltd" />
<meta name="DC.rights" content="Copyright (c) 2006-2009 by Insite Architects Pty Ltd. All rights reserved." />
<meta name="DC.date.created" content="2009-03-20" />
<meta name="DC.date.modified" content="2009-03-20" />
<meta name="DC.identifier" content="http://puschpull.org/aimon/aimon-homepage" />
<meta name="ICBM" content="-37.76991667, 145.04075" />
<meta name="geo.position" content="-37.76991667;145.04075" />
<meta name="geo.region" content="au-vi" />
<meta name="geo.placename" content="Ivanhoe, Victoria, Australia" />
<link rel="meta" href="http://puschpull.org/aimon/labels.rdf"
type="application/rdf+xml" title="ICRA labels" />
<meta http-equiv="PICS-Label" content='(PICS-1.1
"http://www.icra.org/pics/vocabularyv03/" l gen true
for "http://puschpull.org/aimon/" r (n 0 s 0 v 0 l 0 oa 0 ob 0 oc 0 od 0 oe 0 of 0 og 0 oh 0 c 0)
gen true for "http://puschpull.org/aimon/" r (n 0 s 0 v 0 l 0 oa 0 ob 0 oc 0 od 0 oe 0 of 0 og 0 oh 0 c 0)
"http://www.classify.org/safesurf/" L gen true
for "http://puschpull.org/aimon/" r (SS~~000 1)
)' />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="./templates/aimon/main.css" />
<link rel="shortcut icon" href="./favicon.ico" />
</head>
<body>
Kód: Vybrať všetko
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="content-language" content="en" />
<meta name="generator" content="Etomite 1 (Prelude)" />
<title>Groonův web - Groon - Rychle a zběsile</title>
<meta name="description" content="Stránky o poÄÃtaÄových hrách" />
<meta name="abstract" content="Groonův web - Rychle a zběsile" />
<meta name="author" content="Groonův web" />
<meta name="copyright" content="Copyright © 2009 by Groonův web. All rights reserved." />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="last-modified" content="Sat, 21 Mar 2009 17:44:02 +0100" />
<meta name="distribution" content="global" />
<meta name="rating" content="general" />
<meta name="DC.format" content="text/html; charset=iso-8859-1" />
<meta name="DC.language" content="en" />
<meta name="DC.title" content="Groonův web - Groon - Rychle a zběsile" />
<meta name="DC.description" content="Stránky o poÄÃtaÄových hrách" />
<meta name="DC.title.alternative" content="Groonův web - Rychle a zběsile" />
<meta name="DC.publisher" content="Groonův web" />
<meta name="DC.creator" content="Groonův web" />
<meta name="DC.rights" content="Copyright © 2009 by Groonův web. All rights reserved." />
<meta name="DC.date.created" content="2009-03-21" />
<meta name="DC.date.modified" content="2009-03-21" />
<meta name="DC.identifier" content="http://localhost/etomite_groon/groon-homepage" />
<link rel="stylesheet" type="text/css" href="./templates/groon_1/main.css" />
<link rel="shortcut icon" href="./favicon.ico" />
</head>
<body>
Kód: Vybrať všetko
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="[*contentType*]; charset=UTF-8" />
<meta http-equiv="content-language" content="en-au" />
<meta name="generator" content="Etomite Content Management System 1.1 (Prelude)" />
<title>aimon - Aimon homepage - Aimon - domovská stránka</title>
<meta name="description" content="Aimon - domovská stránka" />
<meta name="abstract" content="aimon - Aimon - domovská stránka" />
<meta name="author" content="Insite Architects Pty Ltd" />
<meta name="copyright" content="Copyright (c) 2006-2009 by Insite Architects Pty Ltd. All rights reserved." />
<meta name="robots" content="noindex, nofollow" />
<meta name="googlebot" content="noindex, nofollow, noarchive, nosnippet" />
<meta http-equiv="last-modified" content="Sat, 21 Mar 2009 16:16:10 +0100" />
<meta name="distribution" content="global" />
<meta name="rating" content="general" />
<meta name="no-email-collection" content="http://localhost/etomite/legal-notices.htm" />
<meta name="gmapkey" content="ABQIAAAATHlEPcEjlaOVBbl3hAih5xSCipRF7c95Y7oXHbDT8JTwO0PaDRTU9loAjaq4zJ2Jof4w8k8ZFAcRVg" />
<meta name="DC.format" content="[*contentType*]; charset=UTF-8" />
<meta name="DC.language" content="en-au" />
<meta name="DC.title" content="aimon - Aimon homepage - Aimon - domovská stránka" />
<meta name="DC.description" content="Aimon - domovská stránka" />
<meta name="DC.title.alternative" content="aimon - Aimon - domovská stránka" />
<meta name="DC.publisher" content="Insite Architects Pty Ltd" />
<meta name="DC.creator" content="Insite Architects Pty Ltd" />
<meta name="DC.rights" content="Copyright (c) 2006-2009 by Insite Architects Pty Ltd. All rights reserved." />
<meta name="DC.date.created" content="2009-03-20" />
<meta name="DC.date.modified" content="2009-03-21" />
<meta name="DC.identifier" content="http://localhost/etomite/aimon-homepage" />
<meta name="ICBM" content="-37.76991667, 145.04075" />
<meta name="geo.position" content="-37.76991667;145.04075" />
<meta name="geo.region" content="au-vi" />
<meta name="geo.placename" content="Ivanhoe, Victoria, Australia" />
<link rel="meta" href="http://localhost/etomite/labels.rdf"
type="application/rdf+xml" title="ICRA labels" />
<meta http-equiv="PICS-Label" content='(PICS-1.1
"http://www.icra.org/pics/vocabularyv03/" l gen true
for "http://localhost/etomite/" r (n 0 s 0 v 0 l 0 oa 0 ob 0 oc 0 od 0 oe 0 of 0 og 0 oh 0 c 0)
gen true for "http://localhost/etomite/" r (n 0 s 0 v 0 l 0 oa 0 ob 0 oc 0 od 0 oe 0 of 0 og 0 oh 0 c 0)
"http://www.classify.org/safesurf/" L gen true
for "http://localhost/etomite/" r (SS~~000 1)
)' />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="./templates/aimon/main.css" />
<link rel="shortcut icon" href="./favicon.ico" />
</head>
<body>

Kód: Vybrať všetko
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />