Show calendar in one row

Show calendar in one row

Postby ikaros » Tue Aug 12, 2008 2:53 am

Hi,
I would like to show one month in one row i.e. from 1-31 day of the mont in one line/row. Each month in new line/row. Can you please help me with changes?

Regards
ikaros
 
Posts: 2
Joined: Tue Aug 12, 2008 2:39 am

Re: Show calendar in one row

Postby chris » Tue Aug 12, 2008 10:22 am

Hi there,

In the main php file (index.php) in the source code) look for the line:
Code: Select all
if (($j % 3) == 0)$cal_months.="</tr><tr>";

and simply replace with this:
Code: Select all
$cal_months.="</tr><tr>";

That will force a new line after every calendar is drawn.

If you want all the the actual days of each month in a single row, open the file "includes/functions.inc.php" and within the function draw_cal() remove all the lines that make any referenece to a new table row eg:
Code: Select all
if($week_day == 0){
   $the_cal .= "</tr><tr>";
   }

I hope that helps :)

Chris
User avatar
chris
Site Admin
 
Posts: 1088
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain

Re: Show calendar in one row

Postby ikaros » Tue Aug 12, 2008 10:56 am

Thanks, now it works fine.

Another thing. Now the names of the days are shown only for first seven days. How to show names of the days for all 31 days. Mon-Sun... from 1-31 days.
And Can I change the color of the label for sunday in red?

Thanks
ikaros
 
Posts: 2
Joined: Tue Aug 12, 2008 2:39 am

Re: Show calendar in one row

Postby RealIntel » Wed Mar 16, 2011 7:00 pm

Hi Chris,

Are these changes correct for the current version. I did not find the code

if (($j % 3) == 0)$cal_months.="</tr><tr>";

in the index.php file as suggested

I also only found one reference to....

if($week_day == 0){
$the_cal .= "</tr><tr>";
}

But no effect deleting.....

and can you provide guidance for....

Another thing. Now the names of the days are shown only for first seven days. How to show names of the days for all 31 days. Mon-Sun... from 1-31 days.
And Can I change the color of the label for sunday in red?
RealIntel
 
Posts: 1
Joined: Wed Mar 16, 2011 6:44 pm

Re: Show calendar in one row

Postby chris » Wed Mar 16, 2011 7:45 pm

Hi,
No, this is a very old thread from 2008 for version 2 of the calendar which is no longer supported.

Chris
User avatar
chris
Site Admin
 
Posts: 1088
Joined: Mon Dec 17, 2007 7:42 pm
Location: Málaga, Spain


Return to General

Who is online

Users browsing this forum: No registered users and 2 guests

cron