Forums: How to make Calendar monthly view Sunday to Saturday week - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to make Calendar monthly view Sunday to Saturday week

#1 User is offline   admin 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 15889
  • Joined: 03-February 03

Posted 08 March 2011 - 08:54 PM

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;

Best regards,
Sergey Kornilov
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic