- Joined
- 31 Dec 2003
- Posts
- 5,172
- Location
- Barrow-In-Furness
I'm creating a timesheet system for tracking man hours, but i'm unsure on how I can display what hours have been logged how I want to.
I would like users to be able to see the number of hours they have booked like this...
----- Mon Tue Wed Thu Fri Sat Sun
Task1 4 --- 3 --- 6 --- 4
Task2 1 --- 2 --- 1 --- 4
Task3 1 --- 1
Task4 3 --- 1
Total: 9 --- 7 --- 7 --- 8
I apologise if that's not very clear, but i'm sure you can workout what i'm after. It's basically showing the hours for a week in a table.
I'm not sure how I can get the days of the week to reflect the correct date, all I store in my database in the date and I don't know how to convert the date to a paticular day or whatever, or how to show a week.
I'm worried that I may need to add a Week field to the table because I need users to be able to be able to view the data for last week in a similar fashion, through a back button or similar.
If i've not been very clear just ask me to elaborate. In essence i'm just not sure how to display the data like i've shown above.
tblHours
ID
TimeCode (The task number)
Date
Hours (Number of hours logged)
Username
Comments
Approved (Used by managers for approving)
Thanks for any help
I would like users to be able to see the number of hours they have booked like this...
----- Mon Tue Wed Thu Fri Sat Sun
Task1 4 --- 3 --- 6 --- 4
Task2 1 --- 2 --- 1 --- 4
Task3 1 --- 1
Task4 3 --- 1
Total: 9 --- 7 --- 7 --- 8
I apologise if that's not very clear, but i'm sure you can workout what i'm after. It's basically showing the hours for a week in a table.
I'm not sure how I can get the days of the week to reflect the correct date, all I store in my database in the date and I don't know how to convert the date to a paticular day or whatever, or how to show a week.
I'm worried that I may need to add a Week field to the table because I need users to be able to be able to view the data for last week in a similar fashion, through a back button or similar.
If i've not been very clear just ask me to elaborate. In essence i'm just not sure how to display the data like i've shown above.
tblHours
ID
TimeCode (The task number)
Date
Hours (Number of hours logged)
Username
Comments
Approved (Used by managers for approving)
Thanks for any help

Last edited: