[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Phpgroupware-developers] jsCalendar popup for phpGW
From: |
Dave Hall |
Subject: |
Re: [Phpgroupware-developers] jsCalendar popup for phpGW |
Date: |
Tue, 19 Aug 2003 08:45:35 +0000 (GMT) |
Heyas
Sounds good Ralf. While travelling home I have been working on a js
class for the api. The class makes handling js alot easier.
It handles adding external links, code blocks etc into the header. It
also handles creating some of the simpler js that we use, ie popup
alerts and confirms. I plan to add more to it soon. I will be
committing it to the api soon for people to review.
I have a doc half written doc on using it too
Cheers
Dave
PS - I did this to make using HTMLArea easier :)
Ralf Becker <address@hidden> wrote:
> Hi all,
>
> I imported the jsCalendar (http://dynarch.com/mishoo/calendar.epl)
> popup
> into the API. It allows to select a date from a small popup
> calendar
> (works in IE >= 5.0, Mozilla, Opera 7, other browser can use the
> normal
> input-field).
>
> I imported the jsCalendar Version 0.9.3 unchanged into the API (for
> easier updateing later) and programmed a wrapper class to use it
> easily
> within phpGW:
>
> $jscal = CreateObject('phpgwapi.jscalendar'); // before the
> phpgw_header
> call, as it inserts the necessary javascript and css-files into the
> page-header
>
> echo $jscal->input('startdate',$starttime);
>
> or
>
> echo $jscal->input('startdate','',$year,$month,$day);
>
> There a also a function to convert the date-string back into a
> timestamp
> or an array with year/month/day.
>
> The wrapper-class loads the javascript file jscalendar-setup.php,
> which
> pulls the date-format and language out of the user prefs and loads
> the
> necessary translations from the db, no extra configuration and
> translation is needed.
>
> You can test it (after updateing your .16 install) in
> calendar/edit. I
> will implement it soon in InfoLog (eTemplate) and other apps.
>
> Ralf
>
> PS.: From the same developer is HTMLarea (richtext editor) and a
> very
> nice menu-system, which might be interesting for the idots sidebox-
> menu.--
> --------------------------------------------------------------------
> --
> Ralf Becker
> OUTDOOR UNLIMITED Training GmbH Telefon 0631 / 31657-0
> Leibnizstraße 17 Telefax 0631 / 31657-26
> D-67663 Kaiserslautern EMail address@hidden
>
>
>
> _______________________________________________
> Phpgroupware-developers mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/phpgroupware-developers
>
>
dave.hall.vcf
Description: Card for <dave.hall@mbox.com.au>