Re: [PHP] newbie - Is there a calendar module for date entry?
On Tue, 2009-07-21 at 22:17 -0300, Jonathan Tapicer wrote: On Tue, Jul 21, 2009 at 10:06 PM, c...@hosting4days.comc...@hosting4days.com wrote: newbie ... - is there a calendar module for date fields? - so that a small calendar pops up - then you can click on a date, to add to a field - like google or yahoo calendars has...? BTW: I saw this - but it doesn't seem to be the right thing ( more meant for Converter issues) for what I'm looking for... http://us2.php.net/manual/en/intro.calendar.php -- Thanks - RevDave Cool @ hosting4days . com [db-lists 09] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php That is javascript thing, not PHP. The Yahoo UI has a nice one, here you have an example: http://developer.yahoo.com/yui/examples/calendar/calcontainer_clean.html, and here the module reference: http://developer.yahoo.com/yui/calendar/ Jonathan That's not what the op asked for. When I do these sorts of things, I tend to use Tigra calendar. They do two versions, the free and the pro version, but tbh, the free one does everything you need. It's very easy to set up too. Thanks Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] newbie - Is there a calendar module for date entry?
Check jQuery UI On 7/22/09, c...@hosting4days.com c...@hosting4days.com wrote: newbie ... - is there a calendar module for date fields? - so that a small calendar pops up - then you can click on a date, to add to a field - like google or yahoo calendars has...? BTW: I saw this - but it doesn't seem to be the right thing ( more meant for Converter issues) for what I'm looking for... http://us2.php.net/manual/en/intro.calendar.php -- Thanks - RevDave Cool @ hosting4days . com [db-lists 09] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Sent from my mobile device Use ROT26 for best security -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] newbie - Is there a calendar module for date entry?
On Wed, Jul 22, 2009 at 3:50 AM, Ashley Sheridana...@ashleysheridan.co.uk wrote: On Tue, 2009-07-21 at 22:17 -0300, Jonathan Tapicer wrote: On Tue, Jul 21, 2009 at 10:06 PM, c...@hosting4days.comc...@hosting4days.com wrote: newbie ... - is there a calendar module for date fields? - so that a small calendar pops up - then you can click on a date, to add to a field - like google or yahoo calendars has...? BTW: I saw this - but it doesn't seem to be the right thing ( more meant for Converter issues) for what I'm looking for... http://us2.php.net/manual/en/intro.calendar.php -- Thanks - RevDave Cool @ hosting4days . com [db-lists 09] That is javascript thing, not PHP. The Yahoo UI has a nice one, here you have an example: http://developer.yahoo.com/yui/examples/calendar/calcontainer_clean.html, and here the module reference: http://developer.yahoo.com/yui/calendar/ Jonathan That's not what the op asked for. When I do these sorts of things, I tend to use Tigra calendar. They do two versions, the free and the pro version, but tbh, the free one does everything you need. It's very easy to set up too. Thanks Ash www.ashleysheridan.co.uk Um what's the difference? I've used both the YUI and Tigra's free calendar. In both, you click on a button and a small calander widget pops up allowing the user to select a date for a field on a web form. Neither is a PHP feature; both rely on JavaScript. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] newbie - Is there a calendar module for date entry?
On Wed, 2009-07-22 at 08:59 -0400, Andrew Ballard wrote: On Wed, Jul 22, 2009 at 3:50 AM, Ashley Sheridana...@ashleysheridan.co.uk wrote: On Tue, 2009-07-21 at 22:17 -0300, Jonathan Tapicer wrote: On Tue, Jul 21, 2009 at 10:06 PM, c...@hosting4days.comc...@hosting4days.com wrote: newbie ... - is there a calendar module for date fields? - so that a small calendar pops up - then you can click on a date, to add to a field - like google or yahoo calendars has...? BTW: I saw this - but it doesn't seem to be the right thing ( more meant for Converter issues) for what I'm looking for... http://us2.php.net/manual/en/intro.calendar.phpphp cannot connect to mysql -- Thanks - RevDave Cool @ hosting4days . com [db-lists 09] That is javascript thing, not PHP. The Yahoo UI has a nice one, here you have an example: http://developer.yahoo.com/yui/examples/calendar/calcontainer_clean.html, and here the module reference: http://developer.yahoo.com/yui/calendar/ Jonathan That's not what the op asked for. When I do these sorts of things, I tend to use Tigra calendar. They do two versions, the free and the pro version, but tbh, the free one does everything you need. It's very easy to set up too. Thanks Ash www.ashleysheridan.co.uk Um what's the difference? I've used both the YUI and Tigra's free calendar. In both, you click on a button and a small calander widget pops up allowing the user to select a date for a field on a web form. Neither is a PHP feature; both rely on JavaScript. Andrew Sorry, my bad, I misread the URL. Having a lot of stress here at the moment getting my laptop fixed :-/ Thanks Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] newbie - Is there a calendar module for date entry?
On Wed, Jul 22, 2009 at 9:02 AM, Ashley Sheridana...@ashleysheridan.co.uk wrote: Sorry, my bad, I misread the URL. Having a lot of stress here at the moment getting my laptop fixed :-/ Isn't that called withdrawal? ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] newbie - Is there a calendar module for date entry?
On Wed, 2009-07-22 at 09:08 -0400, Andrew Ballard wrote: On Wed, Jul 22, 2009 at 9:02 AM, Ashley Sheridana...@ashleysheridan.co.uk wrote: Sorry, my bad, I misread the URL. Having a lot of stress here at the moment getting my laptop fixed :-/ Isn't that called withdrawal? ;-) Not quite, I have my main computer, but being without the laptop is quite annoying! The only thing now is getting the ruddy thing set up back to the way I want it! Thanks Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] newbie - Is there a calendar module for date entry?
On Jul 21, 2009, at 6:17 PM, Jonathan Tapicer wrote: That is javascript thing, not PHP. The Yahoo UI has a nice one, here you have an example: http://developer.yahoo.com/yui/examples/calendar/ calcontainer_clean.html, and here the module reference: http://developer.yahoo.com/yui/calendar/ Jonathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php The Yahoo UI looks great. On Jul 22, 2009, at 12:50 AM, Ashley Sheridan wrote: When I do these sorts of things, I tend to use Tigra calendar. They do two versions, the free and the pro version, but tbh, the free one does everything you need. It's very easy to set up too. Hi Ashley - the free one seems to be just the thing. - thanks Thanks to all - They both look good - I'm checking them out now! Another newbie question: storing dates and times... I'm trying to build a simple notepad page where I can attach a date and even time field. So this Tigra or yahoo calendar will be great date picker helper. This is for the US, so I'd like the user to see normal us formatting like: date field - 7/1/2009 and separate time field like: 11:30 AM mysql can use a DATE or TIME or datetime field type. and seems to use a different standard like: -MM-DD I want to to be able to do date calcs and such - so what is the best way (types) to store these fields in mysql and display them on the page with php? I do know about some of the cool php functions like: echo date('m-d-y g:i a', strtotime($row_this['myDate'])); so do I? ... store the date and time in separate fields then manipulate the display with php functions or??? - just looking for any favorite practices -- Thanks - RevDave Cool @ hosting4days . com [db-lists 09] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] newbie - Is there a calendar module for date entry?
On Wed, 2009-07-22 at 08:41 -0700, c...@hosting4days.com wrote: On Jul 21, 2009, at 6:17 PM, Jonathan Tapicer wrote: That is javascript thing, not PHP. The Yahoo UI has a nice one, here you have an example: http://developer.yahoo.com/yui/examples/calendar/ calcontainer_clean.html, and here the module reference: http://developer.yahoo.com/yui/calendar/ Jonathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php The Yahoo UI looks great. On Jul 22, 2009, at 12:50 AM, Ashley Sheridan wrote: When I do these sorts of things, I tend to use Tigra calendar. They do two versions, the free and the pro version, but tbh, the free one does everything you need. It's very easy to set up too. Hi Ashley - the free one seems to be just the thing. - thanks Thanks to all - They both look good - I'm checking them out now! Another newbie question: storing dates and times... I'm trying to build a simple notepad page where I can attach a date and even time field. So this Tigra or yahoo calendar will be great date picker helper. This is for the US, so I'd like the user to see normal us formatting like: date field - 7/1/2009 and separate time field like: 11:30 AM mysql can use a DATE or TIME or datetime field type. and seems to use a different standard like: -MM-DD I want to to be able to do date calcs and such - so what is the best way (types) to store these fields in mysql and display them on the page with php? I do know about some of the cool php functions like: echo date('m-d-y g:i a', strtotime($row_this['myDate'])); so do I? ... store the date and time in separate fields then manipulate the display with php functions or??? - just looking for any favorite practices -- Thanks - RevDave Cool @ hosting4days . com [db-lists 09] If you want to be doing date calculations within MySQL then you should MySQL's datetime or date type. You can use the date() function of PHP to format the date for display however you wish though, which might be worth looking at? Thanks Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] newbie - Is there a calendar module for date entry?
On Wed, Jul 22, 2009 at 08:41:23AM -0700, c...@hosting4days.com wrote: snip Another newbie question: storing dates and times... I'm trying to build a simple notepad page where I can attach a date and even time field. So this Tigra or yahoo calendar will be great date picker helper. This is for the US, so I'd like the user to see normal us formatting like: date field - 7/1/2009 and separate time field like: 11:30 AM mysql can use a DATE or TIME or datetime field type. and seems to use a different standard like: -MM-DD I want to to be able to do date calcs and such - so what is the best way (types) to store these fields in mysql and display them on the page with php? The -MM-DD is an ISO date format which makes date sorting simple. I typically store dates in this format in databases (though it's usually configurable). For outside-database uses, I coded a date class which uses Julian days as its basic unit of storage. One of the issues I wanted to avoid is the upcoming Y2K-like issue with Unix timestamps. In many places, unix timestamps are stored as 32 bit integers, which will reach their capacity, I believe, in 2038. (We'll probably all have 64 bit machines by then.) Thus, the class generally doesn't consult Unix timestamps This makes duration and date calculations simple. If you like, I can email you the class privately. Store times as a separate field. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] newbie - Is there a calendar module for date entry?
Here is a simple but effective one, which has the advantage of optionally doing datetime. -- -- http://www.rainforestnet.com If anyone knows of others that do both date and datetime, I'd love to see them. Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] newbie - Is there a calendar module for date entry?
On Tue, Jul 21, 2009 at 10:06 PM, c...@hosting4days.comc...@hosting4days.com wrote: newbie ... - is there a calendar module for date fields? - so that a small calendar pops up - then you can click on a date, to add to a field - like google or yahoo calendars has...? BTW: I saw this - but it doesn't seem to be the right thing ( more meant for Converter issues) for what I'm looking for... http://us2.php.net/manual/en/intro.calendar.php -- Thanks - RevDave Cool @ hosting4days . com [db-lists 09] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php That is javascript thing, not PHP. The Yahoo UI has a nice one, here you have an example: http://developer.yahoo.com/yui/examples/calendar/calcontainer_clean.html, and here the module reference: http://developer.yahoo.com/yui/calendar/ Jonathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php