On 2013-04-22 13:51, Tony wrote:
> All these bridges below must be opened when a vessel must pass that's why we
> talk about bookings.
...
> I need to create a html table that is different to the normal html table.
> The table consist of 9 columns [1-9] and different number of row but the
> column width is the same for all columns.
> The column to the left is the name of a bridge.
> If we had for example three rows then the column to the left could be
> Göta älv bron
> Marieholmsbron
> Jordfallsbron
>
> Now to the difficult part of the html table.
> Each row describe one or more bridge booking in some way.
> For example in row 1 Göta älv below I have written a booking !ö!v!c!
> So each interval column of hour is of same width but the time for ö,v and c
> could be very different.
> Can anybody give me some hint about what kind of algoritm is suitable to use
> when displaying the html table with it's contents ?
I tried to write an explanation, but it got too complicated.
Is that what you were looking for?
http://foo.at/paste/2013/bridges.html
Note, there is NO error handling and no boundary checking, you'll have
to add that yourself.
- stefan