This topic is locked

Events temlate

12/21/2007 4:58:33 AM
PHPRunner General questions
K
kjp author

Bonjour
Working with the events template, I try to display

all dates in "French"
The "datepicker" still with US names.

I can change in "calendar.html", but when I rebuilt the project...

Where can I modify "definitively"
And in the "events list":

How can I modify the "ListOnload event"

in the

//Search By Month

to also got "french names" month:
T B A
Kjp

K
kjp author 12/21/2007

datepicker ok...

modify

calendar.html

in the \phprunner\source\
Is there anyway to have a "local" version (corrected by us)

and to keep the US for the others languages in case of multilanguage option?
and for the

"ListOnload event"

in the

//Search By Month how to replace

" ($data["Month"]== "April 2008")

by "Avril 2008";

and so on for others months...

Kjp
$str="SELECT date_format(`FromDate`,'%M %X') as `Month`, Count(FromDate) AS `Count`, Year(`FromDate`) AS Sort, concat(Month(`FromDate`),\" \",Year(`FromDate`)) AS monthname FROM events GROUP BY date_format(`FromDate`,'%M %X'), Year(`FromDate`), concat(Month(`FromDate`),\" \",Year(`FromDate`)) ORDER BY Year(`FromDate`), concat(Month(`FromDate`),\" \",Year(`FromDate`))";
echo "
<Font face=Tahoma size=2><b>Liste par mois</b></Font>
";

$rs = db_query($str,$conn);

while($data=db_fetch_array($rs))

{

$MonthName2 = str_replace(" ","+",$data["monthname"]);
echo " <a href=events_list.php?a=search&value=1&SearchFor=" . $MonthName2 . "&SearchOption=Contains&SearchField=monthname>";
echo $data["Month"]. " (" . $data["Count"] . ")</a>
";

}