Page 1 of 1

Calendar: 1 day view - pdf

Posted: Tue May 12, 2009 6:03 am
by brainbows
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

Re: Calendar: 1 day view - pdf

Posted: Thu May 14, 2009 7:49 am
by brainbows
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

Re: Calendar: 1 day view - pdf

Posted: Thu May 14, 2009 5:51 pm
by Mr.Magoo
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

Re: Calendar: 1 day view - pdf

Posted: Mon May 18, 2009 8:52 am
by Mr.Magoo
Are you ready yet to release your Calendar One-Day View?
I know I certainly could use it... B-]

Mr.Magoo

Re: Calendar: 1 day view - pdf

Posted: Mon May 18, 2009 12:29 pm
by brainbows
not yet ready because I need Merijn for that ;)

Re: Calendar: 1 day view - pdf

Posted: Tue May 19, 2009 4:38 pm
by mschering
Looks very nice indeed!

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

Re: Calendar: 1 day view - pdf

Posted: Tue May 26, 2009 9:02 am
by brainbows
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?

Re: Calendar: 1 day view - pdf

Posted: Tue May 26, 2009 1:48 pm
by mschering
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.

Re: Calendar: 1 day view - pdf

Posted: Tue May 26, 2009 3:52 pm
by brainbows
very good!

Thank you for the tip.

Re: Calendar: 1 day view - pdf

Posted: Mon Jun 29, 2009 12:47 pm
by Mr.Magoo
Yeah, just what I thought!

When will you release this?

Thanks!

Mr.Magoo

Re: Calendar: 1 day view - pdf

Posted: Tue Jun 30, 2009 11:28 am
by brainbows
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 ;)

Re: Calendar: 1 day view - pdf

Posted: Wed Aug 19, 2009 8:36 pm
by Mr.Magoo
I counted 7 weeks up to now. How many more do you want me to count?

Mr.Magoo

Re: Calendar: 1 day view - pdf

Posted: Tue Dec 14, 2010 5:25 pm
by brainbows
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