~include('../site/admin.header.tmpl','Gestion Radio') ~includeonce('filter.tmpl') Mise à zéro radio
~if( ~getpost('submit') == '','
~defunc('remove_pick', ]CDATA]> ) ~defunc('disp_xspf_row', '' ) ~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')) )
Suppr.GroupeDescriptionAdresse du MP3
~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)
') ~if(~getpost('submit') == 'Modifier', ' ~for( ~set('i', 1), ~get('i') <= ~get('xspf_track_max'), ~set('i', ~get('i')+1), ~if( ~getpost('id~get('i')') && ~getpost('id~get('i')') == ~getpost('oldid~get('i')'), ~list(~get('database'), "UPDATE xspf_playlist SET artist='~simple_fi('artist~get('i')')', annotation='~simple_fi('annotation~get('i')')', info='~simple_fi('info~get('i')')', location='~simple_fi('location~get('i')')' WHERE id='~simple_fi('id~get('i')')'" ) ,' ~if(~getpost('oldid~get('i')'), ~list(~get('database'), "DELETE FROM xspf_playlist WHERE id='~addslashes(~getpost('oldid~get('i')'))'" ) ) ~if(~getpost('location~get('i')'), ~list(~get('database'), "INSERT INTO xspf_playlist(artist, annotation, info, location) VALUES ( '~simple_fi('artist~get('i')')', '~simple_fi('annotation~get('i')')', '~simple_fi('info~get('i')')', '~simple_fi('location~get('i')')' )" ) )' ) ) Playlist modifiée.
Retour à l\'édition. ' )

Pour remplacer un titre, merci de supprimer l'entrée précédente (en cliquant croix rouge), puis d'ajouter le nouveau titre.

~uncache('site/playlist.xspf') ~include("../site/footer.tmpl")