i wrote it at work today in a separate php file, but implementing it into smf's bbcode thing was a bitch.
i mean it's pretty "smart" right now, far from optimal though... this project reminds me why i love nodejs so much.. communicating with php on server side vs javascript on client side is so inefficient...
anyway, i'll adjust it and add some features like possibly auto graphing etc.. might be fun.. also add things like auto totaling the columns at the bottom in a separate 'total' row.... ill also add something like title= and shit.
example.. first 'row' is the headings, the others are data.. only rows that much the 'heading count' will get entered into the table.. you can see in the example below that the 'junk' wont make it in:
[dtable]
date,bodyweight,squat,vert,goku
1/1/2013,150,135,25,2
5/1/2013,160,225,30,4
9/1/2013,165,275,33,6
4/2/2013,165,350,36,8
[/dtable]
[dtable]
date,bodyweight,squat,vert,goku
1/1/2013,150,135,25,2
5/1/2013,160,225,30,4
9/1/2013,165,275,33,6
4/2/2013,165,350,36,8
[/dtable]
[dtable]
one,two,three,four,five,six,seven
a,b,c,d,e,f,g
1,2,3,4,5,6,7
2,3,4,5,6,7,8
3,4,5
1
alert('hh');
9,8,7,6,5,4,3,2,1,0
afs
a
f
s
mso msdo
m
[/dtable]
test!
[dtable]
one,two,three,four,five,six,seven
a,b,c,d,e,f,g
1,2,3,4,5,6,7
2,3,4,5,6,7,8
3,4,5
1
alert('hh');
9,8,7,6,5,4,3,2,1,0
afs
a
f
s
mso msdo
m
[/dtable]
ooh so much fun:
[dtable]
one,two,three,four,five,six,seven
a,b,c,d,e,f,g
1,2,3,4,5,6,7
2,3,4,5,6,7,8
one,two,three,four,five,six,seven
a,b,c,d,e,f,g
1,2,3,4,5,6,7
2,3,4,5,6,7,8
one,two,three,four,five,six,seven
a,b,c,d,e,f,g
1,2,3,4,5,6,7
2,3,4,5,6,7,8
one,two,three,four,five,six,seven
a,b,c,d,e,f,g
1,2,3,4,5,6,7
2,3,4,5,6,7,8
one,two,three,four,five,six,seven
a,b,c,d,e,f,g
1,2,3,4,5,6,7
2,3,4,5,6,7,8
one,two,three,four,five,six,seven
a,b,c,d,e,f,g
1,2,3,4,5,6,7
2,3,4,5,6,7,8
one,two,three,four,five,six,seven
a,b,c,d,e,f,g
1,2,3,4,5,6,7
2,3,4,5,6,7,8
one,two,three,four,five,six,seven
a,b,c,d,e,f,g
1,2,3,4,5,6,7
2,3,4,5,6,7,8
one,two,three,four,five,six,seven
a,b,c,d,e,f,g
1,2,3,4,5,6,7
2,3,4,5,6,7,8
one,two,three,four,five,six,seven
a,b,c,d,e,f,g
1,2,3,4,5,6,7
2,3,4,5,6,7,8
one,two,three,four,five,six,seven
a,b,c,d,e,f,g
1,2,3,4,5,6,7
2,3,4,5,6,7,8
[/dtable]