Thursday, October 12, 2006

Weight Machine Website

The other week I decided to do a quick website that can be used to track weight measurements. I never really started much then as I was doing a few other things. but the past two days I've been working on it. I thought I'd throw up a few pictures so people can see what it looks like so far.

Here's what is displayed when the database is empty of users:



Lets add a user.



It's currently entering the weight as lbs (pounds) but eventually it'll be smarter and will offer stone and lbs boxes when the units are lbs. The other selectable unit is kg's. Clicking add takes us back to the users list, but this time I'm in there.



Clicking my name takes me to my measurements view which is currently empty as I've only just been added.



It'd be nice to store some measurements.



The current date is automatically filled into the data boxes as you'll most likely be entering it on the same day that you took it. If you're doing it at a later date then it's easy to just select the correct date. Again, it's only showing a lbs box for entering the weight at the moment and will be the two boxes in the future. Clicking add takes me back to my view and displays the new measurement.



The weight is formatted properly for the selected weight units and would still be correct if the unit was kg's (would just show "80 kg", for example). The checkbox next to the measurement is for a graph feature that I'm currently working on. You'll be able to select which measurements you want on the graph (examples: you want to see the difference between the first week and the last week or you want to see the difference in a single month). The top checkbox allows you to toggle all the measurements checkboxes on and off. You'll also be able to generate different graphs, like the average weight during each month (that's the only one I can think of at the moment!).

I'm still working on it so expect an update within a few days.

UPDATE: I've now changed it so that you can enter weights properly, so if your units are "lbs" then it shows two boxes, stone and lbs. Once you've entered the two values it calculates the full lbs value and stores that as your weight. It should also work correctly when editing measurements but I haven't done that part of it yet so I'm not entirely sure.

2 comments:

Anonymous said...

Looks really nice :)

Unknown said...

Ohhhhh, I like it!!!!