I have the task of creating a MySQL/PHP/AJAX application which shows the current status and location of about 25 vehicles.
There are three different types of vehicles (We'll call them type A, B, and C). Each vehicle is at one of three locations (1, 2, or 3). In addition, type A vehicles are assigned a numerical position at their location. All vehicles are also assigned a "status" indicating the current usage capacity of that vehicle.
So I have Table A, B and C in my database, holding each respective type of vehicle.
A record from Table A might look like:
vehicleID, location, position, status;
52U, 1, 3, reserved;
Records from tables B and C looks similar, but without the "position" field:
vehicleID, location, status;
1R7, 3, broken;
I am envisioning a page with three columns (for the three locations). Then in each column, there are three groups of vehicles (Type A, B, and C). The user can click any vehicle and drag it to either of the other two locations. Group A vehicles are order-specific, that is, the user drags the vehicles into the desired order at each location. In addition, the user needs to be able to change the status for each vehicle (such as a right-click context menu with status options).
All of this needs to be live, such that the database is updated second the user has moved a vehicle from one spot to another, or changed a vehicles status.
Ideally, this system would be flexible to accommodate new locations that are opened, or remove locations that close.
This seems like an awful lot for one shot. Anybody done something like this before? Ideas on where to start? Or am I out of my mind?