This topic is locked

How to make Calendar monthly view Sunday to Saturday week

3/8/2011 3:54:39 PM
Calendar Template tips and tricks
admin

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;