This topic is locked
[SOLVED]

 date picker

6/10/2011 7:14:05 PM
PHPRunner General questions
J
jim9 author

How do I change the date picker to show sunday as first day?

I have tryed the following, and it doesn't work.

The below is from another forum post:
To change the week format open "List page: Before display" event of calmonthly view.
Find the following code snippet:

$xt->assign("row00sdname1",$ndays[1]);

$xt->assign("row00sdname2",$ndays[2]);

$xt->assign("row00sdname3",$ndays[3]);

$xt->assign("row00sdname4",$ndays[4]);

$xt->assign("row00sdname5",$ndays[5]);

$xt->assign("row00sdname6",$ndays[6]);

$xt->assign("row00sdname7",$ndays[7]);
Replace it with this one:

$xt->assign("row00sdname1",$ndays[7]);

$xt->assign("row00sdname2",$ndays[1]);

$xt->assign("row00sdname3",$ndays[2]);

$xt->assign("row00sdname4",$ndays[3]);

$xt->assign("row00sdname5",$ndays[4]);

$xt->assign("row00sdname6",$ndays[5]);

$xt->assign("row00sdname7",$ndays[6]);
Also find and delete the following line of code:

$wd=$wd-1;
Where it says Find the following code snippet:, I cannot find that

anywhere.

Any help is appreciated.

Sergey Kornilov admin 6/10/2011

Check line 74 in Calmonthly List page BEforeDisplay event.
It should say

$wd=$wd-1;
J
jim9 author 6/10/2011

I have software that searchs the whole folder for words or pharses. $wd=$wd-1 wasn't found.

Also, where is Calmonthly List page BEforeDisplay event found? I cannot find such a place in the files or on the events page.



Check line 74 in Calmonthly List page BEforeDisplay event.
It should say

$wd=$wd-1;


J
jim9 author 6/10/2011

I found answer on yahoo yui controls site:

Open this in notepad: Include/runnerjs/runnercontrols.js

Search for this line: Then look for START_WEEKDAY: 1,

Change to START_WEEKDAY: 0,

That worked.

Sergey Kornilov admin 6/10/2011

I see what you saying now. That advice applies to the Calendar template while you needed to modify Datepicker behavior.