Calendar: 1 day view - pdf

Post modules, themes or any other code you want to share with the community.

Moderator: Developers

brainbows
Posts: 73
Joined: Tue Jul 01, 2008 10:29 am

Calendar: 1 day view - pdf

Postby brainbows » Tue May 12, 2009 6:03 am

I'm currently writing a 1-day calendar view that is orientated on a classical calendar-1-day-view. A very nice feature on calendar-print-views are the small month-matrices showing which date corresponds to which day of week (I mean a thing like the navigation calendar in the calendar on the top left side).

Is there anyone knowing of an already implemented function of such a calendar: say Month_View = function ($month, $year), that prints a nice TCPDF pendant?

Alejandro
brainbows
Posts: 73
Joined: Tue Jul 01, 2008 10:29 am

Re: Calendar: 1 day view - pdf

Postby brainbows » Thu May 14, 2009 7:49 am

My first version is attached below.

I would be glad to get some feedback.

I actually wrote a mini_calendar-function (right side) which wasn't that hard in the end.

Alejandro
Attachments
calendar.pdf
(25.02 KiB) Downloaded 680 times
User avatar
Mr.Magoo
Posts: 38
Joined: Thu May 14, 2009 5:45 pm

Re: Calendar: 1 day view - pdf

Postby Mr.Magoo » Thu May 14, 2009 5:51 pm

That looks simply awesome! Well done!
A great way to quick-print a busy day's schedule and head for the office.
I love it!

Mr.Magoo

:D
User avatar
Mr.Magoo
Posts: 38
Joined: Thu May 14, 2009 5:45 pm

Re: Calendar: 1 day view - pdf

Postby Mr.Magoo » Mon May 18, 2009 8:52 am

Are you ready yet to release your Calendar One-Day View?
I know I certainly could use it... B-]

Mr.Magoo
brainbows
Posts: 73
Joined: Tue Jul 01, 2008 10:29 am

Re: Calendar: 1 day view - pdf

Postby brainbows » Mon May 18, 2009 12:29 pm

not yet ready because I need Merijn for that ;)
mschering
Site Admin
Site Admin
Posts: 8154
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: Calendar: 1 day view - pdf

Postby mschering » Tue May 19, 2009 4:38 pm

Looks very nice indeed!

Can you send me the code to put in the main release?
Best regards,

Merijn Schering
Intermesh
brainbows
Posts: 73
Joined: Tue Jul 01, 2008 10:29 am

Re: Calendar: 1 day view - pdf

Postby brainbows » Tue May 26, 2009 9:02 am

I am very grateful for the answers!

Of course I would be pleased, if my 1 day-view would make it into the main-version, but I need to simplify and clarify the code first.

An unsolved issue is the language file, because as you can see I'm using another date-format than 'd/n/Y'. I couldn't implement set_locale yet and therefore created a simple $month_array = array (1=> 'Januar', 2=> 'Februrar'....). The question is, how should this be finally implemented for all languages?
mschering
Site Admin
Site Admin
Posts: 8154
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: Calendar: 1 day view - pdf

Postby mschering » Tue May 26, 2009 1:48 pm

You should just use the existing language arrays available in language/common/de.inc.php.

Also Date::format(time()) formats it in the GO setting.
Best regards,



Merijn Schering

Intermesh
brainbows
Posts: 73
Joined: Tue Jul 01, 2008 10:29 am

Re: Calendar: 1 day view - pdf

Postby brainbows » Tue May 26, 2009 3:52 pm

very good!

Thank you for the tip.
User avatar
Mr.Magoo
Posts: 38
Joined: Thu May 14, 2009 5:45 pm

Re: Calendar: 1 day view - pdf

Postby Mr.Magoo » Mon Jun 29, 2009 12:47 pm

Yeah, just what I thought!

When will you release this?

Thanks!

Mr.Magoo
"People, let's do it to them, before they do it to us!”
...Hillstreet Blues
brainbows
Posts: 73
Joined: Tue Jul 01, 2008 10:29 am

Re: Calendar: 1 day view - pdf

Postby brainbows » Tue Jun 30, 2009 11:28 am

I expanded the 1 day view to a week view also. So a little bit of testing and small changes still need to be done.

But count in weeks, not months oder years ;)
User avatar
Mr.Magoo
Posts: 38
Joined: Thu May 14, 2009 5:45 pm

Re: Calendar: 1 day view - pdf

Postby Mr.Magoo » Wed Aug 19, 2009 8:36 pm

I counted 7 weeks up to now. How many more do you want me to count?

Mr.Magoo
"People, let's do it to them, before they do it to us!”
...Hillstreet Blues
brainbows
Posts: 73
Joined: Tue Jul 01, 2008 10:29 am

Re: Calendar: 1 day view - pdf

Postby brainbows » Tue Dec 14, 2010 5:25 pm

I lost track on that one, but I'm back!

I saw that in the 3.6.x version the 1-day-pdf-output hasn't changed much, therefore I decided to work over the code over the winter-holidays.

sorry Mr. Magoo for the endless weeks...


Alejandro

Return to “Contributed development”

Who is online

Users browsing this forum: No registered users and 1 guest

cron