[%- pagetitle = 'PLUGIN_SQLPLAYLIST' | string; pageicon = 'PLUGIN_SQLPLAYLIST' -%]
[%- pwd_list = BLOCK -%]/
[% "PLUGIN_SQLPLAYLIST" | string %]
[% END -%]
[% IF pluginSQLPlayListNowPlaying != '' %]
[%- pageHeaderInfo = BLOCK %]
[% "NOW_PLAYING" | string %]:
[% pluginSQLPlayListNowPlaying %]
[% END -%]
[% END %]
[% PROCESS pageheader.html %]
[%# Following block generates links that submit the form if javascript is enabled. This allows
users to make setting changes then click on a new mix without having to press the submit button. %]
[% BLOCK href %]
href="[% webroot %]plugins/DynamicPlayList/dynamicplaylist_mix.html?type=[% IF type!= 'disable' %]sqlplaylist_[% END %][% type |uri %]&player=[% player | uri %]&addOnly=[% addOnly %]"
[% END %]
[% PROCESS plugins/SQLPlayList/dynamicplaylistlink.html %]
[% WRAPPER contentcontainer %]
[% IF player == '' %]
[% "NO_PLAYER_FOUND" | string %]
[% ELSE %]
[% "PLUGIN_SQLPLAYLIST_CHOOSE_BELOW" | string %]
|
[% odd = 1 %]
[% FOREACH playlist IN pluginSQLPlayListPlayLists %]
[% BLOCK controls %]
[%- IF playlist.customplaylist and !playlist.downloadedplaylist %]
[% WRAPPER cmdlink noTarget=1 cmdtitle="PLUGIN_SQLPLAYLIST_PUBLISH_ITEM" -%]href="[% webroot %]plugins/SQLPlayList/webadminmethods_login.html?item=[% playlist.id |uri %]&player=[% player | uri %][% IF pluginWebAdminMethodsRedirect %]&redirect=[% pluginWebAdminMethodsRedirect %]"[% END %][% END %]
[%- END %]
[%- IF !playlist.defaultplaylist %]
[% WRAPPER removelink noTarget=1 -%]href="[% webroot %]plugins/SQLPlayList/webadminmethods_removeitem.html?item=[% playlist.id |uri %]&player=[% player | uri %][% IF pluginWebAdminMethodsRedirect %]&redirect=[% pluginWebAdminMethodsRedirect %][% END %]" onClick="return confirm('[% "PLUGIN_SQLPLAYLIST_REMOVE_ITEM_QUESTION" | string %]')"[% END %]
[%- END %]
[% WRAPPER editlink noTarget=1 -%]href="[% webroot %]plugins/SQLPlayList/webadminmethods_edititem.html?item=[% playlist.id |uri %]&player=[% player | uri %][% IF pluginWebAdminMethodsRedirect %]&redirect=[% pluginWebAdminMethodsRedirect %][% END %]"
[%- END %]
[% PROCESS sqlPlayListLink type=playlist.id addOnly="0" parameters=playlist.parameters %]
[% PROCESS sqlPlayListLink type=playlist.id addOnly="1" parameters=playlist.parameters %]
[% END %]
[%- WRAPPER contentitem controls='controls' %]
[% playlist.name %]
[% END %]
[% odd = (not odd) %]
[% END %]
[% odd = 0 %]
[% IF pluginSQLPlayListNowPlaying != '' %]
[%# Reload status and playlist to reflect any new mixes %]
|
[% "PLUGIN_SQLPLAYLIST_GENERAL_HELP" | string %]
[% PROCESS sqlPlayListLink type="disable" addOnly="0" %]
|
[% END %]
|
[% "PLUGIN_SQLPLAYLIST_NEW_ITEM" | string %] [% "PLUGIN_SQLPLAYLIST_REFRESH_PLAYLISTS" | string %] [% "PLUGIN_SQLPLAYLIST_REFRESH_DOWNLOADED_ITEMS" | string %]
([% "PLUGIN_SQLPLAYLIST" | string %] [% pluginSQLPlayListVersion %])
[% IF pluginSQLPlayListError %]
[% pluginSQLPlayListError %]
[% END %]
[% IF pluginSQLPlayListMessage %]
[% pluginSQLPlayListMessage %]
[% END %]
[% IF pluginWebAdminMethodsError %]
[% pluginWebAdminMethodsError %]
[% END %]
[% IF pluginWebAdminMethodsMessage %]
[% pluginWebAdminMethodsMessage %]
[% END %]
[% END %]
[% END %]
[% PROCESS pagefooter.html %]