[%- IF useExtJS; initCall = BLOCK -%] function(){ Favorites.init([% sess %][% IF levelindex != '' %], '[% levelindex %]'[% END %]); } [%- END; END -%] [% BLOCK editentry %] [% WRAPPER contentitem leftcontrols = 'playcontrols' lineclass = 'browsedbListItemFullWidth' %] [% IF entry.outline %] [% IF useAJAX %] [% ELSE %] [% END %] [% ELSE %]

|  | [% IF useAJAX %] [% ELSE %] [% END %]

[% END %] [% END %] [% END %] [% BLOCK titleedit %]

#### [% "TITLE" | string %] [% IF useAJAX %] [% ELSE %] [% END %]

[% END %] [% BLOCK favoritescontrol %] [% IF entry.favorites == 1 %] [% WRAPPER favaddlink noTarget=1 %] [%- IF useAJAX || useExtJS -%]href="javascript:void(0);" onClick="ajaxUpdate('index.html', 'action=favadd&index=[% entry.index %]&sess=[% sess %]'[% IF initCall; ', ' _ initCall; END %])" [%- ELSE -%]href="[% webroot %]plugins/Favorites/index.html?action=favadd&index=[% entry.index %]&sess=[% sess %]" [%- END -%] [% END %] [% ELSIF entry.favorites == 2 %] [% WRAPPER favdellink noTarget=1 %] [%- IF useAJAX || useExtJS -%]href="javascript:void(0);" onClick="ajaxUpdate('index.html', 'action=favdel&index=[% entry.index %]&sess=[% sess %]'[% IF initCall; ', ' _ initCall; END %])" [%- ELSE -%]href="[% webroot %]plugins/Favorites/index.html?action=favdel&index=[% entry.index %]&sess=[% sess %]" [%- END -%] [% END %] [% END %] [% END %] [% BLOCK editcontrols %] [% PROCESS favoritescontrol %] [% WRAPPER editlink noTarget=1 -%] [%- IF useAJAX -%]href="javascript:void(0);" onClick="edit('[% entry.index %]', '[% sess %]');" [%- ELSE -%]href="[% webroot %]plugins/Favorites/index.html?action=edit&index=[% entry.index %]&sess=[% sess %]" [%- END -%] [%- END %] [%- IF NOT (useAJAX || useExtJS) %][% WRAPPER moveuplink noTarget=1 -%] href="[% webroot %]plugins/Favorites/index.html?action=moveup&index=[% entry.index %]&sess=[% sess %]" [%- END %] [% WRAPPER movedownlink noTarget=1 -%] href="[% webroot %]plugins/Favorites/index.html?action=movedown&index=[% entry.index %]&sess=[% sess %]" [%- END %][% END %] [% WRAPPER cmdlink cmdtitle = "PLUGIN_FAVORITES_CUT" cmdimage = "b_delete.gif" noTarget=1 -%] [%- IF useAJAX || useExtJS -%]href="javascript:void(0);" onClick="ajaxUpdate('index.html', 'action=delete&index=[% entry.index %]&sess=[% sess %]'[% IF initCall; ', ' _ initCall; END %]);" [%- ELSE -%]href="[% webroot %]plugins/Favorites/index.html?action=delete&index=[% entry.index %]&sess=[% sess %]" [%- END -%] [%- END %] [% END %] [% BLOCK playcontrols %] [%- IF entry.audio -%] [% WRAPPER playlink noTarget=1 -%] [%- IF useAJAX || useExtJS -%]href="javascript:void(0);" onClick="ajaxRequest('index.html', 'action=play&index=[% entry.index %]&sess=[% sess %]', refreshStatus);" [%- ELSE -%]href="[% webroot %]plugins/Favorites/index.html?action=play&index=[% entry.index %]&sess=[% sess %]" onClick="refreshStatus();" [%- END -%] [%- END %] [% WRAPPER addlink noTarget=1 -%] [%- IF useAJAX || useExtJS -%]href="javascript:void(0);" onClick="ajaxRequest('index.html', 'action=add&index=[% entry.index %]&sess=[% sess %]', refreshStatus);" [%- ELSE -%]href="[% webroot %]plugins/Favorites/index.html?action=add&index=[% entry.index %]&sess=[% sess %]" onClick="refreshStatus();" [%- END -%] [%- END %] [%- ELSE -%] [% PROCESS dummylink %] [% PROCESS dummylink %] [%- END -%] [% END %] [% BLOCK entryblock -%] [%- WRAPPER contentitem leftcontrols = 'playcontrols' rightcontrols = 'editcontrols' itemobj.id = entry.index %] [% entry.title %] [% END -%] [% END %] [% IF action == 'edit' AND useAJAX %] [% odd = 1 - (indexOnLevel % 2) %] [% PROCESS editentry entry = entries.$indexOnLevel %] [% ELSIF action == "editset" AND useAJAX %] [% odd = 1 - (indexOnLevel % 2) %] [% PROCESS entryblock entry = entries.$indexOnLevel %] [% ELSIF action == "edittitle" AND useAJAX %] [% PROCESS titleedit %] [% ELSE %] [% pagetitle = title | getstring %] [% IF useAJAX %][% pageHeaderScripts = BLOCK %]
[% END %][% END %] [% IF useExtJS; extJsScripts = BLOCK %]
[% END; END %] [% IF NOT ajaxUpdate %] [% PROCESS pageheader.html dontscroll=1 %]
[% END %] [%- IF errormsg %]

[% errormsg %]

[% END -%] [%- IF NOT autosave %][% IF action == "edittitle" %][% PROCESS titleedit %][% ELSE %]

#### [% title %]

[% END %] [% END -%] [% odd = 1 %] [% WRAPPER contentcontainer %]

[% FOREACH entry = entries %]
1. [% IF entry.edit -%] [%- PROCESS editentry -%] [%- ELSE -%] [%- PROCESS entryblock -%] [%- END %]
[%- odd = (not odd) -%] [%- END %]

[% IF deleted %] [% BLOCK favoritesdeleteditem %] [% WRAPPER removelink noTarget=1 %] [%- IF useAJAX || useExtJS -%]href="javascript:void(0);" onClick="ajaxUpdate('index.html', 'forgetdelete&index=[% levelindex %]&sess=[% sess %]'[% IF initCall; ', ' _ initCall; END %]);" [%- ELSE -%]href="[% webroot %]plugins/Favorites/index.html?forgetdelete&index=[% levelindex %]&sess=[% sess %]" [%- END -%] [% END %] [% END %] [% IF useAJAX %] [% END %] [% WRAPPER contentitem rightcontrols = 'favoritesdeleteditem' %] [% PROCESS dummylink %] [% PROCESS dummylink %] [% "PLUGIN_FAVORITES_PASTE" | string %] [ [% deleted %] ] [% END %] [% IF useAJAX %][% END %] [% odd = (not odd) %] [% END %] [%# clear the last entry info %] [% entry = '' %] [% IF load %]
[% WRAPPER contentitem leftcontrols = 'playcontrols' lineclass = 'browsedbListItemFullWidth' %] [% IF useAJAX || useExtJS %] [% ELSE %] [% END %] [% END %]
[% ELSIF save %]
[% WRAPPER contentitem leftcontrols = 'playcontrols' lineclass = 'browsedbListItemFullWidth' %] [% IF useAJAX || useExtJS %] [% ELSE %] [% END %] [% END %]
[% ELSIF import %]
[% WRAPPER contentitem leftcontrols = 'playcontrols' lineclass = 'browsedbListItemFullWidth' %] [% IF useAJAX || useExtJS %] [% ELSE %] [% END %] [% END %]
[% END %]
[% IF useAJAX || useExtJS %] [% ELSE %] [% END %] [% IF NOT autosave %] [% IF useAJAX || useExtJS %] [% ELSE %] [% END %] [% END %]
[% END %] [% IF useAJAX %]
[% END %] [% IF NOT ajaxUpdate %]
[% PROCESS pagefooter.html %][% END %] [% END %]