Hi Mark !

I just did a pmwiki-warpper using the javascript datepicker-solution of Julian Robichaux.

Well to your questions:

1) YOu could use
|| '''Date: '''||(:input text value={(ftime %Y%m%d)} $:duedate
size=10:) %navy%[-'''YYYYMMDD'''-]%% (:datepicker field=duedate format='Ymd' button=today:)

The datepicker will not replace the date field but put a icon beside it for the user to select a calendar where he/she can pick a date. The selected value will be placed into the specified field (you have to use field=pvt_duedate when you use a fox-template). I see, my description is a bit incomplete showing the samples, I skipped the (:input..:) markup in the samples (updated the cookbook text now, please have a look).
So the simplest call (within a table) would be:

||Date: ||(:input text duedate:) (:datepicker field=duedate:) ||

or within a fox-template:

||Date: ||(:input text $:duedate:) (:datepicker field=ptv_duedate:) ||

2) Yes, the style (incl. color) of all of the elements generated by the javascript could be changed configuring the css-file (or use a copy of that file, change the ccs there and define it as the "new" css-file using

# Style of datepicker-box can be changed in these files:
 $DatepickerCSS = 'datepicker-mystyles.css';

in your config-file before including the datepicker-receipe
If you need help to determine the elements just let me know.

Knut


Am 02.04.2010 19:48, schrieb Mark Bacas:
Hi Knut,

I didn't realize YOU created the datepicker recipe. Cool.

If possible, I'll work on incorporating it tonight. Is there a way to
make Mondays show up as the beginning of the week? (I just read the
recipe again and see that listed in your to do section).

I currently have this for my date field:
|| '''Date: '''||(:input text value={(ftime %Y%m%d)} $:duedate
size=10:) %navy%[-'''YYYYMMDD'''-]%%

So, would I just replace the above with something like:
(:datepicker field=Date format='Ymd' button=today:)

I want it to show "Date: " in the form, but I want it to write to my
$:duedate field.

Can I change the colors via CSS in the "datepicker-default.css?

Regards,

  - Mark


On Fri, Apr 2, 2010 at 11:28 AM, Knut Alboldt<[email protected]>  wrote:
just let me know ...

Knut

Am 02.04.2010 11:32, schrieb Mark Bacas:

Hi Knut,

Yep, I looked at that. Will probably try to incorporate. I need to
come up with a "desired features" list.

Regards,

  - Mark

On Fri, Apr 2, 2010 at 5:19 AM, Knut Alboldt<[email protected]>    wrote:

Mark,

how's about using the datepicker receipe to pick up a date ? It must be
customized to enter a different date format.

Knut

Am 31.03.2010 16:09, schrieb Mark Bacas:

Okay, figured it out.

|| '''Date: '''||(:input text value={(ftime %Y%m%d)} $:duedate
size=10:)&nbsp;%navy%[-'''YYYYMMDD'''-]%%

Regards,

  - Mark

On Wed, Mar 31, 2010 at 7:59 AM, Mark Bacas<[email protected]>      wrote:

How can I insert the current date in my form field?

|| '''Date: '''||(:input text $:duedate
size=10:)&nbsp;%blue%[-'''YYYYMMDD'''-]%%

I'd like the form to come up with the date already in the field.
Format of YYYYMMDD.

Regards,

  - Mark


_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users









_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to