~remove_pick('admin','~sparam(1)')
|
~html_form_text('artist~sparam(1)', ~fld('artist'), 25)
~if(~fld('id'), ~html_form_hidden('id~sparam(1)', ~fld('id')))
~if(~fld('id'), ~html_form_hidden('oldid~sparam(1)', ~fld('id')))
|
~html_form_text('annotation~sparam(1)', ~fld('annotation'), 40)
|
~html_form_text('location~sparam(1)', ~fld('location'), 50)
|
'
)
~list(~get('database'),
"SELECT id, artist, annotation, info, location FROM xspf_playlist",
'LM', ~disp_xspf_row(~gfld('counter')),
'LL', ~set('last_row', ~gfld('counter')),
'LD',~set('last_row', 0)
)
~for( ~set('i', ~get('last_row') + 1),
~get('i') <= ~get('xspf_track_max'),
~set('i', ~get('i')+1),
~disp_xspf_row(~get('i'))
)