PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 30th, 2012, 07:20 AM
Triple_Nothing Triple_Nothing is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2009
Posts: 295 Triple_Nothing User rank is Corporal (100 - 500 Reputation Level)Triple_Nothing User rank is Corporal (100 - 500 Reputation Level)Triple_Nothing User rank is Corporal (100 - 500 Reputation Level)Triple_Nothing User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 8 h 35 m 30 sec
Reputation Power: 5
Month drop-down, multi-year?

Howdy y'all. I guess I'm just looking for some thought/ideas on how to go about this. When I originally wrote this script, I have the month drop-down to pick what bills to see. I wasn't thinking of how to manage things come a new year.

Two ideas I have is make a second drop-down hold the year, or allow the single drop-down to hold items similar to Month - Year. I don't intend on holding a long history, and will probably edit the script to expire/remove items after 1 years time.

Just lookin' for peoples thoughts/input on what I should end up doing. Thanks in advance.

Page: http://www.hellzoneinc.com/bills.php
Script: http://www.hellzoneinc.com/bills.txt

Reply With Quote
  #2  
Old December 30th, 2012, 08:28 AM
requinix's Avatar
requinix requinix is offline
Still alive
Click here for more information.
 
Join Date: Mar 2007
Location: Washington, USA
Posts: 12,690 requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)  Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 5 Months 1 Week 4 Days 3 h 43 m 28 sec
Reputation Power: 8969
Send a message via AIM to requinix Send a message via MSN to requinix Send a message via Yahoo to requinix Send a message via Google Talk to requinix
Both sound reasonable, and as for which it depends on how you're using the dropdown(s). Still not quite sure about that.

If the list is chronological then "Month - Year" would make sense: down the list is going one way in time, up the list is going the other way. It's putting two pieces of information in one field, generally a no-no, but I think it's fine for this.

If the list is like a filter then one for year and one for month makes more sense: you're not so much scrolling through time as it is you're picking a specific month to look at. Makes the programming easier too.

Reply With Quote
  #3  
Old December 30th, 2012, 01:08 PM
Triple_Nothing Triple_Nothing is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2009
Posts: 295 Triple_Nothing User rank is Corporal (100 - 500 Reputation Level)Triple_Nothing User rank is Corporal (100 - 500 Reputation Level)Triple_Nothing User rank is Corporal (100 - 500 Reputation Level)Triple_Nothing User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 8 h 35 m 30 sec
Reputation Power: 5
Mostly referenced to view current months bills, but I figured since I'd be storing via a database, then might as well offer history browsing.
I'm thinking, since most bills are exactly the same every month, to create an if/then that will execute first time page is viewed each month to remove all bills from that month the previous year, and create the current months initials bills. This way nothing should overlap, and upon page arrival, the user is always arriving at current month.

One other thing I'd have to figure out would be changing it so January comes AFTER December on the drop-down list so months are accurate in that manner. It won't matter ASC/DESC.

Example: (Current date being August 20, 2013)
September - 2012
October - 2012
November - 2012
December - 2012
January - 2013
February - 2013
March - 2013
April - 2013
May - 2013
June - 2013
July - 2013
August - 2013

I'm hoping it would just be a simple edit in that loop creating the drop-down options. *crosses fingers* ^_^

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > Month drop-down, multi-year?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap