|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
laidbak + hours function
Hey laidbak,...I made some changes to your drop_down_hours function from your date select class,....lemme know what you think
PHP Code:
__________________
-- Jason Last edited by Taelo : June 20th, 2003 at 05:37 PM. |
|
#2
|
|||
|
|||
|
LOL... I haven't the slightest idea what you changed as I have never even had the need to use the time portions. I created the thing but never needed more than the date methods.
COOL... glad you decided to dip into it... I wasn't even sure if I had finished it. It has been over two years since I really took a look at it. I had to open an old project folder just to see how to use my own methods. I'm going to go try it out now.
__________________
__________________________________________________ _ Wil Moore III, MCP | Integrations Specialist | Senior Consultant Are You Listed...? | DigitallySmooth Inc. |
|
#3
|
|||
|
|||
|
Why, oh, why did you do this to me.
Now I feel compelled to enhance this thing. I've actually been meaning to recode this for a while... so maybe I'll do that. I like some of the changes you made. Good idea. I was thinking about having the elements automatically create dynamic javascript for updating the days when you change the month. The only problem I see with your changes is the "@" symbol. Did you do that or did I. Either way, I'll probably remove it because it makes the class less useful as a reuseable module. The @ symbol could easily just be typed in before the hours method is called. Before I start refactoring this class I'm going to do a bit of research and see if there are any classes like this that are already more mature. |
|
#4
|
|||
|
|||
|
BTW, if anyone wants to check it out, here is the live sample:
http://www.laidbak.net/dateselect2/ |
|
#5
|
|||
|
|||
|
no no,...I added the @,....so that I could have my own script setup like,..
Day, Month, Year @ Time Just for Looks I may set it up as a function option,....so that you can use it or not,....that would be the best way |
|
#6
|
|||
|
|||
|
Quote:
I see you like my edits ![]() |
|
#7
|
|||
|
|||
|
EDIT: Updated code above for use of @ symbol or not.
|
|
#8
|
|||
|
|||
|
Yes, your edit was a needed one.
I updated the code @ http://www.laidbak.net/dateselect2/ to have the optional "@" symbol. |
|
#9
|
|||
|
|||
|
I am working on modifying it with another function option called $post_hour.....I am going to make it so that if you post the page and it has errors which brings you back to the form,...it will retain the time you put in...
I know how to do this.....well I have the idea in my head,....just gotta put it on paper ![]() PHP Code:
|
|
#10
|
|||
|
|||
|
Great... sounds good.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > laidbak + hours function |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|